/* Dale Stubbs in: CONSUMPTION — v2 UI (cartoon adventure, Sierra icon bar) */
:root {
  --ink: #1b1b2a; --paper: #fff6e6; --bg: #0f1020; --bg2: #1a1b33; --panel: #22233f;
  --purple: #6b3fa0; --purple2: #8e5bd1; --atlas: #52a0ff; --atlas2: #a672f7; --atlas-ink: #374151; --atlas-muted: #64748b; --atlas-border: #e5e7eb; --pink: #ff4fa3; --gold: #ffd23f; --teal: #2ad1c9; --sand: #f3d58d; --red: #ff5a5f; --green: #43d17a;
  --brand: 'Inter', 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; --ui: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; --sign: 'Luckiest Guy', 'Nunito', sans-serif;
  --stage-w: min(100vw - 20px, calc((100vh - 170px) * 1.6), 1040px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: #f4f2ff; font-family: var(--ui); font-size: 17px; line-height: 1.35; }
body { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, #2a2457 0%, var(--bg) 60%); }
button { font-family: var(--ui); font-weight: 800; cursor: pointer; border: 2px solid rgba(255,255,255,.18); background: var(--panel); color: #fff; padding: 8px 14px; border-radius: 12px; font-size: 16px; }
button:active { transform: translateY(1px); }
button.primary { background: linear-gradient(135deg, var(--atlas), var(--atlas2)); border-color: #bcd6ff; }
button.island { background: linear-gradient(180deg, #2fb6ad, #1b8a84); border-color: #7fe8e0; }
button.ep2 { background: linear-gradient(135deg, #2fae5a, #1f8a5a); border-color: #9fe8b8; }
button.big { font-size: 18px; padding: 12px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
button.big small { font-weight: 600; font-size: 13px; opacity: .85; }
button.ghost { background: transparent; border-color: rgba(255,255,255,.18); color: #cfcbe8; font-size: 14px; padding: 4px 10px; }
.hidden { display: none !important; }
.screen { display: flex; flex-direction: column; align-items: center; }

/* ---- title ---- */
#title { padding: 22px 12px 10px; }
.title-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: 1180px; width: 100%; }
#title-art { width: min(100%, 640px); aspect-ratio: 16/10; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 4px var(--ink), 0 0 0 7px var(--purple2); }
.title-side { flex: 1 1 320px; max-width: 460px; }
.kicker { display: flex; align-items: center; gap: 8px; color: var(--atlas); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin-bottom: 6px; }
.title-side h1 { font-family: var(--sign); font-weight: 400; font-size: 44px; line-height: .95; color: var(--gold); margin: 0 0 10px; text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--purple); letter-spacing: .02em; }
.title-side h1 span { color: #fff; font-size: 22px; display: inline-block; margin: 0 4px; }
.blurb { color: #d9d5f0; margin: 0 0 14px; }
.modes { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 12px; }
.warn { color: #8f8bb0; font-size: 14px; margin: 6px 0; }
.howto summary { cursor: pointer; color: var(--teal); font-weight: 800; }
.howto p { color: #cfcbe8; font-size: 15px; }

/* ---- story ---- */
#game { padding: 8px 10px 14px; gap: 6px; }
#bar { width: var(--stage-w); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(180deg, #2b2c4e, #1d1e38); border: 2px solid var(--ink); border-radius: 14px 14px 0 0; padding: 6px 8px; }
.verbs { display: flex; gap: 4px; }
.verb { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 6px 2px; background: transparent; border-color: transparent; border-radius: 10px; min-width: 52px; }
.verb canvas { width: 36px; height: 36px; display: block; }
.verb span { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #bdb8dc; }
.verb.active span { color: var(--gold); }
.verb.alt span { color: var(--teal); }
#verb-concierge span { color: var(--atlas); }
#verb-saves span { color: var(--atlas2); }
.meters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.meter { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #bdb8dc; }
.meter label { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; font-size: 10px; }
.meter.score b { color: var(--gold); font-size: 15px; }
.meter .track { width: 70px; height: 8px; background: rgba(0,0,0,.45); border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.meter .fill { height: 100%; width: 50%; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width .4s; }
#m-dignity .fill { background: linear-gradient(90deg, var(--gold), #ff9a3c); }
#m-family .fill { background: linear-gradient(90deg, var(--pink), #ff8ac9); }
.meter.low .fill { background: var(--red); }
.meter .val { font-weight: 800; color: #fff; min-width: 24px; }
.meter.flash, #m-score.flash { animation: pop .5s ease; }
@keyframes pop { 30% { transform: scale(1.12); } }
#stage { position: relative; width: var(--stage-w); aspect-ratio: 16/10; background: #000; border: 2px solid var(--ink); border-top: 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; overflow: hidden; }
#scene { width: 100%; height: 100%; display: block; }
#msg { position: absolute; left: 3%; right: 3%; bottom: 4%; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 0 rgba(0,0,0,.35); padding: 12px 40px 12px 16px; font-size: clamp(14px, 1.9vw, 21px); line-height: 1.25; cursor: pointer; font-weight: 700; }
#msg.narr { font-style: italic; font-weight: 600; background: #fffdf7; }
#msg.dale { background: #f1e6ff; }
#msg.atlas { background: #eaf3ff; border-color: var(--atlas); font-family: var(--brand); font-weight: 600; }
#msg .who { display: block; font-family: var(--sign); font-weight: 400; font-size: .9em; letter-spacing: .04em; margin-bottom: 2px; font-style: normal; }
#msg .body { position: relative; display: block; }
#msg .ghost { visibility: hidden; }
#msg .txt { position: absolute; left: 0; top: 0; right: 0; }
#msg .more { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: #8f8bb0; animation: bob 1s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(2px); } }
#choices { position: absolute; left: 3%; right: 3%; bottom: 4%; display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 0 rgba(0,0,0,.35); padding: 10px; }
#choices .choice { text-align: left; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; font-size: clamp(13px, 1.7vw, 18px); padding: 8px 12px; font-weight: 700; }
#choices .choice:hover { background: var(--gold); }
#hover { position: absolute; left: 0; right: 0; top: 6px; text-align: center; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 6px rgba(0,0,0,.6); pointer-events: none; letter-spacing: .04em; }
#cursor-label { position: absolute; right: 8px; top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--gold); text-shadow: 0 1px 0 var(--ink); pointer-events: none; }
#toast { position: absolute; left: 50%; top: 10px; transform: translateX(-50%) translateY(-30px); background: var(--gold); color: var(--ink); font-weight: 900; padding: 4px 12px; border-radius: 20px; border: 2px solid var(--ink); opacity: 0; pointer-events: none; }
#toast.show { animation: toast 2.4s ease forwards; }
#coach { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); width: min(88%, 520px); background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: 15px; box-shadow: 0 6px 0 rgba(0,0,0,.35); pointer-events: none; animation: coachin .5s ease; }
@keyframes coachin { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
.report-card { margin: 8px 0 12px; }
.report-card img { width: 100%; border: 3px solid var(--ink); border-radius: 12px; display: block; box-shadow: 0 8px 0 rgba(0,0,0,.3); }
.report-card .btns { margin-top: 10px; }
@keyframes toast { 10% { opacity: 1; transform: translateX(-50%) translateY(0); } 80% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-30px); } }
#inventory { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92%, 560px); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 10px 0 rgba(0,0,0,.35); padding: 10px 12px 8px; }
.inv-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--sign); font-size: 20px; color: var(--purple); }
.inv-head .ghost { color: var(--ink); border-color: var(--ink); }
#inv-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; min-height: 64px; }
#inv-list .empty { color: #777; font-style: italic; padding: 10px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 92px; padding: 6px 4px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); }
.slot canvas { width: 44px; height: 44px; }
.slot .lbl { font-size: 11px; font-weight: 800; text-align: center; line-height: 1.1; }
.slot .qty { position: absolute; right: 4px; top: 2px; font-size: 11px; color: var(--purple); font-weight: 900; }
.inv-tip { font-size: 12px; color: #666; margin: 0; }
#statusline { width: var(--stage-w); display: flex; justify-content: space-between; align-items: center; color: #9b97bd; font-size: 13px; padding: 2px 4px; }
#statusline .right { display: flex; gap: 6px; }

/* ---- island ---- */
#island { padding: 10px 10px 14px; }
.island-wrap { width: var(--stage-w); }
#island-canvas { width: 100%; aspect-ratio: 16/10; display: block; border: 2px solid var(--ink); border-radius: 14px; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.island-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #9b97bd; font-size: 13px; padding: 6px 4px; flex-wrap: wrap; }
.island-bar .right { display: flex; gap: 6px; }

/* ---- overlays ---- */
.overlay { position: fixed; inset: 0; background: rgba(8,8,20,.86); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.panel { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 12px 0 rgba(0,0,0,.4); padding: 20px 24px; max-width: 640px; width: 100%; max-height: 92vh; overflow: auto; }
.panel h2 { font-family: var(--sign); font-weight: 400; font-size: 34px; margin: 0 0 10px; color: var(--red); letter-spacing: .02em; }
.panel.ending h2 { color: var(--purple); }
.panel p { margin: 0 0 10px; }
.ump { color: #888; text-align: right; font-style: italic; }
.panel .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.panel button.big { color: #fff; }
.panel button.big:not(.primary):not(.island) { background: var(--ink); }
.report { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 10px; }
.report div { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 8px; text-align: center; }
.report label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #777; font-weight: 800; }
.report b { font-size: 20px; color: var(--purple); }
.verdict { font-style: italic; font-weight: 700; }
.vote-q { font-weight: 900; margin-top: 10px; }
.vote { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.vopt { text-align: left; background: #fff; color: var(--ink); border-color: var(--ink); font-weight: 700; }
.vopt.sel { background: var(--gold); }
.vform { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.vform input { font-family: var(--ui); font-size: 16px; padding: 8px 10px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; }
.vform .hp { position: absolute; left: -9999px; }
.vmsg { font-size: 14px; color: #666; min-height: 1.2em; }
.vmsg.ok { color: #1b8a84; } .vmsg.err { color: var(--red); }
.share { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.share-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; color: #777; }
.sh { font-family: var(--ui); font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 20px; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }

/* ---- story (what this is / the videos) ---- */
#story { padding: 44px 16px 36px; background: linear-gradient(180deg, rgba(82,160,255,.06), transparent 30%); border-top: 1px solid rgba(255,255,255,.06); }
.story-wrap { max-width: 1040px; margin: 0 auto; }
.eyebrow { font-family: var(--brand); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--atlas); margin-bottom: 8px; }
.story-head h2 { font-family: var(--sign); font-weight: 400; font-size: clamp(30px, 4.4vw, 48px); line-height: 1; color: var(--gold); margin: 0 0 10px; letter-spacing: .02em; text-shadow: 3px 3px 0 var(--ink); }
.story-head .lede { color: #d9d5f0; font-size: 18px; max-width: 720px; margin: 0 0 16px; }
.story-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 30px; }
.story-ctas button.big:not(.primary):not(.island) { background: var(--panel); }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 34px; }
.story-card.ep2 { border-color: rgba(47,174,90,.55); background: linear-gradient(180deg, rgba(47,174,90,.12), var(--panel)); }
.story-card.ep2 .sc-num { color: #5ddc8a; }
.story-card { position: relative; background: var(--panel); border: 2px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px 18px 16px; }
.story-card.accent { border-color: rgba(82,160,255,.5); background: linear-gradient(180deg, rgba(82,160,255,.12), var(--panel)); }
.sc-num { font-family: var(--brand); font-weight: 800; font-size: 12px; color: var(--atlas2); letter-spacing: .12em; margin-bottom: 6px; }
.story-card h3 { font-family: var(--sign); font-weight: 400; font-size: 24px; color: var(--gold); margin: 0 0 8px; letter-spacing: .02em; }
.story-card p { color: #cfcbe8; margin: 0; font-size: 15.5px; line-height: 1.45; }
.story-card b { color: #fff; }
.story-vhead { margin-bottom: 14px; } .story-vhead h3 { font-family: var(--sign); font-weight: 400; font-size: 28px; color: #fff; margin: 0 0 6px; letter-spacing: .02em; } .story-vhead p { color: #bdb8dc; margin: 0; max-width: 720px; }
.loop { max-width: 780px; margin: 0 auto 18px; }
.loop video { width: 100%; aspect-ratio: 1436/1030; display: block; border-radius: 14px; border: 2px solid var(--ink); background: #000; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.loop figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px 0; } .loop figcaption b { color: #fff; } .loop figcaption span { color: #9b97bd; font-size: 14px; } .loop figcaption a { color: var(--atlas); font-weight: 800; text-decoration: none; }
.yt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.yt { margin: 0; }
.yt-poster { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); background: #000; cursor: pointer; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.yt-poster canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(135deg, var(--atlas), var(--atlas2)); box-shadow: 0 8px 24px rgba(0,0,0,.5); padding: 0; transition: transform .15s; }
.yt-play span { display: block; width: 0; height: 0; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.yt-poster:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-soon { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(10,10,20,.78); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.yt.pending .yt-poster { cursor: default; } .yt.pending .yt-play { opacity: .55; }
.yt iframe { width: 100%; aspect-ratio: 16/9; border: 2px solid var(--ink); border-radius: 14px; display: block; background: #000; }
.yt figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px 0; } .yt figcaption b { color: #fff; } .yt figcaption span { color: #9b97bd; font-size: 14px; }
.story-stats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 30px; }
.story-stats div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 6px; text-align: center; }
.story-stats b { display: block; font-family: var(--sign); font-weight: 400; font-size: 30px; color: var(--gold); line-height: 1; }
.story-stats span { font-size: 11px; color: #9b97bd; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.story-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
#story .sh { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); } #story .share-lbl { color: #9b97bd; } #story .share { margin: 0; }
.fine { color: #8f8bb0; font-size: 13px; }
.fine a { color: var(--atlas); }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .title-side h1 { font-size: 34px; }
  .story-grid, .yt-grid { grid-template-columns: 1fr; }
  .story-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story-stats span { display: block; font-size: 9.5px; letter-spacing: .02em; overflow-wrap: anywhere; }
  .story-ctas button.big { width: 100%; }
  .report { grid-template-columns: repeat(2, 1fr); }
  .verb { min-width: 44px; padding: 2px 3px; }
  .verb canvas { width: 30px; height: 30px; }
  .meter .track { width: 46px; }
  #bar { border-radius: 10px 10px 0 0; }
}

/* ---- v5: brand chrome, ECHO, saves, cards, trailer ---- */
.lockup { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; text-decoration: none; }
.lockup svg, .lockup img { width: 40px; height: 40px; display: block; }
.lockup-word { font-family: var(--brand); font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.lockup.sm { margin: 0; } .lockup.sm svg, .lockup.sm img { width: 26px; height: 26px; } .lockup.sm .lockup-word { font-size: 16px; }
.fine { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#title-art { box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 4px var(--ink), 0 0 0 7px var(--atlas); }
#cc-fab { position: absolute; right: 8px; top: 26px; display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--atlas), var(--atlas2)); color: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 4px 11px 4px 8px; font-size: 12px; letter-spacing: .06em; font-family: var(--brand); font-weight: 800; box-shadow: 0 4px 0 rgba(0,0,0,.35); z-index: 3; }
#cc-fab i { width: 8px; height: 8px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 0 0 rgba(125,255,176,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(125,255,176,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,176,0); } }
#concierge, #saves { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(94%, 560px); max-height: 92%; display: flex; flex-direction: column; background: #fff; color: var(--atlas-ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 10px 0 rgba(0,0,0,.35); padding: 10px 12px 10px; font-family: var(--brand); z-index: 4; }
#concierge .inv-head { font-family: var(--brand); font-weight: 800; font-size: 16px; color: var(--atlas-ink); }
#concierge .inv-head small { font-weight: 500; font-size: 11px; color: var(--atlas-muted); margin-left: 4px; }
.cc-name { background: linear-gradient(135deg, var(--atlas), var(--atlas2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#cc-log { flex: 1 1 auto; overflow: auto; min-height: 120px; max-height: 46vh; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.cc-msg { max-width: 92%; padding: 8px 11px; border-radius: 12px; font-size: 14px; line-height: 1.35; font-weight: 500; }
.cc-msg.bot { align-self: flex-start; background: #f3f6fb; border: 1px solid var(--atlas-border); border-bottom-left-radius: 4px; }
.cc-msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--atlas), var(--atlas2)); color: #fff; border-bottom-right-radius: 4px; font-weight: 600; }
.cc-msg b { color: var(--atlas-ink); } .cc-msg i { color: var(--atlas-muted); }
.cc-diag { font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px solid var(--atlas-border); border-radius: 6px; padding: 6px 8px; margin: 6px 0 4px; white-space: pre-wrap; word-break: break-word; color: #374151; max-height: 150px; overflow: auto; }
.cc-btns { display: flex; gap: 6px; flex-wrap: wrap; }
#concierge .ghost, #saves .ghost { color: var(--atlas-ink); border-color: var(--atlas-border); font-family: var(--brand); font-weight: 700; font-size: 13px; background: #fff; border-radius: 10px; }
#concierge .ghost:hover, #saves .ghost:hover { border-color: var(--atlas); color: var(--atlas); }
.cc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cc-chip { border-radius: 20px !important; padding: 4px 10px !important; }
#cc-form { display: flex; gap: 6px; }
#cc-form input, .cc-report-form input { flex: 1 1 auto; min-width: 0; font-family: var(--brand); font-size: 15px; padding: 8px 10px; border: 2px solid var(--atlas-border); border-radius: 10px; color: var(--atlas-ink); background: #fff; }
#cc-form input:focus, .cc-report-form input:focus { outline: none; border-color: var(--atlas); }
#cc-form button[type=submit] { background: linear-gradient(135deg, var(--atlas), var(--atlas2)); border: 0; border-radius: 10px; font-family: var(--brand); font-weight: 800; padding: 8px 16px; }
.cc-report-form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.cc-note { font-size: 12px; color: var(--atlas-muted); }
#saves .inv-head { font-family: var(--brand); font-weight: 800; font-size: 16px; color: var(--atlas-ink); }
#save-slots { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.save-row { display: flex; align-items: center; gap: 8px; background: #f9fafb; border: 1px solid var(--atlas-border); border-radius: 10px; padding: 8px 10px; }
.save-lbl { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.2; }
.save-lbl b { font-size: 14px; color: var(--atlas-ink); } .save-lbl span { font-size: 12px; color: var(--atlas-muted); }
.save-row button:disabled { opacity: .35; cursor: default; }
.save-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.save-link button { background: linear-gradient(135deg, var(--atlas), var(--atlas2)) !important; color: #fff !important; border: 0 !important; }
#save-link-msg { font-size: 12px; color: var(--atlas-muted); }
#saves .inv-tip { font-family: var(--brand); color: var(--atlas-muted); }
#death-card { width: 100%; max-width: 480px; display: block; margin: 0 auto 12px; border: 3px solid var(--ink); border-radius: 10px; }
.surface-line { font-family: var(--brand); font-weight: 700; color: #1d4ed8; background: #eaf3ff; border: 1px solid #bcd6ff; border-radius: 10px; padding: 8px 12px; font-size: 15px; }
.end-cta { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 2px solid var(--atlas-border); border-radius: 16px; padding: 14px 16px; margin: 4px 0 14px; font-family: var(--brand); box-shadow: 0 6px 18px rgba(82,160,255,.15); }
.end-cta-mark { flex: 0 0 auto; } .end-cta-mark svg, .end-cta-mark img { width: 52px; height: 52px; display: block; }
.end-cta-text h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--atlas-ink); letter-spacing: -.01em; }
.end-cta-text p { font-size: 14px; color: var(--atlas-muted); line-height: 1.45; margin: 0 0 10px; }
.end-cta-text button { font-family: var(--brand); border-radius: 10px; }
#trailer-card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(800px 500px at 50% 60%, rgba(20,16,50,.55), rgba(8,6,20,.92)); border-radius: 14px; z-index: 5; pointer-events: none; }
.island-wrap { position: relative; }
.tc-inner { text-align: center; padding: 20px; animation: tcin .7s cubic-bezier(.2,.9,.3,1.2); }
.tc-kicker { font-family: var(--brand); font-weight: 800; letter-spacing: .18em; font-size: clamp(11px, 1.4vw, 15px); color: var(--atlas); margin-bottom: 8px; }
.tc-title { font-family: var(--sign); font-size: clamp(34px, 6vw, 72px); line-height: .95; color: var(--gold); text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 var(--purple); letter-spacing: .02em; }
.tc-title span { color: #fff; font-size: .45em; margin: 0 6px; }
.tc-sub { color: #d9d5f0; font-weight: 700; margin-top: 12px; font-size: clamp(13px, 1.8vw, 20px); }
.tc-url { margin-top: 14px; display: inline-block; font-family: var(--brand); font-weight: 800; font-size: clamp(12px, 1.6vw, 18px); color: #fff; background: linear-gradient(135deg, var(--atlas), var(--atlas2)); padding: 8px 16px; border-radius: 30px; border: 2px solid var(--ink); }
#trailer-card.intro .tc-sub, #trailer-card.intro .tc-url { display: none; }
@keyframes tcin { from { opacity: 0; transform: scale(.85) translateY(20px); } }
body.trailer .island-bar, body.trailer #story, body.trailer #builder { display: none !important; }
body.trailer #island { padding: 0; min-height: 100vh; justify-content: center; }
body.trailer .island-wrap { width: min(100vw, calc(100vh * 1.6)); }
body.trailer #island-canvas { border-radius: 0; border: 0; box-shadow: none; }
body.trailer #trailer-card { border-radius: 0; }
@media (max-width: 760px) {
  #cc-fab { top: 22px; font-size: 11px; padding: 3px 9px 3px 7px; }
  #concierge, #saves { position: fixed; width: 94vw; max-height: 82vh; padding: 8px; z-index: 9; }
  #cc-log { max-height: 40vh; }
  .cc-chips { gap: 4px; } .cc-chip { font-size: 11px !important; padding: 3px 8px !important; }
  .end-cta { flex-direction: column; }
  .verbs { flex-wrap: wrap; justify-content: center; }
  .verb { min-width: 40px; }
  #verb-concierge, #verb-saves { display: none; }
  #statusline { flex-wrap: wrap; gap: 4px; }
  #statusline .right { flex-wrap: wrap; justify-content: flex-end; }
  #statusline .ghost { font-size: 12px; padding: 3px 7px; }
  #st-scene { font-size: 11px; }
}
#social-studio { position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow: auto; padding: 20px; font-family: var(--brand); }
.ss-wrap { max-width: 960px; margin: 0 auto; color: #d9d5f0; }
.ss-wrap h3 { font-family: var(--sign); color: var(--gold); font-weight: 400; font-size: 28px; margin: 0 0 6px; }
.ss-wrap code { background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 6px; }
.ss-row { margin: 18px 0; } .ss-row canvas { width: 100%; height: auto; display: block; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.ss-lbl { margin: 8px 0 6px; font-weight: 700; color: #fff; }
.ss-wrap a { color: var(--atlas); }

/* ---- v6: Episode 2 v2 — deal board, try-it card, scooter run, clip modes ---- */
button.scooter { background: linear-gradient(135deg, #ff9f43, #e8590c); border-color: #ffd0a1; }
body.has-board { --stage-w: min(100vw - 20px, calc((100vh - 236px) * 1.6), 1040px); }
#board { width: var(--stage-w); margin: -6px 0; background: linear-gradient(180deg, #121a2e, #0c1222); border: 2px solid var(--ink); border-top: 0; border-bottom: 1px solid rgba(255,255,255,.08); padding: 5px 9px 6px; display: flex; flex-direction: column; gap: 4px; font-family: var(--brand); font-size: 12px; line-height: 1.25; color: #e7ecf5; }
.bd-goal { display: flex; gap: 8px; align-items: center; min-width: 0; white-space: nowrap; }
.bd-goal b { flex: 0 0 auto; background: var(--gold); color: #0c1222; font-size: 10px; font-weight: 900; letter-spacing: .1em; padding: 1px 6px; border-radius: 4px; }
.bd-goal span { font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bd-rows { display: grid; grid-template-columns: 1.4fr 1fr .75fr; gap: 6px; }
.bd-row { min-width: 0; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); border-radius: 7px; padding: 3px 8px 4px; }
.bd-name { display: block; font-size: 10px; font-weight: 800; letter-spacing: .07em; color: #8fa3c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-val { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; font-weight: 600; }
.bd-val i { font-style: normal; color: #7f8aa3; }
.bd-val em { font-style: normal; font-weight: 800; color: #fff; }
.bd-start { color: #9aa6bd; }
.bd-row.counter .bd-val em { font-size: 15px; color: #5ddc8a; }
.bd-row.won { border-color: #2fae5a; background: rgba(47,174,90,.2); }
.bd-row.won .bd-val em { color: #7dffb0; letter-spacing: .02em; }
.bd-row.flash { animation: bdflash 1.6s ease-out; }
@keyframes bdflash { 0% { background: rgba(255,210,63,.6); border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,210,63,.5); } 100% { } }
body.scooter #board, body.clip #board { margin-top: 0; border-top: 2px solid var(--ink); border-radius: 12px 12px 0 0; }

/* try-it card + scooter result (same family as #saves) */
#tryit, #scooter-result { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(94%, 660px); max-height: 94%; overflow: auto; background: #fff; color: var(--atlas-ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 10px 0 rgba(0,0,0,.35); padding: 10px 14px 12px; font-family: var(--brand); z-index: 6; }
#scooter-result { width: min(86%, 420px); text-align: left; }
#tryit .inv-head, #scooter-result .inv-head { font-family: var(--brand); font-weight: 800; font-size: 18px; color: var(--atlas-ink); letter-spacing: -.01em; }
#tryit .ghost, #scooter-result .ghost { color: var(--atlas-ink); border-color: var(--atlas-border); font-family: var(--brand); font-weight: 700; font-size: 13px; background: #fff; border-radius: 10px; }
#tryit .ghost:hover, #scooter-result .ghost:hover { border-color: var(--atlas); color: var(--atlas); }
#tryit.over-end { position: fixed; z-index: 12; box-shadow: 0 10px 0 rgba(0,0,0,.35), 0 0 0 100vmax rgba(8,8,20,.55); }
.tryit-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 8px; }
#tryit-form { display: flex; flex-direction: column; gap: 7px; }
#tryit .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.tryit-row { display: flex; gap: 7px; } .tryit-row input { flex: 1 1 0; min-width: 0; }
#tryit input[type=text], #tryit input[type=email], #tryit textarea { width: 100%; font-family: var(--brand); font-size: 15px; padding: 8px 10px; border: 2px solid var(--atlas-border); border-radius: 10px; color: var(--atlas-ink); background: #fff; }
#tryit textarea { resize: vertical; min-height: 54px; }
#tryit input:focus, #tryit textarea:focus { outline: none; border-color: var(--atlas); }
.tryit-check { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--atlas-ink); cursor: pointer; }
.tryit-check input { width: 18px; height: 18px; accent-color: #2fae5a; margin: 0; }
.tryit-go { align-self: flex-start; background: linear-gradient(135deg, var(--atlas), var(--atlas2)); border: 0; border-radius: 10px; font-family: var(--brand); font-weight: 800; font-size: 16px; padding: 10px 18px; color: #fff; }
.tryit-go:disabled { opacity: .6; cursor: default; }
.tryit-msg { font-size: 12px; font-weight: 600; color: #b3122e; min-height: 1em; }
.tryit-thanks { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 16px 2px; }
.tryit-thanks b { font-size: 19px; color: #1f8a5a; line-height: 1.3; }
.tryit-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-left: 1px solid var(--atlas-border); padding-left: 14px; }
.tryit-cal { background: #2fae5a; border: 0; border-radius: 10px; color: #fff; font-family: var(--brand); font-weight: 800; font-size: 15px; padding: 10px 14px; text-align: left; }
.tryit-side p { margin: 0; font-size: 14px; color: var(--atlas-muted); font-weight: 600; line-height: 1.35; }
.gc-logo { display: inline-block; height: var(--h, 20px); overflow: hidden; line-height: 0; vertical-align: middle; }
.gc-logo img { display: block; height: var(--h, 20px); width: auto; }
.gc-logo:has(img[hidden]), .gc-chip:has(img[hidden]) { display: none; }
.gc-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 5px 9px; vertical-align: middle; }
.sr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 8px; }
.sr-stats div { background: #f9fafb; border: 1px solid var(--atlas-border); border-radius: 10px; padding: 6px 8px; text-align: center; }
.sr-stats label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--atlas-muted); }
.sr-stats b { font-family: var(--sign); font-weight: 400; font-size: 30px; color: var(--ink); line-height: 1.1; }
#sr-note { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--atlas-muted); }
.sr-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.end-cta-btns:has(#end-cta-cal:not(.hidden)) { display: flex; gap: 8px; flex-wrap: wrap; }
.panel #end-cta-cal { background: #2fae5a; border-color: #9fe8b8; }

/* PAGES GALLERY (#pages): same family as #tryit; thumbnails strip + detail with three tabs */
#pages { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(96%, 900px); max-height: 96%; overflow: auto; background: #fff; color: var(--atlas-ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 10px 0 rgba(0,0,0,.35); padding: 8px 12px 10px; font-family: var(--brand); z-index: 7; display: flex; flex-direction: column; gap: 6px; }
#pages .inv-head { font-family: var(--brand); font-weight: 800; font-size: 17px; color: var(--atlas-ink); letter-spacing: .01em; gap: 8px; }
#pages .ghost { color: var(--atlas-ink); border-color: var(--atlas-border); font-family: var(--brand); font-weight: 700; font-size: 13px; background: #fff; border-radius: 10px; text-decoration: none; }
#pages .ghost:hover { border-color: var(--atlas); color: var(--atlas); }
.pg-head-btns { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.pg-strip { position: relative; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 3px 2px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; flex: 0 0 auto; }
.pg-thumb { flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; align-items: stretch; background: #f9fafb; border: 2px solid var(--atlas-border); border-radius: 10px; padding: 4px; scroll-snap-align: center; cursor: pointer; color: var(--atlas-ink); }
.pg-thumb canvas { display: block; width: 160px; height: 100px; border-radius: 6px; background: #e5e7eb; }
.pg-thumb span { font-size: 11px; font-weight: 700; color: var(--atlas-muted); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.pg-thumb:hover { border-color: #b8d6ff; }
.pg-thumb.on { border-color: var(--atlas); background: #eaf3ff; box-shadow: 0 0 0 2px rgba(82,160,255,.35); }
.pg-thumb.on span { color: var(--atlas-ink); }
.pg-empty { margin: 8px 4px; font-size: 14px; font-weight: 600; color: var(--atlas-muted); }
.pg-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.pg-view { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pg-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.pg-tabs button { font-family: var(--brand); font-weight: 700; font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1.5px solid var(--atlas-border); background: #fff; color: var(--atlas-muted); }
.pg-tabs button.on { background: var(--atlas-ink); border-color: var(--atlas-ink); color: #fff; }
.pg-cv-wrap { position: relative; align-self: flex-start; max-width: 100%; }
.pg-cv-wrap canvas { display: block; max-width: 100%; max-height: max(160px, calc(var(--stage-w) * .625 - 236px)); width: auto; height: auto; border: 1px solid var(--atlas-border); border-radius: 8px; background: #e5e7eb; }
.pg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: rgba(255,255,255,.92); color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1; padding: 0 0 3px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.pg-nav.prev { left: 6px; } .pg-nav.next { right: 6px; }
.pg-nav:hover { background: #fff; border-color: var(--atlas); color: var(--atlas); }
.pg-text { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding-top: 2px; }
.pg-text p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--atlas-ink); }
.pg-text p:empty { display: none; }
.pg-text p b { color: var(--atlas-ink); font-weight: 800; }
.pg-who b { display: block; font-size: 18px; letter-spacing: -.01em; }
.pg-who span { display: block; font-size: 13px; font-weight: 600; color: var(--atlas-muted); }
.pg-sentence { background: #f3f6fb; border: 1px solid var(--atlas-border); border-left: 3px solid var(--atlas); border-radius: 8px; padding: 6px 9px; font-size: 13.5px !important; }
.pg-quote { font-weight: 700; font-style: italic; color: #1f8a5a !important; font-size: 15px !important; }
.pg-count { font-size: 12px !important; font-weight: 700; color: var(--atlas-muted) !important; }
body.pages-solo #bar, body.pages-solo #board, body.pages-solo #cc-fab, body.pages-solo #coach, body.pages-solo #hover, body.pages-solo #cursor-label, body.pages-solo #statusline { display: none !important; }
body.pages-solo { --stage-w: min(100vw - 20px, calc((100vh - 60px) * 1.6), 1040px); }
body.clip #pages { width: min(97%, 1100px); }
body.clip #pages-close, body.clip #pages-home { visibility: hidden; }
/* scooter mode: the run owns the stage; the verb bar and dialogue go away, the deal board stays */
body.scooter #bar, body.scooter #msg, body.scooter #choices, body.scooter #cc-fab, body.scooter #hover, body.scooter #cursor-label, body.scooter #coach { display: none !important; }
body.scooter #stage { cursor: pointer !important; }
body.scooter-solo #board, body.scooter-solo #btn-restore, body.scooter-solo #btn-saves { display: none !important; }
body.scooter-solo { --stage-w: min(100vw - 20px, calc((100vh - 110px) * 1.6), 1040px); }
/* clip mode (#clip=<id>): recording view, HUD hidden, board visible */
body.clip { --stage-w: min(100vw - 20px, calc((100vh - 100px) * 1.6), 1280px); }
body.clip #bar, body.clip #inventory, body.clip #coach, body.clip #cc-fab, body.clip #title, body.clip #statusline, body.clip #hover, body.clip #cursor-label, body.clip #story, body.clip #builder, body.clip #clips, body.clip #toast { display: none !important; }
body.clip #stage { cursor: default !important; }
/* #clips: the team's list of clip URLs */
#clips { position: fixed; top: 12px; right: 12px; z-index: 30; width: min(480px, 94vw); max-height: 90vh; overflow: auto; background: var(--panel); border: 2px solid #2fae5a; border-radius: 14px; padding: 14px 18px; font-family: var(--brand); box-shadow: 0 14px 40px rgba(0,0,0,.5); }
#clips h3 { margin: 0 0 4px; font-size: 18px; color: #fff; } #clips p { margin: 0 0 8px; font-size: 13px; color: #bdb8dc; }
#clips ul { margin: 0; padding-left: 18px; } #clips li { margin: 5px 0; font-size: 13px; color: #fff; word-break: break-all; } #clips a { color: var(--atlas); font-weight: 700; }
.story-card p.sponsor-line { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--brand); font-weight: 700; font-size: 14px; color: #d9f5e3; }
@media (max-width: 760px) {
  #board { padding: 4px 8px 5px; gap: 2px; font-size: 11px; }
  .bd-goal b { font-size: 9px; padding: 0 5px; }
  .bd-goal span { font-size: 11px; }
  .bd-rows { grid-template-columns: 1fr; gap: 1px; }
  .bd-row { display: flex; gap: 6px; align-items: baseline; padding: 0; background: none; border: 0; border-radius: 0; }
  .bd-row.won { background: none; }
  .bd-name { flex: 0 0 37%; font-size: 9.5px; line-height: 14px; letter-spacing: .02em; }
  .bd-val { font-size: 11px; line-height: 14px; }
  .bd-val i { display: none; } /* phone: the latest step only */
  .bd-row.counter .bd-val em { font-size: 12px; }
  @keyframes bdflash { 0% { background: rgba(255,210,63,.45); } 100% { } }
  #tryit, #scooter-result { position: fixed; width: 94vw; max-height: 86vh; z-index: 9; padding: 8px 10px 10px; box-shadow: 0 10px 0 rgba(0,0,0,.35), 0 0 0 100vmax rgba(8,8,20,.6); }
  .tryit-cols { grid-template-columns: 1fr; gap: 10px; }
  .tryit-row { flex-direction: column; }
  #tryit input[type=text], #tryit input[type=email], #tryit textarea { font-size: 16px; }
  .tryit-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--atlas-border); padding-top: 10px; }
  body.clip { --stage-w: calc(100vw - 12px); }
  #pages { position: fixed; width: 96vw; max-height: 90vh; z-index: 9; padding: 7px 9px 9px; box-shadow: 0 10px 0 rgba(0,0,0,.35), 0 0 0 100vmax rgba(8,8,20,.6); }
  #pages .inv-head { font-size: 14px; }
  .pg-thumb canvas { width: 120px; height: 75px; }
  .pg-thumb span { max-width: 120px; font-size: 10px; }
  .pg-detail { grid-template-columns: 1fr; gap: 8px; }
  .pg-cv-wrap { align-self: stretch; }
  .pg-cv-wrap canvas { width: 100%; max-height: none; }
  .pg-nav { width: 30px; height: 30px; font-size: 19px; }
  .pg-text p { font-size: 13px; }
  .pg-who b { font-size: 16px; }
  body.clip #pages { width: 96vw; }
}

/* ---- v8: the page around the game. #hero ("Now showing": video montage + the line + three ways in), #stories (one row per story: strip of clips + Play), lures ---- */
#hero { padding: 22px 16px 8px; }
.hero-wrap { max-width: 1180px; margin: 0 auto; display: flex; gap: 32px; align-items: center; }
.hero-media { position: relative; flex: 0 1 640px; min-width: 0; }
#hero-video, #hero-art { display: block; width: 100%; aspect-ratio: 960/662; border-radius: 14px; background: #0c1222; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 3px var(--ink), 0 0 0 5px rgba(82,160,255,.65); object-fit: cover; }
#hero-art { aspect-ratio: 16/10; }
.hero-sound { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--brand); font-weight: 800; font-size: 14px; padding: 7px 13px 7px 11px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(10,12,24,.72); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hero-sound i { width: 16px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M0 4h3l4-4v14l-4-4H0z'/%3E%3Cpath d='M10 3.5l5 7M15 3.5l-5 7' stroke='black' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M0 4h3l4-4v14l-4-4H0z'/%3E%3Cpath d='M10 3.5l5 7M15 3.5l-5 7' stroke='black' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat center / contain; }
.hero-sound.on i { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M0 4h3l4-4v14l-4-4H0z'/%3E%3Cpath d='M10 4.5q2 2.5 0 5M12.5 2.5q4 4.5 0 9' stroke='black' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M0 4h3l4-4v14l-4-4H0z'/%3E%3Cpath d='M10 4.5q2 2.5 0 5M12.5 2.5q4 4.5 0 9' stroke='black' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); }
.hero-sound:hover { border-color: #fff; background: rgba(10,12,24,.88); }
.hero-copy { flex: 1 1 380px; min-width: 0; max-width: 500px; }
.hero-copy .lockup { margin-bottom: 14px; }
.hero-h { font-family: var(--brand); font-weight: 800; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.08; letter-spacing: -.025em; color: #fff; margin: 0 0 12px; text-wrap: balance; }
.hero-sub { font-family: var(--brand); font-weight: 500; font-size: 17px; line-height: 1.5; color: #c9c6e4; margin: 0 0 18px; }
.hero-sub .gc-chip { margin-left: 4px; padding: 4px 8px; position: relative; top: -1px; }
.hero-btns { display: flex; flex-direction: column; gap: 9px; align-items: stretch; }
.hero-btns button.big { font-family: var(--brand); align-items: center; text-align: center; padding: 13px 18px; border-radius: 12px; }
.hero-btns button.big b { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
button.watch { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.32); }
button.watch:hover { background: rgba(255,255,255,.12); border-color: #fff; }
#hero.no-video .hero-sound { display: none; }
.now-showing { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0 0 12px; font-family: var(--brand); white-space: nowrap; }
.ns-tag { flex: 0 0 auto; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: #6fe3a0; background: rgba(46,160,96,.16); border: 1px solid rgba(111,227,160,.22); border-radius: 999px; padding: 5px 9px 4px; }
.ns-text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #a9a5c6; }
/* the hero's tap-to-play (play() refused: Low Power Mode, data saver, reduced motion). The video stays, on its poster / first frame. */
.hero-tap { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 14px; background: radial-gradient(closest-side, rgba(8,8,20,.35), rgba(8,8,20,.1)); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-tap .ht-in { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 999px; background: rgba(10,12,24,.78); border: 1.5px solid rgba(255,255,255,.6); box-shadow: 0 10px 30px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .15s; }
.hero-tap i { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #2fae5a, #1f8a5a); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
.hero-tap i::after { content: ''; width: 0; height: 0; border-left: 17px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.hero-tap b { font-family: var(--brand); font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: #fff; }
.hero-tap:hover .ht-in, .hero-tap:focus-visible .ht-in { transform: scale(1.04); }
.hero-tap:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
#hero.needs-tap .hero-sound { display: none; }
#hero-debug { position: fixed; left: 6px; right: 6px; bottom: 6px; z-index: 50; max-height: 40vh; overflow: auto; margin: 0; padding: 8px 10px; background: rgba(0,0,0,.88); color: #9ef0b9; font: 11px/1.35 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-all; border-radius: 8px; }
.hero-copy .sponsor-line { margin: 14px 0 0; font-family: var(--brand); font-weight: 600; font-size: 14px; line-height: 1.9; color: #bdb9da; }
.hero-copy .sponsor-line .gc-chip { padding: 3px 8px; margin: 0 6px 0 2px; position: relative; top: -1px; }
.hero-copy .sponsor-line .reel-cal { margin-left: 0; }
/* the story rows */
#stories { padding: 30px 16px 12px; }
.stories-wrap { max-width: 1180px; margin: 0 auto; }
.stories-head { margin: 0 0 6px; }
.stories-head .eyebrow { color: #8be3ae; }
.stories-head h2 { font-family: var(--sign); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1; color: var(--gold); margin: 0 0 8px; letter-spacing: .02em; text-shadow: 3px 3px 0 var(--ink); }
.stories-head p { font-family: var(--brand); font-size: 15.5px; line-height: 1.5; color: #bdb9da; margin: 0; max-width: 760px; }
#reel-fallback { margin-top: 16px; }
.story-row { padding: 20px 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 12px; }
.row-titles { flex: 1 1 auto; min-width: 0; }
.row-titles h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-family: var(--brand); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; color: #fff; margin: 0 0 4px; }
.story-row.is-new .row-titles h3::after { content: 'New'; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #0d2a19; background: #5ddc8a; border-radius: 999px; padding: 3px 8px 2px; }
.row-sub { font-family: var(--brand); font-size: 15px; line-height: 1.45; color: #bdb9da; margin: 0; max-width: 700px; }
/* the Buyer's Advantage row: three reasons beside the clips, for people already working in Claude */
.ba-why { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.ba-why li { font-family: var(--brand); font-size: 14px; line-height: 1.5; color: #c9c6e4; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; }
.ba-why li b { color: #ffd166; font-weight: 800; }
@media (max-width: 760px) { .ba-why { grid-template-columns: 1fr; gap: 8px; margin: 8px 0 12px; } .ba-why li { font-size: 13.5px; padding: 9px 11px; } }
.row-best { font-family: var(--brand); font-weight: 800; font-size: 13px; color: #ffd2a6; margin: 6px 0 0; }
.row-ctl { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.row-play.big { font-family: var(--brand); padding: 10px 18px; border-radius: 12px; min-width: 188px; }
.row-play.big b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.row-play.big small { font-size: 12.5px; }
.row-nav { display: none; gap: 6px; }
@media (hover: hover) and (pointer: fine) { .story-row.overflows .row-nav { display: inline-flex; } }
.row-nav button { width: 36px; height: 36px; padding: 0 0 3px; border-radius: 50%; font-size: 22px; line-height: 1; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.25); color: #fff; display: flex; align-items: center; justify-content: center; }
.row-nav button:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.story-row.at-start .row-prev, .story-row.at-end .row-next { opacity: .3; pointer-events: none; }
.story-row.no-clips { padding-bottom: 18px; }
.story-row.no-clips .row-head { margin-bottom: 0; }
.coming-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--brand); font-size: 15px; line-height: 1.45; color: #e1def4; margin: 0; padding: 14px 0 0; }
.cn-tag { font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(255,210,63,.55); border-radius: 999px; padding: 3px 9px 2px; }
.coming-next .linkish, .reel-line .linkish { font-size: 15px; padding: 0; }
#stories .reel-line { margin-top: 10px; }
.reel-strip { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.reel-card { flex: 0 0 300px; min-width: 0; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.reel-media { position: relative; border-radius: 12px; overflow: hidden; background: #0c1222; box-shadow: 0 0 0 2px var(--ink), 0 10px 26px rgba(0,0,0,.4); }
.reel-media video { display: block; width: 100%; aspect-ratio: 960/662; object-fit: cover; object-position: center bottom; background: #0c1222; }
.reel-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: linear-gradient(180deg, rgba(8,8,20,0) 45%, rgba(8,8,20,.45)); display: flex; align-items: center; justify-content: center; }
.reel-play span { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--atlas), var(--atlas2)); border: 2.5px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.reel-play span::after { content: ''; width: 0; height: 0; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.reel-card.ended .reel-play span::after { border: 0; width: 18px; height: 18px; margin: 0; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4V1L7 5l5 4V6a6 6 0 1 1-6 6H4a8 8 0 1 0 8-8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4V1L7 5l5 4V6a6 6 0 1 1-6 6H4a8 8 0 1 0 8-8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.reel-play:hover span, .reel-play:focus-visible span { transform: scale(1.1); }
.reel-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.reel-card.playing .reel-play { display: none; }
.reel-card.playing .reel-media { box-shadow: 0 0 0 2px var(--atlas), 0 10px 26px rgba(0,0,0,.4); }
.reel-card figcaption { font-family: var(--brand); font-weight: 700; font-size: 14px; line-height: 1.35; color: #e9e7f7; padding: 0 2px; }
.reel-lure { align-self: flex-start; font-family: var(--brand); font-weight: 800; font-size: 13.5px; background: none; border: 0; padding: 0 2px; color: var(--atlas); border-radius: 4px; animation: lurein .4s ease; }
.reel-lure:hover { color: #8cc2ff; text-decoration: underline; }
@keyframes lurein { from { opacity: 0; transform: translateY(-4px); } }
.reel-line { font-family: var(--brand); font-size: 15px; line-height: 1.5; color: #bdb9da; margin: 8px 2px 0; max-width: 820px; }
.reel-cal { display: inline-block; margin-left: 6px; color: #7dd9a2; font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(125,217,162,.45); white-space: nowrap; }
.reel-cal:hover { color: #a6ecc1; border-color: #a6ecc1; }
#reel-fallback .yt-grid { margin-bottom: 4px; }
/* the title screen now sits under the page; a hairline separates them */
#title { border-top: 1px solid rgba(255,255,255,.06); margin-top: 18px; padding-top: 28px; }
.title-side h1, .title-side h2.t-title { font-family: var(--sign); font-weight: 400; font-size: 44px; line-height: .95; color: var(--gold); margin: 0 0 10px; text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--purple); letter-spacing: .02em; }
.title-side h2.t-title span { color: #fff; font-size: 22px; display: inline-block; margin: 0 4px; }
/* playing: the game owns the screen; the page comes back with the title */
body.playing #hero, body.playing #stories, body.clip #hero, body.clip #stories, body.trailer #hero, body.trailer #stories { display: none !important; }
button.linkish { background: none; border: 0; padding: 4px 0; color: var(--atlas); font-family: var(--brand); font-weight: 700; font-size: 14px; }
button.linkish:hover { text-decoration: underline; }
.story-grid { margin-top: 4px; }
/* lures in the game: scooter result (initials + optional email) and the pages gallery footer */
.sr-stats small { display: block; font-family: var(--brand); font-weight: 800; font-size: 11px; letter-spacing: .12em; color: var(--atlas-muted); margin-top: -2px; }
.sr-form { display: flex; flex-direction: column; gap: 7px; margin: 0 0 10px; padding: 9px 10px 10px; background: #f6f9ff; border: 1px solid #dbe7fb; border-radius: 10px; }
.sr-fields { display: flex; gap: 8px; }
.sr-fields label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sr-fields label span { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--atlas-ink); }
.sr-ini { flex: 0 0 76px; } .sr-em { flex: 1 1 auto; }
.sr-form input { width: 100%; font-family: var(--brand); font-size: 15px; padding: 7px 9px; border: 2px solid var(--atlas-border); border-radius: 9px; color: var(--atlas-ink); background: #fff; }
.sr-form input:focus { outline: none; border-color: var(--atlas); }
#sr-initials { text-transform: uppercase; font-weight: 800; letter-spacing: .14em; text-align: center; }
.sr-form.held .sr-em { display: none; }
.sr-formbtns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sr-save { background: var(--atlas-ink); border: 0; border-radius: 9px; font-family: var(--brand); font-weight: 800; font-size: 14px; padding: 7px 14px; color: #fff; }
.sr-save:disabled { opacity: .6; }
.sr-msg { font-size: 12.5px; font-weight: 700; color: var(--atlas-muted); }
.sr-msg.ok { color: #1f8a5a; } .sr-msg.err { color: #b3122e; }
.pg-lure { align-self: flex-start; background: none; border: 0; padding: 4px 2px 0; font-family: var(--brand); font-weight: 800; font-size: 14px; color: #1d6fe0; animation: lurein .4s ease; }
.pg-lure:hover { text-decoration: underline; }
body.clip #pages-lure { display: none !important; }
/* the try-it card over the page (lifted into <body>; .over-end gives it the dimmed backdrop) */
#tryit.page { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); max-height: 92vh; }

@media (max-width: 900px) {
  .hero-wrap { flex-direction: column; gap: 18px; align-items: stretch; }
  .hero-media { flex: 0 0 auto; }
  .hero-copy { max-width: none; flex: 0 0 auto; }
}
/* the phone sticky bar (shown by page.js once the hero's buttons scroll off) */
.sticky-cta { display: none; }
/* touch screens swipe the strips: no arrows */
@media (hover: none) { .row-nav, .story-row.overflows .row-nav { display: none !important; } }

/* ---- phones (360–430 px are the target; everything below 760). Mobile is the primary device. ---- */
@media (max-width: 760px) {
  body:not(.playing):not(.clip):not(.trailer) { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  /* hero: lockup, video (16:10, full width inside 12 px gutters), chip eyebrow, headline, sub, three 52 px buttons, sponsor */
  #hero { padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px)); }
  .hero-wrap { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .lockup { order: -1; margin: 0 0 10px; gap: 7px; }
  .hero-copy .lockup svg, .hero-copy .lockup img { width: 26px; height: 26px; }
  .hero-copy .lockup-word { font-size: 17px; }
  #hero-video, #hero-art { aspect-ratio: 16/10; object-position: center bottom; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 2px var(--ink), 0 0 0 3.5px rgba(82,160,255,.5); }
  .hero-tap { border-radius: 12px; }
  .hero-tap .ht-in { gap: 10px; padding: 8px 18px 8px 8px; }
  .hero-tap i { width: 48px; height: 48px; }
  .hero-tap b { font-size: 16.5px; }
  .hero-sound { left: 8px; bottom: 8px; min-height: 44px; font-size: 13.5px; padding: 0 14px 0 12px; }
  /* the eyebrow reads as one sentence that wraps: the chip inline, the text flowing after it onto a second line. Never clipped. */
  .now-showing { display: block; margin: 16px 0 10px; white-space: normal; line-height: 1.55; }
  .ns-tag { display: inline-block; vertical-align: 1px; margin: 0 8px 0 0; }
  .ns-text { display: inline; white-space: normal; overflow: visible; text-overflow: clip; font-size: 13px; }
  .hero-h { font-size: min(30px, 8.1vw); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 10px; text-wrap: pretty; } /* 30 px from 370 up; 3 lines at 360 */
  .hero-sub { font-size: 15px; line-height: 1.45; margin: 0 0 16px; }
  .hero-btns { gap: 10px; }
  .hero-btns button.big { min-height: 52px; padding: 0 16px; justify-content: center; border-radius: 12px; }
  .hero-btns button.big b { font-size: 16.5px; }
  .hero-copy .sponsor-line { display: block; margin: 14px 0 0; font-size: 13px; line-height: 22px; }
  .hero-copy .sponsor-line .gc-chip { margin: 0 0 0 4px; top: -1px; padding: 2px 7px; } /* inline: rides at the end of the text, wraps with it */
  .hero-copy .sponsor-line .gc-logo { --h: 15px !important; }
  .hero-copy .sponsor-line .reel-cal { flex: 1 0 100%; display: flex; align-items: center; min-height: 44px; margin: 0; font-size: 14px; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(125,217,162,.45); text-underline-offset: 3px; }
  /* stories */
  #stories { padding: 22px 0 8px; }
  .stories-head, .coming-next, #reel-fallback { padding-left: 12px; padding-right: 12px; }
  .stories-head h2 { font-size: 28px; }
  .stories-head p { font-size: 14.5px; }
  .story-row { padding: 18px 0 8px; }
  .row-head { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 12px; margin-bottom: 12px; }
  .row-titles h3 { font-size: 20px; line-height: 1.2; }
  .row-sub { font-size: 14px; line-height: 1.45; }
  .row-ctl { width: 100%; }
  .row-nav, .story-row.overflows .row-nav { display: none; }
  .row-play.big { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 50px; padding: 0 16px; flex-direction: row; align-items: center; justify-content: center; gap: 8px; }
  .row-play.big b { font-size: 16px; }
  .row-play.big small { font-size: 13px; }
  .row-play.big small::before { content: '· '; }
  .reel-strip { gap: 12px; padding: 4px 12px 10px; scroll-padding: 0 12px; }
  .reel-strip::after { content: ''; flex: 0 0 1px; } /* WebKit drops a flex scroller's end padding */
  .reel-card { flex: 0 0 82vw; max-width: 360px; }
  .reel-play span { width: 64px; height: 64px; border-width: 3px; }
  .reel-play span::after { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; margin-left: 6px; }
  .reel-card.ended .reel-play span::after { width: 24px; height: 24px; }
  .reel-card figcaption { font-size: 14px; line-height: 1.3; }
  .reel-lure { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
  .reel-line { margin: 10px 12px 0; font-size: 14.5px; }
  .coming-next { font-size: 14.5px; }
  .coming-next .linkish, .reel-line .linkish { min-height: 44px; display: inline-flex; align-items: center; }
  #story .sh { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; }
  #title { margin-top: 12px; padding-top: 22px; }
  .title-side h2.t-title { font-size: 34px; }
  .sr-fields { flex-direction: column; gap: 6px; } .sr-ini { flex: 0 0 auto; width: 96px; }
  .sr-form input { font-size: 16px; }
  /* the try-it card over the page: a full-height sheet, one column, scrolls on its own; 16 px inputs so iOS doesn't zoom */
  #tryit.page { left: 0; top: 0; right: 0; bottom: 0; transform: none; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; z-index: 30;
    padding: max(8px, env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; box-shadow: none; }
  #tryit.page .inv-head { min-height: 52px; font-size: 19px; line-height: 1.2; gap: 10px; border-bottom: 1px solid var(--atlas-border); margin: 0 -16px 4px; padding: 0 8px 0 16px; }
  #tryit.page #tryit-close { min-width: 64px; min-height: 44px; font-size: 15px; }
  #tryit.page .tryit-cols { grid-template-columns: 1fr; gap: 18px; margin-top: 12px; }
  #tryit.page #tryit-form { gap: 10px; }
  #tryit.page .tryit-row { flex-direction: column; gap: 10px; }
  #tryit.page input[type=text], #tryit.page input[type=email], #tryit.page textarea { font-size: 16px; min-height: 48px; padding: 11px 12px; }
  #tryit.page textarea { min-height: 92px; }
  #tryit.page .tryit-check { min-height: 44px; font-size: 15px; }
  #tryit.page .tryit-check input { width: 22px; height: 22px; }
  #tryit.page .tryit-go { align-self: stretch; min-height: 52px; font-size: 17px; }
  #tryit.page .tryit-thanks .ghost { min-height: 44px; padding: 0 16px; }
  #tryit.page .tryit-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--atlas-border); padding-top: 16px; gap: 12px; }
  #tryit.page .tryit-cal { align-self: stretch; min-height: 50px; text-align: center; font-size: 16px; }
  /* the sticky bar: 56 px + the home indicator, after the hero scrolls out; never over the game, island, scooter, a clip or the try-it sheet */
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; align-items: center; gap: 10px; height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 6px max(12px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(13,14,30,.94); border-top: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(110%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  .sticky-cta.on { transform: none; visibility: visible; transition: transform .22s ease; }
  body.playing .sticky-cta, body.clip .sticky-cta, body.trailer .sticky-cta, body.reel-playing .sticky-cta, body:has(#tryit.page:not(.hidden)) .sticky-cta { display: none; }
  #sticky-play { flex: 1 1 auto; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 14px; border-radius: 11px; font-family: var(--brand); white-space: nowrap; }
  #sticky-play b { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
  #sticky-play span { font-size: 14.5px; font-weight: 600; opacity: .88; }
  .sticky-try { flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 11px; background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: #fff; font-family: var(--brand); font-weight: 700; font-size: 14.5px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .sticky-cta, .sticky-cta.on { transition: none; } }
@media (prefers-reduced-motion: reduce) { .hero-tap .ht-in { transition: none; } }

/* "Get started" (the self-serve sign-up link, a.get-started): quiet next to the try-it form, primary once it's sent,
   a peer of Book 20 min elsewhere. Never in the hero. Tap targets ≥ 44 px on every width. */
a.get-started { font-family: var(--brand); font-weight: 800; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a.get-started:focus-visible { outline: 3px solid var(--atlas); outline-offset: 2px; border-radius: 6px; }
.gs-link { display: inline-flex; align-items: center; min-height: 44px; color: #2563eb; font-size: 14px; white-space: nowrap; }
.gs-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* try-it card: one quiet line under "Try it free" */
.tryit-alt { margin: -6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--atlas-muted); line-height: 1.3; }
.tryit-alt .gs-link { margin-left: 2px; font-size: 13.5px; }
/* thank-you state: Get started is the primary button, Back stays quiet */
.tryit-thanks-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
a.tryit-go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: #fff; }
a.tryit-go:hover { filter: brightness(1.05); }
#tryit .tryit-thanks .ghost { min-height: 44px; padding: 0 16px; }
/* the closing line under the story rows: Try it · Get started · Book 20 min */
.reel-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-top: 4px; }
.reel-links .linkish, .reel-links a { min-height: 44px; display: inline-flex; align-items: center; }
.reel-line .gs-inline { color: #fff; font-size: 15px; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 4px; }
.reel-line .gs-inline:hover { text-decoration-color: #fff; }
.reel-line .gs-inline::after { content: '\00a0→'; }
.reel-links .reel-cal { margin-left: 0; font-size: 15px; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(125,217,162,.45); text-underline-offset: 4px; }
/* Episode 2 ending: a third button next to Try it free and Book 20 min */
.end-cta-btns:has(#end-cta-start:not(.hidden)) { display: flex; gap: 8px; flex-wrap: wrap; }
.panel a.big.end-start { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; line-height: normal; padding: 12px 20px; border-radius: 10px; color: var(--atlas-ink); background: #fff; border: 2px solid #cbd5e1; }
.panel a.big.end-start:hover { border-color: var(--atlas); color: #2563eb; }
/* scooter result: a small link under the email line */
.sr-start { margin: -6px 0 6px; }
.sr-start .gs-link { font-size: 13.5px; }
/* phones: the sticky bar's link, the thank-you button full width, the ending buttons stack */
a.sticky-try { display: flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 760px) {
  #tryit.page .tryit-thanks-btns { flex-direction: column; align-items: stretch; width: 100%; }
  #tryit.page .tryit-thanks { align-items: stretch; }
  #tryit.page .tryit-thanks a.tryit-go { min-height: 52px; font-size: 17px; }
  #tryit.page .tryit-alt { margin-top: -4px; font-size: 14.5px; }
  #tryit.page .tryit-alt .gs-link { font-size: 14.5px; }
  .reel-links { gap: 0 18px; }
  .end-cta-btns:has(#end-cta-start:not(.hidden)) > * { flex: 1 1 100%; justify-content: center; align-items: center; text-align: center; font-size: 16px; padding: 12px 14px; }
}

/* ---- v15: the page is the page. The game's title screen only renders while the game (or a clip, or the builder) owns the
   screen; page.js's Play buttons still click #btn-ep2 etc. inside it (a scripted click on a display:none button fires). ---- */
body:not(.playing):not(.clip):not(.building) #title { display: none; }
/* The Buyer's Advantage row (#row-ba): eleven 30-second scenes + the 5-minute reel. Each short links to its scene in the game. */
.reel-scene { align-self: flex-start; display: inline-flex; align-items: center; font-family: var(--brand); font-weight: 800; font-size: 13.5px; line-height: 1.3; color: var(--gold); text-decoration: none; padding: 0 2px; border-radius: 4px; }
.reel-scene:hover { color: #ffe27a; text-decoration: underline; text-underline-offset: 3px; }
.reel-scene:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ba-line { margin-top: 6px; }
.ba-line > span:first-child { color: #fff; font-weight: 700; }
/* #story: one card ("The point"), full width */
.story-grid.one { grid-template-columns: 1fr; }
.story-card .sc-made { margin-top: 12px; }
.story-card .sc-made a { color: var(--atlas); font-weight: 800; text-decoration: none; }
.story-card .sc-made a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .reel-scene { min-height: 44px; font-size: 14px; }
  .story-card .sc-made a { display: inline-flex; align-items: center; min-height: 44px; }
  /* sticky bar: Play Episode 2 + What it does (gold) */
  #sticky-what { flex: 0 0 auto; height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 13px; border-radius: 11px; font-family: var(--brand); white-space: nowrap; }
  #sticky-what b { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
  #sticky-what span { font-size: 13.5px; font-weight: 700; opacity: .85; }
  #sticky-play { padding: 0 10px; }
}
/* "‹ Back to the page": only while a scene launched from #row-ba is on screen */
.scene-back { display: none; }
body.clip.from-page .scene-back { display: inline-flex; align-items: center; position: fixed; left: max(10px, env(safe-area-inset-left, 0px)); top: max(10px, env(safe-area-inset-top, 0px)); z-index: 40; min-height: 44px; padding: 0 16px; border-radius: 999px; font-family: var(--brand); font-weight: 800; font-size: 14.5px; color: #fff; background: rgba(10,12,24,.82); border: 1.5px solid rgba(255,255,255,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.clip.from-page .scene-back:hover { border-color: #fff; }
.story-card p a.go-builder { color: var(--atlas); font-weight: 800; text-decoration: none; }
.story-card p a.go-builder:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { body.clip.from-page .scene-back { top: auto; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: max(16px, env(safe-area-inset-bottom, 0px)); } }
