/* COOKERS — kitchen at night. Dark roast counter, warm order paper on top, ketchup + mustard, hard black shadows. No glow. */
:root {
  --paper: #f3ead3;
  --paper-2: #efe4c9;
  --paper-3: #ded0ae;
  --card: #f6eedb;
  --counter: #231c16;
  --counter-2: #15110d;
  --cream-dim: #b9ab92;
  --sh: #000;
  --ink: #15110d;
  --ink-2: #3b3329;
  --muted: #74685a;
  --ketchup: #e5321f;
  --ketchup-dk: #b3200f;
  --mustard: #ffc21a;
  --pickle: #2f9a4a;
  --pickle-lt: #c9efc9;
  --bad: #d4321f;
  --ok: #1f8a3b;
  --line: #15110d;
  --shadow: 4px 4px 0 var(--sh);
  --shadow-sm: 2px 2px 0 var(--sh);
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;
  --font-pixel: "Press Start 2P", monospace;
  --font-ui: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  /* old names the coin birth-record page (coin.css) still uses */
  --accent: var(--ketchup); --accent-2: var(--ketchup-dk); --bg-2: var(--paper-3);
  --panel: #fff; --panel-2: var(--paper-2); --text: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  background-color: var(--counter);
  background-image: radial-gradient(rgba(255, 236, 200, .05) 1px, transparent 1.4px);
  background-size: 7px 7px;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }

#app { display: flex; flex-direction: column; height: 100vh; }

/* ---------- caution tape marquee ---------- */
.tape {
  flex: 0 0 auto; overflow: hidden; white-space: nowrap; border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--counter-2) 0 22px, #1d1712 22px 44px); color: var(--mustard); border-bottom-color: #000;
  font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 30px; height: 33px;
}
.tape-track { display: inline-flex; gap: 0; padding-left: 100%; animation: tape 60s linear infinite; will-change: transform; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-track span { padding: 0 18px; }
.tape-track span::after { content: "✦"; margin-left: 36px; color: var(--ketchup); }
.tape-track .up { color: #7fdc8f; }
.tape-track .down { color: #ff7a66; }
@keyframes tape { to { transform: translateX(-100%); } }

/* ---------- header ---------- */
.topbar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 18px;
  background: var(--counter-2); border-bottom: 3px solid #000; color: var(--paper);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.hat {
  width: 40px; height: 40px; flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='%2315110d' d='M4 2h3v1h2V2h3v1h1v1h1v4h-1v1h-1v4H4V9H3V8H2V4h1V3h1z'/%3E%3Cpath fill='%23fbf6e8' d='M4 3h3v1h2V3h3v1h1v4h-1v1h-1v3H5V9H4V8H3V4h1z'/%3E%3Cpath fill='%23e5321f' d='M5 10h6v2H5z'/%3E%3C/svg%3E") center/contain no-repeat;
  image-rendering: pixelated; animation: hat 3s ease-in-out infinite;
}
@keyframes hat { 50% { transform: translateY(-3px) rotate(-4deg); } }
.brand-name {
  font-family: var(--font-display); font-size: 40px; line-height: .9; letter-spacing: .02em; color: var(--ketchup);
  text-shadow: 3px 3px 0 var(--sh); -webkit-text-stroke: 1.5px var(--ink);
}
.brand-sub { font-family: var(--font-mono); font-size: 10px; line-height: 1.25; text-transform: uppercase; color: var(--cream-dim); font-weight: 700; }

.ca-box {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto;
  background: var(--card); color: var(--ink); border: 3px solid #000; box-shadow: var(--shadow); padding: 4px 4px 4px 0; position: relative;
}
.ca-box[hidden] { display: none; }
.ca-label { font-family: var(--font-display); background: var(--ink); color: var(--mustard); padding: 6px 9px; margin: -4px 0 -4px 0; align-self: stretch; display: flex; align-items: center; font-size: 15px; }
.ca-box code { font-family: var(--font-mono); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 360px; }
.ca-copy { border: 2px solid var(--ink); background: var(--mustard); font-family: var(--font-display); font-size: 13px; padding: 3px 10px; cursor: pointer; }
.ca-copy:active { transform: translate(2px, 2px); }
.ca-note { position: absolute; bottom: -17px; left: 50px; font-family: var(--font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; color: #ff7a66; white-space: nowrap; }

.actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.btn-buy {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 9px 18px;
  background: var(--ketchup); color: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: 20px; letter-spacing: .04em; transition: transform .08s, box-shadow .08s;
}
.btn-buy b { color: var(--mustard); font-weight: 400; }
.btn-buy:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sh); }
.btn-buy:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sh); }
.btn-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--paper-2); color: var(--ink); border: 3px solid #000; box-shadow: var(--shadow-sm); }
.btn-x:hover { background: var(--mustard); }
.btn-buy[hidden], .btn-x[hidden] { display: none; }

.register {
  display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline;
  background: #000; color: #9dffb0; padding: 5px 12px; border: 3px solid #3a3129;
  font-family: var(--font-mono);
}
.reg-label { grid-column: 1 / -1; font-size: 9px; color: #8a8070; letter-spacing: .15em; }
.register .eq { font-size: 15px; font-weight: 700; }
.register .pnl { font-size: 11px; }
.register .pnl.up { color: #9dffb0; }
.register .pnl.down { color: #ff8f7f; }
.status { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; font-weight: 700; color: var(--cream-dim); }
.status .label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--mustard); border: 1.5px solid var(--ink); vertical-align: -1px; }
.status.online .label::before { background: #36d35c; animation: blink 1.4s steps(2) infinite; }
.status.offline .label::before { background: var(--ketchup); }
.status .dot { display: none; }
.status .clock { font-family: var(--font-display); font-size: 22px; letter-spacing: .04em; color: var(--paper); }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- hero (P12): the pitch in one line ---------- */
.hero { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; background: var(--counter-2); border-bottom: 3px solid #000; }
.hero-line { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: .02em; color: var(--paper); text-transform: uppercase; }
.hero-line b { font-weight: 400; color: var(--mustard); }
.hero-tk { color: var(--ketchup); -webkit-text-stroke: 1px #000; text-shadow: 2px 2px 0 #000; }
.hero-stats { display: flex; gap: 10px; flex: 0 0 auto; font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hero-stats span { background: var(--paper-2); color: var(--ink); border: 2px solid #000; padding: 3px 8px; box-shadow: 2px 2px 0 #000; }
.hero-stats .live-dot { background: var(--ketchup); color: #fff; animation: blink 1.4s steps(2) infinite; }

/* ---------- FRESH OUT strip (P13): the real CA for an hour after every launch ---------- */
.fresh { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 18px; background: var(--mustard); color: var(--ink); border-bottom: 3px solid #000; font-weight: 700; }
.fresh[hidden] { display: none; }
.fresh.waiting { background: repeating-linear-gradient(-45deg, var(--mustard) 0 18px, #ffd655 18px 36px); }
.fr-tag { font-family: var(--font-display); font-weight: 400; font-size: 20px; background: var(--ketchup); color: #fff; border: 2px solid #000; padding: 1px 10px; letter-spacing: .05em; }
.fr-name { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.fr-name i { font-style: normal; font-family: var(--font-mono); font-size: 15px; }
.fresh code { font-family: var(--font-mono); font-size: 14px; background: #fff; border: 2px solid #000; padding: 4px 8px; }
.fr-note, .fr-wait { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }
.fr-wait b { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--ketchup-dk); }
.btn-buy.small { font-size: 16px; padding: 4px 12px; box-shadow: 3px 3px 0 #000; }

/* SIT DOWN: one sign-in for everything */
.btn-sit { border: 3px solid #000; background: var(--paper-2); color: var(--ink); font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; padding: 8px 14px; box-shadow: 3px 3px 0 #000; cursor: pointer; }
.btn-sit.seated { background: var(--pickle-lt); }
.btn-sit.vip { background: var(--mustard); }
.btn-sit:active { transform: translate(2px, 2px); box-shadow: none; }

/* the ticket while a coin is firing + the holders-first panel */
.cooking.firing .ck-head { background: var(--ink); animation: fire-head .6s steps(2) infinite; }
@keyframes fire-head { 50% { background: var(--ketchup); } }
#ck-eat:empty { display: none; }
.gate { margin: 10px 12px 0; }
.gate-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.gate-row b { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .03em; color: var(--ketchup-dk); }
.gate-bar { height: 14px; border: 2px solid #000; background: var(--paper-3); margin-top: 4px; overflow: hidden; }
.gate-bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--ketchup) 0 10px, #ff5a45 10px 20px); transition: width .6s; }
.eat { margin: 10px 12px 0; padding: 8px 10px; border: 2px solid #000; background: var(--paper-2); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eat.yes { background: var(--mustard); }
.eat b { font-family: var(--font-display); font-weight: 400; font-size: 16px; letter-spacing: .03em; }
.eat code { font-family: var(--font-mono); font-size: 11px; background: #fff; border: 2px solid #000; padding: 3px 6px; word-break: break-all; }

/* THE CALL: Max (orange) vs Sage (blue) */
.call-card { display: flex; flex-direction: column; gap: 8px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; border: 3px solid #000; font-family: var(--font-display); font-size: 22px; letter-spacing: .04em; }
.vs span { display: flex; align-items: center; padding: 4px 10px; color: #15110d; }
.vs-max { background: #f59e0b; } .vs-sage { background: #60a5fa; justify-content: flex-end; }
.vs b { font-weight: 400; background: #0b0806; color: var(--paper); padding: 4px 14px; font-size: 26px; }
.vs-streak { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ketchup-dk); text-transform: uppercase; }
.call-head { display: flex; align-items: center; justify-content: space-between; }
.call-sym { font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.call-stamp { font-family: var(--font-display); font-size: 20px; letter-spacing: .05em; padding: 0 10px; border: 3px solid currentColor; transform: rotate(-5deg); }
.call-stamp.buy { color: var(--ok); } .call-stamp.cooked { color: var(--ketchup); } .call-stamp.won { color: #b8860b; }
.call-side { font-size: 13px; font-weight: 700; padding: 4px 8px; border-left: 5px solid; background: var(--paper-2); }
.call-side.max { border-color: #f59e0b; } .call-side.sage { border-color: #60a5fa; }
.call-nums, .call-result { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.call-chart { width: 100%; height: 76px; border: 2px solid #000; image-rendering: auto; }
.call-past { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.call-past li { padding: 3px 0; border-top: 2px dashed var(--paper-3); }
.call-past .max { color: #b45309; font-weight: 800; } .call-past .sage { color: #1d4ed8; font-weight: 800; }
.hero-stats .hero-score { background: linear-gradient(90deg, #f59e0b 50%, #60a5fa 50%); }

/* ---------- layout ---------- */
.layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; padding: 16px; }

/* the pass: the live kitchen window */
.pass { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.pass-sign { display: flex; align-items: center; gap: 10px; }
.pass-sign > span:first-child {
  font-family: var(--font-display); font-size: 22px; letter-spacing: .05em; background: var(--paper-2); color: var(--ink);
  padding: 2px 12px; transform: rotate(-1.5deg); box-shadow: 3px 3px 0 var(--ketchup); white-space: nowrap;
}
.pass-sub { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--cream-dim); }
.sound-btn { margin-left: auto; border: 2px solid #000; background: var(--paper-2); color: var(--ink); font-family: var(--font-display); font-size: 14px; letter-spacing: .05em; padding: 3px 10px; cursor: pointer; box-shadow: 2px 2px 0 #000; }
.sound-btn.on { background: var(--mustard); }
.sound-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.bell {
  width: 26px; height: 18px; display: inline-block; position: relative;
  background: radial-gradient(circle at 50% 100%, var(--mustard) 0 11px, transparent 12px); border-bottom: 3px solid var(--ink);
}
.bell::after { content: ""; position: absolute; left: 11px; top: -1px; width: 4px; height: 4px; background: var(--ink); border-radius: 50%; }
.bell.ring { animation: ring .12s 6 alternate; }
@keyframes ring { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }

.pass-window {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  border: 4px solid #000; box-shadow: 8px 8px 0 var(--sh), 0 0 0 2px #3a3129;
  background:
    radial-gradient(600px 260px at 22% -40px, rgba(255, 170, 60, .28), transparent 70%),
    radial-gradient(600px 260px at 50% -40px, rgba(255, 170, 60, .28), transparent 70%),
    radial-gradient(600px 260px at 78% -40px, rgba(255, 170, 60, .28), transparent 70%),
    linear-gradient(180deg, #2a1d14, #120d09);
}
.pass-window::before { /* stainless steel shelf */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; z-index: 3;
  background: linear-gradient(180deg, #e9e6df, #9c978d 60%, #6d685f); border-top: 3px solid var(--ink);
}
.lamps { position: absolute; inset: 0 0 auto 0; height: 22px; display: flex; justify-content: space-around; z-index: 3; pointer-events: none; }
.lamps i { width: 90px; height: 16px; background: linear-gradient(180deg, #4a4540, #2a2622); border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 40px 40px; position: relative; }
.lamps i::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -4px; height: 4px; background: #ffb347; box-shadow: 0 0 18px 6px rgba(255, 160, 60, .55); border-radius: 4px; animation: lamp 2.6s ease-in-out infinite; }
.lamps i:nth-child(2)::after { animation-delay: -.9s; }
.lamps i:nth-child(3)::after { animation-delay: -1.7s; }
@keyframes lamp { 50% { opacity: .7; } }
.stage-inner { position: absolute; inset: 22px 0 16px 0; display: flex; align-items: center; justify-content: center; padding: 8px; }
#scene { max-width: 100%; max-height: 100%; width: auto; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; cursor: default; filter: saturate(1.08) contrast(1.04); }
#scene.hover { cursor: pointer; }
/* 3D kitchen: the canvas fills the window, the old CSS lamps and steam are part of the scene now */
.is-3d .stage-inner { inset: 0; padding: 0; }
.is-3d #scene { width: 100%; height: 100%; max-width: none; max-height: none; image-rendering: auto; filter: none; cursor: grab; }
.is-3d #scene:active { cursor: grabbing; }
.is-3d #scene { touch-action: pan-y; }   /* phones: a finger drag scrolls the page, the camera directs itself */
.is-3d #scene.hover { cursor: pointer; }
.is-3d .lamps, .is-3d .steam { display: none; }
.is-3d .pass-window::before { height: 0; border: 0; }
.steam { position: absolute; inset: auto 0 16px 0; height: 140px; pointer-events: none; z-index: 2; }
.steam i { position: absolute; bottom: 0; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .07); filter: blur(10px); animation: steam 7s linear infinite; }
.steam i:nth-child(1) { left: 8%; } .steam i:nth-child(2) { left: 28%; animation-delay: -2s; } .steam i:nth-child(3) { left: 51%; animation-delay: -4.5s; }
.steam i:nth-child(4) { left: 72%; animation-delay: -1s; } .steam i:nth-child(5) { left: 90%; animation-delay: -5.5s; }
@keyframes steam { from { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-140px) scale(1.6); opacity: 0; } }

.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.bubble {
  position: absolute; transform: translate(-50%, -100%); max-width: 240px; padding: 7px 10px 8px;
  background: var(--paper-2); color: var(--ink); font-size: 12.5px; line-height: 1.3; font-weight: 600;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--sh); animation: pop .2s cubic-bezier(.3, 1.6, .5, 1); white-space: normal; word-wrap: break-word;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); border: 9px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.bubble::before { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--paper-2); border-bottom: 0; z-index: 1; }
.bubble .who { display: inline-block; font-family: var(--font-display); font-size: 13px; letter-spacing: .04em; color: #fff; background: var(--bc); padding: 0 6px; margin: -2px 0 4px -2px; border: 2px solid var(--ink); text-transform: uppercase; }
.bubble.excited { background: #fff3b8; } .bubble.excited::before { border-top-color: #fff3b8; }
.bubble.annoyed { background: #ffd9d2; } .bubble.annoyed::before { border-top-color: #ffd9d2; }
.bubble.laughing { background: var(--pickle-lt); } .bubble.laughing::before { border-top-color: var(--pickle-lt); }
@keyframes pop { from { transform: translate(-50%, -100%) scale(.5) rotate(-6deg); opacity: 0; } }

.roster { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.roster .chip {
  display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; cursor: pointer;
  background: var(--paper-2); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); font-size: 12px; transition: transform .1s;
}
.roster .chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--sh); }
.roster .chip img { width: 28px; height: 28px; image-rendering: pixelated; background: var(--c); border: 2px solid var(--ink); }
.roster .chip b { font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.roster .chip .act { color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.roster .chip.talking { background: var(--mustard); }
.roster .chip.talking .act { color: var(--ink); }

/* ---------- side column ---------- */
.side { min-height: 0; display: flex; flex-direction: column; gap: 16px; }

/* NOW COOKING: the order ticket */
.cooking {
  flex: 0 0 auto; position: relative; background: var(--card); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--sh); padding: 0 0 12px;
  --tear: radial-gradient(circle at 6px 0, transparent 5px, #fff 5.5px);
}
.cooking::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: -11px; height: 8px; background: var(--tear) repeat-x; background-size: 12px 8px; }
.ck-head { display: flex; justify-content: space-between; align-items: center; background: var(--ketchup); color: #fff; border-bottom: 3px solid var(--ink); padding: 5px 12px; }
.ck-head b { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: .05em; }
.ck-head span { font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.ck-body { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 12px 4px; align-items: center; }
.ck-logo { width: 92px; height: 92px; border: 3px solid var(--ink); background: var(--paper-3); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.ck-logo img { width: 100%; height: 100%; object-fit: cover; }
.ck-logo .ph { font-family: var(--font-display); font-size: 36px; color: var(--muted); }
.ck-logo.cooking-anim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); animation: shimmer 1.6s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ck-name { font-family: var(--font-display); font-size: 28px; line-height: 1; text-transform: uppercase; word-break: break-word; }
.ck-ticker { display: inline-block; margin-top: 5px; font-family: var(--font-mono); font-weight: 700; background: var(--mustard); border: 2px solid var(--ink); padding: 0 6px; font-size: 13px; }
.ck-tag { font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.burners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 6px 12px 0; }
.burner { text-align: center; font-family: var(--font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.burner .ring { height: 30px; border: 3px solid var(--ink); border-radius: 50%; background: radial-gradient(circle, #3a342d 35%, #1b1714 36%); position: relative; margin-bottom: 4px; overflow: visible; }
.burner.on .ring::before, .burner.now .ring::before {
  content: ""; position: absolute; left: 50%; bottom: 40%; width: 18px; height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 80%, #fff6a8 0 20%, #ffb321 40%, #e5321f 70%, transparent 72%);
  border-radius: 50% 50% 45% 45%; animation: flame .35s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(255, 140, 30, .9));
}
.burner.now .ring::before { animation-duration: .18s; width: 24px; height: 34px; }
.burner.on, .burner.now { color: var(--ink); }
@keyframes flame { from { transform: translateX(-50%) scaleY(.85) skewX(-4deg); } to { transform: translateX(-50%) scaleY(1.12) skewX(4deg); } }
.ck-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 10px 12px 0; border-top: 2px dashed var(--ink); margin: 10px 12px 0; padding-left: 0; padding-right: 0; }
.ck-count .lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.ck-count .num { font-family: var(--font-display); font-size: 38px; line-height: 1; letter-spacing: .02em; }
.ck-count .num.hot { color: var(--ketchup); animation: blink 1s steps(2) infinite; }
.ck-meta { text-align: right; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.ck-meta b { font-family: var(--font-display); font-weight: 400; font-size: 20px; display: block; }
.ck-vote { margin: 10px 12px 0; padding: 8px 10px; background: var(--mustard); border: 2px solid var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; }

/* the rotating ticket */
.rotator { flex: 0 0 auto; position: relative; display: flex; flex-direction: column; }
.rotator .slide { display: none; }
.rotator .slide.active { display: block; animation: deal .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes deal { from { transform: translateX(24px) rotate(1.5deg); opacity: 0; } }
.rot-dots { display: flex; gap: 6px; margin-top: 18px; }
.rot-dots button { flex: 1; border: 2px solid #000; background: var(--paper-3); color: var(--ink-2); font-family: var(--font-display); font-size: 12px; letter-spacing: .05em; padding: 3px 0; cursor: pointer; box-shadow: 2px 2px 0 #000; }
.rot-dots button.on { background: var(--mustard); color: var(--ink); }
.ck-head.h-call { background: linear-gradient(90deg, #f59e0b 50%, #60a5fa 50%); color: #15110d; }
.ck-head.h-pass { background: var(--mustard); color: var(--ink); }
.ck-head.h-reg { background: #0b0806; color: #9dffb0; }
.slide-body { padding: 12px; min-height: 196px; }
.slide-foot { margin: 0 12px; padding-top: 8px; border-top: 2px dashed var(--ink); font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.slide-foot[data-tab] { cursor: pointer; } .slide-foot[data-tab]:hover { color: var(--ketchup-dk); }
.pass-who { font-family: var(--font-display); font-size: 18px; letter-spacing: .03em; color: var(--ketchup-dk); text-transform: uppercase; }
.pass-order { font-family: var(--font-display); font-size: 30px; line-height: 1.05; margin: 6px 0 12px; text-transform: uppercase; }
.pass-verdict { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; animation: slam-in .35s cubic-bezier(.2, 1.8, .4, 1); }
.pass-verdict b { font-family: var(--font-display); font-weight: 400; font-size: 34px; padding: 0 12px; border: 4px solid currentColor; transform: rotate(-6deg); }
.pass-verdict.cook { color: var(--ok); } .pass-verdict.nope { color: var(--ketchup); }
.pass-verdict span { color: var(--ink-2); }
.pass-wait { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reg-grid div { background: #0b0806; color: #9dffb0; border: 2px solid #000; padding: 6px 8px; }
.reg-grid span { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: #8a8070; }
.reg-grid b { font-family: var(--font-mono); font-size: 18px; }
.reg-grid b.down { color: #ff8f7f; } .reg-grid b.up { color: #9dffb0; }
.reg-last { margin-top: 10px; font-size: 13px; padding: 6px 8px; border-left: 5px solid var(--muted); background: var(--paper-2); }
.reg-last.buy { border-color: var(--pickle); } .reg-last.sell { border-color: var(--ketchup); }
.reg-last div { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.slide .call-card { gap: 6px; }
.slide .call-past { display: none; }

/* tabs panel */
.panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--paper-2); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--sh); }
.tabs { display: flex; flex: 0 0 auto; border-bottom: 3px solid var(--ink); }
.tab { flex: 1; padding: 9px 4px 7px; background: var(--paper-3); border: 0; border-right: 2px solid var(--ink); cursor: pointer; font-family: var(--font-display); font-size: 15px; letter-spacing: .05em; color: var(--ink-2); }
.tab:last-child { border-right: 0; }
.tab:hover { background: #f6e8c2; }
.tab.active { background: var(--ink); color: var(--mustard); }
.tab-page { display: none; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.tab-page.active { display: flex; }

/* tickets (chat) */
.chat-log { flex: 1 1 auto; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 9px; scroll-behavior: smooth; }
.msg { display: flex; gap: 9px; align-items: flex-start; animation: slip .25s ease-out; }
@keyframes slip { from { opacity: 0; transform: translateY(6px) rotate(-1deg); } }
.msg img { width: 34px; height: 34px; image-rendering: pixelated; background: var(--c, var(--paper-3)); border: 2px solid var(--ink); flex: 0 0 auto; }
.msg .body { min-width: 0; flex: 1; }
.msg .name { font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.msg .name .role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; color: var(--muted); margin-left: 6px; text-transform: none; }
.msg .text { background: var(--card); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--c, var(--ink)); padding: 6px 9px; margin-top: 2px; font-size: 13px; }
.msg.holder .text { background: var(--mustard); box-shadow: var(--shadow-sm); font-weight: 600; }
.msg.holder .name { color: var(--ketchup-dk); }
.msg.system { justify-content: center; }
.msg.system .text { background: var(--paper-3); border: 2px dashed var(--ink-2); box-shadow: none; font-family: var(--font-mono); font-size: 11.5px; text-align: center; color: var(--ink-2); }
.msg.system .text a { color: var(--ketchup-dk); font-weight: 700; }
.scene-title { align-self: center; font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--paper-2); padding: 1px 10px; margin-top: 4px; }

.stamp { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; font-weight: 700; animation: slam-in .35s cubic-bezier(.2, 1.8, .4, 1); }
.stamp b { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .05em; padding: 0 8px; border: 3px solid currentColor; transform: rotate(-6deg); }
.stamp.cook { color: var(--ok); } .stamp.nope { color: var(--ketchup); }
.stamp span { color: var(--ink-2); }
@keyframes slam-in { from { transform: scale(2.2) rotate(-12deg); opacity: 0; } }
.tip-form { display: flex; gap: 8px; padding: 10px 12px 4px; border-top: 3px solid var(--ink); flex: 0 0 auto; }
.tip-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--ink); background: var(--card); outline: none; font-weight: 600; }
.tip-form input:focus { box-shadow: 3px 3px 0 var(--mustard); }
.tip-form button { padding: 8px 16px; border: 2px solid var(--ink); background: var(--ketchup); color: #fff; font-family: var(--font-display); font-size: 16px; letter-spacing: .05em; cursor: pointer; box-shadow: var(--shadow-sm); }
.tip-form button:active { transform: translate(2px, 2px); box-shadow: none; }
.tip-form button:disabled { opacity: .5; cursor: not-allowed; }
.tip-help { padding: 0 12px 10px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.tip-help b { color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ketchup-dk); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* shared bits */
#coin-lab, #treasury, #menu { flex: 1 1 auto; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--sh); padding: 12px 14px; }
.card h4 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.card h5 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.card p { margin: 0; font-size: 13px; }
.card ul { margin: 0; padding-left: 18px; font-size: 13px; }
.card li { margin: 3px 0; }
.empty { color: var(--muted); font-style: italic; font-size: 13px; }
.dim { color: var(--muted); font-size: 12px; }
.up, .pnl.up { color: var(--ok); }
.down, .pnl.down { color: var(--bad); }
.btn { padding: 7px 12px; border: 2px solid var(--ink); background: var(--paper-2); cursor: pointer; font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; box-shadow: var(--shadow-sm); text-decoration: none; display: inline-block; }
.btn:hover { background: var(--mustard); }
.btn.primary { background: var(--ketchup); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.disclaimer { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* recipe (coin lab) */
.stages { display: flex; gap: 4px; }
.stages .st { flex: 1; height: 8px; border: 2px solid var(--ink); background: var(--paper-3); }
.stages .st.done { background: var(--pickle); }
.stages .st.now { background: var(--ketchup); }
.stage-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.stage-label b { color: var(--ketchup); }
.coin-hero { display: flex; gap: 14px; align-items: center; background: var(--card); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--sh); padding: 12px; }
.coin-logo { width: 80px; height: 80px; border: 2px solid var(--ink); background: var(--paper-3); overflow: hidden; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.coin-logo img { width: 100%; height: 100%; object-fit: cover; }
.coin-logo .ph { font-family: var(--font-display); font-size: 28px; color: var(--muted); }
.coin-name { font-family: var(--font-display); font-size: 24px; line-height: 1; text-transform: uppercase; }
.coin-ticker { font-family: var(--font-mono); font-weight: 700; color: var(--ketchup-dk); }
.coin-tag { color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.card.launch { background: var(--pickle-lt); }
.card.research { background: #eef6ff; }
.trends, .seeds { margin: 0; padding-left: 16px; font-size: 13px; }
.trends a { color: var(--ketchup-dk); font-size: 11px; font-weight: 700; }
.launched { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.launched li { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.launched img { width: 40px; height: 40px; object-fit: cover; border: 2px solid var(--ink); }

/* vote */
.card.poll { background: #fff8dc; }
.vote-opt { padding: 8px 0; border-top: 2px dashed var(--ink-2); }
.vote-opt:first-of-type { border-top: 0; }
.vote-opt.mine .vote-row span { color: var(--ketchup-dk); }
.vote-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.vote-bar { height: 10px; border: 2px solid var(--ink); background: var(--card); overflow: hidden; margin: 6px 0 4px; }
.vote-bar i { display: block; height: 100%; background: var(--ketchup); }
.vote-opt.win .vote-bar i { background: var(--pickle); }
.vote-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

/* menu */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dish { position: relative; background: var(--card); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--sh); text-decoration: none; display: flex; flex-direction: column; transition: transform .1s; }
.dish:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 5px 5px 0 var(--sh); }
.dish img, .dish .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); background: var(--paper-3); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 30px; color: var(--muted); }
.dish .d-body { padding: 7px 9px 9px; }
.dish .d-name { font-family: var(--font-display); font-size: 16px; line-height: 1.05; text-transform: uppercase; }
.dish .d-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; font-weight: 700; margin-top: 4px; }
.dish .d-mc { color: var(--ketchup-dk); }
.dish .badge { position: absolute; top: 6px; left: 6px; font-family: var(--font-display); font-size: 12px; padding: 1px 6px; border: 2px solid var(--ink); background: var(--mustard); }
.dish .badge.bonded { background: var(--pickle); color: #fff; }
.dish .num { position: absolute; top: 6px; right: 6px; font-family: var(--font-display); font-size: 13px; background: var(--ink); color: var(--paper-2); padding: 1px 6px; }
.menu-head { display: flex; justify-content: space-between; align-items: flex-end; }
.menu-head h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: .03em; }
.menu-head .dim { font-family: var(--font-mono); text-align: right; }

/* register (treasury) */
.till { background: var(--ink); color: #9dffb0; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ketchup); padding: 12px 14px; font-family: var(--font-mono); }
.till .lbl { font-size: 10px; letter-spacing: .15em; color: #8a8070; }
.till .big { font-size: 30px; font-weight: 700; line-height: 1.1; }
.till .row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-top: 6px; color: #d9d2c3; }
.till .row b { color: #9dffb0; }
.till .row b.down { color: #ff8f7f; }
.till .thesis { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #4a443b; color: var(--paper-2); font-style: italic; font-family: var(--font-ui); font-size: 13px; }
.halt { margin-top: 8px; padding: 8px 10px; background: var(--ketchup); color: #fff; border: 2px solid var(--ink); font-size: 12px; font-weight: 700; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; padding: 4px 0; }
.tbl td { padding: 6px 0; border-top: 2px dashed var(--paper-3); vertical-align: top; }
.trade { padding: 8px 0; border-top: 2px dashed var(--paper-3); font-size: 13px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }
.trade:first-child { border-top: 0; }
.trade .side { font-family: var(--font-display); font-size: 12px; letter-spacing: .05em; padding: 1px 7px; border: 2px solid var(--ink); background: var(--pickle); color: #fff; }
.trade.sell .side { background: var(--ketchup); }
.trade .sym { font-weight: 800; }
.trade .amt { font-family: var(--font-mono); font-weight: 700; }
.trade .who { color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.trade .why { grid-column: 1 / -1; color: var(--ink-2); font-size: 12px; }
.trade a { color: var(--ketchup-dk); font-weight: 700; }
.addr { display: flex; gap: 8px; align-items: center; margin: 6px 0 8px; }
.addr code { flex: 1; font-family: var(--font-mono); font-size: 11px; word-break: break-all; background: var(--paper-3); padding: 8px; border: 2px solid var(--ink); }
.perks, .rules { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.wall { list-style: none; margin: 6px 0; padding: 0; }
.wall li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 2px dashed var(--paper-3); font-family: var(--font-mono); font-size: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery .art img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); }
.perk-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.perk-form input { padding: 9px 10px; border: 2px solid var(--ink); background: var(--card); font-size: 13px; outline: none; }

/* crew */
.agents-scroll { flex: 1 1 auto; overflow-y: auto; }
#leaderboard { padding: 12px 12px 0; }
.board-row { display: grid; grid-template-columns: 22px 30px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 2px dashed var(--paper-3); font-size: 13px; cursor: pointer; }
.board-row:first-of-type { border-top: 0; }
.board-row .rank { font-family: var(--font-display); font-size: 18px; }
.board-row img { width: 30px; height: 30px; image-rendering: pixelated; border: 2px solid var(--ink); }
.board-row .nm { font-family: var(--font-display); font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.agent-grid { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.agent-card { background: var(--card); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--sh); padding: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; transition: transform .1s; }
.agent-card:hover { transform: translate(-2px, -2px) rotate(.6deg); }
.agent-card img { width: 64px; height: 64px; image-rendering: pixelated; background: var(--c); border: 2px solid var(--ink); }
.agent-card .n { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; }
.agent-card .r { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.agent-card .a { font-size: 11px; }
.upgrades { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upgrades li { display: flex; gap: 10px; font-size: 13px; }
.upgrades li > div { flex: 1; }
.upgrades li:not(.have) b { color: var(--muted); }

/* profile modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(21, 17, 13, .55); }
.modal-card { position: relative; width: min(560px, 94vw); max-height: 90vh; overflow-y: auto; background: var(--paper-2); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--sh); padding: 20px; animation: rise .2s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes rise { from { transform: translateY(20px) rotate(-2deg); opacity: 0; } }
.modal-card .close { position: absolute; top: 8px; right: 10px; background: var(--ink); color: var(--paper-2); border: 0; width: 32px; height: 32px; font-size: 20px; cursor: pointer; }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head img { width: 96px; height: 96px; image-rendering: pixelated; background: var(--c); border: 3px solid var(--ink); box-shadow: var(--shadow); }
.profile-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; text-transform: uppercase; }
.profile-head .role { font-family: var(--font-mono); font-size: 12px; font-weight: 700; margin-top: 4px; }
.profile-head .quote { margin-top: 8px; font-style: italic; }
.profile-section { margin-top: 16px; }
.profile-section h4 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.traits { display: flex; flex-wrap: wrap; gap: 6px; }
.traits span { background: var(--card); border: 2px solid var(--ink); padding: 2px 10px; font-size: 12px; font-weight: 600; }
.skill { display: grid; grid-template-columns: 120px 1fr 36px; align-items: center; gap: 10px; font-size: 12px; margin: 5px 0; font-weight: 600; }
.skill .bar { height: 12px; background: var(--card); border: 2px solid var(--ink); overflow: hidden; }
.skill .bar i { display: block; height: 100%; background: var(--c); width: 0; transition: width .6s ease-out; }
.skill .v { text-align: right; font-family: var(--font-mono); }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--card); border: 2px solid var(--ink); padding: 6px 12px; font-family: var(--font-mono); font-size: 11px; }
.stat b { display: block; font-family: var(--font-ui); font-size: 15px; }

/* ---------- receipt printer: one ticket per trade ---------- */
.printer { position: fixed; right: 470px; bottom: 0; z-index: 40; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 0; pointer-events: none; }
.slip {
  width: 250px; background: var(--card); border: 2px solid var(--ink); border-bottom: 0; padding: 10px 12px 18px; font-family: var(--font-mono); font-size: 12px;
  box-shadow: 4px 0 0 var(--sh); animation: print .7s steps(14) both; transform-origin: bottom; pointer-events: auto; position: relative; margin-bottom: 10px;
  --tear: radial-gradient(circle at 6px 8px, transparent 5px, #fff 5.5px);
}
.slip::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -8px; height: 8px; background: var(--tear) repeat-x; background-size: 12px 8px; }
.slip.out { animation: tearoff .5s ease-in forwards; }
.slip .s-head { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; }
.slip .s-head .buy { color: var(--ok); } .slip .s-head .sell { color: var(--ketchup); }
.slip .s-row { display: flex; justify-content: space-between; border-top: 1px dashed var(--ink); margin-top: 6px; padding-top: 6px; font-weight: 700; }
.slip .s-why { margin-top: 6px; font-size: 11px; color: var(--ink-2); }
@keyframes print { from { clip-path: inset(100% 0 0 0); transform: translateY(20px); } to { clip-path: inset(0 0 0 0); transform: translateY(0); } }
@keyframes tearoff { to { transform: translate(40px, -60px) rotate(18deg); opacity: 0; } }

/* ---------- ORDER UP! takeover on a launch ---------- */
.order-up { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.order-up[hidden] { display: none; }
.ou-flash { position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg, var(--mustard) 0 10deg, var(--ketchup) 10deg 20deg); animation: spin 18s linear infinite, flashin .35s ease-out; opacity: .96; }
@keyframes spin { to { transform: rotate(360deg) scale(1.6); } }
@keyframes flashin { from { opacity: 0; } }
.ou-card { position: relative; width: min(520px, 92vw); background: var(--card); border: 5px solid var(--ink); box-shadow: 14px 14px 0 var(--sh); padding: 18px 22px 22px; text-align: center; animation: slam .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes slam { from { transform: scale(2.6) rotate(-12deg); opacity: 0; } }
.ou-card .ou-title { font-family: var(--font-display); font-size: 74px; line-height: .9; color: var(--ketchup); -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 var(--sh); letter-spacing: .02em; }
.ou-card .ou-sub { font-family: var(--font-mono); font-weight: 700; font-size: 12px; text-transform: uppercase; margin: 6px 0 12px; }
.ou-card img { width: 150px; height: 150px; object-fit: cover; border: 4px solid var(--ink); box-shadow: var(--shadow); }
.ou-card .ou-name { font-family: var(--font-display); font-size: 40px; line-height: 1; margin-top: 12px; text-transform: uppercase; }
.ou-card .ou-ca { display: flex; gap: 6px; margin: 12px 0; }
.ou-card .ou-ca code { flex: 1; font-family: var(--font-mono); font-size: 11px; font-weight: 700; background: var(--paper-3); border: 2px solid var(--ink); padding: 8px; word-break: break-all; text-align: left; }
.ou-card .ou-btns { display: flex; gap: 10px; justify-content: center; }
.ou-card .ou-btns .btn-buy { font-size: 24px; }
.ou-close { position: absolute; top: -18px; right: -18px; width: 40px; height: 40px; background: var(--ink); color: #fff; border: 3px solid var(--ink); font-size: 22px; cursor: pointer; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-3); border-left: 2px solid var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-2); border: 3px solid var(--paper-3); }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .printer { right: 410px; }
  .brand-sub { display: none; }
  .ca-box code { max-width: 160px; }
}
@media (max-width: 900px) {
  /* phones: the order box is always at the bottom of the screen */
  .tip-form { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--counter-2); border-top: 3px solid #000; }
  .tip-form input { font-size: 16px; }   /* 16px: iOS does not zoom into the field */
  body { padding-bottom: 76px; }
  .tip-help { display: none; }
  #hero-level, #hero-served { display: none; }
  .hero-stats span { font-size: 11px; }
  .rot-dots button { font-size: 11px; padding: 6px 0; }
  .reg-grid b { font-size: 15px; }
  .pass-order { font-size: 24px; }
  .btn-sit { font-size: 14px; padding: 6px 10px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 10px 16px; }
  .hero-line { font-size: 24px; }
  .hero-stats { flex-wrap: wrap; }
  .fresh code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  body { overflow: auto; }
  #app { height: auto; min-height: 100vh; }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .brand-name { font-size: 32px; }
  .actions { margin-left: 0; width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .ca-box { order: 3; width: 100%; margin-bottom: 14px; }
  .ca-box code { max-width: none; flex: 1; }
  .layout { grid-template-columns: 1fr; padding: 12px 16px 24px; }
  .pass-window { aspect-ratio: 1056 / 660; flex: 0 0 auto; }
  .panel { height: 72vh; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .printer { right: 12px; }
  .slip { width: 210px; }
  .ou-card .ou-title { font-size: 52px; }
  .roster .chip .act { display: none; }
}

/* wallet picker: any Solana wallet the viewer has */
.wallet-card h3 { font-family: var(--font-display); font-size: 30px; letter-spacing: .03em; margin: 0 0 2px; color: var(--ink); }
.wallet-list { display: grid; gap: 10px; margin-top: 14px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--card); color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); cursor: pointer; text-decoration: none; font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; text-align: left; }
.wallet-opt:hover { background: var(--mustard); transform: translate(-1px, -1px); }
.wallet-opt img, .wallet-dot { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; }
.wallet-dot { background: var(--ketchup); border: 2px solid var(--ink); }
.wallet-opt i { margin-left: auto; font: 700 11px var(--font-mono); text-transform: uppercase; font-style: normal; color: var(--ketchup); }
