/* Swinger Pad: Sierra EGA night, 70s motel. 16 colours, hard outlines, integer pixel scale, steps() motion only.
   Silkscreen = words / verbs / buttons, VT323 = reading + dialogue, JetBrains Mono = every number. */
@font-face { font-family: "Silkscreen"; src: url("/assets/fonts/silkscreen.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("/assets/fonts/vt323.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/jbmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/jbmono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --ink: #000000; --aub: #2A1038; --plum: #55205F; --mag: #AA00AA; --pink: #FF55FF; --teal: #007A7A; --turq: #00AAAA; --aqua: #55FFFF;
  --must: #E0A800; --yel: #FFFF55; --wd: #6B3A12; --wood: #AA5500; --gray: #AAAAAA; --dgray: #555555; --white: #FFFFFF; --red: #AA0000;
  --sk: "Silkscreen", ui-monospace, monospace; --vt: "VT323", ui-monospace, monospace; --mono: "JB Mono", ui-monospace, monospace;
  --s: 2; /* pixel scale of the stage (integer only) */
  --u: calc(var(--s) * 1px);
  color-scheme: dark;
}
@media (min-width: 1000px) and (min-height: 700px) { :root { --s: 3; } }
@media (min-width: 1700px) and (min-height: 1040px) { :root { --s: 4; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--aub); color: var(--white); font: 26px/1.15 var(--vt); min-height: 100vh; cursor: url("/assets/px/cursor.png") 0 0, auto; -webkit-font-smoothing: none; font-smooth: never; overflow-x: hidden; }
a, button, [role=button], [onclick], summary, label, .ca, .catag, select, input[type=checkbox] { cursor: pointer; }
input, textarea { cursor: text; }
img { image-rendering: pixelated; }
a { color: var(--aqua); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--yel); }
h1, h2, h3 { font-family: var(--sk); font-weight: 400; letter-spacing: 0; text-transform: uppercase; color: var(--yel); margin: 0; }
h2 { font-size: 24px; line-height: 1.1; }
h3 { font-size: 16px; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.01em; }
.mute { color: var(--gray); }
.yelc { color: var(--yel); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--yel); color: var(--ink); font: 16px var(--sk); padding: 8px 12px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px dashed var(--aqua); outline-offset: 2px; }
::selection { background: var(--mag); color: var(--white); }

/* ------------------------------------------------------------------ buttons (verb-style bevel, 4 px ink border) */
.vb { --bg: var(--must); --hi: var(--yel); --sh: var(--wood); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 4px solid var(--ink);
  background: var(--bg); color: var(--fg); font: 16px/1 var(--sk); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: inset 4px 4px 0 var(--hi), inset -4px -4px 0 var(--sh), 0 4px 0 var(--ink); transition: none; position: relative; }
.vb.pri { --bg: var(--mag); --hi: var(--pink); --sh: var(--plum); --fg: var(--white); }
.vb.sec { --bg: var(--turq); --hi: var(--aqua); --sh: var(--teal); --fg: var(--ink); }
.vb:hover { color: var(--fg); --bg: var(--hi); }
.vb.pri:hover { --bg: #C21CC2; }
.vb.sec:hover { --bg: #22C4C4; }
.vb:active, .vb.busy { transform: translateY(4px); box-shadow: inset 4px 4px 0 var(--sh), inset -4px -4px 0 var(--hi), 0 0 0 var(--ink); }
.vb[disabled], .vb[aria-disabled=true] { --bg: var(--dgray); --hi: var(--gray); --sh: var(--ink); --fg: var(--ink); cursor: not-allowed; }
.vb.sq { width: 44px; padding: 0; }
.vb .ic { width: 18px; height: 18px; }

/* key-fob link buttons (X / pump.fun): the wooden fob sprite + a label, the fob swings on hover in 2 frames */
.fobbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 6px; color: var(--white); text-decoration: none; font: 14px/1 var(--sk); text-transform: uppercase; background: var(--ink); border: 4px solid var(--ink); box-shadow: inset 0 0 0 2px var(--wood); }
.fobbtn .fob-s { width: 32px; height: 40px; display: grid; place-items: center; padding-top: 10px; background: url("/assets/px/fob.png") center / 32px 40px no-repeat; image-rendering: pixelated; color: var(--yel); transform-origin: 50% 2px; }
.fobbtn .fob-s .ic { width: 14px; height: 14px; }
.fobbtn:hover { color: var(--yel); box-shadow: inset 0 0 0 2px var(--must); }
.fobbtn:hover .fob-s { animation: fobswing .5s steps(1) infinite; }
@keyframes fobswing { 0% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
/* CA key tag (mustard) */
.catag { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; border: 4px solid var(--ink); background: var(--must); color: var(--ink); font: 14px/1 var(--sk); box-shadow: inset 0 3px 0 var(--yel), inset 0 -3px 0 var(--wood), 0 4px 0 var(--ink); }
.catag .ct-l { background: var(--ink); color: var(--must); padding: 3px 5px; }
.catag .mono { font-size: 15px; }
.catag .cl { color: var(--wd); }
.catag:hover { background: var(--yel); }
.catag.copied .cl { color: var(--mag); }
.catag.soon .cl { display: none; }
.catag:active { transform: translateY(3px); box-shadow: inset 0 3px 0 var(--wood), 0 1px 0 var(--ink); }

/* ------------------------------------------------------------------ header */
.top { position: relative; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--ink); border-bottom: 4px solid var(--must); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--yel); text-decoration: none; flex: none; }
.brand img { width: 32px; height: 32px; }
.wm { font: 20px/1 var(--sk); text-transform: uppercase; white-space: nowrap; }
.brand:hover { color: var(--white); }
.links { display: flex; gap: 4px; margin-left: 8px; }
.links a { font: 14px/1 var(--sk); text-transform: uppercase; color: var(--aqua); text-decoration: none; padding: 12px 10px; }
.links a:hover { color: var(--yel); }
.links a[aria-current=page] { background: var(--yel); color: var(--ink); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu { display: none; }
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .86); }
.drawer-in { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--aub); border-left: 4px solid var(--must); padding: 72px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.drawer-in a { font: 18px/1 var(--sk); text-transform: uppercase; color: var(--aqua); text-decoration: none; padding: 14px 8px; border-bottom: 2px solid var(--plum); }
.drawer-in .dx { position: absolute; right: 16px; top: 16px; }
@media (max-width: 1180px) { .links { display: none; } .menu { display: inline-flex; } }
@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 8px 8px; padding: 8px 12px; }
  .wm { font-size: 16px; }
  .top-r { display: contents; }
  .top .wal { margin-left: auto; order: 2; }
  .top .menu { order: 3; }
  .brand { order: 1; }
  .top .fobbtn, .top .catag { order: 4; }
  .top .catag { flex: 1 1 auto; justify-content: space-between; min-width: 0; }
  .top .fobbtn { padding-right: 8px; }
  .top .fobbtn .fl { font-size: 12px; }
}
@media (max-width: 400px) { .top .fobbtn .fl { display: none; } .top .catag .cl { display: none; } .vb.wal { padding: 0 10px; font-size: 13px; } }

/* ------------------------------------------------------------------ the stage (game screen, integer scale) */
.stage-wrap { position: relative; background: var(--ink) url("/assets/px/strip-room.png") center top / calc(160 * var(--u)) calc(180 * var(--u)) repeat-x; image-rendering: pixelated; border-bottom: 4px solid var(--ink); }
.stage-wrap[data-room=parking] { background-image: url("/assets/px/strip-parking.png"); }
.stage-wrap[data-room=chapel] { background-image: url("/assets/px/strip-chapel.png"); }
.stage-wrap[data-room=widow] { background-image: url("/assets/px/strip-widow.png"); }
.stage-pan { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.stage-pan::-webkit-scrollbar { display: none; }
.stage { position: relative; width: calc(320 * var(--u)); height: calc(180 * var(--u)); margin: 0 auto; overflow: hidden; }
.scene { position: absolute; inset: 0; }
.scene[hidden] { display: none; }
.scene .bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spr, .hs { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }
.spr { display: block; pointer-events: none; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer .hs { pointer-events: auto; }
.hs { padding: 0; margin: 0; border: 0; background: transparent; color: transparent; font-size: 0; line-height: 0; cursor: pointer; overflow: visible; -webkit-tap-highlight-color: transparent; }
.hs:focus-visible { outline: var(--u) dashed var(--aqua); outline-offset: 0; }
.hs > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the door plate (the name inside the scene) */
.plate { margin: 0; letter-spacing: 0; position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 1); pointer-events: none;
  font: calc(var(--u) * 6) / 1 var(--sk); color: var(--ink); text-transform: uppercase; }
/* CA key tag on the table front */
.tagca { z-index: 2; }
.tagca > img { height: calc(var(--u) * 14); }
.tagca .mono { position: absolute; left: calc(var(--u) * 11); top: 0; bottom: 0; display: flex; align-items: center; font-size: calc(var(--u) * 5.4); color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.tagca:hover > img { filter: brightness(1.15); }
.hfob .fobg { position: absolute; left: calc(var(--u) * 4); top: calc(var(--u) * 7); width: calc(var(--u) * 8); height: calc(var(--u) * 8); display: grid; place-items: center; color: var(--aqua); font-size: 0; }
.hfob .fobg .ic { width: calc(var(--u) * 7); height: calc(var(--u) * 7); }
.hfob.f2 .fobg { color: var(--yel); }
.hfob { transform-origin: 50% 0; }
.hfob:hover, .hfob:focus-visible { animation: fobswing .5s steps(1) infinite; }
/* lava lamp: 3 frames, faster as the shake gets close */
.lava img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: lava calc(var(--lava, 2.4s) * 3) steps(1) infinite; }
.lava img:nth-child(2) { animation-delay: calc(var(--lava, 2.4s) * -1); }
.lava img:nth-child(3) { animation-delay: calc(var(--lava, 2.4s) * -2); }
@keyframes lava { 0% { opacity: 1; } 33.33% { opacity: 0; } }
.neon { animation: neon 4s steps(1) infinite; }
@keyframes neon { 0%, 61%, 66%, 70% { opacity: 1; } 60%, 64%, 68% { opacity: 0; } }
.stage.flash .neon, .stage.party .neon { animation: neonf .3s steps(1) infinite; }
@keyframes neonf { 50% { opacity: 0; } }
/* keys in the vase: rods + fobs with the coin's picture, 2-frame sway */
.fob { z-index: 1; }
.fob > img:not(.lg) { left: calc(var(--u) * -4); width: calc(var(--u) * 16); }
.fob .lg { position: absolute; left: 0; top: calc(var(--u) * 7); width: calc(var(--u) * 8); height: calc(var(--u) * 9); object-fit: cover; image-rendering: pixelated; }
.sway0 { animation: sway 1.6s steps(1) infinite; }
.sway1 { animation: sway 2.1s steps(1) infinite -.7s; }
.sway2 { animation: sway 1.9s steps(1) infinite -1.2s; }
@keyframes sway { 0% { transform: translateX(0); } 50% { transform: translateX(var(--u)); } }
.fob:hover, .fob:focus-visible, .fob.sel { animation: none; transform: translateY(calc(var(--u) * -3)); }
.fob.sel::before { content: ""; position: absolute; left: calc(var(--u) * -1); right: calc(var(--u) * -1); top: calc(var(--u) * 2); bottom: calc(var(--u) * -1); border: var(--u) solid var(--pink); }
.fob.lift { opacity: .35; }
.fob-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; padding: 0; border: 0; background: none; }
.fob-ghost img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fob-ghost .lg { left: 25%; top: 35%; width: 50%; height: 45%; right: auto; bottom: auto; }
.stage.dragging .fob:not(.lift) { animation: none; outline: var(--u) dashed var(--pink); }
.demo-t { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font: calc(var(--u) * 4) / 1 var(--sk); color: var(--ink); background: var(--yel); padding: var(--u) calc(var(--u) * 1.5); white-space: nowrap; }
/* cars */
.car .c1 { opacity: 0; }
.car.drive .c0 { animation: f2 .4s steps(1) infinite; }
.car.drive .c1 { opacity: 1; animation: f2 .4s steps(1) infinite -.2s; }
@keyframes f2 { 0% { opacity: 1; } 50% { opacity: 0; } }
.car.drive { animation: idle 1.2s steps(1) infinite; }
@keyframes idle { 50% { transform: translateY(calc(var(--u) * -1)); } }
.car .pass { position: absolute; width: calc(var(--u) * 7); height: calc(var(--u) * 6); top: calc(var(--u) * 3); right: auto; bottom: auto; object-fit: cover; }
.car .p1 { left: calc(var(--u) * 22); top: calc(var(--u) * 4); }
.car .p2 { left: calc(var(--u) * 38); top: calc(var(--u) * 4); }
.car .demo-t { top: -40%; }
/* couples on the wedding rail, widows on the bench */
.couple .cf, .widow .cf { position: absolute; width: calc(var(--u) * 16); height: calc(var(--u) * 20); }
.cf img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cf .lg { left: calc(var(--u) * 4); top: calc(var(--u) * 7); width: calc(var(--u) * 8); height: calc(var(--u) * 9); right: auto; bottom: auto; object-fit: cover; }
.couple .f1 { left: 0; top: 0; }
.couple .f2 { left: calc(var(--u) * 13); top: calc(var(--u) * 2); }
.couple .rg { position: absolute; left: calc(var(--u) * 5); top: calc(var(--u) * 22); width: calc(var(--u) * 22); height: calc(var(--u) * 18); right: auto; bottom: auto; }
.couple:hover, .couple:focus-visible { transform: translateY(calc(var(--u) * -2)); }
.widow .cf { left: calc(var(--u) * 7); top: calc(var(--u) * 8); }
.widow .vl { position: absolute; left: 0; top: 0; width: calc(var(--u) * 30); height: calc(var(--u) * 22); right: auto; bottom: auto; }
.widow .cf img:first-child { filter: none; }
/* labels mode: every hotspot shows its name */
.stage.labels .hs::after { content: attr(aria-label); position: absolute; left: 0; top: 0; z-index: 5; font: 12px/1 var(--sk); color: var(--yel); background: var(--ink); border: 2px solid var(--must); padding: 3px 5px; white-space: nowrap; text-transform: uppercase; pointer-events: none; }
.stage.labels .hs[data-name]::after { content: attr(data-name); }
/* hover tag (follows the cursor: verb icon + sentence) */
.hover-tag { position: absolute; left: 0; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; background: var(--ink); border: 3px solid var(--must); color: var(--yel); font: 14px/1 var(--sk); text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; }
.hover-tag.on { opacity: 1; }
.hover-tag img { width: 20px; height: 20px; }
/* room wipe: 6 stepped columns */
.wipe { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); pointer-events: none; z-index: 25; }
.wipe i { background: var(--ink); transform: scaleY(0); transform-origin: 50% 0; }
.stage.wiping .wipe i { animation: wipe .5s steps(4) both; }
.stage.wiping .wipe i:nth-child(2) { animation-delay: .03s; } .stage.wiping .wipe i:nth-child(3) { animation-delay: .06s; }
.stage.wiping .wipe i:nth-child(4) { animation-delay: .09s; } .stage.wiping .wipe i:nth-child(5) { animation-delay: .12s; } .stage.wiping .wipe i:nth-child(6) { animation-delay: .15s; }
@keyframes wipe { 0% { transform: scaleY(0); } 45%, 55% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
/* torn-paper room plates: in the side strips on wide screens, a row under the stage elsewhere */
.plates { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--ink); }
@media (min-width: 1240px) {
  .plates { display: block; padding: 0; background: none; }
  .plate-btn { position: absolute; bottom: 28px; }
  .plate-btn.prev { right: calc(50% + 160 * var(--u) + 16px); }
  .plate-btn.next { left: calc(50% + 160 * var(--u) + 16px); }
}
.plate-btn { min-height: 44px; padding: 10px 22px 12px; border: 0; background: #F4E6C0; color: var(--ink); font: 14px/1 var(--sk); text-transform: uppercase;
  clip-path: polygon(0 8%, 6% 0, 14% 6%, 22% 1%, 31% 7%, 40% 0, 50% 5%, 61% 0, 70% 6%, 80% 1%, 90% 7%, 100% 2%, 98% 30%, 100% 55%, 97% 80%, 100% 100%, 88% 94%, 77% 100%, 66% 93%, 54% 100%, 43% 95%, 31% 100%, 20% 94%, 9% 100%, 0 95%, 3% 70%, 0 45%, 2% 22%); }
.plate-btn:hover { background: var(--yel); }
.plate-btn:active { translate: 0 3px; }
.plate-btn.prev { rotate: -2deg; } .plate-btn.next { rotate: 2deg; }

/* ------------------------------------------------------------------ console: verbs + sentence + dialogue */
.console { width: min(100%, calc(320 * var(--u) + 8px)); margin: 0 auto; padding: 0 0 8px; }
.verbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; background: var(--ink); }
.verb { min-height: 40px; padding: 0 12px; border: 0; background: var(--plum); color: var(--aqua); font: 15px/1 var(--sk); text-transform: uppercase; box-shadow: inset 0 -3px 0 var(--aub); }
.verb:hover { color: var(--yel); }
.verb.hint { color: var(--yel); box-shadow: inset 0 -3px 0 var(--must); }
.verb.on { background: var(--yel); color: var(--ink); box-shadow: inset 0 -3px 0 var(--must); }
.verb:active { transform: translateY(2px); }
.sentence { flex: 1 1 200px; min-width: 0; padding: 0 8px; font: 15px/1.2 var(--sk); text-transform: uppercase; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* motel light switch (labels toggle) */
.lswitch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px; font: 13px/1 var(--sk); text-transform: uppercase; color: var(--gray); }
.lswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 22px; height: 32px; background: #F4E6C0; border: 3px solid var(--ink); position: relative; box-shadow: 0 3px 0 var(--dgray); }
.sw::before { content: ""; position: absolute; left: 4px; right: 4px; top: 3px; height: 11px; background: var(--dgray); border: 2px solid var(--ink); }
.lswitch input:checked + .sw::before { top: auto; bottom: 3px; background: var(--must); }
.lswitch input:checked ~ .sl { color: var(--yel); }
.lswitch input:focus-visible + .sw { outline: 3px dashed var(--aqua); outline-offset: 2px; }
.dlg { position: relative; margin-top: 8px; min-height: 132px; padding: 16px 20px 18px; background: var(--ink); border: 4px solid var(--must); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--wd); }
.dlg-txt { font: 28px/1.12 var(--vt); color: var(--white); max-width: 68ch; }
.dlg-txt::before { content: "> "; color: var(--aqua); }
.dlg-txt .tr { visibility: hidden; }
.dlg.typing .dlg-rich, .dlg.typing .dlg-act { visibility: hidden; }
.dlg:not(.typing) .dlg-txt::after { content: ""; display: inline-block; width: .5em; height: .9em; margin-left: 3px; vertical-align: -2px; background: var(--aqua); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dlg-rich { margin-top: 12px; }
.dlg-rich[hidden], .dlg-act[hidden] { display: none; }
.dlg-act { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; margin: 0; background: var(--plum); border: 2px solid var(--plum); }
.nums div { background: var(--aub); padding: 8px 10px; }
.nums dt { font: 12px/1.2 var(--sk); text-transform: uppercase; color: var(--gray); }
.nums dd { margin: 4px 0 0; font-size: 20px; color: var(--white); }
.fine { font-size: 22px; color: var(--gray); margin-top: 8px; }
.rules { margin: 0; padding-left: 28px; display: grid; gap: 6px; font-size: 24px; }
.rules li::marker { color: var(--pink); font-family: var(--sk); font-size: 14px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.posts li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; background: var(--aub); }
.posts .pl { color: var(--yel); }
.posts .mono { font-size: 14px; align-self: center; }
.kcard { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.kcard .lg { width: 64px; height: 64px; border: 4px solid var(--wood); background: var(--aub); object-fit: cover; flex: none; }
.kcard b { font: 20px/1 var(--sk); color: var(--yel); }
.kcard .nm { color: var(--white); }
.kcard .with { color: var(--pink); }
.kcard p { color: var(--gray); font-size: 22px; margin-top: 4px; }
.demo-row { display: flex; gap: 18px; }
.dk { display: grid; justify-items: center; gap: 6px; }
.dk .lg { width: 64px; height: 64px; border: 4px solid var(--wood); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "n t s" "n l l"; column-gap: 12px; align-items: center; }
.bar .bn { grid-area: n; font-size: 24px; color: var(--yel); }
.bar .bt { grid-area: t; height: 16px; background: var(--aub); border: 2px solid var(--plum); }
.bar .bt i { display: block; height: 100%; width: calc(var(--p) * 1%); }
.bar i.must { background: var(--must); } .bar i.pink { background: var(--pink); } .bar i.turq { background: var(--turq); }
.bar .bl2 { grid-area: l; font-size: 22px; color: var(--gray); }
.bar .bs { grid-area: s; font-size: 16px; }

/* chips */
.chip { display: inline-block; font: 11px/1 var(--sk); text-transform: uppercase; padding: 4px 6px 3px; border: 2px solid currentColor; vertical-align: 3px; white-space: nowrap; }
.chip.aqua { color: var(--aqua); } .chip.yel { color: var(--yel); } .chip.pink { color: var(--pink); } .chip.must { color: var(--must); } .chip.gray { color: var(--gray); }
.carow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 20px; }
.carow .lab { font: 12px/1 var(--sk); color: var(--gray); }
.cachip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 2px solid var(--must); background: var(--ink); color: var(--white); font: 14px/1 var(--mono); }
.cachip .mono { font-size: 14px; }
.cachip .cl { font: 11px/1 var(--sk); color: var(--must); text-transform: uppercase; }
.cachip:hover { border-color: var(--yel); }
.cachip.copied .cl { color: var(--pink); }
.lk { font: 13px/1 var(--sk); text-transform: uppercase; color: var(--aqua); padding: 10px 2px; }

/* ------------------------------------------------------------------ below the room: tonight / index / keys */
.below { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 24px; max-width: 1380px; margin: 0 auto; padding: 40px 24px 48px; min-height: 640px; }
.col h2 { padding-bottom: 10px; border-bottom: 4px solid var(--plum); margin-bottom: 14px; }
.shake { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; background: var(--ink); border-left: 6px solid var(--must); margin-bottom: 12px; }
.shake b { font-size: 24px; color: var(--yel); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0, 0, 0, .35); border-left: 4px solid var(--mag); }
.feed .pl { font-size: 24px; color: var(--white); }
.feed .pm { display: flex; align-items: center; gap: 10px; flex: none; }
.feed .pm .mono { font-size: 13px; }
.inv { color: var(--gray); font-size: 24px; padding: 12px; border: 2px dashed var(--plum); }
.feed li.inv { border-left: 2px dashed var(--plum); display: block; }
.idx-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ir h3 { margin-bottom: 4px; }
.ir-go { background: none; border: 0; padding: 6px 0; min-height: 36px; color: var(--yel); font: 15px/1 var(--sk); text-transform: uppercase; }
.ir-go:hover { color: var(--white); }
.ir ul { list-style: none; margin: 0; padding: 0; }
.ir li button { width: 100%; text-align: left; background: none; border: 0; padding: 5px 0 5px 14px; color: var(--aqua); font: 22px/1.05 var(--vt); position: relative; min-height: 32px; }
.ir li button::before { content: ">"; position: absolute; left: 0; color: var(--plum); }
.ir li button:hover { color: var(--yel); }
.ir li button:hover::before { color: var(--yel); }
.klist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.krow { display: grid; grid-template-columns: 1fr auto auto auto; grid-template-areas: "a c v w" "ca ca ca ca"; align-items: center; gap: 6px 14px; padding: 10px 12px; background: rgba(0, 0, 0, .35); border-left: 4px solid var(--wood); }
.ka { grid-area: a; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); min-width: 0; }
.ka .lg { width: 40px; height: 40px; border: 3px solid var(--wood); flex: none; object-fit: cover; }
.kn { display: grid; min-width: 0; }
.kn b { font: 15px/1.1 var(--sk); color: var(--yel); }
.kn .mute { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krow .chip { grid-area: c; }
.kv { font-size: 16px; text-align: right; display: grid; }
.kv i { font: 10px/1.2 var(--sk); font-style: normal; color: var(--gray); text-transform: uppercase; }
.krow .carow { grid-area: ca; }
@media (max-width: 1180px) { .below { grid-template-columns: 1fr 1fr; } .guests { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .below { grid-template-columns: 1fr; padding: 28px 16px 36px; }
  .idx-rooms { grid-template-columns: 1fr; }
  .krow { grid-template-columns: 1fr auto; grid-template-areas: "a c" "v w" "ca ca"; }
  .kv { text-align: left; }
  .dlg { padding: 12px 14px 14px; }
  .dlg-txt { font-size: 25px; }
  .verb { padding: 0 9px; font-size: 13px; }
  .sentence { flex-basis: 100%; order: 9; padding: 4px 4px 2px; font-size: 13px; }
  .console { padding: 0 0 8px; }
  .plate-btn { padding: 8px 14px 10px; font-size: 12px; }
}

/* ------------------------------------------------------------------ footer */
.foot { background: var(--ink); border-top: 4px solid var(--must); }
.foot-in { max-width: 1380px; margin: 0 auto; padding: 28px 24px 36px; display: grid; gap: 16px; }
.foot-line { font: 18px/1.2 var(--sk); text-transform: uppercase; color: var(--yel); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.foot-line .mono { font-size: 16px; color: var(--white); text-transform: none; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.catag.big .mono { font-size: 14px; overflow-wrap: anywhere; }
.foot-note { font-size: 22px; color: var(--gray); }
.foot-note a { margin-left: 10px; display: inline-block; padding: 8px 2px; min-height: 36px; }
@media (max-width: 760px) { .foot-in { padding: 24px 16px 32px; } .catag.big { width: 100%; justify-content: space-between; } }

/* ------------------------------------------------------------------ inner pages: rooms of their own */
.inner main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 56px; }
.pg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pg-head h1 { font-size: 40px; line-height: 1; }
.pg-head p { font-size: 26px; color: var(--gray); max-width: 60ch; margin-top: 8px; }
.card { background: var(--ink); border: 4px solid var(--must); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--wd); padding: 20px; }
.card.turq { border-color: var(--turq); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--teal); }
.card.mag { border-color: var(--mag); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--plum); }
.card h2 { font-size: 20px; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } .inner main { padding: 24px 16px 40px; } .pg-head h1 { font-size: 30px; } }
/* fields: ink box, 4 px mustard frame, blinking block caret */
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld > span:first-child { font: 13px/1 var(--sk); text-transform: uppercase; color: var(--gray); }
.fld input[type=text], .fld input:not([type]), .fld textarea, .fld input[type=number] { width: 100%; min-height: 48px; padding: 8px 12px; background: var(--ink); color: var(--white); border: 4px solid var(--must); font: 26px/1 var(--vt); caret-color: var(--aqua); border-radius: 0; }
.fld textarea { min-height: 88px; resize: vertical; line-height: 1.1; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--yel); background: #0A0410; }
.fld.err input, .fld.err textarea { border-color: var(--red); }
.fld .hint { font-size: 20px; color: var(--gray); }
.fld.err .hint { color: #FF5555; }
.pic { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 10px; border: 4px dashed var(--must); background: var(--ink); }
.pic img, .pic .pe { width: 72px; height: 72px; object-fit: cover; border: 4px solid var(--wood); background: var(--aub); flex: none; }
.pic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pic:focus-within { border-style: solid; border-color: var(--yel); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.seg button { min-height: 40px; padding: 0 12px; border: 3px solid var(--ink); background: var(--plum); color: var(--aqua); font: 15px/1 var(--mono); font-weight: 700; }
.seg button[aria-checked=true] { background: var(--yel); color: var(--ink); }
/* the open-relationship switch (big motel light switch) */
.bigsw { display: flex; gap: 16px; align-items: center; padding: 14px; border: 4px solid var(--mag); background: var(--ink); margin-bottom: 14px; }
.bigsw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bigsw .sw { width: 40px; height: 60px; flex: none; }
.bigsw .sw::before { left: 6px; right: 6px; top: 5px; height: 22px; }
.bigsw input:checked + .sw::before { top: auto; bottom: 5px; background: var(--pink); }
.bigsw input:focus-visible + .sw { outline: 3px dashed var(--aqua); outline-offset: 3px; }
.bigsw b { font: 16px/1.1 var(--sk); text-transform: uppercase; color: var(--yel); display: block; }
.bigsw p { font-size: 22px; color: var(--gray); }
.sum { display: grid; gap: 4px; margin: 14px 0; }
.sum div { display: flex; justify-content: space-between; padding: 6px 10px; background: var(--aub); }
.sum dt { font: 13px/1.3 var(--sk); text-transform: uppercase; color: var(--gray); }
.sum dd { margin: 0; font-size: 18px; }
.sum .tot { background: var(--plum); }
.sum .tot dd { color: var(--yel); }
.stamp { display: inline-block; font: 14px/1 var(--sk); text-transform: uppercase; color: var(--red); border: 3px solid var(--red); padding: 4px 8px; transform: rotate(-4deg); }
/* stats */
.killer { font: 34px/1.15 var(--sk); text-transform: uppercase; color: var(--yel); max-width: 30ch; }
.killer .mono { font-size: 34px; color: var(--pink); text-transform: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; background: var(--plum); border: 4px solid var(--plum); margin: 24px 0; }
.tiles div { background: var(--ink); padding: 14px 16px; }
.tiles dt { font: 12px/1.2 var(--sk); text-transform: uppercase; color: var(--gray); }
.tiles dd { margin: 8px 0 0; font-size: 28px; color: var(--white); }
.tbl { width: 100%; border-collapse: collapse; font-size: 22px; }
.tbl th { font: 12px/1 var(--sk); text-transform: uppercase; color: var(--gray); text-align: left; padding: 8px; border-bottom: 3px solid var(--plum); }
.tbl td { padding: 8px; border-bottom: 2px solid #3A1848; vertical-align: middle; }
.tbl td.mono { font-size: 15px; text-align: right; }
.tbl-wrap { overflow-x: auto; }
/* docs */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.doc nav { position: sticky; top: 16px; display: grid; gap: 2px; }
.doc nav a { font: 13px/1 var(--sk); text-transform: uppercase; color: var(--aqua); text-decoration: none; padding: 10px 8px; background: var(--ink); }
.doc nav a:hover { color: var(--yel); }
.doc section { margin-bottom: 36px; }
.doc h2 { font-size: 22px; margin-bottom: 12px; }
.doc p, .doc li { font-size: 25px; max-width: 70ch; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 26px; display: grid; gap: 6px; margin: 10px 0; }
.doc code { font: 16px var(--mono); color: var(--aqua); background: var(--ink); padding: 1px 5px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .doc nav { position: static; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
/* coin page */
.kpage { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.bigfob { position: relative; width: 256px; height: 320px; margin: 0 auto; }
.bigfob > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bigfob .lg { left: 64px; top: 112px; width: 128px; height: 144px; right: auto; bottom: auto; object-fit: cover; }
.kh b { font: 34px/1 var(--sk); color: var(--yel); }
.kh .nm { font-size: 30px; display: block; margin: 6px 0 10px; }
@media (max-width: 900px) { .kpage { grid-template-columns: 1fr; } .bigfob { width: 192px; height: 240px; } .bigfob .lg { left: 48px; top: 84px; width: 96px; height: 108px; } }
/* mine */
.mrow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; background: var(--ink); border-left: 4px solid var(--must); margin-bottom: 8px; }
.mrow .lg { width: 56px; height: 56px; border: 3px solid var(--wood); object-fit: cover; }
.handover summary { font: 13px/1 var(--sk); text-transform: uppercase; color: var(--aqua); padding: 10px 0; }
.handover form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.handover .fld { flex: 1 1 260px; margin: 0; }

/* ------------------------------------------------------------------ toasts (memo slips), modal, TV player */
.tstack { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 44px 12px 14px; background: #F4E6C0; color: var(--ink); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); font-size: 22px; position: relative; }
.toast.ok { border-left: 12px solid var(--turq); }
.toast.err { border-left: 12px solid var(--red); }
.toast a { color: var(--mag); }
.toast .tx { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; font: 18px var(--sk); color: var(--ink); }
.mdl { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .82); display: grid; place-items: center; padding: 16px; }
.dlg-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--aub); border: 4px solid var(--must); box-shadow: 0 8px 0 var(--ink); padding: 0 20px 20px; }
.dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 12px; border-bottom: 4px solid var(--plum); }
.dlg-h h3 { font-size: 16px; }
.dlg-x { width: 44px; height: 44px; border: 4px solid var(--ink); background: var(--must); color: var(--ink); font: 18px/1 var(--sk); box-shadow: inset 3px 3px 0 var(--yel), inset -3px -3px 0 var(--wood); flex: none; }
.dlg-x:hover { background: var(--yel); }
body.modal-on { overflow: hidden; }
.mdl.tvm .dlg-box { width: min(1000px, 100%); background: var(--wd); border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--wood), 0 8px 0 var(--ink); padding: 0 18px 18px; }
.mdl.tvm .dlg-h { border-bottom-color: var(--wood); }
.mdl.tvm .dlg-h h3 { color: var(--must); }
.tv { position: relative; background: var(--ink); border: 8px solid var(--ink); box-shadow: 0 0 0 4px var(--dgray); }
.tv video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }
.tv .bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); }
.tv.playing .bigplay { display: none; }
.tvbar { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 12px; margin-top: 12px; }
.tvbar .vb { min-height: 44px; }
.tl { position: relative; height: 28px; background: var(--ink); border: 3px solid var(--ink); touch-action: none;
  background-image: repeating-linear-gradient(90deg, #222 0 10px, var(--ink) 10px 14px); }
.tl-buf { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(170, 170, 170, .25); }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--must); }
.tl-k { position: absolute; top: -8px; width: 14px; height: 38px; background: var(--yel); border: 3px solid var(--ink); }
.tl:focus-visible { outline: 3px dashed var(--aqua); }
.time { font-size: 15px; color: var(--yel); white-space: nowrap; }
.vol { display: flex; gap: 3px; align-items: flex-end; height: 28px; padding: 0 4px; touch-action: none; }
.vol i { width: 7px; background: var(--dgray); }
.vol i:nth-child(1) { height: 30%; } .vol i:nth-child(2) { height: 55%; } .vol i:nth-child(3) { height: 78%; } .vol i:nth-child(4) { height: 100%; }
.vol i.on { background: var(--aqua); }
.tv-cap { font-size: 22px; color: #F4E6C0; margin-top: 10px; }
@media (max-width: 640px) { .tvbar { grid-template-columns: auto 1fr auto; } .tvbar .time { grid-column: 1 / -1; order: 9; } }
/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 32px 16px; }
.lost img { width: min(640px, 100%); height: auto; aspect-ratio: 160 / 96; border: 4px solid var(--ink); }
.lost h1 { font-size: 32px; margin: 20px 0 8px; }
.lost p { font-size: 28px; color: var(--gray); margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lava img:first-child { opacity: 1; }
  .car .c0 { opacity: 1; }
}
