/* INSIDER — alpha layout. Colors from theme.css. Desktop first, readable down to ~360px. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(1100px 520px at 85% -10%, rgba(169,139,255,.10), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(79,216,240,.06), transparent 60%), var(--bg); color: var(--text); font: 15px/1.45 var(--font); min-height: 100vh; }
#app { max-width: 1320px; margin: 0 auto; padding: 14px 16px 40px; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; }
h2 { font-size: 1.3rem; } h3 { font-size: 1.02rem; } h4 { font-size: .9rem; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
p { margin: 0 0 .6em; }
a { color: var(--p-cyan); }
.fine { color: var(--muted); font-size: .84rem; }
.mono { font-family: var(--mono); font-size: .86em; }
.small { font-size: .78rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--muted); margin: 0 0 .3em; }
.big { font-size: 1.12rem; font-weight: 800; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; margin-top: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.center-t { text-align: center; }
.error { color: var(--danger); font-weight: 700; }
:focus-visible { outline: 3px solid var(--p-cyan); outline-offset: 2px; border-radius: 6px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.tag.muted { color: var(--muted); } .tag.danger { color: var(--danger); border-color: rgba(255,82,94,.5); }
.tag.scen { color: var(--warn); border-color: rgba(255,209,102,.45); }
.tag.buy { color: var(--signal); } .tag.sell { color: var(--danger); } .tag.deployer { color: var(--p-purple); }

.btn { font: inherit; font-weight: 800; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 9px 15px; cursor: pointer; transition: transform .08s, border-color .15s, background .15s; }
.btn:hover:not(:disabled) { border-color: #4a5480; transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.signal { background: var(--signal); border-color: var(--signal); color: #0c2018; }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255,82,94,.14); border-color: rgba(255,82,94,.6); color: #ffd5d8; }
.btn.wide { width: 100%; }
.btn.huge { width: 100%; font-size: 1.25rem; padding: 16px; border-radius: 14px; }
.btn.go-in { background: var(--signal); border-color: var(--signal); color: #0c2018; }
.btn.go-out { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.dev { width: 100%; margin-top: 8px; background: rgba(169,139,255,.15); border-color: var(--p-purple); }
.link { font: inherit; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px; }
.chipbtn { font: inherit; font-size: .8rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-deep); color: var(--text); cursor: pointer; }
.chipbtn.sus { border-color: color-mix(in srgb, var(--pc) 60%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
input { font: inherit; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }

/* brand + topbar */
.brand .logo { font-weight: 900; letter-spacing: -.03em; font-size: 2.4rem; }
.brand .logo b { color: var(--danger); }
.brand .kicker { display: block; color: var(--danger); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 800; margin-top: -2px; }
.brand.small .logo { font-size: 1.2rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.room-chip { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* home */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding: 24px 0 22px; }
.tagline { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 14px 0 8px; }
.lead { color: var(--muted); max-width: 50ch; }
.name-field { display: grid; gap: 4px; max-width: 280px; margin: 14px 0 12px; font-size: .82rem; color: var(--muted); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 620px; }
.mode-btn { font: inherit; text-align: left; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 12px; cursor: pointer; display: grid; gap: 2px; }
.mode-btn small { color: var(--muted); font-size: .78rem; }
.mode-btn.primary { background: var(--danger); border-color: var(--danger); } .mode-btn.primary small { color: #ffe2e4; }
.mode-btn:hover { transform: translateY(-1px); }
.join { display: flex; gap: 8px; margin: 12px 0; max-width: 300px; } .join input { width: 130px; text-transform: uppercase; letter-spacing: .15em; }
.hero-art { position: relative; height: 320px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, #1a1f33, #11142a); overflow: hidden; }
.hero-chart { position: absolute; inset: 30px 20px auto 20px; opacity: .9; }
.hero-av { position: absolute; bottom: 22px; } .hero-av.a0 { left: 8%; } .hero-av.a1 { left: 30%; bottom: 40px; } .hero-av.a2 { left: 54%; } .hero-av.a3 { left: 76%; bottom: 36px; }
.bubble { position: absolute; font-size: .8rem; background: var(--panel-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 12px 12px 12px 3px; }
.bubble.b0 { left: 10%; bottom: 112px; } .bubble.b1 { right: 6%; bottom: 120px; border-color: rgba(255,82,94,.55); }
.comp { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; align-items: center; border-style: dashed; }
.comp h3 { margin: 0; } .pitch { font-weight: 800; margin: 4px 0 0; }

/* queue + lobby */
.screen.center { max-width: 760px; margin: 0 auto; }
.narrow { max-width: 480px; margin: 40px auto; text-align: center; }
.qdots { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.qdot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.qdot.on { background: var(--signal); border-color: var(--signal); }
.lobby-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.code { font-family: var(--mono); letter-spacing: .25em; font-size: 2rem; margin: 0; }
.share input { width: 260px; font-size: .82rem; }
.seats { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.seat { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-left: 4px solid var(--pc); border-radius: 11px; padding: 7px 10px; }
.seat .ready-state { margin-left: auto; color: var(--muted); font-weight: 700; font-size: .84rem; }
.seat.ready .ready-state { color: var(--signal); }
.seat.empty { border-left-color: var(--line); color: var(--muted); }
.seat-av.ghost { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--line); }
.lobby-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.toggle { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: .9rem; }

/* game */
.game-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.scenario { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.progress { display: flex; align-items: center; gap: 10px; min-width: 280px; }
.progress .bar { flex: 1; height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--p-cyan); transition: width .4s; }
.phase { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--p-cyan); }
.phase.meeting, .phase.final { color: var(--danger); }
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; align-items: start; }
.chart-panel { position: relative; padding: 10px 12px 8px; }
.chart-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 2px; }
.chart { width: 100%; height: auto; display: block; }
.ch-grid { stroke: rgba(255,255,255,.06); } .ch-grid.zero { stroke: rgba(255,255,255,.2); stroke-dasharray: 4 4; }
.ch-ylab, .ch-xlab, .ch-lanelab { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.ch-future { fill: rgba(255,255,255,.025); } .ch-futurelab { fill: rgba(166,171,192,.45); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ch-empty { fill: var(--muted); font-size: 16px; }
.ch-wick.up, .ch-body.up { stroke: var(--signal); fill: var(--signal); } .ch-wick.dn, .ch-body.dn { stroke: var(--danger); fill: var(--danger); }
.ch-wick { stroke-width: 1.4; }
.ch-head { stroke: var(--p-cyan); stroke-width: 2; stroke-dasharray: 3 3; }
.ch-moment.up { fill: rgba(115,226,176,.10); } .ch-moment.down { fill: rgba(255,82,94,.10); } .ch-moment.alt { fill: rgba(169,139,255,.14); stroke: var(--p-purple); stroke-dasharray: 4 3; }
.ch-momlab { fill: var(--text); font-size: 11px; font-weight: 700; } .ch-momlab.alt { fill: var(--p-purple); }
.ch-event { cursor: pointer; } .ch-event circle { stroke: var(--bg); stroke-width: 2; }
.ch-event.buy circle { fill: var(--signal); } .ch-event.sell circle { fill: var(--danger); }
.ch-event text { font-size: 9px; font-weight: 900; fill: #10121e; pointer-events: none; }
.ch-event.sel circle { stroke: var(--text); }
.ch-lane { stroke: var(--line); }
.ch-move circle { fill: var(--pc); stroke: var(--bg); stroke-width: 1.5; } .ch-move text { font-size: 9px; font-weight: 900; fill: #10121e; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); padding: 2px 4px; }
.lg { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-size: 8px; font-weight: 900; color: #10121e; font-style: normal; margin-right: 4px; vertical-align: -2px; }
.lg.buy { background: var(--signal); } .lg.sell { background: var(--danger); } .lg.mv { background: var(--p-yellow); } .lg.mom { border-radius: 3px; background: rgba(115,226,176,.35); }
.event-pop { position: absolute; right: 16px; top: 46px; display: grid; gap: 3px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; max-width: 280px; box-shadow: var(--shadow); z-index: 3; }
.pcards { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pcard { position: relative; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--pc); border-radius: 13px; padding: 9px 10px; }
.pcard.you { box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc) 50%, transparent), var(--shadow); }
.pcard.out-of-game { opacity: .55; }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-name { display: grid; line-height: 1.15; } .pc-name span { color: var(--muted); font-size: .74rem; }
.pos { margin-left: auto; font-weight: 900; font-size: .78rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.pos.in { color: var(--signal); border-color: rgba(115,226,176,.5); } .pos.out { color: var(--muted); }
.pc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .74rem; color: var(--muted); margin-top: 6px; }
.pc-meta .reads { color: var(--warn); font-weight: 700; }
.pc-claim { margin: 6px 0 0; font-size: .82rem; background: var(--bg-deep); border-radius: 9px; padding: 5px 8px; min-height: 1.9em; }
.pc-claim.empty { background: transparent; }
.voted-badge { position: absolute; top: 8px; right: 8px; font-size: .72rem; font-style: normal; color: var(--signal); }
.voted-tag { color: var(--signal); font-weight: 700; }
.say.in-meeting { border-top: 1px solid var(--line); padding-top: 8px; }
.meeting-feed { list-style: none; padding: 0; margin: 4px 0 0; font-size: .84rem; color: var(--muted); display: grid; gap: 3px; }
.side-col { display: grid; gap: 12px; }
.you-panel { display: grid; gap: 10px; } .you-panel.insider { border-color: rgba(255,82,94,.5); } .you-panel.crew { border-color: rgba(115,226,176,.35); }
.role-line { display: flex; justify-content: space-between; align-items: baseline; }
.role { font-size: 1.15rem; } .you-panel.insider .role { color: var(--danger); } .you-panel.crew .role { color: var(--signal); }
.objective { margin: 0; font-weight: 600; }
.secret { margin: 0; font-size: .86rem; color: #ffd5d8; background: rgba(255,82,94,.10); border-radius: 9px; padding: 6px 8px; }
.pings ul, .feed ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.ping { font-size: .86rem; border-left: 3px solid var(--line); padding: 3px 8px; background: var(--bg-deep); border-radius: 0 8px 8px 0; }
.ping.up { border-left-color: var(--signal); } .ping.down { border-left-color: var(--danger); } .ping.none { color: var(--muted); }
.feed li { font-size: .84rem; color: var(--muted); } .feed li b { font-weight: 800; }
.ev.buy { color: var(--signal); } .ev.sell { color: var(--danger); } .mom { color: var(--warn); font-weight: 700; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(8,9,16,.72); display: grid; place-items: center; z-index: 20; padding: 16px; }
body.peek .meeting-ov { background: transparent; pointer-events: none; place-items: end center; }
body.peek .meeting-ov .meeting-card { pointer-events: auto; max-height: 40vh; overflow: auto; }
.role-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; max-width: 440px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.role-card.insider { border-color: var(--danger); } .role-card.crew { border-color: var(--signal); }
.role-card h2 { font-size: 2rem; } .role-card.insider h2 { color: var(--danger); } .role-card.crew h2 { color: var(--signal); }
.meeting-card { background: var(--panel); border: 2px solid var(--danger); border-radius: 18px; padding: 18px; width: min(680px, 100%); display: grid; gap: 10px; }
.meeting-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.meeting-card h2 { color: var(--danger); margin: 0; letter-spacing: .03em; }
.timer { font-family: var(--mono); color: var(--muted); }
.vote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vote-opt { position: relative; font: inherit; color: var(--text); display: flex; gap: 10px; align-items: center; text-align: left; background: var(--bg-deep); border: 2px solid var(--line); border-left: 5px solid var(--pc); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.vote-opt small { display: block; color: var(--muted); font-size: .74rem; }
.vote-opt.sel { border-color: var(--text); background: var(--panel-2); }
.vote-opt:disabled { cursor: default; opacity: .8; }
.locked { font-weight: 800; color: var(--signal); }
.help { max-width: 620px; width: 100%; max-height: 86vh; overflow: auto; }
.help dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; } .help dt { font-weight: 800; } .help dd { margin: 0; color: var(--muted); }
.conn-lost { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); background: var(--warn); color: #241a00; font-weight: 800; padding: 6px 14px; border-radius: 999px; z-index: 30; }

/* reveal */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 12px; }
.verdict h2 { font-size: 2rem; margin: 0; } .v-getaway, .v-broke { border-color: rgba(255,82,94,.55); } .v-busted, .v-bustedBag { border-color: rgba(115,226,176,.55); }
.you-result { font-weight: 900; } .you-result.won { color: var(--signal); } .you-result.lost { color: var(--danger); }
.reveal-grid { display: grid; gap: 12px; }
.tl { width: 100%; border-collapse: collapse; font-size: .84rem; } .tl th, .tl td { text-align: left; padding: 7px 5px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tl th { color: var(--muted); font-weight: 600; }
.tl tr.is-ins { background: rgba(255,82,94,.06); }
.who { display: inline-flex; align-items: center; gap: 6px; }
.stamp { display: inline-block; font-weight: 900; font-size: .68rem; letter-spacing: .06em; padding: 1px 6px; border: 2px solid; border-radius: 6px; margin: 1px; }
.stamp.real { color: var(--signal); } .stamp.cap { color: var(--danger); }
.mv { display: inline-block; font-size: .74rem; padding: 1px 6px; border-radius: 6px; background: var(--bg-deep); margin: 1px; } .mv.in { color: var(--signal); } .mv.out { color: var(--muted); }
.ej { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: .86rem; }
.ev-list { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ev-item { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: .86rem; }
.ev-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.prov { font-size: .84rem; color: var(--muted); }

/* motion */
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes revealIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.arrive { animation: arrive .3s ease both; } .reveal-in { animation: revealIn .45s ease both; } .alert-in { animation: revealIn .3s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* responsive */
@media (max-width: 1060px) {
  .game-grid { grid-template-columns: 1fr; }
  .side-col { grid-template-columns: 1fr 1fr; }
  .pcards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  #app { padding: 10px 10px 30px; }
  .hero, .comp { grid-template-columns: 1fr; }
  .hero-art { height: 200px; order: -1; }
  .modes { grid-template-columns: 1fr; }
  .side-col { grid-template-columns: 1fr; }
  .vote-grid, .ev-list { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tl thead { display: none; } .tl tr { display: grid; padding: 6px 0; } .tl td { border: 0; padding: 2px 0; }
  .progress { min-width: 0; width: 100%; }
  .help dl { grid-template-columns: 1fr; }
}
/* v0.3 visual pass — server rules and case data unchanged. */
.game-grid { grid-template-columns: minmax(0, 1fr) 310px; }
.chart-panel { background: linear-gradient(145deg, #181d30, #101421); }
.chart-head { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.chart-head .fine { max-width: 290px; text-align: right; font-size: .73rem; }
.ch-future { fill: rgba(255,255,255,.013); }
.ch-futurelab { fill: rgba(166,171,192,.30); font-size: 11px; }
.ch-label-link { stroke: rgba(255,255,255,.28); stroke-dasharray: 2 3; }
.ch-momlab { font-size: 12px; }
.ch-event circle.hit { fill: transparent; stroke: none; }
.ch-event text { font-size: 11px; }
.ch-move { cursor: default; transition: opacity .15s; }
.ch-move text { pointer-events: none; font-size: 13px; }
.ch-move.is-highlight circle { stroke: white; stroke-width: 3; filter: drop-shadow(0 0 5px var(--pc)); }
.pcard { transition: border-color .15s, box-shadow .15s; min-width: 0; }
.pcard.is-highlight { border-color: var(--pc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pc) 30%, transparent); }
.pc-top { flex-wrap: wrap; gap: 6px; }
.pc-name { min-width: 0; overflow-wrap: anywhere; }
.pc-meta { gap: 4px 7px; }
.pc-meta .reads { background: rgba(255,209,102,.12); padding: 2px 6px; border-radius: 5px; }
.you-panel { gap: 8px; }
.you-panel .objective { font-size: .89rem; }
.you-panel .secret { font-size: .78rem; }
.btn.huge { padding: 12px; font-size: 1.13rem; }
.action-zone .fine { margin: 5px 0; }
details summary { cursor: pointer; font-size: .83rem; font-weight: 700; color: var(--muted); padding: 3px 0; }
details[open] summary { margin-bottom: 9px; }
.score-help { text-align: center; }
.score-help p { text-align: left; }
.pings h4 { font-size: .8rem; }
.pings h4 .fine { display: block; font-size: .7rem; font-weight: 400; }
.pings ul { max-height: 120px; overflow-y: auto; overscroll-behavior: contain; }
.ping { font-size: .82rem; padding: 6px 8px; }
.ping:not(:first-child) { opacity: .66; }
.say { border-top: 1px solid var(--line); padding-top: 5px; }
.chipbtn { min-height: 34px; }
.feed ul { max-height: 165px; overflow-y: auto; }
.event-pop { width: min(300px, calc(100% - 24px)); right: 12px; top: 45px; padding: 14px; }
.event-pop .link { justify-self: end; min-height: 36px; }
.meeting-card { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.meeting-card header { position: sticky; top: -18px; z-index: 2; background: var(--panel); padding: 7px 0; }
.timer { color: var(--warn); font-weight: 800; background: rgba(255,209,102,.08); padding: 5px 9px; border-radius: 8px; }
.vote-opt { min-height: 80px; }
.vote-opt.sel { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc); }
.vote-opt small { margin-top: 4px; }
.locked { padding: 9px 12px; border: 1px solid rgba(115,226,176,.3); border-radius: 9px; background: rgba(115,226,176,.08); }
.pattern { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 16px; margin: 16px 0; }
.pattern p { margin: 7px 0; }
.pattern-arrow { color: var(--danger); font-size: 1.6rem; }
.pattern-score { display: grid; text-align: center; color: var(--warn); padding: 10px; }
.pattern-score b { font-size: 2rem; line-height: 1; }
.pattern-score span { font-size: .75rem; }
.decisive { border-color: rgba(255,82,94,.35); }
.ping-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 24; background: #172d2d; border: 1px solid var(--signal); box-shadow: var(--shadow); padding: 10px 20px; border-radius: 12px; font-weight: 800; pointer-events: none; }
@keyframes moveFlash { from { box-shadow: 0 0 0 2px var(--pc), 0 0 24px color-mix(in srgb,var(--pc) 32%,transparent); } to { box-shadow: none; } }
.move-flash { animation: moveFlash .8s ease-out; }
@media (min-width: 1061px) { .side-col { position: sticky; top: 12px; } .mode-btn.primary { box-shadow: 0 5px 0 #9e2337; } }
@media (max-width: 1060px) { .game-grid { grid-template-columns: minmax(0,1fr); } .side-col { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
@media (max-width: 720px) {
  .hero-art { order: initial; height: 190px; }
  .hero { gap: 18px; padding-top: 10px; }
  .modes { grid-template-columns: 1fr 1fr; }
  .mode-btn.primary { grid-column: 1 / -1; }
  .game-grid { display: flex; flex-direction: column; }
  .chart-col, .side-col { display: contents; }
  .chart-panel { order: 0; width: 100%; padding: 9px 7px; }
  .you-panel { order: 1; width: 100%; }
  .pcards { order: 2; width: 100%; margin: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feed { order: 3; width: 100%; }
  .chart-head { align-items: start; }
  .chart-head .fine { max-width: 170px; font-size: .65rem; }
  .legend { gap: 6px 10px; font-size: .64rem; }
  .you-panel { gap: 6px; }
  .you-panel .objective { font-size: .82rem; }
  .you-panel .secret { display: none; }
  .pings h4 .fine { display: inline; margin-left: 5px; }
  .pings ul { max-height: 78px; }
  .btn.huge { min-height: 48px; }
  .vote-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vote-opt { padding: 8px 6px; gap: 5px; flex-wrap: wrap; }
  .vote-opt small { font-size: .68rem; }
  .meeting-card { padding: 12px; gap: 8px; }
  .meeting-card header { top: -12px; }
  .meeting-card h2 { font-size: 1.06rem; }
  .pattern { grid-template-columns: 1fr auto 1fr; gap: 9px; font-size: .84rem; }
  .pattern-score { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; align-items: center; }
  .pattern-score b { font-size: 1.4rem; }
  .share input { max-width: 100%; }
  .share, .share .row { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .move-flash { animation: none; } }

@media(max-width:720px) { .ch-event circle.hit { r: 60px; } }

/* v0.4 — Home → Coin → Game stages, real coin identity, phone action bar, toasts. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.topbar { gap: 12px; flex-wrap: wrap; }
.stages { display: flex; align-items: center; gap: 4px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stage { font: inherit; font-size: .8rem; font-weight: 800; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 5px 11px 5px 6px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.stage i { font-style: normal; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line); font-size: .68rem; }
.stage.cur { background: var(--panel-2); color: var(--text); }
.stage.cur i { background: var(--danger); border-color: var(--danger); color: #fff; }
.stage:disabled { opacity: .4; cursor: not-allowed; }
.stage:not(:disabled):not(.cur):hover { color: var(--text); }
.stage-sep { width: 10px; height: 1px; background: var(--line); }
.snd { text-decoration: none; font-size: 1rem; }
.room-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(115,226,176,.08); border: 1px solid rgba(115,226,176,.35); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; font-weight: 700; }
.how-steps { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 620px; }
.how-steps li { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; font-size: .8rem; }
.how-steps i { grid-row: span 2; font-style: normal; font-weight: 900; color: var(--danger); font-size: 1.2rem; line-height: 1; }
.how-steps span { color: var(--muted); }

/* coin identity */
.coin-mark { --s: 40px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; background: linear-gradient(140deg, var(--p-yellow), var(--p-orange)); border: 2px solid rgba(255,255,255,.12); display: inline-grid; place-items: center; }
.coin-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coin-mark b { font-weight: 900; color: #2a1600; font-size: calc(var(--s) * .45); }
.coin-mark:not(.fallback) b { visibility: hidden; }
.ticker { font-family: var(--mono); font-weight: 800; color: var(--warn); background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.35); border-radius: 7px; padding: 2px 8px; }
.ticker.sm { font-size: .76rem; padding: 1px 6px; }
.coin-screen { max-width: 1100px; margin: 0 auto; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.coin-card { display: grid; gap: 12px; padding: 18px; background: linear-gradient(150deg, #1d2338, #141829); }
.coin-id { display: flex; gap: 14px; align-items: center; }
.coin-id h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; }
.coin-intro p { margin: 0 0 .45em; }
.session { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.session h4 { margin-bottom: 6px; }
.facts { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-size: .8rem; font-weight: 700; background: var(--panel-2); border-radius: 999px; padding: 3px 10px; }
.src { display: grid; gap: 5px; }
.src-links { display: flex; flex-wrap: wrap; gap: 6px; }
.src-link { font-size: .82rem; font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--bg-deep); }
.src-link:hover { border-color: var(--p-cyan); }
.casual { margin: 0; font-size: .82rem; color: var(--muted); border-left: 3px solid var(--warn); padding: 4px 10px; }
.lobby-side { display: grid; gap: 10px; }
.lobby-side .seats { margin: 0; }
.lobby-side .btn.huge { margin-top: 2px; }
.match-facts { border-top: 1px solid var(--line); padding-top: 8px; margin: 0; }
.share input { width: 100%; min-width: 0; flex: 1; }
.share .row { flex-wrap: nowrap; }

/* game header with coin */
.coin-chip { display: flex; gap: 10px; align-items: center; min-width: 0; }
.coin-chip > div { min-width: 0; }
.coin-chip .scenario { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.coin-chip .scenario .tag { margin-right: 4px; }

/* coaching + pings */
.coach { margin: 0; font-size: .82rem; background: rgba(79,216,240,.08); border: 1px solid rgba(79,216,240,.3); border-radius: 9px; padding: 6px 9px; }
.ping.fresh { opacity: 1; box-shadow: inset 0 0 0 1px rgba(115,226,176,.4); animation: arrive .3s ease both; }
.reads small { opacity: .7; }

/* confirm + error toast */
.confirm { max-width: 420px; width: 100%; display: grid; gap: 6px; border-color: var(--danger); }
.err-toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 26; background: #2d1a1d; border: 1px solid var(--danger); color: #ffd5d8; padding: 9px 16px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow); animation: arrive .25s ease both; max-width: calc(100% - 32px); }

/* phone action bar (hidden on wide screens) */
.action-bar { display: none; }
@media (max-width: 720px) {
  .stages { order: 3; width: 100%; justify-content: space-between; }
  .stage { padding: 4px 8px 4px 4px; }
  .stage-sep { flex: 1; }
  .how-steps { grid-template-columns: 1fr; }
  .coin-grid { grid-template-columns: minmax(0, 1fr); }
  .coin-card { padding: 14px; }
  .coin-id { gap: 10px; }
  .coin-id .coin-mark { --s: 60px !important; }
  .action-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; gap: 10px; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(16,18,30,.96); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
  .ab-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
  .ab-info .fine { font-size: .74rem; }
  .ab-ping { width: 100%; font-size: .74rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ab-ping.up { color: var(--signal); } .ab-ping.down { color: var(--danger); }
  .action-bar .btn { min-width: 128px; min-height: 48px; font-size: 1.05rem; }
  body.has-bar #app { padding-bottom: 92px; }
  body.has-bar .you-panel .action-zone .btn.huge { display: none; }
  body.has-bar .ping-toast { bottom: 84px; }
  .coin-chip .scenario { font-size: .74rem; }
  .game-head { gap: 8px; }
}
.decisive .pattern { grid-template-columns: 1fr auto 1fr auto 1fr auto; }
@media (max-width: 900px) { .decisive .pattern { grid-template-columns: 1fr; gap: 6px; } .decisive .pattern-arrow { transform: rotate(90deg); justify-self: start; font-size: 1.2rem; } .decisive .pattern-score { grid-column: auto; justify-content: start; } }
.chart.compact .ch-ylab, .chart.compact .ch-xlab, .chart.compact .ch-lanelab { font-size: 17px; }
.chart.compact .ch-momlab { font-size: 18px; }
.chart.compact .ch-futurelab { font-size: 16px; }
.chart.compact .ch-event text, .chart.compact .ch-move text { font-size: 15px; }
.chart.compact .ch-wick { stroke-width: 2; }

/* v0.5 — readable behavior, evidence meetings, coin hierarchy, reveal tell. */
/* coin screen: identity → action → details */
.coin-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "head side" "more side"; gap: 12px; align-items: start; }
.coin-head { grid-area: head; display: grid; gap: 10px; padding: 16px; background: linear-gradient(150deg, #1d2338, #141829); }
.coin-head h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 6px; }
.coin-lede { margin: 0; }
.real-vs-game { margin: 0; border-left: 3px solid var(--warn); padding-left: 8px; }
.lobby-side { grid-area: side; }
.coin-more { grid-area: more; display: grid; gap: 8px; }
.coin-more p { margin: 0; }
.invite { display: grid; gap: 8px; background: rgba(169,139,255,.08); border: 1px solid rgba(169,139,255,.35); border-radius: 12px; padding: 10px; }
.invite .discord { margin: 0; font-weight: 700; }
.invite .code { font-size: 1.5rem; }
.ready-count { margin: 0; }
.seat { padding: 5px 9px; }
/* player cards: who → position → last move → statement → meta */
.pcard { cursor: pointer; display: grid; gap: 5px; align-content: start; }
.pc-top { flex-wrap: nowrap; }
.pc-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-name .kind.bot { color: var(--warn); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .66rem; }
.pos.gone { color: var(--muted); }
.pc-last { margin: 0; font-weight: 800; font-size: .86rem; }
.pc-last.in { color: var(--signal); } .pc-last.out { color: #ffb3b9; }
.pc-claim { margin: 0; min-height: 0; }
.pc-claim.empty { display: none; }
.pc-meta { margin: 0; font-size: .72rem; color: var(--muted); }
.pcard[aria-pressed="true"] { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc); }
/* public move notes over the chart */
.move-notes { position: absolute; left: 14px; top: 44px; display: grid; gap: 5px; z-index: 4; pointer-events: none; }
.move-note { justify-self: start; font-weight: 800; font-size: .85rem; background: rgba(11,13,22,.92); border: 1px solid var(--pc); border-left: 5px solid var(--pc); color: var(--text); padding: 4px 10px; border-radius: 8px; animation: noteLife 3.2s ease forwards; }
@keyframes noteLife { 0% { opacity: 0; transform: translateY(-4px); } 8% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.ch-move.fresh { animation: markerPop .9s ease-out both; transform-box: fill-box; transform-origin: center; }
.ch-move.fresh circle:not(.hit) { stroke: #fff; stroke-width: 3; }
@keyframes markerPop { 0% { transform: translateY(-14px) scale(.4); opacity: 0; } 35% { transform: none; opacity: 1; } 100% { transform: none; opacity: 1; } }
.ch-move { cursor: pointer; }
.ch-move circle.hit { fill: transparent; stroke: none; }
.ch-move.dim, .ch-lanegrp.dim { opacity: .28; }
.ch-guide { stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .8; }
/* statements */
.say-box { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.say-title { margin: 0; font-size: .8rem; font-weight: 800; color: var(--muted); }
.chips.callout { align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg-btn { font: inherit; font-size: .74rem; font-weight: 800; background: transparent; color: var(--muted); border: 0; padding: 5px 9px; cursor: pointer; min-height: 32px; }
.seg-btn.on { background: var(--panel-2); color: var(--text); }
.chipbtn:disabled { opacity: .45; cursor: not-allowed; }
/* meetings */
.meeting-card { width: min(820px, 100%); }
.meeting-card header p { margin: 2px 0 0; }
.scored { background: var(--bg-deep); border-radius: 10px; padding: 7px 10px; }
.scored ul { list-style: none; margin: 3px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; font-size: .86rem; }
.meet-chart { background: var(--bg-deep); border-radius: 10px; padding: 4px; }
.vote-grid { list-style: none; padding: 0; margin: 0; }
.vote-tile { display: grid; gap: 4px; align-content: start; background: var(--bg-deep); border: 2px solid var(--line); border-left: 5px solid var(--pc); border-radius: 12px; padding: 6px 8px 4px; }
.vote-tile.sel { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc); background: var(--panel-2); }
.vote-tile.focus { outline: 2px dashed var(--pc); outline-offset: 2px; }
.vote-tile .vote-opt { min-height: 0; border: 0; padding: 2px 0; background: transparent; width: 100%; }
.vo-name { display: grid; } .vo-name small { margin: 0; }
.vt-moves { margin: 0; font-size: .8rem; font-weight: 700; font-family: var(--mono); }
.vt-claim { margin: 0; font-size: .8rem; } .vt-claim.empty { color: var(--muted); font-style: italic; }
.vt-when { list-style: none; margin: 0; padding: 0; font-size: .74rem; color: var(--muted); }
.vote-tile .link.small { justify-self: start; font-size: .74rem; padding: 2px 0; }
.vote-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; bottom: -18px; background: var(--panel); padding: 8px 0; z-index: 2; border-top: 1px solid var(--line); }
.result-ov { background: rgba(8,9,16,.6); }
.result-card { background: var(--panel); border: 2px solid var(--danger); border-radius: 18px; padding: 22px; text-align: center; display: grid; justify-items: center; gap: 6px; max-width: 420px; }
.result-card h2 { margin: 0; }
/* reveal tell */
.tell { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.tell-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr; gap: 10px; align-items: start; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.tell-row.ok { border-color: rgba(115,226,176,.45); } .tell-row.miss { border-color: rgba(255,82,94,.35); }
.tell-row p { margin: 5px 0 0; font-size: .88rem; }
.tell-out p { font-weight: 700; }
.tell-alt { background: rgba(169,139,255,.08); border: 1px dashed var(--p-purple); border-radius: 12px; padding: 10px; }
.tell-alt p { margin: 5px 0 0; }
.tag.alt { color: var(--p-purple); border-color: var(--p-purple); }
.decisive .pattern-score { display: flex; gap: 6px; align-items: baseline; padding: 0; }
.decisive .pattern-score b { font-size: 1.6rem; }
@media (max-width: 900px) {
  .tell-row { grid-template-columns: 1fr; gap: 4px; }
  .tell-row .pattern-arrow { display: none; }
}
@media (max-width: 720px) {
  .coin-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "more"; }
  .coin-head { padding: 12px; gap: 8px; }
  .coin-head .coin-id .coin-mark { --s: 56px !important; }
  .coin-head h1 { font-size: 1.35rem; }
  .move-notes { top: 40px; left: 8px; }
  .move-note { font-size: .78rem; }
  .vote-grid { grid-template-columns: minmax(0, 1fr); }
  .vote-tile { gap: 2px; }
  .vote-tile .vote-opt { grid-column: 1 / -1; }
  .vote-row { bottom: -12px; }
  body.has-bar .err-toast { top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .move-note { animation: none; } .ch-move.fresh { animation: none; } }
.say-box .chipbtn { font-size: .76rem; padding: 4px 8px; min-height: 30px; }
.score-help summary { font-size: .76rem; }
body.settled .reveal-in, body.settled .alert-in, body.settled .arrive, body.settled .ping.fresh { animation: none; }
.ch-lanegrp.focus .ch-lanelab { font-weight: 800; }
/* move notes sit over the unplayed (empty) right side of the chart, away from axis labels and candles */
.move-notes { left: auto; right: 16px; top: 52px; justify-items: end; }
.move-note { justify-self: end; }
@media (max-width: 720px) { .move-notes { right: 10px; top: 46px; } }

/* ===== v0.6 — daily case identity, clearer flow, compact meetings, payoff-first results ===== */
.brand { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.iconbtn { font: inherit; background: transparent; border: 1px solid var(--line); border-radius: 9px; color: var(--text); min-width: 36px; min-height: 36px; cursor: pointer; }
.iconbtn[aria-pressed="true"] { border-color: var(--p-cyan); background: rgba(79,216,240,.12); }
.btn.return { padding: 7px 12px; position: relative; }
.btn.return .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 7px; box-shadow: 0 0 0 3px rgba(255,209,102,.25); }
.row.nowrap { flex-wrap: nowrap; } .row.nowrap input { flex: 1; min-width: 0; }
.ticker { font-family: var(--mono); }
.tag.outcome { color: #ffb3b9; border-color: rgba(255,82,94,.5); background: rgba(255,82,94,.1); }

/* home */
.screen.home .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-top: 6px; align-items: start; }
.kicker { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 900; color: var(--danger); }
.screen.home .tagline { margin: 0 0 6px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.screen.home .lead { margin: 0 0 12px; font-size: 1.02rem; color: #d6d8e6; }
.today-card { background: linear-gradient(150deg, #22192b, #151a2b); border: 1px solid rgba(255,82,94,.35); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; margin-bottom: 14px; max-width: 620px; }
.tc-top { display: flex; gap: 10px; align-items: center; }
.tc-id { display: grid; min-width: 0; flex: 1; } .tc-id b { font-size: 1.1rem; }
.tc-teaser { margin: 0; font-weight: 600; }
.tc-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.tc-stats b { color: var(--text); } .tc-stats .dd { color: var(--danger); font-weight: 900; }
.tc-q { margin: 0; font-weight: 800; color: var(--warn); }
.today-card .fine { margin: 0; }
.play { display: grid; gap: 10px; max-width: 620px; }
.name-inline { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.name-inline input { padding: 6px 10px; width: 170px; }
.btn.play-bots { display: grid; gap: 2px; text-align: center; padding: 14px; }
.btn.play-bots small { font-weight: 600; font-size: .78rem; opacity: .85; }
.alt-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.alt-modes .btn { padding: 10px 8px; font-size: .9rem; }
.alt-modes .btn.on { border-color: var(--p-cyan); }
.join { display: grid; gap: 4px; margin: 0; max-width: 360px; }
.join label { font-size: .8rem; font-weight: 800; color: var(--muted); }
.join input { text-transform: uppercase; letter-spacing: .2em; }
.room-banner .btn { margin-left: auto; }

/* coin briefing + lobby */
.briefing { grid-area: head; display: grid; gap: 10px; padding: 16px; background: linear-gradient(150deg, #1d2338, #141829); }
.briefing h1 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 0; }
.briefing .case-title { margin: 2px 0 0; font-weight: 800; color: var(--warn); }
.brief3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.brief3 > div { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; }
.brief3 p { margin: 3px 0 0; font-size: .88rem; }
.brief3 .mission { border-color: rgba(255,209,102,.4); }
.claims { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.src-note { display: block; font-size: .74rem; color: var(--muted); }
.invite { display: grid; gap: 6px; background: rgba(169,139,255,.07); border: 1px solid rgba(169,139,255,.3); border-radius: 12px; padding: 10px; }
.invite .code { font-size: 1.3rem; }
.invite .fine { margin: 0; }
.start-why { margin: 0; font-weight: 700; color: var(--warn); font-size: .88rem; }
.start-why .link { color: var(--p-cyan); font-weight: 800; }

/* game */
.coin-chip .fine { margin-left: 4px; }
.ping-now { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: rgba(115,226,176,.1); border: 1px solid var(--signal); font-size: .95rem; animation: arrive .3s ease both; }
.ping-now.down { background: rgba(255,82,94,.1); border-color: var(--danger); }
.ping-now .fine { margin-left: 6px; }
.role-line summary { list-style: none; display: flex; gap: 8px; align-items: baseline; }
.role-line summary::-webkit-details-marker { display: none; }
.role-line summary .fine { margin-left: auto; text-decoration: underline; }
.score-line { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.score-line b { color: var(--warn); font-size: 1rem; }
.explain { margin: 0; }
.pings .ping { margin: 0; }
.pings details summary { font-size: .76rem; }
.pings details ul { margin-top: 4px; }
.talk { display: grid; gap: 4px; }
.recent-talk { list-style: none; margin: 0; padding: 0; font-size: .82rem; color: var(--muted); display: grid; gap: 2px; }
.discuss summary { font-size: .86rem; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.discuss[open] summary { margin-bottom: 6px; }
.say-box .fine { margin: 0; }
.pcard { padding: 7px 9px; gap: 3px; }
.pc-claim { font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px 7px; }
.role-card { max-width: 460px; }
.role-card p { margin: 2px 0; }
.first-move { background: var(--bg-deep); border-radius: 10px; padding: 8px 10px; text-align: left; }

/* meetings: one scroll area, sticky header + footer */
.meeting-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; max-height: 92dvh; width: min(760px, 100%); }
.meeting-card header { position: static; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.meet-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px; display: grid; gap: 10px; }
.ballot { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.b-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 6px; align-items: center; background: var(--bg-deep); border: 2px solid var(--line); border-left: 5px solid var(--pc); border-radius: 12px; padding: 4px 6px; }
.b-row.sel { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc); background: var(--panel-2); }
.b-row.focus { outline: 2px dashed var(--pc); outline-offset: 2px; }
.b-pick { font: inherit; color: var(--text); background: transparent; border: 0; display: flex; gap: 8px; align-items: center; text-align: left; padding: 4px 2px; cursor: pointer; min-width: 0; min-height: 44px; }
.b-pick:disabled { cursor: default; }
.b-main { display: grid; min-width: 0; flex: 1; }
.b-main small { color: var(--muted); font-size: .72rem; }
.b-last { font-size: .78rem; color: #c9ccdb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.b-row.sel .b-radio { border-color: var(--pc); background: radial-gradient(circle, var(--pc) 45%, transparent 50%); }
.b-pick:disabled .b-radio { visibility: hidden; }
.b-more { grid-column: 1 / -1; font-size: .78rem; padding: 0 4px 4px; }
.b-more summary { font-size: .74rem; }
.b-more ul { margin: 4px 0 0; padding-left: 16px; color: var(--muted); }
.b-foot { border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel); }
.b-state { margin: 0; font-weight: 800; }
.b-state.locked { color: var(--signal); }
.eject-av { animation: ejectDrift 2.6s ease-in forwards; }
@keyframes ejectDrift { 0% { transform: none; opacity: 1; } 100% { transform: translate(60px, -18px) rotate(220deg) scale(.6); opacity: .15; } }

/* results: payoff first */
.verdict-hero { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 20px 16px; margin-bottom: 12px; }
.verdict-hero h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -.01em; }
.verdict-hero.win { border-color: rgba(115,226,176,.6); background: linear-gradient(160deg, #15302a, #1b2033 60%); } .verdict-hero.win h1 { color: var(--signal); }
.verdict-hero.lose { border-color: rgba(255,82,94,.6); background: linear-gradient(160deg, #351a22, #1b2033 60%); } .verdict-hero.lose h1 { color: var(--danger); }
.verdict-hero.draw { border-color: rgba(255,209,102,.5); background: linear-gradient(160deg, #302a17, #1b2033 60%); } .verdict-hero.draw h1 { color: var(--warn); }
.insider-reveal { display: flex; gap: 12px; align-items: center; text-align: left; }
.ir-name { display: block; font-size: 1.5rem; }
.verdict-hero .why { margin: 0; max-width: 60ch; }
.verdict-hero .row.center { margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.two-col ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 3px; }
.in-match p { margin: 6px 0 0; font-weight: 700; }
.decisive { margin-bottom: 12px; }
.tell-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
details.panel { margin-bottom: 12px; }
details.panel > summary { font-weight: 800; color: var(--text); font-size: .95rem; }
.pbs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.pb { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pb.is-ins { border-color: rgba(255,82,94,.5); }
.pb-grid { display: grid; grid-template-columns: 110px 1fr; gap: 3px 10px; margin-top: 6px; font-size: .82rem; }
.ev-item details summary { font-size: .86rem; }
.stamp { white-space: nowrap; }

@media (max-width: 900px) {
  .brief3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .tell-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .screen.home .hero-art { display: none; }
  .screen.home .hero { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .screen.home .tagline { font-size: 1.6rem; }
  .screen.home .lead { font-size: .95rem; }
  .alt-modes { grid-template-columns: 1fr 1fr; }
  .alt-modes .btn:last-child { grid-column: 1 / -1; }
  .today-card { padding: 10px 12px; }
  .topbar-right { gap: 6px; }
  .topbar-right .link { font-size: .85rem; }
  .ping-now { position: sticky; top: 4px; z-index: 6; font-size: .88rem; }
  .meeting-ov { padding: 0; place-items: stretch; }
  .meeting-card { max-height: 100dvh; height: 100dvh; border-radius: 0; border-width: 0; border-top: 3px solid var(--danger); }
  .meeting-card header, .meet-body, .b-foot { padding-left: 12px; padding-right: 12px; }
  .pb-grid { grid-template-columns: 1fr; }
  .insider-reveal { flex-direction: column; text-align: center; }
  .verdict-hero .row.center .btn { flex: 1 1 40%; }
}
@media (max-width: 360px) {
  .alt-modes { grid-template-columns: 1fr; }
  .topbar .link { font-size: .78rem; padding: 2px; }
  .topbar .room-chip { display: none; }
}
@media (max-width: 1000px) { .bubble.b0 { display: none; } }
@media (prefers-reduced-motion: reduce) { .eject-av, .ping-now { animation: none; } }
@media (max-width: 720px) {
  .briefing { padding: 12px; gap: 8px; }
  .briefing .coin-id .coin-mark { --s: 48px !important; }
  .briefing h1 { font-size: 1.25rem; }
  .brief3 { gap: 4px; }
  .brief3 > div { padding: 5px 8px; display: flex; gap: 8px; align-items: baseline; }
  .brief3 .eyebrow { flex: none; width: 6.5em; font-size: .62rem; }
  .brief3 p { margin: 0; font-size: .82rem; }
  .real-vs-game .long { display: none; }
}

/* ---------- v0.7: case catalog ---------- */
.choose-case { justify-self: start; padding: 7px 12px; font-size: .88rem; margin-top: 2px; }
.picker { max-width: 640px; width: 100%; max-height: 88vh; overflow: auto; display: grid; gap: 8px; align-content: start; }
.picker h2 { margin: 0; }
.picker > .fine { margin: 0; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick-row { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; background: var(--panel2, #1b2033); color: inherit; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; }
.pick-row:hover, .pick-row:focus-visible { border-color: var(--p-cyan, #4dd9ec); outline: none; }
.pick-row.cur { border-color: rgba(115,226,176,.6); background: rgba(115,226,176,.06); }
.pr-main { display: grid; gap: 2px; min-width: 0; }
.pr-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-title { font-weight: 700; color: var(--warn); font-size: .9rem; }
.pr-title .fine { color: var(--muted); font-weight: 400; }
.pr-setup { font-size: .88rem; }
.pr-stats { font-size: .78rem; }
.pr-stats .dd, .dd { color: #ff6b74; }
.pr-go { font-weight: 800; font-size: .82rem; color: var(--p-cyan, #4dd9ec); white-space: nowrap; }
.pick-row.cur .pr-go { color: #73e2b0; }
.coin-id .case-ctl { margin-left: auto; align-self: flex-start; flex: none; }
.coin-id .btn.case-ctl { padding: 6px 10px; font-size: .82rem; }
.coin-id span.case-ctl { max-width: 9em; text-align: right; }
.share-link { margin-top: 4px; font-size: .85rem; }
@media (max-width: 520px) {
  .pick-row { grid-template-columns: auto 1fr; gap: 10px; padding: 9px 10px; }
  .pick-row .coin-mark { --s: 34px !important; }
  .pr-go { grid-column: 2; }
  .coin-id { flex-wrap: wrap; }
  .coin-id .case-ctl { margin-left: 0; }
  .coin-id span.case-ctl { max-width: none; text-align: left; }
}

/* Case identity follows the replay from selection through the verdict. */
[data-coin] { --case-ink: #c2b5ff; --case-wash: #282442; }
[data-coin="BAWSAQ"] { --case-ink: #ff9bcf; --case-wash: #402039; }
[data-coin="WIGGLES"] { --case-ink: #9ce6ba; --case-wash: #1b3830; }
[data-coin="LEOSTAR"] { --case-ink: #ffd087; --case-wash: #413121; }
[data-coin="HOGE"] { --case-ink: #8fdcf4; --case-wash: #193644; }

.today-card[data-coin], .briefing[data-coin], .game[data-coin] .game-head {
  border: 1px solid color-mix(in srgb, var(--case-ink) 35%, var(--line));
  background: linear-gradient(120deg, var(--case-wash), var(--bg-deep) 78%);
}
.pick-row[data-coin] { border-inline-start: 3px solid var(--case-ink); }
.pick-row[data-coin]:is(:hover, :focus-visible) { background: var(--case-wash); }
.tc-stats small { color: var(--muted); }
.game[data-coin] .game-head { padding: 10px 14px; border-radius: 14px; }
.round-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.round-identity .coin-mark { flex: none; }
.round-identity h1 { font-size: clamp(1.15rem, 3vw, 1.55rem); line-height: 1.1; margin: 0; }
.round-id { color: var(--case-ink); font-size: .75rem; font-weight: 800; margin: 0 0 2px; }
.round-read {
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline;
  padding: 7px 10px; margin: 0 0 8px; border-inline-start: 3px solid var(--read-ink, #ffd087);
  background: var(--bg-deep); border-radius: 4px 8px 8px 4px; font-size: .85rem;
}
.round-read b { color: var(--read-ink, #ffd087); }
.round-read[data-scenario="early_entry"] { --read-ink: #9ce6ba; }
.round-read[data-scenario="sell_warning"] { --read-ink: #ffabb0; }
.game[data-coin] .progress .bar i { background: var(--case-ink); }
.reveal[data-coin] .verdict-hero > .eyebrow { color: var(--case-ink); }

@media (max-width: 720px) {
  .game[data-coin] .game-head { padding: 8px 10px; }
  .game-head .progress { flex: 1 1 100%; }
  .round-read { font-size: .8rem; }
}
.trench-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, 340px); gap: 12px; align-items: start; }
.trench-map {
  position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(160px, auto) minmax(85px, auto); gap: 8px; padding: 12px;
  border: 1px solid var(--line); border-radius: 16px;
  background: radial-gradient(ellipse at 50% 35%, var(--case-wash), transparent 72%), repeating-linear-gradient(135deg, #111625, #111625 12px, #131827 12px, #131827 24px);
}
.map-rail { position: absolute; inset: 12% 6%; width: 88%; height: 76%; z-index: -1; pointer-events: none; }
.map-rail path { fill: none; stroke: #8996bf; stroke-width: 6; stroke-dasharray: 5 8; opacity: .34; }
.map-zone, .map-spawn { min-width: 0; text-align: center; }
.map-spawn { grid-column: 1 / -1; }
.station-button {
  background: #171e34; color: var(--text); border: 1px solid #526184; border-bottom: 3px solid #526184;
  border-radius: 12px; display: grid; justify-items: center; gap: 3px; align-content: center;
  min-height: 90px; width: 100%; padding: 8px 3px; cursor: pointer;
}
.station-button > span { color: var(--case-ink); font-size: 1.5rem; line-height: 1; }
.station-button b { font-size: .9rem; line-height: 1.1; }
.station-button small { color: var(--muted); font-size: .72rem; }
.map-zone.here .station-button { border-color: var(--case-ink); background: var(--case-wash); }
.map-occupants { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding-top: 6px; }
.map-player { display: grid; justify-items: center; min-width: 0; color: var(--pc); }
.map-player svg { filter: drop-shadow(0 3px 2px #0b0d16); }
.map-player b { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.station-console { display: grid; gap: 9px; }
.station-console p, .station-console h2, .trench-feed h2 { margin: 0; }
.console-heading { display: flex; justify-content: space-between; color: var(--case-ink); }
.console-heading span, .station-idle, .station-job p { color: var(--muted); }
.station-job { display: grid; gap: 7px; }
.station-job h2, .trench-feed h2 { font-size: 1rem; }
.job-options, .console-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.job-options .btn, .console-actions .btn { min-height: 42px; }
.console-actions .btn { flex: 1 1 auto; }
.wallet-tools { display: grid; gap: 6px; border-left: 3px solid var(--danger); padding-left: 8px; }
.wallet-warning { background: #391f31; border: 1px solid #b65d79; border-radius: 8px; padding: 6px 9px; margin: 0 0 8px; }
.wallet-trace p { margin: 3px 0; }
.trench-feed, .trench-chart { margin-top: 9px; }
.trench-feed ul { list-style: none; padding: 0; margin: 6px 0; }
.trench-feed li { margin: 4px 0; }
.trench-chart .game-grid { display: block; margin-top: 8px; }
@media (max-width: 720px) {
  .trench-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .trench-map { grid-template-rows: minmax(116px, auto) minmax(53px, auto); padding: 7px; gap: 4px; }
  .station-button { min-height: 68px; padding: 4px 2px; }
  .station-button b { font-size: .77rem; }
  .map-player svg { width: 25px; height: 25px; }
  .map-occupants { gap: 3px; padding-top: 3px; }
  .station-console { padding: 9px; }
}

/* ================= The Trenches (walkable round) ================= */
body[data-screen="world"] { overflow: hidden; }
.w-root { position: fixed; inset: 0; background: #05060d; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; font-family: inherit; color: #eef1ff; }
.w-canvas { position: absolute; inset: 0; display: block; cursor: crosshair; }
.w-hud { position: absolute; inset: 0; pointer-events: none; }
.w-hud > * { pointer-events: auto; }
.w-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; pointer-events: none; }
.w-top > * { pointer-events: auto; }
.w-card { background: rgba(14,16,32,.82); border: 1px solid rgba(140,150,220,.22); border-radius: 12px; padding: 6px 10px; backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0,0,0,.35); display: flex; align-items: center; gap: 8px; color: inherit; font: inherit; }
.w-role b { font-size: .95rem; letter-spacing: .08em; } .w-role span { font-size: .78rem; color: #aab3d6; }
.w-role.crew b { color: #4fd8f0; } .w-role.ins b { color: #ff5a6b; } .w-role.ins { border-color: rgba(255,90,107,.5); }
.w-taskbar { min-width: 190px; flex: 1; max-width: 360px; } .w-taskbar span { font-size: .72rem; font-weight: 800; color: #aab3d6; letter-spacing: .08em; }
.w-taskbar .bar { flex: 1; height: 12px; border-radius: 6px; background: #1d2240; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.w-taskbar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #36e39a, #b6f05a); box-shadow: 0 0 12px #36e39a; transition: width .5s; }
.w-taskbar b { font-size: .85rem; }
.w-coin { cursor: pointer; } .w-coin b { color: #ffd34d; } .w-coin .spark { width: 70px; height: 22px; } .w-coin .spark polyline { fill: none; stroke: #4fd8f0; stroke-width: 2; }
.w-coin .up { color: #36e39a; font-weight: 800; } .w-coin .dn { color: #ff5a6b; font-weight: 800; } .w-coin i { font-style: normal; font-size: .75rem; color: #aab3d6; font-family: ui-monospace, monospace; }
.w-tools { margin-left: auto; display: flex; gap: 6px; }
.w-icon { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(140,150,220,.25); background: rgba(14,16,32,.82); color: #fff; font-size: 1.1rem; cursor: pointer; }
.w-icon[aria-pressed="true"], .w-icon[aria-expanded="true"] { border-color: #4fd8f0; }
.w-menu { position: absolute; top: 60px; right: 10px; display: grid; gap: 4px; background: rgba(14,16,32,.95); border: 1px solid rgba(140,150,220,.3); border-radius: 12px; padding: 6px; z-index: 5; }
.w-menu button { background: none; border: 0; color: #eef1ff; text-align: left; padding: 10px 14px; border-radius: 8px; font: inherit; cursor: pointer; } .w-menu button:hover { background: #22284a; }
.w-tasks { position: absolute; top: 64px; left: 10px; width: min(300px, 60vw); background: rgba(14,16,32,.82); border: 1px solid rgba(140,150,220,.22); border-radius: 12px; backdrop-filter: blur(6px); }
.w-tasks summary { padding: 8px 12px; font-weight: 800; font-size: .85rem; cursor: pointer; color: #ffd64d; }
.w-tasks ul { list-style: none; margin: 0; padding: 0 6px 8px; display: grid; gap: 2px; }
.w-tasks li button { width: 100%; text-align: left; background: none; border: 0; color: #eef1ff; padding: 6px 8px; border-radius: 8px; font: inherit; font-size: .85rem; cursor: pointer; }
.w-tasks li button span { color: #8890b8; font-size: .75rem; } .w-tasks li button:hover:not([disabled]) { background: #22284a; }
.w-tasks li.done button { color: #36e39a; text-decoration: line-through; opacity: .75; } .w-tasks li.desk button { color: #9fe9c8; }
.w-alert { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); background: rgba(120,10,30,.9); border: 1px solid #ff3d5e; padding: 8px 14px; border-radius: 10px; font-weight: 800; animation: wpulse 1s infinite; white-space: nowrap; }
@keyframes wpulse { 50% { box-shadow: 0 0 24px #ff3d5e; } }
.w-actions { position: absolute; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 10px; max-width: 300px; }
.w-act { width: 86px; height: 86px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); background: radial-gradient(circle at 35% 30%, #3a4170, #171b33); color: #fff; display: grid; place-items: center; align-content: center; gap: 2px; font: inherit; cursor: pointer; position: relative; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .1s, opacity .2s; }
.w-act .ic { font-size: 1.7rem; line-height: 1; } .w-act b { font-size: .7rem; letter-spacing: .06em; }
.w-act:not([disabled]):active { transform: scale(.94); }
.w-act[hidden] { display: none; }
.w-act[disabled] { opacity: .38; cursor: default; filter: grayscale(.6); }
.w-act.use:not([disabled]) { border-color: #ffd64d; box-shadow: 0 0 22px rgba(255,214,77,.45); }
.w-act.use.emer:not([disabled]) { border-color: #ff3d5e; background: radial-gradient(circle at 35% 30%, #ff5a7a, #8a1530); }
.w-act.report:not([disabled]) { border-color: #ff3d5e; background: radial-gradient(circle at 35% 30%, #ff5a7a, #8a1530); animation: wpulse 1s infinite; }
.w-act.drain { background: radial-gradient(circle at 35% 30%, #7a1f30, #2a0a12); } .w-act.drain:not([disabled]) { border-color: #ff3d5e; box-shadow: 0 0 22px rgba(255,61,94,.6); }
.w-act.bridge:not([disabled]) { border-color: #a98bff; } .w-act.sabotage { width: 66px; height: 66px; } .w-act.sabotage .ic { font-size: 1.2rem; } .w-act.sabotage b { font-size: .55rem; }
.w-act .cd { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 1.4rem; color: #fff; text-shadow: 0 2px 6px #000; pointer-events: none; }
.w-act .cd:empty { display: none; }
.w-toast { position: absolute; left: 50%; bottom: 120px; transform: translate(-50%, 20px); max-width: min(560px, 88vw); background: rgba(14,16,32,.94); border: 1px solid rgba(255,214,77,.5); border-radius: 12px; padding: 10px 14px; font-size: .9rem; opacity: 0; transition: .25s; pointer-events: none; text-align: center; }
.w-toast.on { opacity: 1; transform: translate(-50%, 0); }
.w-sheet-host { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
.w-sheet { pointer-events: auto; width: min(520px, 94vw); max-height: 86vh; overflow: auto; background: linear-gradient(160deg, #1a1f3c, #10132a); border: 2px solid #3a4170; border-radius: 18px; padding: 14px 16px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: wpop .18s ease-out; }
@keyframes wpop { from { transform: scale(.92); opacity: 0; } }
.w-sheet header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .w-sheet header b { font-size: 1.1rem; }
.w-x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: #22284a; color: #fff; cursor: pointer; font-size: 1rem; }
.w-sheet.complete { border-color: #36e39a; box-shadow: 0 0 40px rgba(54,227,154,.5); }
.tg-help { margin: 0 0 10px; color: #aab3d6; font-size: .9rem; } .tg-msg { min-height: 1.3em; margin: 8px 0 0; text-align: center; font-weight: 700; color: #ffd64d; }
.tg-big { display: block; width: 100%; margin-top: 10px; padding: 16px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #36e39a, #1e9e6a); color: #062016; font: inherit; font-weight: 900; font-size: 1.2rem; letter-spacing: .08em; cursor: pointer; }
.tg-big:active { transform: translateY(2px); }
.tg-screen { position: relative; background: #04100c; border: 2px solid #36e39a; border-radius: 10px; overflow: hidden; } .tg-screen canvas { display: block; width: 100%; height: auto; }
.snipe-flash { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: #36e39a; opacity: 0; text-shadow: 0 0 20px #36e39a; } .snipe-flash.on { opacity: 1; animation: wpulse .3s infinite; }
.dials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dial { background: #12162c; border: 2px solid #2a3060; border-radius: 14px; padding: 8px; color: #aab3d6; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; display: grid; gap: 4px; }
.dial svg { width: 100%; } .dial-bg { fill: #0a0d1f; stroke: #2a3060; stroke-width: 3; } .dial-zone { fill: none; stroke: #36e39a; stroke-width: 9; stroke-linecap: round; } .needle { stroke: #ffd64d; stroke-width: 4; stroke-linecap: round; } .dial-hub { fill: #ffd64d; }
.dial.ok { border-color: #36e39a; } .dial.ok .needle { stroke: #36e39a; } .dial.bad, .feed.bad, .hb.bad, .gc-msg.bad, .hash.bad { animation: wshake .3s; border-color: #ff5a6b !important; }
@keyframes wshake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.agent-core { width: 90px; height: 90px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle, #0a1a33 55%, transparent 56%), conic-gradient(#4fd8f0 calc(var(--fill, 0) * 360deg), #1d2550 0); --fill: 0; display: grid; place-items: center; }
.core-eye { --fill: 0; width: 22px; height: 22px; border-radius: 50%; background: #bff4ff; box-shadow: 0 0 20px #4fd8f0; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.feed { padding: 12px 10px; border-radius: 12px; border: 2px solid #2a3060; background: #12162c; color: #eef1ff; font: inherit; font-weight: 700; cursor: pointer; } .feed.ok { border-color: #36e39a; background: #0f2a22; }
.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; height: 170px; align-items: end; }
.hb { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; background: #12162c; border: 2px solid #2a3060; border-radius: 8px; padding: 4px; cursor: pointer; color: #aab3d6; font: inherit; font-size: .62rem; }
.hb i { display: block; background: linear-gradient(180deg, #ffd34d, #a98bff); border-radius: 4px; } .hb span { margin-top: 4px; text-align: center; } .hb.ok { border-color: #36e39a; } .hb.ok i { background: #36e39a; }
.lp-track { position: relative; height: 46px; border-radius: 23px; background: #0c1a33; border: 2px solid #2a4a80; overflow: hidden; }
.lp-zone { position: absolute; top: 0; bottom: 0; width: 16%; background: rgba(54,227,154,.45); border-left: 2px solid #36e39a; border-right: 2px solid #36e39a; transition: left .3s; }
.lp-mark { position: absolute; top: 4px; bottom: 4px; width: 8px; margin-left: -4px; border-radius: 4px; background: #ffd64d; box-shadow: 0 0 12px #ffd64d; }
.lp-locks { display: flex; gap: 8px; justify-content: center; margin-top: 10px; } .lp-locks i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #2a4a80; } .lp-locks i.on { background: #36e39a; border-color: #36e39a; box-shadow: 0 0 12px #36e39a; }
.gc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gc-msg { width: 100%; display: grid; gap: 2px; text-align: left; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #1d2445; border: 2px solid transparent; color: #eef1ff; font: inherit; cursor: pointer; }
.gc-msg b { font-size: .72rem; color: #a98bff; } .gc-msg span { font-size: .9rem; } .gc-msg.gone { opacity: 0; transform: scale(.9); pointer-events: none; transition: .25s; height: 0; padding: 0; overflow: hidden; }
.hash { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: #1a1610; border: 2px solid #5a4a2a; font-family: ui-monospace, monospace; font-size: 1.4rem; letter-spacing: .2em; margin-bottom: 10px; }
.h-target { color: #f0b44d; } .h-in { color: #36e39a; }
.keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .keypad button { padding: 14px 0; border-radius: 10px; border: 2px solid #3a3220; background: #241f15; color: #f5cf62; font: 800 1.1rem ui-monospace, monospace; cursor: pointer; } .keypad button:active { background: #3a3220; }
.sign-bar { height: 14px; border-radius: 7px; background: #12162c; overflow: hidden; margin-top: 10px; } .sign-bar i { display: block; height: 100%; width: 0; background: #36e39a; animation: wfill 3s linear forwards; }
@keyframes wfill { to { width: 100%; } }
.w-over { position: absolute; inset: 0; pointer-events: none; } .w-over > * { pointer-events: auto; }
.w-chart-ov, .w-map-ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3,4,10,.6); z-index: 4; }
.w-chart-card, .w-map-card { width: min(720px, 94vw); background: rgba(14,16,32,.97); border: 1px solid rgba(140,150,220,.3); border-radius: 16px; padding: 12px 14px; }
.w-map-card header { display: flex; align-items: center; } .w-map-card svg { width: 100%; height: auto; }
.mm-floor { fill: #1c2140; stroke: #3a4070; stroke-width: 6; } .mm-label { fill: #aab3d6; font: 800 34px system-ui; text-anchor: middle; } .mm-task circle { fill: #ffd64d; cursor: pointer; } .mm-task text { font: 900 30px system-ui; text-anchor: middle; fill: #1a1400; pointer-events: none; }
.mm-emer { fill: #ff3d5e; } .mm-bridge { fill: none; stroke: #a98bff; stroke-width: 6; } .mm-me { stroke: #fff; stroke-width: 6; }
.real-chart line.up, .real-chart rect.up { stroke: #36e39a; fill: #36e39a; } .real-chart line.dn, .real-chart rect.dn { stroke: #ff5a6b; fill: #ff5a6b; } .real-chart line { stroke-width: 1.5; } .real-chart { width: 100%; height: auto; background: #070a14; border-radius: 10px; }
/* role reveal */
.w-rr { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 16px; background: radial-gradient(circle at 50% 45%, #1a1f3c, #05060d 70%); animation: wfade .4s; }
.w-rr h1 { font-size: clamp(3rem, 11vw, 6rem); margin: 0; letter-spacing: .12em; } .w-rr.crew h1 { color: #4fd8f0; text-shadow: 0 0 40px rgba(79,216,240,.6); } .w-rr.ins h1 { color: #ff3d5e; text-shadow: 0 0 40px rgba(255,61,94,.7); }
.rr-line { font-size: 1.1rem; margin: 0; } .rr-row { display: flex; gap: 12px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin: 12px 0; }
.rr-av { display: grid; justify-items: center; gap: 4px; font-size: .75rem; color: #aab3d6; } .rr-av.me b { color: #fff; font-size: .9rem; }
@keyframes wfade { from { opacity: 0; } }
/* death notice + help */
.w-death { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(40,0,10,.55); animation: wfade .3s; padding: 16px; }
.wd-card { max-width: 460px; background: #14101e; border: 2px solid #ff3d5e; border-radius: 18px; padding: 18px; text-align: center; } .wd-card h2 { color: #ff5a6b; margin: 0 0 6px; }
.wd-card.help-card { border-color: #4fd8f0; text-align: left; } .help-card h2 { color: #4fd8f0; } .help-card ul { padding-left: 18px; display: grid; gap: 6px; }
/* meeting */
.w-meeting { position: absolute; inset: 0; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 0%, #2a1530, #0a0b16 70%); animation: wfade .3s; }
.w-meeting.report { background: radial-gradient(circle at 50% 0%, #4a1020, #0a0b16 70%); }
.wm-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.wm-head h2 { margin: 0; font-size: clamp(1.2rem, 4vw, 1.8rem); letter-spacing: .08em; color: #ff5a7a; } .wm-head p { margin: 2px 0 0; color: #cfd5f5; font-size: .9rem; }
.wm-timer { margin-left: auto; font-family: ui-monospace, monospace; font-weight: 800; background: rgba(255,214,77,.12); color: #ffd64d; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.wm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; padding: 12px 16px; overflow: auto; }
.wm-ballot { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.wm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wm-tile { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 14px; border: 2px solid rgba(255,255,255,.1); border-left: 6px solid var(--pc); background: #161a30; color: #eef1ff; font: inherit; cursor: pointer; }
.wm-tile .wm-av { grid-row: span 2; } .wm-name b { font-size: .95rem; } .wm-name .tag { margin-left: 6px; } .wm-state { font-size: .78rem; color: #8890b8; }
.wm-tile.sel { border-color: #ffd64d; box-shadow: 0 0 0 3px rgba(255,214,77,.3); } .wm-tile.locked { border-color: #36e39a; }
.wm-tile.out { opacity: .4; filter: grayscale(1); } .wm-tile[disabled] { cursor: default; }
.wm-foot { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px; background: rgba(10,11,22,.9); border-radius: 12px; }
.wm-talk { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.wm-evidence details { background: rgba(255,255,255,.04); border-radius: 12px; padding: 6px 10px; } .wm-evidence summary { font-weight: 800; font-size: .85rem; cursor: pointer; color: #ffd64d; }
.wm-ev { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; } .wm-ev li { border-left: 4px solid var(--pc); padding-left: 8px; } .wm-ev .clear { color: #36e39a; }
.wm-chat { list-style: none; margin: 0; padding: 8px; flex: 1; min-height: 120px; max-height: 40vh; overflow: auto; background: rgba(0,0,0,.25); border-radius: 12px; display: grid; gap: 6px; align-content: start; }
.wm-chat li { display: flex; align-items: center; gap: 6px; font-size: .88rem; } .wm-chat li.sys { color: #ffd64d; font-weight: 700; } .c-av svg { width: 26px; height: 26px; }
.wm-quick { display: flex; flex-wrap: wrap; gap: 6px; } .chip { padding: 7px 10px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: #1d2240; color: #eef1ff; font: inherit; font-size: .8rem; cursor: pointer; } .chip.hot { border-color: #ff5a6b; color: #ffb3bd; }
.wm-free { display: flex; gap: 6px; } .wm-free input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: #0d1020; color: #fff; font: inherit; }
/* ejection */
.w-eject { position: absolute; inset: 0; background: #020309; overflow: hidden; display: grid; place-items: center; animation: wfade .3s; }
.w-eject .stars { position: absolute; inset: -50%; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #cfd5ff, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 20%, #fff, transparent), radial-gradient(1px 1px at 10% 70%, #aab3ff, transparent); background-size: 220px 220px; animation: wstars 6s linear infinite; }
@keyframes wstars { to { transform: translateX(-220px); } }
.w-eject .floater { position: absolute; top: 14%; left: -20%; animation: wfloat 5s linear forwards; } @keyframes wfloat { to { left: 110%; transform: rotate(540deg); } }
.ej-text { position: relative; text-align: center; padding: 16px; margin-top: 18vh; } .ej-text p { margin: 6px 0; } .ej-text .l1 { font-size: clamp(1.4rem, 5vw, 2.4rem); font-weight: 800; animation: wtype 1.2s steps(30) both; overflow: hidden; white-space: nowrap; }
.ej-text .l2 { font-size: clamp(1.1rem, 4vw, 1.8rem); color: #aab3d6; animation: wfade 1s 1.4s both; } .ej-text .l2.ins { color: #ff5a6b; font-weight: 900; } .ej-text .l3 { color: #8890b8; animation: wfade 1s 2.2s both; }
@keyframes wtype { from { max-width: 0; } to { max-width: 100%; } }
/* results */
.w-reveal .route-map { width: 100%; height: auto; background: #070814; border-radius: 12px; margin-top: 8px; }
.route-map .r-floor { fill: #171b33; stroke: #2b3052; stroke-width: 8; } .route-map .r-label { fill: #5a628a; font: 800 30px system-ui; text-anchor: middle; } .route-map .r-path { fill: none; stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.route-map .r-drain { fill: rgba(255,61,94,.35); stroke: #ff3d5e; stroke-width: 5; } .route-map .r-x { fill: #fff; font: 900 26px system-ui; text-anchor: middle; }
.w-timeline { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: .9rem; } .w-timeline .bad { color: #ff5a6b; } .ok { color: #36e39a; }
.w-players { list-style: none; padding: 0; display: grid; gap: 6px; } .w-players li { display: flex; align-items: center; gap: 8px; border-left: 4px solid var(--pc); padding-left: 8px; }
@media (max-width: 760px) {
  .w-top { gap: 6px; padding-right: 92px; flex-wrap: nowrap; } .w-card { padding: 5px 8px; } .w-role span { display: none; } .w-taskbar { min-width: 0; flex: 1; max-width: none; } .w-taskbar > span { display: none; }
  .w-coin { position: fixed; left: 10px; bottom: 16px; } .w-coin .spark { display: none; }
  .w-tools { position: absolute; top: 0; right: 0; } .w-icon { width: 40px; height: 40px; } .w-tools [data-w=sound] { display: none; }
  .w-tasks { top: 58px; } .w-menu { top: 56px; } .w-alert { top: 100px; font-size: .8rem; }
  .w-act { width: 72px; height: 72px; } .w-act .ic { font-size: 1.4rem; } .w-act.sabotage { width: 56px; height: 56px; }
  .wm-body { grid-template-columns: 1fr; } .wm-chat { max-height: 26vh; min-height: 90px; }
  .w-toast { bottom: 100px; font-size: .82rem; }
}
@media (max-width: 380px) { .w-coin i { display: none; } .wm-grid { grid-template-columns: 1fr 1fr; } .wm-tile .wm-av svg { width: 36px; height: 36px; } .wm-tile { padding: 6px; } .w-act { width: 64px; height: 64px; } }
@media (prefers-reduced-motion: reduce) { .w-eject .floater, .w-eject .stars, .ej-text .l1 { animation: none; } .w-eject .floater { left: 40%; } }

/* The featured meme coin is the artwork for the entry screen. */
.screen.home .case-hero { max-width: 1080px; margin-inline: auto; padding-top: clamp(18px, 5vw, 56px); }
.case-hero .hero-copy { display: contents; }
.case-hero .hero-intro { grid-column: 1; grid-row: 1; }
.case-hero .play { grid-column: 1; grid-row: 2; }
.case-hero .today-card { grid-column: 2; grid-row: 1 / span 2; width: 100%; min-width: 0; padding: clamp(14px, 3vw, 28px); }
.case-hero .today-card .coin-mark { border: 2px solid var(--case-ink); box-shadow: 0 0 28px color-mix(in srgb, var(--case-ink) 28%, transparent); }
.case-hero .tc-id > b { font-size: clamp(1.15rem, 2.3vw, 1.8rem); line-height: 1.09; }
.case-hero .tc-stats { margin-block: 4px; }
@media (max-width: 720px) {
  .case-hero .today-card { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .case-hero .play { grid-row: 3; }
  .case-hero .today-card .coin-mark { --s: 56px !important; }
}

/* ================= v0.9: case poster, case jobs, case file ================= */
.poster-hero { max-width: 1120px; margin: 0 auto; padding: clamp(10px, 3vw, 36px) 16px 8px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.ph-copy .tagline { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; margin: 4px 0 10px; }
.ph-copy .lead { max-width: 30em; }
.poster { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(14px, 2.5vw, 28px); align-items: center; padding: clamp(16px, 2.6vw, 30px); border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, var(--case-wash, #282442), #0f1122 70%); border: 1px solid color-mix(in srgb, var(--case-ink, #c2b5ff) 40%, transparent); box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 80px color-mix(in srgb, var(--case-ink, #c2b5ff) 10%, transparent); overflow: hidden; }
.poster::after { content: ''; position: absolute; inset: auto -20% -60% 30%; height: 120%; background: radial-gradient(circle, color-mix(in srgb, var(--case-ink, #c2b5ff) 22%, transparent), transparent 60%); pointer-events: none; }
.poster-art { width: var(--s); height: var(--s); border-radius: 50%; position: relative; flex: none; display: grid; place-items: center; box-shadow: 0 0 0 4px color-mix(in srgb, var(--case-ink, #c2b5ff) 70%, transparent), 0 0 50px color-mix(in srgb, var(--case-ink, #c2b5ff) 45%, transparent); animation: posterFloat 5s ease-in-out infinite; background: #0d0f1e; z-index: 1; }
.poster-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.poster-art .pa-mono { display: none; }
.poster-art.no-art { background: conic-gradient(from 210deg, var(--case-ink, #c2b5ff), #ff5a7a, var(--case-ink, #c2b5ff)); }
.poster-art.no-art .pa-mono { display: grid; place-items: center; width: 84%; height: 84%; border-radius: 50%; background: #0d0f1e; text-align: center; line-height: .95; }
.pa-mono b { font: 900 calc(var(--s) * .2) / 1 ui-monospace, monospace; color: var(--case-ink, #c2b5ff); letter-spacing: -.02em; }
.pa-mono i { display: block; font: 700 calc(var(--s) * .065) / 1.1 system-ui, sans-serif; color: #cfd5f5; font-style: normal; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; max-width: 80%; margin-inline: auto; }
@keyframes posterFloat { 50% { transform: translateY(-6px) rotate(-2deg); } }
.poster-body { position: relative; z-index: 1; display: grid; gap: 6px; min-width: 0; }
.poster-body .eyebrow { margin: 0; }
.poster-ticker { margin: 0; font: 900 clamp(2.1rem, 5.4vw, 3.8rem) / .95 ui-monospace, monospace; color: var(--case-ink, #c2b5ff); letter-spacing: -.03em; text-shadow: 0 0 30px color-mix(in srgb, var(--case-ink, #c2b5ff) 45%, transparent); overflow-wrap: anywhere; }
.poster-title { margin: 0; font-weight: 800; font-size: 1.15rem; } .poster-title .fine { font-weight: 500; }
.poster-hook { margin: 2px 0 0; font-size: 1.02rem; }
.poster-inv { margin: 0; color: #ffd64d; font-weight: 700; }
.poster .play-bots { margin-top: 8px; }
.poster .choose-case { justify-self: start; font-weight: 700; }
.more-modes { max-width: 1120px; margin: 8px auto 30px; padding: 0 16px; display: grid; gap: 10px; }
.more-modes .alt-modes { max-width: 760px; }
@media (prefers-reduced-motion: reduce) { .poster-art { animation: none; } }
@media (max-width: 820px) {
  .poster-hero { grid-template-columns: 1fr; gap: 10px; padding-top: 6px; }
  .ph-copy .tagline { font-size: clamp(1.6rem, 7.6vw, 2.2rem); margin: 2px 0 0; } .ph-copy .lead { display: none; }
  .poster { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 20px; }
  .poster-art { --s: 96px !important; width: 96px; height: 96px; }
  .poster-ticker { font-size: clamp(1.7rem, 9vw, 2.4rem); }
  .poster-title { font-size: 1rem; } .poster-hook { font-size: .92rem; }
  .poster .play-bots, .poster .choose-case { grid-column: 1 / -1; }
  .poster-body { display: contents; }
  .poster-body > .eyebrow, .poster-body > .poster-ticker, .poster-body > .poster-title { grid-column: 2; }
  .poster-body > .poster-hook, .poster-body > .poster-inv { grid-column: 1 / -1; }
  .poster > .poster-art { grid-row: 1 / span 3; align-self: start; }
}
/* briefing: the case job */
.brief-hook { margin: 6px 0 0; font-size: 1.05rem; font-weight: 600; }
.case-job { margin-top: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--case-ink, #ff6fd8) 70%, transparent); background: color-mix(in srgb, var(--case-wash, #282442) 70%, transparent); display: grid; gap: 3px; }
.case-job b { font-size: 1.05rem; color: #ff8fe0; } .case-job p { margin: 0; } .case-job .inv, .pr-inv { color: #ffd64d; font-weight: 700; font-size: .9rem; }
.pr-inv { display: block; }
/* case jobs */
.case-tag { display: inline-block; font-size: .68rem; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: #ff6fd8; color: #2a0a22; vertical-align: middle; margin-right: 4px; }
.seq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seq-card { position: relative; display: grid; gap: 2px; padding: 12px; border-radius: 12px; border: 2px solid #2a3060; background: #12162c; color: #eef1ff; font: inherit; cursor: pointer; text-align: left; }
.seq-card b { font-size: 1.05rem; } .seq-card.up b { color: #36e39a; } .seq-card.dn b { color: #ff5a6b; } .seq-card span { font: 600 .8rem ui-monospace, monospace; color: #aab3d6; }
.seq-card.ok { border-color: #36e39a; } .seq-card i { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #36e39a; color: #062016; font: 900 .85rem/24px system-ui; text-align: center; font-style: normal; }
.tape svg { width: 100%; height: auto; display: block; } .tp { cursor: pointer; } .tp-hit { fill: transparent; } .tp:hover .tp-hit { fill: rgba(255,255,255,.06); }
.tape line.up, .tape rect.up { stroke: #36e39a; fill: #36e39a; } .tape line.dn, .tape rect.dn { stroke: #ff5a6b; fill: #ff5a6b; } .tape line { stroke-width: 1.5; }
.tp.hit .tp-hit { fill: rgba(255,214,77,.3); } .tp.miss .tp-hit { fill: rgba(255,90,107,.25); }
.rc.sell b { color: #ff5a6b; } .rc.buy b { color: #36e39a; } .gc-msg.ok { border-color: #36e39a; }
/* meeting case file */
.wm-file { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,214,77,.25); }
.cf-row { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; align-items: baseline; } .cf-row p { margin: 0; font-size: .9rem; }
.cf-q { font-weight: 900; font-size: .78rem; letter-spacing: .04em; color: #ffd64d; text-transform: uppercase; }
.cf-row.hot { padding-top: 6px; border-top: 1px dashed rgba(255,214,77,.3); } .cf-row.hot p { font-weight: 600; }
.clue-src { display: block; font-size: .72rem; color: #ff8fe0; font-weight: 800; letter-spacing: .03em; }
@media (max-width: 760px) { .cf-row { grid-template-columns: 1fr; gap: 0; } .wm-file { padding: 8px 10px; } .cf-row p { font-size: .85rem; } }
/* results: the case */
.case-report { border-color: rgba(255,111,216,.4); } .case-report .cr-q { font-weight: 800; color: #ffd64d; margin: 4px 0; }
.cr-clues { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .9rem; } .case-report .bad { color: #ff5a6b; }
/* map: action button pulses when you've arrived */
.w-act.use.ready:not([disabled]) { animation: wready 1s infinite; }
@keyframes wready { 50% { box-shadow: 0 0 0 8px rgba(255,214,77,.35), 0 0 38px rgba(255,214,77,.9); } }

.w-tasks li.case button { color: #ff8fe0; font-weight: 700; } .w-tasks li.case.done button { color: #36e39a; }

/* meetings on phones: sections stack in one scroll area, nothing overlaps */
.wm-body { grid-auto-rows: max-content; }
.wm-ballot, .wm-talk { min-height: auto; }
@media (max-width: 760px) { .wm-body { display: flex; flex-direction: column; } .wm-ballot { order: 1; } .wm-talk { order: 2; } .wm-foot { position: sticky; bottom: 0; z-index: 2; } }
.brief-start { width: 100%; margin-top: 10px; }
@media (min-width: 821px) { .brief-start { display: none; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.hero-actions .btn { flex: 1 1 auto; }
.game-preview { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid #637098; box-shadow: 0 18px 60px #0008; background: #111629; }
.game-preview img { display: block; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: 55% 50%; }
.coin-import { max-width: 780px; margin: 14px auto; }
.coin-import h2, .import-confirm h3 { margin: 0; }
.coin-import form { margin-top: 12px; }
.import-input { display: flex; gap: 8px; margin-top: 5px; }
.import-input input { flex: 1 1 0; min-width: 0; }
.import-confirm { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
.import-confirm p { margin: 4px 0; overflow-wrap: anywhere; }
.import-confirm .hero-actions { grid-column: 1 / -1; margin: 3px 0 0; }
@media (max-width: 720px) {
  .poster-hero .hero-actions { margin-block: 10px; }
  .game-preview img { aspect-ratio: 1.9; }
  .coin-import { margin-inline: 12px; }
}

/* ================= launch site: header, Home, guide, token, footer ================= */
:root { --brand-red: #ff4d5e; --brand-acid: #c6ff3d; --wrap: 1240px; }
.w-menu small { display: block; color: #9aa3cc; font-size: .72rem; } .w-menu button.danger { color: #ff8a94; }
.site-head { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; max-width: var(--wrap); margin: 0 auto 14px; padding: 4px 0 10px; border-bottom: 1px solid #262c46; }
.site-head .brand { text-decoration: none; flex: none; }
.site-nav { flex: 1 1 auto; min-width: 0; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { color: #cfd4ea; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 7px 11px; border-radius: 9px; white-space: nowrap; }
.nav-links a:hover { background: #1d2238; color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; background: #222842; box-shadow: inset 0 -2px 0 var(--brand-red); }
.nav-toggle { display: none; }
.site-head .topbar-right { display: flex; gap: 8px; align-items: center; flex: none; margin-left: auto; }
.site-head .return { white-space: nowrap; }
.site, .site-foot { max-width: var(--wrap); margin-inline: auto; }
.site > .room-banner { max-width: var(--wrap); margin: 0 auto 12px; }
.site h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.02em; margin: 0 0 12px; }
/* hero */
.s-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(18px, 3.2vw, 48px); align-items: start; padding: clamp(14px, 3vw, 44px) clamp(0px, 1vw, 12px) clamp(20px, 3vw, 40px); }
.s-title { margin: 0; font-size: clamp(2.1rem, 4.4vw, 4.1rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 900; text-wrap: balance; }
.s-title em { display: block; font-style: italic; color: var(--brand-red); }
.s-lead { margin: 14px 0 0; font-size: clamp(1rem, 1.3vw, 1.18rem); color: #d6d9e8; max-width: 36ch; line-height: 1.45; }
.s-name { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; color: var(--muted); font-size: .88rem; font-weight: 700; }
.s-name input { width: 190px; padding: 8px 11px; }
.s-hero .hero-actions { margin: 12px 0 0; gap: 10px; }
.s-hero .hero-actions .btn { flex: 1 1 170px; margin: 0; }
.s-hero .hero-actions .btn.on { border-color: var(--p-cyan); }
.s-sub { margin: 12px 0 0; } .s-sub .link { font-size: inherit; }
.hero-import { margin-top: 12px; padding: 12px 14px; border: 1px solid #3a4266; border-radius: 14px; background: #151a2d; display: grid; gap: 6px; }
.hero-import label { font-size: .86rem; font-weight: 700; color: #d6d9e8; }
.hero-import .fine, .hero-import .error { margin: 0; }
.hero-import > .link { justify-self: start; font-size: .82rem; }
.s-shot { margin: clamp(0px, 2vw, 28px) 0 0; border-radius: 18px; overflow: hidden; border: 1px solid #4a5480; box-shadow: 0 24px 70px #0009, 0 0 0 6px #151a2e; background: #0d1020; }
.s-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
/* play with people */
.s-play, .s-how, .token-panel, .s-guide { border-top: 1px solid #262c46; padding: clamp(20px, 2.6vw, 34px) 0; }
.s-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.s-mode { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid #333a58; border-radius: 14px; background: #161a2b; margin: 0; max-width: none; }
.s-mode h3 { margin: 0; font-size: 1.05rem; } .s-mode .fine { margin: 0 0 4px; }
.s-mode > .btn { justify-self: start; }
.s-mode.join .row { gap: 8px; } .s-mode.join input { width: 120px; flex: 0 1 120px; min-width: 0; text-transform: uppercase; letter-spacing: .15em; }
.s-play .error { margin: 10px 0 0; }
/* token */
.token-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.tp-avatar { width: 88px; height: 88px; border-radius: 22px; border: 2px solid #4a2f42; background: #0d1020; }
.tp-main { display: grid; gap: 4px; min-width: 0; } .tp-main h2 { margin: 0; }
.tp-main .eyebrow { margin: 0; color: #ff9eb7; }
.tp-ca { display: block; font: .92rem/1.4 var(--mono); padding: 9px 11px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.s-mode h3 label { font: inherit; color: inherit; display: inline; margin: 0; }
.tp-main .fine { margin: 2px 0 0; }
.tp-actions { display: grid; gap: 8px; } .tp-actions .btn { text-decoration: none; text-align: center; white-space: nowrap; }
/* round steps */
.round-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.round-steps li { display: grid; align-content: start; border: 1px solid #333a58; border-radius: 16px; overflow: hidden; background: #161a2b; }
.round-steps img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid #2a3050; }
.round-steps li > div { padding: 12px 14px 14px; }
.round-steps h3, .round-steps h2 { display: inline; margin: 0; font-size: 1.08rem; }
.round-steps p { margin: 6px 0 0; color: #c9cde0; font-size: .92rem; }
.rs-n { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--brand-red); color: #19060a; font-weight: 900; font-size: .8rem; vertical-align: 2px; }
.s-how > .fine { margin: 12px 0 0; }
/* guide page */
.s-guide h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
.s-guide > .row-between { flex-wrap: wrap; gap: 10px; }
.s-guide .btn { text-decoration: none; }
.s-guide .round-steps { margin: 18px 0 24px; }
.s-rules { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 7px; max-width: 76ch; color: #d6d9e8; }
/* footer */
.site-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; border-top: 1px solid #262c46; padding: 18px 0 6px; margin-top: 6px; }
.site-foot .logo { font-weight: 900; letter-spacing: -.03em; } .site-foot .logo b { color: var(--danger); }
.site-foot nav { display: flex; gap: 14px; } .site-foot a { color: #cfd4ea; font-weight: 700; font-size: .9rem; }
.site-foot .fine { margin: 0 0 0 auto; }
@media (min-width: 1600px) { :root { --wrap: 1320px; } }
@media (max-width: 1000px) { .site-head .return { padding: 7px 10px; font-size: .85rem; } }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; font: inherit; font-weight: 800; font-size: .85rem; color: #fff; background: #1b2033; border: 1px solid #3a4266; border-radius: 9px; padding: 7px 12px; cursor: pointer; }
  .site-nav { position: relative; flex: 0 0 auto; order: 3; }
  .site-head .topbar-right { order: 2; }
  .nav-links { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; flex-direction: column; align-items: stretch; min-width: 200px; padding: 6px; background: #12162a; border: 1px solid #3a4266; border-radius: 12px; box-shadow: 0 16px 40px #000a; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 1rem; }
  .s-hero { grid-template-columns: minmax(0, 1fr); padding-top: 6px; gap: 18px; }
  .s-modes, .round-steps { grid-template-columns: minmax(0, 1fr); }
  .round-steps li { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
  .round-steps img { height: 100%; border-bottom: 0; border-right: 1px solid #2a3050; }
  .token-panel { grid-template-columns: auto minmax(0, 1fr); }
  .tp-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .site-foot .fine { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .site-head { gap: 8px; }
  .site-head .return { padding: 6px 9px; font-size: .8rem; }
  .s-title { font-size: clamp(1.75rem, 8.6vw, 2.4rem); }
  .s-lead { margin-top: 8px; font-size: .98rem; }
  .s-name { margin-top: 12px; } .s-name input { flex: 1 1 auto; width: auto; min-width: 0; }
  .s-hero .hero-actions .btn { flex-basis: 100%; }
  .round-steps li { grid-template-columns: minmax(0, 1fr); }
  .round-steps img { height: auto; border-right: 0; border-bottom: 1px solid #2a3050; }
  .tp-avatar { width: 60px; height: 60px; border-radius: 16px; }
  .tp-actions { grid-template-columns: minmax(0, 1fr); }
  .import-input { flex-wrap: wrap; } .import-input .btn { flex: 1 1 100%; }
}
@media (max-width: 360px) { .site-head .brand .logo { font-size: 1.05rem; } .site-head .iconbtn { display: none; } }
/* lobby on phones: nothing wider than the panel */
.lobby-side, .lobby-side .invite, .lobby-side .seats { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.lobby-side .invite .row input { flex: 1 1 0; min-width: 0; }
.invite-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.invite-banner label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; font-weight: 700; }
.invite-banner input { width: 170px; }
.invite-banner .ib-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .invite-banner label, .invite-banner .ib-actions { flex: 1 1 100%; } .invite-banner input { flex: 1 1 auto; width: auto; min-width: 0; } .invite-banner .btn.primary { flex: 1 1 auto; } }
