/* Opolx — 與《迷你大廈運輸》同一套紙感配色 */
:root {
  --bg: #F3EFE6;
  --panel: #FCFAF5;
  --ground: #E4DCCB;
  --fg: #2B2A28;
  --muted: #8C8472;
  --rule: #DCD3C2;
  --accent: #E5493A;
  --gold: #F2B32A;
  --blue: #3A78D4;
  --green: #3EA45B;
  --orange: #EE8A2E;
  --purple: #8D58C2;
  --shadow: 0 1px 0 rgba(60, 45, 20, 0.06), 0 24px 60px -24px rgba(60, 45, 20, 0.35);
  --font: "Nunito", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1C20; --panel: #26282E; --ground: #222329; --fg: #ECE8DF; --muted: #8E8A80; --rule: #373A42;
    --accent: #FF6B5B; --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1C20; --panel: #26282E; --ground: #222329; --fg: #ECE8DF; --muted: #8E8A80; --rule: #373A42;
  --accent: #FF6B5B; --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- 語言：同一份 HTML 放兩種語言，用 data-lang 切換 ---------- */
:root:not([data-lang="en"]) [lang="en"]:not(html),
:root[data-lang="en"] [lang="zh-Hant"]:not(html) { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #2B2A28; }

body.lang-swap main, body.lang-swap .top { animation: langSwap 0.45s var(--ease); }
@keyframes langSwap { 0% { opacity: 0.2; filter: blur(4px); } 100% { opacity: 1; filter: none; } }

/* ---------- 頂部列 ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px 0;
  z-index: -1;
  background: linear-gradient(var(--bg) 55%, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.top.scrolled::before { opacity: 1; }

.mark {
  width: 34px;
  height: 34px;
  display: block;
  transition: transform 0.5s var(--spring);
}
.mark:hover { transform: rotate(-12deg) scale(1.08); }
.mark .car { transform-box: fill-box; transform-origin: center; }
.mark:hover .car { animation: carHop 0.6s var(--spring); }
@keyframes carHop { 40% { transform: translateY(-14%); } }

.top-right { display: flex; align-items: center; gap: 12px; }

/* 樓層顯示器 */
.floor-display {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.floor-display .arrow { width: 10px; height: 10px; color: var(--accent); transition: transform 0.4s var(--spring), opacity 0.3s; }
.floor-display[data-dir="down"] .arrow { transform: rotate(180deg); }
.floor-display[data-dir="idle"] .arrow { opacity: 0.25; }
.floor-num { position: relative; display: inline-block; width: 1.9em; height: 1.4em; overflow: hidden; text-align: center; }
.floor-num span { position: absolute; inset: 0; transition: transform 0.45s var(--ease), opacity 0.45s; }
.floor-num span.out-up { transform: translateY(-100%); opacity: 0; }
.floor-num span.out-down { transform: translateY(100%); opacity: 0; }
.floor-num span.in-up { transform: translateY(100%); opacity: 0; transition: none; }
.floor-num span.in-down { transform: translateY(-100%); opacity: 0; transition: none; }

/* 語言切換 */
.lang {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 34px;
  padding: 3px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 0.8rem;
}
.lang span { position: relative; z-index: 1; display: grid; place-items: center; min-width: 36px; padding: 0 8px; transition: color 0.3s; }
.lang .pill {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--fg);
  transition: transform 0.45s var(--spring);
}
:root:not([data-lang="en"]) .lang span:first-of-type,
:root[data-lang="en"] .lang span:last-of-type { color: var(--bg); }
:root[data-lang="en"] .lang .pill { transform: translateX(100%); }

/* 右側電梯軌道（捲動進度） */
.rail {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  top: 50%;
  z-index: 15;
  height: min(46vh, 360px);
  width: 14px;
  transform: translateY(-50%);
}
.rail::before {
  content: "";
  position: absolute;
  left: 5px; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--accent);
  transform-origin: top;
  animation: railDraw 1.2s 1.6s var(--ease) both;
}
@keyframes railDraw { from { transform: scaleY(0); } }
.rail a {
  position: absolute;
  left: 0;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--panel);
  border: 2.5px solid var(--fg);
  transition: transform 0.3s var(--spring);
}
.rail a:hover { transform: scale(1.35); }
.rail a::after {
  content: attr(data-label);
  position: absolute;
  right: 22px; top: 50%;
  transform: translate(6px, -50%);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  white-space: nowrap;
}
.rail a:hover::after { opacity: 1; transform: translate(0, -50%); }
.rail .car {
  position: absolute;
  left: -1px;
  width: 16px; height: 24px;
  margin-top: -12px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--accent) 60%, transparent);
  pointer-events: none;
}
.rail .car::before, .rail .car::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}
.rail .car::before { top: 7px; }
.rail .car::after { bottom: 7px; }

/* ---------- 1F：Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
#city { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }

.hero-copy {
  position: absolute;
  left: 50%; top: 17%;
  transform: translateX(-50%);
  width: min(560px, 78vw);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.wordmark { width: 100%; height: auto; overflow: visible; }
.wordmark .stroke {
  fill: none;
  stroke: var(--fg);
  stroke-width: 88;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s var(--ease) forwards;
}
.wordmark .stroke:nth-child(2) { animation-delay: 0.15s; }
.wordmark .stroke:nth-child(3) { animation-delay: 0.25s; }
.wordmark .stroke:nth-child(4) { animation-delay: 0.35s; }
.wordmark .stroke:nth-child(5) { animation-delay: 0.45s; }
.wordmark .stroke:nth-child(6) { animation-delay: 0.55s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.wordmark .car {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: carDrop 0.8s 0.9s var(--spring) both, carRide 5s 2.4s ease-in-out infinite;
}
@keyframes carDrop { from { transform: translateY(-120%) scaleY(1.2); opacity: 0; } }
@keyframes carRide {
  0%, 30%, 100% { transform: translateY(0); }
  12% { transform: translateY(-16%); }
  18% { transform: translateY(-16%); }
}
.wordmark .dot { transform-box: fill-box; transform-origin: center; animation: pop 0.4s var(--spring) both; }
.wordmark .dot:nth-of-type(1) { animation-delay: 1.35s; }
.wordmark .dot:nth-of-type(2) { animation-delay: 1.45s; }
.wordmark .dot:nth-of-type(3) { animation-delay: 1.55s; }
.wordmark .dot:nth-of-type(4) { animation-delay: 1.65s; }
@keyframes pop { from { transform: scale(0); } }

.hero-tag {
  margin: clamp(10px, 2.5vh, 22px) 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  animation: rise 0.9s 1.7s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hint {
  position: absolute;
  left: 50%; bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  pointer-events: none;
  animation: rise 0.8s 2.6s var(--ease) both, fadeOut 0.6s 9s forwards;
}
@keyframes fadeOut { to { opacity: 0; } }

/* ---------- 2F：遊戲 ---------- */
.game { position: relative; padding: clamp(80px, 14vh, 140px) 0 0; }

.game-head {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}
.game-title {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.game-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(6deg);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--spring);
  transition-delay: calc(var(--i) * 45ms);
}
.game-title.in .ch { opacity: 1; transform: none; }
.game-title .ch:hover { color: var(--accent); transform: translateY(-0.08em); transition-delay: 0s; transition-duration: 0.2s; }

.game-sub {
  margin: 12px 0 0;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
}
.game-line {
  margin: 22px auto 0;
  max-width: 28em;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  background: var(--fg);
  color: var(--bg);
  transition: transform 0.35s var(--spring), box-shadow 0.3s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--fg) 70%, transparent); }
.btn:active { transform: scale(0.95) !important; }
.btn .play {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.4s var(--spring);
}
.btn:hover .play { transform: scale(1.18) rotate(-90deg) rotate(90deg); }
.btn .play svg { width: 9px; height: 9px; margin-left: 2px; fill: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  font-weight: 800;
  font-size: 0.92rem;
}
.badge .live {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

/* 截圖：直向捲動 → 橫向移動 */
.gallery { position: relative; margin-top: clamp(40px, 8vh, 80px); }
.gallery .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.track {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  padding: 0 max(8vw, 24px);
  will-change: transform;
}
.shot {
  flex: none;
  width: min(74vw, 1000px);
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) scale(var(--s, 1));
  transition: transform 0.5s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.shot:hover img { transform: scale(1.04); }

.progress {
  position: absolute;
  left: 50%; bottom: 7vh;
  width: min(240px, 50vw);
  height: 4px;
  border-radius: 4px;
  background: var(--rule);
  transform: translateX(-50%);
  overflow: hidden;
}
.progress i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(var(--p, 0)); border-radius: 4px; }

/* 跑馬燈 */
.marquee {
  overflow: hidden;
  padding: clamp(28px, 6vh, 56px) 0;
  border-block: 1.5px solid var(--rule);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee ul { display: flex; gap: clamp(28px, 4vw, 56px); margin: 0; padding: 0 clamp(14px, 2vw, 28px); list-style: none; }
.marquee li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.3rem, 3.4vw, 2.4rem);
  font-weight: 900;
  white-space: nowrap;
}
.marquee li::before {
  content: "";
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  border: 0.13em solid var(--c, var(--accent));
  background: var(--panel);
  flex: none;
}
.marquee li:nth-child(6n+1) { --c: var(--accent); }
.marquee li:nth-child(6n+2) { --c: var(--gold); }
.marquee li:nth-child(6n+3) { --c: var(--blue); }
.marquee li:nth-child(6n+4) { --c: var(--green); }
.marquee li:nth-child(6n+5) { --c: var(--orange); }
.marquee li:nth-child(6n+6) { --c: var(--purple); }

/* ---------- 1F：聯絡 ---------- */
.contact {
  min-height: 80vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 100px 16px;
  text-align: center;
}
.kicker {
  margin: 0;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mail-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
.mail {
  position: relative;
  font-size: clamp(1.6rem, 6.4vw, 4.4rem);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.mail::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.09em;
  border-radius: 1em;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.mail:hover::after { transform: scaleX(1); transform-origin: left; }
.mail .at { display: inline-block; color: var(--accent); transition: transform 0.6s var(--spring); }
.mail:hover .at { transform: rotate(360deg); }

.copy {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--spring), border-color 0.3s, background 0.3s;
}
.copy:hover { transform: scale(1.08); border-color: var(--fg); }
.copy svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--spring), opacity 0.25s; }
.copy .ok { transform: scale(0); opacity: 0; stroke: #fff; }
.copy.done { background: var(--green); border-color: var(--green); }
.copy.done .ic { transform: scale(0); opacity: 0; }
.copy.done .ok { transform: none; opacity: 1; }
.copy .tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s, transform 0.35s var(--spring);
}
.copy.done .tip { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 頁尾 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 26px clamp(16px, 4vw, 40px);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- 預告片 ---------- */
.trailer {
  width: min(1100px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.6);
}
.trailer[open] { animation: zoomIn 0.5s var(--spring); }
.trailer::backdrop { background: rgba(20, 18, 15, 0.72); backdrop-filter: blur(6px); animation: fadeIn 0.3s; }
@keyframes zoomIn { from { transform: scale(0.86); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.trailer video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.trailer .close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2B2A28;
  display: grid; place-items: center;
  transition: transform 0.35s var(--spring);
}
.trailer .close:hover { transform: rotate(90deg) scale(1.08); }
.trailer .close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- 進場顯示 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 游標光圈（僅滑鼠） ---------- */
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 50;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1.5px solid var(--fg);
  pointer-events: none;
  opacity: 0;
  transition: width 0.3s var(--spring), height 0.3s var(--spring), margin 0.3s var(--spring), opacity 0.3s, background 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
  border-color: #fff;
}
.cursor.on { opacity: 0.9; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; }
.cursor.press { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 文字頁（隱私權、404） ---------- */
.page { padding: 120px 16px 80px; }
.page .wrap { max-width: 720px; margin: 0 auto; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin: 0 0 6px; }
.page h2 { font-size: 1.15rem; margin: 34px 0 6px; }
.page .meta { color: var(--muted); font-weight: 700; margin: 0 0 24px; }
.page p, .page li { color: color-mix(in srgb, var(--fg) 85%, var(--muted)); }
.page a { color: var(--accent); }

.lost { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 16px; }
.lost .big { font-size: clamp(5rem, 22vw, 11rem); font-weight: 900; line-height: 1; display: flex; gap: 0.06em; }
.lost .big span { display: inline-block; animation: bounce 2.4s var(--ease) infinite; animation-delay: calc(var(--i) * 0.12s); }
.lost .big span:nth-child(2) { color: var(--gold); }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-0.12em); } }
.lost p { margin: 0; font-weight: 700; color: var(--muted); }

/* ---------- 響應式 ---------- */
@media (max-width: 720px) {
  .rail { display: none; }
  .hero-copy { top: 14%; width: 74vw; }
  .gallery .stage { position: static; height: auto; padding: 8px 0 24px; }
  .gallery { height: auto !important; }
  .track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 20px; transform: none !important; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }
  .shot { width: 86vw; scroll-snap-align: center; border-radius: 14px; }
  .progress { display: none; }
  .btn, .badge { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .game-title .ch, [data-reveal] { opacity: 1; transform: none; }
  .cursor { display: none; }
}

/* =====================================================================
   擴建：導覽列、內容區塊、遊戲頁、媒體資料頁
   ===================================================================== */

/* ---------- 導覽列 ---------- */
.top-left { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); box-shadow: var(--shadow); }
.links a {
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.links a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.links a[aria-current="page"] { color: var(--bg); background: var(--fg); }

.menu-btn {
  display: none;
  width: 40px; height: 34px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
  place-items: center;
}
.menu-btn i { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--fg); position: relative; transition: background 0.2s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform 0.35s var(--spring); }
.menu-btn i::before { top: -5px; }
.menu-btn i::after { top: 5px; }
.menu-open .menu-btn i { background: transparent; }
.menu-open .menu-btn i::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-5px) rotate(-45deg); }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 19;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 90px 28px 40px;
  background: var(--bg);
  clip-path: circle(0 at calc(100% - 40px) 34px);
  transition: clip-path 0.6s var(--ease);
  pointer-events: none;
}
.menu-open .sheet { clip-path: circle(150% at calc(100% - 40px) 34px); pointer-events: auto; }
.sheet a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.5s var(--spring);
}
.sheet a span.fl { font-size: 0.9rem; color: var(--muted); width: 2.4em; }
.menu-open .sheet a { opacity: 1; transform: none; }
.menu-open .sheet a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .sheet a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .sheet a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .sheet a:nth-child(5) { transition-delay: 0.2s; }

/* ---------- 共用區塊 ---------- */
.sec { padding: clamp(80px, 14vh, 150px) 0; }
.sec.alt { background: color-mix(in srgb, var(--panel) 60%, var(--bg)); }
.wrapx { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.sec-head { margin-bottom: clamp(36px, 6vh, 64px); }
.sec-head.center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--c, var(--accent)); }
.h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; font-weight: 900; letter-spacing: -0.01em; }
.lede { margin: 16px 0 0; max-width: 36em; font-size: clamp(1rem, 1.7vw, 1.15rem); font-weight: 600; color: color-mix(in srgb, var(--fg) 78%, var(--muted)); }
.center .lede { margin-left: auto; margin-right: auto; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.more .arr { display: inline-block; transition: transform 0.35s var(--spring); }
.more:hover .arr { transform: translateX(5px); }

.card {
  background: var(--panel);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--spring), box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); }

/* stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--spring);
}
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(2) { transition-delay: 0.06s; }
[data-stagger].in > *:nth-child(3) { transition-delay: 0.12s; }
[data-stagger].in > *:nth-child(4) { transition-delay: 0.18s; }
[data-stagger].in > *:nth-child(5) { transition-delay: 0.24s; }
[data-stagger].in > *:nth-child(6) { transition-delay: 0.3s; }
[data-stagger].in > *:nth-child(7) { transition-delay: 0.36s; }
[data-stagger].in > *:nth-child(8) { transition-delay: 0.42s; }
[data-stagger].in > *:nth-child(9) { transition-delay: 0.48s; }
[data-stagger].in > *:nth-child(10) { transition-delay: 0.54s; }
[data-stagger].in > *:nth-child(11) { transition-delay: 0.6s; }
[data-stagger].in > *:nth-child(12) { transition-delay: 0.66s; }

/* ---------- 首頁：工作室數字 ---------- */
.studio { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: 26px 24px; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat b em { font-style: normal; color: var(--accent); }
.stat > span { display: block; margin-top: 10px; font-weight: 800; color: var(--muted); font-size: 0.9rem; }

/* ---------- 首頁：開發日誌（時間線＝電梯線） ---------- */
.log { position: relative; display: grid; gap: 18px; padding-left: 46px; }
.log::before {
  content: "";
  position: absolute;
  left: 13px; top: 6px; bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: var(--rule);
}
.log .fill {
  position: absolute;
  left: 13px; top: 6px;
  width: 4px;
  height: calc((100% - 12px) * var(--p, 0));
  border-radius: 4px;
  background: var(--blue);
}
.log .car {
  position: absolute;
  left: 7px;
  top: calc(6px + (100% - 12px) * var(--p, 0));
  width: 16px; height: 24px;
  margin-top: -12px;
  border-radius: 5px;
  background: var(--blue);
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--blue) 60%, transparent);
}
.entry { position: relative; padding: 22px 24px; }
.entry::before {
  content: "";
  position: absolute;
  left: -40px; top: 28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--panel);
  border: 3px solid var(--fg);
  transition: transform 0.4s var(--spring), border-color 0.3s;
}
.entry.passed::before { border-color: var(--blue); transform: scale(1.15); }
.entry h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; font-size: 1.15rem; font-weight: 900; }
.entry h3 .v { font-size: 0.8rem; font-weight: 900; color: var(--bg); background: var(--fg); padding: 2px 9px; border-radius: 999px; }
.entry p { margin: 0; color: color-mix(in srgb, var(--fg) 75%, var(--muted)); font-weight: 600; }

/* ---------- 遊戲頁：Hero ---------- */
.g-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 22px; padding: 110px 16px 60px; text-align: center; overflow: hidden; }
.g-hero .art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/art/key-art.webp") center / cover no-repeat;
  opacity: 0.22;
  transform: scale(calc(1.06 + var(--sy, 0) * 0.12)) translateY(calc(var(--sy, 0) * 60px));
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
          mask-image: linear-gradient(#000 40%, transparent);
}
:root[data-theme="dark"] .g-hero .art { opacity: 0.08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .g-hero .art { opacity: 0.08; } }

.g-logo { width: clamp(64px, 9vw, 96px); height: auto; overflow: visible; }
.g-logo .ln { stroke: #E5493A; stroke-width: 14; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s var(--ease) forwards; }
.g-logo .cap { fill: #E5493A; transform-box: fill-box; transform-origin: center; animation: pop 0.45s var(--spring) both; }
.g-logo .cap.b { animation-delay: 0.7s; }
.g-logo .st { fill: var(--panel); stroke: var(--fg); stroke-width: 9; transform-box: fill-box; transform-origin: center; animation: pop 0.45s var(--spring) both; animation-delay: 0.5s; }
.g-logo .st.b { animation-delay: 0.6s; }
.g-logo .gcar { animation: gcar 4.2s 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite both; }
@keyframes gcar { 0%, 8% { transform: translateY(0); } 28%, 42% { transform: translateY(-42px); } 70%, 84% { transform: translateY(42px); } 100% { transform: translateY(0); } }

.g-title { margin: 0; font-size: clamp(2.8rem, 10vw, 6.6rem); line-height: 1.04; font-weight: 900; letter-spacing: 0.01em; }
.g-title .ch { display: inline-block; opacity: 0; transform: translateY(0.4em); animation: chIn 0.8s var(--spring) forwards; animation-delay: calc(0.3s + var(--i) * 45ms); }
@keyframes chIn { to { opacity: 1; transform: none; } }
.g-hero .game-sub { margin: 0; }
.g-hero .game-line { margin: 4px auto 0; }
.g-hero .actions { margin-top: 10px; }
.scroll-cue { margin-top: 26px; width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--muted); position: relative; opacity: 0.7; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* 故事段落：逐行亮起 */
.story { max-width: 30em; margin: 0 auto; font-size: clamp(1.25rem, 2.8vw, 1.9rem); line-height: 1.6; font-weight: 800; text-align: center; }
.story .w { opacity: 0.16; transition: opacity 0.4s; }
.story .w.lit { opacity: 1; }

/* ---------- 遊戲頁：三步驟 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px 24px 28px; overflow: hidden; }
.step .num { font-size: 0.8rem; font-weight: 900; color: var(--muted); letter-spacing: 0.1em; }
.step h3 { margin: 6px 0 6px; font-size: 1.3rem; font-weight: 900; }
.step p { margin: 0; color: color-mix(in srgb, var(--fg) 72%, var(--muted)); font-weight: 600; }
.step svg { width: 100%; height: auto; margin: 0 0 18px; border-radius: 14px; background: var(--bg); }
.step svg .fl { stroke: var(--rule); stroke-width: 1.5; }
.step svg .ink { fill: var(--fg); }
.step svg .ink-s { fill: none; stroke: var(--fg); stroke-width: 2.4; }
.step svg .pan { fill: var(--panel); stroke: var(--rule); stroke-width: 1.5; }
.step svg .stn { fill: var(--panel); stroke: var(--fg); stroke-width: 2.4; }
/* 1：拖出電梯 */
.s1 .line { stroke: var(--accent); stroke-width: 6; stroke-dasharray: 120; stroke-dashoffset: 120; animation: s1line 3.6s var(--ease) infinite; }
@keyframes s1line { 0%, 10% { stroke-dashoffset: 120; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 120; } }
.s1 .hand { animation: s1hand 3.6s var(--ease) infinite; }
@keyframes s1hand { 0%, 10% { transform: translateY(0); opacity: 0; } 14% { opacity: 1; } 45% { transform: translateY(-105px); opacity: 1; } 55%, 100% { transform: translateY(-105px); opacity: 0; } }
.s1 .stn { opacity: 0; animation: s1stn 3.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.s1 .stn.b { animation-delay: 0.15s; }
.s1 .stn.c { animation-delay: 0.3s; }
@keyframes s1stn { 0%, 45% { opacity: 0; transform: scale(0); } 55%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* 2：切換停靠 */
.s2 .stn.tg { animation: s2tg 2.4s var(--spring) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes s2tg { 0%, 40% { transform: scale(1); opacity: 1; } 50%, 90% { transform: scale(0.35); opacity: 0.35; } 100% { transform: scale(1); opacity: 1; } }
.s2 .tap { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: s2tap 2.4s ease-out infinite; }
@keyframes s2tap { 0%, 38% { transform: scale(0.4); opacity: 0; } 42% { opacity: 1; } 60%, 100% { transform: scale(1.8); opacity: 0; } }
.s2 .car { animation: s2car 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate; }
@keyframes s2car { 0% { transform: translateY(0); } 100% { transform: translateY(-70px); } }
/* 3：尖峰 */
.s3 .q { transform-box: fill-box; transform-origin: bottom; animation: s3q 3s var(--spring) infinite; }
@keyframes s3q { 0% { transform: scale(0); } 12%, 70% { transform: scale(1); } 76% { transform: translateY(-4px); } 82% { transform: none; } 100% { transform: scale(0); } }
.s3 .mood { animation: s3m 3s linear infinite; transform-origin: left; transform-box: fill-box; }
@keyframes s3m { 0% { transform: scaleX(1); } 100% { transform: scaleX(0.25); } }
.s3 .car { animation: s2car 1.5s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate; }

/* ---------- 遊戲頁：地圖 ---------- */
.maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.map { overflow: hidden; }
.map .pic { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.map .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.map:hover .pic img { transform: scale(1.06); }
.map .body { padding: 20px 22px 24px; }
.map h3 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.map h3 i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c); flex: none; }
.map p { margin: 0; font-weight: 600; color: color-mix(in srgb, var(--fg) 72%, var(--muted)); }
.map .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }

/* ---------- 遊戲頁：人群 ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.person { padding: 20px 18px; cursor: default; }
.person .who { display: flex; align-items: center; gap: 12px; }
.person .dot { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.person .dot svg { width: 100%; height: 100%; overflow: visible; }
.person:hover .dot svg { animation: hop 0.6s var(--spring); }
@keyframes hop { 30% { transform: translateY(-8px) rotate(-8deg); } 60% { transform: translateY(0) rotate(4deg); } }
.person h3 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.person p { margin: 10px 0 0; font-size: 0.9rem; font-weight: 600; color: color-mix(in srgb, var(--fg) 70%, var(--muted)); }

/* ---------- 遊戲頁：地標樓層 ---------- */
.marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mark-tile {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--purple) 9%, var(--panel));
  text-align: center;
  overflow: hidden;
  transition: transform 0.45s var(--spring), background 0.3s;
}
.mark-tile:hover { transform: translateY(-5px) rotate(-1.5deg); background: color-mix(in srgb, var(--purple) 16%, var(--panel)); }
.mark-tile svg { width: 46px; height: 46px; overflow: visible; fill: none; stroke: var(--fg); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; transition: transform 0.5s var(--spring); }
.mark-tile:hover svg { transform: scale(1.15); }
.mark-tile b { font-weight: 900; font-size: 0.98rem; line-height: 1.3; }
.mark-tile small { font-size: 0.72rem; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.mark-tile .tip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.mark-tile:hover .tip, .mark-tile:focus-within .tip, .mark-tile.show .tip { opacity: 1; transform: none; }

/* ---------- 遊戲頁：模式與挑戰計算機 ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.mode { padding: 24px; }
.mode h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 900; }
.mode p { margin: 0; font-weight: 600; color: color-mix(in srgb, var(--fg) 72%, var(--muted)); }
.calc { padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.calc h3 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 900; }
.calc .hint2 { margin: 0 0 18px; font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.mods { display: flex; flex-wrap: wrap; gap: 8px; }
.mod {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  font-weight: 800;
  font-size: 0.9rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--spring);
}
.mod small { font-weight: 900; color: var(--accent); transition: color 0.25s; }
.mod:hover { border-color: var(--fg); }
.mod:active { transform: scale(0.94); }
.mod[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.mod[aria-pressed="true"] small { color: var(--gold); }
.mult { text-align: center; min-width: 170px; }
.mult b { display: block; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.mult b.bump { animation: bump 0.4s var(--spring); }
@keyframes bump { 40% { transform: scale(1.14); } }
.mult span { font-weight: 800; color: var(--muted); font-size: 0.85rem; }

/* ---------- 遊戲頁：沒有的東西 ---------- */
.nope { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; justify-items: center; }
.nope li { position: relative; font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 900; color: var(--muted); }
.nope li::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%; top: 52%;
  height: 0.12em;
  border-radius: 1em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.nope.in li::after { transform: scaleX(1); }
.nope.in li:nth-child(2)::after { transition-delay: 0.25s; }
.nope.in li:nth-child(3)::after { transition-delay: 0.5s; }
.nope li.wink::after { display: none; }
.nope li.wink { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--fg); font-weight: 700; margin-top: 8px; }

/* ---------- 規格 ---------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.spec { padding: 24px 26px; }
.spec h3 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 900; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 0.92rem; }
.spec dt { font-weight: 800; color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 截圖格狀＋燈箱 ---------- */
.grid-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-shots button { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); box-shadow: var(--shadow); transition: transform 0.45s var(--spring); }
.grid-shots button:hover { transform: scale(1.03); }
.grid-shots img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { width: min(1400px, 96vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox[open] { animation: zoomIn 0.45s var(--spring); }
.lightbox::backdrop { background: rgba(20, 18, 15, 0.82); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; border-radius: 14px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.6); }
.lightbox .close { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #2B2A28; display: grid; place-items: center; transition: transform 0.35s var(--spring); }
.lightbox .close:hover { transform: rotate(90deg); }
.lightbox .close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lightbox .nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #2B2A28; font-size: 1.3rem; font-weight: 900; display: grid; place-items: center; transition: transform 0.3s var(--spring); }
.lightbox .nav:hover { transform: scale(1.1); }
.lightbox .prev { left: -23px; }
.lightbox .next { right: -23px; }

/* ---------- CTA ---------- */
.cta { text-align: center; display: grid; justify-items: center; gap: 22px; }

/* ---------- 媒體資料頁 ---------- */
.press-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.facts { padding: 26px; position: sticky; top: 90px; }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 800; }
.press-body h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 900; }
.press-body section + section { margin-top: 48px; }
.press-body p, .press-body li { font-weight: 600; color: color-mix(in srgb, var(--fg) 80%, var(--muted)); }
.press-body ul { padding-left: 1.2em; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.dl { display: block; overflow: hidden; text-decoration: none; }
.dl .thumb { aspect-ratio: 16 / 9; background: var(--bg) center / contain no-repeat; border-bottom: 1px solid var(--rule); }
.dl .thumb.dark { background-color: #2B2A28; }
.dl .cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 800; font-size: 0.88rem; }
.dl .cap i { font-style: normal; color: var(--muted); font-size: 0.75rem; }
.dl .cap .arrow-dl { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: background 0.25s, color 0.25s, transform 0.35s var(--spring); flex: none; }
.dl:hover .cap .arrow-dl { background: var(--fg); color: var(--bg); transform: translateY(2px); }
.big-dl { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px; margin-bottom: 18px; text-decoration: none; }
.big-dl b { font-size: 1.15rem; font-weight: 900; }
.big-dl span { display: block; font-weight: 700; color: var(--muted); font-size: 0.88rem; }

/* ---------- 響應式（擴建部分） ---------- */
@media (max-width: 960px) {
  .studio, .press-grid { grid-template-columns: 1fr; }
  .facts { position: static; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .steps, .maps, .modes { grid-template-columns: 1fr; }
  .grid-shots { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .menu-btn { display: grid; }
  .floor-display { display: none; }
  .lightbox .prev { left: 6px; }
  .lightbox .next { right: 6px; }
}
@media (max-width: 480px) {
  .people { grid-template-columns: 1fr; }
  .grid-shots { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 20px 16px; }
}
@media (min-width: 721px) { .sheet { display: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-stagger] > *, .g-title .ch { opacity: 1 !important; transform: none !important; }
  .story .w { opacity: 1; }
}
.card[data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), box-shadow 0.3s; transition-delay: var(--d, 0s); }
