/* ============================================================
   MuseumLens — glasses.css
   AR-museumgids: startscherm + immersieve "bril-weergave".
   ============================================================ */

:root {
  --bg: #080a0e;
  --bg-2: #0e1218;
  --panel: rgba(16, 20, 27, 0.72);
  --panel-solid: #11151c;
  --ink: #f5f2ea;
  --muted: #9aa6b2;
  --muted-2: #6b7682;
  --ar: #46e0d0;        /* AR / HUD accent (cyaan) */
  --ar-dim: rgba(70, 224, 208, 0.16);
  --gold: #d4a13a;      /* museum-accent */
  --line: rgba(255, 255, 255, 0.10);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; }

/* ============================ STARTSCHERM ============================ */
.start-screen { display: grid; place-items: center; overflow: auto; }
.start-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(70,224,208,0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(212,161,58,0.10), transparent 60%),
    linear-gradient(160deg, #0b0e13, #070809 70%);
}
.start-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px; opacity: .5;
}
.start-inner {
  position: relative; z-index: 2; width: min(1040px, 94vw);
  padding: 6vh 24px; text-align: center;
}
.brand { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--ar); }
.brand-mark { filter: drop-shadow(0 0 14px rgba(70,224,208,.5)); }
.brand-name {
  font-family: var(--sans); font-weight: 700; font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -1.5px; color: var(--ink);
}
.brand-name span { color: var(--ar); }
.tagline {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(22px, 3.6vw, 34px); margin-top: 10px; color: var(--gold);
}
.subtitle { color: var(--muted); margin-top: 8px; font-size: clamp(14px, 2vw, 17px); font-weight: 300; }
.pick { margin-top: 42px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 600; }

/* ---- hero: één duidelijke start ---- */
.hero-cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.start-primary > span, .start-secondary > span { vertical-align: middle; }
.start-secondary {
  font-family: var(--sans); font-weight: 700; font-size: 17px; cursor: pointer; color: var(--ink);
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 30px; transition: transform .14s ease, border-color .2s ease, background .2s ease;
}
.start-secondary:hover { transform: translateY(-2px); border-color: var(--ar); background: rgba(255,255,255,0.1); }
.start-primary {
  font-family: var(--sans); font-weight: 700; font-size: 21px; cursor: pointer;
  color: #06231f; background: var(--ar); border: 0; border-radius: 16px;
  padding: 20px 54px; box-shadow: 0 16px 44px rgba(70,224,208,.32);
  transition: transform .14s ease, box-shadow .2s ease;
}
.start-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 56px rgba(70,224,208,.4); }
.start-primary:active { transform: scale(.98); }
.hero-sub { color: var(--muted); margin-top: 16px; font-size: 15px; font-weight: 300; }

.more-modes { margin-top: 30px; }
.more-modes > summary {
  cursor: pointer; color: var(--muted-2); font-size: 13px; font-weight: 600;
  letter-spacing: .4px; list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.more-modes > summary::-webkit-details-marker { display: none; }
.more-modes > summary::before { content: "▾"; color: var(--ar); transition: transform .2s; }
.more-modes[open] > summary::before { transform: rotate(180deg); }

.mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 760px) { .mode-cards { grid-template-columns: 1fr; } }
.mode-card.hero { border-color: rgba(70,224,208,.45); background: linear-gradient(180deg, rgba(70,224,208,0.10), rgba(70,224,208,0.02)); }
.mode-card.hero:hover { border-color: var(--ar); }
.mode-card .badge {
  position: absolute; top: -10px; left: 18px; background: var(--ar); color: #06231f;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.mode-card {
  position: relative; text-align: left; cursor: pointer; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 22px;
  transition: transform .18s ease, border-color .2s ease, box-shadow .25s ease;
  font-family: var(--sans);
}
.mode-card:hover { transform: translateY(-4px); border-color: rgba(70,224,208,.5); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.mode-icon { font-size: 30px; }
.mode-name { font-size: 20px; font-weight: 700; margin-top: 14px; }
.mode-desc { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.5; font-weight: 300; min-height: 42px; }
.mode-go {
  display: inline-block; margin-top: 18px; font-weight: 600; font-size: 14px;
  color: #06231f; background: var(--ar); padding: 9px 16px; border-radius: 10px;
}
.mode-card:nth-child(2) .mode-go { background: var(--gold); color: #2a1d05; }

.start-foot { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  background: transparent; color: var(--muted); border: 0; padding: 7px 16px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .5px;
}
.lang-toggle button.active { background: var(--ar); color: #06231f; }
.lang-toggle.small button { padding: 4px 10px; font-size: 11px; }

.gestures { color: var(--muted); font-size: 13px; max-width: 360px; }
.gestures summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.gestures ul { list-style: none; margin-top: 10px; text-align: left; display: grid; gap: 6px; }
.gestures li { color: var(--muted-2); font-size: 13px; padding-left: 16px; position: relative; }
.gestures li::before { content: "›"; position: absolute; left: 0; color: var(--ar); }
.prototype-note { margin-top: 30px; color: var(--muted-2); font-size: 12px; letter-spacing: .5px; }

/* ============================ BRIL-WEERGAVE ============================ */
.glasses-screen { background: #000; }
.world { position: absolute; inset: 0; overflow: hidden; }

/* --- Virtuele galerij --- */
.scene { position: absolute; inset: 0; perspective: 1400px; }
.gallery-room {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #20242c 0%, #14171d 45%, #0a0c10 100%);
  display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.gallery-room::before { /* vloer */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)),
              repeating-linear-gradient(90deg, #15171c, #15171c 80px, #181b21 80px, #181b21 160px);
  transform: rotateX(62deg); transform-origin: bottom; opacity: .55;
}
.room-light {
  position: absolute; top: -8%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 60%;
  background: radial-gradient(closest-side, rgba(255,247,225,0.16), transparent 70%);
  pointer-events: none;
}
.artwork-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.artwork-frame {
  position: relative; display: inline-block; line-height: 0;
  border: 12px solid #1c1407;
  border-image: linear-gradient(145deg, #5a4220, #2a1f0d 40%, #6b5226 70%, #221a0a) 1;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 2px rgba(0,0,0,.5), inset 0 0 30px rgba(0,0,0,.6);
}
.artwork-img { display: block; max-height: 76vh; max-width: 84vw; width: auto; height: auto; }
.plaque {
  font-size: 12px; color: var(--muted); letter-spacing: .4px; text-align: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 14px; backdrop-filter: blur(4px);
}
.plaque b { color: var(--ink); font-weight: 600; }

/* scan-sweep over het doek (simuleert "herkennen") */
.scan-sweep {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(70,224,208,.0) 42%, rgba(70,224,208,.35) 50%, rgba(70,224,208,.0) 58%, transparent 100%);
  background-size: 100% 220%;
}
.scan-sweep.run { animation: sweep 1.25s ease-in-out forwards; opacity: 1; }
@keyframes sweep { from { background-position: 0 -110%; } to { background-position: 0 110%; } }

/* --- Live camera --- */
.camera { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ============================ HUD-CHROME ============================ */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hud button, .hud .lang-toggle, .hud .ar-actions, .hotspot,
.gallery-strip, .gallery-thumb, .tour-cta, .ar-card { pointer-events: auto; }

.lens-vignette {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 180px 60px rgba(0,0,0,.85), inset 0 0 40px 10px rgba(0,0,0,.5);
  border-radius: 0;
}
.lens-vignette::after { /* lichte randkromming als van glas */
  content: ""; position: absolute; inset: 2.5vh 2.5vw;
  border-radius: 40px; box-shadow: inset 0 0 0 1px rgba(70,224,208,.06);
}

.hud-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 26px; font-size: 13px; color: var(--ar);
  text-shadow: 0 0 10px rgba(0,0,0,.6);
}
.hud-left, .hud-right { display: flex; align-items: center; gap: 12px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d; box-shadow: 0 0 10px #ff5d5d; animation: blink 1.6s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.hud-logo { font-weight: 700; letter-spacing: .5px; color: var(--ink); }
.hud-mode, .hud-status { color: var(--muted); font-size: 12px; }
.hud-ai { font-size: 11px; color: var(--ar); letter-spacing: .5px; }
.hud-ai.warn { color: var(--gold); }
.hud-wifi, .hud-batt { color: var(--ink); opacity: .85; display: inline-flex; }
.hud-clock { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

.reticle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; }
.reticle span, .reticle::before, .reticle::after {
  content: ""; position: absolute; background: rgba(70,224,208,.7);
}
.reticle::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); opacity:.4 }
.reticle::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); opacity:.4 }
.reticle span { top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 10px var(--ar); background: var(--ar); }
.reticle.hot span { width: 12px; height: 12px; background: var(--gold); box-shadow: 0 0 16px var(--gold); }

/* --- AR-infokaart --- */
.ar-card {
  position: absolute; top: 50%; right: 3.5vw; transform: translateY(-50%);
  width: min(360px, 34vw); max-height: 80vh; overflow: auto;
  background: var(--panel); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px;
  box-shadow: var(--shadow); color: var(--ink);
  animation: cardin .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes cardin { from { opacity: 0; transform: translateY(-46%) translateX(20px); } to { opacity: 1; transform: translateY(-50%) translateX(0); } }
.ar-card-accent { height: 3px; width: 46px; border-radius: 3px; background: var(--gold); margin-bottom: 14px; }
.ar-recognized {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .6px;
  text-transform: uppercase; color: var(--ar); font-weight: 600; margin-bottom: 8px;
}
.ar-recognized::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; background: var(--ar-dim); border-radius: 50%; }
.ar-title { font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.1; }
.ar-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.ar-sub b { color: var(--gold); font-weight: 600; }
.ar-intro { font-size: 14.5px; line-height: 1.6; margin-top: 14px; color: #e7e3d8; font-weight: 300; }
.ar-facts { margin-top: 14px; display: grid; gap: 8px; }
.ar-fact {
  font-size: 13px; line-height: 1.5; color: var(--muted); padding: 10px 12px;
  background: rgba(255,255,255,0.035); border-left: 2px solid var(--gold); border-radius: 8px;
}
.ar-fact-label { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; font-weight: 700; }
.ar-actions { display: flex; gap: 10px; margin-top: 18px; }
.ar-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 12px; cursor: pointer; font-family: var(--sans);
  font-weight: 600; font-size: 13.5px; transition: background .15s, transform .1s;
}
.ar-btn:hover { background: rgba(255,255,255,0.12); }
.ar-btn:active { transform: scale(.97); }
.ar-btn.primary { background: var(--ar); color: #06231f; border-color: transparent; }
.ar-btn.primary.playing { background: var(--gold); color: #2a1d05; }
.ar-btn .ic { font-size: 12px; }

.audio-wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 14px; justify-content: center; }
.audio-wave i { width: 3px; background: var(--ar); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.audio-wave i:nth-child(odd) { animation-delay: .15s; }
.audio-wave i:nth-child(3n) { animation-delay: .3s; }
@keyframes wave { 0%,100%{height:5px} 50%{height:20px} }

/* --- hotspots --- */
.hotspot-layer { position: absolute; inset: 0; }
.hotspot {
  position: absolute; width: 26px; height: 26px; transform: translate(-50%,-50%);
  border-radius: 50%; cursor: pointer; background: transparent; border: 0;
}
.hotspot::before { /* gloeiende kern */
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold);
}
.hotspot::after { /* pulserende ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0%{ transform: scale(.6); opacity:.9 } 100%{ transform: scale(1.8); opacity:0 } }
.hotspot.active::before { background: var(--ar); box-shadow: 0 0 16px var(--ar); }

.hotspot-tip {
  position: absolute; z-index: 8; width: min(300px, 70vw);
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink);
  animation: cardin .25s ease;
}
.hotspot-tip h3 { font-size: 15px; color: var(--gold); margin-bottom: 6px; }
.hotspot-tip p { font-size: 13.5px; line-height: 1.55; color: var(--muted); font-weight: 300; }

/* --- captions / ondertiteling --- */
.captions {
  position: absolute; bottom: 13vh; left: 50%; transform: translateX(-50%);
  max-width: min(720px, 80vw); text-align: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  padding: 10px 20px; border-radius: 12px; font-size: 18px; line-height: 1.45;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); font-weight: 400;
}

/* --- onderbalk --- */
.hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 26px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hint { color: var(--muted); font-size: 12.5px; background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.gallery-strip { display: flex; gap: 10px; }
.gallery-thumb {
  width: 54px; height: 54px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; opacity: .55; transition: opacity .2s, border-color .2s, transform .15s;
  background: #000;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: .85; transform: translateY(-3px); }
.gallery-thumb.active { opacity: 1; border-color: var(--ar); }

/* --- camera scan-status --- */
.scan-status { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; gap: 16px; text-align: center; }
.scan-ring { width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(70,224,208,.25); border-top-color: var(--ar); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-text { color: var(--ar); font-size: 14px; letter-spacing: .5px; background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 999px; }

/* --- detail-loep --- */
.detail-view { position: absolute; inset: 0; z-index: 9; background: rgba(0,0,0,.94); display: grid; place-items: center; }
.detail-view img { max-width: 94vw; max-height: 86vh; border-radius: 6px; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .2s; }
.detail-close { position: absolute; top: 22px; right: 24px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-family: var(--sans); font-weight: 600; }

.exit-btn { position: absolute; top: 16px; right: 50%; transform: translateX(50%); display: none; }
.exit-btn { position: absolute; bottom: 22px; right: 24px; top: auto; transform: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.5); color: var(--muted); border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.exit-btn:hover { color: var(--ink); background: rgba(255,255,255,.12); }

/* responsive: kaart onderaan op smalle schermen */
@media (max-width: 760px) {
  .ar-card { right: 3vw; left: 3vw; width: auto; top: auto; bottom: 12vh; transform: none; max-height: 52vh; }
  @keyframes cardin { from { opacity:0; transform: translateY(20px) } to { opacity:1; transform: translateY(0) } }
  .captions { bottom: 50vh; }
}

/* ============================================================
   RONDLEIDING (guided walk) — bezoekersreis
   ============================================================ */

/* tour-voortgang + "je loopt naar" */
.tour-chip {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; pointer-events: none;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  font-size: 13px; color: var(--ink); text-align: center;
}
.tour-progress { color: var(--muted); font-variant-numeric: tabular-nums; }
.tour-walk { color: var(--ar); font-weight: 600; }
.tour-walk::before { content: "🚶 "; }

/* "lopen": de zaal deint licht, het werk nadert van veraf */
@keyframes approach {
  0%   { transform: scale(.28) translateY(7vh); filter: blur(3px) brightness(.55); opacity: .4; }
  60%  { filter: blur(.6px) brightness(.9); opacity: 1; }
  100% { transform: scale(1) translateY(0); filter: none; opacity: 1; }
}
.artwork-stage.approaching { animation: approach 2.1s cubic-bezier(.22,.72,.2,1); }
@keyframes walkbob {
  0%{transform:translateY(0)} 22%{transform:translateY(-5px)} 50%{transform:translateY(0)}
  72%{transform:translateY(-4px)} 100%{transform:translateY(0)}
}
.gallery-room.walking { animation: walkbob .52s ease-in-out 4; }

/* gaze-dwell ring: "kijk om te ontdekken" */
.dwell {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 120px; height: 120px; display: grid; place-items: center; pointer-events: none;
}
.dwell-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.dwell-ring .track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 5; }
.dwell-ring .fill {
  fill: none; stroke: var(--ar); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 276.5; stroke-dashoffset: 276.5;
  filter: drop-shadow(0 0 6px var(--ar));
}
.dwell.run .fill { animation: dwellfill 1.5s linear forwards; }
@keyframes dwellfill { to { stroke-dashoffset: 0; } }
.dwell-text {
  position: absolute; top: calc(100% + 12px); white-space: nowrap;
  color: var(--ar); font-size: 13px; letter-spacing: .4px;
  background: rgba(0,0,0,.5); padding: 5px 13px; border-radius: 999px;
}

/* "volgende werk" knop tijdens de tour */
.tour-cta {
  position: absolute; bottom: 20vh; left: 50%; transform: translateX(-50%);
  background: var(--ar); color: #06231f; border: 0; border-radius: 999px;
  padding: 13px 26px; font-family: var(--sans); font-weight: 700; font-size: 15px;
  cursor: pointer; box-shadow: 0 10px 30px rgba(70,224,208,.3);
  animation: ctapop .4s ease; transition: transform .12s;
}
.tour-cta:hover { transform: translateX(-50%) translateY(-2px); }
.tour-cta:active { transform: translateX(-50%) scale(.97); }
@keyframes ctapop { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== ONBOARDING ===== */
.onboarding {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center;
  background: radial-gradient(1000px 600px at 50% 0%, rgba(70,224,208,.10), transparent 60%), rgba(6,8,11,.94);
  backdrop-filter: blur(8px);
}
.onb-inner { width: min(720px, 92vw); text-align: center; padding: 30px; animation: cardin .5s ease; }
.onb-glasses { color: var(--ar); filter: drop-shadow(0 0 14px rgba(70,224,208,.5)); }
.onboarding h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 5vw, 42px); margin-top: 10px; }
.onb-sub { color: var(--muted); margin-top: 8px; font-size: 16px; }
.onb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 680px) { .onb-steps { grid-template-columns: 1fr; } }
.onb-step {
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; text-align: left;
}
.onb-step .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ar-dim); color: var(--ar); font-weight: 700; font-size: 13px; }
.onb-step .ic { font-size: 30px; display: block; margin: 8px 0; }
.onb-step h3 { font-size: 17px; font-weight: 700; }
.onb-step p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 6px; font-weight: 300; }
.onb-lang { margin-top: 26px; display: flex; justify-content: center; }
.onb-start {
  margin-top: 22px; background: var(--ar); color: #06231f; border: 0; border-radius: 12px;
  padding: 15px 34px; font-family: var(--sans); font-weight: 700; font-size: 17px; cursor: pointer;
  transition: transform .12s; box-shadow: 0 12px 34px rgba(70,224,208,.3);
}
.onb-start:hover { transform: translateY(-2px); }

/* ===== EINDE BEZOEK ===== */
.end-visit {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center;
  background: radial-gradient(1000px 600px at 50% 100%, rgba(212,161,58,.12), transparent 60%), rgba(6,8,11,.95);
  backdrop-filter: blur(8px);
}
.end-inner { width: min(620px, 92vw); text-align: center; padding: 30px; animation: cardin .5s ease; }
.end-check { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--ar); color: #06231f; font-size: 32px; font-weight: 800; box-shadow: 0 0 30px rgba(70,224,208,.45); }
.end-visit h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 5vw, 38px); margin-top: 18px; }
.end-count { font-size: 18px; color: var(--gold); margin-top: 8px; font-weight: 600; }
.end-body { color: var(--muted); margin-top: 10px; font-size: 15px; line-height: 1.5; }
.end-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.end-thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.end-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.end-actions .ar-btn { flex: 0 1 auto; padding: 13px 22px; }
.end-thanks { color: var(--muted-2); margin-top: 20px; font-size: 13px; font-style: italic; }

/* ===== privacy/trust badge + BYOD + bewaren + kalibratie ===== */
.priv-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ar); opacity: .9; }
.priv-badge .priv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ar); box-shadow: 0 0 8px var(--ar); }
.priv-badge::before { content: "🔒"; font-size: 10px; }

.byod-note { margin-top: 16px; color: var(--ar); font-size: 13px; opacity: .85; }

.ar-btn.icon-btn { flex: 0 0 auto; width: 48px; padding: 11px 0; }
.ar-btn .heart { font-size: 16px; }
.ar-btn.saved { background: rgba(212,161,58,.18); border-color: var(--gold); color: var(--gold); }

.onb-cal { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cal-dot {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ar);
  background: transparent; cursor: pointer; position: relative; animation: calpulse 1.7s infinite;
}
.cal-dot::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--ar); box-shadow: 0 0 12px var(--ar); }
.cal-dot.done { border-color: #5fe08a; animation: none; }
.cal-dot.done::after { background: #5fe08a; box-shadow: 0 0 12px #5fe08a; }
.cal-dot.done::before { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #06231f; font-weight: 800; font-size: 20px; z-index: 1; }
@keyframes calpulse { 0% { box-shadow: 0 0 0 0 rgba(70,224,208,.45); } 100% { box-shadow: 0 0 0 16px rgba(70,224,208,0); } }
.cal-text { color: var(--muted); font-size: 13px; }
.onb-start:disabled { opacity: .35; cursor: not-allowed; }

/* ============================================================
   3D-MUSEUMZAAL — door de bril lopen
   ============================================================ */
.walk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.walk-canvas:active { cursor: grabbing; }

/* "door de bril"-masker: helder venster in het midden, donkere rand,
   subtiele neusbrug onderaan — alsof je door een AR-bril kijkt. */
.glasses-mask { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.glasses-mask::before { /* zachte donkere periferie + lensrand */
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 220px 90px rgba(0,0,0,.82);
  -webkit-mask: radial-gradient(135% 115% at 50% 46%, #000 55%, transparent 78%);
          mask: radial-gradient(135% 115% at 50% 46%, #000 55%, transparent 78%);
  background: rgba(0,0,0,.0);
}
.glasses-mask::after { /* faint cyaan lens-/FOV-rand + neusbrug */
  content: ""; position: absolute; inset: 3vh 4vw;
  border-radius: 90px / 70px;
  box-shadow: inset 0 0 0 1.5px rgba(70,224,208,.10),
              inset 0 -40px 60px -30px rgba(0,0,0,.6);
}

.walk-hint {
  position: absolute; bottom: 7vh; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; gap: 10px; align-items: center; pointer-events: none;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  color: var(--muted); font-size: 12.5px; text-align: center;
  transition: opacity .5s; max-width: 92vw;
}
.walk-hint b { color: var(--ar); font-weight: 600; }
.walk-hint.fade { opacity: 0; }

/* ============================================================
   HANDBESTURING (webcam-gebaren)
   ============================================================ */
.hud-hands {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--ink);
  font-size: 15px; line-height: 1; display: inline-grid; place-items: center; padding: 0;
  transition: background .15s, color .15s, box-shadow .2s;
}
.hud-hands:hover { background: rgba(255,255,255,0.14); }
.hud-hands.on { background: var(--ar); color: #06231f; border-color: transparent; box-shadow: 0 0 14px rgba(70,224,208,.5); }

.hand-status {
  position: absolute; top: 58px; right: 26px; z-index: 6; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; color: var(--muted); transition: color .15s, border-color .15s;
}
.hand-status.live { color: var(--ar); }
.hand-status.pinch { color: var(--gold); border-color: var(--gold); }

/* reticle reageert op een knijp */
.reticle.pinch span { width: 16px; height: 16px; background: var(--gold); box-shadow: 0 0 20px var(--gold); }

/* "knijp om te openen" prompt onder de reticle (alleen met handbesturing aan) */
.arm-prompt {
  position: absolute; top: calc(50% + 40px); left: 50%; transform: translateX(-50%); z-index: 6;
  pointer-events: none; color: var(--gold); font-size: 14px; font-weight: 600;
  background: rgba(0,0,0,.55); padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--gold); animation: cardin .2s ease;
}

/* mirror-PiP van de hand-camera: publiek ziet de hand & vertrouwt de detectie */
#hand-cam.pip {
  display: block !important; position: absolute; z-index: 6; left: 22px; bottom: 22px;
  width: 200px; height: 150px; object-fit: cover; transform: scaleX(-1);
  border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: .92;
}

/* ============================================================
   VETTE AR-LAGEN — wat een audiogids niet kan
   ============================================================ */

/* "Onder de verf kijken": röntgen/onderschildering-laag onder een ronde lens */
.artwork-xray {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none;
  filter: grayscale(1) contrast(1.55) brightness(1.12) invert(.82) sepia(.4) hue-rotate(150deg) saturate(1.5);
  -webkit-mask-image: radial-gradient(circle 135px at var(--mx,50%) var(--my,50%), #000 56%, transparent 72%);
          mask-image: radial-gradient(circle 135px at var(--mx,50%) var(--my,50%), #000 56%, transparent 72%);
}
.reveal-ring {
  position: absolute; width: 270px; height: 270px; transform: translate(-50%,-50%); border-radius: 50%;
  border: 2px solid var(--ar); pointer-events: none; z-index: 3;
  box-shadow: 0 0 28px rgba(70,224,208,.5), inset 0 0 28px rgba(70,224,208,.22);
}

/* Dynamisch spotlicht: licht het detail uit, dimt de rest (chiaroscuro die jij stuurt) */
.spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(circle 130px at var(--sx,50%) var(--sy,50%),
              transparent 0, transparent 58%, rgba(0,0,0,.74) 80%);
  transition: background .35s ease;
}

/* Getrapte, filmische onthulling van de hotspots */
.hotspot-layer.reveal .hotspot { opacity: 0; animation: hsin .5s cubic-bezier(.2,.8,.2,1) forwards; }
.hotspot-layer.reveal .hotspot:nth-child(1) { animation-delay: .08s; }
.hotspot-layer.reveal .hotspot:nth-child(2) { animation-delay: .16s; }
.hotspot-layer.reveal .hotspot:nth-child(3) { animation-delay: .24s; }
.hotspot-layer.reveal .hotspot:nth-child(4) { animation-delay: .32s; }
.hotspot-layer.reveal .hotspot:nth-child(5) { animation-delay: .40s; }
@keyframes hsin { from { opacity: 0; transform: translate(-50%,-50%) scale(.3); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

/* tweede actie-rij in de AR-kaart */
.ar-actions.secondary { margin-top: 10px; }
.ar-btn.active { background: var(--gold); color: #2a1d05; border-color: transparent; }

/* "Meer weten" — progressive disclosure van de weetjes */
.ar-more{display:inline-block;margin-top:12px;background:transparent;border:0;color:var(--ar);font-family:var(--sans);font-weight:600;font-size:13.5px;cursor:pointer;padding:0}
.ar-more:hover{text-decoration:underline}
