:root {
  --bg: #08090C; --panel: #0E1015; --panel2: #12151B; --line: #1D2028; --line2: #262A33;
  --text: #ECE8E0; --muted: #848B97; --dim: #5B616C;
  --fire: #FF8F3A; --green: #5BE08A; --red: #FF6B6B; --yellow: #F5C443;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 12px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
.page { max-width: 1440px; margin: 0 auto; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--muted); }
.grow { flex: 1; }
b { font-weight: 600; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 2px 4px; }
.brand { display: flex; align-items: center; gap: 12px; }
#mark { width: 44px; height: 44px; image-rendering: pixelated; }
#word { width: 92px; height: 28px; image-rendering: pixelated; display: block; }
.sub { color: var(--muted); margin-top: 4px; }
.top-r { display: flex; align-items: center; gap: 22px; }
.net { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: inline-block; }
.net.live .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(91,224,138,.15); }
.stat { display: flex; align-items: baseline; gap: 6px; color: var(--muted); }
.stat b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.clock { font-size: 18px; font-weight: 600; border: 1px solid var(--line2); border-radius: var(--r); padding: 6px 10px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

.agents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.agent { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 10px; display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 6px; min-height: 92px; transition: border-color .4s; }
.agent.hot { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.agent canvas { width: 34px; height: 34px; image-rendering: pixelated; grid-row: span 2; }
.agent .nm { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--c); letter-spacing: .01em; line-height: 1; }
.agent .rl { color: var(--muted); margin-top: 3px; }
.agent .mt { text-align: right; font-variant-numeric: tabular-nums; }
.agent .mt b { font-size: 14px; display: block; }
.agent .mt span { color: var(--muted); }
.agent .say { grid-column: 2 / span 2; color: #C9C5BD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent .bar { grid-column: 1 / span 3; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.agent .bar i { display: block; height: 100%; background: var(--c); transition: width .6s; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; }
.ph { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 500; }

.scene-panel { border-color: var(--line2); }
.scene-strip { display: flex; gap: 18px; justify-content: center; padding: 8px 12px; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.scene-strip b { color: var(--text); font-weight: 500; }
.scene-strip .up { color: var(--green); } .scene-strip .dn { color: var(--red); }
.scene { position: relative; width: 100%; aspect-ratio: 352 / 152; background: #0B0C10; }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble { position: absolute; transform: translate(0, -100%); background: rgba(10,11,14,.92); border: 1px solid var(--c); color: #EDE9E1; padding: 5px 8px; border-radius: 4px; font-size: 11.5px; line-height: 1.3; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .25s; }
.bubble.on { opacity: 1; }
.bubble[data-side="r"] { transform: translate(-100%, -100%); }
.bubble[data-side="c"] { transform: translate(-50%, -100%); }

.bal-body { position: relative; height: 150px; }
#balchart { width: 100%; height: 100%; display: block; }
.bal-big { position: absolute; right: 18px; top: 18px; text-align: right; pointer-events: none; }
.bal-big b { display: block; font-family: var(--sans); font-size: 28px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; margin: 2px 0; }
.bal-big b.dn { color: var(--red); }

.row2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.focus-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.focus-head img { width: 34px; height: 34px; border-radius: 6px; background: var(--panel2); object-fit: cover; }
.focus-head .nm { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.focus-head .nm span { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 12px; margin-left: 6px; }
.focus-head .kv { display: flex; gap: 18px; margin-left: auto; }
.focus-head .kv div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.focus-head .kv span { color: var(--muted); font-size: 11px; }
.focus-head .kv b { font-variant-numeric: tabular-nums; }
.focus-body { display: grid; grid-template-columns: 1fr 210px; height: 300px; }
#candles { width: 100%; height: 100%; display: block; }
.checks { border-left: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.checks .c { display: flex; justify-content: space-between; gap: 8px; }
.checks .c span:first-child { color: #BDB9B1; }
.ok { color: var(--green); } .no { color: var(--red); } .wait { color: var(--yellow); }
.checks .v { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.checks .verdict { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }

.code { padding: 10px 14px; line-height: 1.62; font-size: 12px; }
.code .cm { color: var(--dim); }
.code .kw { color: #B38BF5; }
.code .ln { display: grid; grid-template-columns: 22px 170px 80px 1fr 20px; align-items: center; }
.code .ln .no2 { color: var(--dim); }
.code .ln .lim { color: #E9C46A; }
.code .ln .val { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.code .ln.bad { background: rgba(255,107,107,.08); }
.code .ln .mk { text-align: right; }
.code .ln .full { grid-column: 2 / span 4; }
.flow { display: flex; align-items: center; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.flow .chip { border: 1px solid var(--line2); border-radius: 4px; padding: 4px 8px; color: var(--muted); transition: all .3s; }
.flow .chip.on { color: #0B0C10; background: var(--c); border-color: var(--c); }
.flow .ar { color: var(--dim); }

.low .panel { min-height: 220px; }
.log { padding: 4px 0; max-height: 260px; overflow: hidden; }
.log .r { display: grid; grid-template-columns: 70px 110px 64px 1fr; gap: 8px; padding: 4px 12px; align-items: center; }
.log .r:nth-child(odd) { background: rgba(255,255,255,.012); }
.log .r .t { color: var(--dim); }
.log .r .k { font-weight: 600; }
.log .r .k.fire { color: var(--fire); } .log .r .k.win { color: var(--green); } .log .r .k.loss { color: var(--red); } .log .r .k.e86 { color: var(--dim); } .log .r .k.trim { color: var(--yellow); }
.log .r .x { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.burners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
.bn { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 10px; align-items: center; min-height: 76px; }
.bn img { width: 30px; height: 30px; border-radius: 5px; object-fit: cover; background: var(--panel2); grid-row: span 2; }
.bn .s { font-weight: 600; }
.bn .p { text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bn .d { color: var(--muted); grid-column: 2 / span 2; }
.bn.off { color: var(--dim); display: flex; align-items: center; justify-content: center; border-style: dashed; }
.foot { display: flex; justify-content: space-between; color: var(--dim); padding: 6px 2px; gap: 16px; }

@media (max-width: 1100px) {
  .agents { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .top-r .stat { display: none; }
}
@media (max-width: 640px) {
  .page { padding: 10px 10px 16px; }
  .agents { grid-template-columns: 1fr 1fr; gap: 6px; }
  .agent { grid-template-columns: 28px 1fr; min-height: 0; padding: 8px; }
  .agent canvas { width: 28px; height: 28px; }
  .agent .mt { display: none; }
  .agent .say { grid-column: 1 / span 2; }
  .agent .bar { grid-column: 1 / span 2; }
  .scene-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .scene-wrap::-webkit-scrollbar { display: none; }
  .scene { width: 780px; }
  .bubble { font-size: 10px; padding: 3px 6px; max-width: 200px; }
  .clock { font-size: 13px; padding: 5px 7px; }
  .bal-body { height: auto; display: flex; flex-direction: column-reverse; }
  .bal-big { position: static; text-align: left; padding: 12px 12px 0; }
  .bal-big b { font-size: 24px; }
  #balchart { height: 130px; }
  .focus-body { grid-template-columns: 1fr; height: auto; }
  #candles { height: 220px; }
  .checks { border-left: 0; border-top: 1px solid var(--line); }
  .code .ln { grid-template-columns: 18px 1fr 60px 70px 16px; }
  .burners { grid-template-columns: 1fr; }
  .net span { display: none; }
  .scene-strip { justify-content: flex-start; font-size: 11px; }
  .focus-head .kv { gap: 10px; }
  .foot { flex-direction: column; }
}

/* ── live: the visitor's own wallet. paper stays the default; everything here is real SOL ── */
:root { --live: #FF5B4F; --paper: #ECE4D2; --ink: #2A2622; }
body.replay .lv-only { display: none !important; }
.lv-ctl { position: relative; display: flex; align-items: center; gap: 8px; }
.lv-wallet, .lv-switch { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.lv-wallet:hover, .lv-switch:hover { border-color: #3A404B; }
.lv-wallet img { width: 16px; height: 16px; border-radius: 4px; }
.lv-wallet b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-track { width: 24px; height: 12px; background: #0B0D10; border: 1px solid #343A44; position: relative; display: block; }
.lv-track i { position: absolute; top: 1px; left: 1px; width: 8px; height: 8px; background: #4A505B; transition: left .18s steps(4), background .18s; }
#lv-led { height: 10px; width: auto; display: block; image-rendering: pixelated; }
.lv-switch[aria-checked="true"] { border-color: var(--live); background: #1C0C0C; box-shadow: 0 0 0 3px rgba(255,91,79,.13), 0 0 22px rgba(255,91,79,.22); }
.lv-switch[aria-checked="true"] .lv-track { border-color: var(--live); }
.lv-switch[aria-checked="true"] .lv-track i { left: 13px; background: var(--live); box-shadow: 0 0 6px var(--live); }
.lv-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 280px; max-width: calc(100vw - 20px); background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r); padding: 6px; box-shadow: 0 16px 44px rgba(0,0,0,.55); }
.lv-pop[hidden] { display: none; }
.lv-pop .h { color: var(--muted); padding: 6px 8px 8px; }
.lv-w { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--text); font: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.lv-w:hover { background: var(--panel); border-color: var(--line2); }
.lv-w img { width: 22px; height: 22px; border-radius: 5px; }
.lv-w.get { color: var(--fire); }
.lv-none { color: var(--muted); padding: 6px 8px; }
.lv-me { display: flex; gap: 10px; align-items: center; padding: 4px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.lv-me img { width: 26px; height: 26px; border-radius: 6px; }
.lv-me b { display: block; font-family: var(--sans); font-size: 14px; }
.lv-me span { color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-err { color: var(--red); padding: 8px 12px; }

.livep.on { border-color: rgba(255,91,79,.5); box-shadow: 0 0 0 1px rgba(255,91,79,.12); }
.livep .lv-title { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.livep.on .lv-title { color: var(--live); }
.livep.on .lv-title::before { content: ''; width: 7px; height: 7px; background: var(--live); box-shadow: 0 0 0 3px rgba(255,91,79,.18); animation: lv-blink 1.2s steps(2) infinite; }
@keyframes lv-blink { 50% { opacity: .25; } }
.livep #lv-stat b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.livep #lv-stat b.ok { color: var(--green); } .livep #lv-stat b.no { color: var(--red); }
.lv-body { display: grid; grid-template-columns: minmax(360px, 0.9fr) 2fr; }
.lv-cfg { border-right: 1px solid var(--line); }
.lv-cfg .code .ln { grid-template-columns: 22px 116px 92px 1fr; }
.lv-cfg .code .ln .full { grid-column: 2 / span 3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-cfg .val2 { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-cfg .code .ln .cm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mode { white-space: nowrap; }
.lv-cfg .ln.bad .cm { color: var(--red); }
.lv-in { font: inherit; color: #E9C46A; background: transparent; border: 0; border-bottom: 1px dashed #514A36; padding: 1px 2px; width: 76px; outline: none; font-variant-numeric: tabular-nums; border-radius: 0; }
.lv-in:hover { border-bottom-color: #8A7A4E; }
.lv-in:focus { border-bottom: 1px solid #E9C46A; background: rgba(233,196,106,.07); }
.lv-side { min-width: 0; }
.lv-side.two { display: grid; grid-template-columns: 1fr 1.25fr; }
.lv-col { min-width: 0; }
.lv-col + .lv-col { border-left: 1px solid var(--line); }
.lv-sh { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px 6px; }
.lv-list { padding-bottom: 8px; max-height: 286px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.lv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 6px 12px; align-items: center; }
.lv-row:nth-child(odd) { background: rgba(255,255,255,.012); }
.lv-row .s { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-row .s .muted { font-weight: 400; }
.lv-row .s .ok, .lv-row .s .no { font-weight: 400; }
.lv-row .k { font-weight: 600; }
.lv-row .k.buy { color: var(--fire); } .lv-row .k.sell { color: var(--green); }
.lv-row .d { grid-column: 1 / span 2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-row a, .lv-ticket a { color: inherit; }
.lv-row .dim { color: var(--dim); }
.lv-sell { font: inherit; font-weight: 600; color: #0B0C10; background: var(--text); border: 0; border-radius: 4px; padding: 4px 10px; cursor: pointer; }
.lv-sell:hover { background: #fff; }
.lv-sell:disabled { background: var(--line2); color: var(--muted); cursor: default; }
.lv-empty { padding: 10px 12px; color: var(--dim); }
.lv-connect { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 100%; }
.lv-connect p { margin: 0; max-width: 60ch; line-height: 1.6; color: #C9C5BD; }
.lv-word { color: var(--live); }
.lv-wl { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-wl .lv-w { width: auto; border-color: var(--line2); padding: 7px 12px 7px 8px; }
.lv-wl .lv-none { padding: 7px 0; }

/* the ticket: what your wallet is being asked, printed on kitchen paper */
.lv-ticket { position: fixed; left: 50%; bottom: 18px; z-index: 40; width: min(540px, calc(100vw - 20px)); background: var(--paper); color: var(--ink); border-radius: 1px; box-shadow: 0 22px 60px rgba(0,0,0,.6); transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; transition: transform .32s steps(6), opacity .1s; }
.lv-ticket.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.lv-ticket::before { content: ''; position: absolute; left: 50%; top: -7px; width: 14px; height: 9px; margin-left: -7px; background: #8C96A4; box-shadow: inset 0 -3px 0 #5A6370; }
.lv-ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(90deg, var(--paper) 50%, transparent 0) 0 0 / 8px 4px repeat-x; }
.tk-strip { display: flex; align-items: center; gap: 10px; padding: 7px 14px; background: var(--fire); color: #FFF6E6; font-size: 11.5px; }
.lv-ticket[data-tone="sell"] .tk-strip { background: #2F8F52; }
.lv-ticket[data-tone="bad"] .tk-strip { background: #D9452B; }
.lv-ticket[data-tone="dim"] .tk-strip { background: #6E675C; }
#tk-stamp { height: 10px; width: auto; display: block; image-rendering: pixelated; }
.tk-main { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.35; padding: 12px 14px 4px; }
.tk-sub { color: #6B6152; padding: 0 14px 14px; line-height: 1.5; min-height: 1em; }
.tk-sub b.ok { color: #2C7442; } .tk-sub b.no { color: #B23A2E; }
.lv-ticket.sign { animation: lv-nudge 1.6s steps(2) infinite; }
@keyframes lv-nudge { 50% { box-shadow: 0 22px 60px rgba(0,0,0,.6), 0 0 0 3px #F5C443; } }

/* the terms */
.lv-modal { position: fixed; inset: 0; z-index: 60; background: rgba(5,6,8,.76); display: grid; place-items: center; padding: 16px; }
.lv-modal[hidden] { display: none; }
.lv-card { width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); padding: 20px 22px 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lv-lamp { width: 75px; height: 36px; image-rendering: pixelated; display: block; }
.lv-card p { font-family: var(--sans); font-size: 18px; margin: 16px 0 10px; }
.lv-card ul { margin: 0 0 14px; padding-left: 18px; color: #C9C5BD; line-height: 1.6; font-size: 12.5px; }
.lv-card li { margin: 6px 0; }
.lv-card li::marker { color: var(--dim); }
.lv-check { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 12px 0 4px; border-top: 1px solid var(--line); font-size: 13px; }
.lv-check input { width: 16px; height: 16px; accent-color: var(--live); margin: 0; }
.lv-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.lv-btn { font: inherit; font-weight: 600; background: var(--live); color: #160606; border: 0; border-radius: 5px; padding: 9px 14px; cursor: pointer; }
.lv-btn:disabled { opacity: .35; cursor: not-allowed; }
.lv-btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line2); }

@media (max-width: 1100px) {
  .lv-body { grid-template-columns: 1fr; }
  .lv-cfg { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  /* row 1: brand + clock, row 2: wallet + LIVE switch + feed dot */
  .top { flex-wrap: wrap; row-gap: 10px; column-gap: 8px; position: relative; }
  .top-r { display: contents; }
  .clock { order: 1; margin-left: auto; white-space: nowrap; }
  .lv-ctl { order: 2; position: static; }
  .net { order: 3; margin-left: auto; }
  .lv-pop { right: 0; left: 0; margin: 0 auto; width: auto; }
  .lv-wallet, .lv-switch { height: 32px; padding: 0 8px; }
  .livep .ph { flex-wrap: wrap; row-gap: 4px; }
  .livep #lv-stat { width: 100%; }
  .lv-cfg .code .ln { grid-template-columns: 18px 94px 66px 1fr; }
  .lv-in { width: 60px; }
  .lv-side.two { grid-template-columns: 1fr; }
  .lv-col + .lv-col { border-left: 0; border-top: 1px solid var(--line); }
  .lv-ticket { bottom: 10px; }
  .tk-main { font-size: 15px; }
  .lv-card { padding: 16px; }
}

/* ── first visit: what Cook is, what it's doing now, and a tour ─────────────────────────── */
.how[hidden] { display: none; }
.how { height: 34px; padding: 0 12px; background: transparent; color: var(--muted); border: 1px solid var(--line2); border-radius: var(--r); font: inherit; cursor: pointer; white-space: nowrap; }
.how:hover { color: var(--text); border-color: #3A3F4A; }
.intro { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line2); border-left: 3px solid var(--fire); border-radius: var(--r); }
.intro[hidden] { display: none; }
.intro p { margin: 0; flex: 1; font-family: var(--sans); font-size: 14.5px; line-height: 1.45; color: #C9C4BB; }
.intro p b { color: var(--text); font-weight: 600; }
.intro p b.lv { color: var(--live); letter-spacing: .04em; font-family: var(--mono); font-size: 13px; }
.intro-how { flex: none; height: 34px; padding: 0 14px; background: var(--fire); color: #1A1208; border: 0; border-radius: var(--r); font: 600 12.5px var(--mono); cursor: pointer; }
.intro-how:hover { filter: brightness(1.08); }
.intro-x { flex: none; width: 30px; height: 30px; background: transparent; color: var(--dim); border: 0; font-size: 18px; cursor: pointer; border-radius: var(--r); }
.intro-x:hover { color: var(--text); background: var(--panel2); }
body.replay .intro, body.replay .how { display: none; }

.now { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 42px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 14px; line-height: 1.35; color: #D6D1C8; }
.now i { flex: none; width: 8px; height: 8px; background: var(--dim); box-shadow: 0 0 0 3px rgba(132,139,151,.12); }
.now[data-k="read"] i, .now[data-k="check"] i { background: #79C0F2; box-shadow: 0 0 0 3px rgba(121,192,242,.14); animation: now-blink 1.6s steps(2) infinite; }
.now[data-k="86"] i, .now[data-k="loss"] i { background: var(--red); box-shadow: 0 0 0 3px rgba(255,107,107,.15); }
.now[data-k="fire"] i, .now[data-k="cook"] i { background: var(--fire); box-shadow: 0 0 0 3px rgba(255,143,58,.18); }
.now[data-k="win"] i { background: var(--green); box-shadow: 0 0 0 3px rgba(91,224,138,.16); }
.now b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.now b.ok { color: var(--green); } .now b.no { color: var(--red); }
@keyframes now-blink { 50% { opacity: .35; } }

.tour { position: fixed; inset: 0; z-index: 60; cursor: pointer; }
.tour[hidden] { display: none; }
.tour-hole { position: fixed; border-radius: 8px; box-shadow: 0 0 0 200vmax rgba(4,5,8,.74); outline: 2px solid var(--fire); outline-offset: 0; pointer-events: none; transition: left .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1); }
.tour-card { position: fixed; width: min(380px, calc(100vw - 20px)); background: var(--paper); color: var(--ink); border-radius: 1px; box-shadow: 0 22px 60px rgba(0,0,0,.6); cursor: default; transition: left .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1); }
.tour-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(90deg, var(--paper) 50%, transparent 0) 0 0 / 8px 4px repeat-x; }
.tour-card .tk-strip { text-transform: lowercase; }
.tour-x { margin-left: 4px; width: 22px; height: 22px; background: transparent; color: #FFF6E6; border: 0; font-size: 16px; line-height: 1; cursor: pointer; }
.tour-main { padding: 14px 16px 6px; }
.tour-main b { display: block; font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: -.005em; }
.tour-main p { margin: 8px 0 0; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: #4A443D; }
.tour-main p b { display: inline; font-size: inherit; color: var(--ink); }
.tour-actions { display: flex; align-items: center; gap: 8px; padding: 10px 16px 16px; }
.tour-btn { height: 34px; padding: 0 16px; background: var(--ink); color: var(--paper); border: 0; border-radius: 2px; font: 600 12.5px var(--mono); cursor: pointer; }
.tour-btn.ghost { background: transparent; color: #6B645B; padding: 0 6px; }
.tour-btn[hidden] { display: none; }

@media (max-width: 640px) {
  /* phones: what Cook is, then the kitchen itself, then the brigade */
  .page > * { order: 4; }
  .page > .top { order: 0; } .page > .intro { order: 1; } .page > .scene-panel { order: 2; } .page > .agents { order: 3; }
  .intro { position: relative; flex-wrap: wrap; row-gap: 10px; padding: 12px 40px 12px 12px; }
  .intro p { flex-basis: 100%; font-size: 14px; }
  .intro-x { position: absolute; top: 6px; right: 6px; }
  .how { order: 2; height: 32px; padding: 0 9px; }
  .now { font-size: 13px; padding: 9px 12px; }
}

/* coin bar: the project's contract address above everything (copy), then MC + Buy/Chart once it trades */
.coinbar { display: flex; align-items: center; justify-content: center; gap: 14px; height: 36px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.coinbar[hidden] { display: none; }
.cb-sym { font-weight: 600; color: var(--fire); letter-spacing: .02em; }
.cb-ca { display: inline-flex; align-items: center; gap: 10px; height: 26px; padding: 0 4px 0 10px; border-radius: var(--r); border: 1px solid var(--line2); color: var(--text); background: transparent; cursor: pointer; font: inherit; }
.cb-ca:hover { border-color: #3A3F4A; background: var(--panel2); }
.cb-ca .short { display: none; }
.cb-copy { height: 19px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 4px; background: var(--line2); color: #C9C4BB; font-size: 11px; }
.cb-live { display: inline-flex; align-items: center; gap: 12px; }
.cb-stat { color: #C9C4BB; } .cb-stat.up { color: var(--green); } .cb-stat.dn { color: var(--red); } .cb-stat.muted { color: var(--dim); }
.cb-link { color: var(--text); padding: 3px 9px; border-radius: var(--r); background: var(--line2); text-decoration: none; }
.cb-link:hover { background: #343944; }
body.replay .coinbar { display: none; }
@media (max-width: 640px) {
  .coinbar { justify-content: flex-start; gap: 10px; padding: 0 10px; }
  .cb-ca .full { display: none; }
  .cb-ca .short { display: inline; }
}
