:root{
  --bg:#0b0d10;
  --panel:#12161c;
  --panel2:#0f1318;
  --text:#e8eef6;
  --muted:#a7b2c0;
  --line:#223043;
  --accent:#7dd3fc;
  --accent2:#a78bfa;
  --danger:#fb7185;
  --ok:#34d399;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  /* OVERLAY: pas dit aan als je de caption transparanter/steviger wil */
  --overlay-alpha: .40;
  --overlay-radius: 14px;
  --overlay-pad: 12px;
  --r: 16px;
  --r2: 22px;
  --pad: 16px;
  --pad2: 22px;
  --max: 1000px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1000px 600px at 30% -10%, rgba(125,211,252,.14), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(167,139,250,.10), transparent 55%),
              var(--bg);
}

.topbar{
  position: sticky;
  top:0;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  border-bottom:1px solid rgba(34,48,67,.7);
  background: rgba(11,13,16,.75);
  backdrop-filter: blur(10px);
}

.brand-title{ font-weight: 800; letter-spacing:.2px; }
.brand-sub{ font-size: 12px; color: var(--muted); margin-top:2px; }

.top-actions{ display:flex; gap:10px; align-items:center; }

.app{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
}

.card{
  background: linear-gradient(180deg, rgba(18,22,28,.92), rgba(15,19,24,.92));
  border: 1px solid rgba(34,48,67,.8);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-inner{ padding: var(--pad2); }

.h1{ font-size: 22px; margin:0 0 8px; }
.p{ color: var(--muted); margin: 0 0 14px; line-height: 1.45; }

.row{ display:flex; gap: 12px; flex-wrap: wrap; align-items:center; }
.row-between{ display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; }

.btn{
  border: 1px solid rgba(34,48,67,.9);
  background: rgba(18,22,28,.95);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform .06s ease, border-color .2s ease, background .2s ease;
}
.btn:hover{ border-color: rgba(125,211,252,.55); }
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline: 2px solid rgba(125,211,252,.4); outline-offset: 2px; }
.btn-primary{
  background: linear-gradient(90deg, rgba(125,211,252,.18), rgba(167,139,250,.18));
  border-color: rgba(125,211,252,.55);
}
.btn-ghost{
  background: transparent;
  border-color: rgba(34,48,67,.6);
  padding: 8px 12px;
}
.btn-danger{ border-color: rgba(251,113,133,.55); }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

.pills{ display:flex; gap:10px; flex-wrap: wrap; }
.pill{
  border: 1px solid rgba(34,48,67,.8);
  background: rgba(11,13,16,.35);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 820px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
}

.choice{
  width:100%;
  text-align:left;
  border:1px solid rgba(34,48,67,.9);
  background: rgba(15,19,24,.55);
  border-radius: 18px;
  padding: 10px;
  cursor:pointer;
  transition: border-color .2s ease, transform .06s ease, background .2s ease;
  overflow:hidden;
  /* Buttons don't reliably inherit text color */
  color: var(--text);
}
.choice:hover{ border-color: rgba(125,211,252,.45); }
.choice:active{ transform: translateY(1px); }
.choice.selected{
  border-color: rgba(125,211,252,.75);
  box-shadow: 0 0 0 3px rgba(125,211,252,.15);
}
.choice-img{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(34,48,67,.25);
  border:1px solid rgba(34,48,67,.6);
  display:flex;
  align-items:center;
  justify-content:center;
}
.choice-img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.choice-img .ph{
  padding: 10px;
  text-align:center;
  font-size: 12px;
  color: rgba(255,255,255,.92);
  background: rgba(11,13,16,.55);
  border-radius: 12px;
  line-height: 1.5;
}
.choice-img .ph div + div,
.slide .imgbox .ph div + div {
  margin-top: 4px;
}
.choice-title{
  font-weight: 750;
  margin: 10px 2px 0;
  color: var(--text);
}
.choice-sub{
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}
@media (max-width: 820px){
  .split{ grid-template-columns: 1fr; }
}

.list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.sort-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 12px;
  border:1px solid rgba(34,48,67,.8);
  background: rgba(11,13,16,.22);
  border-radius: 16px;
}
.sort-item .handle{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border:1px solid rgba(34,48,67,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  background: rgba(18,22,28,.6);
  cursor: grab;
  user-select:none;
}
.sort-item.dragging{ opacity:.55; }
.sort-item .label{ font-weight: 700; }
.sort-item .small{ font-size:12px; color: var(--muted); }
.sort-actions{ margin-left:auto; display:flex; gap:8px; }
.icon-btn{
  width:36px;
  height:36px;
  border-radius: 12px;
  border:1px solid rgba(34,48,67,.7);
  background: rgba(18,22,28,.55);
  color: var(--text);
  cursor:pointer;
}
.icon-btn:hover{ border-color: rgba(125,211,252,.45); }

.player{
  border-top:1px solid rgba(34,48,67,.6);
  background: rgba(11,13,16,.25);
}
.player-top{
  padding: 14px var(--pad2);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}
.stage{
  height: 380px;
  position: relative;
  overflow:hidden;
  border-top:1px solid rgba(34,48,67,.6);
}
@media (max-width: 520px){
  .stage{ height: 300px; }
}
.slide{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
}
.slide .imgbox{
  flex: 1;
  position:relative;
  overflow:hidden;
  background: rgba(34,48,67,.18);
}
.slide .imgbox img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.slide .imgbox .ph{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.92);
  background: rgba(11,13,16,.35);
  font-size: 13px;
  text-align:center;
  padding: 18px;
  line-height: 1.5;
  gap: 5px;
}
.overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.cap{
  display:flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  left: 14px;
  right: 14px;
  padding: var(--overlay-pad);
  border-radius: var(--overlay-radius);
  color: #fff;
  background: rgba(0,0,0,var(--overlay-alpha));
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
  backdrop-filter: blur(2px);
  text-align: center;
}
.cap-top{
  top: 14px;
  font-weight: 850;
}
.cap-bottom{
  bottom: 14px;
  font-size: 14px;
  line-height: 1.35;
}


.fade-in{ animation: fadeIn var(--tr,1s) ease both; }
.slide-in{ animation: slideIn var(--tr,1s) ease both; }

@keyframes fadeIn{
  from{ opacity:0; }
  to{ opacity:1; }
}
@keyframes slideIn{
  from{ transform: translateX(6%); opacity:.35; }
  to{ transform: translateX(0); opacity:1; }
}

.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  z-index: 30;
}
.modal{
  position:fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px));
  background: rgba(18,22,28,.96);
  border: 1px solid rgba(34,48,67,.8);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  z-index: 31;
  overflow:hidden;
}
.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 16px;
  border-bottom:1px solid rgba(34,48,67,.6);
}
.modal-body{ padding: 16px; color: var(--muted); line-height: 1.5; }
.hidden{ display:none !important; }
.muted{ color: var(--muted); }

.debug-pre{
  background: rgba(11,13,16,.55);
  border: 1px solid rgba(34,48,67,.6);
  border-radius: 14px;
  padding: 14px;
  overflow:auto;
  max-height: 55vh;
  color: rgba(232,238,246,.92);
  font-size: 12px;
}

hr.sep{
  border:0;
  border-top:1px solid rgba(34,48,67,.6);
  margin: 16px 0;
}

.print-note{
  font-size: 12px;
  color: var(--muted);
}

/* ── Mindmap CTA (laatste stap) ─────────────────────────────────────── */
.mindmap-cta{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 20px;
  border-radius: 18px;
  border: 2px solid rgba(217,119,6,.45);
  background: linear-gradient(160deg, rgba(217,119,6,.10), rgba(180,83,9,.07));
  text-align: center;
}
.mindmap-cta-label{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.mindmap-cta-note{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.5;
}
.btn-mindmap-primary{
  font-size: 17px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 14px;
  border: 2px solid rgba(217,119,6,.75) !important;
  background: linear-gradient(170deg, rgba(217,119,6,.26), rgba(180,83,9,.22)) !important;
  box-shadow: 0 4px 18px rgba(217,119,6,.20);
  letter-spacing: .01em;
  transition: transform .1s, box-shadow .1s;
}
.btn-mindmap-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,119,6,.32);
  border-color: rgba(217,119,6,.95) !important;
}
.btn-mindmap-primary:active{ transform: translateY(1px); }

.sticky-row{ position: sticky; bottom: 10px; padding-top: 12px; background: linear-gradient(180deg, rgba(18,22,28,0), rgba(18,22,28,.92) 35%, rgba(18,22,28,.96)); }

/* --- Presentatiemodus (full screen overlay) --- */
.presentation-overlay{
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.presentation-overlay .stage{
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}
.presentation-overlay .slide{ border-radius: 0; border: 0; }
.presentation-hint{
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  z-index: 101;
  pointer-events: none;
}

.presenting #app{ display:none; }


/* --- Fix: choice-card uses same styling as choice (done screen) --- */
.choice-card{
  width:100%;
  text-align:left;
  border:1px solid rgba(34,48,67,.9);
  background: rgba(15,19,24,.55);
  border-radius: 18px;
  padding: 10px;
  cursor:pointer;
  transition: border-color .2s ease, transform .06s ease, background .2s ease;
  overflow:hidden;
  color: var(--text);
}
.choice-card:hover{ border-color: rgba(125,211,252,.45); }
.choice-card:active{ transform: translateY(1px); }
.choice-card.selected{ border-color: rgba(125,211,252,.75); background: rgba(15,23,42,.75); }

/* Ensure title/sub text inherits properly */
.choice-card .choice-title,
.choice-card .choice-sub{
  color: inherit;
}

:root{
  --bg:#090909;
  --panel:#111111;
  --panel2:#171717;
  --text:#f5f5f5;
  --muted:#b7bcc5;
  --line:#2b2b2b;
  --accent:#d97706;
  --accent-soft:rgba(217,119,6,.18);
  --accent-strong:#b45309;
  --accent-pale:#f7e7d4;
  --banner-bg:#c96d00;
  --banner-fg:#111111;
  --banner-sub:rgba(17,17,17,.82);
  --shadow:0 16px 40px rgba(0,0,0,.35);
  --max:1180px;
}
body{
  background:
    radial-gradient(900px 520px at 20% -10%, rgba(217,119,6,.12), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(234,179,8,.08), transparent 55%),
    var(--bg);
}
.topbar{
  padding:0;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:var(--banner-bg);
  backdrop-filter:none;
}
.brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  color:var(--banner-fg);
}
.brand-left{ display:flex; align-items:center; gap:12px; }
.badge{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  user-select:none;
  flex:0 0 auto;
  background:transparent;
}
.shield-mark{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand-title{
  font-size:14px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--banner-fg);
}
.brand-sub{
  font-size:12px;
  margin-top:2px;
  color:var(--banner-sub);
}
.top-actions .btn-ghost{
  color:#111111;
  border-color:rgba(17,17,17,.24);
  background:rgba(255,255,255,.14);
}
.top-actions .btn-ghost:hover{
  border-color:rgba(17,17,17,.4);
  background:rgba(255,255,255,.2);
}
.card{
  background:linear-gradient(180deg, rgba(17,17,17,.96), rgba(14,14,14,.96));
  border:1px solid rgba(255,255,255,.08);
}
.btn{
  border-color:rgba(255,255,255,.10);
  background:#181818;
}
.btn:hover{ border-color: rgba(217,119,6,.65); }
.btn:focus{ outline:2px solid rgba(217,119,6,.4); }
.btn-primary{
  background:linear-gradient(180deg, rgba(217,119,6,.18), rgba(180,83,9,.18));
  border-color:rgba(217,119,6,.55);
}
.pill{
  border-color:rgba(217,119,6,.28);
  background:rgba(217,119,6,.08);
  color:#f3d6b5;
}
.choice, .choice-card{
  border-color:rgba(255,255,255,.08);
  background:rgba(18,18,18,.85);
}
.choice:hover, .choice-card:hover{ border-color:rgba(217,119,6,.45); }
.choice.selected, .choice-card.selected{
  border-color:rgba(217,119,6,.72);
  box-shadow:0 0 0 3px rgba(217,119,6,.14);
  background:rgba(29,19,8,.95);
}
.choice-img{
  background:linear-gradient(180deg, rgba(217,119,6,.08), rgba(255,255,255,.03));
  border-color:rgba(255,255,255,.08);
}
.choice-img .ph,
.slide .imgbox .ph{
  background:
    linear-gradient(180deg, rgba(217,119,6,.22), rgba(0,0,0,.24)),
    rgba(11,13,16,.18);
  color:#fff7ed;
}
.print-note{
  margin-top:18px;
  line-height:1.45;
}
.screen-powered{
  margin-top:18px;
  display:flex;
  justify-content:flex-end;
}
.screen-powered .powered-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  color:#cfd6df;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.screen-powered .powered-wrap img{
  height:24px;
  width:auto;
  display:block;
}


/* === v4 visual refinement === */
body{
  background: var(--bg) !important;
}
.topbar{
  background: linear-gradient(135deg, #b96400 0%, #d87905 48%, #c56d00 100%) !important;
  border-bottom:1px solid rgba(0,0,0,.22) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.brand{
  color:#fff8ee !important;
}
.badge{
  width:46px;
  height:46px;
  padding:7px;
  border-radius:14px;
  background: rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.shield-mark{
  filter: invert(1) brightness(2.3);
}
.brand-title{
  color:#fffaf2 !important;
  font-size:15px !important;
}
.brand-sub{
  color: rgba(255,248,238,.82) !important;
}
.top-actions .btn-ghost{
  color:#fff8ee !important;
  border-color:rgba(255,255,255,.18) !important;
  background:rgba(0,0,0,.12) !important;
}
.top-actions .btn-ghost:hover{
  background:rgba(0,0,0,.18) !important;
  border-color:rgba(255,255,255,.28) !important;
}
.screen-powered .powered-wrap img{
  filter: invert(1) brightness(2.2);
  opacity:.96;
}
.screen-powered .powered-wrap{
  color:#d5dbe4;
}
.print-note{
  margin-top:24px !important;
}

.topbar{
  position:sticky;
  overflow:hidden;
}
.topbar::before{
  content:"";
  position:absolute;
  inset:-30% auto -30% -22%;
  width:28%;
  pointer-events:none;
  background:linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 40%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.12) 60%, rgba(255,255,255,0) 100%);
  transform:translateX(-140%) skewX(-22deg);
  animation:topbarShine 8.6s linear infinite;
  mix-blend-mode:screen;
  opacity:.9;
}
@keyframes topbarShine{
  0%{ transform:translateX(-140%) skewX(-22deg); }
  100%{ transform:translateX(520%) skewX(-22deg); }
}
.brand,.top-actions{ position:relative; z-index:1; }
