:root {
  --pink: #ff4fd8;
  --pink2: #ff2c8a;
  --violet: #9b3cff;
  --cyan: #2ef2ff;
  --gold: #ffd36a;
  --glass: rgba(20, 14, 38, .62);
  --glass-strong: rgba(20, 14, 38, .9);
  --line: rgba(255, 255, 255, .12);
  --text: #f6f2ff;
  --muted: #b2a9d4;
  --grad: linear-gradient(135deg, #ff4fd8 0%, #ff2c8a 45%, #9b3cff 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #120a1e; color: var(--text);
  font-family: 'Fredoka', system-ui, sans-serif; overscroll-behavior: none; user-select: none; -webkit-user-select: none; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 10px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.07); }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#labels, #bubbles, #fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#fx { z-index: 2; }

/* ---------- naamlabels & bubbels ---------- */
.nametag { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px;
  padding: 2px 9px 3px; border-radius: 999px; background: rgba(12, 8, 26, .6); color: #fff; letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.14); will-change: transform; transition: opacity .3s, box-shadow .2s, border-color .2s; }
.nametag.hide { opacity: 0 !important; }
.nametag.me { background: var(--grad); border-color: rgba(255,255,255,.35); }
.nametag .role { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); }
.nametag .hc { font-size: 10.5px; color: #ff9ad0; font-weight: 700; }
.nametag.me .hc { color: #fff; }
.nametag .typing i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #fff; margin: 0 1px; animation: tdot 1s infinite; }
.nametag .typing i:nth-child(2) { animation-delay: .15s } .nametag .typing i:nth-child(3) { animation-delay: .3s }
.nametag .wave { display: none; gap: 1.5px; align-items: center; height: 10px; }
.nametag .wave i { width: 2.5px; border-radius: 2px; background: #3dff8a; animation: eq .5s infinite alternate; }
.nametag .wave i:nth-child(1) { height: 5px } .nametag .wave i:nth-child(2) { height: 10px; animation-delay: .15s } .nametag .wave i:nth-child(3) { height: 7px; animation-delay: .3s }
.nametag.speaking { border-color: #3dff8a; box-shadow: 0 0 0 2px rgba(61,255,138,.45), 0 0 16px rgba(61,255,138,.55); }
.nametag.speaking .wave { display: inline-flex; }
@keyframes eq { to { transform: scaleY(.35) } }
@keyframes tdot { 0%,60%,100% { opacity: .3; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-3px) } }

.bubble { position: absolute; left: 0; top: 0; max-width: min(78vw, 300px); display: flex; align-items: flex-start; gap: 7px;
  padding: 6px 12px 7px 6px; border-radius: 16px; background: #fff; color: #1b1630; font-size: 14px; line-height: 1.25;
  box-shadow: 0 6px 18px rgba(0,0,0,.28); will-change: transform, opacity; transition: opacity .5s ease; animation: pop .28s cubic-bezier(.2,1.6,.4,1); word-break: break-word; }
.bubble::after { content: ''; position: absolute; left: var(--tail, 50%); bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.bubble b { font-weight: 700; white-space: nowrap; }
.bubble .av { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.bubble.me { background: #ffe9f8; }
.bubble.bot { background: #fff7dc; }
@keyframes pop { from { transform: scale(.6); opacity: 0 } }

/* zwevende hartjes */
.heart { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; will-change: transform, opacity; filter: drop-shadow(0 2px 6px rgba(255,44,138,.6)); }
.heart svg { width: 100%; height: 100%; display: block; }

/* ---------- intro / login ---------- */
#intro { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: center; overflow-y: auto; transition: opacity .7s ease, transform .7s ease; }
#intro.out { opacity: 0; transform: scale(1.05); pointer-events: none; }
.intro-shade { position: fixed; inset: 0; background: radial-gradient(100% 70% at 50% 30%, rgba(24,10,48,.25), rgba(8,4,18,.86)); }
.sparkles { position: fixed; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; bottom: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--c), 0 0 16px var(--c); animation: rise linear infinite; opacity: .8; }
@keyframes rise { to { transform: translateY(-110vh) translateX(var(--dx, 20px)); opacity: 0 } }
.intro-inner { position: relative; width: min(900px, 100%); padding: calc(18px + var(--safe-t)) 14px calc(18px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 14px; margin: auto 0; }
.logo { text-align: center; line-height: 1; }
.logo-welcome { font-weight: 600; letter-spacing: .5em; font-size: 12px; color: #ffe7a8; margin-right: -.5em; text-shadow: 0 0 10px rgba(255,211,106,.55); opacity: 0; animation: fade .6s .1s forwards; }
.logo-main { margin-top: 6px; font-family: 'Monoton', 'Fredoka', cursive; font-size: clamp(46px, 12vw, 104px); letter-spacing: .04em; }
.logo-sub { font-family: 'Monoton', 'Fredoka', cursive; font-size: clamp(20px, 5vw, 40px); letter-spacing: .32em; margin-right: -.32em; margin-top: 2px; }
.neon.pink { color: #ffe6fb; text-shadow: 0 0 4px #fff, 0 0 10px var(--pink), 0 0 22px var(--pink), 0 0 44px var(--pink2), 0 0 80px var(--pink2); }
.neon.cyan { color: #e9feff; text-shadow: 0 0 4px #fff, 0 0 10px var(--cyan), 0 0 22px var(--cyan), 0 0 44px #1aa7ff; opacity: 0; animation: on 1.2s .8s steps(1) forwards; display: inline-block; }
.flicker { display: inline-block; opacity: 0; animation: on 1.4s .3s steps(1) forwards, flick 7s 3s infinite; }
@keyframes on { 0%{opacity:0}10%{opacity:1}14%{opacity:.1}22%{opacity:1}30%{opacity:.2}38%,100%{opacity:1} }
@keyframes flick { 0%,93%,100%{opacity:1} 94%{opacity:.35} 95%{opacity:1} 97%{opacity:.5} 98%{opacity:1} }
@keyframes fade { to { opacity: 1 } }

.card { display: grid; grid-template-columns: 300px 1fr; width: 100%; max-width: 780px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, rgba(46, 24, 86, .72), rgba(14, 10, 32, .88)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(24px); animation: up .8s .9s cubic-bezier(.2,1.1,.3,1) forwards; }
@keyframes up { to { opacity: 1; transform: none } }
.stage { position: relative; min-height: 360px; background: radial-gradient(70% 60% at 50% 42%, rgba(255,79,216,.32), transparent 72%); }
#preview { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-floor { position: absolute; left: 50%; bottom: 34px; width: 170px; height: 40px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,79,216,.45), transparent); pointer-events: none; }
.ghost-btn { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ghost-btn svg { width: 15px; height: 15px; }
.pick { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 36px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: color .2s; }
.seg button.on { color: #fff; }
.seg .seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 10px; background: var(--grad); transition: transform .3s cubic-bezier(.3,1.3,.5,1); transform: translateX(calc(100% * var(--i, 0))); box-shadow: 0 4px 14px rgba(255,44,138,.4); }
.seg.small { padding: 3px; border-radius: 12px; }
.seg.small .seg-pill { top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2); border-radius: 9px; }
.seg.small button { height: 30px; font-size: 13.5px; }

.carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.av-card { flex: 0 0 auto; width: 88px; scroll-snap-align: start; border-radius: 18px; padding: 0 0 6px; background: rgba(255,255,255,.06); border: 2px solid transparent; transition: transform .2s, border-color .2s, background .2s; text-align: center; }
.av-card img { width: 100%; height: 92px; object-fit: cover; display: block; border-radius: 16px 16px 0 0; background: radial-gradient(70% 70% at 50% 35%, rgba(255,79,216,.35), rgba(255,255,255,.02)); }
.av-card b { font-size: 13px; font-weight: 600; }
.av-card.on { border-color: #fff; background: rgba(255,79,216,.18); transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(255,79,216,.45), 0 10px 22px rgba(0,0,0,.35); }

.name-row { display: flex; gap: 8px; }
.name-row input { flex: 1; min-width: 0; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.32); padding: 0 16px; font-size: 18px; font-weight: 500; outline: none; user-select: text; -webkit-user-select: text; transition: border-color .2s, box-shadow .2s; }
.name-row input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,79,216,.18); }
.dice { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 22px; transition: transform .3s; flex: 0 0 auto; }
.dice:active { transform: rotate(180deg) scale(.95); }
.btn-primary { height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; font-weight: 700;
  background: var(--grad); box-shadow: 0 12px 30px rgba(255,44,138,.45), inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.3); transition: transform .12s, filter .2s; }
.btn-primary svg { width: 22px; height: 22px; }
.btn-primary:active { transform: translateY(2px) scale(.99); }
.btn-primary[disabled] { filter: grayscale(.6) brightness(.8); }
.intro-meta { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3dff8a; box-shadow: 0 0 8px #3dff8a; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .45 } }
.intro-error { min-height: 16px; text-align: center; color: #ff8aa8; font-size: 14px; }

@media (max-width: 680px) {
  .card { grid-template-columns: 1fr; border-radius: 26px; }
  .stage { min-height: 0; height: 30vh; max-height: 250px; }
  .pick { padding: 14px 14px 12px; gap: 10px; }
  .av-card { width: 78px; } .av-card img { height: 80px; }
  .intro-inner { gap: 10px; }
  .logo-welcome { font-size: 10.5px; }
}
@media (max-height: 760px) and (max-width: 680px) { .logo-sub { display: none; } .stage { height: 26vh; } .intro-meta { display: none; } }

/* ---------- avatar-editor sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(4,2,10,.25); }
.sheet { width: min(560px, 100%); max-height: min(56vh, 540px); display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: var(--glass-strong); border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: sheetUp .35s cubic-bezier(.2,1.1,.3,1); padding-bottom: var(--safe-b); }
@keyframes sheetUp { from { transform: translateY(100%) } }
.sheet-grab { width: 42px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); margin: 8px auto 2px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 8px 20px; font-size: 18px; }
.pill-btn { height: 36px; padding: 0 18px; border-radius: 999px; background: var(--grad); font-weight: 700; }
.tabs { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.07); font-weight: 600; font-size: 14px; color: var(--muted); }
.tabs button.on { background: rgba(255,79,216,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,79,216,.6); }
.sheet-body { overflow-y: auto; padding: 4px 16px 18px; display: grid; gap: 14px; -webkit-overflow-scrolling: touch; }
.opt-row > span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.16); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); transition: transform .15s; }
.sw.on { border-color: #fff; transform: scale(1.12); box-shadow: 0 0 0 3px rgba(255,79,216,.55); }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: rgba(255,255,255,.07); border: 1px solid var(--line); text-transform: capitalize; }
.chip.on { background: var(--grad); border-color: transparent; }

/* ---------- lift ---------- */
#elevator { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
#elevator .door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(90deg, #2b2440, #3c3358 40%, #2b2440); transition: transform .5s cubic-bezier(.7,0,.3,1); box-shadow: inset 0 0 60px rgba(0,0,0,.6); }
#elevator .door.l { left: 0; transform: translateX(-101%); border-right: 2px solid #ffd36a55; }
#elevator .door.r { right: 0; transform: translateX(101%); border-left: 2px solid #ffd36a55; }
#elevator.closed .door { transform: none; }
.elev-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; opacity: 0; transition: opacity .3s; font-weight: 600; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; color: #ffe7a8; text-shadow: 0 0 12px rgba(255,211,106,.7); }
.elev-arrow { font-size: 26px; animation: pulse 1s infinite; color: var(--gold); }
#elevator.closed .elev-label { opacity: 1; transition-delay: .3s; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
#hud > .dock-wrap { pointer-events: none; }
.dock-wrap > * { pointer-events: auto; }
.room-chip { position: absolute; left: 12px; top: calc(12px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-start; padding: 8px 14px 9px; border-radius: 18px; text-align: left; max-width: 62vw; }
.rc-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rc-meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 1px; white-space: nowrap; }
.rc-voice b { color: #7dffb0; }
.top-right { position: absolute; right: 12px; top: calc(12px + var(--safe-t)); display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; }
.icon-btn svg { width: 21px; height: 21px; }
#btnSound .off-i { display: none; }
#btnSound.off .on-i { display: none; } #btnSound.off .off-i { display: block; }
#btnSound.off { color: var(--muted); }
.menu { position: absolute; right: 0; top: 52px; width: 220px; padding: 6px; border-radius: 18px; display: flex; flex-direction: column; background: var(--glass-strong); animation: drop .18s ease; }
.menu button { height: 44px; padding: 0 12px; border-radius: 12px; text-align: left; display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.menu button:hover { background: rgba(255,255,255,.07); }
.tgl { width: 38px; height: 22px; border-radius: 11px; background: rgba(255,255,255,.18); position: relative; transition: background .2s; }
.tgl::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tgl.on { background: var(--pink2); } .tgl.on::after { transform: translateX(16px); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) } }
.tap-sound { position: absolute; left: 50%; top: calc(72px + var(--safe-t)); transform: translateX(-50%); height: 38px; padding: 0 16px; border-radius: 999px; background: var(--grad); font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(255,44,138,.45); animation: pulse 1.6s infinite; white-space: nowrap; }

.dock-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 10px calc(10px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dock { width: min(640px, 100%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 24px; }
.dock-btn { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: #e9e2ff; transition: background .15s, transform .1s; }
.dock-btn svg { width: 22px; height: 22px; }
.dock-btn:hover, .dock-btn.on { background: rgba(255,255,255,.1); }
.dock-btn.on { color: var(--pink); }
.dock-btn:active, .icon-btn:active { transform: scale(.92); }
.chatbar { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.95); }
.chatbar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #1b1630; font-size: 16px; padding: 0 8px; user-select: text; -webkit-user-select: text; }
.chatbar input::placeholder { color: #8a84a6; }
.chatbar .send { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); flex: 0 0 auto; }
.chatbar .send svg { width: 18px; height: 18px; }
.chatbar .mic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #6b6488; background: #ece9f6; flex: 0 0 auto; position: relative; transition: background .2s, color .2s; }
.chatbar .mic svg { width: 19px; height: 19px; }
.chatbar .mic.live { color: #fff; background: linear-gradient(135deg, #22c55e, #14b8a6); box-shadow: 0 4px 14px rgba(34,197,94,.45); }
.chatbar .mic.connecting { animation: pulse .8s infinite; }
.chatbar .mic.full { opacity: .45; }
.chatbar .mic.talking::after { content: ''; position: absolute; inset: -3px; border-radius: 14px; border: 2px solid #22c55e; animation: pulse .7s infinite; }
.badge { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff2c6a; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(20,14,38,.95); }

.moves { display: flex; gap: 4px; padding: 6px; border-radius: 22px; background: var(--glass-strong); animation: movesIn .22s cubic-bezier(.2,1.3,.4,1); }
@keyframes movesIn { from { opacity: 0; transform: translateY(10px) scale(.95) } }
.moves button { width: 62px; height: 60px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background .15s, transform .1s; }
.moves button span { font-size: 24px; line-height: 1; }
.moves button b { font-size: 11px; font-weight: 600; color: var(--muted); }
.moves button:hover { background: rgba(255,255,255,.08); }
.moves button.on { background: rgba(255,79,216,.22); } .moves button.on b { color: #fff; }
.moves button:active { transform: scale(.92); }

.panel { position: absolute; left: 50%; bottom: calc(76px + var(--safe-b)); transform: translateX(-50%); width: min(440px, calc(100% - 20px)); max-height: min(62vh, 520px);
  display: flex; flex-direction: column; border-radius: 24px; background: var(--glass-strong); animation: slide .25s ease; }
@keyframes slide { from { opacity: 0; transform: translate(-50%, 12px) } }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.panel-head .ph-title, .panel-head .pm-title { flex: 1; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-head .seg { flex: 1; max-width: 230px; }
.panel .x { width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.08); flex: 0 0 auto; margin-left: auto; }
.panel .x.back { margin-left: 0; }
.nav-list, .log-list, .pm-list, .pm-thread { overflow-y: auto; padding: 8px; -webkit-overflow-scrolling: touch; min-height: 0; }
.nav-sec { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; text-align: left; transition: background .15s; }
.nav-item:hover { background: rgba(255,255,255,.07); }
.nav-item.here { background: rgba(255,79,216,.15); }
.nav-thumb { width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto; display: grid; place-items: center; font-size: 22px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.nav-item .t { font-weight: 600; font-size: 15.5px; }
.nav-item .s { font-size: 12.5px; color: var(--muted); }
.nav-item .n { margin-left: auto; min-width: 34px; height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(61,255,138,.14); color: #7dffb0; font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.log-line { padding: 6px 8px; font-size: 14px; border-radius: 10px; user-select: text; -webkit-user-select: text; }
.log-line:nth-child(odd) { background: rgba(255,255,255,.04); }
.log-line b { color: var(--pink); }
.log-line .tm { color: var(--muted); font-size: 11px; margin-right: 6px; }
.log-empty { padding: 26px 12px; text-align: center; color: var(--muted); line-height: 1.5; }
.dotn { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff2c6a; margin-left: 5px; vertical-align: middle; }
.pm-conv { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 16px; text-align: left; }
.pm-conv:hover { background: rgba(255,255,255,.07); }
.dotav { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.pm-conv .t { font-weight: 600; }
.pm-conv .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.pm-conv .n { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: #ff2c6a; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.pm-msg { max-width: 78%; padding: 8px 12px; border-radius: 16px; margin: 4px 0; font-size: 14.5px; line-height: 1.3; word-break: break-word; user-select: text; -webkit-user-select: text; }
.pm-msg.them { background: rgba(255,255,255,.1); border-bottom-left-radius: 5px; }
.pm-msg.me { margin-left: auto; background: var(--grad); border-bottom-right-radius: 5px; }
.pm-actions { display: flex; gap: 6px; padding: 0 8px 6px; }
.pm-actions button { flex: 1; height: 34px; border-radius: 11px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 600; }
.pm-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.pm-form input { flex: 1; min-width: 0; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.3); padding: 0 12px; font-size: 16px; outline: none; user-select: text; -webkit-user-select: text; }
.pm-form button { padding: 0 16px; border-radius: 14px; font-weight: 700; background: var(--grad); }

.guest-card { position: absolute; left: 50%; bottom: calc(76px + var(--safe-b)); transform: translateX(-50%); width: min(400px, calc(100% - 20px)); padding: 12px; border-radius: 24px; background: var(--glass-strong); animation: slide .2s ease; display: grid; gap: 10px; }
.gc-top { display: flex; align-items: center; gap: 10px; }
.gc-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700; flex: 0 0 auto; }
.gc-info { flex: 1; min-width: 0; }
.gc-name { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-role { font-size: 11.5px; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; min-height: 13px; }
.gc-hearts { display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(255,44,138,.15); font-size: 13px; }
.gc-hearts b { color: #ff9ad0; }
.gc-top .x { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.08); }
.gc-btns { display: flex; gap: 6px; }
.gc-btns button { flex: 1; height: 46px; border-radius: 15px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 14.5px; transition: transform .1s; }
.gc-btns button.primary { flex: 1.3; background: var(--grad); box-shadow: 0 6px 18px rgba(255,44,138,.4); }
.gc-btns button:last-child { flex: 0 0 52px; }
.gc-btns button:active { transform: scale(.95); }

#toasts { position: absolute; left: 50%; top: calc(74px + var(--safe-t)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: calc(100% - 24px); }
.toast { padding: 8px 15px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line); font-size: 13.5px; animation: slide2 .3s ease; transition: opacity .4s; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.pm, .toast.toast-heart { pointer-events: auto; cursor: pointer; background: linear-gradient(135deg, rgba(255,79,216,.92), rgba(155,60,255,.92)); }
@keyframes slide2 { from { opacity: 0; transform: translateY(-8px) } }

@media (max-width: 640px) {
  .dock { gap: 4px; padding: 5px; border-radius: 22px; }
  .dock-btn { width: 42px; height: 44px; border-radius: 14px; }
  .chatbar { height: 44px; }
  body.typing .dock-btn { display: none; }
  .moves button { width: 58px; height: 58px; }
  .panel, .guest-card { bottom: calc(68px + var(--safe-b)); }
  #chatPanel { max-height: 50vh; }
}

/* ================= BANNER-INTRO ================= */
#intro { background: #1a0618; }
.intro-bg { position: fixed; inset: 0; background: #1a0618 url(/img/banner-sm.webp) center top / cover no-repeat; }
.intro-shade { background: linear-gradient(180deg, rgba(26,6,24,0) 0%, rgba(26,6,24,0) 30%, rgba(26,6,24,.55) 52%, rgba(20,4,20,.94) 74%); }
.logo { display: none; }
.banner { display: none; }
.card { background: linear-gradient(160deg, rgba(70, 18, 70, .55), rgba(24, 6, 26, .82)); border-color: rgba(255,140,220,.22);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,79,216,.12), inset 0 1px 0 rgba(255,255,255,.12); animation-delay: .25s; }
.stage { background: radial-gradient(70% 60% at 50% 45%, rgba(255,79,216,.28), transparent 72%); }

/* mobiel: banner schermvullend, compacte login onderin eroverheen */
@media (max-width: 899px) {
  .intro-inner { margin: 0; min-height: 100%; justify-content: flex-end; padding: calc(12px + var(--safe-t)) 10px calc(10px + var(--safe-b)); }
  .card { grid-template-columns: 1fr; border-radius: 26px; animation-delay: .15s; }
  .stage { height: 150px; min-height: 0; }
  .stage-floor { bottom: 10px; }
  .pick { padding: 10px 12px 12px; gap: 9px; }
  .av-card { width: 70px; border-radius: 16px; } .av-card img { height: 68px; border-radius: 14px 14px 0 0; } .av-card b { font-size: 12px; }
  .carousel { padding-bottom: 4px; gap: 8px; }
  .name-row input, .dice { height: 48px; } .dice { width: 48px; }
  .btn-primary { height: 52px; font-size: 18px; }
  .intro-meta { display: none; }
  .seg button { height: 32px; }
  .ghost-btn { height: 30px; font-size: 12.5px; padding: 0 11px; top: 10px; right: 10px; }
}
@media (max-width: 899px) and (min-height: 800px) { .stage { height: 190px; } }
@media (min-width: 681px) and (max-width: 899px) { .card { max-width: 520px; } }

/* desktop: banner links, login met avatar rechts, banner wazig als achtergrond */
@media (min-width: 900px) {
  .intro-bg { background-image: url(/img/banner-sm.webp); filter: blur(28px) saturate(1.3) brightness(.55); transform: scale(1.15); }
  .intro-shade { background: radial-gradient(90% 80% at 30% 40%, rgba(40,6,40,0), rgba(16,2,16,.7)); }
  .intro-inner { width: min(1180px, 100%); display: grid; grid-template-columns: auto minmax(380px, 440px); align-items: center; justify-content: center; gap: 48px; padding: 32px; min-height: 100%; margin: 0; }
  .banner { display: block; height: min(88vh, 860px); aspect-ratio: 941 / 1672; border-radius: 30px; overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 60px rgba(255,79,216,.35), 0 0 0 1px rgba(255,140,220,.3); opacity: 0; transform: translateX(-20px); animation: bannerIn .9s .05s cubic-bezier(.2,1,.3,1) forwards; }
  .banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .card { grid-template-columns: 1fr; max-width: 440px; }
  .stage { height: 310px; min-height: 0; }
}
@keyframes bannerIn { to { opacity: 1; transform: none } }
@media (max-width: 899px) and (max-height: 700px) { .stage { height: 112px; } .av-card img { height: 60px; } }

/* desktop-intro: banner en kaart passen altijd in beeld (ook 1280×720 / 1366×768) */
@media (min-width: 900px) {
  #intro { align-items: safe center; }
  .intro-inner { padding: 28px 32px; gap: clamp(24px, 4vw, 56px); align-items: center; }
  .banner { height: min(calc(100vh - 56px), 860px); height: min(calc(100dvh - 56px), 860px); max-width: 42vw; }
  .card { max-height: calc(100dvh - 56px); }
  .stage { height: clamp(150px, calc(100vh - 470px), 330px); height: clamp(150px, calc(100dvh - 470px), 330px); }
}
@media (min-width: 900px) and (max-height: 640px) { .intro-meta { display: none; } .stage { height: 130px; } }

/* ================= CHAT-FEED (links) ================= */
.feed { position: absolute; left: 12px; bottom: calc(86px + var(--safe-b)); width: min(360px, calc(100% - 90px)); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none !important; z-index: 1; }
.feed-line { pointer-events: auto; display: flex; align-items: flex-start; gap: 8px; max-width: 100%; padding: 6px 12px 7px 6px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(30,12,44,.72), rgba(48,14,52,.6)); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255,140,220,.16); box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 14px; line-height: 1.3; cursor: pointer;
  animation: feedIn .32s cubic-bezier(.2,1.3,.4,1); transition: opacity .9s ease, transform .9s ease; word-break: break-word; }
.feed-line .fav { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.feed-line .ftx { min-width: 0; padding-top: 2px; color: #f3ecff; }
.feed-line b { font-weight: 700; color: #ff9ae4; }
.feed-line.me { border-color: rgba(255,79,216,.45); }
.feed-line.me b { color: #ffd36a; }
.feed-line.bot b { color: #7fe8ff; }
.feed-line.fade { opacity: 0; transform: translateX(-12px); }
@keyframes feedIn { from { opacity: 0; transform: translateX(-16px) scale(.96) } }
body.typing .feed { opacity: .35; }
@media (max-width: 640px) {
  .feed { bottom: calc(76px + var(--safe-b)); width: calc(100% - 24px); gap: 4px; }
  .feed-line { font-size: 13px; padding: 5px 10px 5px 5px; border-radius: 14px; }
  .feed-line .fav { width: 20px; height: 20px; font-size: 10px; }
}

/* ================= PUSH-TO-TALK ================= */
.chatbar .mic { touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.chatbar .mic.held { transform: scale(.94); background: #d9f7e5; color: #12924a; }
.chatbar .mic.held.live { background: linear-gradient(135deg, #22c55e, #14b8a6); color: #fff; transform: scale(1.06); }

/* ================= RADIO ================= */
.radio-btn { height: 44px; padding: 0 12px 0 10px; border-radius: 15px; display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; max-width: 220px; }
.radio-btn .r-ico { font-size: 19px; line-height: 1; }
.radio-btn .r-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-btn .eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.radio-btn .eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--pink); animation: eq .45s infinite alternate; transform-origin: bottom; }
.radio-btn .eq i:nth-child(2) { animation-delay: .12s; background: #ff8ae0; } .radio-btn .eq i:nth-child(3) { animation-delay: .27s; background: var(--cyan); } .radio-btn .eq i:nth-child(4) { animation-delay: .06s; }
.radio-btn.playing .eq { display: flex; }
.radio-btn.playing { box-shadow: 0 0 0 1px rgba(255,79,216,.45), 0 0 18px rgba(255,79,216,.35); }
.radio-btn.loading .r-ico { animation: pulse .8s infinite; }
@media (max-width: 640px) { .radio-btn .r-name { display: none; } .radio-btn { padding: 0 11px; } }
.radio-panel { top: calc(64px + var(--safe-t)); bottom: auto; left: auto; right: 12px; transform: none; width: min(380px, calc(100% - 24px)); max-height: min(70vh, 560px); animation: drop .2s ease; }
@media (max-width: 640px) { .radio-panel { right: 10px; width: calc(100% - 20px); bottom: auto; max-height: calc(100% - 160px - var(--safe-t) - var(--safe-b)); } }
.rp-now { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rp-play { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 6px 18px rgba(255,44,138,.45); flex: 0 0 auto; }
.rp-play svg { width: 22px; height: 22px; } .rp-play .i-stop { display: none; }
.radio-panel.playing .rp-play .i-play { display: none; } .radio-panel.playing .rp-play .i-stop { display: block; }
.rp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-info b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-info span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rpVol { width: 84px; accent-color: var(--pink); }
.rp-genres { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.rp-genres::-webkit-scrollbar { display: none; }
.rp-genres .chip { flex: 0 0 auto; height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.rp-genres .chip.on { background: var(--grad); box-shadow: 0 4px 14px rgba(255,44,138,.35); }
.rp-list { overflow-y: auto; padding: 0 8px 10px; display: flex; flex-direction: column; gap: 2px; -webkit-overflow-scrolling: touch; }
.rp-st { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; text-align: left; }
.rp-st:hover { background: rgba(255,255,255,.06); }
.rp-st.on { background: rgba(255,79,216,.18); }
.rp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); flex: 0 0 auto; }
.rp-st.on .rp-dot { background: #3dff8a; box-shadow: 0 0 8px #3dff8a; }
.rp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-t b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-t i { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 12px; flex: 0 0 auto; }
.rp-st.on .rp-go { background: var(--pink2); }
.rp-sec { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.rp-sec.dim { opacity: .6; text-transform: none; letter-spacing: 0; }

/* ================= LOOK-EDITOR MET AVATAR ================= */
.sheet { max-height: min(84vh, 760px); }
.sheet-stage { position: relative; height: clamp(150px, 26vh, 240px); flex: 0 0 auto; margin: 0 12px 6px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, rgba(255,79,216,.32), rgba(40,10,50,.2) 70%, transparent), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); border: 1px solid var(--line); }
.sheet-stage canvas { width: 100%; height: 100%; display: block; }
.sheet-stage .stage-floor { position: absolute; left: 50%; bottom: 8px; width: 140px; height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,79,216,.45), transparent); pointer-events: none; }
.sheet-rot { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 18px; }
@media (min-width: 900px) { .sheet-stage { height: 250px; } }

/* ================= ADMIN / ARRESTATIE / GEVANGENIS ================= */
.gc-admin { display: flex; gap: 6px; }
.gc-admin button { flex: 1; height: 42px; border-radius: 14px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 14px; }
.gc-admin button.danger { background: linear-gradient(135deg, #1d4ed8, #dc2626); box-shadow: 0 6px 18px rgba(220,38,38,.35); }
#siren { position: fixed; inset: 0; z-index: 15; pointer-events: none; animation: siren 1s steps(1) infinite; }
@keyframes siren {
  0% { box-shadow: inset 0 0 120px 30px rgba(255,30,60,.75); background: radial-gradient(120% 90% at 0% 0%, rgba(255,30,60,.25), transparent 60%); }
  50% { box-shadow: inset 0 0 120px 30px rgba(40,90,255,.75); background: radial-gradient(120% 90% at 100% 0%, rgba(40,90,255,.25), transparent 60%); }
}
.jail-pill { position: absolute; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); height: 40px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 14.5px; border: 1px solid rgba(255,90,90,.45); box-shadow: 0 0 20px rgba(255,60,60,.25); white-space: nowrap; }
.jail-pill b { font-variant-numeric: tabular-nums; color: #ffb4b4; }
@media (max-width: 640px) { .jail-pill { top: calc(66px + var(--safe-t)); } }
.replaced { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(8,3,16,.8); padding: 20px; }
.replaced > div { max-width: 360px; padding: 24px; border-radius: 24px; text-align: center; background: var(--glass-strong); display: grid; gap: 10px; }
.replaced p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .room-chip { max-width: calc(100vw - 196px); } .top-right { gap: 6px; } }

/* mic vast aan (1x tikken) */
.chatbar .mic.latched { color: #fff; background: linear-gradient(135deg, #22c55e, #14b8a6); box-shadow: 0 0 0 2px rgba(34,197,94,.35), 0 4px 14px rgba(34,197,94,.45); }
.chatbar .mic.latched::before { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #3dff8a; box-shadow: 0 0 0 2px #fff, 0 0 8px #3dff8a; }
.tap-sound { z-index: 30; font-size: 15px; height: 44px; padding: 0 20px; }

/* ================= iPhone: geen zoom, geen verschoven scherm ================= */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; position: fixed; inset: 0; width: 100%; overflow: hidden; }
#hud, .panel, .dock, .sheet, .guest-card, .menu, .feed, #toasts { touch-action: pan-y; }
.radio-panel { overflow: hidden; }
.radio-panel .rp-list { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.radio-panel .rp-genres { touch-action: pan-x; }
@media (max-width: 640px) {
  .radio-panel { top: calc(62px + var(--safe-t)); left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 150px - var(--safe-t) - var(--safe-b)); border-radius: 20px; }
  .rp-now { padding: 10px 12px; gap: 10px; }
  .rp-play { width: 44px; height: 44px; }
  #rpVol { width: 70px; }
  .rp-st { padding: 9px 8px; }
}
.ios #rpVol { display: none; }
.ios .rp-now::after { content: '🔊 volume buttons'; font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ================= GELD & REPUTATIE ================= */
.nametag .cash { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: #6dffa0; }
.nametag .cash:empty { display: none; }
.nametag .cash i { font-style: normal; width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 35% 30%, #4dff8f, #12a84a 70%); box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 6px rgba(40,220,110,.55); }
.nametag .rep:empty { display: none; }
.nametag .rep { font-size: 11px; letter-spacing: -1px; line-height: 1; }
.nametag .rep.s1, .nametag .rep.s2, .nametag .rep.s3 { color: #ffd84a; text-shadow: 0 0 6px rgba(255,200,40,.8); }
.nametag .rep.s3 { animation: starPulse 1.6s ease-in-out infinite; }
.nametag .rep.angry { font-size: 13px; letter-spacing: 0; filter: drop-shadow(0 0 4px rgba(255,40,40,.8)); animation: angry .9s ease-in-out infinite; }
.nametag.popular { border-color: rgba(255,216,74,.7); box-shadow: 0 0 12px rgba(255,200,40,.35); }
@keyframes starPulse { 50% { text-shadow: 0 0 12px rgba(255,220,80,1); transform: scale(1.12); } }
@keyframes angry { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.1); } }

.wallet { position: absolute; left: 12px; top: calc(76px + var(--safe-t)); height: 36px; padding: 0 12px 0 6px; border-radius: 13px; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: #8dffb6; }
.wallet i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 35% 30%, #4dff8f, #12a84a 70%); box-shadow: 0 0 10px rgba(40,220,110,.5); }
.wallet:active { transform: scale(.95); }

.toast.toast-cash { background: linear-gradient(135deg, rgba(18,120,60,.95), rgba(10,70,40,.95)); border: 1px solid rgba(110,255,170,.4); }
.toast.toast-invite { background: linear-gradient(135deg, rgba(255,79,216,.95), rgba(155,60,255,.95)); cursor: pointer; }

.gc-stats { display: flex; gap: 8px; align-items: center; margin-top: -4px; }
.gc-stats:has(> :not(:empty)) { min-height: 0; }
.gc-cash { font-weight: 700; color: #6dffa0; font-size: 14px; }
.gc-cash:empty, .gc-rep:empty { display: none; }
.gc-rep { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); }
.gc-rep.good { color: #ffd84a; background: rgba(255,200,40,.12); }
.gc-rep.angry { color: #ff8080; background: rgba(255,40,40,.14); }
.gc-eco { display: flex; gap: 6px; }
.gc-eco button { flex: 1; height: 40px; border-radius: 13px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.gc-eco button.on { background: rgba(255,79,216,.3); box-shadow: inset 0 0 0 1px rgba(255,79,216,.6); }
#cardDislike.on { background: rgba(255,60,60,.25); box-shadow: inset 0 0 0 1px rgba(255,80,80,.6); }
#cardGive { color: #8dffb6; }
.give-row { display: flex; gap: 6px; animation: drop .15s ease; }
.give-row button { flex: 1; height: 38px; border-radius: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #22c55e, #128a44); }

.shop-panel { max-height: min(78vh, 640px); overflow: hidden; }
.shop-top { padding: 10px 14px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.btn-primary.small { height: 44px; font-size: 15px; border-radius: 14px; }
.btn-primary.small:disabled { opacity: .55; }
.shop-earn { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.shop-earn b { color: #8dffb6; }
.shop-body { overflow-y: auto; padding: 4px 12px 14px; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.shop-sec { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 2px 6px; }
.shop-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid transparent; text-align: center; }
.shop-item .sw { width: 100%; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.shop-item b { font-size: 12.5px; font-weight: 600; line-height: 1.15; }
.shop-item i { font-style: normal; font-size: 12px; font-weight: 700; color: #8dffb6; }
.shop-item.owned i { color: var(--muted); }
.shop-item.sel { border-color: var(--pink); background: rgba(255,79,216,.15); }
.shop-item.sel i { color: #fff; }
.shop-item.poor { opacity: .5; }
.nav-item.my-room .t { color: #ffb4ec; }
@media (max-width: 640px) { .wallet { top: calc(70px + var(--safe-t)); height: 32px; font-size: 14px; } .shop-row { grid-template-columns: repeat(3, 1fr); } }

/* ================= ACCOUNT / ADMIN ================= */
.link-btn { display: block; margin: 2px auto 0; padding: 6px 10px; font-size: 14px; font-weight: 600; color: #ffb4ec; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,180,236,.4); }
.link-btn:hover { color: #fff; }
.link-btn.pulse { animation: pulse 1s 4; color: #fff; }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(8,3,16,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(380px, 100%); padding: 22px 20px 16px; border-radius: 24px; background: var(--glass-strong); display: grid; gap: 10px; animation: drop .2s ease; }
.modal-card .x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.08); }
.auth-title { font-size: 20px; font-weight: 700; padding-right: 36px; }
.auth-sub { font-size: 13.5px; color: var(--muted); margin-top: -4px; line-height: 1.35; }
.auth-sub:empty { display: none; }
.auth-fields { display: grid; gap: 8px; }
.auth-fields input, .gc-admin2 input { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.32); padding: 0 14px; font-size: 16px; outline: none; color: #fff; user-select: text; -webkit-user-select: text; }
.auth-fields input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,79,216,.18); }
.modal .intro-error:empty { display: none; }
.warn-card { text-align: center; border: 1px solid rgba(255,190,60,.5); box-shadow: 0 0 40px rgba(255,170,40,.3); }
.warn-card .auth-title { padding: 0; }
.warn-ico { font-size: 44px; line-height: 1; animation: angry .9s ease-in-out 3; }
.warn-card p { margin: 0; font-size: 16px; line-height: 1.4; }
.gc-admin2 { display: grid; gap: 6px; }
.gc-admin2 input { height: 40px; font-size: 14px; }
.gc-admin2 .row { display: flex; gap: 6px; }
.gc-admin2 button { flex: 1; height: 38px; border-radius: 12px; background: rgba(255,190,60,.18); font-weight: 600; font-size: 13px; white-space: nowrap; }
.gc-admin2 button.danger { background: rgba(220,38,38,.35); }
#hud:has(#card:not([hidden])) .feed, #hud:has(.panel:not([hidden])) .feed { opacity: 0; pointer-events: none; }
.feed { transition: opacity .2s; }
.guest-card { max-height: calc(100dvh - 150px - var(--safe-t) - var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; }

/* ================= STRAAT: schieten, regen, ramen ================= */
.gc-street { display: flex; gap: 6px; }
.gc-street button { flex: 1; height: 42px; border-radius: 13px; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #ff3cb4, #b0189a); box-shadow: 0 6px 18px rgba(255,60,180,.35); }
.gc-street button.danger { background: linear-gradient(135deg, #2a2a30, #0c0c10); box-shadow: inset 0 0 0 1px rgba(255,60,60,.6), 0 6px 18px rgba(0,0,0,.4); color: #ff8a8a; }
#hurt { position: fixed; inset: 0; z-index: 16; pointer-events: none; background: radial-gradient(ellipse at center, rgba(160,0,10,0) 30%, rgba(160,0,10,.75) 100%); animation: hurt 2.6s ease-out forwards; }
@keyframes hurt { 0% { opacity: 0 } 8% { opacity: 1 } 100% { opacity: 0 } }
#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.toast.toast-dead { background: linear-gradient(135deg, rgba(120,0,12,.96), rgba(40,0,6,.96)); border: 1px solid rgba(255,90,90,.45); }
#moveDrive.on { background: rgba(46,242,255,.2); }
