/* ===================== Te-Un Games platform ===================== */
:root {
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --display: 'Outfit', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --bg: #060f26;
  --bg-2: #0a1a40;
  --surface: #0d1d44;
  --surface-2: #132a5c;
  --line: rgba(145, 180, 255, .16);
  --line-2: rgba(145, 180, 255, .3);
  --text: #eef3ff;
  --muted: #9db1db;
  --blue: #2f7bff;
  --blue-2: #5cc8ff;
  --gold: #ffd23f;
  --ink: #0a1a40;
  --top-h: 64px;
  --rail-w: 252px;
  --r: 16px;
  --shadow: 0 18px 40px rgba(0, 8, 30, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); font-size: 15px; line-height: 1.55;
  background: radial-gradient(1100px 560px at 78% -8%, rgba(47, 123, 255, .3), transparent 60%),
              radial-gradient(900px 500px at -5% 30%, rgba(92, 200, 255, .1), transparent 60%), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.12; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.ico { vertical-align: -0.2em; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bg { display: none; }

/* ---- opstartscherm ---- */
#boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .5s, visibility .5s; }
#boot.done { opacity: 0; visibility: hidden; }
.boot-in { text-align: center; }
.boot-img { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 14px; animation: bootpop 1.4s ease-in-out infinite alternate; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
@keyframes bootpop { to { transform: translateY(-8px) rotate(-3deg); } }
.boot-logo { font: 700 32px var(--display); }
.boot-logo b { color: var(--gold); }
.boot-bar { width: 200px; height: 6px; background: rgba(255,255,255,.12); border-radius: 10px; margin: 16px auto 12px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 10px; animation: boot 1.1s ease-in-out infinite; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.boot-in p { color: var(--muted); margin: 0; }

/* ---- indeling ---- */
#app { position: relative; z-index: 1; }
.top {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 30; display: flex; align-items: center; gap: 18px; padding: 0 22px;
  background: rgba(6, 15, 38, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 11px; font: 700 22px var(--display); width: calc(var(--rail-w) - 22px); flex: none; letter-spacing: -.01em; }
.logo b { color: var(--gold); }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); transition: transform .3s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; height: 42px; color: var(--muted); transition: background .2s, border-color .2s, box-shadow .2s; }
.search:focus-within { background: rgba(255,255,255,.1); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.3); color: var(--text); }
.search input { flex: 1; background: none; border: 0; outline: 0; min-width: 0; font-size: 15px; box-shadow: none !important; padding: 0; }
.search input::placeholder { color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pop-wrap { position: relative; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); display: inline-grid; place-items: center; transition: transform .15s, background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.popover { position: absolute; top: calc(100% + 10px); right: 0; min-width: 270px; background: #0c1b3f; border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); z-index: 40; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 10px; }
.pop-item:hover { background: rgba(255,255,255,.08); }
.pop-item small { display: block; color: var(--muted); font-size: 12px; }
.pop-item b { display: block; font-weight: 600; }
.sw { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; }
.sw.plain { background: rgba(255,255,255,.08); }
.sw.plain svg { width: 24px; height: 24px; }

.avatar-btn { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 4px; }
.avatar-btn:hover { background: rgba(255,255,255,.12); }
.avatar-btn .an { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-block; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #7fb8ff, #e1f0ff); border: 2px solid rgba(255,255,255,.75); flex: none; }
.avatar svg { display: block; width: 100%; height: 100%; }
.avatar.sm { width: 34px; height: 34px; }
.avatar.lg { width: 88px; height: 88px; }
.avatar.xl { width: 112px; height: 112px; }
.av-face { width: 100%; height: 100%; background: linear-gradient(160deg, #cfe5ff, #7fb8ff); }
.avsvg { width: 100%; height: 100%; }

.rail {
  position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--rail-w); z-index: 20; padding: 18px 12px; overflow-y: auto;
  background: rgba(6, 15, 38, .55); border-right: 1px solid var(--line); display: flex; flex-direction: column;
}
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav > a, .rail-game { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 12px; font-weight: 500; color: #cfdcf7; transition: background .15s, color .15s; position: relative; }
.rail nav > a:hover, .rail-game:hover { background: rgba(255,255,255,.07); color: #fff; }
.rail a.on { background: rgba(47,123,255,.2); color: #fff; font-weight: 600; }
.rail a.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue-2); }
.rail-sep { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); padding: 20px 12px 8px; font-weight: 600; }
.rg-img { width: 36px; height: 28px; border-radius: 7px; background: var(--surface-2) center/cover; flex: none; border: 1px solid var(--line); }
.rail-empty { margin: 4px 12px; color: var(--muted); font-size: 13px; }
.rail-foot { margin-top: auto; padding-top: 16px; text-align: center; color: var(--muted); font-size: 12px; }
.rail-teun svg { width: 78px; height: auto; opacity: .95; }

main#view { position: relative; margin-left: var(--rail-w); padding: calc(var(--top-h) + 28px) 36px 48px; min-height: 100vh; outline: 0; max-width: calc(1440px + var(--rail-w)); }

/* ---- knoppen ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 11px 20px; font-weight: 600; font-size: 15px; transition: transform .12s, box-shadow .15s, background .2s, filter .2s; white-space: nowrap; }
.btn.primary { background: linear-gradient(180deg, #4a90ff, #2467e6); color: #fff; box-shadow: 0 8px 20px rgba(47,123,255,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.primary:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: #3a2a00; box-shadow: 0 8px 20px rgba(255,210,63,.3); }
.btn.ghost { background: rgba(255,255,255,.07); border-color: var(--line); }
.btn.ghost:hover { background: rgba(255,255,255,.13); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.big { padding: 14px 28px; font-size: 17px; border-radius: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.liked { background: #ff4d6d; border-color: #ff4d6d; color: #fff; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue-2); }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; background: var(--gold); color: #3a2a00; z-index: 2; }

/* ---- merk bovenaan ---- */
.brand { text-align: center; margin: 0 auto 8px; max-width: 760px; }
.brand-logo { margin: 0; line-height: 0; }
.big-logo { display: block; width: min(560px, 82%); height: auto; margin: 0 auto; filter: drop-shadow(0 22px 40px rgba(0, 20, 90, .55)); animation: logoin .8s var(--ease) both; }
@keyframes logoin { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.brand-sub { margin: 4px 0 28px; color: var(--muted); font-size: 17px; }

/* ---- uitgelicht ---- */
.featured { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 340px; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #0f2a62, #0a1a40); border: 1px solid var(--line-2); box-shadow: var(--shadow); margin-bottom: 40px; }
.feat-img { background: center/cover; position: relative; min-height: 260px; }
.feat-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #0f2a62 100%); }
.feat-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.feat-body h2 { font-size: clamp(30px, 3.6vw, 46px); }
.feat-body p { margin: 0; color: #c3d3f3; font-size: 17px; max-width: 460px; }
.feat-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.feat-stats { display: flex; gap: 16px; color: var(--muted); font-size: 14px; }
.feat-stats span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- blokken en kaarten ---- */
.block { margin-bottom: 40px; }
.block-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.block-head h2 { font-size: 26px; }
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card-game { display: block; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card-game:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 22px 40px rgba(0, 10, 40, .55); }
.cg-img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2) center/cover; transition: transform .5s var(--ease); }
.card-game:hover .cg-img { transform: scale(1.04); }
.card-game > .cg-img { overflow: hidden; }
.cg-play { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(47,123,255,.55); opacity: 0; transform: translateY(8px) scale(.9); transition: .25s var(--ease); }
.card-game:hover .cg-play { opacity: 1; transform: none; }
.cg-body { padding: 14px 16px 15px; position: relative; display: grid; gap: 2px; }
.cg-body b { font: 600 17px var(--display); }
.cg-body > span { color: var(--muted); font-size: 13px; }
.cg-meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; margin-top: 6px; }
.cg-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---- over Te-Un ---- */
.about { position: relative; display: flex; gap: 44px; align-items: center; background: linear-gradient(135deg, rgba(47,123,255,.18), rgba(92,200,255,.06)); border: 1px solid var(--line); border-radius: 24px; padding: 32px 40px; margin-bottom: 20px; overflow: hidden; }
.about-teun { flex: 0 0 150px; }
.about-teun svg { width: 100%; height: auto; filter: drop-shadow(0 14px 16px rgba(0,0,0,.4)); }
.about h2 { font-size: 32px; margin: 6px 0 8px; }
.about p { font-size: 16px; max-width: 560px; margin: 0 0 18px; color: #c3d3f3; }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 20px; grid-column: 1 / -1; }
.empty-teun svg { width: 110px; height: auto; }
.empty h3 { font-size: 24px; margin: 10px 0 6px; }
.empty p { color: var(--muted); margin: 0 0 14px; }
.page-title { margin-bottom: 22px; }
.page-title h1 { font-size: 34px; }

.foot { margin-top: 48px; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 600 18px var(--display); }
.foot-brand .logo-mark { width: 30px; height: 30px; }
.foot p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---- gamepagina ---- */
.crumbs { margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 600; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-bottom: 40px; }
.player { position: relative; aspect-ratio: 16 / 9; max-height: 76vh; width: 100%; border-radius: 18px 18px 0 0; overflow: hidden; background: #000 var(--poster) center/cover; box-shadow: var(--shadow); border: 1px solid var(--line-2); border-bottom: 0; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player:fullscreen { max-height: none; border-radius: 0; }
.player-poster { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 10, 28, .6); backdrop-filter: blur(8px); }
.player.playing .player-poster { display: none; }
.poster-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; }
.poster-card h2 { font-size: clamp(26px, 4vw, 42px); }
.poster-teun svg { height: clamp(100px, 18vh, 170px); width: auto; filter: drop-shadow(0 10px 12px rgba(0,0,0,.4)); }
.poster-card small { color: rgba(255,255,255,.75); }
.player-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 0 0 18px 18px; flex-wrap: wrap; }
.pb-title { display: flex; flex-direction: column; margin-right: auto; }
.pb-title h1 { font-size: 20px; }
.pb-title h1 small { font: 500 13px var(--font); color: var(--muted); margin-left: 6px; }
.pb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.side-col { display: flex; flex-direction: column; gap: 14px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 14px; }
.side-col .card { margin-bottom: 0; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { margin: 0 0 12px; color: #c3d3f3; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.stat-row b { color: var(--text); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.controls { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.controls li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #c3d3f3; }
kbd { background: rgba(255,255,255,.1); border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 7px; padding: 1px 8px; font: 600 12.5px var(--font); white-space: nowrap; color: #fff; }
.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prog-grid div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; }
.prog-grid b { display: block; font: 700 22px var(--display); color: var(--blue-2); }
.prog-grid small { color: var(--muted); }

/* ---- profiel ---- */
.profile-head { position: relative; display: flex; align-items: center; gap: 24px; background: linear-gradient(135deg, rgba(47,123,255,.2), rgba(92,200,255,.05)); border: 1px solid var(--line); border-radius: 24px; padding: 26px 30px; margin-bottom: 18px; overflow: hidden; }
.profile-head h1 { font-size: 34px; }
.profile-teun { position: absolute; right: 24px; bottom: -8px; height: 130%; }
.profile-teun svg { height: 100%; width: auto; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 14px; }
.av-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 2px solid var(--line); text-align: center; transition: transform .15s, border-color .15s; }
.av-opt:hover { transform: translateY(-3px); }
.av-opt.on { border-color: var(--blue-2); background: rgba(47,123,255,.18); }
.av-opt small { color: var(--muted); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 180px; }
input, select, textarea { background: rgba(0,0,0,.25); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 13px; outline: 0; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.3); }
select option { color: #111; }
.mygames { display: grid; gap: 10px; }
.mygame { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.mygame:hover { background: rgba(255,255,255,.09); }
.mygame small { display: block; color: var(--muted); }
.mg-img { width: 84px; height: 56px; border-radius: 10px; background: var(--surface-2) center/cover; flex: none; }
.liked-mark { margin-left: auto; color: #ff4d6d; }
.misc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta { text-align: center; }

/* ---- modals en formulieren ---- */
#modal-root { position: relative; z-index: 60; }
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 20, .68); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s; overflow: auto; }
.modal-wrap.in { opacity: 1; } .modal-wrap.out { opacity: 0; }
.modal { position: relative; width: min(460px, 100%); max-height: 92vh; overflow: auto; background: #0b1a3d; border: 1px solid var(--line-2); border-radius: 22px; padding: 28px; box-shadow: 0 30px 70px rgba(0,0,0,.6); transform: translateY(14px) scale(.97); transition: transform .25s var(--ease); }
.modal.wide { width: min(640px, 100%); }
.modal-wrap.in .modal { transform: none; }
.modal-x { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); font-size: 22px; line-height: 1; z-index: 2; }
.modal-x:hover { background: rgba(255,255,255,.16); }
.auth-modal { width: min(780px, 100%); padding: 0; overflow: hidden; }
.auth { display: grid; grid-template-columns: 240px 1fr; }
.auth-teun { background: linear-gradient(180deg, rgba(47,123,255,.3), rgba(47,123,255,.08)); display: flex; align-items: flex-end; justify-content: center; padding: 20px 10px 0; }
.auth-teun svg { width: 100%; height: auto; }
.auth-main { padding: 30px 32px 26px; }
.auth-main h2 { font-size: 27px; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; background: rgba(0,0,0,.28); padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--blue); color: #fff; }
.auth-note { color: var(--muted); margin: 4px 0 14px; min-height: 1.3em; font-size: 14px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 14px; color: var(--muted); font-weight: 500; }
.form-err { color: #ffc9c9; background: rgba(170,20,20,.35); border-radius: 10px; font-size: 14px; }
.form-err:not(:empty) { padding: 8px 12px; }
.auth-foot { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--blue-2); text-decoration: underline; }
.demo-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 90; background: #0c1b3f; border: 1px solid var(--blue); border-radius: 12px; padding: 11px 20px; font-weight: 600; pointer-events: none; transition: .3s var(--ease); max-width: 92vw; text-align: center; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Te-Un animaties ---- */
.teun .legL, .teun .legR { transform-box: fill-box; transform-origin: 50% 0; }
.teun .head, .teun .torso { transform-box: fill-box; transform-origin: 50% 90%; }
.teun.idle .bob, .teun.wave .bob { animation: breathe 3s ease-in-out infinite; }
.teun.wave .armR { animation: wave .55s ease-in-out infinite alternate; }
.teun.idle .head { animation: look 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-3px); } }
@keyframes wave { from { transform: rotate(-135deg); } to { transform: rotate(-165deg); } }
@keyframes look { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg); } 70% { transform: rotate(3deg); } }
.tour-teun.walking .legL { animation: legA .46s linear infinite; }
.tour-teun.walking .legR { animation: legB .46s linear infinite; }
.tour-teun.walking .bob { animation: stepbob .23s ease-in-out infinite; }
.tour-teun.walking .armL { animation: armA .46s ease-in-out infinite alternate; }
.tour-teun.walking .armR { animation: armB .46s ease-in-out infinite alternate; }
.tour-teun.walking .head { animation: headtilt .46s ease-in-out infinite alternate; }
@keyframes legA { 0%, 100% { transform: rotate(18deg) translateY(0); } 50% { transform: rotate(-18deg) translateY(-12px); } }
@keyframes legB { 0%, 100% { transform: rotate(-18deg) translateY(-12px); } 50% { transform: rotate(18deg) translateY(0); } }
@keyframes stepbob { 50% { transform: translateY(-7px); } }
@keyframes armA { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }
@keyframes armB { from { transform: rotate(26deg); } to { transform: rotate(-26deg); } }
@keyframes headtilt { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.tour-teun.talking .mouth { animation: talk .22s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
.tour-teun.talking .bob { animation: breathe 2s ease-in-out infinite; }
.tour-teun.talking .head { animation: nod .7s ease-in-out infinite alternate; }
.tour-teun.wave .armR { animation: wave .5s ease-in-out infinite alternate; }
.tour-teun.point .armR { transform: rotate(-95deg); }
@keyframes talk { to { transform: scaleY(1.5) translateY(1px); } }
@keyframes nod { to { transform: rotate(2.5deg) translateY(1px); } }

/* ---- rondleiding ---- */
#tour-root { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.tour-dim { position: absolute; inset: 0; background: transparent; pointer-events: auto; transition: opacity .5s; z-index: 0; }
.tour-dim.out { opacity: 0; }
.tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(2, 6, 20, .66), 0 0 0 3px var(--blue-2), 0 0 30px 6px rgba(92,200,255,.35); transition: all .5s var(--ease); pointer-events: none; z-index: 1; }
.tour-teun { position: fixed; left: 0; top: 0; width: var(--s, 150px); z-index: 3; transition: transform 1.2s cubic-bezier(.45, .05, .4, 1); filter: drop-shadow(0 12px 12px rgba(0,0,0,.4)); will-change: transform; }
.tour-teun svg { width: 100%; height: auto; display: block; transition: transform .25s; }
.tour-bubble { position: fixed; z-index: 4; pointer-events: auto; background: #fff; color: #14264f; border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 40px rgba(0,0,0,.45); opacity: 0; transform: translateY(8px) scale(.95); transition: opacity .25s, transform .3s var(--ease); font-size: 15px; }
.tour-bubble.show { opacity: 1; transform: none; }
.tb-title { font: 700 19px var(--display); margin-bottom: 4px; color: #0b3b8f; }
.tb-text { margin-bottom: 14px; line-height: 1.45; }
.tb-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tb-actions .btn.ghost { background: #eef3fb; color: #14264f; border-color: #d4def0; }
.tb-dots { display: flex; gap: 5px; }
.tb-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d4def0; } .tb-dots i.on { background: #2f7bff; transform: scale(1.3); }

/* ---- responsive ---- */
.bottom-nav { display: none; }
@media (max-width: 1100px) {
  :root { --rail-w: 78px; }
  .rail nav > a span, .rail-game span:not(.rg-img), .rail-sep, .rail-foot small, .rail-empty { display: none; }
  .rail nav > a, .rail-game { justify-content: center; padding: 11px; } .rail-teun svg { width: 54px; }
  .rail a.on::before { left: -12px; }
  .logo { width: auto; } .logo span { display: none; }
  .game-layout { grid-template-columns: 1fr; }
  .side-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .featured { grid-template-columns: 1fr; } .feat-img::after { background: linear-gradient(0deg, #0f2a62, transparent 60%); }
}
@media (max-width: 760px) {
  :root { --top-h: 58px; }
  .rail { display: none; }
  main#view { margin-left: 0; padding: calc(var(--top-h) + 18px) 16px 96px; }
  .top { padding: 0 12px; gap: 10px; }
  .logo span { display: inline; font-size: 18px; } .logo-mark { width: 34px; height: 34px; }
  .search { height: 38px; padding: 0 12px; } .search input { font-size: 15px; }
  .avatar-btn .an { display: none; } .avatar-btn { padding: 3px; }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(6, 15, 38, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; padding: 4px 14px; border-radius: 12px; color: var(--muted); }
  .bottom-nav a.on { background: rgba(47,123,255,.2); color: #fff; font-weight: 600; }
  .brand-sub { font-size: 15px; margin-bottom: 20px; } .big-logo { width: 94%; }
  .feat-body { padding: 24px 20px; } .grid-games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cg-body { padding: 10px 12px; } .cg-body b { font-size: 15px; } .cg-play { display: none; }
  .about { flex-direction: column; text-align: center; padding: 24px 18px; gap: 16px; } .about-teun { flex-basis: auto; width: 130px; }
  .auth { grid-template-columns: 1fr; } .auth-teun { display: none; } .auth-main { padding: 26px 20px; }
  .profile-teun { display: none; } .profile-head { padding: 20px; }
  .block-head h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }

/* ---- titel-logo's van games ---- */
.feat-logo-wrap { margin: 2px 0 4px; line-height: 0; font-size: 0; }
.feat-logo { width: min(340px, 100%); height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.cg-logo-wrap { margin: 0; line-height: 0; font-size: 0; }
.cg-logo { height: 46px; width: auto; max-width: 100%; margin-bottom: 4px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.poster-logo-wrap { margin: 0; line-height: 0; font-size: 0; }
.poster-logo { width: min(420px, 78vw); height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); }
@media (max-width: 760px) { .cg-logo { height: 38px; } .feat-logo { width: min(280px, 100%); } }
