:root {
  --grond: #12261a; --vlak: #1b3520; --tekst: #f1ede3; --zacht: rgba(241,237,227,.72);
  --accent: #e9c877; --op-accent: #2b1e12; --rood: #c4372b; --ok: #3fb47c; --let: #e0a43a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--grond); color: var(--tekst);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.scherm { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.kaart { width: 100%; max-width: 460px; background: var(--vlak); border-radius: 20px; padding: 24px 20px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.merk { margin: 0 0 2px; font-size: 14px; letter-spacing: .04em; color: var(--accent); }
h1 { margin: 0 0 16px; font-size: 24px; line-height: 1.2; }
.zacht { color: var(--zacht); }
.klein { font-size: 13px; color: var(--zacht); margin: 14px 0 0; text-align: center; }

.spiegel { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: 14px; overflow: hidden; }
.spiegel video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.geen-beeld { position: absolute; inset: 0; display: grid; place-items: center; color: var(--zacht); }
.spiegel-knoppen { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 10px; justify-content: center; }

.melding { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(224,164,58,.15);
  border: 1px solid rgba(224,164,58,.45); font-size: 14px; }
.veld { display: block; margin-top: 14px; font-size: 14px; color: var(--zacht); }
.veld input, .veld select { display: block; width: 100%; margin-top: 6px; padding: 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: var(--tekst); font-size: 16px; }
.apparaten { margin-top: 12px; font-size: 14px; color: var(--zacht); }
.apparaten summary { cursor: pointer; padding: 4px 0; }
.hoofdknop { display: block; width: 100%; margin-top: 18px; padding: 14px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--op-accent); font-weight: 700; font-size: 17px; }
.hoofdknop:disabled { opacity: .55; cursor: default; }

/* Ronde knoppen met icoon via mask */
.rond { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16);
  position: relative; flex: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rond::before { content: ""; position: absolute; inset: 14px; background: var(--tekst);
  -webkit-mask: var(--icoon) center / contain no-repeat; mask: var(--icoon) center / contain no-repeat; }
.rond[aria-pressed="false"] { background: var(--tekst); }
.rond[aria-pressed="false"]::before { background: var(--grond); }
.rond.rood { background: var(--rood); width: 64px; }
.rond.actief { background: var(--accent); }
.rond.actief::before { background: var(--op-accent); }
#mic, #vMic { --icoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.9V22h2v-3.1a7 7 0 0 0 6-6.9h-2z'/%3E%3C/svg%3E"); }
#mic[aria-pressed="false"], #vMic[aria-pressed="false"] { --icoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 10.6V6a3 3 0 0 0-5.9-.8L15 10.6zM3.3 2 2 3.3l7 7V12a3 3 0 0 0 4.5 2.6l1.5 1.5A5 5 0 0 1 7 12H5a7 7 0 0 0 6 6.9V22h2v-3.1a7 7 0 0 0 3.5-1.4l4.2 4.2 1.3-1.3L3.3 2zM19 12h-2c0 .7-.1 1.3-.4 1.9l1.5 1.5A7 7 0 0 0 19 12z'/%3E%3C/svg%3E"); }
#cam, #vCam { --icoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 10.5V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3.5l4 4v-11l-4 4z'/%3E%3C/svg%3E"); }
#cam[aria-pressed="false"], #vCam[aria-pressed="false"] { --icoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6.5l-4 4V7a1 1 0 0 0-1-1H9.8L21 17.2V6.5zM3.3 2 2 3.3 4.7 6H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12c.2 0 .4-.1.6-.2l3.1 3.1 1.3-1.3L3.3 2z'/%3E%3C/svg%3E"); }
#scherm { --icoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 18a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2H0v2h24v-2h-4zM4 6h16v10H4V6zm8 1-4 4h3v4h2v-4h3l-4-4z'/%3E%3C/svg%3E"); }
#wissel { --icoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 5h-3.2L15 3H9L7.2 5H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm-8 13a5 5 0 0 1-4.6-3H9l-2.5-3L4 15h1.3A7 7 0 0 0 12 20v-2zm0-10a5 5 0 0 1 4.6 3H15l2.5 3L20 11h-1.3A7 7 0 0 0 12 6v2z'/%3E%3C/svg%3E"); }
#ophangen { --icoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 9c-1.6 0-3.1.3-4.6.7v3.1c0 .4-.2.7-.6.9-1 .5-1.9 1.1-2.7 1.8-.2.2-.4.3-.7.3s-.5-.1-.7-.3L.3 13.1A1 1 0 0 1 0 12.4c0-.3.1-.5.3-.7A16.9 16.9 0 0 1 12 7c4.5 0 8.6 1.8 11.7 4.7.2.2.3.4.3.7s-.1.5-.3.7l-2.5 2.5c-.2.2-.4.3-.7.3s-.5-.1-.7-.3c-.8-.7-1.7-1.3-2.7-1.8-.3-.2-.6-.5-.6-.9V9.7C15.1 9.3 13.6 9 12 9z'/%3E%3C/svg%3E"); }

/* Gesprek */
#gesprek { padding: 0; display: block; }
.podium { position: fixed; inset: 0; background: #000; overflow: hidden; }
#ander { width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-aspect-ratio: 3/4) { #ander:not(.scherm) { object-fit: cover; } }
.ander-uit { position: absolute; inset: 0; display: grid; place-items: center; background: var(--vlak); }
.ander-uit span { width: 120px; height: 120px; border-radius: 50%; background: var(--accent); color: var(--op-accent);
  display: grid; place-items: center; font-size: 48px; font-weight: 700; }
.wacht { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; background: var(--grond); text-align: center; padding: 24px; }
.wacht p { margin: 0; font-size: 20px; max-width: 30ch; }
.puls { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); animation: puls 1.8s ease-in-out infinite; }
@keyframes puls { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .puls { animation: none; } }
.ik { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top)); width: 26vw; max-width: 220px;
  min-width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; transform: scaleX(-1);
  background: #222; box-shadow: 0 6px 24px rgba(0,0,0,.5); z-index: 3; }
.ik.scherm-delen { transform: none; object-fit: contain; }
@media (min-aspect-ratio: 1/1) { .ik { aspect-ratio: 4 / 3; } }
.status { position: absolute; left: 16px; top: calc(16px + env(safe-area-inset-top)); display: flex; gap: 8px;
  align-items: center; background: rgba(0,0,0,.45); padding: 8px 14px; border-radius: 99px; font-size: 14px; z-index: 3; }
.stip { width: 10px; height: 10px; border-radius: 50%; background: var(--zacht); }
.stip.goed { background: var(--ok); } .stip.matig { background: var(--let); } .stip.slecht { background: var(--rood); }
.ander-mic { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom));
  background: rgba(0,0,0,.55); padding: 8px 16px; border-radius: 99px; font-size: 14px; z-index: 3; }
.balk { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 14px; justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); z-index: 4;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); }
