:root {
  --ink: #0a1b33;
  --navy: #13447c;
  --muted: #5c6b82;
  --rule: #d3dae6;
  --stock: #eef1f6;
  --paper: #ffffff;
  --signal: #FF6531;
  --signal-dim: #EA580C;
  --floor: #eef1f6;
  --display: "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #FFF7ED 0%, transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, #e8edf5 100%);
  line-height: 1.5;
}

.view[hidden] { display: none !important; }
.view--landing,
.view--leaderboard {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.landing {
  width: min(36rem, 100%);
  padding: 1.5rem 1.6rem 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(10, 27, 51, .08);
}
.landing .intro__eyebrow { margin-top: 0; }
.landing .intro__lead { margin-bottom: 1.1rem; }
.landing__opts { margin-bottom: 1rem; }
.landing__opts .session {
  margin: 0;
  border-color: var(--rule);
  background: var(--stock);
  color: var(--ink);
}
.landing__opts .session__lab,
.landing__opts .session__hint { color: var(--muted); }
.landing__opts .session__check { color: var(--ink); }
.landing__opts .session__check em { color: var(--muted); }
.results__foot .session__check { color: var(--ink); }
.results__foot .session__check em { color: var(--muted); }
.landing__opts .session__btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--rule);
}
.landing__opts .session__btn.is-on {
  background: var(--signal);
  border-color: var(--signal);
  color: #FFFFFF;
}
.landing .btn { width: 100%; }
.landing__actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.landing__actions .btn { width: 100%; }
.landing__lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
}
.landing__crown { font-size: 1.05rem; line-height: 1; }
.lb-page { max-width: 28rem; }
.lb-page__body {
  margin: 0 0 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(10, 27, 51, .04);
  text-align: left;
}
.lb-page .btn { width: 100%; }
.linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
}
.linkish:hover { color: var(--ink); }
.lb__list li.is-crown .rank { color: #b8860b; }
.lb__list li.is-crown .nick { color: var(--navy); }
.lb__crown {
  display: inline-block;
  margin-right: .2rem;
  font-size: .95em;
  vertical-align: -0.05em;
}
@media (max-width: 520px) {
  .landing__actions { gap: .5rem; }
}

.view--results {
  min-height: 100vh;
  color: var(--ink);
  padding: clamp(1.15rem, 3vw, 2rem);
}
.results {
  max-width: 52rem;
  margin: 0 auto;
  height: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 1.25rem;
}
.results__head h2 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin: 0 0 .4rem;
  color: var(--ink);
}
.results__manifest {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.45;
}
.results__step {
  margin: .45rem 0 0;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.results__stage {
  min-height: 0;
  overflow: visible;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(10, 27, 51, .06);
  padding: 1.15rem 1.25rem 1.35rem;
}
.results__stage .speed-compare,
.results__stage .end-kpis,
.results__stage .variant-errors,
.results__stage .stats-table,
.results__stage .replay,
.results__stage .lb {
  margin-bottom: 1.15rem;
}
.results__stage .replay,
.results__stage .lb {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}
.results__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
}
.results__back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: .45rem .2rem;
}
.results__back:hover { color: var(--ink); }
.results__next { min-width: 12rem; margin-left: auto; }
.results__menu-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  width: 100%;
}
.results__menu-row .btn { flex: 1; min-width: 10rem; }
.results__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(10, 27, 51, .04);
}
.results__foot .session {
  flex: 1;
  margin: 0;
  padding: .65rem .75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  border-color: var(--rule);
  background: var(--stock);
  color: var(--ink);
}
.results__foot .session__lab,
.results__foot .session__hint { color: var(--muted); }
.results__foot .session__lab { margin: 0; }
.results__foot .session__hint { display: none; }
.results__foot .session__opts { margin: 0; }
.results__foot .session__btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--rule);
}
.results__foot .session__btn.is-on {
  background: var(--signal);
  border-color: var(--signal);
  color: #FFFFFF;
}
.results__foot .btn { flex-shrink: 0; }

@media (max-width: 900px) {
  .results { height: auto; min-height: 0; }
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 3rem;
}
/* Square cells: min(72, availW/COLS, availH/ROWS). Do not grow the warehouse to fill 1080p. */
.view--game,
.view--kiosk {
  --nav: 3.75rem;
  --pad: 0.45rem;
  --gap: 0.7rem;
  --hint: 2.75rem;
  --pick-min: 22rem;
  --pick-max: 28rem;
  --map-cols: 10;
  --map-rows: 8;
  --avail-h: calc(100vh - var(--pad) * 2 - var(--hint));
  --avail-w: calc(100vw - var(--nav) - var(--pad) - var(--gap) - var(--pick-min));
  --cell: min(72px, calc(var(--avail-w) / var(--map-cols)), calc(var(--avail-h) / var(--map-rows)));
  --board-w: calc(var(--cell) * var(--map-cols));
  --board-h: calc(var(--cell) * var(--map-rows));
  box-sizing: border-box;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--pad) var(--pad) var(--pad) var(--nav);
  overflow: hidden;
}
.view--kiosk { --hint: 6.25rem; }
.page--game {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.intro { max-width: 42rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.intro__eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem;
}
.intro__eyebrow a { color: var(--navy); text-decoration: none; }
.intro__eyebrow a:hover { text-decoration: underline; }
.intro h1 {
  font-family: var(--display); font-weight: 750; font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -.02em;
}
.intro__lead { margin: 0; color: var(--muted); font-size: 1.02rem; }

.game {
  display: grid;
  grid-template-columns: var(--board-w) minmax(var(--pick-min), var(--pick-max));
  grid-template-areas: "board pick";
  gap: var(--gap);
  align-items: start;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
}
.game__board {
  grid-area: board;
  min-width: 0;
  width: var(--board-w);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Desktop: compact round/timer HUD over empty floor (bottom-right of canvas) */
.game__top {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  z-index: 3;
  max-width: min(11.5rem, 46%);
  pointer-events: none;
  transition: opacity .2s ease;
}
.game__top.is-dim {
  opacity: .3;
}
.game__top .hud__card {
  pointer-events: auto;
  margin: 0;
  padding: .45rem .55rem .5rem;
  background: rgba(248, 250, 253, .7);
  box-shadow: 0 4px 14px rgba(10, 27, 51, .1);
  backdrop-filter: blur(4px);
}
.game__top .hud__meters-head { margin-bottom: .35rem; }
.game__top .hud__meters { gap: .85rem; }
.game__top .hud__meters b { font-size: 1.25rem; }
.game__top .hud__meters span { margin-top: .2rem; font-size: .58rem; }
.game__top .hud__bar { height: 3px; margin-top: .45rem; }
.game__play {
  position: relative;
  width: var(--board-w);
  height: var(--board-h);
  flex: 0 0 var(--board-h);
  min-width: 0;
  min-height: 0;
  display: block;
}
.game__play .board {
  width: var(--board-w);
  height: var(--board-h);
  max-width: none;
  box-sizing: border-box;
  margin: 0;
}

.board {
  position: relative;
  display: grid;
  justify-items: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--stock);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 27, 51, .06);
}
.board canvas {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 10 / 8;
  object-fit: contain;
}

.board__over {
  grid-area: 1 / 1;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(10, 27, 51, .96);
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1rem, 3.5vw, 2.2rem);
  text-align: center;
}
.board__over[hidden] { display: none; }

/* notify bar nad planszą — nie zasłania gry */
.game-toast {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: block;
  padding: .55rem .75rem .65rem;
  pointer-events: none;
  background: transparent;
}
.game-toast[hidden] { display: none !important; }
.game-toast__box {
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  display: block;
  text-align: center;
  padding: .7rem 1rem .75rem;
  border-radius: 0 0 10px 10px;
  background: #c62828;
  color: #fff;
  border: 0;
  border-bottom: 2px solid #8e1b1b;
  box-shadow: 0 8px 22px rgba(80, 0, 0, .28);
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.3;
  animation: game-toast-bar 4s ease forwards;
}
.game-toast__box > span {
  display: block;
}
.game-toast__box small {
  display: block;
  margin-top: .35rem;
  font-family: var(--body);
  font-size: clamp(.82rem, 2vw, .95rem);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  opacity: .95;
  line-height: 1.35;
}
.game-toast__hint { display: none !important; }
@keyframes game-toast-bar {
  0%, 75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
.board__box { max-width: 34rem; width: 100%; }
.board__box h3 {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(1.25rem, 3vw, 1.85rem); line-height: 1.15;
  color: #fff; margin: 0 0 .9rem;
}
.board__box p { color: #c7d6ea; margin: 0 0 1.15rem; font-size: .95rem; line-height: 1.6; }
.board__box .btn { margin-top: .25rem; }
.board__note { display: block; margin-top: .8rem; font-size: .85rem; color: #9db2ce; }

.session {
  margin: 0 0 1.15rem;
  padding: .85rem .9rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  text-align: left;
}
.session__lab {
  margin: .85rem 0 .55rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9db2ce;
}
.session > .session__lab:first-child { margin-top: 0; }
.session__opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.session__btn {
  appearance: none; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(10, 27, 51, .45);
  color: #fff;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: .55rem 1rem; border-radius: 6px; min-width: 5.5rem;
}
.session__btn:hover { border-color: rgba(255, 101, 49, .55); }
.session__btn.is-on {
  background: var(--signal);
  color: #FFFFFF;
  border-color: var(--signal);
}
.session__hint {
  margin: .65rem 0 0;
  font-size: .8rem;
  color: #9db2ce;
  line-height: 1.4;
}
.session__check {
  display: flex; align-items: flex-start; gap: .55rem;
  margin-top: .85rem; text-align: left; cursor: pointer;
  font-size: .88rem; color: #e8eef8; line-height: 1.35;
}
.session__check input {
  margin-top: .2rem; accent-color: var(--signal); width: 1rem; height: 1rem; flex-shrink: 0;
}
.session__check em {
  display: block; font-style: normal; font-size: .78rem; color: #9db2ce; margin-top: .15rem;
}

.board__score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin: 1.2rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.board__score div { text-align: center; min-width: 0; }
.board__score b {
  display: block; font-family: var(--display); font-weight: 750;
  font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1; color: #fff;
}
.board__score span {
  display: block; margin-top: .5rem; font-family: var(--mono);
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #9db2ce;
}
.board__score .is-win b { color: var(--signal); }
.board__score--slim { margin-top: 1rem; }

.stats {
  text-align: left;
  margin: 0 0 1.1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}
.stats__lab {
  margin: 0 0 .65rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9db2ce;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem .5rem;
}
.stats__grid b {
  display: block;
  font-family: var(--display);
  font-weight: 750;
  font-size: 1.35rem;
  line-height: 1;
  color: #fff;
}
.stats__grid span {
  display: block;
  margin-top: .3rem;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9db2ce;
}

.stats-compare { margin: 0 0 1rem; }
.stats-table--slim { margin: 0; }
.stats-table__note {
  margin: .55rem 0 0;
  font-size: .78rem;
  line-height: 1.35;
  color: var(--muted);
}
.end-manifest {
  margin: 0 0 .85rem;
  padding: .55rem .7rem;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
  color: #c7d6ea;
  text-align: left;
  line-height: 1.4;
  word-break: break-word;
}
.end-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 0 0 1.15rem;
}
@media (min-width: 720px) {
  .end-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.end-kpis div {
  padding: .7rem .55rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--stock);
  text-align: center;
}
.end-kpis b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.end-kpis span {
  display: block;
  margin-top: .3rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.variant-errors {
  margin: 0 0 1rem;
  padding: .75rem .85rem;
  border: 1px solid #f0c4b8;
  border-radius: 8px;
  background: #fff6f3;
  text-align: left;
}
.variant-errors__lab {
  margin: 0 0 .55rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b85a45;
}
.variant-errors__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.variant-errors__row div {
  text-align: center;
  padding: .4rem .3rem;
}
.variant-errors__row b {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.variant-errors__row span {
  display: block;
  margin-top: .2rem;
  font-size: .72rem;
  color: var(--muted);
}
.variant-errors__note {
  margin: .55rem 0 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.35;
}
.variant-errors__ship {
  margin: .65rem 0 0;
  padding: .65rem .75rem;
  border-radius: 6px;
  background: #fff0ed;
  border: 1px solid #f0c4b8;
  font-size: .88rem;
  color: #7a2e22;
  line-height: 1.45;
}
.variant-errors__ship strong { color: #5c1a12; }
.end-fold {
  text-align: left;
  margin: 0 0 .65rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: .15rem .75rem .75rem;
  background: var(--stock);
}
.end-fold > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: .55rem 0;
  list-style: none;
}
.end-fold > summary::-webkit-details-marker { display: none; }
.end-fold > summary::after {
  content: ' ▾';
  color: var(--muted);
  font-weight: 500;
}
.end-fold .replay,
.end-fold .lb { margin: 0; border: 0; padding: 0; background: transparent; box-shadow: none; }

@media (max-width: 560px) {
  .end-kpis { grid-template-columns: 1fr 1fr; }
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  color: var(--muted);
  text-align: left;
}
.stats-table th,
.stats-table td {
  padding: .55rem .45rem;
  border-bottom: 1px solid var(--rule);
}
.stats-table thead th {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.stats-table tbody th {
  font-weight: 600;
  color: var(--ink);
}
.stats-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}
.stats-table td.is-win { color: var(--navy); }

.lb {
  text-align: left;
  margin: 0 0 1.1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(10, 27, 51, .04);
}
.lb__lab {
  margin: 0 0 .7rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lb__list {
  list-style: none; margin: 0; padding: 0;
  font-size: .92rem; color: var(--muted);
}
.lb__list li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: .55rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.lb__list li:last-child { border-bottom: 0; }
.lb__list .rank {
  font-family: var(--mono); color: var(--muted); font-size: .78rem;
  line-height: 1.45; padding-top: .12rem;
}
.lb__main { min-width: 0; display: grid; gap: .35rem; }
.lb__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .65rem;
}
.lb__list .nick {
  font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
  font-size: .98rem;
}
.lb__list .gain {
  font-weight: 700; font-size: .86rem; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.lb__list .gain--na { font-weight: 600; color: var(--muted); font-size: .78rem; }
.lb__list .is-you .nick { color: var(--navy); }
.lb__meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .55rem;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .02em;
  color: var(--muted);
  line-height: 1.4;
}
.lb__meta-pair em {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .64rem;
  opacity: .85;
  margin-right: .15rem;
}
.lb__meta-pair i {
  font-style: normal;
  opacity: .55;
  margin: 0 .1rem;
}
.lb__meta-sep { opacity: .45; }
.lb__skip {
  margin: 0 0 .85rem;
  font-size: .9rem;
  color: var(--muted);
}
.lb__avg {
  margin: 0 0 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 101, 49, .55);
  border-radius: 10px;
  background: rgba(255, 101, 49, .12);
}
.lb__avg-lab {
  margin: 0 0 .4rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lb__avg-val {
  margin: 0 0 .65rem;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
}
.lb__avg-val strong { color: var(--navy); font-size: 1.2rem; }
.lb__avg-empty {
  margin: 0 0 .65rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.45;
}
.lb__avg-bar {
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.lb__avg-bar i {
  display: block; height: 100%; width: 0;
  background: var(--signal);
}
.lb__avg-meta {
  margin: .45rem 0 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lb__form {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
  margin: .85rem 0 .7rem;
}
.lb__form label {
  flex: 1; min-width: 12rem; display: flex; flex-direction: column; gap: .3rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.lb__form input {
  appearance: none; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
  padding: .6rem .75rem; text-transform: none; letter-spacing: 0;
}
.lb__form input:focus { outline: 2px solid var(--signal); outline-offset: 1px; }
.lb__form .btn { flex-shrink: 0; }
.lb__form .btn:disabled { opacity: .45; cursor: not-allowed; }
.lb__hint { margin: 0 0 .75rem; font-size: .86rem; color: var(--navy); }

.speed-compare {
  text-align: left;
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 101, 49, .55);
  border-radius: 10px;
  background: rgba(255, 101, 49, .14);
}
.speed-compare__val {
  margin: 0 0 .4rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}
.speed-compare__val strong { color: var(--navy); }
.speed-compare__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.replay {
  text-align: left;
  margin: 0 0 1.1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(10, 27, 51, .04);
}
.replay__lab {
  margin: 0 0 .65rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.replay__boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: .75rem;
}
.replay__boards > div span {
  display: block;
  margin-bottom: .3rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
}
.replay__boards canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--stock);
  border: 1px solid var(--rule);
}
.replay__hint {
  margin: 0 0 .65rem;
  font-size: .78rem;
  line-height: 1.35;
  color: var(--muted);
}

.btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: .7rem 1.15rem; border-radius: 6px;
  background: var(--stock); color: var(--ink);
}
.btn--signal { background: var(--signal); color: #FFFFFF; }
.btn--signal:hover { filter: brightness(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.hud { display: grid; gap: .9rem; }
.hud__card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(10, 27, 51, .04);
}
.hud__meters-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .65rem;
}
.hud__meters-head .hud__lab { margin: 0; }
.sfx-toggle {
  appearance: none; border: 1px solid var(--rule); background: var(--stock);
  border-radius: 6px; cursor: pointer; font-size: .9rem; line-height: 1;
  padding: .28rem .4rem; color: var(--ink);
}
.sfx-toggle[aria-pressed="true"] { opacity: .55; }
.sfx-toggle:hover { background: #e4e9f2; }

.pick-tools {
  display: flex; align-items: center; gap: .45rem;
  margin: 0 0 .55rem;
}
.pick-tools__lab {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

.hud__meters { display: flex; gap: 1.4rem; }
.hud__meters div { flex: 1; }
.hud__meters b {
  display: block; font-family: var(--display); font-weight: 750;
  font-size: 1.65rem; line-height: 1;
}
.hud__meters span {
  display: block; margin-top: .35rem; font-family: var(--mono);
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.hud__bar {
  height: 5px; background: var(--rule); border-radius: 3px;
  overflow: hidden; margin-top: .85rem;
}
.hud__bar i { display: block; height: 100%; background: var(--signal); width: 100%; }

.pick { min-height: 8rem; }

.hud.game__pick-wrap {
  grid-area: pick;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-self: start;
  max-width: var(--pick-max);
  max-height: var(--avail-h);
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.hud.game__pick-wrap .pick-tools { flex-shrink: 0; margin: 0; }
.hud.game__pick-wrap .game__pick {
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hud.game__pick-wrap .hud__lab { flex-shrink: 0; }
.hud.game__pick-wrap .pick {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.view--game .pdf,
.view--kiosk .pdf {
  flex: 1;
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.view--game .pdf__stage,
.view--kiosk .pdf__stage {
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.view--game .pdf__sheet,
.view--kiosk .pdf__sheet {
  flex: 1;
}
.view--game .wms,
.view--kiosk .wms {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.view--game .collector,
.view--kiosk .collector {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

/* --- Round 1: paper PDF (Sellasist-like pick list) --- */
.pdf {
  border: 1px solid #b8c0ce;
  border-radius: 6px;
  overflow: hidden;
  background: #5a6578;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.pdf__chrome {
  display: flex; align-items: center; gap: .45rem;
  padding: .4rem .55rem;
  background: linear-gradient(180deg, #6b768a, #555f71);
  color: #e8edf5;
  font-family: var(--mono);
  font-size: .68rem;
}
.pdf__dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: #ff5f57; box-shadow: 1.1rem 0 #febc2e, 2.2rem 0 #28c840;
  margin-right: 2.4rem;
}
.pdf__title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.pdf__dl {
  appearance: none; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1); color: #fff;
  font: inherit; font-size: .62rem; letter-spacing: .04em;
  padding: .2rem .45rem; border-radius: 3px; cursor: pointer;
}
.pdf__dl:hover { background: rgba(255, 255, 255, .18); }
.pdf__stage {
  background: #d8dde6;
  padding: .65rem .6rem .85rem;
  max-height: min(36rem, 74vh);
  overflow: auto;
}
.pdf__sheet {
  background: #fff;
  color: #222;
  padding: .85rem .9rem 1rem;
  border: 1px solid #cfd5de;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  font-family: var(--body);
  font-size: .88rem;
  line-height: 1.35;
  transition: opacity .22s ease, transform .22s ease;
}
.pdf__sheet--leave {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.pdf__sheet--enter {
  opacity: 0;
  transform: translateY(-8px);
}
.pdf__sheet--enter.pdf__sheet--in {
  opacity: 1;
  transform: none;
}
.pdf__top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .55rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid #e6e9ef;
}
.pdf__top-main b { font-size: 1.05rem; }
.pdf__top-meta { margin-top: .2rem; font-size: .75rem; color: #6b7280; }
.pdf__top-side {
  font-size: .78rem;
  color: #6b7280;
  text-align: right;
  white-space: nowrap;
}
.pdf__k { color: #6b7280; font-weight: 600; }
.pdf__ship {
  display: grid;
  gap: .2rem;
  margin-bottom: .7rem;
  font-size: .8rem;
  color: #374151;
}
.pdf__table {
  border: 1px solid #d5dae3;
  border-radius: 2px;
  overflow: hidden;
}
.pdf__row {
  display: grid;
  grid-template-columns: 1.35rem 3.1rem 2.4rem minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: center;
  padding: .55rem .6rem;
  border-bottom: 1px solid #e8ebf0;
  background: #fff;
}
.pdf__row:last-child { border-bottom: 0; }
.pdf__row.is-done { opacity: .72; }
.pdf__row.is-done .pdf__name { text-decoration: line-through; }
.pdf__row.is-bad { background: #fff1f0; }
.pdf__row.is-warn { background: #fffbeb; }
.pdf__row.is-marking {
  background: rgba(255, 101, 49, .28);
  animation: pdf-mark .5s linear infinite;
}
@keyframes pdf-mark {
  0%, 100% { background: rgba(255, 101, 49, .18); }
  50% { background: rgba(255, 101, 49, .42); }
}
.pdf__check {
  width: 1.1rem; height: 1.1rem;
  border: 1.5px solid #9aa3b2;
  border-radius: 2px;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 800; color: #1a7a4c;
  background: #fff;
}
.pdf__check.is-on {
  border-color: #1a7a4c;
  background: #e8f6ee;
}
.pdf__qty {
  display: grid;
  justify-items: start;
  line-height: 1.05;
}
.pdf__qty b {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pdf__qty span {
  font-size: .72rem;
  color: #6b7280;
  font-weight: 600;
}
.pdf__qty--bad b { color: #c62828; }
.pdf__thumb {
  width: 2.35rem; height: 2.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f8fafc;
  display: grid; place-items: center;
  font-size: 1.15rem;
}
.pdf__info { min-width: 0; display: grid; gap: .12rem; }
.pdf__name {
  font-size: .95rem;
  font-weight: 750;
  color: #111827;
  text-transform: capitalize;
}
.pdf__sku-line {
  font-size: .75rem;
  color: #6b7280;
  font-family: var(--mono);
}
.pdf__price {
  font-size: .72rem;
  color: #6b7280;
}
.pdf__price em { font-style: normal; color: #9ca3af; }
.pdf__flag {
  display: inline-block;
  margin-top: .15rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #9a6b00;
}
.pdf__flag--bad { color: #c62828; }
.pdf__flag--warn { color: #9a6b00; }
.pdf__loc {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #111827;
  font-variant-numeric: tabular-nums;
  padding-left: .25rem;
  min-width: 2.4rem;
  text-align: right;
}
.pdf__foot {
  margin-top: .7rem;
  font-size: .72rem;
  color: #6b7280;
  line-height: 1.35;
}

.var-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 3px;
  padding: .18rem .4rem;
  line-height: 1.2;
  white-space: nowrap;
}
.collector__attr .var-chip { vertical-align: middle; margin-left: .15rem; }

/* --- Round 2: WMS collector (Figma WMS-2025) --- */
.wms { display: grid; gap: .55rem; }
.wms__top {
  display: flex; align-items: center; gap: .45rem;
  padding: .15rem 0 .35rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: .15rem;
}
.wms__back {
  display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 4px; color: var(--ink); font-size: 1rem; line-height: 1;
}
.wms__title {
  margin: 0; font-size: .95rem; font-weight: 600; color: var(--ink);
}
.wms__title b { font-weight: 800; }

.collector {
  display: grid; gap: .65rem;
  max-height: min(36rem, 70vh);
  overflow: auto;
  padding-right: .15rem;
}
.collector__sec {
  margin: .15rem 0 0;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b778c;
  font-weight: 700;
}
.collector__sec--done { margin-top: .55rem; opacity: .85; }
.collector__item {
  display: grid; gap: .65rem;
  padding: .75rem .8rem .7rem;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.collector__item.is-next {
  border-color: #9eb6d8;
  box-shadow: 0 0 0 1px rgba(19, 68, 124, .12);
}
.collector__item.is-near:not(.is-done) { border-color: var(--navy); }
.collector__item.is-scanning {
  border-color: var(--signal);
  background: #fffdf5;
  box-shadow: 0 0 0 2px rgba(255, 101, 49, .28);
}
.collector__item.is-done { opacity: .55; background: #f5f7fa; }
.collector__item.is-shake { animation: collector-shake .22s linear 2; }
@keyframes collector-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.collector__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.collector__zebrano span {
  display: block;
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b778c;
  font-weight: 600;
  margin-bottom: .2rem;
}
.collector__zebrano b {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.collector__lokpill {
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--navy);
  border: 2px solid #c5d0e0;
  border-radius: 999px;
  padding: .55rem .85rem;
  background: #fff;
  white-space: nowrap;
}
.collector__lokpill i {
  font-style: normal;
  font-weight: 700;
  font-size: .95rem;
  color: #6b778c;
  margin-left: .2rem;
}
.collector__item.is-next .collector__lokpill,
.collector__item.is-scanning .collector__lokpill {
  border-color: var(--navy);
  background: #eef4fb;
}

.collector__main {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
}
.collector__thumb {
  width: 3.4rem; height: 3.4rem; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 1.55rem; line-height: 1;
  background: #f1f4f8;
  border: 1px solid #e2e7ef;
}
.collector__info { min-width: 0; }
.collector__badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .68rem; font-weight: 700;
  color: #c62828;
  border: 1px solid #f5b5b5;
  background: #fff5f5;
  border-radius: 999px;
  padding: .12rem .45rem;
  margin-bottom: .28rem;
}
.collector__badge.is-scan {
  color: #8a6a00;
  border-color: #f0d26a;
  background: #fff8df;
}
.collector__name {
  margin: 0;
  font-size: .92rem; font-weight: 700;
  color: var(--ink); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.collector__ean,
.collector__attr {
  margin: .18rem 0 0;
  font-size: .74rem;
  color: #6b778c;
  line-height: 1.35;
}

.collector__progress {
  height: 4px; background: #e8edf5; border-radius: 3px; overflow: hidden;
}
.collector__progress > i {
  display: block; height: 100%; width: 0;
  background: var(--navy); transition: width .08s linear;
}
.collector__progress.is-scan > i {
  background: linear-gradient(90deg, #FF6531, #FFEDD5, #FF6531);
  background-size: 200% 100%;
  animation: collector-scanbar 0.7s linear infinite;
}
@keyframes collector-scanbar {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.collector__status {
  appearance: none; border: 0; width: 100%;
  margin: 0;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  font-size: .82rem;
  padding: .65rem .75rem;
  border-radius: 8px;
  background: #d7dde8;
  color: #5a6578;
  cursor: not-allowed;
}
.collector__status.is-ready {
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.collector__status.is-ready:hover { filter: brightness(1.08); }
.collector__status.is-scanning {
  background: var(--ink);
  color: var(--signal);
  cursor: wait;
  animation: collector-pulse 0.8s ease-in-out infinite;
}
.collector__status:disabled:not(.is-scanning):not(.is-ready) {
  opacity: .9;
}
@keyframes collector-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.game__pick:has(.wms) {
  padding: .85rem .9rem 1rem;
  background: #f3f5f8;
}

.pad {
  display: none;
  position: absolute;
  left: .5rem;
  bottom: .5rem;
  z-index: 2;
  grid-template-columns: repeat(3, 3.2rem);
  grid-template-rows: repeat(2, 3.2rem);
  gap: .35rem;
  opacity: .5;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}
body.ctrl-touch .pad,
.pad:not([hidden]) {
  display: grid;
}
.pad[hidden] { display: none !important; }
.pad button {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 8px;
  font-size: 1.2rem;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  min-height: 3.2rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.pad button:hover {
  border-color: var(--navy);
  box-shadow: 0 0 10px rgba(10, 27, 51, .1);
}
.pad button:active,
.pad button.is-held {
  background: var(--signal);
  border-color: var(--signal-dim);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 101, 49, .1);
}
.pad .up { grid-column: 2; grid-row: 1; }
.pad .left { grid-column: 1; grid-row: 2; }
.pad .down { grid-column: 2; grid-row: 2; }
.pad .right { grid-column: 3; grid-row: 2; }

.game__hint { margin: .4rem 0 0; font-size: .86rem; color: var(--muted); flex-shrink: 0; max-width: var(--board-w); }
.game__hint kbd {
  font-family: var(--mono); font-size: .76rem; background: var(--paper);
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 3px;
  padding: .08rem .32rem;
}

@media (max-width: 900px) {
  .view--game,
  .view--kiosk {
    --nav: 0px;
    --hint: 0px;
    --pick-min: 0px;
    --pad: 0.75rem;
    --avail-w: calc(100vw - var(--pad) * 2);
    --avail-h: 100vh;
    --cell: min(72px, calc(var(--avail-w) / var(--map-cols)));
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
    justify-content: flex-start;
    align-items: stretch;
    padding: 3.4rem var(--pad) 1rem;
  }
  .page--game { width: 100%; align-items: stretch; }
  .game {
    grid-template-columns: 1fr;
    grid-template-areas:
      "board"
      "pick";
    gap: .75rem;
    height: auto;
    width: 100%;
  }
  .game__board { width: 100%; height: auto; }
  .game__play {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    flex: none;
    overflow: visible;
  }
  .game__play .board {
    width: 100%;
    height: auto;
    max-width: var(--board-w);
    max-height: none;
    aspect-ratio: 10 / 8;
    margin: 0 auto;
  }
  .hud.game__pick-wrap {
    height: auto;
    max-height: none;
    max-width: none;
  }
  .game__top {
    position: static;
    max-width: none;
    width: 100%;
    margin: 0 0 .55rem;
    pointer-events: auto;
  }
  .game__top.is-dim { opacity: 1; }
  .game__top .hud__card {
    padding: .55rem .7rem .6rem;
    background: var(--paper);
    backdrop-filter: none;
  }
  .game__top .hud__meters b { font-size: 1.2rem; }
  .game__top .hud__bar { height: 4px; margin-top: .45rem; }
  .game__hint { max-width: none; }
  body.ctrl-touch .pad {
    grid-template-columns: repeat(3, 2.85rem);
    grid-template-rows: repeat(2, 2.85rem);
  }
  body.ctrl-touch .pad button { min-height: 2.85rem; font-size: 1.05rem; }
  .pdf__stage { max-height: min(22rem, 42vh); }
  .pdf__loc { font-size: 1.2rem; }
  .pdf__row {
    grid-template-columns: 1.2rem 2.7rem 2rem minmax(0, 1fr) auto;
    gap: .4rem;
    padding: .45rem .5rem;
  }
  .collector { max-height: 18rem; }
}
@media (max-width: 560px) {
  .board__score { grid-template-columns: 1fr 1fr; gap: 1rem .5rem; }
  .board__score div:nth-child(3) {
    grid-column: 1 / -1; padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
}

/* Cross-app switcher — jak game4: prawo góra, małe kwadraty */
.app-switch {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: calc(8px + env(safe-area-inset-right, 0px));
  z-index: 9999;
  display: flex;
  flex-direction: row;
  gap: 4px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  opacity: 0.55;
}
.app-switch a {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #FED7AA;
  border-radius: 6px;
  color: #78716C;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  background: #FFFFFF;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.app-switch a.is-current {
  background: #FF6531;
  border-color: #FF6531;
  color: #FFFFFF;
  opacity: 1;
  transform: none;
}
.app-switch a:hover { background: #FFEDD5; color: #EA580C; border-color: #FF6531; }
.app-switch a.is-current:hover { background: #EA580C; color: #FFFFFF; }
@media (max-width: 900px) {
  .view--landing,
  .view--leaderboard,
  .view--results {
    padding-top: 3.5rem;
  }
  .kiosk-fab { top: 8px; left: 8px; right: auto; }
}

/* Kiosk FAB + standby — same shell as .view--game (no dark stage) */
.kiosk-fab {
  position: fixed;
  top: 12px;
  left: 12px;
  right: auto;
  z-index: 10000;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--navy);
  font: 700 .78rem var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem .7rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 27, 51, .08);
}
.kiosk-fab:hover { border-color: var(--navy); background: var(--signal); color: #FFFFFF; }

.view--kiosk {
  min-height: 100vh;
}
.view--kiosk[hidden] { display: none !important; }
.view--kiosk .board .kiosk-toast {
  position: absolute;
  top: .55rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: var(--signal);
  color: #FFFFFF;
  font: 700 .82rem var(--body);
  padding: .4rem .75rem;
  border-radius: 6px;
  border: 1px solid var(--signal-dim);
  box-shadow: 0 6px 16px rgba(10, 27, 51, .12);
  white-space: nowrap;
  pointer-events: none;
}
.view--kiosk .board .kiosk-toast[hidden] { display: none !important; }
.kiosk-cta-line {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.kiosk-cta-line .btn { width: auto; }
