/* Katerns rondleiding: dezelfde vlakke stijl als katern.pages.dev (donker, geel als accent). Geen verlopen, geen gloed. */
:root {
  --bg: #09090b; --vlak: #111114; --vlak2: #17171b; --lijn: #26262c; --inkt: #f4f4f6; --dof: #a3a3ab; --geel: #ffd23f; --geel-inkt: #17130a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--inkt); }
body { font: 15px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--geel); outline-offset: 2px; border-radius: 6px; }

.t-app { display: grid; grid-template-columns: 270px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
.t-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--lijn); }
.t-brand { display: flex; align-items: center; gap: 10px; font: 700 17px/1 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; text-decoration: none; color: inherit; }
.t-brand img { width: 28px; height: 28px; border-radius: 7px; }
.t-brand span { color: var(--dof); font-weight: 600; }
.t-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid var(--lijn); border-radius: 10px; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.t-btn:hover { border-color: #4a4a52; }
.t-btn.geel { background: var(--geel); border-color: var(--geel); color: var(--geel-inkt); font-weight: 700; }
.t-btn.geel:hover { background: #ffdc66; }
.t-btn.on { border-color: var(--geel); color: var(--geel); }
.t-btn.geel.on { color: var(--geel-inkt); }
.t-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-sel { min-height: 36px; padding: 0 10px; border: 1px solid var(--lijn); border-radius: 10px; background: var(--vlak); }
.t-only-small { display: none; }

.t-menu { border-right: 1px solid var(--lijn); padding: 16px 12px 40px; overflow-y: auto; max-height: calc(100vh - 61px); position: sticky; top: 0; }
.t-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; }
.t-menu-head h2 { margin: 0; font-size: 13px; color: var(--dof); text-transform: uppercase; letter-spacing: .08em; }
#menuList, .t-sc { list-style: none; margin: 0; padding: 0; }
.t-ch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--dof); }
.t-ch:hover { background: var(--vlak); color: var(--inkt); }
.t-ch-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--vlak2); border: 1px solid var(--lijn); font-size: 12px; }
.t-ch-li.on > .t-ch { color: var(--inkt); }
.t-ch-li.on .t-ch-n { background: var(--geel); border-color: var(--geel); color: var(--geel-inkt); }
.t-sc { display: none; padding: 2px 0 8px 34px; }
.t-ch-li.on .t-sc { display: block; }
.t-sc-b { display: block; width: 100%; padding: 4px 8px; border: 0; border-radius: 7px; background: none; text-align: left; font-size: 13px; color: var(--dof); cursor: pointer; }
.t-sc-b:hover { color: var(--inkt); background: var(--vlak); }
.t-sc-b.on { color: var(--inkt); box-shadow: inset 2px 0 0 var(--geel); }

.t-main { min-width: 0; padding: 18px 22px 30px; display: flex; flex-direction: column; gap: 12px; }
.t-stagewrap { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #000; }
.t-stage { position: absolute; top: 0; left: 0; width: 1280px; height: 760px; transform-origin: 0 0; overflow: hidden; background: #e9e9ee; }
.t-sub { min-height: 3.2em; padding: 4px 6px; font: 600 21px/1.4 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; text-align: center; letter-spacing: -.005em; }
.t-sub.in { animation: subIn .35s ease; }
@keyframes subIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.t-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.t-where { min-width: 0; flex: 1; display: flex; flex-direction: column; color: var(--dof); font-size: 13px; }
.t-where b { color: var(--inkt); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-progress { height: 4px; border-radius: 4px; background: var(--vlak2); overflow: hidden; }
.t-progress i { display: block; height: 100%; width: 0; background: var(--geel); transition: width .4s; }
#playBtn { min-width: 110px; }
.t-still { color: var(--dof); font-size: 13px; text-align: center; }

/* Start- en eindkaart */
.t-cover { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .78); }
.t-cover-card { width: min(560px, 100%); padding: 28px; border: 1px solid var(--lijn); border-radius: 18px; background: var(--vlak); display: grid; gap: 14px; text-align: center; }
.t-cover-card img { width: 64px; height: 64px; border-radius: 14px; justify-self: center; }
.t-cover-card h1 { margin: 0; font: 700 30px/1.15 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; }
.t-cover-card p { margin: 0; color: var(--dof); }
.t-cover-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.t-cover-row .t-btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.t-cover-lang { justify-self: center; }

@media (max-width: 900px) {
  .t-app { grid-template-columns: minmax(0, 1fr); }
  .t-menu { position: fixed; z-index: 40; inset: 0 30% 0 0; max-height: none; background: var(--bg); transform: translateX(-102%); transition: transform .25s; border-right: 1px solid var(--lijn); }
  body.t-menu-open .t-menu { transform: none; }
  .t-only-small { display: inline-flex; }
  .t-main { padding: 12px 12px 24px; }
  .t-sub { font-size: 17px; }
  .t-top { padding: 10px 12px; gap: 6px; }
  .t-top .t-hide-small { display: none; }
}
@media (max-width: 520px) {
  .t-top { flex-wrap: wrap; }
  .t-top-r { gap: 6px; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
  .t-sel { max-width: 120px; }
  .t-top .t-btn, .t-ctrl .t-btn { padding: 0 10px; }
  .t-menu { inset: 0 12% 0 0; }
  .t-brand span { display: none; }
  #playBtn { min-width: 0; }
}
