:root {
  --ink: #081216;
  --panel: rgba(9, 18, 20, 0.78);
  --panel-solid: #0e1b1e;
  --line: rgba(255, 236, 210, 0.13);
  --line-strong: rgba(255, 236, 210, 0.26);
  --text: #f6efe4;
  --muted: #cdbfaa;
  --faint: #a99d8b;
  --amber: #ffb347;
  --amber-soft: #ffd28a;
  --teal: #68e0d8;
  --danger: #ff7a5c;
  --kiosk: #5ce1c6;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  overflow: hidden;
}
button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:is(button, a, [tabindex]):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
/* Pressed feedback in place of the browser's tap highlight. */
:is(.primary, .ghost, .icon-btn, .ware, .ready):active {
  filter: brightness(1.18);
}
kbd {
  display: inline-block;
  min-width: 20px;
  margin: 0 1px;
  padding: 2px 5px;
  border-radius: 6px;
  border: 1px solid rgba(255, 236, 210, 0.3);
  background: rgba(8, 14, 16, 0.7);
  font: 600 11px/1.3 "JetBrains Mono Variable", ui-monospace, monospace;
  color: #fbf3e6;
  text-align: center;
}
.label {
  font: 650 10.5px/1 "Inter Variable", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- stage ---------------------------------------------------------------------------- */
.stage {
  position: relative;
  height: 100dvh;
  min-height: 540px;
  overflow: hidden;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
  background: radial-gradient(80% 70% at 50% 45%, #10272b, var(--ink) 75%);
}
.stage:focus-visible {
  box-shadow: inset 0 0 0 3px var(--amber);
}
.view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 95% at 50% 48%, transparent 58%, rgba(3, 8, 10, 0.62) 100%);
}
.hurt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(110% 90% at 50% 50%, transparent 55%, rgba(220, 70, 40, 0.5) 100%);
}
.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.floater {
  position: absolute;
  left: 0;
  top: 0;
  font: 800 17px/1 "Archivo Variable", sans-serif;
  font-stretch: 112%;
  color: var(--amber-soft);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  will-change: transform, opacity;
}
.floater.heron {
  color: #b8fbff;
  font-size: 14px;
}
/* Off-screen foe: a small arrow on the edge pointing at it. */
.threat {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: #ff9a5c;
  clip-path: polygon(100% 50%, 15% 8%, 34% 50%, 15% 92%);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
  will-change: transform, opacity;
}
.threat.brute {
  background: #9dffb8;
}

/* --- top HUD --------------------------------------------------------------------------- */
.hud-top {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}
.hud-top p {
  margin: 0;
}
.round-box {
  min-width: 112px;
  padding: 11px 16px 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.round-num {
  font: 800 46px/0.95 "Archivo Variable", sans-serif;
  font-stretch: 118%;
  font-variant-numeric: tabular-nums;
  margin-top: 6px !important;
  color: var(--text);
}
.round-left {
  margin-top: 6px !important;
  font: 600 12.5px/1.2 "Inter Variable", sans-serif;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hud-right {
  display: flex;
  align-items: flex-start;
  margin-left: auto;
  gap: 10px;
}
.points {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 11px 16px 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.points-value {
  font: 800 26px/1 "Archivo Variable", sans-serif;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  color: var(--amber-soft);
}
.buttons {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover {
  background: rgba(30, 44, 46, 0.9);
  border-color: rgba(255, 236, 210, 0.42);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: #f6efe4;
  stroke: #f6efe4;
}
.icon-btn .icon-sound,
.icon-btn[aria-pressed="true"] .icon-mute,
.icon-btn .icon-play,
.icon-btn[aria-pressed="true"] .icon-pause {
  display: none;
}
.icon-btn[aria-pressed="true"] .icon-sound,
.icon-btn[aria-pressed="true"] .icon-play {
  display: block;
}
.icon-btn.sound[aria-pressed="true"] {
  border-color: rgba(255, 179, 71, 0.6);
}

/* --- round banner ------------------------------------------------------------------------ */
.banner {
  position: absolute;
  left: calc(50% + var(--view-shift, 0px));
  top: 25%;
  width: min(92vw, 720px);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  opacity: 0;
}
.banner p {
  margin: 0;
}
.banner-kicker {
  font: 650 12px/1 "Inter Variable", sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-soft);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.banner-title {
  margin-top: 10px !important;
  font: 850 clamp(46px, 8.2vw, 104px)/0.92 "Archivo Variable", sans-serif;
  font-stretch: 122%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff8ec;
  text-shadow:
    0 0 28px rgba(255, 170, 70, 0.45),
    0 6px 26px rgba(0, 0, 0, 0.85);
}
.banner.clear .banner-title {
  font-size: clamp(32px, 5.4vw, 66px);
  color: #e9fff9;
  text-shadow:
    0 0 26px rgba(92, 225, 198, 0.45),
    0 6px 26px rgba(0, 0, 0, 0.85);
}
.banner-rule {
  width: 180px;
  height: 2px;
  margin: 14px auto 0 !important;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  transform-origin: 50% 50%;
}
.banner.clear .banner-rule {
  background: linear-gradient(90deg, transparent, var(--kiosk), transparent);
}
.banner-sub {
  margin-top: 12px !important;
  font: italic 400 clamp(20px, 2.6vw, 30px)/1.1 "Instrument Serif", serif;
  color: #f3e6d0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

/* --- Heron's callouts ------------------------------------------------------------------------------ */
.callout {
  position: absolute;
  left: 50%;
  bottom: 132px;
  max-width: min(86vw, 620px);
  margin: 0;
  padding: 10px 16px 11px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-radius: 999px;
  background: rgba(7, 16, 17, 0.84);
  border: 1px solid rgba(104, 224, 216, 0.35);
  transform: translateX(-50%);
  font: 500 15.5px/1.3 "Inter Variable", sans-serif;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}
.callout .who {
  font: 700 11px/1 "Inter Variable", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.callout .said {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- bottom HUD ------------------------------------------------------------------------------------- */
.hud-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.hud-bottom p {
  margin: 0;
}
.vitals {
  display: flex;
  gap: 10px;
}
.card {
  padding: 11px 14px 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  min-width: 150px;
}
.card .name {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 700 11px/1 "Inter Variable", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.lark .dot {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}
.heron .dot {
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}
.pips {
  display: flex;
  gap: 4px;
  margin-top: 9px;
}
.pips span {
  width: 18px;
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.pips span.on {
  background: var(--amber);
}
.ammo {
  margin-top: 8px !important;
  font: 800 22px/1 "Archivo Variable", sans-serif;
  font-stretch: 110%;
  font-variant-numeric: tabular-nums;
}
.ammo .of {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.reload {
  height: 3px;
  margin-top: 7px !important;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.reload span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--amber-soft);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.bar {
  height: 7px;
  margin-top: 10px !important;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--teal);
  transform-origin: 0 50%;
}
.status {
  margin-top: 8px !important;
  font: 500 12.5px/1.25 "Inter Variable", sans-serif;
  color: var(--muted);
  max-width: 190px;
}
.prompt {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  font: 550 14px/1.3 "Inter Variable", sans-serif;
  color: var(--text);
}
.prompt:empty {
  display: none;
}

/* --- the Thriftwright ---------------------------------------------------------------------------------- */
.kiosk {
  position: absolute;
  right: 18px;
  top: 90px;
  width: 340px;
  max-height: calc(100% - 186px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(8, 22, 21, 0.92);
  border: 1px solid rgba(92, 225, 198, 0.4);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.kiosk-kicker {
  margin: 0;
  font: 650 11px/1 "Inter Variable", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kiosk);
}
.kiosk h2 {
  margin: 8px 0 2px;
  font: 800 26px/1 "Archivo Variable", sans-serif;
  font-stretch: 116%;
}
.kiosk-points {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
/* The wares scroll; the header and the bell stay in view. */
.wares {
  flex: 1 1 auto;
  min-height: 112px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0 -6px 12px 0;
  padding: 0 6px 0 0;
  display: grid;
  align-content: start;
  gap: 7px;
}
.ware {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 2px 10px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}
.ware:hover:not([aria-disabled="true"]) {
  border-color: rgba(92, 225, 198, 0.55);
  background: rgba(92, 225, 198, 0.08);
}
.ware[aria-disabled="true"] {
  cursor: not-allowed;
}
.ware[aria-disabled="true"] .ware-name,
.ware[aria-disabled="true"] .ware-price {
  color: var(--faint);
}
.ware-key {
  grid-row: span 2;
  font: 700 12px/1 "JetBrains Mono Variable", monospace;
  color: var(--kiosk);
  text-align: center;
}
.ware-name {
  font: 650 14px/1.2 "Inter Variable", sans-serif;
}
.ware-blurb {
  grid-column: 2;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
}
.ware-price {
  grid-row: span 2;
  grid-column: 3;
  grid-row-start: 1;
  font: 800 15px/1 "Archivo Variable", sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--amber-soft);
}
.ready {
  flex: none;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--kiosk);
  color: #04221d;
  font-weight: 700;
  cursor: pointer;
}
.ready kbd {
  background: rgba(4, 34, 29, 0.15);
  border-color: rgba(4, 34, 29, 0.35);
  color: #04221d;
}

/* --- attract card ------------------------------------------------------------------------------------- */
.attract {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: min(460px, calc(100% - 44px));
  padding: 22px 24px 18px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(14, 26, 27, 0.92), rgba(7, 14, 15, 0.88));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}
.eyebrow {
  margin: 0;
  font: 650 11px/1.2 "Inter Variable", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-soft);
}
.attract h1 {
  margin: 10px 0 0;
  font: 850 38px/0.98 "Archivo Variable", sans-serif;
  font-stretch: 118%;
  letter-spacing: -0.01em;
}
.tagline {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.attract-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
}
.primary {
  border: 0;
  background: var(--amber);
  color: #2b1600;
  box-shadow: 0 10px 26px -10px rgba(255, 179, 71, 0.7);
}
.primary svg {
  width: 16px;
  height: 16px;
  fill: #2b1600;
}
.primary:hover {
  background: #ffc46b;
}
.ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
.ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}
.keys {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}
.touch-hint {
  display: none;
}
.sample-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--faint);
}

/* --- pause and run summary ------------------------------------------------------------------------------- */
.paused-card,
.over {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(440px, calc(100% - 36px));
  transform: translate(-50%, -50%);
  padding: 24px 24px 20px;
  border-radius: 22px;
  background: rgba(9, 18, 20, 0.95);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}
.paused-card h2,
.over h2 {
  margin: 0;
  font: 850 32px/1 "Archivo Variable", sans-serif;
  font-stretch: 116%;
}
.over-kicker {
  margin: 0 0 8px;
  font: 650 11px/1 "Inter Variable", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--danger);
}
.over dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 18px 0 0;
}
.over dt {
  font-size: 12px;
  color: var(--muted);
}
.over dd {
  margin: 3px 0 0;
  font: 800 22px/1 "Archivo Variable", sans-serif;
  font-variant-numeric: tabular-nums;
}

/* --- touch controls --------------------------------------------------------------------------------------- */
.touch {
  display: none;
}
.has-touch .touch {
  display: block;
}
.stick {
  position: absolute;
  width: 116px;
  height: 116px;
  margin: -58px 0 0 -58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 236, 210, 0.3);
  background: rgba(8, 16, 18, 0.35);
  pointer-events: none;
  opacity: 0;
}
.stick.active {
  opacity: 1;
}
.knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 179, 71, 0.85);
}
.touch-btn {
  position: absolute;
  right: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 236, 210, 0.35);
  background: rgba(8, 16, 18, 0.7);
  display: grid;
  place-items: center;
}
.touch-btn svg {
  width: 28px;
  height: 28px;
  stroke: #f6efe4;
}
.touch-btn.act {
  bottom: 168px;
}
.touch-btn.act.ready {
  border-color: var(--amber);
  background: rgba(255, 179, 71, 0.25);
}
.touch-btn.reload-btn {
  bottom: 244px;
  width: 52px;
  height: 52px;
  right: 26px;
}
.touch-btn:active {
  background: rgba(255, 179, 71, 0.32);
}
/* Touch controls only while a run is live (two rules, so a browser without
   :has() still hides them in the demo). */
.attract-mode .touch {
  display: none;
}
.stage:has(.paused-card:not([hidden]), .over:not([hidden]), .tables:not([hidden])) .touch {
  display: none;
}
.has-touch .desk {
  display: none;
}
.has-touch .touch-hint {
  display: inline;
}

/* --- data tables drawer ------------------------------------------------------------------------------------- */
.tables {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(700px, 100%);
  overflow: auto;
  padding: 22px 22px 30px;
  background: rgba(8, 15, 17, 0.97);
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.9);
  user-select: text;
  -webkit-user-select: text;
  cursor: auto;
}
.tables-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tables h2 {
  margin: 0;
  font: 800 26px/1 "Archivo Variable", sans-serif;
  font-stretch: 114%;
}
.tables-intro {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.tables code {
  font: 500 13px "JetBrains Mono Variable", monospace;
  color: var(--amber-soft);
}
.table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  font: 700 12px/1 "Inter Variable", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-soft);
  padding-bottom: 8px;
}
th,
td {
  padding: 7px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
thead th {
  color: var(--muted);
  font-weight: 600;
}
tbody th {
  font-weight: 650;
}
td.wrap {
  white-space: normal;
  min-width: 170px;
}
th .tag {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber-soft);
}

.fallback {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(460px, calc(100% - 36px));
  transform: translate(-50%, -50%);
  padding: 22px;
  border-radius: 18px;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
}
.fallback h2 {
  margin: 0 0 8px;
  font: 800 22px/1.1 "Archivo Variable", sans-serif;
}
.fallback p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* --- modes ------------------------------------------------------------------------------------------------------- */
.attract-mode .hud-bottom .vitals,
.attract-mode .prompt {
  display: none;
}
.attract-mode .callout {
  left: auto;
  right: 22px;
  bottom: 26px;
  transform: none;
}
.capture * {
  transition: none !important;
}

/* --- phones ------------------------------------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .hud-top {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .round-box {
    min-width: 0;
    padding: 9px 12px 10px;
  }
  .round-num {
    font-size: 34px;
  }
  .round-left {
    font-size: 11.5px;
  }
  .points {
    padding: 9px 12px 10px;
  }
  .points-value {
    font-size: 20px;
  }
  .buttons {
    flex-direction: column;
    gap: 6px;
  }
  .hud-right {
    gap: 8px;
  }
  .banner {
    top: 30%;
  }
  .banner-kicker {
    font-size: 10.5px;
  }
  .callout {
    bottom: 128px;
    font-size: 13.5px;
    white-space: normal;
    border-radius: 16px;
  }
  .attract-mode .callout {
    left: 12px;
    right: 12px;
    bottom: calc(var(--card-h, 220px) + 22px);
    max-width: none;
  }
  .hud-bottom {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .vitals {
    gap: 8px;
  }
  .card {
    min-width: 0;
    flex: 1;
    padding: 9px 12px 10px;
  }
  .status {
    font-size: 11.5px;
  }
  .attract {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px 18px 14px;
  }
  .attract h1 {
    font-size: 29px;
  }
  .tagline {
    font-size: 14px;
  }
  .keys {
    font-size: 12px;
    line-height: 1.7;
  }
  /* The terminal is a bottom sheet: wares in two columns, the bell always
     in reach, and the touch buttons and vitals out of its way. */
  .kiosk {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    /* Short of the round banner, which sits at 30% and is about 130 px tall. */
    max-height: min(60%, calc(70% - 150px));
    padding: 14px 14px 12px;
  }
  .kiosk h2 {
    font-size: 22px;
  }
  .kiosk-points {
    margin-bottom: 10px;
  }
  .wares {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
  }
  .ware {
    height: 100%;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 3px 6px;
    padding: 8px 9px;
  }
  .ware-key {
    display: none;
  }
  .ware-name {
    grid-column: 1;
    font-size: 13px;
  }
  .ware-price {
    grid-row: 1;
    grid-column: 2;
    font-size: 13.5px;
  }
  .ware-blurb {
    grid-column: 1 / -1;
    font-size: 11.5px;
  }
  .shopping .hud-bottom,
  .shopping .callout,
  .shopping .touch-btn {
    visibility: hidden;
  }
  .tables {
    padding: 18px 14px 24px;
  }
  table {
    font-size: 12px;
  }
  th,
  td {
    padding: 6px 5px;
  }
  td.wrap {
    min-width: 140px;
  }
}
@media (pointer: coarse), (max-width: 520px) {
  .touch-hint {
    display: inline;
  }
  .desk {
    display: none;
  }
}
