/* Plan GUI lab (2026-09-23): five faces for 🗺 MY PLAN that force the next
   thing on the player. The page chrome follows the One Room lab; everything
   inside a .stage is drawn in the game's own palette (Barlow, cyan, gold on
   near-black). Its own file, per the rule. */
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #15171c; --bg2: #1d2027; --bg3: #262a33; --line: #343945;
  --ink: #ecebe4; --dim: #a7aab4; --soft: #c9c6bb;
  --gold: #e2b452; --gold2: #f0cf85; --red: #c9534a; --green: #63b47a; --blue: #6ea8e0;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.5 -apple-system, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--gold2); }
h1, h2, h3, h4 { font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 .7em; }
code { color: var(--gold2); background: transparent; font-size: 13px; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 20px 80px; }

.mast { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.mast h1 { font-size: 30px; color: var(--gold2); }
.mast .sub { color: var(--dim); }
.mast .links { margin-left: auto; display: flex; gap: 14px; font-size: 14px; }
.mast .links a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.mast .links a:hover { border-color: var(--gold); }

.brief { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin: 18px 0; }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card h2 { font-size: 20px; margin-bottom: 8px; color: var(--gold2); }
.card h3 { font-size: 16px; margin: 12px 0 4px; }
.card ul, .card ol { margin: 0 0 8px; padding-left: 20px; }
.card li { margin: 3px 0; }
.num { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.num div { background: var(--bg3); border-radius: 10px; padding: 8px 12px; min-width: 130px; flex: 1; }
.num b { display: block; font-size: 24px; color: var(--gold2); font-variant-numeric: tabular-nums; }
.num span { font-size: 12.5px; color: var(--dim); }
.rule { background: #2a2416; border: 1px solid #5a4a1e; border-radius: 10px; padding: 10px 12px; color: var(--gold2); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; }
.shots figcaption { font-size: 12px; color: var(--dim); margin-top: 3px; }
.real { font-size: 13.5px; color: var(--soft); }
.real b { color: var(--gold2); }

/* concept nav */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; background: linear-gradient(var(--bg) 85%, transparent); }
.tabs a { text-decoration: none; color: var(--soft); background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.tabs a b { color: var(--gold2); margin-right: 5px; }
.tabs a:hover { border-color: var(--gold); }

/* one concept */
.concept { margin: 26px 0 40px; border-top: 1px solid var(--line); padding-top: 18px; scroll-margin-top: 60px; }
.concept .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 8px; }
.concept .head h2 { font-size: 28px; }
.concept .head .letter { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #2a2010; font: 700 22px/1 Georgia, serif; }
.concept .head .names { color: var(--dim); font-size: 14px; }
.concept .head .names b { color: var(--soft); }
.concept .pitch { font-size: 17px; color: var(--soft); max-width: 1000px; margin-bottom: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 980px) { .grid3 { grid-template-columns: 1fr; } }
.pros h3 { color: var(--green); } .cons h3 { color: var(--red); }
.card.first h3 { color: var(--gold2); }
.build { font-size: 14px; color: var(--soft); }
.build b { color: var(--gold2); }
.verdict { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--dim); }
.verdict a { text-decoration: none; background: var(--gold); color: #2a2010; font-weight: 700; padding: 7px 14px; border-radius: 999px; }

/* the bench: a frame, its event bar, its state line */
.bench { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: start; }
@media (max-width: 980px) { .bench { grid-template-columns: 1fr; } }
.frame { position: relative; width: 100%; aspect-ratio: 960 / 600; background: #0a0a14; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; outline: none; }
.frame.phone { width: 390px; max-width: 100%; aspect-ratio: 390 / 780; margin: 0 auto; border-radius: 28px; border-width: 4px; border-color: #2c2f38; }
.frame:focus-visible { border-color: var(--gold); }
.stage { position: absolute; left: 0; top: 0; width: 960px; height: 600px; transform-origin: 0 0; overflow: hidden; }
.frame.phone .stage { width: 390px; height: 780px; }
.events { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.events h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); margin: 0 0 4px; font-family: inherit; }
.events button { font: inherit; font-size: 13.5px; text-align: left; color: var(--ink); background: var(--bg3); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; cursor: pointer; }
.events button:hover { border-color: var(--gold); }
.events button.pri { border-color: #3d6e4e; }
.events button.alt { color: var(--dim); }
.events .size { display: flex; gap: 6px; margin-top: 6px; }
.events .size button { flex: 1; text-align: center; }
.events .size button.on { border-color: var(--gold); color: var(--gold2); }
.stateline { font-size: 12.5px; color: var(--dim); margin-top: 8px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.stateline b { color: var(--gold2); }
.stateline code { font-size: 12px; }

/* shared sections */
.section { margin: 34px 0; border-top: 1px solid var(--line); padding-top: 18px; }
.section h2 { font-size: 26px; color: var(--gold2); margin-bottom: 10px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
table.cmp th { color: var(--dim); font-weight: 600; }
table.cmp td:first-child { white-space: nowrap; color: var(--gold2); }
.reco { background: #22261c; border: 1px solid #45532c; }
.reco h2 { color: #cfe3a3; }
.foot { margin-top: 40px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
@media (max-width: 700px) { table.cmp { display: block; overflow-x: auto; } }

/* ================================================================== the game inside a stage */
.stage { --cyan: #34d3ff; --gold: #ffd75e; --green: #7dffb2; --red: #ff3b5c; --amber: #ffab2e; --ink: #eef4fb; --dim: rgba(255, 255, 255, .55);
  font: 500 14px/1.4 Barlow, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(1200px 600px at 50% -10%, #182238, #0a0a14 70%); }
.stage button { font: inherit; color: inherit; cursor: pointer; }
.stage button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.stage .cond { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.stage .hero { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 8px 22px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #5fe0ff, #29c4f2); color: #06121a; font: 800 19px/1.1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .6px; text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(52, 211, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .5); max-width: 100%; }
.stage .hero small { font: 600 10.5px/1 Barlow, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; opacity: .55; }
.stage .hero.gold { background: linear-gradient(180deg, #ffe58a, #f1c232); box-shadow: 0 6px 22px rgba(255, 215, 94, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.stage .hero.lit { animation: hero-pulse 1.6s ease-in-out infinite; }
.stage .hero:hover { filter: brightness(1.06); }
@keyframes hero-pulse { 0%, 100% { box-shadow: 0 6px 22px rgba(52, 211, 255, .35); } 50% { box-shadow: 0 6px 34px rgba(52, 211, 255, .7); } }
.stage .hero.gold.lit { animation: hero-pulse-gold 1.6s ease-in-out infinite; }
@keyframes hero-pulse-gold { 0%, 100% { box-shadow: 0 6px 22px rgba(255, 215, 94, .35); } 50% { box-shadow: 0 6px 34px rgba(255, 215, 94, .75); } }
.stage .ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: #cfd8e3; border-radius: 10px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; }
.stage .ghost:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.stage .tiny { background: transparent; border: 0; color: var(--dim); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; padding: 4px 6px; }
.stage .tiny:hover { color: #fff; }
.stage .pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font: 700 11.5px/1.2 Barlow, sans-serif; letter-spacing: 1px; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.stage .pill.green { color: var(--green); border-color: rgba(125, 255, 178, .5); background: rgba(47, 163, 107, .18); }
.stage .pill.blue { color: #9cc3ff; border-color: rgba(52, 160, 255, .5); background: rgba(52, 140, 255, .14); }
.stage .pill.amber { color: #f1c56a; border-color: rgba(224, 160, 60, .6); background: rgba(224, 160, 60, .14); }
.stage .pill.gold { color: var(--gold); border-color: rgba(255, 215, 94, .6); background: rgba(255, 215, 94, .14); }
.stage .busy { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.stage .busy span { font-size: 13px; color: #cfd8e3; }
.stage .busy i { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.stage .busy i::after { content: ""; display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #34d3ff, #7dffb2); transform-origin: 0 0; animation: busy-fill 1.1s linear forwards; }
@keyframes busy-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stage .ok { color: var(--green); } .stage .no { color: #ffb4bd; }
.stage .cele { color: var(--green); font: 800 24px/1.1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; text-transform: uppercase; animation: pop .45s ease-out; }
.stage .cele.goldc { color: var(--gold); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.stage .note { font-size: 12.5px; color: #b6ffd2; background: rgba(125, 255, 178, .1); border: 1px solid rgba(125, 255, 178, .3); border-radius: 8px; padding: 5px 9px; }
.stage .toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: #000c; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; z-index: 9; white-space: nowrap; }
.stage .pips { display: flex; gap: 5px; flex-wrap: wrap; }
.stage .pip { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); opacity: .55; }
.stage .pip.done { background: rgba(47, 163, 107, .3); border-color: #2f6b4b; opacity: 1; }
.stage .pip.now { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 215, 94, .35); opacity: 1; animation: pip-pulse 1.4s ease-in-out infinite; }
.stage .pip.check { border-color: var(--gold); }
@keyframes pip-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(255, 215, 94, .35); } 50% { box-shadow: 0 0 0 4px rgba(255, 215, 94, .7); } }
.stage .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 620px; }
.stage .tile { text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; align-items: center; }
.stage .tile:hover { border-color: var(--cyan); background: rgba(52, 211, 255, .1); }
.stage .tile .ic { font-size: 26px; grid-row: span 2; }
.stage .tile b { font-size: 15px; color: #fff; }
.stage .tile small { font-size: 12px; color: var(--dim); }
.stage .tile em { font-size: 11.5px; color: var(--cyan); font-style: normal; }
.stage .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.stage .center h2 { font: 800 30px/1.05 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.stage .center p { max-width: 520px; color: #d6dee9; font-size: 15px; margin: 0; }
.stage .center .lead { display: flex; gap: 12px; align-items: center; max-width: 560px; text-align: left; font-size: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 14px; }
.stage .face { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgba(255, 215, 94, .6); }
.phone .stage .center h2 { font-size: 26px; }
.phone .stage .tiles { grid-template-columns: 1fr; }

/* the journal: the old screen, demoted to a page you open on purpose */
.stage .journal { position: absolute; inset: 0; background: rgba(6, 8, 16, .94); z-index: 8; padding: 18px 22px; overflow: auto; }
.stage .journal h3 { font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: 12px 0 6px; }
.stage .journal .close { position: absolute; right: 14px; top: 12px; }
.stage .strip { display: flex; flex-wrap: wrap; gap: 3px; }
.stage .cell { width: 26px; height: 24px; border-radius: 5px; font-size: 10.5px; display: grid; place-items: center; color: var(--dim); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.stage .cell.done { background: rgba(47, 163, 107, .3); border-color: #2f6b4b; color: #aef0c8; }
.stage .cell.today { outline: 2px solid var(--gold); color: #fff; }
.stage .cell.ms, .stage .cell.cap { border-color: var(--gold); font-size: 12px; }
.stage .cell.buf { border-style: dashed; }
.stage .ms { list-style: none; margin: 0; padding: 0; font-size: 12.5px; columns: 2; column-gap: 20px; }
.stage .ms li { padding: 2px 0; break-inside: avoid; color: #d6dee9; }
.stage .ms li span { color: var(--gold); font-weight: 700; display: inline-block; min-width: 52px; }
.stage .ms li.done { color: var(--green); }
.stage .log { font-size: 12px; color: #c9d3e0; }
.stage .log div { padding: 3px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.stage .log em { color: var(--gold); font-style: normal; margin-right: 6px; }
.phone .stage .ms { columns: 1; }

/* ------------------------------------------------------------ A · the road */
.a-hud { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: linear-gradient(#0a0a14ee, #0a0a1400); z-index: 3; }
.a-hud .t { font: 800 18px/1 "Barlow Condensed", sans-serif; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.a-hud .t small { display: block; font: 600 11px/1.3 Barlow, sans-serif; color: var(--dim); letter-spacing: .3px; text-transform: none; margin-top: 2px; }
.a-hud .pill { margin-left: auto; }
.a-map { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; }
.a-map svg { position: absolute; left: 0; top: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.a-map .road { fill: none; stroke: #2b3347; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.a-map .road.dash { stroke: #4a5570; stroke-width: 2; stroke-dasharray: 6 8; }
.a-map .road.done { stroke: #2f8f5b; stroke-width: 10; }
.a-map .node circle { fill: #151a26; stroke: #2f3850; stroke-width: 2; }
.a-map .node text { font: 700 12px Barlow, sans-serif; fill: #6f7890; text-anchor: middle; dominant-baseline: central; }
.a-map .node.done circle { fill: #1f5a3a; stroke: #2fa36b; }
.a-map .node.done text { fill: #aef0c8; }
.a-map .node.ms circle { stroke: var(--gold); stroke-width: 2.5; }
.a-map .node.ms text, .a-map .node.cap text { font-size: 17px; }
.a-map .node.cap circle { fill: #3a2f14; stroke: var(--gold); stroke-width: 3; }
.a-map .node.cap text { font-size: 22px; }
.a-map .node.buf circle { stroke-dasharray: 3 3; }
.a-map .node.now circle { fill: #3a2f14; stroke: var(--gold); stroke-width: 3; }
.a-map .node.now text { fill: #fff; font-size: 14px; }
.a-map .node.now .ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .8; animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { r: 22; opacity: .9; } to { r: 40; opacity: 0; } }
.a-map .node.pop circle { animation: pop .5s ease-out; }
.a-token { position: absolute; width: 44px; height: 66px; image-rendering: auto; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 6px #000a); transition: left .6s cubic-bezier(.2, .8, .2, 1), top .6s cubic-bezier(.2, .8, .2, 1); z-index: 2; pointer-events: none; }
.a-callout { position: absolute; width: 400px; background: #10141fee; border: 1px solid rgba(255, 215, 94, .45); border-radius: 14px; padding: 12px 14px; z-index: 4; box-shadow: 0 10px 40px #000a; transition: left .6s cubic-bezier(.2, .8, .2, 1), top .6s cubic-bezier(.2, .8, .2, 1); }
.a-callout.up { transform: translateY(-100%); }
.a-callout .dayl { font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.a-callout .line { font-size: 13.5px; color: #e6ecf5; font-style: italic; margin-bottom: 8px; }
.a-callout .pips { margin-bottom: 10px; }
.a-callout .hero { width: 100%; }
.a-callout .row { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.a-callout .res { font: 800 20px/1.1 "Barlow Condensed", sans-serif; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.a-callout .res span { font: 500 13px/1.3 Barlow, sans-serif; color: #cfd8e3; text-transform: none; letter-spacing: 0; display: block; }
.a-callout .next { font-size: 12.5px; color: var(--dim); margin-bottom: 8px; }
.a-callout .next b { color: #fff; }
.a-callout .note { margin-bottom: 8px; }
.a-legend { position: absolute; left: 16px; bottom: 10px; font-size: 11.5px; color: var(--dim); z-index: 3; background: #0a0a14cc; border-radius: 999px; padding: 3px 10px; }
.a-build { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; z-index: 5; }
.a-build .panel { background: #10141fee; border: 1px solid rgba(255, 215, 94, .45); border-radius: 16px; padding: 18px 22px; max-width: 520px; display: flex; flex-direction: column; gap: 10px; align-items: center; box-shadow: 0 10px 40px #000a; }
.a-build h2 { font: 800 28px/1.05 "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.a-build p { color: #d6dee9; font-size: 14.5px; margin: 0; }
.a-build .fact { font: 700 13px/1.4 Barlow, sans-serif; color: var(--gold); }
.phone .a-callout { width: 340px; }
.phone .a-hud .t { font-size: 16px; }

/* ------------------------------------------------------------ B · one card */
.b-top { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; z-index: 3; }
.b-top .dayl { font: 800 15px/1 "Barlow Condensed", sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; white-space: nowrap; }
.b-top .seg { display: flex; gap: 4px; flex: 1; max-width: 260px; }
.b-top .seg i { flex: 1; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.b-top .seg i.done { background: var(--green); }
.b-top .seg i.now { background: var(--gold); animation: seg 1.4s ease-in-out infinite; }
@keyframes seg { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.b-top .pill { margin-left: auto; }
.b-top .ghost { padding: 4px 9px; }
.b-deck { position: absolute; left: 50%; top: 68px; transform: translateX(-50%); width: 560px; height: 500px; }
.b-card { position: absolute; left: 0; right: 0; top: 0; border-radius: 18px; background: linear-gradient(180deg, #1a2236, #10141f); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 50px #000a; padding: 22px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-height: 380px; }
.b-card.back1 { transform: translate(0, 16px) scale(.96); opacity: .5; }
.b-card.back2 { transform: translate(0, 30px) scale(.92); opacity: .25; }
.b-card.front { animation: slidein .4s ease-out; }
.b-card.front.gold { border-color: rgba(255, 215, 94, .7); box-shadow: 0 16px 50px #000a, 0 0 0 1px rgba(255, 215, 94, .3), 0 0 40px rgba(255, 215, 94, .15); }
.b-card.front.green { border-color: rgba(125, 255, 178, .6); }
@keyframes slidein { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.b-kicker { font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); }
.b-icon { font-size: 54px; line-height: 1; margin: 6px 0 2px; }
.b-card h1 { font: 800 30px/1.05 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; text-transform: uppercase; color: #fff; margin: 0; }
.b-sub { font-size: 15px; color: #cfd8e3; }
.b-why { font-size: 13px; color: var(--dim); font-style: italic; max-width: 440px; margin: 2px 0 6px; }
.b-meta { display: flex; gap: 8px; }
.b-meta span { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: #cfd8e3; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px 9px; }
.b-card .hero { margin-top: auto; width: 100%; min-height: 60px; font-size: 24px; }
.b-then { font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.b-then b { color: #cfd8e3; }
.b-res { font: 800 34px/1 "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; margin-top: 10px; }
.b-res small { display: block; font: 500 14px/1.4 Barlow, sans-serif; color: #cfd8e3; letter-spacing: 0; text-transform: none; margin-top: 4px; }
.b-nextcard { width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; text-align: left; margin-top: 6px; }
.b-nextcard .ic { font-size: 26px; grid-row: span 2; }
.b-nextcard b { color: #fff; font-size: 14.5px; }
.b-nextcard small { color: var(--dim); font-size: 12px; }
.b-nextcard .k { font: 800 10.5px/1 "Barlow Condensed", sans-serif; letter-spacing: 2px; color: var(--gold); grid-column: 1 / -1; }
.b-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.b-intro { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 560px; display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: #d6dee9; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px 12px; }
.b-intro .face { width: 34px; height: 34px; }
.phone .b-deck { width: 350px; top: 60px; height: 700px; }
.phone .b-card { min-height: 470px; padding: 18px; }
.phone .b-card h1 { font-size: 26px; }
.phone .b-intro { width: 350px; }
.phone .b-top .seg { max-width: 120px; }

/* ------------------------------------------------------------ C · the coach */
.c-scene { position: absolute; inset: 0; background: radial-gradient(900px 500px at 30% 20%, #1e2a3f, #0a0a14 70%); }
.c-hud { position: absolute; right: 14px; top: 12px; display: flex; gap: 8px; align-items: center; z-index: 4; }
.c-portrait { position: absolute; left: 40px; bottom: 150px; width: 300px; height: 300px; object-fit: cover; object-position: top; border-radius: 50%; border: 4px solid rgba(255, 215, 94, .55); box-shadow: 0 0 60px rgba(255, 215, 94, .18), 0 20px 60px #000a; transition: transform .4s ease; }
.c-portrait.talk { animation: nod 1.6s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.c-box { position: absolute; left: 24px; right: 24px; bottom: 22px; min-height: 118px; background: linear-gradient(180deg, #1a2032f2, #10141ff2); border: 1px solid rgba(255, 215, 94, .45); border-radius: 16px; padding: 14px 18px 14px 20px; box-shadow: 0 10px 40px #000a; display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; }
.c-name { position: absolute; left: 18px; top: -13px; background: var(--gold); color: #2a2010; font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: 2px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.c-text { margin: 0; font-size: 16.5px; line-height: 1.5; color: #f1f5fb; min-height: 50px; }
.c-text .caret { display: inline-block; width: 8px; color: var(--gold); animation: caret 1s steps(2) infinite; }
@keyframes caret { to { opacity: 0; } }
.c-choices { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 220px; }
.c-choices .hero { min-height: 46px; font-size: 18px; }
.c-choices .ghost { text-align: center; }
.c-choices .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.c-choices .chips button { text-align: left; font-size: 12.5px; }
.c-ms { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); text-align: center; z-index: 3; animation: pop .5s ease-out; }
.c-ms b { display: block; font: 800 40px/1 "Barlow Condensed", sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 30px rgba(255, 215, 94, .5); }
.c-ms span { font-size: 15px; color: #f1f5fb; }
.c-cele { position: absolute; left: 50%; top: 26%; transform: translateX(-50%); text-align: center; z-index: 3; animation: pop .5s ease-out; }
.c-cele b { display: block; font: 800 40px/1 "Barlow Condensed", sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--green); text-shadow: 0 0 30px rgba(125, 255, 178, .45); }
.c-cele span { font-size: 15px; color: #f1f5fb; }
.c-journal { position: absolute; right: 14px; top: 46px; width: 330px; max-height: 380px; overflow: auto; background: #10141fee; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 10px 12px; z-index: 5; }
.phone .c-portrait { left: 50%; transform: translateX(-50%); bottom: auto; top: 70px; width: 220px; height: 220px; }
.phone .c-portrait.talk { animation: none; }
.phone .c-box { grid-template-columns: 1fr; left: 12px; right: 12px; bottom: 14px; }
.phone .c-choices { min-width: 0; }
.phone .c-ms, .phone .c-cele { top: 40%; }
.phone .c-journal { left: 12px; right: 12px; width: auto; }

/* ------------------------------------------------------------ D · the tower */
.d-hud { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; z-index: 4; background: linear-gradient(#0a0a14f0, #0a0a1400); }
.d-hud .t { font: 800 18px/1 "Barlow Condensed", sans-serif; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.d-hud .t small { display: block; font: 600 11px/1.3 Barlow, sans-serif; color: var(--dim); text-transform: none; letter-spacing: .3px; margin-top: 2px; }
.d-hud .pill { margin-left: auto; }
.d-view { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; background: radial-gradient(600px 400px at 50% 60%, #141a2a, #0a0a14 70%); }
.d-tower { position: absolute; left: 36px; width: 620px; transition: top .6s cubic-bezier(.2, .8, .2, 1); }
.d-floor { position: absolute; left: 0; right: 0; background: #12172480; border-top: 1px solid #262d40; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 0; }
.d-floor .num { width: 44px; text-align: center; font: 700 12px/1 Barlow, sans-serif; color: #55607a; border-right: 1px solid #262d40; height: 100%; display: grid; place-items: center; }
.d-floor.done { background: #10231a80; }
.d-floor.done .num { color: #6fbf8f; }
.d-floor.now { background: linear-gradient(180deg, #1c2338, #141a2a); border-top-color: var(--gold); border-bottom: 1px solid var(--gold); box-shadow: 0 0 0 1px rgba(255, 215, 94, .2), 0 0 40px rgba(255, 215, 94, .08); z-index: 2; }
.d-floor.now .num { color: var(--gold); font-size: 15px; }
.d-floor.gate { border-top-color: rgba(255, 215, 94, .5); }
.d-floor.crown { background: linear-gradient(180deg, #3a2f14, #1c1a12); border-top-color: var(--gold); }
.d-floor.buf { border-top-style: dashed; }
.d-floor .doors { display: flex; gap: 6px; flex: 1; align-items: center; }
.d-door { display: inline-grid; place-items: center; width: 26px; height: 32px; border-radius: 6px 6px 2px 2px; font-size: 13px; background: #1a2030; border: 1px solid #2f3850; opacity: .5; }
.d-door.done { background: #1f5a3a; border-color: #2fa36b; opacity: 1; }
.d-door.check { border-color: var(--gold); }
.d-floor.now .d-door { width: 92px; height: 74px; grid-template-rows: 1fr auto; font-size: 22px; padding: 6px 4px 5px; opacity: .55; }
.d-floor.now .d-door small { font: 600 9.5px/1.15 Barlow, sans-serif; color: #cfd8e3; text-align: center; letter-spacing: 0; white-space: normal; max-height: 22px; overflow: hidden; }
.d-floor.now .d-door.done { opacity: 1; }
.d-floor.now .d-door.lit { opacity: 1; border-color: var(--gold); background: #2a2414; box-shadow: 0 0 0 2px rgba(255, 215, 94, .35); animation: pip-pulse 1.4s ease-in-out infinite; }
.d-floor .lbl { font: 800 11px/1 "Barlow Condensed", sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.d-floor.done .lbl, .d-floor.later .lbl { color: #55607a; }
.d-floor .lock { color: #55607a; font-size: 12px; }
.d-hero { position: absolute; width: 40px; height: 60px; transform: translate(-50%, -100%); filter: drop-shadow(0 3px 4px #000a); z-index: 3; transition: left .5s ease, top .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.d-date { position: absolute; left: -60px; right: -150px; border-top: 2px dashed var(--amber); z-index: 3; pointer-events: none; }
.d-date span { position: absolute; right: 0; top: -9px; transform: translateY(-100%); background: #2a2010; color: var(--amber); border: 1px solid var(--amber); font: 800 10.5px/1 "Barlow Condensed", sans-serif; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.d-act { position: absolute; right: 16px; top: 64px; width: 250px; background: #10141fee; border: 1px solid rgba(255, 215, 94, .45); border-radius: 14px; padding: 12px 14px; z-index: 5; box-shadow: 0 10px 40px #000a; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.d-act .hero { width: 100%; font-size: 16px; }
.d-act .res { font: 800 20px/1.1 "Barlow Condensed", sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.d-act .res span { display: block; font: 500 13px/1.3 Barlow, sans-serif; color: #cfd8e3; letter-spacing: 0; text-transform: none; }
.d-act .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.d-act .lead { font-size: 13px; color: #cfd8e3; }
.d-build { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: radial-gradient(600px 400px at 50% 60%, #141a2a, #0a0a14 70%); }
.d-build h2 { font: 800 30px/1.05 "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.d-build p { color: #d6dee9; font-size: 14.5px; margin: 0; max-width: 520px; }
.d-build .fact { font: 700 13px/1.4 Barlow, sans-serif; color: var(--gold); }
.phone .d-tower { width: 370px; left: 10px; }
.phone .d-hud .t small { display: none; }
.phone .d-hud .t { font-size: 13px; line-height: 1.1; max-width: 160px; }
.phone .d-date { left: -10px; right: -10px; }
.phone .d-date span { top: 4px; transform: none; }
.phone .d-floor.now .d-door { width: 72px; height: 68px; font-size: 20px; }
.phone .d-act { width: 366px; right: 12px; top: auto; bottom: 12px; }
.phone .d-hud .t { font-size: 15px; }

/* ------------------------------------------------------------ E · the quest */
.e-menu { position: absolute; inset: 0; padding: 18px 22px; background: radial-gradient(900px 500px at 50% 0%, #182238, #0a0a14 70%); }
.e-title { font: 800 40px/1 "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; font-style: italic; }
.e-title b { color: var(--cyan); }
.e-grid { display: grid; grid-template-columns: 190px 1fr 300px; gap: 16px; margin-top: 16px; align-items: start; }
.e-profile { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.e-profile img { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .2); }
.e-profile b { font: 800 20px/1 "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.e-profile small { color: var(--dim); font-size: 12px; }
.e-center { display: flex; flex-direction: column; gap: 10px; }
.e-play { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 170px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #5fe0ff, #29c4f2); color: #06121a; font: 800 44px/1 "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 8px 30px rgba(52, 211, 255, .35); position: relative; overflow: hidden; }
.e-play::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .08) 14px 28px); pointer-events: none; }
.e-play small { font: 600 13px/1.3 Barlow, sans-serif; letter-spacing: .2px; text-transform: none; opacity: .75; max-width: 90%; }
.e-play.plan { animation: hero-pulse 1.6s ease-in-out infinite; }
.e-play.plan.gold { background: linear-gradient(180deg, #ffe58a, #f1c232); }
.e-play .kick { font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: 2.5px; opacity: .7; }
.e-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.e-doors span { display: grid; place-items: center; height: 46px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #9aa3b8; font: 800 15px/1 "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.e-doors span.adv { grid-column: span 2; border-color: rgba(255, 215, 94, .3); color: #d8c27a; }
.e-quest { background: linear-gradient(180deg, #1a2036, #10141f); border: 1px solid rgba(255, 215, 94, .45); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 40px #0008; }
.e-quest.pulse { animation: quest-glow 2s ease-in-out infinite; }
@keyframes quest-glow { 0%, 100% { box-shadow: 0 10px 40px #0008; } 50% { box-shadow: 0 10px 40px #0008, 0 0 24px rgba(255, 215, 94, .25); } }
.e-qhead { display: flex; flex-direction: column; gap: 4px; }
.e-qhead .k { font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); }
.e-qhead .k.green { color: var(--green); }
.e-qhead .n { font: 800 18px/1.1 "Barlow Condensed", sans-serif; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.e-qhead .pill { align-self: flex-start; margin-top: 2px; }
.e-obj { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.e-obj li { display: grid; grid-template-columns: 20px 1fr auto; gap: 6px; align-items: center; font-size: 13px; color: var(--dim); padding: 3px 6px; border-radius: 7px; }
.e-obj li.done { color: #9fe0b8; text-decoration: line-through; text-decoration-color: rgba(159, 224, 184, .5); }
.e-obj li.now { color: #fff; background: rgba(255, 215, 94, .1); border: 1px solid rgba(255, 215, 94, .45); animation: obj 1.6s ease-in-out infinite; }
@keyframes obj { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 94, .2); } 50% { box-shadow: 0 0 0 4px rgba(255, 215, 94, .12); } }
.e-obj li .m { font-size: 11px; color: var(--dim); }
.e-obj li.now .m { color: var(--gold); }
.e-obj li .ic { text-align: center; }
.e-chapter { font-size: 12px; color: var(--dim); border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 8px; }
.e-chapter b { color: #cfd8e3; display: block; font-size: 12.5px; }
.e-chapter .bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); margin-top: 5px; overflow: hidden; }
.e-chapter .bar i { display: block; height: 100%; background: linear-gradient(90deg, #f1c232, #ffd75e); border-radius: 999px; }
.e-quest .tiny { align-self: flex-start; padding-left: 0; }
.e-quest .hero { width: 100%; }
.e-sys { font-size: 12px; color: #b6ffd2; }
.e-scroll { position: absolute; inset: 0; z-index: 6; background: rgba(6, 8, 16, .82); display: flex; align-items: center; justify-content: center; padding: 24px; }
.e-scroll .panel { background: linear-gradient(180deg, #1a2036, #10141f); border: 1px solid rgba(255, 215, 94, .55); border-radius: 16px; padding: 18px 22px; max-width: 640px; width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; box-shadow: 0 20px 60px #000c; animation: pop .4s ease-out; }
.e-scroll .k { font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.e-scroll h2 { font: 800 28px/1.05 "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.e-scroll p { color: #d6dee9; font-size: 14px; margin: 0; max-width: 520px; }
.e-results { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 320px; gap: 18px; padding: 22px 26px; align-items: center; background: radial-gradient(900px 500px at 40% 30%, #182238, #0a0a14 70%); }
.e-score { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.e-score .grade { font: 800 64px/1 "Barlow Condensed", sans-serif; color: var(--gold); font-style: italic; text-shadow: 0 0 30px rgba(255, 215, 94, .5); }
.e-score .num { font: 800 64px/1 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: 1px; }
.e-score small { color: var(--dim); font-size: 12.5px; }
.e-score .stats { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; font-size: 12.5px; color: #cfd8e3; margin-top: 10px; }
.e-score .stats b { color: var(--gold); margin-left: 6px; }
.e-play-toast { position: absolute; inset: 0; z-index: 7; background: rgba(6, 8, 16, .7); display: grid; place-items: center; }
.e-play-toast .busy { width: 360px; background: #10141fee; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 14px; }
.phone .e-menu { padding: 14px; }
.phone .e-title { font-size: 30px; }
.phone .e-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.phone .e-quest { order: -1; }
.phone .e-profile { flex-direction: row; text-align: left; padding: 10px; }
.phone .e-profile img { width: 54px; height: 54px; }
.phone .e-play { min-height: 120px; font-size: 32px; }
.phone .e-results { grid-template-columns: 1fr; align-content: start; padding: 16px; }
.phone .e-score .grade, .phone .e-score .num { font-size: 48px; }
