/* Eva holobox-scherm
   Regel 1: zwart = doorzichtig in de holobox. Achtergrond blijft altijd #000.
   Regel 2: rustig, één tile tegelijk, naast Eva op schouderhoogte. */

:root {
  --bg: #000;
  --ink: #f4f8ff;
  --ink-2: rgba(232, 242, 255, .72);
  --ink-3: rgba(232, 242, 255, .48);
  --accent: #8cc8ff;
  --accent-2: #b9a4ff;
  --ok: #7ef0c0;
  --warn: #ffcf7a;
  --alert: #ff6b6b;
  --glass: rgba(255, 255, 255, .07);
  --glass-2: rgba(255, 255, 255, .12);
  --edge: rgba(255, 255, 255, .22);
  --radius: 34px;
  --panel-w: 300px;
  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #07080b; color: var(--ink); }
body {
  font-family: var(--sans);
  display: flex;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }

/* ---------- Bedieningspaneel (alleen webpreview) ---------- */
.panel {
  width: var(--panel-w);
  flex: none;
  height: 100%;
  overflow-y: auto;
  padding: 22px 20px 28px;
  background: #0d0f14;
  border-right: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.panel__brand { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.panel__brand strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .01em; }
.panel__brand small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12px; }
.panel__dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent) 45%, var(--accent-2));
  box-shadow: 0 0 14px var(--accent);
}
.panel__card {
  display: flex; flex-direction: column; gap: 12px; padding: 14px;
  border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06);
}
.panel__group { display: flex; flex-direction: column; gap: 10px; }
.panel__group h2 {
  margin: 0; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.panel__status { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.panel__status i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.panel__status[data-state="busy"] i { background: var(--warn); }
.panel__status[data-state="live"] i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.panel__dev { padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .1); }
.panel__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.panel__foot p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); text-align: center; }

.btn {
  appearance: none; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05); border-radius: 12px;
  padding: 11px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, transform .1s;
}
.btn:hover { background: rgba(255, 255, 255, .09); }
.btn:active { transform: scale(.98); }
.btn--primary {
  border-color: transparent; color: #04101f;
  background: linear-gradient(135deg, #cfe8ff, var(--accent) 55%, var(--accent-2));
}
.btn--primary:hover { filter: brightness(1.07); background: linear-gradient(135deg, #cfe8ff, var(--accent) 55%, var(--accent-2)); }
.btn--ghost { background: transparent; font-weight: 500; color: var(--ink-2); }
.btn--stop { border-color: rgba(255, 107, 107, .35); color: #ffd6d6; background: rgba(255, 107, 107, .08); }
.btn--stop:hover { background: rgba(255, 107, 107, .14); }
.btn:disabled { opacity: .5; cursor: default; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.seg button {
  appearance: none; border: 0; background: transparent; border-radius: 9px;
  padding: 8px 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer;
}
.seg button[aria-checked="true"] { background: rgba(255, 255, 255, .12); color: var(--ink); }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chips button {
  appearance: none; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03);
  border-radius: 10px; padding: 9px 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; text-align: left;
  transition: border-color .2s, color .2s, background .2s;
}
.chips button:hover { border-color: rgba(140, 200, 255, .5); color: var(--ink); background: rgba(140, 200, 255, .06); }

.toggle { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- Het scherm (de box) ---------- */
body > .stage { margin: auto; }
.stage {
  position: relative;
  height: min(100vh, calc((100vw - var(--panel-w)) * 16 / 9));
  aspect-ratio: 9 / 16;
  background: var(--bg);
  overflow: hidden;
  container-type: size;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
}
/* alle maten in het scherm schalen mee met de hoogte (cqh) */

.kiosk .panel { display: none; }
.kiosk .stage { height: 100vh; max-width: 100vw; box-shadow: none; }
.kiosk { background: #000; cursor: none; }

/* Gloed: zachte kleurvlekken, alleen zichtbaar als er een tile staat of Eva praat */
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35; transition: opacity 1.2s var(--ease); }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(9cqh); mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 48cqh; height: 48cqh; left: 30%; top: 18%; background: rgba(80, 150, 255, .45); }
.aurora span:nth-child(2) { width: 38cqh; height: 38cqh; left: 52%; top: 34%; background: rgba(150, 110, 255, .38); animation-duration: 28s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 30cqh; height: 30cqh; left: 10%; top: 46%; background: rgba(60, 220, 210, .25); animation-duration: 34s; animation-delay: -12s; }
.stage[data-tile="on"] .aurora, .stage[data-state="speaking"] .aurora { opacity: .85; }
.stage.no-aurora .aurora { display: none; }
.stage[data-alert="on"] .aurora span { background: rgba(255, 70, 70, .45); }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6cqh, 3cqh) scale(1.12); }
  100% { transform: translate(4cqh, -4cqh) scale(.94); }
}

/* Bovenbalk */
.stage__top {
  position: absolute; z-index: 5; top: 2.4cqh; left: 3cqh; right: 3cqh;
  display: flex; justify-content: space-between; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 1cqh;
  padding: .9cqh 1.8cqh; border-radius: 999px;
  font-size: 1.45cqh; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  transition: color .3s, background .3s;
}
.pill i { width: 1cqh; height: 1cqh; border-radius: 50%; background: var(--ink-3); transition: background .3s, box-shadow .3s; }
.stage[data-state="listening"] .pill i { background: var(--ok); box-shadow: 0 0 1.2cqh var(--ok); animation: blink 1.6s ease-in-out infinite; }
.stage[data-state="speaking"] .pill i { background: var(--accent); box-shadow: 0 0 1.2cqh var(--accent); }
.stage[data-state="connecting"] .pill i { background: var(--warn); animation: blink .8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.clock { font-family: var(--mono); font-size: 1.9cqh; font-weight: 300; letter-spacing: .04em; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Eva ---------- */
.eva {
  position: absolute; z-index: 1;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 46cqh; height: 88cqh;
  transition: left 1s var(--ease), transform 1s var(--ease);
}
/* als er een tile staat schuift Eva iets naar links, zodat de tile naast haar zweeft */
.stage[data-tile="on"] .eva { left: 23.5%; }
.eva__video { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.eva__standin { position: absolute; inset: 0; }
.eva__halo {
  position: absolute; left: 50%; top: 4cqh; width: 30cqh; height: 30cqh; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 200, 255, .28), rgba(140, 200, 255, 0) 65%);
  transition: transform .12s linear, opacity .3s;
  transform: translateX(-50%) scale(calc(1 + var(--lvl, 0) * .5));
}
.eva__figure {
  position: absolute; left: 50%; bottom: 0; height: 84cqh; transform: translateX(-50%);
  animation: breathe 6s ease-in-out infinite;
  filter: drop-shadow(0 0 calc(1cqh + var(--lvl, 0) * 3cqh) rgba(140, 200, 255, .7));
}
@keyframes breathe { 50% { transform: translateX(-50%) translateY(-.5cqh) scale(1.006); } }
.eva__rings { position: absolute; left: 50%; top: 2.5cqh; width: 18cqh; height: 18cqh; transform: translateX(-50%); pointer-events: none; }
.eva__rings span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(160, 210, 255, .5); opacity: 0;
}
.stage[data-state="speaking"] .eva__rings span { animation: ring 2.4s var(--ease) infinite; }
.stage[data-state="speaking"] .eva__rings span:nth-child(2) { animation-delay: .8s; }
.stage[data-state="speaking"] .eva__rings span:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.eva__name {
  position: absolute; left: 50%; bottom: 3cqh; transform: translateX(-50%);
  font-size: 1.6cqh; letter-spacing: .5em; text-transform: uppercase; color: var(--ink-3); padding-left: .5em;
}
.stage[data-state="idle"] .eva__figure { opacity: .75; }

/* ---------- Tiles ----------
   Eén vaste opbouw voor elke tile:
   1. kop      (icoon + label, mono, klein)
   2. titel    (serif)  of  held (groot getal)
   3. regels   (label links, waarde rechts, haarlijn ertussen)
   4. voet     (één statusregel met stip)
   Geen losse pillen. Alles links uitgelijnd op één raster van 3cqh. */
.tiles {
  position: absolute; z-index: 3;
  right: 2.8cqh; top: 23cqh;      /* schouderhoogte */
  width: 27cqh;
  pointer-events: none;
}
.tile {
  --pad: 3cqh;
  position: absolute; top: 0; right: 0; width: 100%;
  padding: var(--pad) var(--pad) calc(var(--pad) + .4cqh);
  border-radius: 3cqh;
  color: var(--ink);
  pointer-events: auto;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, .06)),
    rgba(14, 22, 40, .34);
  backdrop-filter: blur(2.6cqh) saturate(160%);
  -webkit-backdrop-filter: blur(2.6cqh) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 3cqh 7cqh rgba(0, 0, 0, .55);
  transform-origin: 0% 30%;
  animation: tileIn .9s var(--spring) both;
  overflow: hidden;
}
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, .02) 70%, rgba(170, 200, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.tile::after {
  content: ""; position: absolute; top: -50%; left: -60%; width: 35%; height: 200%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: rotate(16deg); animation: sheen 1.8s .3s var(--ease) both;
}
@keyframes sheen { from { left: -60%; } to { left: 130%; } }
@keyframes tileIn {
  0% { opacity: 0; transform: translateX(-5cqh) scale(.9); filter: blur(1cqh); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
.tile.is-leaving { animation: tileOut .55s var(--ease) both; }
@keyframes tileOut { to { opacity: 0; transform: translateY(-2cqh) scale(.95); filter: blur(1cqh); } }

.tile > * { animation: rise .7s var(--ease) both; }
.tile > *:nth-child(2) { animation-delay: .1s; }
.tile > *:nth-child(3) { animation-delay: .18s; }
.tile > *:nth-child(4) { animation-delay: .26s; }
.tile > *:nth-child(5) { animation-delay: .34s; }
.tile > *:nth-child(6) { animation-delay: .42s; }
@keyframes rise { from { opacity: 0; transform: translateY(1cqh); } }

/* 1. kop */
.t-kicker {
  display: flex; align-items: center; gap: .9cqh;
  font-family: var(--mono); font-size: 1.15cqh; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 2.2cqh;
}
.t-kicker svg { width: 1.7cqh; height: 1.7cqh; flex: none; color: var(--accent); }
.t-kicker span { white-space: nowrap; }
.t-kicker em { font-style: normal; margin-left: auto; color: var(--ink-3); }

/* 2. titel / held */
.t-title {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: 3.5cqh; line-height: 1.04; letter-spacing: -.005em;
  text-wrap: balance;
}
.t-sub { margin: .8cqh 0 0; font-size: 1.55cqh; line-height: 1.4; color: var(--ink-2); }
.t-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5cqh;
  margin-top: 1.6cqh;
}
.t-num {
  font-family: var(--sans); font-weight: 200; font-size: 6.8cqh; line-height: .86; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.t-side { text-align: right; padding-bottom: .4cqh; }
.t-side small { display: block; font-family: var(--mono); font-size: 1cqh; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .4cqh; }
.t-side b { font-family: var(--mono); font-weight: 500; font-size: 2.6cqh; line-height: 1; white-space: nowrap; }
.t-body { margin: 1.4cqh 0 0; font-size: 1.55cqh; line-height: 1.55; color: var(--ink-2); }
.t-quote { margin: 1.6cqh 0 0; padding-left: 1.4cqh; border-left: 1px solid rgba(255, 255, 255, .25); font-family: var(--serif); font-style: italic; font-size: 1.9cqh; line-height: 1.35; color: var(--ink-2); }

/* 3. regels */
.t-rows { margin: 2.2cqh 0 0; padding: 0; }
.t-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5cqh;
  padding: 1.05cqh 0; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 1.5cqh;
}
.t-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.t-row > span { color: var(--ink-3); white-space: nowrap; }
.t-row > b { font-weight: 500; text-align: right; color: var(--ink); min-width: 0; }
.t-row .m { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-row.is-dim { opacity: .5; }
.t-row.is-cancel b { text-decoration: line-through; color: var(--ink-3); }
/* vertrekregel: tijd | richting | spoor */
.t-row--dep { display: grid; grid-template-columns: 6.4cqh 1fr auto; column-gap: 1cqh; align-items: baseline; }
.t-row--dep > b:nth-child(2) { text-align: left; font-weight: 400; color: var(--ink-2); line-height: 1.25; }
.t-row--dep .m:first-child { color: var(--ink); }

/* 4. voet */
.t-foot {
  display: flex; align-items: center; gap: 1cqh; margin-top: 2cqh;
  font-size: 1.4cqh; color: var(--ink-2);
}
.t-foot i { width: .9cqh; height: .9cqh; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 1cqh var(--ok); }
.t-foot.is-warn i { background: var(--warn); box-shadow: 0 0 1cqh var(--warn); }
.t-foot.is-warn { color: var(--warn); }
.t-foot.is-alert i { background: var(--alert); box-shadow: 0 0 1cqh var(--alert); }

/* looptijd */
.t-walk { margin-top: 2cqh; }
.t-walk__label { display: flex; justify-content: space-between; font-size: 1.4cqh; color: var(--ink-2); margin-bottom: .9cqh; }
.t-walk__label b { font-weight: 500; color: var(--ink); }
.t-walk__bar { height: .45cqh; border-radius: 1cqh; background: rgba(255, 255, 255, .1); overflow: hidden; }
.t-walk__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #e6f3ff); animation: fill 1.6s .5s var(--ease) forwards; }
.t-walk.is-tight .t-walk__bar i { background: linear-gradient(90deg, var(--warn), #fff1d6); }
@keyframes fill { to { width: var(--w, 60%); } }

/* weericoon in de held */
.t-wx { width: 9.5cqh; height: 9.5cqh; flex: none; margin-bottom: -.6cqh; }
.t-wx svg { width: 100%; height: 100%; overflow: visible; }
.wx-sun { animation: spin 40s linear infinite; transform-origin: 32px 32px; }
.wx-cloud { animation: float 6s ease-in-out infinite; }
.wx-drop { animation: drop 1.4s linear infinite; }
.wx-drop:nth-of-type(2) { animation-delay: .45s; }
.wx-drop:nth-of-type(3) { animation-delay: .9s; }
.wx-flake { animation: drop 3s linear infinite; }
.wx-bolt { animation: flash 3.5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateX(3px); } }
@keyframes drop { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes flash { 0%, 86%, 100% { opacity: .25; } 88%, 92% { opacity: 1; } }

/* route-stappen */
.t-steps { list-style: none; margin: 2.2cqh 0 0; padding: 0; counter-reset: s; }
.t-steps li {
  position: relative; display: grid; grid-template-columns: 3.4cqh 1fr; align-items: start;
  padding: 1.05cqh 0; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 1.55cqh; line-height: 1.38; animation: rise .6s var(--ease) both;
}
.t-steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.t-steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: 1.2cqh; font-weight: 500; color: var(--accent); padding-top: .25cqh;
}
.t-steps li:last-child::before { color: var(--ok); }


/* looproute: kaartje met haarlijnen */
.t-map {
  position: relative; margin: .4cqh calc(var(--pad) * -.35) 1.6cqh; border-radius: 1.6cqh; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, rgba(120, 170, 255, .08), transparent 60%), rgba(255, 255, 255, .025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: rise .7s .15s var(--ease) both;
}
.t-map__svg { display: block; width: 100%; height: auto; aspect-ratio: 300 / 165; }
.t-map__streets path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.t-map .st--straat { stroke: rgba(255, 255, 255, .16); stroke-width: 1.1; }
.t-map .st--hoofd { stroke: rgba(255, 255, 255, .28); stroke-width: 2; }
.t-map .st--pad { stroke: rgba(255, 255, 255, .1); stroke-width: .7; stroke-dasharray: 2 2; }
.t-map .st--water { stroke: rgba(110, 170, 255, .35); stroke-width: 3.2; }
.t-map .st--spoor { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 5 2.5; }
.t-map__glow { fill: none; stroke: var(--accent); stroke-width: 6; opacity: .45; stroke-linecap: round; stroke-linejoin: round; }
.t-map__route {
  fill: none; stroke: #eaf5ff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawRoute 2.2s .55s var(--ease) forwards;
}
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
.t-map__here { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.t-map__pulse { fill: var(--accent); opacity: .35; transform-box: fill-box; transform-origin: center; animation: mapPulse 2.4s ease-out infinite; }
@keyframes mapPulse { from { transform: scale(.4); opacity: .55; } to { transform: scale(1.8); opacity: 0; } }
.t-map__pin { opacity: 0; animation: pinDrop .6s 2.5s var(--ease) forwards; }
.t-map__pin path { fill: var(--ok); stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.t-map__pin circle { fill: #0b1220; }
@keyframes pinDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.t-map__lbl {
  position: absolute; transform: translate(-50%, calc(-100% - 1.4cqh)); white-space: nowrap;
  font-family: var(--mono); font-size: 1cqh; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  padding: .3cqh .7cqh; border-radius: .6cqh; background: rgba(0, 0, 0, .55);
}
.t-map__lbl { --tx: -50%; transform: translate(var(--tx), calc(-100% - 1.4cqh)); }
.t-map__lbl.is-left { --tx: -1.2cqh; }
.t-map__lbl.is-right { --tx: calc(-100% + 1.2cqh); }
.t-map__lbl.is-below { transform: translate(var(--tx), 1.4cqh); }
.t-del { white-space: nowrap; color: var(--warn); }
.t-steps--compact li { padding: .5cqh 0; font-size: 1.25cqh; }

/* bevestigingsvinkje in de kop */
.t-kicker .ok { color: var(--ok); }

/* nood */
.tile--alert {
  background:
    linear-gradient(170deg, rgba(255, 120, 120, .26), rgba(255, 60, 60, .06) 45%, rgba(255, 80, 80, .14)),
    rgba(60, 0, 0, .42);
  box-shadow: inset 0 1px 0 rgba(255, 200, 200, .45), 0 0 6cqh rgba(255, 60, 60, .35), 0 3cqh 7cqh rgba(0, 0, 0, .55);
  animation: tileIn .7s var(--spring) both, alertPulse 2.2s 1s ease-in-out infinite;
}
.tile--alert::before { background: linear-gradient(160deg, rgba(255, 200, 200, .9), rgba(255, 80, 80, .25)); }
.tile--alert .t-kicker, .tile--alert .t-kicker svg { color: #ffb3b3; }
.tile--alert .t-num { font-weight: 600; font-size: 10cqh; letter-spacing: -.03em; text-shadow: 0 0 3cqh rgba(255, 80, 80, .8); }
.tile--alert .t-row { border-color: rgba(255, 200, 200, .16); }
@keyframes alertPulse { 50% { box-shadow: inset 0 1px 0 rgba(255, 200, 200, .45), 0 0 9cqh rgba(255, 60, 60, .6), 0 3cqh 7cqh rgba(0, 0, 0, .55); } }

/* resterende tijd */
.tile__timer { position: absolute; left: var(--pad); right: var(--pad); bottom: 1.1cqh; height: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; animation: none !important; }
.tile__timer i { display: block; height: 100%; background: rgba(255, 255, 255, .4); transform-origin: left; animation: timer var(--dur, 30s) linear forwards; }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Rustscherm-knop ---------- */
.tapstart {
  position: absolute; z-index: 6; left: 50%; bottom: 12cqh; transform: translateX(-50%);
  appearance: none; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1.6cqh;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.tapstart__ring {
  width: 8cqh; height: 8cqh; border-radius: 50%;
  border: 1px solid rgba(160, 210, 255, .55);
  box-shadow: inset 0 0 2cqh rgba(140, 200, 255, .25), 0 0 3cqh rgba(140, 200, 255, .25);
  position: relative;
}
.tapstart__ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(160, 210, 255, .5); animation: ring 2.8s var(--ease) infinite; }
.tapstart__label { font-size: 1.8cqh; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); }
.stage:not([data-state="idle"]) .tapstart { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(2cqh); }

/* ---------- Toast ---------- */
.toast {
  position: absolute; z-index: 7; left: 50%; top: 8cqh; transform: translate(-50%, -1cqh);
  padding: 1cqh 2cqh; border-radius: 999px; font-size: 1.5cqh;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(1.5cqh); -webkit-backdrop-filter: blur(1.5cqh);
  opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Telefoon/smal: paneel boven het scherm ---------- */
@media (max-width: 760px) {
  body { flex-direction: column; overflow: auto; }
  .panel { width: 100%; height: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); padding: 16px; }
  .panel__foot p { display: none; }
  .stage { height: auto; width: 100%; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
