/* HoloVault sample C · Tabule — a rail concourse split-flap board.
   Matte black flaps, white painted letters, brushed steel frame, amber row lamps.
   Amber means a rising price or a fresh change; dim red means falling. Control keys use warm-white pilot lamps. */

:root {
  --steel-hi: #b3b9be;
  --steel: #8a9096;
  --steel-lo: #5f656b;
  --steel-edge: #3d4247;
  --steel-ink: #08090a;
  --face: #111214;
  --flap: #1c1d20;
  --flap-top: #222327;
  --flap-bot: #1a1b1e;
  --hinge: #050506;
  --paint: #f2f0e8;
  --paint-2: rgb(242 240 232 / 0.7);
  --paint-3: rgb(242 240 232 / 0.56);
  --amber: #ffb000;
  --red: #b23a32;
  --red-ink: #e5776d;
  --pilot: #fff3d6;
  --concourse: #0b0c0d;
  --f-disp: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-text: 'Big Shoulders Text', 'Arial Narrow', sans-serif;
  --brush: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.07) 0 1px, rgb(0 0 0 / 0.045) 1px 2px, transparent 2px 3px);
  --steel-bg: var(--brush),
    linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 0.14) 42%, transparent 62%),
    linear-gradient(180deg, #a3a9ae 0%, var(--steel) 48%, #7a8086 100%);
  color-scheme: dark;
  accent-color: var(--amber);
  caret-color: var(--amber);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--concourse);
  scrollbar-color: var(--steel-lo) var(--face);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--face);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--steel-lo), var(--steel), var(--steel-lo));
  border: 2px solid var(--face);
  border-radius: 6px;
}

::selection {
  background: var(--amber);
  color: var(--face);
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--paint);
  font: 500 16px/1.4 var(--f-text);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(120% 60% at 50% -10%, rgb(255 236 200 / 0.07), transparent 60%),
    linear-gradient(180deg, #151618 0%, var(--concourse) 55%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

h1:focus,
main:focus {
  outline: none;
}

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ the frame */

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 6px;
  background: var(--steel-bg);
  box-shadow: inset 1px 0 0 rgb(255 255 255 / 0.35), inset -1px 0 0 rgb(0 0 0 / 0.35);
}

.frame-top {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -6px;
  padding: 8px 12px 9px;
  background: var(--steel-bg);
  border-bottom: 1px solid var(--steel-edge);
  box-shadow: 0 6px 10px -6px rgb(0 0 0 / 0.7);
}

/* Screw heads on the frame. */
.frame-top::before,
.frame-top::after,
.frame-bot::before,
.frame-bot::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 44%, rgb(30 33 36 / 0.85) 44% 58%, transparent 58%),
    radial-gradient(circle at 35% 30%, #e3e6e8, #8d9399 60%, #50555a);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.5);
}
.frame-top::before {
  left: 4px;
  top: 5px;
}
.frame-top::after {
  right: 4px;
  top: 5px;
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font: 800 21px/1 var(--f-disp);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel-ink);
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.4);
  padding: 4px 0;
}

.clock {
  --cell: 12px;
  --chh: 20px;
  --fs: 16px;
  display: flex;
  padding: 3px 2px 3px 3px;
  background: var(--face);
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.9), 0 1px 0 rgb(255 255 255 / 0.4);
}

.tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

/* ------------------------------------------------------------------ steel keys */

.key {
  --kb: linear-gradient(180deg, #bcc2c7 0%, #969ca2 55%, #80868c 100%);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--steel-edge);
  border-radius: 4px;
  background: var(--brush), var(--kb);
  color: var(--steel-ink);
  font: 700 14px/1 var(--f-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    inset 0 -1px 0 rgb(0 0 0 / 0.22),
    0 2px 4px -1px rgb(0 0 0 / 0.65);
  transition:
    transform 90ms ease-out,
    box-shadow 90ms ease-out;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.key:hover {
  --kb: linear-gradient(180deg, #c6ccd0 0%, #a0a6ab 55%, #8a9096 100%);
}
.key:active,
.key[aria-pressed='true'],
.key[aria-current='page'] {
  --kb: linear-gradient(180deg, #858b91 0%, #949aa0 60%, #a2a8ad 100%);
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgb(0 0 0 / 0.45),
    inset 0 -1px 0 rgb(255 255 255 / 0.25),
    0 1px 1px rgb(0 0 0 / 0.45);
}
.key:disabled {
  cursor: default;
  color: rgb(21 23 26 / 0.5);
  --kb: linear-gradient(180deg, #9ea4a9, #868c92);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
  transform: none;
}
.key svg {
  flex: none;
}

/* Pilot lamp on a control key: warm white, so amber keeps meaning "price moved". */
.pilot,
.track .lamp {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a5d60, #24272a 70%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.55), 0 1px 0 rgb(255 255 255 / 0.45);
}
.pilot::after,
.track .lamp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at 40% 35%, #fff 0 22%, #fff1c9 55%, #e6c47e 100%);
  box-shadow: 0 0 0 1px rgb(255 240 200 / 0.5), 0 0 9px 3px rgb(255 238 196 / 0.85);
  transition: opacity 160ms ease-out;
}
.key[aria-pressed='true'] .pilot::after,
.track[aria-current='page'] .lamp::after,
.pilot.is-on::after {
  opacity: 1;
}

.track {
  justify-content: flex-start;
  gap: 7px;
  padding: 0 8px 0 6px;
}
.track .lamp {
  margin-left: auto;
}
.track__label {
  white-space: nowrap;
}

.plate {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 24px;
  border-radius: 2px;
  background: linear-gradient(180deg, #faf8f1, #e4e1d6);
  color: var(--face);
  font: 800 17px/1 var(--f-disp);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.35), 0 1px 0 rgb(255 255 255 / 0.4);
  letter-spacing: 0;
}
.plate--lg {
  width: 34px;
  height: 40px;
  font-size: 28px;
}

/* ------------------------------------------------------------------ board face */

.face {
  flex: 1;
  margin: 6px 0 0;
  padding: 10px 6px 18px;
  background:
    radial-gradient(140% 50% at 50% 0%, rgb(255 255 255 / 0.035), transparent 70%),
    var(--face);
  border-radius: 3px;
  box-shadow:
    inset 0 2px 6px rgb(0 0 0 / 0.85),
    inset 0 0 0 1px rgb(0 0 0 / 0.6),
    0 1px 0 rgb(255 255 255 / 0.35);
}

.loading {
  margin: 40px 8px;
  color: var(--paint-2);
  font-size: 16px;
}

.frame-bot {
  position: relative;
  margin: 0 -6px;
  padding: 9px 16px 11px;
}
.frame-bot::before {
  left: 4px;
  top: 50%;
  margin-top: -3.5px;
}
.frame-bot::after {
  right: 4px;
  top: 50%;
  margin-top: -3.5px;
}
.frame-bot p {
  margin: 0;
  text-align: center;
  font: 700 12.5px/1.3 var(--f-text);
  letter-spacing: 0.05em;
  color: var(--steel-ink);
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.35);
}

/* Painted header line of each board. */
.strip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgb(242 240 232 / 0.14);
}
.strip__title {
  margin: 0;
  font: 700 20px/1.1 var(--f-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paint);
  text-wrap: balance;
}
.strip__meta {
  margin: 0;
  font: 500 14px/1.25 var(--f-text);
  color: var(--paint-2);
  text-align: right;
}

.board {
  container-type: inline-size;
  position: relative;
}

.board-foot,
.note {
  margin: 14px 4px 0;
  font: 500 13.5px/1.4 var(--f-text);
  color: var(--paint-2);
}

/* ------------------------------------------------------------------ flap cells */

.grp {
  display: inline-flex;
  flex: none;
  width: calc(var(--n) * var(--cell));
}

.line {
  display: flex;
  align-items: center;
  min-width: 0;
}
.line > .grp + .grp {
  margin-left: calc(var(--cell) * 0.5);
}

.f {
  --chh: calc(var(--cell) * 1.72);
  --fs: calc(var(--cell) * 1.36);
  --pp: calc(var(--cell) * 6);
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--cell) - 1px);
  height: var(--chh);
  margin-right: 1px;
  border-radius: calc(var(--cell) * 0.14);
  background: linear-gradient(180deg, #26272b 0%, var(--flap-top) 30%, #1e1f23 50%, var(--flap-bot) 50%, #161719 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 1px 0 rgb(0 0 0 / 0.7);
  color: var(--ink, var(--paint));
  font: 800 var(--fs) / var(--chh) var(--f-disp);
  text-align: center;
  white-space: pre;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  overflow: hidden;
}

/* The hinge gap cuts every character, with tiny pivot pins at both ends. */
.f::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 0.5px);
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, #4a4c52 0 1px, rgb(5 5 6 / var(--hinge-a, 0.62)) 1px calc(100% - 1px), #4a4c52 calc(100% - 1px));
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.035);
  pointer-events: none;
}
.bigrow .f,
.pk-num .f {
  --hinge-a: 0.9;
}
/* Small row cells: a lighter hinge keeps S, 8, 6 and the minus sign apart at phone size. */
.rows .f,
.statrows .f {
  --hinge-a: 0.4;
}

/* A cell waiting for its turn keeps showing what it showed before; its text is already the new value. */
.f.hold {
  color: transparent;
}
.f.hold::before {
  content: attr(data-show);
  position: absolute;
  inset: 0;
  color: var(--ink, var(--paint));
}

.ink-up {
  --ink: var(--amber);
}
.ink-down {
  --ink: var(--red-ink);
}

/* The folding overlay, mounted only while a cell turns. */
.fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: var(--ink, var(--paint));
}
.fx .h {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
}
.fx .t {
  top: 0;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: linear-gradient(180deg, #26272b 0%, var(--flap-top) 60%, #1e1f23 100%);
}
.fx .b {
  top: 50%;
  border-radius: inherit;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: linear-gradient(180deg, var(--flap-bot) 0%, #161719 100%);
}
.fx .g {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 200%;
  line-height: var(--chh);
}
.fx .b .g {
  top: -100%;
}
.fx .f1 {
  transform-origin: 50% 100%;
  transform: perspective(var(--pp)) rotateX(calc(var(--t, 0) * -90deg));
}
.fx .f2 {
  transform-origin: 50% 0;
  transform: perspective(var(--pp)) rotateX(calc(var(--b, 1) * 90deg));
}
.fx .f1::after,
.fx .f2::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fx .f1::after {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.75));
  opacity: var(--t, 0);
}
.fx .f2::after {
  background: linear-gradient(0deg, rgb(255 255 255 / 0.05), rgb(0 0 0 / 0.7));
  opacity: var(--b, 1);
}

/* ------------------------------------------------------------------ row lamps */

.lamp {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3e3627, #17140f 72%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.75), 0 1px 0 rgb(255 255 255 / 0.06);
}
.lamp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.lamp[data-s='up']::after,
.lamp[data-s='fresh']::after,
.is-departing .lamp::after {
  opacity: 1;
  background: radial-gradient(circle at 35% 30%, #fff4cf 0%, var(--amber) 45%, #a86a00 100%);
  box-shadow: 0 0 8px 1px rgb(255 176 0 / 0.6);
}
.lamp[data-s='down']::after {
  opacity: 1;
  background: radial-gradient(circle at 35% 30%, #f1a198 0%, var(--red) 50%, #5c1a15 100%);
  box-shadow: 0 0 6px 0 rgb(178 58 50 / 0.55);
}
.lamp[data-s='fresh']::after {
  animation: lamp-blink 0.52s steps(1, end) var(--blinks, 4);
}
.lamp--blank {
  visibility: hidden;
  width: calc(var(--cell) * 1.1);
}
@keyframes lamp-blink {
  50% {
    opacity: 0.12;
  }
}

/* ------------------------------------------------------------------ Sbírka */

.sum {
  padding: 2px 0 4px;
}

.bigrow {
  --cell: calc(100cqi / (var(--cols) + 0.4));
  display: flex;
  justify-content: center;
  padding: 2px 0 8px;
}
.bigrow .f {
  --chh: calc(var(--cell) * 1.6);
  --fs: calc(var(--cell) * 1.34);
  border-radius: calc(var(--cell) * 0.1);
  margin-right: 2px;
  width: calc(var(--cell) - 2px);
}

.splitrow,
.rows,
.colhead,
.ahead {
  --cell: calc(100cqi / 33.2);
}

.splitrow,
.ahead,
.statrow {
  display: flex;
  align-items: center;
  gap: calc(var(--cell) * 0.45);
  padding: 3px 0;
}
.splitrow .g-count,
.ahead .g-val,
.statrow .g-val {
  margin-left: auto;
}
.splitrow .g-sum {
  margin-left: calc(var(--cell) * 0.5);
}

.selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0 14px;
}
.sel {
  gap: 8px;
  padding: 0 8px;
}

.colhead {
  display: grid;
  grid-template-columns: calc(var(--cell) * 1.1) 1fr;
  column-gap: calc(var(--cell) * 0.45);
  padding: 0 0 5px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgb(242 240 232 / 0.1);
  font: 700 12px/1 var(--f-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paint-2);
}
.colhead .grp {
  display: block;
  white-space: nowrap;
}
.colhead .head-r {
  text-align: right;
  padding-right: 1px;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slot + .slot {
  border-top: 1px solid rgb(242 240 232 / 0.06);
}

.row {
  display: grid;
  grid-template-columns: calc(var(--cell) * 1.1) 1fr;
  column-gap: calc(var(--cell) * 0.45);
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 5px 0 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.row .lamp {
  justify-self: center;
}
.row:disabled {
  cursor: default;
}
.row:not(:disabled):hover {
  background: rgb(242 240 232 / 0.035);
}
.row:not(:disabled):active .line,
.is-departing .line {
  transform: translateY(1px);
}
.is-departing .row {
  background: rgb(255 176 0 / 0.07);
}
.row:focus-visible {
  outline-offset: 1px;
}

.sub {
  grid-column: 2;
  margin-top: 4px;
  font: 500 13px/1.25 var(--f-text);
  letter-spacing: 0.02em;
  color: var(--paint-2);
  transition: opacity 260ms ease-out;
}
.sub:empty {
  display: none;
}
.is-pending .sub {
  opacity: 0;
  transition-duration: 120ms;
}

.board-foot {
  padding-top: 10px;
  border-top: 1px solid rgb(242 240 232 / 0.1);
}

/* ------------------------------------------------------------------ Karta · nástupiště */

.strip--sign {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.back {
  min-height: 40px;
  padding: 0 10px 0 8px;
  gap: 6px;
}
.sign__text {
  min-width: 0;
}
.strip__title--name {
  font-size: 19px;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.strip--sign .strip__meta {
  text-align: left;
  font-size: 13.5px;
}

.readout {
  padding: 4px 0 2px;
}
.bigrow--price {
  padding-bottom: 6px;
}
.eurrow {
  --cell: calc(100cqi / (var(--cols) + 0.4));
  display: flex;
  justify-content: center;
}
.src {
  margin: 8px 4px 0;
  text-align: center;
  font: 500 13.5px/1.35 var(--f-text);
  color: var(--paint-2);
}

.stage {
  display: grid;
  place-items: center;
  padding: 18px 0 22px;
  margin: 10px -6px 4px;
  background:
    linear-gradient(180deg, transparent 0 calc(100% - 14px), rgb(242 240 232 / 0.1) calc(100% - 14px) calc(100% - 12px), transparent calc(100% - 12px)),
    radial-gradient(60% 70% at 50% 45%, rgb(255 255 255 / 0.05), transparent 70%);
}
.stage__card {
  width: min(66%, 290px);
}
.stage__card .holo,
.arrival__slide .holo {
  width: 100%;
  background: var(--flap);
}

.stats {
  margin-top: 6px;
}
.statrows {
  --cell: calc(100cqi / 24.2);
}
.statrow {
  padding: 4px 0;
}
.statrow + .statrow {
  border-top: 1px solid rgb(242 240 232 / 0.06);
}
.statrow .lamp {
  margin: 0 calc(var(--cell) * 0.2);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 18px 4px 0;
  padding-top: 14px;
  border-top: 1px solid rgb(242 240 232 / 0.12);
}
.facts div {
  min-width: 0;
}
.facts dt {
  font: 700 12px/1.2 var(--f-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paint-3);
}
.facts dd {
  margin: 3px 0 0;
  font: 600 16px/1.3 var(--f-text);
  color: var(--paint);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ Album */

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}
.progress__track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #050506;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.9), 0 1px 0 rgb(255 255 255 / 0.06);
  overflow: hidden;
}
.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  min-width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #fffdf6, #cfccc2);
}
.progress__pct {
  font: 700 14px/1 var(--f-text);
  color: var(--paint-2);
}

.pockets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  touch-action: pan-y;
}
.pocket {
  position: relative;
  min-width: 0;
}
.pk {
  container-type: inline-size;
  position: relative;
  display: block;
  aspect-ratio: 63 / 88;
  border-radius: 6px;
  background: linear-gradient(180deg, #25262a 0%, var(--flap-top) 40%, #1e1f23 50%, var(--flap-bot) 50%, #151618 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 2px 5px -1px rgb(0 0 0 / 0.8);
  user-select: none;
}
.pk::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 0.5px);
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, #4a4c52 0 2px, rgb(5 5 6 / 0.9) 2px calc(100% - 2px), #4a4c52 calc(100% - 2px));
  pointer-events: none;
}
.pk-base {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.pk-face {
  --cell: calc(100cqi / 6.2);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: inherit;
}
.pk-face--card {
  padding: 0;
}
.pk-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  -webkit-user-drag: none;
}
.pk-num {
  display: flex;
}
.pk-name {
  font: 600 12.5px/1.2 var(--f-text);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--paint-2);
  overflow-wrap: anywhere;
}
.pk-face.is-missing .pk-num {
  opacity: 0.5;
}
.pk-face.is-missing .pk-name {
  color: var(--paint-3);
}
.pocket.is-missing .pk {
  background: linear-gradient(180deg, #1d1e21 0%, #1a1b1e 50%, #151618 50%, #121315 100%);
  box-shadow: inset 0 0 0 1px rgb(242 240 232 / 0.06), inset 0 2px 6px rgb(0 0 0 / 0.6);
}

/* Big pocket flap: same mechanism, a heavier flap. */
.fx--pk {
  z-index: 2;
  border-radius: 6px;
}
.fx--pk .g {
  line-height: normal;
}
.fx--pk .h {
  --pp: 520px;
}
.fx--pk .t {
  background: linear-gradient(180deg, #25262a, var(--flap-top));
}
.fx--pk .b {
  background: linear-gradient(180deg, var(--flap-bot), #151618);
}
.fx--pk .pk-face {
  border-radius: 6px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}
.pager__flaps {
  --cell: 18px;
  display: flex;
}
.key--icon {
  width: 52px;
  padding: 0;
}

/* ------------------------------------------------------------------ Sken */

.arrivals {
  padding-bottom: 2px;
}
.rows--arr .row {
  padding: 4px 0;
}

.platform {
  position: relative;
  height: clamp(250px, 39vh, 370px);
  margin: 12px -6px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 calc(100% - 12px), rgb(242 240 232 / 0.1) calc(100% - 12px) calc(100% - 10px), transparent calc(100% - 10px)),
    radial-gradient(55% 65% at 50% 45%, rgb(255 255 255 / 0.05), transparent 72%);
}
.vf,
.arrival {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vf {
  transition: opacity 260ms ease-out;
}
.vf.is-hidden {
  opacity: 0;
}
.vf__frame {
  position: relative;
  flex: none;
  height: calc(100% - 34px);
  aspect-ratio: 63 / 88;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: repeating-linear-gradient(180deg, rgb(242 240 232 / 0.025) 0 1px, transparent 1px 4px);
}
.vf__corners {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--paint-2);
}
.vf__hint {
  margin: 0;
  padding: 0 14%;
  text-align: center;
  font: 500 14px/1.35 var(--f-text);
  color: var(--paint-2);
  text-wrap: balance;
}
.vf__scan {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.vf__beam {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--paint) 30%, var(--paint) 70%, transparent);
  box-shadow: 0 0 8px rgb(242 240 232 / 0.6);
}
.vf.is-scanning .vf__scan {
  opacity: 1;
  animation: beam 0.8s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
.vf.is-scanning .vf__hint {
  opacity: 0.25;
}
@keyframes beam {
  from {
    transform: translateY(2%);
  }
  to {
    transform: translateY(97%);
  }
}

.arrival__slide {
  flex: none;
  height: calc(100% - 34px);
  aspect-ratio: 63 / 88;
}

.sweep {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 32%, rgb(255 214 140 / 0.1) 42%, rgb(255 226 170 / 0.32) 50%, rgb(255 214 140 / 0.1) 58%, transparent 68%);
}

.scan-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
}
.added {
  min-height: 1.3em;
  margin: 0;
  padding: 0 4px;
  text-align: center;
  font: 700 14px/1.3 var(--f-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}
.bigrow--scan {
  width: 74%;
  padding: 0;
}

.key--primary {
  display: flex;
  width: 100%;
  min-height: 54px;
  font-size: 16px;
  letter-spacing: 0.12em;
}
.key--primary .pilot {
  position: absolute;
  left: 14px;
}

/* ------------------------------------------------------------------ desktop: the board hangs in the concourse */

@media (min-width: 700px) {
  body {
    padding: 34px 0 40px;
  }
  .app {
    min-height: calc(100dvh - 74px);
    border-radius: 6px;
    box-shadow:
      inset 1px 0 0 rgb(255 255 255 / 0.35),
      inset -1px 0 0 rgb(0 0 0 / 0.35),
      0 40px 60px -30px rgb(0 0 0 / 0.9),
      0 12px 24px -12px rgb(0 0 0 / 0.7);
  }
  .app::before,
  .app::after {
    content: '';
    position: absolute;
    top: -34px;
    width: 5px;
    height: 34px;
    background: linear-gradient(90deg, #3c4146, #a9afb4 45%, #4d5257);
  }
  .app::before {
    left: 20%;
  }
  .app::after {
    right: 20%;
  }
  .frame-top {
    border-radius: 6px 6px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .lamp[data-s='fresh']::after {
    animation: none;
  }
}
