/* ══════════════════════════════════════════════════════════════════════════
   Circle Kiosk — form-factor layer
   The kiosk is a large touchscreen / wall display viewed from a distance, so
   this file scales the dashboard design system UP: everything here sits on
   top of tokens.css + components.css and introduces no colours of its own.
   One screen at a time — no sidebar, no topbar.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Scale ───────────────────────────────────────────────────────────────
   The kiosk unit: ~1.5x the dashboard's 16px base, fluid with viewport width.
   All sizes below are multiples of it. */
:root {
  --kiosk-unit: clamp(18px, 1.4vw, 26px);
  font-size: var(--kiosk-unit);
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;            /* the kiosk never scrolls the page itself */
  background: var(--color-cream);
  color: var(--color-font);
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

/* Fullscreen stage: each screen fills the display and centers its content. */
.kiosk-screen {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 6vh 8vw;
}
.kiosk-screen > * { max-width: 60rem; width: 100%; }

/* ── Type ──────────────────────────────────────────────────────────────── */
h1 {
  font-size: calc(var(--kiosk-unit) * 3);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 calc(var(--kiosk-unit) * 0.6);
}
.kiosk-sub {
  font-size: calc(var(--kiosk-unit) * 1.3);
  color: var(--text-secondary, #6B6560);
  margin: 0 0 calc(var(--kiosk-unit) * 2.5);
}

/* ── Touch targets ───────────────────────────────────────────────────────
   Dashboard floor is 44px; at TV distance the floor is 72px. */
.circle-btn {
  min-height: 72px;
  padding: 22px 40px;
  font-size: calc(var(--kiosk-unit) * 1.2);
  border-radius: 18px;
}
.circle-btn-block { width: 100%; }

.kiosk-actions {
  display: grid;
  gap: calc(var(--kiosk-unit) * 1.2);
  width: 100%;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.kiosk-card {
  background: var(--color-surface);
  border: 1px solid rgba(220, 182, 136, 0.15);   /* dashboard's sand hairline */
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.06));
  padding: calc(var(--kiosk-unit) * 2);
}

/* ── Brand mark ────────────────────────────────────────────────────────── */
.kiosk-mark {
  width: calc(var(--kiosk-unit) * 4);
  height: calc(var(--kiosk-unit) * 4);
  border-radius: 50%;
  background: var(--color-orange);
  margin: 0 auto calc(var(--kiosk-unit) * 1.5);
}
.kiosk-centered { text-align: center; }

/* ── Offline screen (JS-rendered variant of the shell's raw/offline.html) */
.kiosk-offline-note {
  margin-top: calc(var(--kiosk-unit) * 1.5);
  font-size: calc(var(--kiosk-unit) * 0.8);
  color: var(--disabled, #C5C2BD);
}

/* ── Short landscape viewports (phones/small tablets in landscape) ────────
   The unit is width-driven, but the stage is height-bound: on a short
   viewport the full stack overflows the non-scrolling stage and clips.
   Derive the unit from height too (and relax the padding + button floor)
   so the stack always fits. The TV (>=1080px tall) is unaffected:
   min(1.4vw, 2.6vh) at 1920×1080 is 1.4vw, so the cap still wins. */
@media (orientation: landscape) and (max-height: 600px) {
  :root { --kiosk-unit: clamp(10px, min(1.4vw, 2.4vh), 18px); }
  .kiosk-screen { padding: 3vh 6vw; }
  .circle-btn { min-height: 64px; padding: 14px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}