@font-face { font-family: 'Press Start 2P'; src: url(../fonts/press-start-2p.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url(../fonts/vt323.woff2) format('woff2'); font-display: swap; }
/* The whole site is the bar at night. A neon sign up top, the TV over the bar on the left,
   and the owner's desk on the right. Pixel type for signs and labels, plain type for reading. */
:root {
  --bg: #0d0b1a; --wood: #24150f; --wood2: #2c1a12; --panel: #17142b; --panel2: #211c3d; --ink: #f3ead8; --dim: #b3abd0;
  --neon: #ff4fa3; --amber: #ffb627; --cyan: #57e6ff; --good: #5be37c; --bad: #ff6a6a; --line: #3a3160;
  --display: "Press Start 2P", "Courier New", monospace;
  --mono: "VT323", "Courier New", monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --head: 58px; --foot: 30px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.45; min-height: 100vh; min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 45% at 30% 38%, rgba(255, 79, 163, .13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 78% 30%, rgba(87, 230, 255, .06), transparent 70%),
    linear-gradient(180deg, rgba(13, 11, 26, .55), rgba(13, 11, 26, .92) 85%),
    repeating-linear-gradient(90deg, var(--wood) 0 46px, #1d110c 46px 48px, var(--wood2) 48px 94px, #1d110c 94px 96px);
  background-attachment: fixed; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--cyan); }
p { margin: 0; }

/* ---------- site header and footer ---------- */
header.site { height: var(--head); display: flex; align-items: center; gap: 18px; padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-left));
  background: linear-gradient(180deg, #08070f, rgba(8, 7, 15, .85)); border-bottom: 2px solid #000; box-shadow: 0 2px 0 #2a1d14, 0 10px 30px rgba(0, 0, 0, .45); position: relative; z-index: 6; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
.neon { color: #ffd1e8; text-shadow: 0 0 4px #ff4fa3, 0 0 12px #ff4fa3, 0 0 26px rgba(255, 79, 163, .7); animation: hum 7s steps(1) infinite; }
.neon2 { color: #d8fbff; text-shadow: 0 0 4px #57e6ff, 0 0 12px #57e6ff, 0 0 24px rgba(87, 230, 255, .6); }
@keyframes hum { 0%, 61%, 63%, 100% { opacity: 1; } 62% { opacity: .35; } }
.place { font-family: var(--mono); font-size: 20px; color: var(--dim); letter-spacing: 1px; white-space: nowrap; }
.sitenav { margin-left: auto; display: flex; gap: 8px; }
.navbtn { background: none; border: 2px solid var(--line); color: var(--dim); font-family: var(--display); font-size: 8px; letter-spacing: 1px; padding: 8px 10px; }
.navbtn:hover, .navbtn:focus-visible { color: var(--amber); border-color: var(--amber); outline: none; }
footer.site { height: var(--foot); display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 12px; color: #8a83a8; padding: 0 16px calc(0px + var(--safe-b)); }
footer.site a { color: #8a83a8; }

/* ---------- the stage: TV on the left, desk on the right ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 540px); gap: 26px; padding: 18px 28px 10px;
  height: calc(100vh - var(--head) - var(--foot)); height: calc(100dvh - var(--head) - var(--foot)); max-width: 1680px; margin: 0 auto; }
.tvcol { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.tv { flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; }
.screen { position: relative; aspect-ratio: 16 / 10; width: min(100%, calc((100dvh - var(--head) - var(--foot) - 120px) * 1.6)); cursor: pointer;
  border-radius: 14px; padding: 14px; background: linear-gradient(160deg, #3a2418, #1c100b 60%, #2a1810);
  box-shadow: 0 0 0 3px #000, 0 0 0 5px #4a2e1f, 0 0 50px rgba(255, 79, 163, .22), 0 24px 60px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 255, 255, .06); }
.screen::before { content: ""; position: absolute; right: 22px; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: #5be37c; box-shadow: 0 0 6px #5be37c; }
canvas#scene { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 6px; background: #000;
  box-shadow: 0 0 0 2px #000, inset 0 0 40px rgba(0, 0, 0, .6); }
.screen::after { content: ""; position: absolute; inset: 14px; pointer-events: none; border-radius: 6px;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .35)); }
.screen .hint { position: absolute; right: 22px; bottom: 20px; font-family: var(--display); font-size: 7px; color: #fff3a0; text-shadow: 1px 1px 0 #000; pointer-events: none; z-index: 2; }
.desk { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 2px 6px 0 2px; }
#ui { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }

/* ---------- HUD ---------- */
.hud { display: grid; grid-template-columns: 1.15fr 1.1fr 1.25fr 1fr 0.65fr; gap: 8px; }
.hud div { background: rgba(13, 11, 26, .85); border: 2px solid var(--line); padding: 5px 9px 4px; min-width: 0; }
.hud b { display: block; font-family: var(--display); font-size: 7px; letter-spacing: 1px; color: var(--dim); margin-bottom: 3px; }
.hud span { font-family: var(--mono); font-size: 26px; line-height: 1; display: block; overflow: hidden; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud small { font-family: var(--mono); font-size: 18px; color: var(--dim); margin-left: 6px; }
.hud .cash span { color: var(--good); } .hud .debt span { color: var(--bad); } .hud .rep span { color: var(--cyan); }
.hud .trust span { color: var(--amber); font-size: 20px; line-height: 1.3; } .hud .trust .repbar i { background: var(--amber); }
.repbar { height: 3px; background: var(--line); margin-top: 3px; } .repbar i { display: block; height: 100%; background: var(--cyan); }

/* ---------- panels and type ---------- */
.panel { background: rgba(23, 20, 43, .94); border: 2px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; line-height: 1.55; }
h1 { font-size: 14px; color: var(--amber); text-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 182, 39, .4); }
h1.big { font-size: 28px; }
h2 { font-size: 10px; color: var(--neon); letter-spacing: 1px; }
h3 { font-size: 9px; color: var(--cyan); letter-spacing: 1px; }
.lead { font-size: 18px; }
.small { font-size: 15px; }
.dim { color: var(--dim); }
.tag { display: inline-block; font-family: var(--display); font-size: 7px; padding: 4px 6px; border: 2px solid currentColor; letter-spacing: 1px; }
.tag.good { color: var(--good); } .tag.bad { color: var(--bad); } .tag.cy { color: var(--cyan); } .tag.am { color: var(--amber); } .tag.pu { color: #b48cff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.needle { color: var(--amber); }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; text-align: left; width: 100%;
  background: var(--panel2); border: 2px solid var(--line); padding: 9px 11px; box-shadow: 0 3px 0 #000; }
.opt.noicon { grid-template-columns: 1fr auto; }
.opt img { width: 44px; height: 44px; image-rendering: pixelated; }
.opt .t { font-size: 17px; font-weight: 600; min-width: 0; } .opt .s { display: block; font-size: 15px; font-weight: 400; color: var(--dim); margin-top: 2px; }
.opt .r { font-family: var(--mono); font-size: 22px; color: var(--amber); white-space: nowrap; }
.opt:hover, .opt:focus-visible { border-color: var(--amber); outline: none; }
.opt:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.opt[disabled] { opacity: .45; cursor: not-allowed; }
.opt .risk { display: block; font-size: 14px; margin-top: 3px; }
.risk.lo { color: var(--good); } .risk.mid { color: var(--amber); } .risk.hi { color: var(--bad); }
.btn { font-family: var(--display); font-size: 10px; letter-spacing: 1px; padding: 15px 10px; width: 100%; line-height: 1.4;
  background: var(--amber); color: #1a1205; border: 3px solid #000; box-shadow: 0 4px 0 #000, inset 0 -3px 0 rgba(0, 0, 0, .25), 0 0 18px rgba(255, 182, 39, .25); }
.btn:hover { filter: brightness(1.08); }
.btn.alt { background: var(--panel2); color: var(--ink); border-color: var(--line); box-shadow: 0 4px 0 #000; }
.btn.pink { background: var(--neon); color: #1a0510; }
.btn.sm { font-size: 8px; padding: 11px 6px; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.back { background: none; border: 0; color: var(--dim); font-family: var(--display); font-size: 8px; padding: 8px 0; text-align: left; letter-spacing: 1px; }
.actions { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 8px; padding: 12px 0 calc(10px + var(--safe-b)); margin-top: auto;
  background: linear-gradient(to bottom, rgba(13, 11, 26, 0), rgba(13, 11, 26, .96) 26%); }
.actions.two { grid-template-columns: 1.4fr 1fr; }
table.tally { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.tally td { padding: 3px 0; border-bottom: 1px dashed var(--line); } .tally td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
table.grid td { text-align: right; padding-left: 6px; white-space: nowrap; } table.grid td:first-child { text-align: left; padding-left: 0; }
.tally tr.total td { border-bottom: 0; padding-top: 6px; font-weight: 700; }
.pos { color: var(--good); } .neg { color: var(--bad); }
label.f { display: flex; flex-direction: column; gap: 4px; font-family: var(--display); font-size: 8px; letter-spacing: 1px; color: var(--dim); }
input[type=text], input[type=number] { font: inherit; font-size: 19px; color: var(--ink); background: #000; border: 2px solid var(--line); padding: 8px; width: 100%; }
input:focus { outline: none; border-color: var(--cyan); }
.seedrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; } .seedrow .btn { width: auto; padding: 0 12px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chip { background: var(--panel2); border: 2px solid var(--line); padding: 7px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 15px; font-weight: 600; text-align: center; min-width: 0; }
.chip img { width: 28px; height: 28px; image-rendering: pixelated; }
.chip .dim { font-weight: 400; font-size: 13px; }
.chip.sel { border-color: var(--cyan); color: var(--cyan); background: #142338; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--line); }
.tab { background: var(--panel); border: 0; padding: 10px 4px; font-family: var(--display); font-size: 9px; letter-spacing: 1px; color: var(--dim); }
.tab.sel { background: var(--panel2); color: var(--amber); box-shadow: inset 0 -3px 0 var(--amber); }
.code { font-family: var(--display); font-size: 9px; color: var(--cyan); letter-spacing: 1px; white-space: nowrap; }

/* ---------- the title screen ---------- */
.hero { gap: 12px; border-color: #4a2e1f; background: linear-gradient(180deg, rgba(36, 21, 15, .96), rgba(23, 20, 43, .96)); }
.hero .logo { font-family: var(--display); font-size: 30px; line-height: 1.25; letter-spacing: 2px; margin: 4px 0 2px; }
.hero .logo span { display: block; }
.hero .sub { font-family: var(--mono); font-size: 22px; color: var(--amber); letter-spacing: 1px; }
.fineprint { font-size: 14px; color: var(--dim); }
.talk { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.talk div { border: 2px solid var(--line); padding: 6px 8px; font-size: 14px; background: var(--panel2); min-width: 0; }
.talk div b { display: block; font-family: var(--display); font-size: 7px; letter-spacing: 1px; line-height: 1.6; margin-bottom: 3px; color: var(--amber); }
.talk div.no { opacity: .55; } .talk div.no b { color: var(--dim); }
.talk div.new { border-color: var(--amber); box-shadow: 0 0 12px rgba(255, 182, 39, .35); }

/* ---------- events ---------- */
.cond { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 2px 0; }
.cond div { background: #0b0a16; border: 2px solid var(--line); padding: 6px 8px; min-width: 0; }
.cond b { display: block; font-family: var(--display); font-size: 6px; letter-spacing: 1px; color: var(--dim); line-height: 1.6; margin-bottom: 3px; }
.cond span { font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--cyan); }
.evname { font-family: var(--display); font-size: 9px; letter-spacing: 1px; color: var(--bad); }
.evname.calm { color: var(--neon); }

/* ---------- reports ---------- */
.paper { background: #efe6cf; color: #1e1a14; padding: 14px; border: 2px solid #000; box-shadow: 4px 4px 0 #000; display: flex; flex-direction: column; gap: 8px; transform: rotate(-0.4deg); }
.paper .mast { font-family: var(--display); font-size: 11px; text-align: center; border-bottom: 3px double #1e1a14; padding-bottom: 6px; letter-spacing: 2px; }
.paper .mast small { display: block; font-family: var(--body); font-size: 11px; letter-spacing: 0; margin-top: 4px; }
.paper .hed { font-family: var(--display); font-size: 12px; line-height: 1.6; text-wrap: balance; }
.paper .dek { font-size: 17px; font-style: italic; }
.paper .meta { font-size: 13px; color: #5a5040; display: flex; justify-content: space-between; }
.paper .brief { border-top: 1px solid #1e1a14; padding-top: 8px; font-size: 15px; }
.paper .brief b { font-family: var(--display); font-size: 8px; display: block; margin-bottom: 4px; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.awards div { background: var(--panel2); border: 2px solid var(--line); padding: 6px 8px; font-size: 15px; min-width: 0; }
.awards b { display: block; font-family: var(--display); font-size: 7px; color: var(--amber); margin-bottom: 4px; letter-spacing: 1px; }
.brag { background: #000; border: 2px dashed var(--line); padding: 8px; font-size: 15px; user-select: all; }
.line { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: start; }
.line b { font-family: var(--display); font-size: 7px; letter-spacing: 1px; padding-top: 4px; line-height: 1.6; }
.line.good b { color: var(--good); } .line.bad b { color: var(--bad); } .line.trade b { color: var(--amber); } .line.carry b { color: var(--cyan); } .line.progress b { color: #b48cff; } .line.milestone b { color: var(--amber); }
.line p { min-width: 0; }
.money { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 6px; }
.money div { background: var(--panel2); border: 2px solid var(--line); padding: 6px 8px; min-width: 0; }
.money b { display: block; font-family: var(--display); font-size: 6px; letter-spacing: 1px; color: var(--dim); margin-bottom: 3px; line-height: 1.5; }
.money span { font-family: var(--mono); font-size: 25px; line-height: 1; white-space: nowrap; }
.hind { border: 2px dashed var(--amber); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.hind b { font-family: var(--display); font-size: 8px; color: var(--amber); letter-spacing: 1px; }
.quote { font-style: italic; color: var(--dim); border-left: 3px solid var(--neon); padding-left: 10px; }
.carrylist, .facts { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.carrylist li, .facts li { display: grid; grid-template-columns: 14px 1fr; gap: 6px; }
.carrylist li::before { content: ">"; color: var(--cyan); font-family: var(--mono); font-size: 20px; line-height: 1; }
.facts li::before { content: "*"; color: var(--amber); font-family: var(--mono); font-size: 20px; line-height: 1; }
.offer { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; text-align: left; }
.offer img { width: 52px; height: 52px; image-rendering: pixelated; }
.offer .who { font-family: var(--display); font-size: 7px; color: var(--dim); letter-spacing: 1px; line-height: 1.6; }
.offer .ttl { font-family: var(--display); font-size: 10px; color: var(--amber); line-height: 1.5; }
.edit { background: none; border: 0; border-bottom: 1px dashed var(--line); width: 100%; display: grid; grid-template-columns: 6.5em 1fr auto; gap: 8px; text-align: left; padding: 8px 0; font-size: 16px; align-items: baseline; }
.edit .k { font-family: var(--display); font-size: 7px; color: var(--dim); letter-spacing: 1px; }
.edit .e { color: var(--cyan); font-family: var(--display); font-size: 7px; }
details { background: rgba(23, 20, 43, .94); border: 2px solid var(--line); padding: 10px 14px; }
details.plain { background: none; border: 0; padding: 0; }
summary { font-family: var(--display); font-size: 8px; color: var(--dim); letter-spacing: 1px; cursor: pointer; line-height: 1.6; }
details[open] > summary { margin-bottom: 8px; }
.runs { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.runs button, .runs div.r { display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 0; border-bottom: 1px dashed var(--line); padding: 6px 0; background: none; text-align: left; width: 100%; }
.year { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.year li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; } .year li span { color: #7a6a50; font-family: var(--display); font-size: 7px; padding-top: 4px; }
.night { display: grid; grid-template-columns: 6.8em 1fr; gap: 8px; font-size: 16px; }
.night b { font-family: var(--display); font-size: 7px; letter-spacing: 1px; padding-top: 4px; line-height: 1.6; }
.night b.cy { color: var(--cyan); } .night b.am { color: var(--amber); } .night b.bad { color: var(--bad); }
.built { display: flex; flex-direction: column; gap: 4px; }
.built details { background: var(--panel2); padding: 7px 10px; border-width: 2px; }
.built summary { font-family: var(--body); font-size: 16px; color: var(--ink); letter-spacing: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; list-style: none; }
.built summary::-webkit-details-marker { display: none; }
.built summary .v { color: var(--good); font-weight: 600; text-align: right; }
.built summary .d { color: var(--amber); font-size: 14px; }
.milestone { border: 3px solid var(--amber); background: linear-gradient(180deg, #2a2140, var(--panel)); box-shadow: 0 0 0 3px #000, 0 0 22px rgba(255, 182, 39, .35); }
.milestone h1 { font-size: 14px; }
.milestone.setback { border-color: var(--bad); box-shadow: 0 0 0 3px #000; }
.milestone .why b { font-family: var(--display); font-size: 7px; color: var(--amber); letter-spacing: 1px; margin-right: 6px; }
.ending p { font-size: 18px; }
.ending p.q { font-style: italic; color: var(--amber); }
.flash { animation: pop .9s ease-out 1; }
@keyframes pop { 0% { transform: scale(.97); filter: brightness(1.8); } 60% { transform: scale(1.01); } 100% { transform: none; filter: none; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + var(--safe-b)); z-index: 20; background: #3a0f18; color: #ffd3d3; border: 2px solid var(--bad); padding: 8px 12px; font-size: 15px; max-width: 90vw; }
.toast.ok { background: #0f2a18; color: #d3ffe0; border-color: var(--good); }
.status { font-family: var(--mono); font-size: 21px; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; }
.status dt { color: var(--dim); } .status dd { margin: 0; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .flash, .neon { animation: none; } }

/* ---------- tablets and phones: one column, page scrolls, buttons stay in reach ---------- */
@media (max-width: 899px) {
  :root { --head: 50px; }
  header.site { gap: 10px; padding: 0 12px; position: sticky; top: 0; padding-top: env(safe-area-inset-top); height: calc(var(--head) + env(safe-area-inset-top)); }
  .brand { font-size: 12px; gap: 6px; }
  .place { display: none; }
  .navbtn { font-size: 7px; padding: 7px 7px; }
  .navbtn[data-v="help"] { display: none; }
  .stage { display: flex; flex-direction: column; gap: 10px; height: auto; padding: 10px max(12px, env(safe-area-inset-left)) 0; }
  .tvcol { gap: 8px; }
  .screen { width: 100%; padding: 8px; border-radius: 10px; }
  .screen::after { inset: 8px; }
  .screen::before { right: 14px; bottom: 2px; width: 4px; height: 4px; }
  .screen .hint { right: 14px; bottom: 12px; font-size: 6px; }
  .hud { grid-template-columns: 1fr 1fr 1fr; gap: 5px; } .hud .trust span { font-size: 16px; }
  .hud div { padding: 4px 6px 3px; }
  .hud span { font-size: 21px; } .hud small { font-size: 15px; margin-left: 3px; }
  .desk { overflow: visible; padding: 0; }
  .hero .logo { font-size: 22px; }
  .cond { grid-template-columns: 1fr 1fr 1fr; } .cond span { font-size: 19px; }
  footer.site { height: auto; padding: 14px 16px calc(14px + var(--safe-b)); flex-direction: column; gap: 4px; text-align: center; }
  body[data-scr="month"] .tvcol.compact, body[data-scr="review"] .tvcol.compact, body[data-scr="nights"] .tvcol.compact, body[data-scr="staff"] .tvcol.compact,
  body[data-scr="food"] .tvcol.compact, body[data-scr="price"] .tvcol.compact, body[data-scr="rules"] .tvcol.compact, body[data-scr="shop"] .tvcol.compact,
  body[data-scr="lou"] .tvcol.compact, body[data-scr="card"] .tvcol.compact { display: grid; grid-template-columns: 44% 1fr; align-items: stretch; }
  .tvcol.compact .hud { grid-template-columns: 1fr 1fr; grid-template-rows: auto; order: 2; }
  .tvcol.compact .tv { order: 1; padding-top: 0; }
  .tvcol.compact #sidex { order: 3; grid-column: 1 / -1; }
  .tvcol.compact .screen { padding: 5px; } .tvcol.compact .screen::after { inset: 5px; } .tvcol.compact .hint { display: none; }
  .tvcol.compact .hud span { font-size: 19px; } .tvcol.compact .hud small { display: none; }
}
@media (max-width: 380px) { .brand .neon2 { display: none; } .line { grid-template-columns: 66px 1fr; } }
@media (min-width: 900px) and (max-height: 640px) { .stage { padding-top: 10px; } .hud span { font-size: 21px; } }

/* Gary's price sheet */
.spark { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-items: end; height: 92px; margin: 8px 0 2px; }
.spark div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; min-width: 0; }
.spark i { display: block; align-self: end; background: #3a3260; border: 2px solid var(--line); border-bottom: 0; }
.spark .now i { background: var(--amber); border-color: var(--amber); }
.spark span { font-family: var(--display); font-size: 6px; letter-spacing: 1px; color: var(--dim); margin-top: 4px; }
.spark b { font-family: var(--mono); font-size: 18px; font-weight: 400; }
.spark .now b { color: var(--amber); }
.up { color: var(--bad); font-family: var(--display); font-size: 8px; } .dn { color: var(--good); font-family: var(--display); font-size: 8px; }
.prod h2 .tag { vertical-align: middle; margin-left: 6px; }
.line p .pos { color: var(--good); } .line p .neg { color: var(--bad); }

/* Painted pixel art, when a scene has it. The canvas stays underneath as the fallback. */
.screen .art { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; image-rendering: pixelated; pointer-events: none; border-radius: 6px; background: #000; }
@media (max-width: 899px) { .screen .art { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); } .tvcol.compact .screen .art { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); } }
/* 1.3: the month's goal, Dale's tip, the share grid */
.goal { border-color: var(--cyan); }
.goal .ttl { font-family: var(--display); font-size: 10px; line-height: 1.6; color: var(--cyan); }
.goal summary, #more summary, #why summary { font-family: var(--display); font-size: 8px; color: var(--dim); cursor: pointer; padding: 4px 0; }
.coach { border-color: var(--good); }
.coach p { font-size: 17px; }
.grid { font-size: 22px; letter-spacing: 2px; line-height: 1.3; word-break: break-all; }
.brag { white-space: pre-line; }
