/* OPALE 官網 —— 共用樣式 (純 CSS, 不依賴框架)
   視覺語言:遊戲公司 (深色、大字、滿版遊戲畫面、直角切邊);
   強調色只有「蛋白石變彩」一種, 只給 logo 的 O 和主要按鈕 (90/10)。 */
:root {
  --bg: #07090f;
  --bg-2: #0d1120;
  --bg-3: #141a2e;
  --ink: #eef0f7;
  --ink-soft: #a3aac0;
  --ink-dim: #6f7790;
  --line: rgba(238, 240, 247, .10);
  --line-strong: rgba(238, 240, 247, .22);
  --opal: linear-gradient(100deg, #d6c9ff 0%, #b9e8ff 30%, #c6f6dd 52%, #fff0c4 74%, #ffd0e6 100%);
  --cut: 14px;
  --display: "Unbounded", "Noto Sans TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

/* 小標:英文大寫 + 字距, 遊戲公司網站的招牌寫法 */
.kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--ink-dim); }

/* ---------- 頁首 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 15, .92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .top { background: rgba(7, 9, 15, .78); backdrop-filter: blur(10px); }
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 26px; width: auto; }
.logo .logo-short { display: none; }
@media (max-width: 600px) { .logo img { height: 19px; } .nav .hide-xs { display: none; } }
@media (max-width: 340px) { .logo .logo-full { display: none; } .logo .logo-short { display: block; } }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 9px 18px; font-size: 14px; }
.nav a.btn-main, .nav a.btn-main:hover { color: #0b1020; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* ---------- 按鈕:直角 + 切一個角 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px;
  font-weight: 800; font-size: 16px; letter-spacing: .04em;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: filter .2s ease, background-color .2s ease;
}
.btn-main { background: var(--opal); color: #0b1020; }
.btn-main:hover { filter: brightness(1.08) saturate(1.15); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); clip-path: none; }
.btn-ghost:hover { background: rgba(238, 240, 247, .06); }
.btn[aria-disabled="true"] { background: var(--bg-3); color: var(--ink-soft); cursor: default; filter: none; }

/* ---------- 主視覺 ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg-wrap { position: absolute; inset: -10% -20%; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-bg {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  transform: rotate(-8deg) scale(1.05);
  opacity: .42;
  animation: drift 48s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: rotate(-8deg) scale(1.05) translate3d(0, 0, 0); } to { transform: rotate(-8deg) scale(1.05) translate3d(-4%, -3%, 0); } }
.hero-bg img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 9, 15, .92) 38%, rgba(7, 9, 15, .68) 66%, rgba(7, 9, 15, .82) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 15, 0) 35%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 24px; min-height: min(86vh, 760px); padding-top: 72px; padding-bottom: 72px; }
.hero h1 {
  font-size: clamp(44px, 8.2vw, 104px);
  line-height: 1.04; font-weight: 900; letter-spacing: -.01em;
  margin: 22px 0 22px;
}
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin: 0 0 32px; max-width: 32em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.platforms { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink-dim); font-weight: 600; letter-spacing: .04em; }
.platforms span::before { content: "■"; font-size: 8px; vertical-align: 2px; margin-right: 8px; color: var(--ink-soft); }
.hero-art { justify-self: center; width: min(440px, 92%); position: relative; }
.hero-art img.milo { position: relative; width: 62%; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); animation: bob 3.4s ease-in-out infinite; }
.hero-art .ring { position: absolute; left: 50%; top: 50%; width: 100%; transform: translate(-50%, -50%); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img.milo { animation: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 56px; }
  .hero-art { order: -1; width: min(240px, 62%); }
  .hero-bg { grid-template-columns: repeat(2, 1fr); opacity: .3; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(7, 9, 15, .82) 55%, rgba(7, 9, 15, .6) 100%); }
}

/* ---------- 區塊 ---------- */
section { padding: 96px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin: 0 0 44px; }
.sec-head h2 { font-size: clamp(32px, 5.2vw, 60px); line-height: 1.08; margin: 14px 0 0; font-weight: 900; }
.sec-head p { color: var(--ink-soft); margin: 0; font-size: 17px; max-width: 26em; }
@media (max-width: 700px) { section { padding: 72px 0; } }

/* ---------- 遊戲卡 ---------- */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .games { grid-template-columns: 1fr; } }
.game { position: relative; overflow: hidden; background: var(--bg-3); aspect-ratio: 4 / 3.3; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.game::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 9, 15, .98) 0%, rgba(7, 9, 15, .88) 40%, rgba(7, 9, 15, 0) 72%); }
.game::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.game:hover img { transform: scale(1.05); }
.game:hover::after { transform: scaleX(1); }
.game .body { padding: 20px 22px 22px; }
.game .en { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--ink-soft); }
.game h3 { margin: 4px 0 6px; font-size: 26px; line-height: 1.2; font-weight: 900; }
.game p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.tag { position: absolute; top: 14px; left: 14px; padding: 4px 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; background: rgba(7, 9, 15, .82); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.more-games { margin-top: 22px; color: var(--ink-dim); font-size: 14px; }

/* ---------- 特色:大號編號取代圖示 ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 28px 28px 8px 0; }
@media (min-width: 981px) { .feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); } }
.feature .num { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(238, 240, 247, .5); }
.feature h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 900; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- 房主通行證 ---------- */
.pass { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .pass { grid-template-columns: 1fr; gap: 24px; } }
.pass h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; margin: 14px 0 14px; font-weight: 900; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.price b { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); font-weight: 900; line-height: 1; }
.price span { color: var(--ink-soft); font-weight: 700; }
.price-sub { color: var(--ink); font-weight: 800; font-size: 18px; margin: 0 0 24px; }
.pass ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pass li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); color: var(--ink-soft); position: relative; }
.pass li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 2px; background: var(--ink); }
.pass li b { color: var(--ink); }
.pass .note { margin-top: 18px; font-size: 13px; color: var(--ink-dim); }
.pass-art { position: relative; justify-self: center; width: min(420px, 86%); }
.pass-art .ring { width: 100%; }
.pass-art img.milo { position: absolute; left: 50%; bottom: 8%; width: 50%; transform: translateX(-50%); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
@media (max-width: 860px) { .pass-art { order: -1; width: min(260px, 70%); } }

/* ---------- 封測 ---------- */
.beta { position: relative; overflow: hidden; text-align: left; }
.beta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
@media (max-width: 860px) { .beta .wrap { grid-template-columns: 1fr; } }
.beta h2 { font-size: clamp(34px, 5.6vw, 68px); line-height: 1.06; margin: 14px 0 16px; font-weight: 900; }
.beta p { color: var(--ink-soft); margin: 0; max-width: 34em; font-size: 17px; }
.beta .side { display: grid; gap: 12px; justify-items: start; }
.beta .side small { color: var(--ink-dim); font-size: 13px; }

/* ---------- 常見問題 ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--ink-soft); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 46em; }
.faq a { color: var(--ink); }

/* ---------- 頁尾 ---------- */
footer { background: #05060b; color: var(--ink-dim); padding: 56px 0 32px; font-size: 14px; border-top: 1px solid var(--line); }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
footer .brand img { height: 24px; width: auto; margin-bottom: 18px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; }
footer .company { line-height: 1.9; }
footer .company b { color: var(--ink); }
footer .rating { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- 條款 / 說明頁 ---------- */
.doc { max-width: 860px; margin: 0 auto; padding: 64px 16px 96px; }
.doc h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; font-weight: 900; margin: 14px 0 8px; }
.doc .meta { color: var(--ink-dim); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; font-weight: 900; padding-top: 18px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--ink-soft); }
.doc b, .doc strong { color: var(--ink); }
.doc a { color: var(--ink); }
.doc .draft { background: rgba(255, 240, 196, .08); color: #ffe7a3; box-shadow: inset 3px 0 0 #ffe7a3; padding: 12px 16px; font-size: 14px; margin-bottom: 28px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 12px 12px; text-align: left; color: var(--ink-soft); }
.doc th { color: var(--ink); background: var(--bg-2); font-weight: 800; }
.doc .table-scroll { overflow-x: auto; }
.doc .warn { font-weight: 900; font-size: 18px; color: var(--ink); box-shadow: inset 3px 0 0 #ffd0e6; padding: 12px 16px; background: var(--bg-2); }

/* =====================================================================
   重點色 90 / 10:變彩只給 Logo 的 O 和「當下最該按的那一顆」
   ===================================================================== */
/* 頁首的「加入封測」平常是白框;畫面上沒有別的主按鈕時才亮成變彩 (site.js 切 .lit) */
.btn-cta { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); clip-path: none; transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
.nav a.btn-cta { color: var(--ink); }
.btn-cta.lit, .nav a.btn-cta.lit { background: var(--opal); color: #0b1020; box-shadow: none; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
/* 還沒開放的按鈕不搶重點色 */
.btn-soon { background: var(--bg-3); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); clip-path: none; font-family: inherit; }
.btn-soon:hover { color: var(--ink); }
/* 裝飾用的光環褪成珍珠白, 慢慢轉 —— 顏色留給按鈕 */
.hero-art .ring, .pass-art .ring { filter: saturate(.7); opacity: .24; animation: spin 60s linear infinite; }
/* 光環後面一圈很淡的光, 讓 Milo 站在光裡而不是站在灰盤上 */
.hero-art::before, .pass-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(214, 201, 255, .16), rgba(185, 232, 255, .06) 55%, transparent 75%); pointer-events: none; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.pass-art .ring { animation-name: spin-plain; }
@keyframes spin-plain { to { transform: rotate(360deg); } }
.pass-cta { margin-top: 26px; }

/* =====================================================================
   互動
   ===================================================================== */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
section[id], .doc h2 { scroll-margin-top: 84px; }
.top { transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.top.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border-bottom-color: var(--line-strong); }
.nav a[data-spy] { position: relative; transition: color .2s ease; }
.nav a[data-spy]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.nav a[data-spy].on { color: var(--ink); }
.nav a[data-spy].on::after { transform: scaleX(1); }

/* 按鈕:按下去縮一下;主按鈕滑過有一道光 */
.btn { position: relative; overflow: hidden; transition: filter .2s ease, background-color .2s ease, transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn-main::after, .btn-cta.lit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%); transform: translateX(-120%); }
.btn-main:hover::after, .btn-cta.lit:hover::after { transform: translateX(120%); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }

/* 遊戲卡:滑鼠的位置會讓卡片微微傾斜, 光跟著走 */
.games { perspective: 1200px; }
.game { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease; transform-style: preserve-3d; }
.game .body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .10), transparent 60%); }
.game:hover .body::before { opacity: 1; }
.game:active { transform: scale(.985); }

/* 常見問題 */
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: #fff; }
.faq summary::after { transition: transform .3s ease; }
.faq details[open] summary::after { content: "+"; transform: translateY(-50%) rotate(45deg); }
.faq-body { overflow: hidden; }

/* 提示框 */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; max-width: calc(100% - 32px); padding: 14px 20px; background: var(--bg-3); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line-strong); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* 回到頂端 */
.to-top { position: fixed; right: 16px; bottom: 20px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--bg-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), 0 10px 30px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, background-color .2s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #1c2440; }

/* 條款類頁面:目錄 */
.doc-layout { max-width: 1180px; margin: 0 auto; }
.toc { display: none; }
.toc-mobile { margin: 0 0 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.toc-mobile summary { cursor: pointer; padding: 14px 16px; font-weight: 800; list-style: none; position: relative; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; position: absolute; right: 16px; color: var(--ink-soft); transition: transform .3s ease; }
.toc-mobile[open] summary::after { transform: rotate(45deg); }
.toc-mobile ol, .toc ol { list-style: none; margin: 0; padding: 0 0 8px; }
.toc-mobile a, .toc a { display: block; padding: 8px 16px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
@media (min-width: 1100px) {
  .doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 0 40px; }
  .doc-layout .doc { margin: 0; padding-left: 0; padding-right: 0; }
  .toc { display: block; position: sticky; top: 96px; align-self: start; margin-top: 64px; border-left: 1px solid var(--line); }
  .toc-title { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--ink-dim); padding: 0 16px 10px; }
  .toc a { padding: 7px 16px; font-size: 14px; position: relative; transition: color .2s ease; }
  .toc a:hover { color: var(--ink); }
  .toc a.on { color: var(--ink); }
  .toc a.on::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--ink); }
  .toc-mobile { display: none; }
}

/* =====================================================================
   動態 (只有 JS 開著才先藏起來, 沒有 JS 一樣看得到全部)
   ===================================================================== */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.js body { animation: page-in .35s ease both; }
.js.leaving body { opacity: 0; transition: opacity .18s ease; }

.js .enter { opacity: 0; animation: rise .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.js .enter-pop { opacity: 0; animation: pop 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.js .hero h1 .line > span { animation: line-up .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }

.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* 一組卡片:容器不動, 裡面一張一張浮上來 */
.js [data-stagger][data-reveal] { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; translate: 0 28px; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-stagger].in > * { opacity: 1; translate: 0 0; }
.js .game { transition: transform .25s ease, opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .enter, .js .enter-pop, .js [data-reveal], .js [data-stagger] > * { opacity: 1 !important; transform: none !important; translate: none !important; }
  .js .hero h1 .line > span { transform: none !important; }
  .hero-bg-wrap { transform: none !important; }
}

/* =====================================================================
   v3 互動版 (11/23):換裝舞台、遊戲選單、衣櫃、扭蛋、連線示範、更多
   ===================================================================== */
.btn-sm { padding: 10px 18px; font-size: 14px; }
.text-link { color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.text-link:hover { color: var(--ink); }

/* ---------- 主視覺的換裝舞台 ---------- */
.hero .wrap { grid-template-columns: 1fr 1fr; }
.stage { position: relative; display: grid; justify-items: center; gap: 10px; user-select: none; -webkit-user-select: none; }
.stage-glow { position: absolute; left: 50%; top: 40%; width: 110%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(214, 201, 255, .18), rgba(185, 232, 255, .07) 55%, transparent 76%); pointer-events: none; }
.stage-glow::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 46%; height: 9%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.spin { position: relative; width: min(540px, 100%); aspect-ratio: 691 / 711; cursor: grab; touch-action: pan-y; outline: none; }
.spin:active { cursor: grabbing; }
.spin img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; transform: scale(1.2); transform-origin: 50% 62%; transition: opacity .15s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.spin.swap img { opacity: 0; transform: scale(1.08) translateY(12px); }
.spin:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.poof { position: absolute; inset: 20% 20% 10%; pointer-events: none; }
.poof i { position: absolute; left: 50%; top: 55%; width: 14px; height: 14px; border-radius: 50%; background: rgba(238, 240, 247, .85); animation: poof .7s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes poof { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.4); opacity: 0; } }
.stage-hint { font-size: 13px; color: var(--ink-dim); letter-spacing: .1em; display: flex; gap: 10px; transition: opacity .4s ease; }
.stage-hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
.stage-hint span:last-child { animation-direction: reverse; }
.stage-hint.gone { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
.stage-name { display: flex; align-items: baseline; gap: 10px; }
.stage-name span { font-weight: 900; font-size: 22px; }
.stage-name small { color: var(--ink-dim); font-size: 13px; }
.set-picker { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 560px; }
.set-chip { width: 44px; height: 44px; padding: 3px; border: 0; cursor: pointer; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.set-chip img { width: 100%; height: 100%; object-fit: contain; }
.set-chip:hover { transform: translateY(-3px); background: #1a2140; }
.set-chip[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: #1a2140; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit img { position: absolute; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); opacity: .9; transform: translate3d(var(--ox, 0), var(--oy, 0), 0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); animation: bob 5s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { order: -1; }
  .spin { width: min(320px, 82vw); }
  .orbit img { width: 44px; height: 44px; }
  .set-chip { width: 42px; height: 42px; }
}

/* ---------- 數字 ---------- */
.stats { padding: 0; border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px 30px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4.4vw, 54px); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- 篩選 (遊戲類型 / 衣櫃部位) ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.filters button { border: 0; cursor: pointer; padding: 9px 16px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-soft); background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.filters button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.filters button[aria-selected="true"] { color: #0b1020; background: var(--ink); box-shadow: none; }
.filters button small { opacity: .6; margin-left: 4px; font-weight: 600; }
.filters.small button { padding: 7px 12px; font-size: 13px; }
@media (max-width: 620px) { .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scrollbar-width: none; } .filters::-webkit-scrollbar { display: none; } .filters button { flex: none; } }

/* ---------- 遊戲選單 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1100px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.gtile { position: relative; overflow: hidden; border: 0; padding: 0; cursor: pointer; aspect-ratio: 3 / 4; background: var(--bg-3); color: var(--ink); text-align: left; font: inherit; isolation: isolate; transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s ease; }
.gtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gtile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 9, 15, .95) 8%, rgba(7, 9, 15, .2) 58%, rgba(7, 9, 15, 0)); transition: background-color .3s ease; }
.gtile .gt-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; }
.gtile .gt-en { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--ink-soft); }
.gtile .gt-zh { font-size: 21px; font-weight: 900; line-height: 1.2; margin-top: 2px; }
.gtile .gt-tag { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.gtile .gt-play { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(7, 9, 15, .75); box-shadow: inset 0 0 0 1px var(--line-strong); opacity: 0; transform: scale(.8); transition: opacity .25s ease, transform .25s ease; }
.gtile .gt-play::before { content: ""; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.gtile .gt-friends { position: absolute; left: 10px; top: 10px; padding: 3px 8px; font-size: 11px; font-weight: 800; background: rgba(7, 9, 15, .8); box-shadow: inset 0 0 0 1px var(--line-strong); }
.gtile:hover img, .gtile:focus-visible img { transform: scale(1.08); }
.gtile:hover .gt-play, .gtile:focus-visible .gt-play { opacity: 1; transform: none; }
.gtile.out { opacity: .12; transform: scale(.96); pointer-events: none; }
.gtile:active { transform: scale(.97); }

/* ---------- 遊戲詳情 (從下面滑上來的一張) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 8, .78); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-panel { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1.25fr 1fr; background: #0c1020; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line-strong); animation: sheet-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet.closing .sheet-panel { animation: sheet-out .25s ease both; }
.sheet.closing .sheet-backdrop { animation: fade .25s ease reverse both; }
@keyframes sheet-out { to { opacity: 0; transform: translateY(30px) scale(.98); } }
.sheet-x { position: absolute; right: 10px; top: 10px; z-index: 3; width: 40px; height: 40px; border: 0; cursor: pointer; background: rgba(7, 9, 15, .8); color: var(--ink); font-size: 16px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.sheet-media { position: relative; background: #000; aspect-ratio: 4 / 3; overflow: hidden; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 4.2s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); opacity: .4; } 12% { opacity: 1; } to { transform: scale(1); } }
.story-bars { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; display: flex; gap: 4px; }
.story-bars i { flex: 1; height: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.story-bars i::after { content: ""; display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.story-bars i.done::after { transform: scaleX(1); }
.story-bars i.now::after { animation: bar var(--dur, 4s) linear forwards; }
.sheet.paused .story-bars i.now::after { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }
.story-nav { position: absolute; top: 0; bottom: 0; width: 35%; border: 0; background: transparent; cursor: pointer; z-index: 1; }
.story-nav.prev { left: 0; } .story-nav.next { right: 0; }
.sheet-body { padding: 30px 28px 24px; display: flex; flex-direction: column; }
.sheet-en { font-family: var(--display); font-size: 11px; letter-spacing: .26em; color: var(--ink-soft); font-weight: 700; }
.sheet-body h3 { font-size: 34px; margin: 6px 0 18px; font-weight: 900; line-height: 1.15; }
.sheet-step { min-height: 104px; padding: 14px 16px; background: var(--bg-2); box-shadow: inset 3px 0 0 var(--ink); }
.sheet-step b { display: block; font-size: 17px; margin-bottom: 4px; }
.sheet-step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.sheet-step.flip { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.sheet-meta { margin: 18px 0 0; display: grid; gap: 10px; }
.sheet-meta div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sheet-meta dt { color: var(--ink-dim); font-size: 13px; font-weight: 700; }
.sheet-meta dd { margin: 0; font-size: 15px; font-weight: 700; }
.sheet-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 820px) {
  .sheet { padding: 0; place-items: end stretch; }
  .sheet-panel { grid-template-columns: 1fr; max-height: 92vh; }
  .sheet-body { padding: 20px 16px 18px; }
  .sheet-body h3 { font-size: 26px; margin-bottom: 12px; }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}
html.locked, html.locked body { overflow: hidden; }

/* ---------- 衣櫃 ---------- */
.wardrobe { overflow: hidden; padding-top: 0; }
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: #0a0e1c; }
.marquee + .marquee { margin-bottom: 72px; }
.marquee-track { display: flex; gap: 6px; width: max-content; padding: 8px 0; animation: marquee 90s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 110s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { width: 76px; height: 76px; object-fit: contain; padding: 4px; transition: transform .25s ease; }
.marquee-track img:hover { transform: scale(1.3); }
@keyframes marquee { to { transform: translateX(-50%); } }
.wardrobe-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .wardrobe-grid { grid-template-columns: 1fr; } }
.closet { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 18px; }
.closet .filters { margin-bottom: 14px; }
@media (max-width: 620px) { .closet .filters { margin-left: -18px; margin-right: -18px; padding: 0 18px 6px; } }
.closet-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.citem { position: relative; aspect-ratio: 1; border: 0; padding: 6px; cursor: default; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); animation: pop .4s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 18ms); transition: background-color .2s ease, transform .2s ease; }
.citem img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.citem:hover { background: #18203a; z-index: 2; }
.citem:hover img { transform: scale(1.18) rotate(-4deg); }
.citem .tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 6px); white-space: nowrap; padding: 5px 9px; font-size: 12px; font-weight: 700; background: var(--ink); color: #0b1020; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.citem:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.closet-more { margin-top: 14px; width: 100%; }
.closet-more[hidden] { display: none; }
.gacha { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 18px; display: grid; gap: 10px; justify-items: start; }
.gacha h3 { margin: 4px 0 0; font-size: 20px; font-weight: 900; }
.gacha p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.gacha-machine { position: relative; width: 100%; display: grid; place-items: center; padding: 6px 0; }
.gacha-img { width: min(220px, 70%); transform-origin: 50% 90%; }
.gacha-machine.shake .gacha-img { animation: shake .6s ease-in-out; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-5deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
.gacha-out { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.gacha-out .prize { display: grid; justify-items: center; gap: 6px; padding: 14px 16px 12px; background: rgba(7, 9, 15, .92); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line-strong); animation: prize .6s cubic-bezier(.2, .7, .2, 1) both; }
.gacha-out .prize img { width: 96px; height: 96px; object-fit: contain; }
.gacha-out .prize b { font-size: 15px; }
.gacha-out .prize span { font-size: 11px; font-family: var(--display); letter-spacing: .2em; color: var(--ink-soft); }
@keyframes prize { from { opacity: 0; transform: translateY(30px) scale(.6); } to { opacity: 1; transform: none; } }
.ward-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line-strong); }
.ward-points > div { padding: 20px 24px 0 0; }
.ward-points > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.ward-points b { display: block; font-size: 18px; margin-bottom: 6px; }
.ward-points span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) { .ward-points { grid-template-columns: 1fr; } .ward-points > div + div { padding-left: 0; border-left: 0; } }

/* ---------- 揪朋友:連線示範 ---------- */
.together { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .together { grid-template-columns: 1fr; gap: 24px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 60px; cursor: pointer; border-left: 2px solid var(--line); transition: border-color .3s ease, background-color .3s ease; }
.steps li::before { content: "0" counter(s); position: absolute; left: 18px; top: 16px; font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--ink-dim); transition: color .3s ease; }
.steps li b { display: block; font-size: 18px; color: var(--ink-soft); transition: color .3s ease; }
.steps li span { display: block; font-size: 14px; color: var(--ink-dim); }
.steps li:hover b { color: var(--ink); }
.steps li.on { border-left-color: var(--ink); background: linear-gradient(90deg, rgba(238, 240, 247, .06), transparent); }
.steps li.on::before, .steps li.on b { color: var(--ink); }
.steps li .prog { position: absolute; left: -2px; top: 0; width: 2px; height: 0; background: var(--ink); }
.steps li.on .prog { animation: grow var(--dur, 3.6s) linear forwards; }
@keyframes grow { to { height: 100%; } }
.demo { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; gap: 0; }
.device { position: relative; }
.laptop .screen { width: min(520px, 72vw); aspect-ratio: 16 / 10; background: #05070d; border: 10px solid #1b2238; border-bottom-width: 14px; border-radius: 10px 10px 0 0; overflow: hidden; }
.laptop .base { height: 12px; margin: 0 -24px; background: linear-gradient(#262e48, #151a2c); border-radius: 0 0 10px 10px; }
.phone { position: absolute; right: -3%; bottom: -10px; }
.phone .screen { width: 150px; aspect-ratio: 9 / 18.5; background: #05070d; border: 7px solid #232b45; border-radius: 22px; overflow: hidden; position: relative; padding: 18px 10px; }
@media (max-width: 620px) { .phone .screen { width: 112px; padding: 14px 8px; } .phone { right: -2%; } .demo { min-height: 260px; justify-content: flex-start; } }
.lobby { height: 100%; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: radial-gradient(120% 100% at 20% 0%, #182046, #070a14 70%); }
.lobby-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.lobby .code { font-family: var(--display); font-size: 18px; letter-spacing: .18em; color: var(--ink); }
.seats { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; }
.seat { position: relative; aspect-ratio: 3 / 4; background: rgba(238, 240, 247, .04); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: end center; padding-bottom: 6px; }
.seat img { width: 86%; position: absolute; bottom: 18%; left: 7%; animation: pop .5s cubic-bezier(.2, .7, .2, 1) both; }
.seat em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--ink-soft); }
.seat .dev { position: absolute; top: 4px; right: 4px; font-size: 9px; padding: 1px 4px; background: rgba(7, 9, 15, .8); color: var(--ink-soft); }
.seat.talk { box-shadow: inset 0 0 0 2px var(--ink); }
.voice { display: flex; gap: 3px; height: 16px; align-items: center; opacity: 0; transition: opacity .3s ease; }
.voice.on { opacity: 1; }
.voice i { width: 3px; height: 30%; background: var(--ink); animation: wave .9s ease-in-out infinite; }
.voice i:nth-child(2) { animation-delay: .15s; } .voice i:nth-child(3) { animation-delay: .3s; } .voice i:nth-child(4) { animation-delay: .45s; } .voice i:nth-child(5) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.invite { font-size: 12px; color: var(--ink-soft); padding: 7px 10px; background: rgba(238, 240, 247, .05); box-shadow: inset 0 0 0 1px var(--line); opacity: .35; transition: opacity .3s ease, box-shadow .3s ease; }
.invite.on { opacity: 1; box-shadow: inset 0 0 0 1px var(--ink); }
.phone-msg { display: grid; gap: 8px; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.phone-msg.on { opacity: 1; transform: none; }
.bubble-in { font-size: 11px; padding: 7px 9px; background: #1d2440; border-radius: 10px 10px 10px 2px; color: var(--ink); }
.bubble-link { font-size: 11px; font-weight: 800; padding: 7px 9px; background: var(--ink); color: #0b1020; border-radius: 10px 10px 10px 2px; }
.phone-in { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; background: #070a14; opacity: 0; transition: opacity .4s ease; }
.phone-in img { width: 70%; }
.phone-in span { font-size: 11px; font-weight: 800; }
.phone-in.on { opacity: 1; }
.host-pass { margin-top: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 860px) { .host-pass { grid-template-columns: 1fr; padding: 20px; } }
.host-pass h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; margin: 12px 0 10px; font-weight: 900; }
.host-pass p { margin: 0; color: var(--ink-soft); }
.host-pass ul { list-style: none; margin: 0; padding: 0; align-self: center; }
.host-pass li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); color: var(--ink-soft); position: relative; }
.host-pass li::before { content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 2px; background: var(--ink); }

/* ---------- 還有這些 ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { position: relative; overflow: hidden; padding: 22px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; transition: box-shadow .3s ease, background-color .3s ease; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--line-strong); background: #0b0f1d; }
.tile h3 { margin: 16px 0 6px; font-size: 20px; font-weight: 900; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.tile-board { grid-column: span 3; } .tile-card { grid-column: span 3; }
.tile-emote, .tile-weekly, .tile-device { grid-column: span 2; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile-board, .tile-card { grid-column: span 2; } .tile-emote, .tile-weekly, .tile-device { grid-column: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile-board, .tile-card, .tile-emote, .tile-weekly, .tile-device { grid-column: span 1; } .tile { min-height: 0; } }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; flex: 1; }
.podium .p { position: relative; width: 96px; display: grid; justify-items: center; }
.podium img { width: 88px; height: 88px; object-fit: contain; margin-bottom: -4px; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.podium span { width: 100%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 22px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-strong); height: 0; overflow: hidden; transition: height .8s cubic-bezier(.2, .7, .2, 1); }
.bento.in .p1 span { height: 92px; } .bento.in .p2 span { height: 64px; transition-delay: .15s; } .bento.in .p3 span { height: 44px; transition-delay: .3s; }
.tile-board:hover .p1 img { transform: translateY(-10px) rotate(-4deg); }
.namecard { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; }
.namecard > img { width: 110px; height: 110px; object-fit: contain; padding: 6px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.namecard div { display: grid; gap: 4px; }
.namecard b { font-size: 18px; }
.namecard span { font-size: 13px; color: var(--ink-soft); }
.namecard em { font-style: normal; justify-self: start; margin-top: 6px; padding: 5px 12px; font-size: 13px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line-strong); }
.tile-card:hover .namecard > img { transform: rotateY(180deg); }
.emotes { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-content: center; }
.emotes img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 4px; background: var(--bg-2); animation: bob 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.4s); }
.weekly { flex: 1; display: grid; place-items: center; align-content: center; gap: 2px; }
.weekly span { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.weekly b { font-family: var(--display); font-size: 84px; font-weight: 900; line-height: 1; }
.weekly small { font-size: 13px; color: var(--ink-dim); }
.devices { flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; font-weight: 900; font-size: 20px; }
.devices span { padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.devices i { font-style: normal; font-size: 26px; color: var(--ink-soft); animation: swap 2.4s ease-in-out infinite; }
@keyframes swap { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
  .podium span { transition: none !important; }
  .bento .p1 span { height: 92px; } .bento .p2 span { height: 64px; } .bento .p3 span { height: 44px; }
}
.js .game-grid .gtile.out, .game-grid .gtile.out { opacity: .12; transform: scale(.96); pointer-events: none; }
.js .game-grid.settled > .gtile { transition-delay: 0s; }
.js .game-grid.settled > .gtile { transition-delay: 0s; }

/* ---------- 封測報名 ---------- */
.beta .beta-wrap { grid-template-columns: 1fr minmax(0, 480px); align-items: start; }
@media (max-width: 860px) { .beta .beta-wrap { grid-template-columns: 1fr; } }
.beta-perks { list-style: none; margin: 22px 0 0; padding: 0; }
.beta-perks li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); color: var(--ink-soft); position: relative; }
.beta-perks li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: var(--ink); }
.beta .side[hidden] { display: none; }
.beta-form { position: relative; padding: 26px 24px 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-strong); min-height: 400px; display: flex; flex-direction: column; }
.beta-form[hidden] { display: none; }
.beta-form.nudge { animation: nudge-x .35s ease; }
@keyframes nudge-x { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.bf-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); }
.bf-progress i { display: block; height: 100%; width: 33%; background: var(--ink); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.bf-step { border: 0; margin: 0; padding: 0; display: none; min-width: 0; }
.bf-step.on { display: grid; gap: 18px; animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.bf-step legend { font-size: 22px; font-weight: 900; margin-bottom: 4px; padding: 0; }
.bf-field { display: grid; gap: 8px; }
.bf-field > span { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.bf-field input { font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); padding: 13px 14px; outline: none; transition: box-shadow .2s ease; border-radius: 0; }
.bf-field input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.bf-field input::placeholder { color: var(--ink-dim); }
.stepper { display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); width: max-content; }
.stepper button { width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper button:hover { background: rgba(238, 240, 247, .06); }
.stepper output { min-width: 48px; text-align: center; font-family: var(--display); font-weight: 900; font-size: 22px; }
.crew { display: flex; flex-wrap: wrap; gap: 2px; min-height: 56px; }
.crew img { width: 52px; height: 52px; object-fit: contain; animation: pop .35s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 11px 16px; font-weight: 700; font-size: 15px; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line-strong); transition: color .2s ease, background-color .2s ease; }
.chips.small span { padding: 7px 11px; font-size: 13px; }
.chips input:checked + span { color: #0b1020; background: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.bf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.bf-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #eef0f7; flex: none; }
.bf-check a { color: var(--ink); }
.bf-error { min-height: 22px; margin: 12px 0 0; color: #ffb4c8; font-size: 14px; font-weight: 700; }
.bf-nav { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; gap: 10px; }
.bf-nav [data-bf-next] { margin-left: auto; }
.bf-nav[hidden] { display: none; }
.bf-done { text-align: center; justify-items: center; }
.bf-done.on { display: grid; gap: 12px; }
.bf-done-art { display: flex; flex-wrap: wrap; justify-content: center; }
.bf-done-art img { width: 70px; height: 70px; object-fit: contain; margin: 0 -6px; animation: hop .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes hop { 0% { opacity: 0; transform: translateY(30px); } 60% { opacity: 1; transform: translateY(-8px); } 100% { transform: none; } }
.bf-done h3 { font-size: 28px; font-weight: 900; margin: 6px 0 0; }
.bf-done p { margin: 0; color: var(--ink-soft); max-width: 30em; }
.beta-form .bf-error { color: #ffb4c8; }

/* ---------- 合作與媒體 ---------- */
.press-hero { position: relative; overflow: hidden; padding: 88px 0 72px; border-bottom: 1px solid var(--line); background: radial-gradient(90% 120% at 85% 10%, #18204a 0%, var(--bg) 60%); }
.press-hero h1 { font-size: clamp(44px, 8vw, 96px); line-height: 1.05; font-weight: 900; margin: 18px 0 18px; }
.press-hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.press-hero h1 .line > span { display: inline-block; }
.js .press-hero h1 .line > span { animation: line-up .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.press-hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.press-hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.press-milos { display: flex; align-items: flex-end; margin-top: 44px; }
.press-milos img { width: 150px; height: 150px; object-fit: contain; margin-right: -18px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .5)); animation: bob 4s ease-in-out infinite; }
.press-milos img:nth-child(2) { animation-delay: -.8s; } .press-milos img:nth-child(3) { animation-delay: -1.6s; } .press-milos img:nth-child(4) { animation-delay: -2.4s; } .press-milos img:nth-child(5) { animation-delay: -3.2s; }
@media (max-width: 620px) { .press-milos img { width: 84px; height: 84px; margin-right: -10px; } }
.copy-blocks { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
@media (max-width: 860px) { .copy-blocks { grid-template-columns: 1fr; } }
.copy-block { padding: 20px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.cb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cb-head b { font-size: 16px; }
.copy-block p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--line-strong); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-dim); font-weight: 700; font-size: 14px; }
.facts dd { margin: 0; font-weight: 700; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { display: grid; gap: 6px; padding: 16px 16px 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .25s ease, transform .25s ease; }
.dl-card:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-3px); }
.dl-card b { font-size: 18px; margin-top: 6px; }
.dl-card b::after { content: " ↓"; color: var(--ink-soft); transition: transform .25s ease; display: inline-block; }
.dl-card:hover b::after { transform: translateY(3px); }
.dl-card span { color: var(--ink-soft); font-size: 14px; }
.dl-art { height: 170px; display: flex; align-items: center; justify-content: center; background: #0a0e1c; overflow: hidden; }
.dl-logo img { width: 78%; }
.dl-games img { width: 46%; aspect-ratio: 8 / 5; object-fit: cover; margin: 0 -8%; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.dl-games img:nth-child(1) { transform: rotate(-8deg); } .dl-games img:nth-child(3) { transform: rotate(8deg); } .dl-games img:nth-child(2) { position: relative; z-index: 1; }
.dl-card:hover .dl-games img:nth-child(1) { transform: rotate(-14deg) translateX(-10px); } .dl-card:hover .dl-games img:nth-child(3) { transform: rotate(14deg) translateX(10px); }
.dl-milo img { width: 34%; height: 90%; object-fit: contain; margin: 0 -4%; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.dl-card:hover .dl-milo img:nth-child(2) { transform: translateY(-10px); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.sw { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.sw i { width: 40px; height: 40px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.sw b { font-size: 14px; }
.sw button { border: 0; cursor: pointer; font: inherit; font-family: var(--display); font-size: 12px; letter-spacing: .06em; padding: 6px 10px; color: var(--ink-soft); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.sw button:hover { color: var(--ink); }
.usage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1100px) { .usage { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .usage { grid-template-columns: 1fr; } }
.u { display: grid; gap: 6px; align-content: start; padding: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.u-art { position: relative; height: 110px; display: grid; place-items: center; background: #0a0e1c; overflow: hidden; }
.u-art img { max-width: 72%; max-height: 70%; }
.u-text { font-weight: 900; font-size: 20px; }
.u.ok .u-art::after, .u.no .u-art::after { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.u.ok .u-art::after { content: "✓"; color: #0b1020; background: var(--ink); }
.u.no .u-art::after { content: "✕"; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.u b { font-size: 15px; margin-top: 6px; }
.u span { color: var(--ink-soft); font-size: 13px; }
.streamer { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
@media (max-width: 860px) { .streamer { grid-template-columns: 1fr; } }
.streamer h2 { font-size: clamp(30px, 5vw, 56px); line-height: 1.08; margin: 14px 0 12px; font-weight: 900; }
.streamer p { color: var(--ink-soft); margin: 0; max-width: 34em; }
.streamer .side { display: grid; gap: 10px; justify-items: start; }
.streamer .side small { color: var(--ink-dim); font-size: 13px; }
.btn[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
