@font-face { font-family: "D7"; src: url(fonts/DSEG7Classic-Bold.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "D14"; src: url(fonts/DSEG14Classic-Bold.woff2) format("woff2"); font-display: block; }

:root {
  --red: #ff2a1a; --green: #2bff5a; --amber: #ffb81c;
  --bg: #0b0c0e; --panel: #16191d; --chrome1: #eef1f4; --chrome2: #8a919a;
  --orange: #ff7a00;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: #e8eaed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
body { background:
  radial-gradient(ellipse at 50% -20%, #262a30 0%, transparent 60%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 4px), var(--bg); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

#app { position: relative; z-index: 1; height: 100dvh; display: flex; flex-direction: column; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .18em; }
.brand { font-weight: 800; color: #c9ced4; display: flex; align-items: center; gap: 8px; flex: 1; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.conn { display: flex; align-items: center; gap: 6px; letter-spacing: .05em; color: #9aa0a6; }
.conn .led { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.conn.ok .led { background: var(--green); box-shadow: 0 0 8px var(--green); }
.conn.wait .led { background: var(--amber); }
.reset { background: none; border: 1px solid #333; color: #888; border-radius: 8px; width: 32px; height: 28px; }
.reset.armed { border-color: var(--red); color: var(--red); }

/* ---------- time circuits ---------- */
.circuits { container-type: inline-size; display: flex; flex-direction: column; gap: 1.2cqw;
  padding: 2cqw; border-radius: 10px;
  background: linear-gradient(180deg, #3a3f46, #23272c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 30px rgba(0,0,0,.6); }
.tc-row { display: grid; grid-template-columns: auto auto auto auto auto auto auto; gap: 1.2cqw; align-items: end; justify-content: center;
  position: relative; padding-bottom: 3.4cqw; }
.tc-cell { display: flex; flex-direction: column; align-items: center; gap: .4cqw; }
.tc-cap { font-size: 1.55cqw; font-weight: 800; letter-spacing: .1em; color: #111; background: #c9ced4;
  padding: .15cqw .6cqw; border-radius: 2px; }
.tc-win { position: relative; background: #050505; border-radius: 3px; padding: .7cqw .8cqw;
  box-shadow: inset 0 0 0 .3cqw #1d1d1d, inset 0 0 2cqw #000; font-size: 5.2cqw; line-height: 1; }
.tc-win .g, .tc-win .v { white-space: pre; }
.tc-win .g { opacity: .09; }
.tc-win .v { position: absolute; left: .8cqw; top: .7cqw; }
.tc-win.alpha { font-family: "D14"; }
.tc-win.num { font-family: "D7"; }
.tc-ampm { display: flex; flex-direction: column; gap: 1cqw; align-items: center; padding-bottom: .6cqw; }
.tc-ampm span { font-size: 1.4cqw; font-weight: 800; color: #111; background: #c9ced4; padding: 0 .4cqw; border-radius: 2px; }
.tc-ampm i { display: block; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #2a2a2a; margin: .25cqw auto 0; }
.tc-colon { display: flex; flex-direction: column; gap: 1.2cqw; padding: 0 .2cqw 1.8cqw; }
.tc-colon i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #2a2a2a; }
.tc-label { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 1.8cqw; font-weight: 900;
  letter-spacing: .22em; color: #fff; background: #0a0a0a; padding: .25cqw 2cqw; border-radius: 2px; white-space: nowrap; }

.tc-row[data-row="dest"] { --c: var(--red); }
.tc-row[data-row="present"] { --c: var(--green); }
.tc-row[data-row="last"] { --c: var(--amber); }
.tc-win .v { color: var(--c); text-shadow: 0 0 .6cqw var(--c), 0 0 2cqw color-mix(in srgb, var(--c) 60%, transparent); }
.tc-win .g { color: var(--c); }
.tc-ampm i.on, .tc-colon.on i { background: var(--c); box-shadow: 0 0 1cqw var(--c); }
.tc-row.blank .v { opacity: 0; }
.tc-row.rolling .v { animation: roll .08s steps(2) infinite; }
@keyframes roll { 50% { opacity: .4; } }

/* ---------- stage ---------- */
.stage { flex: 1; min-height: 0; position: relative; }
.drive { height: 100%; display: flex; align-items: center; justify-content: center; gap: 4%; }
.flux { height: 100%; max-height: 100%; aspect-ratio: 300/330; max-width: 48%; }
.flux svg { width: 100%; height: 100%; }
.tubes path { stroke: #2b3036; stroke-width: 16; stroke-linecap: round; }
.caps circle { fill: #4a5058; stroke: #111; stroke-width: 3; }
.lights path { stroke: #fff4c2; stroke-width: 7; stroke-linecap: round; fill: none;
  stroke-dasharray: 6 26; opacity: .25; animation: flow var(--fd, 1.8s) linear infinite; }
.corebg { fill: #2b3036; }
.coreglow { opacity: .15; transform-origin: 150px 185px; transform: scale(.6); transition: opacity .2s; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.drive.on .lights path { opacity: .9; }
.drive.on .coreglow { animation: pulse var(--fd, 1.8s) ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }

.speedo { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.speed-digits { position: relative; font-family: "D7"; font-size: clamp(64px, 14vw, 220px); line-height: 1;
  background: #050505; padding: .12em .18em; border-radius: 8px; box-shadow: inset 0 0 0 4px #222; }
.speed-digits .ghost { color: var(--orange); opacity: .08; }
.speed-digits #speedVal { position: absolute; right: .18em; top: .12em; color: var(--orange);
  text-shadow: 0 0 .08em var(--orange), 0 0 .3em rgba(255,122,0,.6); }
.speed-unit { font-weight: 900; letter-spacing: .4em; color: #c9ced4; font-size: clamp(14px, 2vw, 28px); }
.speed-bar { position: relative; width: 100%; height: 10px; background: #1c1f23; border-radius: 6px; overflow: hidden; }
.speed-bar div { height: 100%; width: 0; background: linear-gradient(90deg, #ffb81c, #ff2a1a); }
.hint { color: #9aa0a6; font-size: clamp(13px, 1.6vw, 22px); text-align: center; }
.speedo.at88 .speed-digits { animation: shake .06s infinite; }
@keyframes shake { 50% { transform: translate(2px, -2px); } }

/* ---------- herinnering ---------- */
.memory { position: absolute; inset: 0; display: flex; gap: 3%; align-items: center; justify-content: center;
  animation: arrive 1.4s ease-out both; }
@keyframes arrive { 0% { opacity: 0; filter: brightness(4) blur(8px); transform: scale(1.06); } 100% { opacity: 1; filter: none; transform: none; } }
.mem-photo { height: 100%; max-width: 50%; aspect-ratio: 4/3; border-radius: 6px; background: #111 center/cover no-repeat;
  border: 8px solid #f3efe6; box-shadow: 0 10px 40px rgba(0,0,0,.7); transform: rotate(-2deg); filter: sepia(.25) contrast(1.05); }
.mem-body { max-width: min(60vw, 900px); }
.mem-date { font-family: "D14"; color: var(--green); font-size: clamp(14px, 2vw, 30px); text-shadow: 0 0 10px var(--green); }
.mem-title { margin: .3em 0; font-size: clamp(26px, min(5vw, 9vh), 96px); line-height: 1.05; font-weight: 900;
  background: linear-gradient(180deg, #fff 0%, #ffd36b 45%, #ff7a00 55%, #b3261e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; letter-spacing: -.01em; }
.mem-text { font-size: clamp(16px, min(2.3vw, 4vh), 40px); line-height: 1.4; color: #dfe2e6; margin: 0; }
.memory.finale .mem-title { font-size: clamp(36px, min(7vw, 13vh), 140px); }

/* ---------- bediening (telefoon) ---------- */
.controls { flex: none; }
.panel { background: var(--panel); border: 1px solid #262a30; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.panel-title { font-weight: 700; color: #c9ced4; text-align: center; }
.panel-title.big { font-size: 22px; color: var(--orange); padding: 18px 0; }
.dest-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-height: 22dvh; overflow: auto; }
.dest { background: #0a0a0a; border: 1px solid #333; color: var(--red); border-radius: 10px; padding: 8px 12px;
  font-family: "D14"; font-size: 14px; text-shadow: 0 0 6px var(--red); }
.dest small { display: block; font-family: system-ui, sans-serif; color: #9aa0a6; font-size: 11px; text-shadow: none; margin-top: 3px; }
.dest.done { border-color: #2b5; }
.manual { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.manual input { background: #0a0a0a; border: 1px solid #333; color: #eee; border-radius: 10px; padding: 10px; font: inherit; min-width: 0; color-scheme: dark; }
.btn { background: linear-gradient(180deg, var(--chrome1), var(--chrome2)); color: #111; border: 0; border-radius: 10px;
  padding: 11px 16px; font-weight: 800; }
.ghostbtn { background: none; color: #9aa0a6; border: 1px solid #333; }

/* ---------- effecten ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 21; }
#flash.go { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { opacity: 0; } 4% { opacity: 1; } 10% { opacity: .2; } 14% { opacity: 1; } 100% { opacity: 0; } }
body.shake .circuits, body.shake .speedo, body.shake .flux svg, body.mode-remote.shake .stage { animation: shake .05s infinite; }

/* ---------- TV ---------- */
.tv-start { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(5,6,8,.94); }
.tv-start-inner { display: flex; gap: 48px; align-items: center; padding: 40px; }
.tv-start h2 { font-size: 44px; margin: 0 0 6px; }
.tv-start p { font-size: 22px; color: #9aa0a6; margin: 0 0 24px; }
.tv-start .small { font-size: 15px; margin-top: 10px; }
.tv-qr, .corner-qr { background: #fff; padding: 14px; border-radius: 12px; line-height: 0; }
.tv-qr svg { width: 280px; height: 280px; }
.corner-qr { position: fixed; right: 20px; bottom: 20px; z-index: 15; padding: 10px; text-align: center; line-height: 1; }
.corner-qr svg { width: 140px; height: 140px; display: block; }
.corner-qr span { color: #111; font-size: 12px; font-weight: 700; display: block; margin-top: 6px; }

/* telefoon: compacter */
@media (max-width: 700px) {
  .mem-body { max-width: 100%; }
  .drive { gap: 10px; }
  .flux { max-width: 42%; }
  .speed-digits { font-size: 22vw; }
  .memory { flex-direction: column; gap: 10px; overflow: auto; justify-content: flex-start; }
  .mem-photo { height: auto; width: 80%; max-width: 80%; flex: none; }
  .mem-body { text-align: center; }
}
@media (max-height: 560px) and (orientation: landscape) { body.mode-remote .flux { display: none; } }

/* =================================================================== extra's (beide) */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scan { position: fixed; inset: 0; z-index: 25; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px),
              radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
body.mode-remote .scan { background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.45) 100%); }
.arcs path { fill: none; stroke: #bfe6ff; stroke-width: 2.5; stroke-linejoin: round; }
.arcs { opacity: 0; }
.mem-photo { overflow: hidden; }
.mem-photo .kb { width: 100%; height: 100%; background: center/cover no-repeat; animation: kb 14s ease-out both; }
@keyframes kb { from { transform: scale(1.18) translate(2%, 2%); } to { transform: scale(1) translate(0, 0); } }
.mem-text.typing::after { content: "▌"; color: var(--orange); animation: blink .7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

#slam { position: absolute; left: 50%; top: 50%; z-index: 22; pointer-events: none; opacity: 0;
  font-family: "D7"; color: var(--orange); font-size: 34vw; line-height: 1; transform: translate(-50%, -50%);
  text-shadow: 0 0 .05em #fff, 0 0 .15em var(--orange), 0 0 .5em #ff2a1a; white-space: nowrap; }
#slam small { font-family: system-ui, sans-serif; font-weight: 900; font-size: .14em; letter-spacing: .3em; display: block; text-align: center; color: #fff; }
#slam.go { animation: slam 1.5s cubic-bezier(.2,.9,.2,1) both; }
@keyframes slam { 0% { opacity: 0; transform: translate(-50%,-50%) scale(3); } 12% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  70% { opacity: 1; transform: translate(-50%,-50%) scale(1.04); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.6); filter: blur(10px); } }

.lamps, .power { display: none; }

/* =================================================================== TV / groot scherm
   Vaste 1920x1080 cockpit, geschaald naar elk scherm via --s */
body.mode-tv { background: #050608; }
body.mode-tv .controls, body.mode-tv .reset { display: none; }
body.mode-tv #app { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: center;
  padding: 34px 52px 44px; gap: 26px 52px;
  display: grid; grid-template-columns: 1160px 1fr; grid-template-rows: 40px auto 1fr; }
body.mode-tv .topbar { grid-column: 1 / -1; font-size: 18px; }
body.mode-tv .brand-dot { width: 12px; height: 12px; }
body.mode-tv .conn { font-size: 16px; }
body.mode-tv .circuits { grid-column: 1; grid-row: 2; width: 1160px; }
body.mode-tv .stage, body.mode-tv .drive { display: contents; }
body.mode-tv .drive[hidden] { display: contents !important; }

body.mode-tv .flux { grid-column: 2; grid-row: 2 / 4; height: auto; max-width: none; aspect-ratio: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; }
body.mode-tv .flux svg { width: 560px; height: 616px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.7)); }
body.mode-tv .lamps { display: grid; gap: 14px; width: 560px; }
.lamp { display: flex; align-items: center; gap: 16px; font-weight: 900; letter-spacing: .22em; font-size: 18px; color: #6b7178;
  background: #0d0f12; border: 1px solid #23272c; border-radius: 6px; padding: 12px 18px; }
.lamp i { width: 18px; height: 18px; border-radius: 50%; background: #2a2d31; box-shadow: inset 0 -3px 4px rgba(0,0,0,.5); }
.lamp.on { color: #e8eaed; }
.lamp.on i { background: #ffcf3a; box-shadow: 0 0 14px #ffb000, 0 0 30px rgba(255,176,0,.5); }
#lampTc.on i { background: var(--red); box-shadow: 0 0 14px var(--red), 0 0 30px rgba(255,42,26,.5); }
#lampFlux.on i { background: #bfe6ff; box-shadow: 0 0 14px #8fd4ff, 0 0 30px rgba(143,212,255,.6); animation: blink var(--fd, 1s) steps(1) infinite; }
#lampJump.on { color: #fff; border-color: var(--orange); }

body.mode-tv .speedo { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto 1fr;
  column-gap: 44px; row-gap: 18px; align-content: center; align-items: start; }
body.mode-tv .speed-digits { grid-row: 1 / 5; font-size: 250px; border-radius: 14px; box-shadow: inset 0 0 0 6px #222, 0 30px 60px rgba(0,0,0,.6); }
body.mode-tv .speed-unit { font-size: 44px; text-align: left; }
body.mode-tv .speed-bar { height: 20px; border-radius: 10px; }
body.mode-tv .power { display: block; }
.power-head { display: flex; justify-content: space-between; font-weight: 900; letter-spacing: .25em; font-size: 18px; color: #9aa0a6; margin-bottom: 8px; }
.power-head #powerVal { font-family: "D7"; letter-spacing: .05em; font-size: 26px; color: #8fd4ff; text-shadow: 0 0 10px #8fd4ff; }
.power-leds { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; }
.power-leds i { height: 30px; border-radius: 3px; background: #15181c; }
.power-leds i.on { background: #2bff5a; box-shadow: 0 0 10px #2bff5a; }
.power-leds i.on:nth-child(n+12) { background: #ffb81c; box-shadow: 0 0 10px #ffb81c; }
.power-leds i.on:nth-child(n+17) { background: #ff2a1a; box-shadow: 0 0 12px #ff2a1a; }
body.mode-tv .hint { font-size: 40px; font-weight: 900; text-align: left; color: #e8eaed; letter-spacing: .02em; text-transform: uppercase; }
body.mode-tv .hint.idle { color: #9aa0a6; animation: blink 1.6s steps(1) infinite; }
body.mode-tv .speedo.at88 .speed-digits { animation: shake .05s infinite; }
body.mode-tv #slam { font-size: 520px; }

/* herinnering op tv: groot overlay-scherm */
body.mode-tv .memory { position: absolute; inset: 0; z-index: 10; padding: 90px 110px; gap: 90px;
  background: radial-gradient(ellipse at 30% 40%, rgba(40,30,20,.55), rgba(5,6,8,.85) 70%); }
body.mode-tv.mem-open .circuits, body.mode-tv.mem-open .speedo, body.mode-tv.mem-open .flux { filter: blur(7px) brightness(.55); transition: filter 1s; }
body.mode-tv .mem-photo { flex: none; width: 820px; height: 615px; max-width: none; aspect-ratio: auto; border-width: 18px; border-bottom-width: 70px; border-radius: 4px; }
body.mode-tv .mem-photo[hidden] + .mem-body { max-width: 1500px; text-align: center; }
body.mode-tv .mem-body { max-width: 820px; }
body.mode-tv .mem-date { font-size: 46px; }
body.mode-tv .mem-title { font-size: 116px; margin: 20px 0 30px; }
body.mode-tv .memory.finale .mem-title { font-size: 170px; animation: glowpulse 2s ease-in-out infinite; }
@keyframes glowpulse { 50% { filter: drop-shadow(0 0 30px rgba(255,160,0,.7)); } }
body.mode-tv .mem-text { font-size: 44px; line-height: 1.45; }

body.mode-tv .corner-qr svg { width: 170px; height: 170px; }

body.mode-tv .tc-win { font-size: 6.1cqw; }
body.mode-tv .tc-cap { font-size: 1.45cqw; }
body.mode-tv .corner-qr { position: static; display: flex; align-items: center; gap: 22px; padding: 16px 22px; width: 560px; text-align: left; }
body.mode-tv .corner-qr svg { width: 150px; height: 150px; flex: none; }
body.mode-tv .corner-qr span { font-size: 26px; font-weight: 900; margin: 0; }
body.mode-tv .flux.waiting .lamps { display: none; }

/* =================================================================== bediening op brede schermen / telefoon dwars */
@media (min-width: 701px) {
  body.mode-remote #app { max-width: 520px; margin: 0 auto; }
  body.mode-remote .memory { flex-direction: column; gap: 14px; overflow: auto; justify-content: flex-start; }
  body.mode-remote .mem-photo { height: auto; width: 80%; max-width: 80%; flex: none; }
  body.mode-remote .mem-body { text-align: center; max-width: 100%; }
  body.mode-remote .mem-title { font-size: 40px; }
  body.mode-remote .mem-text { font-size: 18px; }
  body.mode-remote #slam { font-size: 180px; }
}
.rotate { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  body.mode-remote .rotate { display: grid; place-items: center; position: fixed; inset: 0; z-index: 40; background: #0b0c0e;
    color: #e8eaed; font-weight: 800; font-size: 20px; text-align: center; padding: 20px; }
  body.mode-remote .rotate b { display: block; font-size: 54px; margin-bottom: 10px; }
}

/* bediening: snelheidsmeter schaalt mee met de beschikbare hoogte */
body.mode-remote .stage { container-type: size; }
body.mode-remote .drive { gap: 4cqw; }
body.mode-remote .flux { height: 92cqh; max-width: 42cqw; }
body.mode-remote .speedo { gap: 3cqh; }
body.mode-remote .speed-digits { font-size: min(22vw, 46cqh, 130px); }
body.mode-remote .speed-unit { font-size: clamp(10px, 7cqh, 20px); }
body.mode-remote .speed-bar { height: clamp(5px, 3cqh, 10px); }
body.mode-remote .hint { font-size: clamp(11px, 7cqh, 16px); }

/* =================================================================== cockpit (na bestemming) */
.gauge svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gauge .needle { transform-origin: 100px 100px; transition: transform .12s linear; }
.g-big { font-family: "D7"; fill: var(--orange); filter: drop-shadow(0 0 3px rgba(255,122,0,.8)); }
.g-gear { font-family: "D14"; fill: #8fd4ff; filter: drop-shadow(0 0 3px rgba(143,212,255,.8)); }
.g-unit { font: 800 9px system-ui, sans-serif; letter-spacing: .2em; fill: #8a919a; }
.g-num { font: 800 13px system-ui, sans-serif; fill: #e8eaed; }
.tv-tacho { display: none; }

.cockpit { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5cqh; }
.binnacle { display: flex; justify-content: center; gap: 2cqw; width: 100%; height: 84cqh; padding: 3cqh 4cqw 2cqh;
  background: radial-gradient(ellipse at 50% 0%, #2a2e34, #121417 70%);
  border-radius: 46% 46% 18px 18px / 36% 36% 18px 18px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.08), inset 0 -10px 30px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.6); }
.binnacle .gauge { height: 100%; aspect-ratio: 1; max-width: 48%; }
.tells { display: flex; gap: 8px; }
.tell { font: 900 10px system-ui, sans-serif; letter-spacing: .16em; padding: 5px 8px; border-radius: 4px; background: #121417; color: #3a3f45; border: 1px solid #23272c; }
.tell.on.red { color: #fff; background: #5a0d08; border-color: var(--red); box-shadow: 0 0 12px rgba(255,42,26,.6); }
.tell.on.blue { color: #fff; background: #0d3550; border-color: #8fd4ff; box-shadow: 0 0 12px rgba(143,212,255,.6); animation: blink var(--fd, 1s) steps(1) infinite; }
.tell.on.amber { color: #111; background: var(--amber); border-color: var(--amber); box-shadow: 0 0 16px var(--amber); animation: blink .15s steps(1) infinite; }

/* tijdens het rijden: alleen de bestemming tonen, rest is dashboard */
body.mode-remote.driving .tc-row[data-row="present"], body.mode-remote.driving .tc-row[data-row="last"] { display: none; }

/* pedalen */
.pedals { display: flex; justify-content: center; align-items: flex-end; gap: 9vw; padding: 14px 10px 8px; perspective: 700px; border-radius: 12px;
  background: repeating-linear-gradient(90deg, #121416 0 5px, #181b1e 5px 10px); box-shadow: inset 0 8px 20px rgba(0,0,0,.7); }
.pedal { position: relative; border: 0; padding: 0; transform-origin: 50% 100%; transform: rotateX(24deg);
  border-radius: 14px 14px 20px 20px; color: #c9ced4; font-weight: 900; letter-spacing: .25em;
  background: repeating-linear-gradient(0deg, #2c3035 0 6px, #0f1113 6px 11px);
  box-shadow: inset 0 0 0 4px #a7aeb7, inset 0 0 0 7px #4b5158, 0 12px 0 #050607, 0 16px 22px rgba(0,0,0,.7);
  transition: transform .07s, box-shadow .07s; user-select: none; -webkit-user-select: none; touch-action: none; }
.pedal span { position: absolute; left: 0; right: 0; bottom: 12px; font-size: 13px; text-shadow: 0 1px 0 #000; }
.pedal.gas { width: min(34vw, 140px); height: min(48vw, 200px, 23dvh); }
.pedal.brake { width: min(38vw, 155px); height: min(30vw, 125px, 15dvh); }
.pedal.down { transform: rotateX(44deg) translateY(6px); box-shadow: inset 0 0 0 4px #ffb000, inset 0 0 0 7px #7a4a00, 0 5px 0 #050607, 0 0 34px rgba(255,140,0,.55); color: #ffd36b; }
.pedal.brake.down { box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 7px #5a0d08, 0 5px 0 #050607, 0 0 34px rgba(255,42,26,.5); color: #ff8a80; }
.linkbtn { background: none; border: 0; color: #7d838a; text-decoration: underline; font-size: 13px; padding: 4px; }

/* tv: toerenteller naast de snelheid */
body.mode-tv .tv-tacho { display: block; grid-column: 1; grid-row: 1 / 5; width: 330px; height: 330px; align-self: center; }
body.mode-tv .speedo { grid-template-columns: 330px auto 1fr; column-gap: 36px; }
body.mode-tv .speed-digits { grid-column: 2; font-size: 200px; align-self: center; }
body.mode-tv .speed-unit, body.mode-tv .speed-bar, body.mode-tv .power, body.mode-tv .hint { grid-column: 3; }
body.mode-tv .hint { font-size: 34px; }

/* =================================================================== CYBER COCKPIT (telefoon, na bestemming) */
:root { --cyan: #29f3ff; --mag: #ff2bd6; }
body.mode-remote.driving .circuits { display: none; }
.cockpit { height: 100%; display: flex; flex-direction: column; gap: 0; }
.cockpit .binnacle { display: none; }

.windshield { position: relative; flex: 1; min-height: 0; margin: 0 1.5%; background: #05010c;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); border-radius: 28px 28px 0 0; }
.windshield::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,.10), transparent 30%, transparent 70%, rgba(255,255,255,.05)); }
#road { position: absolute; inset: 0; width: 100%; height: 100%; }

.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; align-items: center; padding: 3.5% 12% 3%; }
.hud-top { display: flex; flex-direction: column; gap: 3px; padding: 5px 10px; border: 1px solid rgba(41,243,255,.35); border-radius: 6px;
  background: rgba(5,1,12,.45); box-shadow: 0 0 14px rgba(41,243,255,.15), inset 0 0 12px rgba(41,243,255,.08); }
.hud-row { display: flex; align-items: center; gap: 8px; }
.hud-lbl { font: 900 9px system-ui, sans-serif; letter-spacing: .2em; color: var(--cyan); opacity: .8; width: 34px; }
.hud-val { font-family: "D14"; font-size: clamp(11px, 3.6vw, 15px); letter-spacing: .04em; white-space: pre; }
.hud-row.hdest .hud-val { color: var(--red); text-shadow: 0 0 6px var(--red); }
.hud-row.hnow .hud-val { color: var(--green); text-shadow: 0 0 6px var(--green); }
.hud-msg { margin-top: auto; font: 900 clamp(11px, 3.4vw, 15px) system-ui, sans-serif; letter-spacing: .25em; color: var(--mag);
  text-shadow: 0 0 8px var(--mag); text-transform: uppercase; }
.hud-speed { font-family: "D7"; color: var(--cyan); font-size: clamp(34px, 12vw, 60px); line-height: 1; text-shadow: 0 0 10px var(--cyan), 0 0 26px rgba(41,243,255,.6);
  display: flex; align-items: baseline; gap: 6px; transform: skewX(-8deg); }
.hud-speed small { font: 900 11px system-ui, sans-serif; letter-spacing: .2em; }
body.driving .hud-msg.hot { color: #fff; animation: blink .2s steps(1) infinite; }

.dash { flex: none; height: 46cqh; margin-top: -4px; position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8cqh; padding: 3cqh 3cqw 2cqh;
  background: linear-gradient(180deg, #171126, #08060d 70%);
  border-radius: 50% 50% 16px 16px / 26% 26% 16px 16px;
  box-shadow: 0 -2px 0 var(--cyan), 0 -8px 26px rgba(41,243,255,.35), inset 0 12px 30px rgba(0,0,0,.6); }
.dash::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 8px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--mag), transparent); box-shadow: 0 0 12px var(--mag); }
.dash-gauges { display: flex; align-items: center; justify-content: center; gap: 2cqw; height: 74%; width: 100%; }
.ngauge { height: 100%; aspect-ratio: 1; max-width: 37%; }
.ngauge svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ng-val { transition: stroke-dasharray .12s linear; }
.ng-big { font-family: "D7"; fill: var(--cyan); }
.ng-gear { font-family: "D14"; fill: var(--mag); }
.ng-unit { font: 900 10px system-ui, sans-serif; letter-spacing: .2em; fill: #8a86a8; }
.ng-num { font: 800 10px system-ui, sans-serif; fill: #6f6b8f; }
.dash-flux { height: 92%; aspect-ratio: 300/330; max-width: 24%; filter: drop-shadow(0 0 10px rgba(41,243,255,.25)); }
.dash-flux svg { width: 100%; height: 100%; display: block; }
.cockpit.on .lights path { opacity: .95; }
.cockpit.on .coreglow { animation: pulse var(--fd, 1.8s) ease-in-out infinite; }
.cockpit .tell { background: #0d0a16; border-color: #241d38; color: #3a3550; }

/* neon pedalen */
body.mode-remote.driving .panel[data-panel="drive"] { background: linear-gradient(180deg, #0d0a16, #06050a); border-color: #241d38; }
body.mode-remote.driving .panel-title { color: #b9b4d6; }
body.mode-remote.driving .pedals { background: repeating-linear-gradient(90deg, #0b0912 0 5px, #110e1a 5px 10px);
  box-shadow: inset 0 8px 20px rgba(0,0,0,.8), inset 0 -2px 0 rgba(255,43,214,.4); }
.pedal.gas { box-shadow: inset 0 0 0 3px rgba(41,243,255,.7), inset 0 0 18px rgba(41,243,255,.25), 0 12px 0 #030205, 0 16px 22px rgba(0,0,0,.7); color: var(--cyan); }
.pedal.brake { box-shadow: inset 0 0 0 3px rgba(255,43,214,.7), inset 0 0 18px rgba(255,43,214,.22), 0 12px 0 #030205, 0 16px 22px rgba(0,0,0,.7); color: var(--mag); }
.pedal.gas.down { box-shadow: inset 0 0 0 3px #fff, inset 0 0 30px rgba(41,243,255,.8), 0 5px 0 #030205, 0 0 40px rgba(41,243,255,.75); color: #fff; }
.pedal.brake.down { box-shadow: inset 0 0 0 3px #fff, inset 0 0 30px rgba(255,43,214,.8), 0 5px 0 #030205, 0 0 40px rgba(255,43,214,.75); color: #fff; }
.cockpit { align-items: stretch; justify-content: flex-start; gap: 0; }
.dash-gauges { gap: 1.5%; }
.ngauge { height: auto; max-height: 100%; width: 37%; max-width: none; aspect-ratio: 1; }
.dash-flux { height: auto; max-height: 96%; width: 21%; max-width: none; }
.hud { padding-bottom: 7%; }
.hud-speed { font-size: clamp(28px, 9.5vw, 50px); margin-top: 4px; }
.dash-flux { width: 23%; }

/* =================================================================== schermvullende wereld */
#road { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: none; pointer-events: none; }
body.mode-remote.driving #bg { display: none; }
body.mode-remote.driving { background: #04010d; }
.windshield { background: transparent; clip-path: none; border-radius: 0; margin: 0; }
.windshield::before { background:
  linear-gradient(100deg, rgba(0,0,0,.85) 0, rgba(0,0,0,.6) 3%, transparent 9%),
  linear-gradient(-100deg, rgba(0,0,0,.85) 0, rgba(0,0,0,.6) 3%, transparent 9%),
  linear-gradient(112deg, transparent 30%, rgba(255,255,255,.05) 40%, transparent 52%); }
.dash { background: linear-gradient(180deg, rgba(23,17,38,.82), rgba(8,6,13,.92) 70%); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
body.mode-remote.driving .panel[data-panel="drive"] { background: linear-gradient(180deg, rgba(13,10,22,.72), rgba(6,5,10,.9)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
body.mode-remote.driving .pedals { background: repeating-linear-gradient(90deg, rgba(11,9,18,.75) 0 5px, rgba(17,14,26,.75) 5px 10px); }
body.mode-remote.driving .topbar { text-shadow: 0 1px 4px #000; }

/* =================================================================== bestemming kiezen (auto) */
.gobtn { font-size: 20px; letter-spacing: .18em; padding: 18px; border-radius: 14px; transition: opacity .3s, box-shadow .3s; }
.gobtn:disabled { opacity: .35; }
.gobtn.ready { background: linear-gradient(180deg, #ff5a3d, #c3170b); color: #fff; box-shadow: 0 0 0 2px #ff2a1a, 0 0 30px rgba(255,42,26,.55);
  animation: gopulse 1.4s ease-in-out infinite; }
@keyframes gopulse { 50% { box-shadow: 0 0 0 2px #ff2a1a, 0 0 55px rgba(255,42,26,.9); transform: scale(1.02); } }
#chooseTitle { color: #e8eaed; }

/* =================================================================== FOTOSHOW */
.show { position: fixed; inset: 0; z-index: 35; background: #030208; overflow: hidden; color: #fff; }
body.mode-tv .show { position: absolute; z-index: 16; }
.show-stage { position: absolute; inset: 0; }
.slide, .sintro { position: absolute; inset: 0; }
.slide.out, .sintro.out { animation: sout 1s ease-in forwards; z-index: 0; }
@keyframes sout { to { opacity: 0; transform: scale(1.06); filter: blur(12px) brightness(1.6); } }
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.95), rgba(143,212,255,.5) 35%, transparent 70%); animation: sflash .7s ease-out forwards; }
@keyframes sflash { from { opacity: 1; } to { opacity: 0; } }
.sbg { position: absolute; inset: -60px; background: center/cover no-repeat; filter: blur(38px) brightness(.38) saturate(1.4); transform: scale(1.1);
  animation: bgdrift var(--dur, 7s) linear both; }
@keyframes bgdrift { from { transform: scale(1.1) translateX(-2%); } to { transform: scale(1.2) translateX(2%); } }

/* foto + bijschrift (tv: naast elkaar, telefoon: onder elkaar) */
.sframe { position: absolute; display: flex; align-items: center; justify-content: center; z-index: 2; }
.sphoto { position: relative; max-width: 100%; max-height: 100%; display: flex; background: #f4f1ea; padding: 12px 12px 46px; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.2); }
.sphoto img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; animation: kbz var(--dur, 7s) ease-out both; }
.sphoto { overflow: hidden; }
@keyframes kbz { from { transform: scale(1.0); } to { transform: scale(1.06); } }
.scap { position: absolute; z-index: 3; }
.sdate { font-family: "D14"; color: var(--green); text-shadow: 0 0 10px var(--green); letter-spacing: .06em; }
.scap h2 { margin: .25em 0 .3em; font-weight: 900; font-style: italic; line-height: 1.02; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 0%, #ffd36b 45%, #ff7a00 56%, #ff2bd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); }
.scap p { margin: 0; line-height: 1.4; color: #eceaf5; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.scap > * { opacity: 0; animation: capin .8s cubic-bezier(.2,.8,.2,1) forwards; }
.scap .sdate { animation-delay: .55s; } .scap h2 { animation-delay: .8s; } .scap p { animation-delay: 1.15s; }
@keyframes capin { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* 5 verschillende binnenkomers */
.v0 .sphoto { animation: in0 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes in0 { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: rotate(-1.5deg); } }
.v1 .sphoto { animation: in1 1.3s cubic-bezier(.3,1.4,.4,1) both; }
@keyframes in1 { from { opacity: 0; transform: translateY(-120vh) rotate(-16deg); } to { opacity: 1; transform: rotate(2.5deg); } }
.v2 .sphoto { animation: in2 1.6s ease-out both; }
@keyframes in2 { from { opacity: 0; transform: scale(1.35); filter: blur(30px) brightness(3); } to { opacity: 1; transform: rotate(-2deg); filter: none; } }
.v3 .sphoto { animation: in3 1.1s cubic-bezier(.2,.9,.2,1) both; }
@keyframes in3 { from { opacity: 0; transform: translateX(-110vw) skewX(25deg); } to { opacity: 1; transform: rotate(1.5deg); } }
.v3.flip .sphoto { animation-name: in3b; }
@keyframes in3b { from { opacity: 0; transform: translateX(110vw) skewX(-25deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
.v4 .sphoto { animation: in4 1.4s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes in4 { from { opacity: 0; transform: scale(.08) rotate(40deg); filter: brightness(4) drop-shadow(0 0 40px #8fd4ff); } to { opacity: 1; transform: rotate(-1deg); filter: none; } }
.v1 .scap > *, .v3 .scap > * { animation-name: capside; }
@keyframes capside { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
.v4 .scap h2 { animation-name: capglow; }
@keyframes capglow { 0% { opacity: 0; letter-spacing: .4em; filter: blur(10px); } 100% { opacity: 1; letter-spacing: -.01em; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); } }

/* intro na aankomst */
.sintro { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
  background: radial-gradient(ellipse at center, #1d0640 0%, #030208 70%); }
.sintro span { font-weight: 900; letter-spacing: .4em; color: var(--cyan); text-shadow: 0 0 12px var(--cyan); animation: blink .5s steps(1) 4; }
.sintro b { font-family: "D14"; color: var(--red); text-shadow: 0 0 18px var(--red); animation: capin 1s .3s both; }
.sintro em { color: #b9b4d6; font-style: normal; animation: capin 1s 1s both; }

/* hud + voortgang */
.show-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.show-label { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .3em; color: rgba(255,255,255,.75); }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1s steps(1) infinite; }
.show-count { font-family: "D7"; color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }
.show-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.08); z-index: 6; }
.show-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--mag)); box-shadow: 0 0 12px var(--mag); transition: width .2s linear; }

/* finale */
.show-finale { position: absolute; inset: 0; z-index: 4; overflow: hidden; }
.wall { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; transform: rotate(-6deg);
  animation: wallscroll 70s linear infinite; opacity: .55; }
.wall .tile { aspect-ratio: 1; background: center/cover no-repeat; border-radius: 6px; filter: saturate(1.2); }
@keyframes wallscroll { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(-6deg) translateY(-40%); } }
.show-finale::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(3,2,8,.55) 0%, rgba(3,2,8,.92) 70%); }
.fin-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6%; }
.fin-date { font-family: "D14"; color: var(--green); text-shadow: 0 0 16px var(--green); animation: capin 1s .2s both; }
.fin-title { margin: .2em 0; font-weight: 900; font-style: italic; line-height: 1;
  background: linear-gradient(180deg, #fff 0%, #ffd36b 45%, #ff7a00 56%, #ff2bd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: capglow 1.4s .5s both, glowpulse 2.4s 2s ease-in-out infinite; }
.fin-text { color: #eceaf5; line-height: 1.4; max-width: 30em; margin: 0; animation: capin 1s 1.2s both; }

/* bediening van de show (alleen telefoon) */
.show-ctrl { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 7; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 0 12px; }
.sbtn { background: rgba(10,8,20,.65); color: #fff; border: 1px solid rgba(41,243,255,.45); border-radius: 12px; min-width: 52px; height: 46px; font-size: 24px; font-weight: 800;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 14px rgba(41,243,255,.2); }
.sbtn.wide { font-size: 14px; letter-spacing: .08em; padding: 0 16px; display: none; }
.show.at-end .sbtn.wide { display: inline-block; border-color: var(--mag); box-shadow: 0 0 20px rgba(255,43,214,.4); }
.show-ctrl .linkbtn { flex-basis: 100%; text-align: center; color: #8a86a8; }
body.mode-tv .show-ctrl { display: none; }

/* ---- tv-maten (1920x1080 canvas) */
body.mode-tv .show-hud { padding: 34px 52px; font-size: 20px; }
body.mode-tv .show-count { font-size: 34px; }
body.mode-tv .show-progress { height: 8px; }
body.mode-tv .sframe { left: 90px; top: 100px; bottom: 90px; width: 1080px; }
body.mode-tv .scap { right: 100px; width: 600px; top: 50%; transform: translateY(-50%); }
body.mode-tv .flip .sframe { left: auto; right: 90px; }
body.mode-tv .flip .scap { right: auto; left: 100px; }
body.mode-tv .sphoto { padding: 18px 18px 70px; }
body.mode-tv .sdate { font-size: 34px; }
body.mode-tv .scap h2 { font-size: 92px; }
body.mode-tv .scap p { font-size: 38px; }
body.mode-tv .sintro span { font-size: 30px; }
body.mode-tv .sintro b { font-size: 140px; }
body.mode-tv .sintro em { font-size: 34px; }
body.mode-tv .fin-date { font-size: 60px; }
body.mode-tv .fin-title { font-size: 190px; }
body.mode-tv .fin-text { font-size: 44px; }

/* ---- telefoon */
body.mode-remote .show-hud { padding: max(12px, env(safe-area-inset-top)) 16px 0; font-size: 11px; }
body.mode-remote .show-count { font-size: 18px; }
body.mode-remote .sframe { left: 4%; right: 4%; top: 52px; height: 54dvh; }
body.mode-remote .scap { left: 7%; right: 7%; top: calc(52px + 54dvh + 18px); text-align: center; }
body.mode-remote .sphoto { padding: 8px 8px 30px; }
body.mode-remote .sdate { font-size: 15px; }
body.mode-remote .scap h2 { font-size: clamp(24px, 8vw, 38px); }
body.mode-remote .scap p { font-size: clamp(14px, 4.2vw, 18px); }
body.mode-remote .sintro span { font-size: 13px; }
body.mode-remote .sintro b { font-size: 13vw; }
body.mode-remote .sintro em { font-size: 15px; }
body.mode-remote .wall { grid-template-columns: repeat(3, 1fr); }
body.mode-remote .fin-date { font-size: 22px; }
body.mode-remote .fin-title { font-size: 13vw; }
body.mode-remote .fin-text { font-size: 18px; }
@media (min-width: 701px) { body.mode-remote .show { left: 50%; right: auto; width: 520px; transform: translateX(-50%); } }
body.mode-tv .sphoto img { max-height: 802px; max-width: 1044px; }
body.mode-remote .sphoto img { max-height: calc(54dvh - 38px); max-width: calc(92vw - 16px); }
@media (min-width: 701px) { body.mode-remote .sphoto img { max-width: 460px; } body.mode-remote .sframe { left: 20px; right: 20px; } }

/* =================================================================== PRESTATIES (soepel op grote schermen) */
/* flux-lichtjes: gloed via een tweede, brede streep i.p.v. een SVG-blurfilter dat elke frame herberekend wordt */
.lights-glow path { stroke: #ffd36b; stroke-width: 20; stroke-linecap: round; fill: none; stroke-dasharray: 6 26; opacity: 0;
  animation: flow var(--fd, 1.8s) linear infinite; }
.drive.on .lights-glow path, .cockpit.on .lights-glow path { opacity: .22; }
.lights path { stroke: #fffbe6; }
.arcs path { stroke: #e6f6ff; stroke-width: 3.2; }
.lights path, .lights-glow path, .coreglow { will-change: stroke-dashoffset, transform, opacity; }
body.mode-tv .flux svg { filter: none; }
body.mode-tv .flux { position: relative; }
.dash-flux { filter: none; }

/* scanlines alleen op de telefoon niet; op tv alleen een vaste vignet */
body.mode-tv .scan { background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.5) 100%); }

/* tijdens de fotoshow: cockpit erachter niet meer laten draaien */
body.mode-tv.showing #app > :not(.show) { display: none !important; }
body.mode-tv.showing #app { display: block; }
body.mode-remote.showing #app > :not(.show) { visibility: hidden; }
body.showing .scan { display: none; }

/* fotoshow: goedkope wazige achtergrond (klein element vervagen en opschalen) */
.sbg { inset: auto; left: 50%; top: 50%; width: 240px; height: 135px; filter: blur(4px) brightness(.38) saturate(1.4);
  transform: translate(-50%, -50%) scale(9); animation: none; }
body.mode-remote .sbg { width: 120px; height: 220px; transform: translate(-50%, -50%) scale(5); }
.slide, .sphoto, .scap > *, .wall { will-change: transform, opacity; }
.slide.out, .sintro.out { animation: sout2 .9s ease-in forwards; }
@keyframes sout2 { to { opacity: 0; transform: scale(1.05); } }
.slide::after { animation-duration: .5s; }
@keyframes capin { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes capglow { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes in2 { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes in4 { from { opacity: 0; transform: scale(.08) rotate(40deg); } to { opacity: 1; transform: rotate(-1deg); } }
.fin-title { animation: capglow 1.4s .5s both; }
.scap h2, .fin-title { filter: none; text-shadow: none; }
.memory.finale .mem-title { animation: none; }
body.mode-tv .memory.finale .mem-title { animation: none; }
.sphoto { box-shadow: 0 24px 60px rgba(0,0,0,.7); }
.lights-glow path { stroke-width: 13; }
.drive.on .lights-glow path, .cockpit.on .lights-glow path { opacity: .16; }
.scap h2, .fin-title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; padding-right: .12em; }
body.mode-tv .scap h2 { font-size: 80px; }
