/* The game pages (/watch, /round) on the pixelkit HUD: the village's dark chunky panels with the bank's brass as the one accent
   and alarm red only when something happens. hud.css carries the vocabulary; this file sets the page. */
@import url('/js/pixelkit/hud.css');

:root {
  --accent: #c9a24a; --accent-dim: #6a5323; --num: #e2c070; --gold: #e2c070;
  --bad: #d7261e; --down: #e86a5c; --alarm: #d7261e;
}
html, body { overflow: auto; height: auto; min-height: 100%; }
body { background: var(--bg); }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.logo { font-size: 34px; text-shadow: 1px 1px 0 #6a5323, 2px 2px 0 #6a5323, 3px 3px 0 #2a1f0a, 0 0 18px #c9a24a33; letter-spacing: 1px; color: var(--accent); }
.logo-mark { width: 28px; height: 28px; border-radius: 6px; border: 1px solid #5c4518; image-rendering: auto; display: block; }
.brand { text-decoration: none; }
[hidden] { display: none !important; }
.logo { text-transform: uppercase; }
@media (width <= 1700px) { .chip.explain { display: none; } }
.lv-pt:empty { display: none; }

/* ---------- the stage: the world with the HUD on it, the panel beside it ---------- */
.stage { position: relative; height: 100svh; min-height: 540px; }
.hero { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
#game { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; touch-action: none; display: block; }
#ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
#ui > * { pointer-events: auto; }
.stage .panel { position: absolute; z-index: 6; }
.tr .chip.ca { font: 600 12.5px var(--mono); gap: 6px; }
.tr .chip.ca.did .ca-c { color: var(--up); }
.hint { position: absolute; left: 78px; bottom: 14px; font: 500 11.5px var(--sans); color: var(--muted2); background: #1b1815d9; border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; pointer-events: none !important; }
.tr .chip.ca .ca-c { color: var(--muted2); font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 6px; }
.tr .chip.ca .ca-k { color: var(--accent); font-family: var(--pix); font-size: 14px; }
.chip.duty.off { color: #ff9d8a; border-color: #6a2e24; font: 600 12.5px var(--pix); letter-spacing: 1px; }
.chip.duty.off .live-dot { background: var(--alarm); animation: none; }
.chip.duty.on { color: var(--up); border-color: #2f5a3c; font: 600 12.5px var(--pix); letter-spacing: 1px; }
.watch-page .stage { position: fixed; inset: 0; }
.watch-page { overflow: hidden; }

/* panel text */
.lv-hero h2 em { color: var(--accent); text-shadow: 2px 2px #3d2e0e; }
.lv-nowallet.off { color: #ff9d8a; }
.lv-nowallet.on { color: var(--up); }
.lv-stats { grid-template-columns: repeat(3, 1fr); }
.lv-d.say { border-left-color: var(--accent); }
.lv-d.guard { border-left-color: #5a524a; }
.lv-d.alarm { border-left-color: var(--alarm); }
.lv-d.open { border-left-color: var(--up); }
.lv-d.sys { border-left-color: #38322d; background: transparent; }
.lv-d.sys .lv-who { font: 600 11px var(--mono); color: var(--muted2); }
.lv-d.pending q::after { content: '▮'; color: var(--muted2); animation: blink 1s steps(1) infinite; }
.lv-d .tag.house { color: #b8b2a4; border-color: #4a4038; }
.lv-d .tag.alarm, .tag.alarm { color: #ff9d8a; border-color: #6a2e24; }
.lv-d .tag.open, .tag.open { color: var(--up); border-color: #2f5a3c; }
.lv-d .tag.say { color: var(--accent); border-color: #6a5323; }
.lv-d .tag.guard { color: var(--muted2); border-color: var(--line); }
.lv-d .tag.sys { color: var(--muted2); border-color: var(--line); }
.lv-d .tag.shift { color: var(--teal); border-color: #2c6370; }
.lv-pt { width: 28px; height: 28px; background: var(--panel2); }
.lv-pt canvas { image-rendering: pixelated; width: 28px; height: 26px; max-width: none; max-height: none; }
.lv-feed li.lv-d { cursor: default; }
.agent-card { margin: 0 0 10px; border-left-color: var(--accent); position: relative; }
.agent-card .x { position: absolute; right: 6px; top: 4px; background: 0 0; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
.agent-card q b { color: var(--num); font-family: var(--pix); font-weight: 400; font-size: 13px; }
.kv { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font: 500 12.5px var(--mono); color: var(--text); }
.kv dd b { font: 400 14px var(--pix); color: var(--num); }
.lb li b.hn { color: var(--text); }
.lb li .mono { color: var(--muted2); font-size: 12px; }
.lb li .amt { color: var(--num); font-family: var(--pix); font-size: 14px; }
.lb li a { text-decoration: none; }
.lb li a:hover { color: var(--accent); }
.rules-list li { font-size: 13px; color: #cfc8b4; }
.rules-list li b { color: var(--num); font-family: var(--mono); font-weight: 600; }

/* forms in the village style */
.form label { display: block; font: 600 11px var(--sans); color: var(--muted); letter-spacing: .3px; text-transform: uppercase; margin: 0 0 10px; }
.form input { display: block; width: 100%; margin-top: 5px; box-sizing: border-box; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: 500 14px var(--mono); outline: none; }
.form input:focus { border-color: var(--accent); }
.form input::placeholder { color: #5a524a; }
.form .err { color: #ff9d8a; font: 500 12px var(--sans); min-height: 16px; margin: 0 0 8px; }
.prompt { margin: 10px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 500 12px/1.5 var(--mono); color: #cfc8b4; white-space: pre-wrap; word-break: break-word; min-height: 90px; }
.prompt.dim { color: var(--muted); }
.copyrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.copyrow .fine { font: 500 11.5px var(--mono); color: var(--muted2); word-break: break-all; }

/* ---------- the round page ---------- */
.round-page .wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.round-page .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.round-page .pane { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.round-page h1 { font: 700 24px var(--pix); color: var(--accent); margin: 0 0 4px; }
.round-page .meta { font: 500 12px var(--mono); color: var(--muted2); margin: 0 0 12px; }

/* ---------- phone: the world on top, the HUD stacked under it as tabs ---------- */
@media (width <= 760px) {
  .stage { height: auto; min-height: 0; }
  .hero { position: relative; height: 55svh; min-height: 360px; }
  .stage .panel { position: static; height: auto; max-height: none; width: auto; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; z-index: 1; }
  .stage .panel .pbody { max-height: none; overflow: visible; }
  .watch-page .stage { position: static; }
  .watch-page { overflow: auto; }
  .watch-page .stage .panel .pbody { max-height: 60svh; overflow: auto; }
  .logo { font-size: 24px; }
  /* the logotype sits on its own plate so it reads over the vault door; the chips get their own row under it */
  .tl .brand { background: #1b1815eb; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px 3px 4px; box-shadow: 0 2px #00000059; flex-wrap: nowrap; }
  .tl .brand .logo-mark { width: 22px; height: 22px; border-radius: 5px; }
  .tr { top: 74px; right: 8px; left: 8px; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  .hint { display: none; }
  .tl { right: 60px; }
  .leftcol { display: none; }
  .tr .chip.livepill { display: none; }
}
