:root {
  --ink: #07151f;
  --ink-2: #0c2330;
  --panel: rgba(13, 36, 47, .88);
  --paper: #f6f1e5;
  --paper-2: #e9e0cb;
  --jade: #63e6be;
  --jade-deep: #25b789;
  --gold: #d6b56f;
  --coral: #ff8b72;
  --sky: #78c8ff;
  --text: #f5f8f7;
  --muted: #a8bbc1;
  --line: rgba(255,255,255,.12);
  --shadow: 0 24px 80px rgba(0,0,0,.34);
  --radius: 24px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 15%, rgba(33,133,119,.22), transparent 27rem),
    radial-gradient(circle at 88% 70%, rgba(194,141,74,.14), transparent 32rem),
    linear-gradient(155deg, #06131c 0%, #0b202a 52%, #07151f 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
::selection { background: var(--jade); color: var(--ink); }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 999; padding: 10px 14px; border-radius: 8px; color: var(--ink); background: #fff; transition: top .2s; }
.skip-link:focus { top: 12px; }
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35; animation: drift 16s ease-in-out infinite alternate; }
.orb-one { width: 340px; height: 340px; top: -160px; right: 6%; background: radial-gradient(circle, rgba(99,230,190,.5), transparent 70%); }
.orb-two { width: 500px; height: 500px; bottom: -280px; left: -100px; background: radial-gradient(circle, rgba(214,181,111,.25), transparent 70%); animation-delay: -7s; }
.grain { position: absolute; inset: 0; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E"); }

.game-header {
  position: sticky; top: 0; z-index: 50;
  height: calc(72px + var(--safe-top));
  padding: var(--safe-top) max(24px, calc((100vw - 1280px)/2)) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5,17,25,.7); backdrop-filter: blur(20px) saturate(130%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(99,230,190,.36); border-radius: 13px; color: var(--ink); background: linear-gradient(145deg, var(--jade), var(--gold)); font-weight: 950; box-shadow: 0 10px 24px rgba(37,183,137,.18); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.network-pill { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.network-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px currentColor; }
.network-pill.online i { background: var(--jade); }
.network-pill.offline i { background: var(--coral); }
.icon-btn, .website-link { min-height: 40px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.05); transition: transform .2s, background .2s, border-color .2s; }
.icon-btn { width: 40px; cursor: pointer; }
.website-link { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; font-size: 13px; font-weight: 750; }
.icon-btn:hover, .website-link:hover { transform: translateY(-2px); border-color: rgba(99,230,190,.5); background: rgba(99,230,190,.08); }

.progress-shell { position: sticky; top: calc(72px + var(--safe-top)); z-index: 40; padding: 10px max(24px, calc((100vw - 1280px)/2)); border-bottom: 1px solid var(--line); background: rgba(7,21,31,.86); backdrop-filter: blur(18px); }
.progress-meta { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); }
.progress-meta span { margin-right: auto; }
.progress-meta strong { color: var(--jade); font-size: 18px; }
.progress-meta small { font-size: 10px; }
.progress-bar { height: 3px; margin: 6px 0 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--jade), var(--gold)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.stage-nav { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.stage-nav li { overflow: hidden; color: #82989f; font-size: 10px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.stage-nav li::before { content: attr(data-index); display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 5px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; }
.stage-nav li.active { color: var(--gold); }
.stage-nav li.done { color: var(--jade); }

#game-main { position: relative; z-index: 1; min-height: calc(100vh - 150px); }
#app { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.scene { min-height: calc(100vh - 166px); padding: clamp(48px,7vw,88px) 0; animation: sceneIn .48s ease both; }
.scene-head { max-width: 780px; margin-bottom: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--jade); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 { max-width: 900px; margin-bottom: 20px; font-size: clamp(42px,7vw,88px); line-height: .98; }
h2 { margin-bottom: 14px; font-size: clamp(30px,4vw,52px); line-height: 1.08; }
h3 { font-size: 18px; }
.lead { max-width: 710px; color: #cad6d8; font-size: clamp(16px,1.7vw,20px); line-height: 1.75; }
.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: 12px; line-height: 1.65; }

.home-scene { position: relative; display: grid; align-content: center; }
.home-scene::before { content: "秘"; position: absolute; top: 8%; right: 1%; color: rgba(255,255,255,.025); font-family: STKaiti, KaiTi, serif; font-size: min(42vw,540px); line-height: 1; z-index: -1; }
.home-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px,6vw,80px); align-items: center; }
.hero-copy .chapter-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 13px; border: 1px solid rgba(214,181,111,.28); border-radius: 999px; color: var(--gold); background: rgba(214,181,111,.07); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.gradient-text { color: transparent; background: linear-gradient(110deg, #fff 10%, var(--jade) 52%, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.primary-btn, .secondary-btn, .text-btn { position: relative; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s, background .2s; }
.primary-btn { border: 0; color: #062119; background: linear-gradient(120deg, var(--jade), #b6efc8 52%, var(--gold)); box-shadow: 0 16px 34px rgba(37,183,137,.2); }
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 21px 42px rgba(37,183,137,.28); filter: saturate(1.1); }
.primary-btn:disabled { cursor: not-allowed; opacity: .46; filter: grayscale(.5); transform: none; box-shadow: none; }
.secondary-btn { border: 1px solid rgba(255,255,255,.18); color: var(--text); background: rgba(255,255,255,.055); }
.secondary-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.text-btn { min-height: 40px; padding: 0 10px; border: 0; color: var(--muted); background: transparent; }
.text-btn:hover { color: var(--jade); }
.hero-panel { position: relative; min-height: 420px; display: grid; place-items: center; }
.journey-visual { position:relative;width:min(590px,100%);aspect-ratio:1.44;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:28px;background:radial-gradient(circle at 70% 30%,rgba(214,181,111,.23),transparent 45%),#0b2637;box-shadow:0 30px 90px rgba(0,0,0,.4);isolation:isolate; }
.journey-visual::after { content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(5,18,28,.58),transparent 45%),linear-gradient(0deg,rgba(5,18,28,.84),transparent 46%);pointer-events:none; }
.journey-visual img { width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform 7s ease; }
.journey-visual:hover img { transform:scale(1.035); }
.journey-caption { position:absolute;z-index:2;left:22px;right:22px;bottom:20px;text-shadow:0 3px 20px rgba(0,0,0,.55); }
.journey-caption span,.journey-caption strong{display:block}.journey-caption span{margin-bottom:5px;color:var(--gold);font-size:10px;font-weight:850;letter-spacing:.13em}.journey-caption strong{max-width:300px;font-size:19px;line-height:1.25}
.quest-map { position: relative; width: min(390px,100%); aspect-ratio: 1; border: 1px solid rgba(99,230,190,.18); border-radius: 50%; background: radial-gradient(circle, rgba(99,230,190,.12), rgba(255,255,255,.02) 52%, transparent 53%); box-shadow: inset 0 0 70px rgba(99,230,190,.07), 0 0 80px rgba(0,0,0,.2); animation: breathe 5s ease-in-out infinite; }
.quest-map::before, .quest-map::after { content: ""; position: absolute; inset: 13%; border: 1px dashed rgba(214,181,111,.2); border-radius: 50%; }
.quest-map::after { inset: 31%; border-style: solid; }
.map-core { position: absolute; inset: 37%; display: grid; place-items: center; border-radius: 30%; color: var(--ink); background: linear-gradient(140deg,var(--jade),var(--gold)); font-size: clamp(36px,6vw,60px); font-weight: 950; transform: rotate(45deg); box-shadow: 0 15px 45px rgba(99,230,190,.2); }
.map-core span { transform: rotate(-45deg); }
.map-node { position: absolute; width: 70px; text-align: center; color: #dbe4e4; font-size: 11px; font-weight: 750; }
.map-node i { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 6px; border: 1px solid var(--line); border-radius: 50%; background: rgba(7,21,31,.85); font-style: normal; }
.map-node:nth-child(2){left:6%;top:18%}.map-node:nth-child(3){right:4%;top:21%}.map-node:nth-child(4){left:4%;bottom:20%}.map-node:nth-child(5){right:5%;bottom:18%}
.feature-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 46px; }
.feature { padding: 16px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.feature strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 14px; }

.selection-layout { display: grid; grid-template-columns: .34fr .66fr; gap: 32px; }
.character-banner { position:relative;height:clamp(190px,27vw,330px);margin:0 0 28px;overflow:hidden;border:1px solid rgba(214,181,111,.24);border-radius:var(--radius);background:#0c2330;box-shadow:var(--shadow); }
.character-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,18,27,.9),transparent 52%),linear-gradient(90deg,rgba(5,18,27,.16),transparent 40%,rgba(5,18,27,.16));pointer-events:none}
.character-banner img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 43%}
.character-banner figcaption{position:absolute;z-index:1;left:22px;bottom:17px;color:#e9f0ef;font-size:12px;font-weight:800;letter-spacing:.06em;text-shadow:0 2px 14px rgba(0,0,0,.6)}
.choice-panel, .paper-card, .glass-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.045); box-shadow: var(--shadow); }
.choice-panel { align-self: start; padding: 24px; position: sticky; top: 190px; }
.choice-label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.03); cursor: pointer; }
.segmented button.selected { color: var(--ink); border-color: transparent; background: var(--jade); font-weight: 850; }
.role-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.role-card { position: relative; min-height: 210px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; text-align: left; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)); cursor: pointer; transition: transform .25s, border-color .25s, background .25s; }
.role-card:hover { transform: translateY(-5px); border-color: rgba(99,230,190,.38); }
.role-card.selected { border-color: var(--jade); background: linear-gradient(145deg, rgba(99,230,190,.13), rgba(214,181,111,.06)); box-shadow: inset 0 0 0 1px rgba(99,230,190,.25), 0 20px 50px rgba(0,0,0,.2); }
.role-card .role-glyph { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 32px; border-radius: 14px; color: var(--ink); background: var(--role-color,var(--jade)); font-size: 21px; font-weight: 950; }
.role-card h3 { margin-bottom: 7px; }
.role-card .role-title { display: block; color: var(--gold); font-size: 11px; font-weight: 800; }
.role-card p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.role-card .check { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; display: none; place-items: center; border-radius: 50%; color: var(--ink); background: var(--jade); font-size: 12px; font-weight: 900; }
.role-card.selected .check { display: grid; }
.sticky-action { margin-top: 18px; }

.catch-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 20px; }
.catch-arena { position: relative; min-height: 480px; overflow: hidden; border: 1px solid rgba(99,230,190,.22); border-radius: 26px; background: linear-gradient(180deg, rgba(5,14,21,.75), rgba(17,51,61,.88)); box-shadow: inset 0 0 100px rgba(99,230,190,.05), var(--shadow); touch-action: none; user-select: none; }
.catch-arena::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom,#000,transparent); }
.arena-intro { position:absolute;z-index:8;inset:0;display:grid;place-content:center;justify-items:center;gap:10px;padding:30px;text-align:center;background:radial-gradient(circle,rgba(20,63,72,.82),rgba(5,18,27,.94)); }
.arena-intro strong{font-size:26px}.arena-intro span{margin-bottom:12px;color:var(--muted);font-size:12px}
.arena-hud { position: absolute; z-index: 5; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; pointer-events: none; }
.hud-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,21,31,.78); font-size: 12px; font-weight: 750; }
.hud-chip strong { color: var(--jade); }
.falling-token { position: absolute; z-index: 3; width: max-content; min-width: 132px; max-width: 210px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; color: #fff; background: linear-gradient(120deg,rgba(37,183,137,.94),rgba(33,88,100,.97)); box-shadow: 0 12px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12); font-size: 14px; font-weight: 800; line-height: 1.4; text-align: center; will-change: transform; }
.catcher { position: absolute; z-index: 4; left: 50%; bottom: 18px; width: 150px; height: 62px; transform: translateX(-50%); transition: left .07s linear; }
.catcher-tool { position: absolute; inset: 10px 0 0; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--gold); border-radius: 8px 8px 40px 40px; color: var(--gold); background: linear-gradient(180deg, rgba(214,181,111,.1), rgba(7,21,31,.94)); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.catcher-tool::before { content:""; position:absolute; top:-8px; left:8px; right:8px; height:14px; border:2px solid var(--gold); border-radius:50%; }
.catcher-avatar { position: absolute; left: 50%; top: -27px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--jade); transform: translateX(-50%); font-size: 12px; font-weight: 950; }
.catch-aside { display: flex; flex-direction: column; gap: 14px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.045); }
.stat-card h3 { margin-bottom: 12px; font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 8px 11px; border: 1px solid rgba(99,230,190,.26); border-radius: 999px; color: var(--jade); background: rgba(99,230,190,.08); font-size: 12px; line-height: 1.35; }
.empty-state { color: var(--muted); font-size: 12px; line-height: 1.6; }
.keyboard-tip { margin-top: auto; padding: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
kbd { padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; color: var(--text); background: rgba(255,255,255,.08); font: inherit; }

.quiz-shell { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 28px; }
.quiz-index { align-self: start; position: sticky; top: 190px; }
.quiz-index ol { margin: 16px 0 0; padding: 0; list-style: none; }
.quiz-index li { display: flex; align-items: center; gap: 9px; padding: 8px 0; color: var(--muted); font-size: 11px; }
.quiz-index li i { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.quiz-index li.active { color: var(--gold); }.quiz-index li.done { color: var(--jade); }.quiz-index li.done i { background: currentColor; }
.quiz-card { padding: clamp(22px,4vw,40px); }
.question-count { color: var(--gold); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.quiz-card h3 { margin: 12px 0 24px; font-size: clamp(23px,3vw,34px); line-height: 1.35; }
.options { display: grid; gap: 10px; }
.option { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 15px; text-align: left; background: rgba(255,255,255,.035); cursor: pointer; transition: transform .18s, border-color .18s, background .18s; }
.option:hover:not(:disabled) { transform: translateX(4px); border-color: rgba(99,230,190,.42); background: rgba(99,230,190,.055); }
.option:disabled { cursor: default; }
.option .letter { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 850; }
.option.correct { border-color: var(--jade); background: rgba(99,230,190,.1); }.option.correct .letter { color: var(--ink); border-color: var(--jade); background: var(--jade); }
.option.wrong { border-color: var(--coral); background: rgba(255,139,114,.08); }.option.wrong .letter { color: var(--ink); border-color: var(--coral); background: var(--coral); }
.feedback-box { margin-top: 18px; padding: 18px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; color: #cfdbdc; background: rgba(214,181,111,.07); line-height: 1.7; animation: sceneIn .28s ease; }
.feedback-box strong { display: block; margin-bottom: 4px; color: var(--gold); }
.source-line { margin-top: 9px; color: var(--muted); font-size: 10px; }

.official-entry-wrap { position: relative; margin: 16px 0 34px; padding-top: 24px; }
.official-entry-arrow { position: absolute; z-index: 2; top: -14px; left: 12px; color: var(--gold); font-size: 42px; line-height: 1; filter: drop-shadow(0 7px 18px rgba(214,181,111,.35)); animation: entryPoint 1.55s ease-in-out infinite; }
.official-entry { position: relative; min-height: 178px; display: grid; grid-template-columns: 106px minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 28px 30px; overflow: hidden; border: 1px solid rgba(214,181,111,.68); border-radius: 24px; color: var(--text); background: radial-gradient(circle at 12% 20%,rgba(99,230,190,.24),transparent 30%),linear-gradient(120deg,rgba(214,181,111,.18),rgba(99,230,190,.12) 56%,rgba(255,255,255,.055)); box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.05); text-decoration: none; transition: transform .22s,border-color .22s,box-shadow .22s; }
.official-entry::after { content:""; position:absolute; inset:-60% -15%; background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.12) 50%,transparent 60%); transform:translateX(-45%); transition:transform .65s ease; pointer-events:none; }
.official-entry:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 28px 80px rgba(0,0,0,.34), 0 0 34px rgba(214,181,111,.12); }
.official-entry:hover::after { transform: translateX(45%); }
.official-entry-kicker { position:absolute;top:14px;right:18px;padding:6px 9px;border-radius:999px;color:#07151f;background:var(--gold);font-size:10px;font-weight:900;letter-spacing:.08em; }
.official-entry-mark { width: 96px; aspect-ratio: 1; display:grid;place-items:center;border:1px solid rgba(99,230,190,.58);border-radius:26px;color:#07151f;background:linear-gradient(145deg,var(--jade),#b8f2df);box-shadow:0 13px 30px rgba(21,117,95,.3);font-size:27px;font-weight:950;letter-spacing:-.04em; }
.official-entry-copy { display:grid;gap:8px; }
.official-entry-copy strong { color:#fff;font-size:clamp(24px,3.2vw,38px);line-height:1.15; }
.official-entry-copy small { max-width:650px;color:#c7d6d7;font-size:13px;line-height:1.7; }
.official-entry-go { align-self:end;color:var(--gold);font-size:12px;font-weight:850;white-space:nowrap; }

.channel-grid, .city-grid { display: grid; gap: 12px; }
.channel-grid { grid-template-columns: repeat(4,1fr); }
.channel-card, .city-card { min-height: 168px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; text-align: left; background: rgba(255,255,255,.04); cursor: pointer; transition: transform .2s,border-color .2s,background .2s; }
.channel-card:hover, .city-card:hover { transform: translateY(-4px); border-color: rgba(214,181,111,.4); }
.channel-card.selected, .city-card.selected { border-color: var(--jade); background: rgba(99,230,190,.09); }
.channel-icon { display: block; margin-bottom: 26px; color: var(--gold); font-size: 26px; }
.channel-card h3, .city-card h3 { margin-bottom: 7px; }
.channel-card p, .city-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.decision-feedback { margin: 16px 0 28px; }
.city-grid { grid-template-columns: repeat(5,1fr); }
.city-card { min-height: 130px; text-align: center; }
.city-card span { display: block; margin-bottom: 10px; color: var(--jade); font-size: 11px; }
.city-card h3 { font-size: 17px; }
.convergence { position: relative; margin-top: 34px; padding: 28px; overflow: hidden; scroll-margin-top: 165px; border: 1px solid rgba(214,181,111,.25); border-radius: 22px; background: linear-gradient(120deg, rgba(214,181,111,.08),rgba(99,230,190,.06)); text-align: center; }
.convergence::before { content:""; position:absolute; inset:0; background: repeating-linear-gradient(90deg,transparent 0 9.8%,rgba(214,181,111,.08) 10% 10.2%,transparent 10.4% 20%); opacity:.5; }
.official-seal { position: relative; width: 90px; height: 90px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 23px; font-weight: 950; box-shadow: inset 0 0 0 6px rgba(214,181,111,.06); }
.qr-save-label { position:relative;width:max-content;margin:0 auto 8px;padding:6px 12px;border-radius:999px;color:#07151f;background:var(--gold);font-size:14px;font-weight:950;letter-spacing:.08em; }
.qr-grid { position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,260px));justify-content:center;gap:18px;margin:24px auto 8px; }
.qr-card { margin:0;padding:14px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(7,21,31,.72);box-shadow:0 16px 38px rgba(0,0,0,.24); }
.qr-image-shell { aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:#fff; }
.qr-image-shell img { width:100%;height:100%;display:block;object-fit:contain; }
.qr-card-wechat .qr-image-shell img { width:84%;height:84%; }
.qr-card figcaption { display:grid;gap:4px;margin-top:11px;text-align:left; }
.qr-card figcaption strong { color:var(--text);font-size:14px; }
.qr-card figcaption span { color:var(--muted);font-size:10px;line-height:1.45; }
.contact-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-top: 18px; }
.contact-item { padding: 12px; border-radius: 11px; color: var(--muted); background: rgba(7,21,31,.5); font-size: 11px; }
.contact-item strong { display: block; margin-bottom: 4px; color: var(--text); }

.route-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 5px; }
.route-tab { min-height: 42px; padding: 0 16px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); cursor: pointer; }
.route-tab.active { color: var(--ink); border-color: var(--gold); background: var(--gold); font-weight: 850; }
.route-board { padding: clamp(18px,3vw,30px); }
.task-bank { display: flex; flex-wrap: wrap; gap: 8px; min-height: 70px; margin-bottom: 20px; padding: 12px; border: 1px dashed rgba(255,255,255,.18); border-radius: 14px; }
.task-chip { min-height: 52px; flex:1 1 260px; padding: 11px 14px; border: 1px solid rgba(99,230,190,.25); border-radius: 12px; color: #dce8e7; background: rgba(99,230,190,.07); cursor: grab; font-size: 13px; line-height: 1.55; text-align:left; }
.task-chip.selected { color: var(--ink); border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 3px rgba(214,181,111,.15); }
.task-chip:active { cursor: grabbing; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.timeline::before { content:""; position:absolute; left:10%;right:10%;top:20px;height:1px;background:linear-gradient(90deg,var(--jade),var(--gold)); }
.phase { position: relative; min-height: 220px; padding: 48px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); transition: border-color .2s,background .2s; }
.phase::before { content: attr(data-order); position: absolute; z-index:1; top: 8px; left: 50%; width: 25px; height: 25px; display:grid; place-items:center; border:3px solid var(--ink-2); border-radius:50%; color:var(--ink); background:var(--jade); transform:translateX(-50%); font-size:10px;font-weight:900; }
.phase.dragover { border-color: var(--gold); background: rgba(214,181,111,.08); }
.phase h3 { margin-bottom: 5px; text-align: center; font-size: 14px; }.phase > p { color:var(--muted);text-align:center;font-size:10px;line-height:1.5; }
.phase-drop { min-height: 90px; display:flex;flex-direction:column;gap:6px;margin-top:12px; }
.placed-task { padding: 11px 12px; border-radius:10px;color:#dce8e7;background:rgba(255,255,255,.06);font-size:12px;line-height:1.55;text-align:left;animation:sceneIn .25s ease; }
.placed-task.good { border-left:2px solid var(--jade); }.placed-task.bad { border-left:2px solid var(--coral); }
.route-status { display:flex;align-items:center;gap:12px;margin-top:18px;color:var(--muted);font-size:12px; }.route-status strong{color:var(--jade)}

.result-grid { display:grid;grid-template-columns:.84fr 1.16fr;gap:20px; }
.result-score { min-height:400px;display:grid;place-items:center;padding:30px;text-align:center; }
.score-ring { --score: 0; position:relative;width:210px;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--jade) calc(var(--score)*1%),rgba(255,255,255,.08) 0); }
.score-ring::before{content:"";position:absolute;inset:10px;border-radius:50%;background:var(--ink-2)}
.score-ring div{position:relative}.score-ring strong{display:block;font-size:58px;line-height:1}.score-ring span{color:var(--muted);font-size:11px;letter-spacing:.1em}
.result-title{margin:18px 0 6px;font-size:24px}.result-summary{color:var(--muted);font-size:12px;line-height:1.6}
.result-detail{display:grid;gap:14px}.result-detail .glass-card{padding:22px}.result-detail h3{margin-bottom:14px;font-size:15px}
.badge-row{display:flex;flex-wrap:wrap;gap:8px}.badge{padding:8px 11px;border:1px solid rgba(214,181,111,.25);border-radius:999px;color:var(--gold);background:rgba(214,181,111,.06);font-size:11px;font-weight:750}
.action-list{display:grid;gap:9px;margin:0;padding:0;list-style:none}.action-list li{display:flex;gap:10px;color:#d3dede;font-size:12px;line-height:1.55}.action-list li::before{content:"→";color:var(--jade);font-weight:900}
.result-contact { display:grid;grid-template-columns:minmax(0,.8fr) minmax(360px,1.2fr);align-items:center;gap:28px;margin-top:20px;padding:clamp(22px,4vw,36px); }
.result-contact-copy h3 { margin:0 0 10px;font-size:clamp(22px,3vw,32px); }
.result-contact-copy p { line-height:1.7; }
.result-contact .qr-grid { width:100%;margin:0;grid-template-columns:repeat(2,minmax(0,210px)); }

.modal-backdrop { position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(2,10,15,.8);backdrop-filter:blur(12px);animation:fadeIn .2s ease; }
.modal { width:min(520px,100%);padding:28px;border:1px solid var(--line);border-radius:24px;background:#0c2632;box-shadow:var(--shadow); }
.modal h2{font-size:26px}.modal p{color:var(--muted);line-height:1.7}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.toast-region{position:fixed;z-index:120;right:20px;bottom:calc(20px + var(--safe-bottom));display:grid;gap:8px;pointer-events:none}
.toast{max-width:360px;padding:12px 15px;border:1px solid var(--line);border-radius:12px;color:#eaf1f0;background:rgba(12,38,50,.96);box-shadow:0 14px 34px rgba(0,0,0,.3);font-size:12px;line-height:1.45;animation:toastIn .3s ease both}
.toast.success{border-color:rgba(99,230,190,.4)}.toast.error{border-color:rgba(255,139,114,.5)}
.game-footer { position:relative;z-index:1;width:min(1180px,calc(100% - 48px));margin:0 auto;padding:26px 0 calc(26px + var(--safe-bottom));display:flex;justify-content:space-between;gap:24px;border-top:1px solid var(--line);color:#71878d;font-size:10px;line-height:1.55; }
.fatal-card { width:min(650px,calc(100% - 40px));margin:100px auto;padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--panel); }

@keyframes sceneIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes toastIn { from{opacity:0;transform:translateY(10px) scale(.98)} to{opacity:1;transform:none} }
@keyframes drift { to{transform:translate3d(20px,30px,0) scale(1.08)} }
@keyframes breathe { 50%{transform:scale(1.025);box-shadow:inset 0 0 90px rgba(99,230,190,.1),0 0 100px rgba(0,0,0,.2)} }
@keyframes entryPoint { 50%{transform:translate3d(8px,8px,0)} }

@media (max-width:900px){
  .home-grid,.selection-layout,.catch-layout,.quiz-shell,.result-grid,.result-contact{grid-template-columns:1fr}.hero-panel{min-height:340px}.quest-map{width:330px}.choice-panel,.quiz-index{position:static}.selection-layout{gap:18px}.channel-grid{grid-template-columns:repeat(2,1fr)}.city-grid{grid-template-columns:repeat(3,1fr)}.catch-aside{display:grid;grid-template-columns:1fr 1fr}.keyboard-tip{display:none}.contact-grid{grid-template-columns:repeat(2,1fr)}.result-contact .qr-grid{grid-template-columns:repeat(2,minmax(0,240px))}
}
@media (max-width:640px){
  .game-header{height:calc(62px + var(--safe-top));padding-left:16px;padding-right:16px}.brand-mark{width:36px;height:36px}.brand small,.network-pill,.website-link{display:none}.progress-shell{top:calc(62px + var(--safe-top));padding-left:16px;padding-right:16px}.stage-nav li{font-size:0;text-align:center}.stage-nav li::before{font-size:9px;margin:0;width:20px;height:20px}.progress-meta{display:none}.progress-bar{margin-top:0}#app{width:min(100% - 28px,1180px)}.scene{padding:40px 0;min-height:calc(100vh - 130px)}h1{font-size:clamp(36px,10.5vw,43px);overflow-wrap:anywhere}.hero-copy .gradient-text{display:block;word-break:keep-all}.feature-strip{grid-template-columns:1fr;margin-top:30px}.feature{padding:12px 4px}.hero-panel{min-height:290px}.journey-visual{width:100%;aspect-ratio:1.15}.journey-visual img{object-position:64% center}.quest-map{width:280px}.character-banner{height:200px}.character-banner img{object-position:center}.role-grid{grid-template-columns:1fr}.role-card{min-height:180px}.catch-arena{min-height:430px}.catch-aside{grid-template-columns:1fr}.falling-token{min-width:116px;max-width:170px;padding:11px 13px;font-size:13px}.quiz-card{border-radius:18px}.official-entry{grid-template-columns:74px 1fr;gap:15px;min-height:170px;padding:27px 18px 20px}.official-entry-mark{width:72px;border-radius:20px;font-size:21px}.official-entry-copy strong{font-size:23px}.official-entry-copy small{font-size:11px}.official-entry-go{grid-column:2}.official-entry-kicker{top:10px;right:11px}.channel-grid{grid-template-columns:1fr 1fr}.channel-card{min-height:150px;padding:16px}.city-grid{grid-template-columns:1fr 1fr}.qr-grid,.result-contact .qr-grid{grid-template-columns:1fr;max-width:280px}.contact-grid{grid-template-columns:1fr}.timeline{grid-template-columns:1fr}.timeline::before{display:none}.phase{min-height:150px;padding-top:46px}.result-score{min-height:340px}.game-footer{width:calc(100% - 28px);flex-direction:column;gap:6px}.toast-region{left:14px;right:14px}.toast{max-width:none}.modal{padding:22px}
}
@media (max-width:380px){.channel-grid,.city-grid{grid-template-columns:1fr}.segmented{grid-template-columns:1fr}.role-card{padding:20px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media (prefers-contrast:more){:root{--muted:#c5d4d6;--line:rgba(255,255,255,.35)}.option,.role-card,.channel-card,.city-card{border-width:2px}}
