/* Night Shift Security: pixel-office UI.
   Same pixel language as Infinite Monkey Industries (stepped corners, chunky borders),
   re-lit for an after-hours office: navy glass, sodium-amber accents. */
:root {
  --bg: #080c18;
  --bg2: #0d1326;
  --panel: #131a33;
  --panel2: #1a2347;
  --panel3: #222d58;
  --edge: #2e3b70;
  --edge-hi: #5266b4;
  --ink: #eef2ff;
  --mute: #93a1d0;
  --dim: #5d6a99;
  --amber: #ffbf3f;
  --amber-d: #a8720f;
  --red: #ff5a4a;
  --red-d: #8e2118;
  --green: #4be0a0;
  --green-d: #137a52;
  --cyan: #5cd8ee;
  --pink: #ff7ac8;
  --paper: #f1e8cf;
  --font-ui: 'Pixelify Sans', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-num: 'VT323', 'Cascadia Mono', Consolas, monospace;
  --font-title: 'Press Start 2P', 'Pixelify Sans', Impact, sans-serif;
  --notch: 3px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.25 var(--font-ui);
  overflow: hidden;
  -webkit-font-smoothing: none;
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'clig' 0, 'calt' 0;
  user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
canvas { image-rendering: pixelated; }
[hidden] { display: none !important; }

/* stepped-corner pixel panel */
.px {
  background: var(--panel);
  box-shadow:
    0 calc(var(--notch) * -1) 0 0 var(--edge),
    0 var(--notch) 0 0 var(--edge),
    calc(var(--notch) * -1) 0 0 0 var(--edge),
    var(--notch) 0 0 0 var(--edge),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.05),
    inset 0 -2px 0 0 rgba(0, 0, 0, 0.35);
}

/* ---- layout ---------------------------------------------------------------------- */
#app {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: 'top top' 'stage side' 'desk side';
  gap: 10px;
  padding: 10px 12px 12px;
  background:
    radial-gradient(1200px 600px at 30% -10%, #1a2552 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 100%, #14183a 0%, transparent 55%),
    var(--bg);
}
#topbar { grid-area: top; display: flex; align-items: stretch; gap: 10px; min-width: 0; }
#stage { grid-area: stage; position: relative; min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
#side { grid-area: side; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
#desk { grid-area: desk; display: flex; align-items: center; gap: 14px; padding: 8px 12px; min-width: 0; }

/* ---- top bar ---------------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 8px; padding-right: 4px; flex: 0 0 auto; }
.brand canvas { width: 52px; height: 52px; margin: -6px 0; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text span { font-size: 10px; letter-spacing: 0.14em; color: var(--mute); }
.brand-text b { font-family: var(--font-title); font-size: 11px; color: var(--amber); font-weight: 400; text-shadow: 2px 2px 0 #5a3a05; letter-spacing: 0.04em; }

.clock { padding: 6px 12px; min-width: 200px; flex: 1 1 200px; max-width: 290px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.clock-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.clock-main b { white-space: nowrap; font-family: var(--font-title); font-weight: 400; font-size: 15px; color: #eaf6ff; letter-spacing: 0.02em; text-shadow: 0 0 10px rgba(120, 200, 255, 0.55); }
.clock-main span { white-space: nowrap; font-size: 11px; color: var(--mute); letter-spacing: 0.12em; }
.shiftbar { position: relative; height: 8px; background: #0a0e1d; box-shadow: inset 0 0 0 2px #2a356a; }
.shiftbar i { position: absolute; inset: 2px auto 2px 2px; width: 0%; background: linear-gradient(90deg, #6a58ff, #ffbf3f); }
.shiftbar u { position: absolute; top: -3px; width: 4px; height: 14px; background: var(--red); }
.shiftbar .m-boss { left: 43.75%; }
.shiftbar .m-sun { right: 0; background: var(--amber); }

.stat { padding: 6px 12px; min-width: 96px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.stat.wide { min-width: 150px; flex: 1 1 150px; max-width: 230px; }
.stat label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: 0.14em; color: var(--mute); }
.stat b { font-family: var(--font-num); font-weight: 400; font-size: 26px; line-height: 1; color: var(--ink); }
#cashBox { flex-direction: row; align-items: center; gap: 8px; }
#cashBox .ico { width: 24px; height: 24px; }
#cash { color: #ffe36a; text-shadow: 0 0 10px rgba(255, 210, 60, 0.35); }
#cashDelta { font-family: var(--font-num); font-size: 18px; color: var(--green); min-width: 32px; }
#cashBox.pop { animation: pop 0.25s ease-out; }
@keyframes pop { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
.meter { position: relative; height: 16px; background: #0a0e1d; box-shadow: inset 0 0 0 2px #2a356a; overflow: hidden; }
.meter i { position: absolute; top: 2px; bottom: 2px; left: 2px; width: 0; background: linear-gradient(180deg, #7affc0, #1fb97a); transition: width 0.2s linear; }
.meter.low i { background: linear-gradient(180deg, #ff9a8a, #e03a30); }
.meter em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-family: var(--font-num); font-size: 15px; color: #fff; text-shadow: 1px 1px 0 #000; }
.meter.ev i:first-of-type { background: linear-gradient(180deg, #fff6d8, #cdbf8c); }
.meter.ev #evSeized { left: auto; right: 2px; background: linear-gradient(180deg, #ff7a6a, #c92a20); }
.claim { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.claim b { font-family: var(--font-ui); font-size: 12px; color: var(--amber); }
#evBox.open { animation: glow 1.1s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 -3px 0 0 var(--amber), 0 3px 0 0 var(--amber), -3px 0 0 0 var(--amber), 3px 0 0 0 var(--amber), 0 0 22px rgba(255, 190, 60, 0.55); } }
#waveBox b { font-size: 24px; }
#waveBox.heavy b { color: var(--red); }
.ctrls { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; background: var(--panel2); border: 0; box-shadow: 0 -3px 0 0 var(--edge), 0 3px 0 0 var(--edge), -3px 0 0 0 var(--edge), 3px 0 0 0 var(--edge); font-family: var(--font-num); font-size: 22px; line-height: 1; color: var(--ink); }
.icon-btn:hover { background: var(--panel3); color: var(--amber); }
.icon-btn:active { transform: translateY(2px); }
.icon-btn.on { color: var(--amber); }

/* ---- stage ------------------------------------------------------------------------- */
#canvasWrap { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
#game { display: block; image-rendering: auto; background: #070a14; box-shadow: 0 0 0 3px #1a2246, 0 0 40px rgba(0, 0, 0, 0.7); cursor: crosshair; }
#banner { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); text-align: center; pointer-events: none; z-index: 5; }
#banner .b-title { font-family: var(--font-title); font-size: 22px; color: #fff; text-shadow: 3px 3px 0 #000, 0 0 24px rgba(255, 190, 60, 0.7); white-space: nowrap; }
#banner .b-sub { margin-top: 8px; font-size: 16px; color: var(--amber); text-shadow: 2px 2px 0 #000; letter-spacing: 0.1em; }
#banner .b-icons { margin-top: 8px; display: flex; gap: 10px; justify-content: center; }
#banner .b-icons span { display: flex; align-items: center; gap: 4px; background: rgba(8, 12, 24, 0.82); padding: 3px 8px; font-family: var(--font-num); font-size: 20px; }
#banner .b-icons canvas { width: 28px; height: 28px; }
#banner.heavy .b-title { color: var(--red); text-shadow: 3px 3px 0 #000, 0 0 28px rgba(255, 60, 40, 0.8); }
#banner.show { animation: banner 3.2s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -14px) scale(0.9); } 8% { opacity: 1; transform: translate(-50%, 0) scale(1.04); } 14% { transform: translate(-50%, 0) scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 8px); } }
#toasts { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 6; }
.toast { background: rgba(8, 12, 24, 0.92); padding: 6px 12px; font-size: 14px; color: var(--ink); box-shadow: 0 -2px 0 var(--edge), 0 2px 0 var(--edge), -2px 0 0 var(--edge), 2px 0 0 var(--edge); animation: toast 2.6s ease-out forwards; white-space: nowrap; }
.toast.bad { color: #ffb0a8; box-shadow: 0 -2px 0 var(--red), 0 2px 0 var(--red), -2px 0 0 var(--red), 2px 0 0 var(--red); }
.toast.good { color: #b6ffd8; box-shadow: 0 -2px 0 var(--green), 0 2px 0 var(--green), -2px 0 0 var(--green), 2px 0 0 var(--green); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
#hint { position: absolute; left: 14px; right: 14px; bottom: 6px; z-index: 4; display: flex; justify-content: center; pointer-events: none; }
#hint .hint-in { max-width: 760px; background: rgba(10, 14, 30, 0.9); padding: 8px 14px; font-size: 15px; line-height: 1.3; box-shadow: 0 -3px 0 0 var(--amber-d), 0 3px 0 0 var(--amber-d), -3px 0 0 0 var(--amber-d), 3px 0 0 0 var(--amber-d); }
#hint b { color: var(--amber); font-weight: 600; }
kbd { display: inline-block; min-width: 18px; padding: 0 5px; text-align: center; font: 600 12px/18px var(--font-ui); color: #10131f; background: var(--paper); box-shadow: 0 2px 0 #8a7e5c; margin: 0 1px; }

/* ---- side panel -------------------------------------------------------------------- */
#card { padding: 12px; min-height: 148px; max-height: 38%; overflow: auto; flex: 0 0 auto; }
#card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--amber); display: flex; align-items: center; gap: 8px; }
#card h3 small { font-weight: 400; font-size: 12px; color: var(--mute); }
#card p { margin: 4px 0; color: var(--mute); font-size: 13px; }
.card-row { display: flex; gap: 10px; align-items: flex-start; }
.card-row .portrait { width: 56px; height: 56px; flex: 0 0 56px; background: var(--panel2); display: grid; place-items: center; overflow: hidden; }
.card-row .portrait canvas { width: 64px; height: 64px; margin-top: 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 13px; margin: 6px 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; text-align: right; }
.bar { height: 10px; background: #0a0e1d; box-shadow: inset 0 0 0 2px #2a356a; position: relative; margin: 4px 0; }
.bar i { position: absolute; top: 2px; bottom: 2px; left: 2px; background: var(--green); }
.bar.warn i { background: var(--amber); }
.bar.bad i { background: var(--red); }
.row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; background: var(--panel2); font-size: 12px; }
.chip canvas { width: 14px; height: 14px; }

#tabs { display: flex; gap: 4px; flex: 0 0 auto; }
.tab { flex: 1; background: var(--panel); border: 0; padding: 8px 4px 7px; font-weight: 600; font-size: 14px; color: var(--mute); box-shadow: 0 -3px 0 0 var(--edge), -3px 0 0 0 var(--edge), 3px 0 0 0 var(--edge); position: relative; }
.tab:hover { color: var(--ink); background: var(--panel2); }
.tab.on { background: var(--panel2); color: var(--amber); }
.tab .dot { position: absolute; top: 3px; right: 5px; width: 7px; height: 7px; background: var(--green); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
#panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px; scrollbar-width: thin; scrollbar-color: var(--edge-hi) var(--panel); }
#panel h4 { margin: 12px 0 6px; font-size: 12px; letter-spacing: 0.16em; color: var(--mute); font-weight: 600; }
#panel h4:first-child { margin-top: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; background: var(--panel3); border: 0; color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 -3px 0 0 var(--edge-hi), 0 3px 0 0 #121a3a, -3px 0 0 0 var(--edge-hi), 3px 0 0 0 var(--edge-hi); }
.btn:hover:not(:disabled) { background: #2e3c78; color: #fff; }
.btn:active:not(:disabled) { transform: translateY(2px); }
.btn:disabled, .btn.off { opacity: 0.45; cursor: not-allowed; box-shadow: 0 -3px 0 0 var(--edge), 0 3px 0 0 #121a3a, -3px 0 0 0 var(--edge), 3px 0 0 0 var(--edge); }
.btn.go .price { color: #2a1a05; text-shadow: none; }
.btn.go.cant .price { color: #7a3b25; }
.btn.go { background: var(--amber); color: #20140a; box-shadow: 0 -3px 0 0 #ffe08a, 0 3px 0 0 var(--amber-d), -3px 0 0 0 #ffe08a, 3px 0 0 0 var(--amber-d); }
.btn.go:hover:not(:disabled) { background: #ffd070; color: #20140a; }
.btn.danger { background: #5a1a18; box-shadow: 0 -3px 0 0 var(--red), 0 3px 0 0 var(--red-d), -3px 0 0 0 var(--red), 3px 0 0 0 var(--red); }
.btn.sm { padding: 3px 8px; font-size: 12px; }
.price { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-num); font-size: 18px; color: #ffe36a; line-height: 1; }
.price canvas { width: 14px; height: 14px; }
.btn:disabled .price, .btn.off .price { color: var(--mute); }
.btn.cant .price { color: #ff9a8a; }

.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 8px; margin-bottom: 8px; background: var(--panel2); }
.item.sel { outline: 2px solid var(--amber); outline-offset: 0; }
.item .pic { width: 64px; height: 56px; background: #0f1530; display: grid; place-items: center; overflow: hidden; }
.item .pic canvas { image-rendering: pixelated; }
.item .pic canvas.mk { width: 64px; height: 64px; margin-top: 6px; }
.item .pic canvas.hd { width: 44px; height: 44px; }
.item .t { font-weight: 700; font-size: 14px; color: var(--ink); }
.item .d { font-size: 12px; color: var(--mute); margin-top: 2px; line-height: 1.25; }
.item .meta { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.item.locked { opacity: 0.55; }
.item .lock { font-size: 12px; color: #ffb0a8; }
.pips { display: inline-flex; gap: 3px; margin-left: 6px; }
.pips u { width: 8px; height: 8px; background: #0a0e1d; box-shadow: inset 0 0 0 1px var(--edge-hi); }
.pips u.on { background: var(--amber); box-shadow: none; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.roster li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; background: var(--panel2); cursor: pointer; font-size: 13px; }
.roster li:hover { background: var(--panel3); }
.roster li.sel { outline: 2px solid var(--amber); }
.roster .dotc { width: 10px; height: 10px; flex: 0 0 10px; }
.roster .st { margin-left: auto; color: var(--mute); font-size: 12px; text-align: right; }
.roster .st.bad { color: #ff9a8a; }
.note { font-size: 12px; color: var(--mute); line-height: 1.35; margin: 6px 0; }
.note b { color: var(--ink); }
.pill { display: inline-block; padding: 1px 6px; font-size: 11px; letter-spacing: 0.06em; background: var(--panel3); color: var(--mute); }
.pill.on { background: var(--green-d); color: #c8ffe6; }
.pill.warn { background: #6a4a10; color: #ffe2a0; }

/* ---- security desk -------------------------------------------------------------------- */
.desk-title { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.desk-title b { font-family: var(--font-title); font-weight: 400; font-size: 10px; color: var(--amber); letter-spacing: 0.04em; }
.desk-title span { font-size: 11px; color: var(--mute); max-width: 110px; line-height: 1.2; }
.switches { display: flex; gap: 8px; flex: 0 0 auto; }
#log li { max-width: 100%; }
.sw { position: relative; width: 112px; height: 58px; padding: 4px 6px 4px 8px; background: #0f1530; border: 0; text-align: left; box-shadow: 0 -3px 0 0 var(--edge), 0 3px 0 0 #090c1c, -3px 0 0 0 var(--edge), 3px 0 0 0 var(--edge); overflow: hidden; }
.sw:hover:not(:disabled) { background: #19224a; }
.sw b { display: block; font-size: 13px; line-height: 1.05; }
.sw span { display: block; font-size: 10px; color: var(--mute); margin-top: 2px; line-height: 1.15; }
.sw kbd { position: absolute; top: 4px; right: 4px; font-size: 10px; min-width: 14px; line-height: 14px; }
.sw .lever { position: absolute; right: 8px; bottom: 6px; width: 12px; height: 20px; background: #070a14; box-shadow: inset 0 0 0 2px #2a356a; }
.sw .lever::after { content: ''; position: absolute; left: 2px; right: 2px; top: 2px; height: 8px; background: var(--dim); transition: top 0.12s; }
.sw.active .lever::after { top: 10px; background: var(--green); }
.sw.fire b { color: #8fd0ff; }
.sw.jazz b { color: #ff9ad4; }
.sw.hvac b { color: #b8f0c8; }
.sw.active { background: #14305a; animation: glow2 0.6s ease-in-out infinite; }
@keyframes glow2 { 50% { filter: brightness(1.35); } }
.sw .cool { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: rgba(5, 8, 20, 0.72); transform-origin: bottom; }
.sw .cool-t { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-num); font-size: 24px; color: var(--mute); }
.sw .run { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--green); }
.whistle-wrap { flex: 0 0 auto; }
.whistle { position: relative; display: grid; grid-template-columns: 22px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 7px 12px; background: #3a1210; border: 0; box-shadow: 0 -3px 0 0 var(--red-d), 0 3px 0 0 #1c0807, -3px 0 0 0 var(--red-d), 3px 0 0 0 var(--red-d); }
.whistle canvas { grid-row: 1 / 3; width: 22px; height: 22px; }
.whistle b { font-size: 14px; color: #ffb0a8; letter-spacing: 0.04em; }
.whistle span { font-size: 11px; color: var(--mute); grid-column: 2; }
.whistle:disabled { opacity: 0.55; cursor: not-allowed; }
.whistle:not(:disabled) { background: #6a1814; animation: warn 0.8s steps(2) infinite; }
.whistle:not(:disabled) b { color: #fff; }
@keyframes warn { 50% { filter: brightness(1.45); } }
#log { list-style: none; margin: 0 0 0 auto; padding: 0; flex: 1 1 260px; min-width: 160px; max-height: 70px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; font-family: var(--font-num); font-size: 17px; line-height: 1.05; }
#log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mute); animation: logIn 0.3s ease-out; }
#log li.warn { color: #ffd68a; }
#log li.bad { color: #ff9a8a; }
#log li.good { color: #8affc4; }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } }

/* ---- screens (title, tower, results, how-to, pause) ----------------------------------- */
#screens { position: absolute; inset: 0; pointer-events: none; }
.screen { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: auto; background: rgba(5, 8, 18, 0.8); padding: 20px; overflow: auto; }
.screen.title { background: radial-gradient(900px 500px at 50% 35%, rgba(18, 30, 70, 0.55), rgba(4, 6, 14, 0.9)); }
.sheet { position: relative; width: min(980px, 100%); padding: 22px 26px; max-height: 100%; overflow: auto; }
.sheet.narrow { width: min(560px, 100%); }
.sheet h2 { margin: 0 0 4px; font-family: var(--font-title); font-weight: 400; font-size: 16px; color: var(--amber); text-shadow: 2px 2px 0 #4a2f05; line-height: 1.4; }
.sheet .sub { color: var(--mute); margin: 0 0 14px; font-size: 14px; }
.title-wrap { text-align: center; width: min(820px, 100%); }
.title-pre { font-size: 14px; letter-spacing: 0.34em; color: var(--mute); }
.title-main { font-family: var(--font-title); font-size: clamp(22px, 4.2vw, 44px); line-height: 1.25; color: var(--amber); margin: 10px 0 6px; text-shadow: 4px 4px 0 #5a3a05, 0 0 40px rgba(255, 170, 40, 0.5); }
.title-tag { color: #cfd8ff; font-size: 16px; margin-bottom: 18px; }
.lineup { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 4px 0 8px; min-height: 100px; }
.lineup canvas { width: 80px; height: 80px; }
.menu { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.menu .btn { min-width: 270px; padding: 11px 16px; font-size: 17px; }
.menu-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.title-foot { margin-top: 16px; font-size: 12px; color: var(--dim); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 12px 0; }
.card { background: var(--panel2); padding: 12px; font-size: 13px; color: var(--mute); line-height: 1.35; }
.card h5 { margin: 0 0 6px; font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.card h5 canvas { width: 28px; height: 28px; }
.card b { color: var(--ink); }
.sheet .close { position: absolute; right: 12px; top: 12px; }
.tower { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tower h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.14em; color: var(--mute); }
.floors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.floor { padding: 7px 0; text-align: center; background: var(--panel2); border: 0; font-family: var(--font-num); font-size: 20px; color: var(--mute); line-height: 1; box-shadow: 0 -2px 0 var(--edge), 0 2px 0 var(--edge), -2px 0 0 var(--edge), 2px 0 0 var(--edge); }
.floor:disabled { opacity: 0.35; cursor: not-allowed; }
.floor.cur { color: #20140a; background: var(--amber); }
.floor.zoneB { background: #1d2c52; }
.floor.zoneC { background: #34204f; }
.zone-info { margin: 10px 0 14px; font-size: 13px; color: var(--mute); line-height: 1.4; }
.zone-info b { color: var(--ink); }
.perk { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 10px; margin-bottom: 6px; background: var(--panel2); }
.perk .t { font-weight: 700; }
.perk .d { grid-column: 1; font-size: 12px; color: var(--mute); }
.perk .btn { grid-row: 1 / 3; grid-column: 2; }
.bank { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--panel2); font-family: var(--font-num); font-size: 24px; color: #ffe36a; }
.bank canvas { width: 24px; height: 24px; }
.result-title { font-family: var(--font-title); font-size: clamp(18px, 3vw, 30px); text-align: center; margin: 4px 0 6px; line-height: 1.3; }
.result-title.win { color: var(--green); text-shadow: 3px 3px 0 #06402a, 0 0 30px rgba(75, 224, 160, 0.5); }
.result-title.bad { color: var(--red); text-shadow: 3px 3px 0 #4a0f0a, 0 0 30px rgba(255, 90, 74, 0.5); }
.result-title.ok { color: var(--amber); text-shadow: 3px 3px 0 #4a2f05; }
.result-note { text-align: center; color: var(--mute); max-width: 560px; margin: 0 auto 14px; }
.ledger { width: min(470px, 100%); margin: 8px auto; font-size: 14px; }
.ledger div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 2px dotted var(--edge); }
.ledger div b { font-family: var(--font-num); font-size: 20px; font-weight: 400; color: var(--ink); }
.ledger .total { border-bottom: 0; border-top: 3px solid var(--edge-hi); margin-top: 4px; padding-top: 8px; font-size: 16px; }
.ledger .total b { color: #ffe36a; font-size: 30px; }
.climb { text-align: center; margin: 10px 0; font-size: 15px; }
.climb b { font-family: var(--font-num); font-size: 26px; color: var(--amber); font-weight: 400; }
.stamp { display: inline-block; transform: rotate(-4deg); border: 4px solid currentColor; padding: 2px 12px; font-family: var(--font-title); font-size: 14px; margin: 4px 0 8px; }
.modal-btns { display: flex; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.howto-steps { counter-reset: s; }
.howto-steps .card::before { counter-increment: s; content: counter(s); float: right; font-family: var(--font-title); font-size: 14px; color: var(--amber); }

/* menu / results sheets sit on a proper panel */
.sheet.px { background: var(--panel); box-shadow: 0 -4px 0 0 var(--edge), 0 4px 0 0 var(--edge), -4px 0 0 0 var(--edge), 4px 0 0 0 var(--edge), 0 30px 60px rgba(0, 0, 0, 0.55); }
