@charset "utf-8";

:lang(en) {
	font-family: "Emilys Candy", serif;
	font-weight: 400;
	font-style: normal;
}

body {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	background-color: rgb(20, 14, 11);
	font-family: 'Kiwi Maru', serif;
}

.container {
	position: relative;
	margin-inline: auto;
	height: auto;
	/* ✅ 用內容撐開高度 */
	overflow-x: hidden;
}

#s1 {
	position: relative;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	z-index: 1;
}

#s1zoomIn {
	position: sticky;
	top: 0;
	width: 100%;
	height: 100vh;
	background-image: url('../img/bgcobbles.jpg');
	background-size:cover;
	background-position: center;
	background-repeat: no-repeat;
	transform-origin: center;
	transition: transform 0.05s ease-in-out;
	z-index: 0;
}

#s1zoomInTitle {
	position: absolute;
	bottom: 1%;
	left: 50%;
	transform: translate(-50%, -20%);
	font-family: "Rubik Lines", system-ui;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(2.5rem, 8vw, 5rem);
	text-align: center;
	letter-spacing: 0.17em;
	color: transparent;
	background: linear-gradient(45deg, #ff6600, #ffcc00, #ffffff, #ff6600);
	background-clip: text;
	-webkit-background-clip: text;
	filter: drop-shadow(0 0 10px #ff9933) drop-shadow(0 0 20px #ff6600);
	animation: pulseGlow 3s ease-in-out infinite;
	z-index: 10;
}

@keyframes pulseGlow {

	0%,
	100% {
		filter: drop-shadow(0 0 5px #ff6600) drop-shadow(0 0 10px #ff9900);
	}

	50% {
		filter: drop-shadow(0 0 20px #ffcc33) drop-shadow(0 0 30px #ffaa00);
	}
}

#s2 {
	min-height: 100vh;
	padding-top: 0;
	padding-bottom: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	overflow: hidden;
	z-index: 2;
	position: relative;
	width: 100vw;
}

#s2-bubooGame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 450vh;
	pointer-events: none;
	/* 讓它不擋住點擊欄位 */
	z-index: 5;
	/* 確保在背景上方 */
}

.bubble {
	position: absolute;
	border-radius: 50%;
	opacity: 0.8;
	animation: fallAndSway 50s linear infinite;
	cursor: pointer;
	will-change: transform;
	pointer-events: auto;
	/* 使泡泡可被點擊 */
}

/* 白雪：圓形漸層 + 柔光 */
.bubble.white {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(152, 232, 237, 0.495) 70%);
	box-shadow: 0 0 15px rgba(178, 218, 248, 0.901);
}

/* 金屬離子：粉色漸層 + 閃爍 */
.bubble.pink {
	background: radial-gradient(circle, rgba(248, 111, 70, 0.934) 0%, rgba(255, 192, 203, 0.0) 70%);
	box-shadow: 0 0 15px rgba(253, 36, 36, 0.6);
	animation: fallAndSway 7s linear infinite, blink 1s infinite;
}

/* 香氛分子下墜動畫 */
@keyframes fallAndSway {
	0% {
		transform: translate(0, 0) rotate(0deg);
		opacity: 0.8;
	}

	50% {
		transform: translate(15px, 350vh) rotate(180deg);
	}

	100% {
		transform: translate(-15px, 450vh) rotate(360deg);
		opacity: 0;
	}
}

/* 閃爍 */
@keyframes blink {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.3;
	}
}

.s2-nav__icon {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 20vw;
	max-width: 220px;
	z-index: 1000;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* 機器人身體圖片：疊在下層，預設隱藏 */
.bot-body {
	position: fixed;
	top: 20px;
	/* ✅ 與頭部高度距離相同，圖層正下方（20vw 是頭部高度） */
	right: 20px;
	width: 20vw;
	max-width: 220px;
	opacity: 0;
	z-index: 992;
	pointer-events: none;
	/* ✅ 不影響點擊 */
	transition: opacity 0.3s ease;
}

#s2navIconBo.show {
	opacity: 1;
	pointer-events: auto;
}

/*跳出選單*/
.s2-nav__dropdown {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	/* top: 50% + left: 50% + transform: translate(-50%, -50%) 是經典畫面置中法！ */
	opacity: 0;
	pointer-events: none;
	width: 70vw;
	aspect-ratio: 3 / 4;
	/* ✅ 寬高比例固定為 3:4 */
	max-height: 90vh;
	z-index: 990;
	transition: all 0.3s ease-in-out;
}

/* 顯示時加上 class */
.s2-nav__dropdown.show {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	pointer-events: auto;
}

@keyframes popupIn {
	0% {
		opacity: 0;
		transform: translate(-50%, -60%) scale(0.9);
	}

	100% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

/* 內部文字樣式 */
.s2-nav__dropdown ul {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* ✅ 垂直置中 */
	align-items: center;
	/* ✅ 水平置中 */
}

.s2-nav__dropdown li {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	/* ✅ 滿寬才能吃下 a 的點擊區 */
	margin-bottom: 10px;
	padding: 10px 20px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.s2-nav__dropdown li:hover {
	background: linear-gradient(90deg, #00ffff, #ffffff, #00ffff);
	/*點擊選單後產生動畫*/
	background-size: 200%;
	animation: pulseGlow 3s ease-in-out infinite;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.s2-nav__dropdown a {
	display: flex;
	flex-direction: column;
	/* ✅ 改成垂直排列 */
	width: 100%;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	color: white;
	font-weight: bold;
	font-size: clamp(1.2rem, 3.5vw, 2.2rem);
	font-family: 'Courier New', monospace;
	text-shadow: 0 0 3px #f2fc35d4;
	letter-spacing: 3px;
	/* ✅ 字距加大，預設單位是 px */
	text-transform: uppercase;
	/* 羅馬字母全部大寫 */
}

.s2-nav__dropdown--cya {
	font-size: clamp(.8rem, 1.5vw, 1.2rem);
	letter-spacing: 5px;
}

@keyframes pulseGlow {

	0%,
	100% {
		filter: drop-shadow(0 0 5px #ff6600) drop-shadow(0 0 10px #ff9900);
	}

	50% {
		filter: drop-shadow(0 0 20px #ffcc33) drop-shadow(0 0 30px #ffaa00);
	}
}

#s2navIconHe {
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

/*選單選擇中*/
#s2navIconHe:hover {
	filter: brightness(1.4);
	transform: scale(1.1);
	transition: all 0.3s ease;
}

.s2-nav__dropdown:hover {
	transition: all 0.4s ease;
}

@keyframes neonTextFlow {
	0% {
		background-position: 0% 50%;
	}

	100% {
		background-position: 100% 50%;
	}
}

/* 🔲 半透明選單底幕，初始隱藏 */
.s2navOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: linear-gradient(45deg, rgba(183, 233, 250, 0.9), rgba(1, 7, 24, 0.98));
	z-index: 980;
	/* 比 s2-nav__dropDown 低一層 */
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease-in-out;
}

.s2navOverlay.visible {
	opacity: 1;
	pointer-events: auto;
}

.s2-history {
	margin-top: 50px;
	padding: 0 10vw 0;
}

.s2-title {
	color: rgba(86, 81, 78, 0.624);
	font-size: 50px;
	letter-spacing: .2em;
	margin-top: 10px;
}

.s2-title[data-align="right"] {
	text-align: right;
	margin-bottom: -130px;
	letter-spacing: .08em;
	line-height: 1.1;
}

.s2-history__subtitle {
	color: #a95f2d;
	font-size: 18px;
	letter-spacing: .15em;
	margin: 25px 0 5px;
}

.s2-history__subtitle--cya {
	color: #a95f2d;
	font-size: 11px;
	margin-left: 10px;
}

.s2-history__text {
	font-size: clamp(.85rem, 2vw, 1rem);
	color: rgb(223, 210, 203);
	letter-spacing: .15em;
	line-height: 1.6;
	text-align: justify;
}

.s2-history-drinks {
	font-size: clamp(.85rem, 2vw, 1rem);
	text-align: justify;
	color: rgb(223, 210, 203);
	letter-spacing: .15em;
	line-height: 1.5;
	/* 無單位時是「倍數」 */
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/bgvapor.jpg') no-repeat center center / auto 100%;
	border-radius: 12px;
	padding: 20px;
	margin: 12vh 0 8vh 0;
}

.s2-history-drinks__subtitle {
	color: rgb(50, 48, 46);
	font-size: 18px;
	letter-spacing: .15em;
	margin-top: 30px;
}

.s2role {
	width: 80vw;
	margin: 0 auto;
	display: flex;
	align-items: center;
}

.s2role__img {
	border: 1px solid #a95f2d;
	border-radius: 12px;
	margin-top: 10px;
}

.s2role__img img {
	width: 65vw;
	border-radius: 12px;
}

.s2role__info {
	width: 72vw;
	padding: 20px;
	margin: 20px;
	flex: 1;
	background-color: #a95f2d;
	border-radius: 12px;
}

.s2role__info-name {
	font-size: 18px;
	letter-spacing: .15em;
	font-weight: bold;
	color: rgb(50, 48, 46);
	padding: 0 0 10px 0;
}

.s2role__info-name-cya{
	font-size: 14px;
}

.s2role__info-name-label {
	font-size: clamp(.85rem, 2vw, 1rem);
	line-height: 1.5;
	letter-spacing: .15em;
	color: rgb(64, 60, 56);
	text-align: justify;
}

.s2role[data-align="right"] {
	flex-direction: row-reverse;
}

/* 手機版調整 */
@media (max-width: 600px) {
	.s2role {
		flex-direction: column;
		align-items: center;
		line-height: 1;
	}

	.s2role__info {
		align-items: center;
		text-align: center;
		
	}

	.s2role__img {
		width: auto;
		text-align: center;
	}

	.s2role__img img {
		width: 450px;
		text-align: center;
	}

	.s2role[data-align="right"] {
		flex-direction: row-reverse;
		flex-direction: column;
		align-items: center;
	}
}

.s2BuGame--scroll {
	color: white;
	text-align: justify;
	text-align: center;
	padding: 2vw 5vw;
	margin: 50px 35px 0 20px;
	border-radius: 10px;
	font-size: clamp(.9rem, 2vw, 1rem);
	line-height: 1.5;
	letter-spacing: .18em;
	opacity: 0;
	transform: translateX(-100%);
	transition: all 1s ease-out;
}

.s2BuGame--scroll-tittle {
	color: rgba(86, 81, 78, 0.624);
	font-size: 50px;
	font-weight: bold;
	letter-spacing: .2em;
	line-height: 1.5;
	padding: 10px 0;
}

.s2BuGame--scroll.right {
	width: 80vw;
	transform: translateX(100%);
	border: 1px solid #00ffff;
}

.s2BuGamescroll__inline-icon {
	height: 50px;
	display: inline-block;
	/* 確保整組不被拆行 */
}

.s2BuGame--scroll.visible {
	opacity: 1;
	transform: translateX(0);
}

@keyframes floatDown {
	0% {
		transform: translateY(-200px) translateX(0);
	}

	100% {
		transform: translateY(120vh) translateX(30px);
	}
}

#s2BuGameForm {
	margin-top: 2rem;
	text-align: center;
	color: #00ffff;
	margin-bottom: 50px;
}

input[type="text"] {
	padding: 0.5rem;
	border-radius: 5px;
	border: none;
	margin: 0 0 15px 0;
}


/*5分小視窗*/
#s2BuGameModal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.7);
	z-index: 100;
	align-items: center;
	justify-content: center;
}

.s2BuGameModal__content {
	background: white;
	color: black;
	line-height: 2;
	letter-spacing: .1em;
	border-radius: 12px;
	text-align: center;
	position: relative;
	max-width: 500px;
	margin: auto;
	padding: 30px;
}

.s2BuGameModal__content-p {
	padding: 10px 0;
}

.s2BuGameModal__content-a {
	display: inline-block;
	text-decoration: none;
	color: white;
	background-color: rgb(7, 194, 7);
	border-radius: 5px;
	margin: 10px 0;
	padding: 20px 15px;
	transition: all 0.3s ease;
}

.s2BuGameModal__content-a:hover {
	background-color: rgb(4, 95, 4);
	transform: scale(1.02);
}

/* 🎃 南瓜動畫效果 */
.s2BuGameModal__content-a .emoji {
	display: inline-block;
	transition: transform 0.3s ease;
}

.s2BuGameModal__content-a:hover .emoji {
	transform: translateY(-5px) scale(1.2);
	/* 小跳+放大 */
}

.s2BuGameModal__content--close {
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
}

.s2BuGameModal__content--close img {
	width: 24px;
	height: 24px;
}

/* 小視窗出現的shake */
@keyframes bounceIn {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}

	60% {
		transform: scale(1.2);
		opacity: 1;
	}

	80% {
		transform: scale(0.95);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes shakeScreen {

	0%,
	100% {
		transform: translate(0, 0);
	}

	20% {
		transform: translate(-50px, 0);
	}

	40% {
		transform: translate(50px, 0);
	}

	60% {
		transform: translate(-50px, 0);
	}

	80% {
		transform: translate(50px, 0);
	}
}

/*飲料展示區*/
.s3sliderWrapper {
	height: 100vh;
	width: 400vw;
	/* 4個 section 寬 */
	display: flex;
}

.s3sliderWrapper__hijack {
	width: 100vw;
	height: 100vh;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	background: url('../img/31soda.jpg') center/cover no-repeat;
	transition: background 0.8s;
	/* 字體對比色 */
	letter-spacing: 3vw;
	/* ✅ 字距加大，預設單位是 px */
}

.s3sliderWrapper__hijack span {
	background: transparent;
	mix-blend-mode: difference;
	color: rgba(246, 117, 25, 0.884);
	/* ✅ 配合上一層的對比換色*/
	font-weight: bold;
	font-size: 5vw;
	padding: 1rem 2rem;
	border-radius: 10px;
}

.s3sliderWrapper__hijack:nth-child(2) {
	background: url('../img/32latte.jpg') center/cover no-repeat;
}

.s3sliderWrapper__hijack:nth-child(3) {
	background: url('../img/33cocoa.jpg') center/cover no-repeat;
}

.s3sliderWrapper__hijack:nth-child(4) {
	background: url('../img/34cocktail.jpg') center/cover no-repeat;
}

#footer {
	background: #111;
	color: #ccc;
	text-align: center;
	padding: 2rem 1rem;
	font-size: 0.9rem;
	position: relative;
	z-index: 5;
}

.footer__content p {
	margin: 0.3rem 0;
	font-family: 'Courier New', monospace;
	animation: fadeIn 1s ease-in-out;
}

.footer__content .footer__content-p {
	color: orange;
	font-weight: bold;
	letter-spacing: 0.5px;
}

.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	display: inline-block;
	margin-top: 1.5rem;
	margin-bottom: 8rem;
	padding: 0.5rem 1rem;
	color: #ffa500;
	border: 1px solid #ffa500;
	border-radius: 20px;
	text-decoration: none;
	font-family: 'Courier New', monospace;
	font-size: 0.85rem;
	transition: all 0.3s ease;
	box-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
	z-index: 999;
}

.back-to-top:hover {
	background-color: #ffa500;
	color: #111;
	box-shadow: 0 0 10px rgba(255, 165, 0, 0.8);
	transform: translateY(-2px);
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#footerTyping {
	color: white;
	font-family: 'Courier New', monospace;
	font-size: 0.9rem;
	overflow: hidden;
	border-right: 2px solid #ffa500;
	width: fit-content;
	margin: 1rem auto;
	animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

	0%,
	100% {
		border-color: transparent;
	}

	50% {
		border-color: #ffa500;
	}
}