/* 開工吧！社畜人生！— 官方網站
   Same look as the pre-registration page: Lagoon Glass (the app's HUD), the sticker logo's pop colours, pixel details. */
:root {
  --ink: #12344d;
  --ink-2: #1d4a66;
  --muted: #5b7488;
  --line: rgba(18, 52, 77, 0.12);
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --blur: blur(18px) saturate(1.5);
  --lagoon: #087c8c;
  --lagoon-bright: #0fa3b5;
  --shallow: #e1f5f7;
  --sea: #4aa5cf;
  --sea-deep: #1478ad;
  --sun: #ffc53d;
  --sun-deep: #e09a12;
  --sun-ink: #4a3300;
  --coral: #ff7a6b;
  --pink: #ff8fb1;
  --grass: #8fd14f;
  --stamp: #e2412f;
  --sand: #fff6e0;
  --paper: #fffdf7;
  --night: #141a46;
  --night-2: #222a66;
  --gold: #f6d47a;
  --font-display: 'Huninn', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-body: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-num: 'Outfit', 'Noto Sans TC', sans-serif;
  --font-pixel: 'Silkscreen', 'Outfit', monospace;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-panel: 0 18px 44px rgba(10, 50, 80, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-float: 0 6px 16px rgba(10, 50, 80, 0.14);
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 32 32'%3E%3Cpath d='M4 2 L4 26 L10.5 20 L15 29.5 L19.5 27.5 L15.2 18.4 L24 18 Z' fill='%23fff' stroke='%2312344D' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
  --hud-h: 64px;
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hud-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  font-family: var(--font-body); color: var(--ink); line-height: 1.75;
  background: var(--paper);
  cursor: var(--cursor);
}
a, button, summary, label { cursor: var(--cursor); }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--sun-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
main { display: block; min-height: 70vh; }
main.leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.18s, transform 0.18s; }
main.entering { animation: page-in 0.5s var(--out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --face: #fff; --edge: #c5d6e0; --txt: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 0; border-radius: 16px; text-decoration: none;
  font-family: var(--font-display); font-size: 17px; line-height: 1.1; color: var(--txt);
  background: var(--face);
  box-shadow: 0 5px 0 var(--edge), 0 10px 18px rgba(10, 50, 80, 0.2);
  transition: transform 0.12s var(--out), box-shadow 0.12s var(--out), filter 0.2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; left: 10px; right: 10px; top: 4px; height: 38%;
  border-radius: 12px 12px 30px 30px; background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge), 0 14px 22px rgba(10, 50, 80, 0.24); filter: saturate(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 4px 8px rgba(10, 50, 80, 0.2); }
.btn:disabled { filter: grayscale(0.6); opacity: 0.6; transform: none; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-sun { --face: var(--sun); --edge: var(--sun-deep); --txt: var(--sun-ink); }
.btn-discord { --face: #5865f2; --edge: #3b45b8; --txt: #fff; }
.btn-lagoon { --face: var(--lagoon-bright); --edge: var(--lagoon); --txt: #fff; }
.btn-red { --face: #e5483a; --edge: #a8281d; --txt: #fff; }
.btn-glass { --face: rgba(255, 255, 255, 0.86); --edge: rgba(18, 52, 77, 0.22); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-sm { padding: 8px 16px; font-size: 15px; border-radius: 12px; box-shadow: 0 4px 0 var(--edge), 0 8px 14px rgba(10, 50, 80, 0.16); }
.btn-lg { padding: 16px 30px; font-size: 21px; border-radius: 20px; }
.btn-lg small { display: block; font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.12em; opacity: 0.75; }
.btn-lg:has(small) { flex-direction: column; gap: 4px; padding-top: 13px; padding-bottom: 11px; }
.btns { display: flex; flex-wrap: wrap; gap: 16px 14px; align-items: center; }

/* ---------------------------------------------------------------- HUD nav */
.hud {
  position: fixed; z-index: 50; top: 12px; left: 50%; translate: -50% 0;
  width: min(1240px, calc(100% - 24px)); height: var(--hud-h);
  display: flex; align-items: center; gap: 14px; padding: 0 12px 0 14px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 20px; box-shadow: var(--shadow-panel);
  animation: hud-in 0.8s 0.1s var(--out) both;
}
@keyframes hud-in { from { transform: translateY(-140%); } }
.hud-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.hud-brand img { width: 36px; height: 36px; transition: transform 0.3s var(--spring); }
.hud-brand:hover img { transform: rotate(-12deg) scale(1.12); }
.hud-brand b { font-weight: 400; color: var(--coral); }
.hud-links { display: flex; gap: 2px; margin: 0 auto; }
.hud-links a {
  position: relative; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-2);
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.hud-links a:hover { background: rgba(8, 124, 140, 0.1); color: var(--lagoon); }
.hud-links a.on {
  color: #fff; background: var(--lagoon-bright);
  box-shadow: 0 3px 0 var(--lagoon), 0 6px 12px rgba(8, 124, 140, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
.hud-links a.on::after { /* the sticker buttons' glossy top */
  content: ''; position: absolute; left: 6px; right: 6px; top: 3px; height: 40%; border-radius: 8px 8px 16px 16px;
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)); pointer-events: none;
}
.hud-links a.on:hover { background: var(--lagoon-bright); color: #fff; }
.hud-links a.play-link.on, .hud-links a.play-link.on:hover { color: #fff; background: var(--stamp); box-shadow: 0 3px 0 #a8281d, 0 6px 12px rgba(226, 65, 47, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.hud-links a.play-link.on::before { background: var(--sun); color: var(--sun-ink); }
.hud-links a.play-link { color: var(--stamp); }
.hud-links a.play-link::before { content: 'PLAY'; position: absolute; top: -6px; right: -4px; font-family: var(--font-pixel); font-size: 8px; line-height: 1; padding: 2px 4px; border-radius: 4px; color: #fff; background: var(--stamp); }
.hud-right { display: flex; align-items: center; gap: 10px; }
.hud-menu { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(18, 52, 77, 0.07); place-items: center; }
.hud-menu svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }

/* ---------------------------------------------------------------- music dock (the game's three built-in tracks) */
.dock {
  position: fixed; z-index: 60; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 999px; box-shadow: var(--shadow-panel);
  animation: dock-in 0.8s 0.6s var(--out) both;
}
@keyframes dock-in { from { transform: translateY(160%); } }
.dock-disc { position: relative; width: 46px; height: 46px; flex: none; border: 0; padding: 0; border-radius: 50%; background: #111; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
.dock-disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; animation: spin 6s linear infinite paused; }
.dock-disc::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); }
.dock.playing .dock-disc img { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.dock-info { display: grid; line-height: 1.25; min-width: 0; max-width: 170px; }
.dock-info b { font-family: var(--font-display); font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-info small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); transition: background 0.2s, color 0.2s; flex: none; }
.dock-btn:hover { background: rgba(8, 124, 140, 0.12); color: var(--lagoon); }
.dock-btn svg { width: 20px; height: 20px; fill: currentColor; }
.dock-play { background: var(--sun); color: var(--sun-ink); box-shadow: 0 3px 0 var(--sun-deep); }
.dock-play:hover { background: #ffd35f; color: var(--sun-ink); }
.dock-play .i-pause, .dock.playing .dock-play .i-play { display: none; }
.dock.playing .dock-play .i-pause { display: block; }
.dock-mute { position: relative; }
.dock-mute .i-off, .dock.muted .dock-mute .i-on { display: none; }
.dock.muted .dock-mute .i-off { display: block; }
.dock.muted .dock-mute { color: var(--stamp); }
.dock-eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; width: 16px; flex: none; }
.dock-eq i { flex: 1; background: var(--lagoon-bright); height: 30%; border-radius: 1px; }
.dock.playing:not(.muted) .dock-eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.dock-eq i:nth-child(2) { animation-delay: -0.3s !important; }
.dock-eq i:nth-child(3) { animation-delay: -0.6s !important; }
@keyframes eq { 0% { height: 20%; } 50% { height: 100%; } 100% { height: 45%; } }
.dock-hint {
  position: absolute; right: 8px; bottom: calc(100% + 10px); padding: 6px 12px; border-radius: 10px; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--ink); box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s var(--out); pointer-events: none;
}
.dock-hint::after { content: ''; position: absolute; right: 26px; top: 100%; border: 6px solid transparent; border-top-color: var(--ink); }
.dock-hint.show { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- sections */
section { position: relative; padding: 96px 0; }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 6px;
  font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.12em; color: #fff; background: var(--ink);
}
.kicker.sun { background: var(--sun); color: var(--sun-ink); }
.kicker.coral { background: var(--coral); }
.kicker.lagoon { background: var(--lagoon); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h2 em, h1 em { font-style: normal; color: var(--lagoon); background: linear-gradient(transparent 62%, rgba(255, 197, 61, 0.55) 62%); padding: 0 4px; }
h3 { font-size: 24px; }
.sec-head p, .lead { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.bg-shallow { background: var(--shallow); }
.bg-sand { background: var(--sand); }
.wave-top::before {
  content: ''; position: absolute; left: 0; right: 0; top: -23px; height: 24px; background: inherit;
  -webkit-mask: radial-gradient(circle at 20px 26px, #000 18px, transparent 19px) -20px 0 / 40px 24px repeat-x;
  mask: radial-gradient(circle at 20px 26px, #000 18px, transparent 19px) -20px 0 / 40px 24px repeat-x;
}

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--out), transform 0.7s var(--out); transition-delay: var(--d, 0s); }
[data-reveal='left'] { transform: translateX(-30px); }
[data-reveal='pop'] { transform: scale(0.94); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- page hero (sub pages) */
.page-hero { padding: calc(var(--hud-h) + 90px) 0 70px; overflow: hidden; background: linear-gradient(180deg, #bfe9f2 0%, var(--shallow) 70%, var(--paper) 100%); }
.page-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.page-hero .lead { font-size: 18px; max-width: 34em; }
.page-hero .btns { margin-top: 26px; }
.page-hero.night { background: radial-gradient(ellipse at 70% 10%, #3a3f8f 0%, var(--night-2) 40%, var(--night) 100%); color: #eef0ff; }
.page-hero.night .lead { color: #c3c8ee; }
.page-hero.night h1 em { color: var(--gold); background: linear-gradient(transparent 62%, rgba(246, 212, 122, 0.25) 62%); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a {
  padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px;
  background: var(--glass-strong); box-shadow: var(--shadow-float); transition: transform 0.2s var(--spring), background 0.2s;
}
.toc a:hover { transform: translateY(-2px); background: #fff; color: var(--lagoon); }
.night .toc a { background: rgba(255, 255, 255, 0.1); color: #eef0ff; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.2); }

/* ---------------------------------------------------------------- monitor: a framed game screen with a video */
.monitor {
  position: relative; border-radius: 18px; overflow: hidden; background: #0d2233;
  box-shadow: 0 24px 50px rgba(10, 50, 80, 0.28), 0 0 0 6px #fff, 0 0 0 8px rgba(18, 52, 77, 0.1);
}
.monitor-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 700; }
.monitor-bar .lights { display: flex; gap: 6px; }
.monitor-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.monitor-bar .lights i:nth-child(2) { background: var(--sun); }
.monitor-bar .lights i:nth-child(3) { background: var(--grass); }
.monitor-bar .rec { margin-left: auto; display: flex; align-items: center; gap: 5px; font-family: var(--font-pixel); font-size: 10px; color: var(--stamp); }
.monitor-bar .rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--stamp); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.screen { position: relative; aspect-ratio: 16 / 9; background: #0d2233 center / cover no-repeat; }
.screen video, .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen-tag {
  position: absolute; left: 12px; top: 12px; padding: 3px 8px; border-radius: 6px;
  font-family: var(--font-pixel); font-size: 11px; color: #fff; background: rgba(18, 52, 77, 0.75);
}

/* ---------------------------------------------------------------- feature rows: footage beside words */
.feats { display: grid; gap: 88px; }
.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 54px; align-items: center; }
.feat.flip > .feat-media { order: 2; }
.feat-text h3 { font-size: clamp(26px, 3vw, 34px); margin: 4px 0 12px; }
.feat-text h3 em { font-style: normal; color: var(--coral); }
.feat-text p { margin: 0 0 12px; color: var(--ink-2); }
.feat-media { position: relative; display: grid; gap: 14px; }
.feat-media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-media .pair .monitor { box-shadow: 0 14px 30px rgba(10, 50, 80, 0.22), 0 0 0 4px #fff; border-radius: 12px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 5px;
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17 19 7' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 2px 0 #5d9a2a;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.chip.new { background: var(--stamp); color: #fff; border-color: transparent; font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em; }
.note { font-size: 14px; color: var(--muted); }
.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: #fff;
  border: 2px dashed rgba(8, 124, 140, 0.35); font-size: 15px;
}
.callout b { color: var(--lagoon); }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 22px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-float); text-decoration: none;
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}
a.card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 18px 34px rgba(10, 50, 80, 0.2); }
.card h3 { font-size: 22px; margin: 6px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--shallow); }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--lagoon); font-size: 15px; }
.card .more::after { content: ' →'; transition: margin 0.2s; }
a.card:hover .more::after { margin-left: 6px; }
.pcard { padding: 0; overflow: hidden; }
.pcard .thumb { position: relative; aspect-ratio: 16 / 9; background: #0d2233 center / cover; overflow: hidden; }
.pcard .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard .tag { position: absolute; left: 12px; top: 12px; z-index: 1; }
.pcard .body .kicker { align-self: flex-start; }

/* building grid */
.builds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.build {
  padding: 12px 10px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: center;
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}
.build:hover { transform: translateY(-5px) scale(1.03); box-shadow: var(--shadow-float); }
.build img { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; }
.build b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.build small { color: var(--muted); font-size: 12px; }
.decor-strip { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.decor-strip img { width: 52px; height: 52px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); image-rendering: pixelated; transition: transform 0.2s var(--spring); }
.decor-strip img:hover { transform: translateY(-4px) scale(1.15) rotate(-4deg); }

/* AI roster */
.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.roster div { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.roster b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.roster span { font-size: 14px; color: var(--muted); }

/* stage select (怎麼玩) */
.stage { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.level {
  position: relative; width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 14px; overflow: hidden;
  border: 0; border-radius: 14px; text-align: left; background: #fff; box-shadow: 0 3px 0 rgba(18, 52, 77, 0.12);
  transition: transform 0.2s var(--out), background 0.2s;
}
.level:hover { transform: translateX(4px); }
.level .lv { font-family: var(--font-pixel); font-size: 13px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--shallow); color: var(--lagoon); flex: none; }
.level b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 17px; line-height: 1.3; }
.level small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.level .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--sun); }
.level[aria-selected='true'] { background: var(--ink); color: #fff; }
.level[aria-selected='true'] small { color: #b8cfdd; }
.level[aria-selected='true'] .lv { background: var(--sun); color: var(--sun-ink); }
.stage-foot { padding: 16px 20px 18px; background: #fff; }
.stage-foot h3 { font-size: 22px; }
.stage-foot p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 3px 0 rgba(18, 52, 77, 0.06); }
.faq summary { list-style: none; padding: 16px 20px; font-weight: 700; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; font-family: var(--font-pixel); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--sun); color: var(--sun-ink); flex: none; font-size: 12px; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 22px; color: var(--lagoon); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px 58px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 8px; }

/* ---------------------------------------------------------------- Discord band */
.cta {
  position: relative; overflow: hidden; padding: 70px 0; color: #fff;
  background: radial-gradient(circle at 15% 20%, #7984ff 0, transparent 40%), linear-gradient(135deg, #5865f2, #3d47c4);
}
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta h2 em { color: var(--sun); background: none; }
.cta p { margin: 10px 0 0; color: #e1e4ff; font-size: 17px; }
.cta .pix { position: absolute; right: -30px; bottom: -40px; width: 260px; opacity: 0.12; transform: rotate(-12deg); pointer-events: none; }

/* ---------------------------------------------------------------- footer */
.foot { padding: 48px 0 110px; background: var(--ink); color: #c9dbe6; font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot img { width: min(300px, 100%); height: auto; aspect-ratio: 1000 / 334; margin: 0 0 14px -8px; }
.foot h4 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 17px; color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: #c9dbe6; text-decoration: none; }
.foot a:hover { color: var(--sun); }
.foot .copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; color: #8fa9ba; }

/* ---------------------------------------------------------------- trailer modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8, 24, 36, 0.78); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(1100px, 100%); }
.modal video { width: 100%; border-radius: 14px; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.modal-close { position: absolute; right: -6px; top: -50px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hud-brand span { display: none; }
}
@media (max-width: 960px) {
  .hud-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 10px; flex-direction: column; gap: 4px;
    background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border-radius: 18px; box-shadow: var(--shadow-panel); display: none;
  }
  .hud.open .hud-links { display: flex; }
  .hud-links a { padding: 12px 14px; font-size: 16px; }
  .hud-links a.play-link::before { top: 50%; right: 40px; translate: 0 -50%; }
  .hud-menu { display: grid; }
  .hud-right { margin-left: auto; }
  .hud-brand span { display: inline; }
  .page-hero .wrap, .feat, .stage, .cta .wrap { grid-template-columns: 1fr; }
  .feat { gap: 26px; }
  .feat.flip > .feat-media { order: 0; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  :root { --hud-h: 56px; }
  .hud { top: 8px; width: calc(100% - 16px); gap: 8px; padding: 0 8px 0 10px; }
  .hud-brand span { display: none; }
  .hud-right .btn { padding: 8px 12px; font-size: 14px; }
  .dock { right: 10px; bottom: 10px; left: 10px; border-radius: 22px; }
  .dock-info { flex: 1; max-width: none; }
  .btn-lg { padding: 14px 22px; font-size: 18px; }
  .feat-media .pair { grid-template-columns: 1fr; }
  .stage { gap: 16px; }
  .levels { grid-template-columns: 1fr 1fr; }
  .level small { display: none; }
  .foot .wrap { grid-template-columns: 1fr; }
  .faq details > div { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- home */
.home-hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--hud-h) + 40px) 0 80px; overflow: hidden; background: #6fc4dc url(../video/hero.webp) center / cover; }
.home-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 62% 62% at 50% 54%, rgba(255, 253, 247, 0.9) 0%, rgba(255, 253, 247, 0.62) 48%, rgba(255, 253, 247, 0) 80%); }
.home-inner { position: relative; display: grid; justify-items: center; gap: 18px; text-align: center; }
.home-inner .btns { justify-content: center; }
.home-inner .logo-stage { width: min(100%, 860px); }
.live-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px; background: var(--glass-strong); box-shadow: var(--shadow-float);
}
.live-pill .blink { width: 10px; height: 10px; border-radius: 50%; background: var(--stamp); animation: blink 1.4s infinite; }
.home-lead { margin: 0 auto; max-width: 34em; font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); }
.home-lead b { color: var(--lagoon); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0; z-index: 1; display: grid; justify-items: center; gap: 4px;
  text-decoration: none; color: var(--ink); transition: transform 0.25s var(--spring);
}
.scroll-cue:hover { transform: translateY(3px); }
.sc-mouse {
  position: relative; width: 26px; height: 40px; border-radius: 14px; background: var(--glass-strong);
  border: 3px solid var(--ink); box-shadow: 0 4px 0 rgba(18, 52, 77, 0.25), 0 8px 18px rgba(10, 50, 80, 0.2);
}
.sc-mouse i { position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--coral); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.sc-arrows { display: grid; justify-items: center; margin-top: -2px; }
.sc-arrows i { width: 10px; height: 10px; margin-top: -3px; border: solid var(--ink); border-width: 0 3px 3px 0; rotate: 45deg; animation: chev 1.6s ease-in-out infinite; }
.sc-arrows i:nth-child(2) { animation-delay: 0.2s; }
@keyframes chev { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.sc-text {
  font-family: var(--font-display); font-size: 14px; padding: 2px 10px; border-radius: 999px;
  background: var(--sun); color: var(--sun-ink); box-shadow: 0 3px 0 var(--sun-deep);
}
.cards.three { grid-template-columns: repeat(3, 1fr); }
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.new-item {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none;
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
}
.new-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.new-item img { grid-row: span 2; width: 56px; height: 56px; object-fit: cover; object-position: top; border-radius: 14px; background: var(--shallow); }
.new-item img.px { object-fit: contain; image-rendering: pixelated; }
.new-item img.round { border-radius: 50%; }
.new-item b { font-family: var(--font-display); font-weight: 400; font-size: 17px; line-height: 1.3; }
.new-item span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.trailer-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.trailer-thumb { padding: 0; border: 0; width: 100%; text-align: left; }
.big-play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--sun); color: var(--sun-ink); box-shadow: 0 6px 0 var(--sun-deep), 0 16px 30px rgba(0, 0, 0, 0.3); transition: transform 0.25s var(--spring);
}
.big-play svg { width: 38px; height: 38px; fill: currentColor; margin-left: 4px; }
.trailer-thumb:hover .big-play { transform: scale(1.1); }
@media (max-width: 960px) {
  .cards.three, .news { grid-template-columns: 1fr 1fr; }
  .trailer-row { grid-template-columns: 1fr; }
  .home-shade { background: linear-gradient(180deg, rgba(255, 253, 247, 0.55), rgba(255, 253, 247, 0.92) 40%, rgba(255, 253, 247, 0.75)); }
}
@media (max-width: 600px) {
  .cards.three, .news { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; padding-bottom: 90px; }
  .home-inner .logo-stage { width: 112%; }
}
