/* ============================================================ Funkparty – Neon-Gamer-Design */
@font-face { font-family: 'Funk Sans'; src: url('fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Funk Sans'; src: url('fonts/Inter-SemiBold.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Funk Sans'; src: url('fonts/Inter-Bold.woff2') format('woff2'); font-weight: 650 800; font-display: swap; }
@font-face { font-family: 'Funk Display'; src: url('fonts/InterDisplay-Black.woff2') format('woff2'); font-weight: 800 950; font-display: swap; }

:root {
  --bg: #07070d; --panel: #0f0f1b; --panel2: #171628; --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .17);
  --text: #f4f2ff; --dim: #9b98ba; --accent: #8b5cff; --accent2: #b9a1ff; --pink: #ff3d8b; --cyan: #22e1ff;
  --ok: #2bf08a; --bad: #ff4d6d; --warn: #ffc24b; --r: 18px;
  --grad: linear-gradient(120deg, #ff3d8b 0%, #8b5cff 52%, #22e1ff 100%);
  --glass: linear-gradient(180deg, rgba(28, 26, 48, .78), rgba(14, 13, 26, .86));
  --glow: 0 0 0 1px rgba(139, 92, 255, .55), 0 10px 34px rgba(139, 92, 255, .28);
  --display: 'Funk Display', 'Funk Sans', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); min-height: 100vh;
  font: 15px/1.5 'Funk Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(255, 61, 139, .16), transparent 62%),
    radial-gradient(1000px 560px at 92% -6%, rgba(34, 225, 255, .12), transparent 60%),
    radial-gradient(1100px 700px at 50% 110%, rgba(139, 92, 255, .14), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}
/* feines Neon-Raster im Hintergrund */
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(139, 92, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1 { font-family: var(--display); letter-spacing: -.025em; }
h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; border-radius: 12px; padding: 9px 16px; font-weight: 700; transition: background .18s, transform .18s, box-shadow .18s, border-color .18s, color .18s, filter .18s; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 22px rgba(255, 61, 139, .28), 0 4px 18px rgba(139, 92, 255, .3); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08) saturate(1.1); box-shadow: 0 10px 30px rgba(255, 61, 139, .38), 0 6px 26px rgba(139, 92, 255, .45); }
.primary.big { padding: 14px 24px; font-size: 1.02rem; border-radius: 14px; }
.ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.ghost:hover { background: rgba(255, 255, 255, .11); border-color: var(--line2); }
.ghost.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.sm { padding: 6px 12px; font-size: .85rem; }
.round { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.danger { background: linear-gradient(135deg, #ff4d6d, #ff2f8b); color: #fff; box-shadow: 0 6px 20px rgba(255, 77, 109, .28); }
.danger:hover { filter: brightness(1.1); }
.link { background: none; color: var(--accent2); padding: 6px 4px; }
.link:hover { color: #fff; text-decoration: underline; }

input, select { width: 100%; background: rgba(8, 8, 16, .75); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; transition: border-color .18s, box-shadow .18s; }
input:hover, select:hover { border-color: rgba(185, 161, 255, .45); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 255, .25); }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background: rgba(8, 8, 16, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b9a1ff' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 12px no-repeat; }
select option { background: #15142a; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--pink); box-shadow: none; }
label { display: block; font-size: .85rem; color: var(--dim); margin-bottom: 12px; font-weight: 600; }
label input, label select { margin-top: 5px; color: var(--text); font-size: 1rem; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px; padding: 10px 12px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
legend { color: var(--dim); font-size: .85rem; padding: 0 6px; }
.hint { color: var(--dim); font-size: .8125rem; margin: 0 0 12px; }
.error { color: var(--bad); font-size: .875rem; margin: 0 0 12px; }
.error:empty { display: none; }

/* Schalter in Pillenform */
.toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--dim); cursor: pointer; font-size: .875rem; user-select: none; white-space: nowrap; transition: all .18s; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.toggle::before { content: ''; width: 15px; height: 15px; border-radius: 5px; border: 2px solid var(--line2); flex: none; }
.toggle:hover { border-color: var(--line2); color: var(--text); }
.toggle:has(input:checked) { border-color: rgba(139, 92, 255, .8); color: var(--text); background: rgba(139, 92, 255, .16); box-shadow: 0 0 18px rgba(139, 92, 255, .2); }
.toggle:has(input:checked)::before { border-color: transparent; background: var(--grad); background-size: cover; box-shadow: 0 0 10px rgba(255, 61, 139, .5); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 1.28rem; letter-spacing: -.02em; white-space: nowrap; flex: none; }
.brand b { font-weight: inherit; }
a.brand { color: inherit; text-decoration: none; border-radius: 12px; transition: opacity .18s, filter .18s; }
@media (hover: hover) { a.brand:hover { filter: drop-shadow(0 0 12px rgba(255, 61, 139, .45)); } }
a.brand:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(139, 92, 255, .45)); }
.brand.big { font-size: 1.8rem; }
.brand.big img { width: 46px; height: 46px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Spiel-Grafik */
.art { position: absolute; inset: 0; overflow: hidden; }
.art svg { width: 100%; height: 100%; display: block; }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .01em; background: var(--panel2); color: var(--dim); white-space: nowrap; }
.pill.glass { background: rgba(8, 8, 18, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill.live { background: var(--ok); color: #03200f; letter-spacing: .06em; box-shadow: 0 0 14px rgba(43, 240, 138, .55); }
.pill.steam { background: rgba(8, 8, 18, .6); color: #c7d5e0; border: 1px solid rgba(102, 192, 244, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill.trend { background: linear-gradient(135deg, #ff7a2f, #ff3d8b); color: #fff; box-shadow: 0 0 14px rgba(255, 61, 139, .45); }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #05210f; animation: pulse 1.4s infinite; }
.pill.soon { background: rgba(10, 10, 20, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill.talk { background: rgba(139, 92, 255, .9); color: #fff; box-shadow: 0 0 12px rgba(139, 92, 255, .5); }
.pill .ico svg { width: 12px; height: 12px; }
@keyframes pulse { 50% { opacity: .3; } }
.ico { display: inline-flex; }
.ico svg { width: 16px; height: 16px; }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--panel2); color: #fff; display: inline-grid; place-items: center; font-weight: 750; flex: none; font-size: .95rem; overflow: hidden; }
.avatar svg, .avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.avatar.xl { width: 84px; height: 84px; }
.avatar.xs { width: 28px; height: 28px; font-size: .72rem; border: 2px solid var(--panel); margin-left: -9px; }
.avatar.xs:first-child { margin-left: 0; }
.avatar.more { background: var(--panel2) !important; color: var(--dim); }

/* ---------------------------------------------------------- Anmeldung */
.auth { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; max-width: none; margin: 0; padding: 0; }
.showcase { position: relative; padding: 48px 48px 0; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.claim { font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; margin-top: 4vh; text-shadow: 0 0 40px rgba(139, 92, 255, .35); }
.tagline { color: var(--dim); margin: 0; max-width: 460px; font-size: 1.05rem; }
.mosaic-wrap { flex: 1; position: relative; min-height: 260px; margin: 10px -48px 0; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.mosaic { position: absolute; left: -6%; right: -6%; top: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-7deg) translateY(10px); }
.mtile { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .1); }
.mtile:nth-child(3n + 2) { transform: translateY(28px); }
.mtile b { position: absolute; left: 12px; bottom: 9px; right: 12px; font-size: .9rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.auth-panel { display: grid; place-items: center; padding: 32px 20px; background: linear-gradient(180deg, rgba(15, 15, 27, .4), rgba(15, 15, 27, .85)); border-left: 1px solid var(--line); }
.card { width: 100%; max-width: 410px; background: var(--glass); border: 1px solid var(--line2); border-radius: 22px; padding: 26px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(139, 92, 255, .12) inset; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tabs { display: flex; gap: 6px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 20px; }
.tab { flex: 1; background: transparent; color: var(--dim); }
.tab.active { background: rgba(139, 92, 255, .22); color: var(--text); box-shadow: 0 0 0 1px rgba(139, 92, 255, .5) inset; }
.auth .primary { width: 100%; }

/* ---------------------------------------------------------- Kopfzeile */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: rgba(7, 7, 13, .72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: .45; }
.me { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.mebtn { display: flex; align-items: center; gap: 10px; padding: 3px 10px 3px 3px; border-radius: 999px; background: none; text-align: left; font-weight: inherit; }
.mebtn:hover, .mebtn[aria-expanded=true] { background: var(--panel2); }
.memenu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; display: grid; gap: 2px; min-width: 240px; padding: 6px; background: var(--glass); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), var(--glow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.memenu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; background: none; border-radius: 10px; text-align: left; font-weight: 600; }
.memenu button:hover, .memenu button:focus-visible { background: var(--panel2); }
#mmLogout { color: var(--bad); }
#mmDelete { color: var(--dim); font-weight: 500; font-size: .85rem; }
.mm-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mm-head small { color: var(--dim); font-size: .78rem; }
.me-text { display: flex; flex-direction: column; line-height: 1.15; }
.me-text small { color: var(--dim); font-size: .75rem; }
main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 64px; }

/* ---------------------------------------------------------- Startseite */
.hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 38px 36px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line2); isolation: isolate;
  background: radial-gradient(520px 300px at 92% -10%, rgba(34, 225, 255, .22), transparent 70%), radial-gradient(560px 320px at -5% 110%, rgba(255, 61, 139, .24), transparent 70%), radial-gradient(500px 300px at 55% 120%, rgba(139, 92, 255, .3), transparent 70%), var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; text-shadow: 0 0 40px rgba(139, 92, 255, .3); }
.hero p { color: #c4c1dd; margin: 10px 0 20px; font-size: 1.05rem; max-width: 560px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { display: inline-flex; align-items: center; gap: 7px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line2); padding: 7px 14px; border-radius: 999px; color: var(--dim); font-size: .875rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stat b { color: var(--text); font-size: 1rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.live { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.talk { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.dot.fit { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.sec { margin-top: 40px; }
.sec-head h2 { font-family: var(--display); font-weight: 900; font-size: 1.45rem; letter-spacing: -.02em; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.count { color: var(--dim); font-size: .9rem; }
.rail-nav { display: flex; gap: 8px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 40px; }
.chips::-webkit-scrollbar { display: none; }
.chip { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--dim); border-radius: 999px; padding: 7px 15px; font-size: .875rem; font-weight: 650; white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); border-color: var(--line2); background: rgba(255, 255, 255, .08); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 20px rgba(255, 61, 139, .35), 0 0 16px rgba(139, 92, 255, .35); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 224px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.gtile { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; padding: 0; text-align: left; scroll-snap-align: start; background: var(--panel2); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); outline: 2px solid transparent; outline-offset: 0; transition: transform .2s, box-shadow .2s, outline-color .2s, filter .2s, border-color .2s; }
.gtile::after, .lobby .banner::after, .obanner::after, .tcard .art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7, 7, 13, 0) 35%, rgba(7, 7, 13, .55) 70%, rgba(7, 7, 13, .9) 100%); }
.gtile:hover { transform: translateY(-5px) scale(1.01); border-color: rgba(185, 161, 255, .5); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 26px rgba(139, 92, 255, .35); }
.gtile.active { outline: 2px solid var(--cyan); outline-offset: 3px; box-shadow: 0 0 30px rgba(34, 225, 255, .45); }
.gtile.dim { filter: saturate(.55) brightness(.8); }
.gtile.dim:hover { filter: none; }
.gtile-info { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 3px; }
.gtile-info b { font-family: var(--display); font-weight: 900; font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.15; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plats { display: inline-flex; flex-wrap: wrap; gap: 4px; font-size: .78rem; }
.plats i { font-style: normal; display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 6px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); font-size: .62rem; font-weight: 800; letter-spacing: .02em; color: #e8e6ff; }
.gtile-info span { font-size: .75rem; color: rgba(255, 255, 255, .8); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.gtile-info .livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.gtile .num { position: absolute; z-index: 1; top: 10px; right: 10px; }
.gtile .steamtag { position: absolute; z-index: 1; top: 10px; left: 10px; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filters select { width: auto; margin: 0; }
.search { position: relative; flex: 1 1 240px; margin: 0; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search input { margin: 0; padding-left: 40px; border-radius: 14px; height: 44px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.lobby { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.lobby:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 0, 0, .5), 0 0 30px rgba(139, 92, 255, .22); border-color: rgba(185, 161, 255, .4); }
.lobby.joined { border-color: rgba(139, 92, 255, .75); box-shadow: var(--glow); }
.lobby.live { box-shadow: 0 0 0 1px rgba(43, 240, 138, .35), 0 12px 30px rgba(0, 0, 0, .35); }
.banner { position: relative; height: 140px; }
.banner-top { position: absolute; z-index: 1; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.banner-top .pill.glass:last-child { margin-left: auto; }
.banner h3 { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 10px; font-family: var(--display); font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); overflow-wrap: anywhere; }
.lbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.lobby .note { color: #c9cde0; font-size: .92rem; margin: 0; overflow-wrap: anywhere; }
.when { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.when .ico { color: var(--accent2); }
.when small { color: var(--dim); margin-left: auto; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.seats { display: flex; align-items: center; gap: 12px; }
.avs { display: flex; }
.seatinfo { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: .8rem; color: var(--dim); }
.seatbar { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; }
.seatbar span { display: block; height: 100%; background: var(--grad); border-radius: inherit; box-shadow: 0 0 10px rgba(255, 61, 139, .5); }
.seatbar.full span { background: var(--warn); }
.owner { color: var(--dim); font-size: .82rem; }
.owner b { color: var(--text); font-weight: 650; }
.lobby .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 2px; }
.lobby .foot .primary { flex: 1; }
.lobby .foot .why { color: var(--warn); font-size: .82rem; display: flex; align-items: center; gap: 6px; }

.empty { text-align: center; color: var(--dim); padding: 48px 16px; border: 1px dashed var(--line2); border-radius: 20px; background: rgba(255, 255, 255, .02); }
.empty-ico { font-size: 2.4rem; }
.empty p { margin: 8px 0 16px; }

/* ---------------------------------------------------------- Sprachraum */
.roombanner { position: relative; border-radius: 24px; overflow: hidden; min-height: 190px; display: flex; margin-bottom: 18px; border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.roombanner > .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 13, .85) 0%, rgba(7, 7, 13, .35) 55%, rgba(7, 7, 13, .1) 100%); }
.roombanner-in { position: relative; flex: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 24px; }
.roomtitle h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 900; margin-top: 8px; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.meta { color: rgba(255, 255, 255, .85); margin: 6px 0 0; font-size: .9rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.micnote { background: rgba(255, 200, 87, .12); color: var(--warn); border: 1px solid rgba(255, 200, 87, .3); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: .9rem; }
.room { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 18px; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.panel h2 { font-size: .76rem; color: var(--accent2); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; font-weight: 800; }
.peers { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.peer { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; flex-wrap: wrap; transition: border-color .15s, background .15s; }
.peer.speaking { border-color: rgba(43, 240, 138, .5); background: rgba(43, 240, 138, .06); }
.peer .avatar { box-shadow: 0 0 0 2px transparent; transition: box-shadow .1s; }
.peer.speaking .avatar { box-shadow: 0 0 0 3px var(--ok), 0 0 14px var(--ok); }
.peer .name { flex: 1 1 90px; min-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peer .state { font-size: .78rem; color: var(--dim); }
.peer .state.muted { color: var(--bad); }
.peer input[type=range] { width: 80px; }
.peer .kick { padding: 3px 9px; font-size: .78rem; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost.open { background: rgba(124, 92, 255, .2); box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------------------------------------------------------- Audio-Einstellungen im Raum */
.audioset { display: grid; gap: 14px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); }
.as-devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.as-devices label { margin: 0; font-size: .8rem; color: var(--dim); }
.as-devices select { font-size: .9rem; padding-top: 8px; padding-bottom: 8px; }
.as-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.as-state { font-size: .78rem; font-weight: 700; color: var(--dim); }
.as-state.on { color: var(--ok); }
.as-meter { position: relative; height: 30px; border-radius: 9px; background: #0f1019; border: 1px solid var(--line); overflow: hidden; }
.as-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #3a3f58, #6b7298); transition: width 60ms linear; }
.as-fill.open { background: linear-gradient(90deg, #1d8f50, var(--ok)); }
.as-meter input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: ew-resize; }
.as-meter input[type=range]::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.as-meter input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 30px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 10px rgba(0, 0, 0, .6); }
.as-meter input[type=range]::-moz-range-track { background: transparent; }
.as-meter input[type=range]::-moz-range-thumb { width: 8px; height: 28px; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.as-meter input[type=range]:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.as-meter.novad input[type=range] { visibility: hidden; }
.as-vad .hint { margin: 8px 0 0; }
.as-proc { display: flex; flex-wrap: wrap; gap: 8px; }
.as-gain label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; font-size: .8rem; color: var(--dim); }
.as-gain label b { color: var(--text); font-variant-numeric: tabular-nums; }
.as-gain input[type=range] { width: 100%; }
.as-gain .hint { margin: 6px 0 0; }
.as-tip { margin: 0; }

/* ✕ zum Schließen in jedem Fenster */
/* klebt beim Scrollen oben rechts; die negative Außenkante nimmt ihm den Platz im Fluss */
.dlgx { position: sticky; top: 10px; float: right; margin: 10px 10px -48px 0; z-index: 5; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 12, 18, .62); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 1.05rem; line-height: 1; backdrop-filter: blur(6px); }
.dlgx:hover { background: rgba(11, 12, 18, .9); border-color: rgba(255, 255, 255, .45); transform: scale(1.06); }
.dlgx:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.chat { display: flex; flex-direction: column; min-height: 400px; }
.chatlog { flex: 1; overflow-y: auto; max-height: 52vh; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.msg { overflow-wrap: anywhere; }
.msg b { color: var(--accent2); margin-right: 6px; }
.msg time { color: var(--dim); font-size: .75rem; margin-right: 6px; }
.msg.sys { color: var(--dim); font-style: italic; font-size: .875rem; }
#chatForm { display: flex; gap: 8px; }

/* ---------------------------------------------------------- Lobby erstellen */
dialog { background: linear-gradient(180deg, #17152b, #0e0d1b); color: var(--text); border: 1px solid var(--line2); border-radius: 24px; padding: 0; width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 0 1px rgba(139, 92, 255, .2), 0 0 60px rgba(139, 92, 255, .18); }
dialog::backdrop { background: radial-gradient(ellipse at 50% 30%, rgba(30, 14, 50, .55), rgba(4, 4, 10, .82)); backdrop-filter: blur(8px) saturate(.9); -webkit-backdrop-filter: blur(8px) saturate(.9); }
.cpreview::after, .pd-head::after, .sd-head::after, .md-head::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 13, 27, 0) 30%, rgba(14, 13, 27, .7) 80%, #100f1e 100%); }
.cpreview-in, .pd-head-in, .sd-head-in, .md-head-in { z-index: 1; }
.cpreview { position: relative; height: 130px; }
.cpreview-in { position: absolute; left: 20px; right: 20px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cpreview h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); overflow-wrap: anywhere; }
.cbody { padding: 20px 22px 22px; }
.cbody h2 { font-size: 1.25rem; margin-bottom: 14px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: -4px 0 14px; }
.pick:empty { display: none; }
.ptile { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; padding: 0; text-align: left; outline: 2px solid transparent; transition: transform .15s, outline-color .15s; }
.ptile:hover { transform: translateY(-2px); }
.ptile.active { outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 18px rgba(34, 225, 255, .45); }
.ptile b { position: absolute; left: 8px; right: 8px; bottom: 5px; font-size: .74rem; line-height: 1.2; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.row { display: flex; gap: 12px; }
.row > label { flex: 1; min-width: 0; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: linear-gradient(180deg, #1d1a36, #141228); border: 1px solid rgba(185, 161, 255, .45); border-radius: 14px; padding: 12px 18px; max-width: calc(100vw - 32px); z-index: 10; box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 24px rgba(139, 92, 255, .3); font-weight: 600; }

/* ---------------------------------------------------------- Premium */
:root { --gold: #f5c542; --gold2: #ffdf7e; }
.gold { background: linear-gradient(135deg, #ffe08a, #f5b82e 55%, #e0951b); color: #2a1a00; box-shadow: 0 6px 20px rgba(245, 184, 46, .35); }
.gold:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(245, 184, 46, .5); }
.crown svg { width: 1em; height: 1em; vertical-align: -.12em; }
.prembtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: .85rem; border-radius: 999px; background: linear-gradient(135deg, #ffe08a, #f5b82e 55%, #e0951b); color: #2a1a00; }
.prembtn:hover { transform: translateY(-1px); }
.prembtn.active { background: rgba(245, 197, 66, .12); color: var(--gold2); border: 1px solid rgba(245, 197, 66, .45); }
.pill.gold { background: linear-gradient(135deg, #ffe08a, #f5b82e); color: #2a1a00; }
.pill.feat { background: linear-gradient(135deg, #ffe08a, #f5b82e); color: #2a1a00; }
.pill.priv { background: rgba(10, 10, 20, .6); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.avatar.prem { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--gold); }
.avatar.xs.prem { border-color: var(--gold); box-shadow: none; }
.peer .avatar.prem { box-shadow: 0 0 0 2px var(--panel2), 0 0 0 4px var(--gold); }
.peer.speaking .avatar.prem { box-shadow: 0 0 0 3px var(--ok), 0 0 14px var(--ok); }
.namecrown { color: var(--gold); margin-left: 4px; }
.namecrown svg { width: 14px; height: 14px; vertical-align: -2px; }
.lobby.featured { border-color: rgba(245, 197, 66, .8); box-shadow: 0 0 0 1px rgba(245, 197, 66, .4), 0 10px 40px rgba(245, 184, 46, .18); }
.lobby.featured:hover { box-shadow: 0 0 0 1px rgba(245, 197, 66, .6), 0 16px 44px rgba(245, 184, 46, .28); }
.hero-cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
.hero-quota { color: var(--dim); font-size: .8rem; }
.hero-quota b { color: var(--gold2); }
.invite-note { background: rgba(124, 92, 255, .15); border: 1px solid rgba(124, 92, 255, .45); border-radius: 12px; padding: 10px 14px; margin: 0; max-width: 460px; }

.quota { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; background: var(--panel2); }
.quota.ok { background: rgba(52, 210, 123, .1); color: #a6f0c6; }
.quota.out { background: rgba(255, 200, 87, .12); color: var(--warn); border: 1px solid rgba(255, 200, 87, .3); }
.quota.prem { background: rgba(245, 197, 66, .1); color: var(--gold2); }
.quota .link { padding: 0; }

.extras { border: 1px solid rgba(245, 197, 66, .35); border-radius: 14px; padding: 12px 14px 14px; margin-bottom: 12px; background: linear-gradient(180deg, rgba(245, 197, 66, .06), transparent); }
.extras-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; color: var(--gold2); }
.extras.locked .bpick, .extras.locked .extras-row { opacity: .55; }
.extras.locked { cursor: pointer; }
.extras-label { font-size: .85rem; color: var(--dim); margin-bottom: 6px; font-weight: 550; }
.bpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 12px; }
.btile { position: relative; aspect-ratio: 2 / 1; border-radius: 9px; overflow: hidden; padding: 0; outline: 2px solid transparent; transition: transform .15s, outline-color .15s; }
.btile:hover { transform: translateY(-2px); }
.btile.active { outline: 2px solid var(--gold); outline-offset: 2px; }
.btile b { position: absolute; left: 6px; bottom: 3px; font-size: .68rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.extras-row { display: flex; flex-wrap: wrap; gap: 8px; }

#premiumDialog { width: min(560px, calc(100vw - 24px)); }
.pd-head { position: relative; height: 170px; }
.pd-head-in { position: absolute; left: 22px; right: 22px; bottom: 16px; }
.pd-crown { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #ffe08a, #f5b82e); color: #2a1a00; margin-bottom: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.pd-crown svg { width: 26px; height: 26px; }
.pd-head h2 { font-size: 1.6rem; font-weight: 850; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.pd-price { margin: 4px 0 0; font-weight: 700; color: var(--gold2); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.pd-body { padding: 18px 22px 22px; }
.pd-status { background: rgba(245, 197, 66, .12); color: var(--gold2); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; }
.compare { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .9rem; }
.compare th, .compare td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text); }
.compare th { color: var(--dim); font-weight: 650; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.compare td { color: var(--dim); }
.compare .pcol { color: var(--gold2); font-weight: 700; background: rgba(245, 197, 66, .06); }
.compare td.pcol .yes { color: var(--gold2); }

/* ---------------------------------------------------------- Anmeldung: Google & Mail */
.google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 11px 16px; border-radius: 12px; background: #fff; color: #1f1f1f; font-weight: 650; text-decoration: none; border: 1px solid #dadce0; transition: box-shadow .15s, transform .15s; }
.google:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .35); transform: translateY(-1px); }
.google svg { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .8rem; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card form .link.center, .link.center { display: block; margin: 10px auto 0; }
label small { color: var(--dim); font-weight: 400; }
.okmsg { color: #a6f0c6; font-size: .9rem; margin: 0 0 12px; }
.okmsg:empty { display: none; }
.verifybar { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: rgba(124, 92, 255, .14); border-bottom: 1px solid rgba(124, 92, 255, .35); font-size: .88rem; text-align: center; }
.ghost.big { padding: 12px 22px; font-size: .95rem; border-radius: 12px; border: 1px solid var(--line2); }
.dot.seek { background: var(--warn); box-shadow: 0 0 10px var(--warn); }

/* ---------------------------------------------------------- Stimmeffekte */
.voicefx { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.vpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.vchip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--text); }
.vchip .emo { font-size: 1.5rem; line-height: 1.1; }
.vchip:hover { border-color: var(--line2); transform: translateY(-1px); }
.vchip.active { border-color: var(--accent); background: rgba(139, 92, 255, .22); box-shadow: var(--glow); }
.vchip.locked { opacity: .6; }
.vchip .lock { position: absolute; top: 4px; right: 6px; color: var(--gold); }
.vchip .lock svg { width: 13px; height: 13px; }
.vchip .free { position: absolute; top: 4px; left: 6px; font-size: .6rem; color: var(--ok); text-transform: uppercase; letter-spacing: .04em; }
.vpill { font-size: .72rem; background: rgba(124, 92, 255, .25); color: var(--accent2); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* ---------------------------------------------------------- Mitspielersuche */
#searchDialog { width: min(620px, calc(100vw - 24px)); }
.sd-head, .md-head { position: relative; height: 140px; }
.sd-head-in, .md-head-in { position: absolute; left: 22px; right: 22px; bottom: 14px; }
.sd-head h2, .md-head h2 { font-size: 1.6rem; font-weight: 850; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.sd-head p { margin: 4px 0 0; color: rgba(255, 255, 255, .88); font-size: .9rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.step { display: flex; align-items: center; gap: 10px; font-weight: 750; margin: 6px 0 10px; }
.step small { color: var(--dim); font-weight: 500; }
.step .num { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: none; box-shadow: 0 0 12px rgba(255, 61, 139, .45); }
.selchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.selchips:empty::before { content: 'Noch kein Spiel gewählt – tipp unten auf eins.'; color: var(--dim); font-size: .85rem; }
.selchip { display: inline-flex; align-items: center; gap: 6px; background: rgba(124, 92, 255, .2); border: 1px solid var(--accent); color: var(--text); border-radius: 999px; padding: 5px 8px 5px 12px; font-size: .85rem; }
.selchip b { font-weight: 600; }
.selchip span { opacity: .7; font-size: 1rem; line-height: 1; }
#sGame { margin-bottom: 10px; }
.ptile .tick { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.presets button { background: var(--panel2); border: 1px solid var(--line); color: var(--dim); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; }
.presets button:hover { color: var(--text); border-color: var(--line2); }
.seg { display: flex; gap: 0; background: #0f1019; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg button { flex: 1; background: transparent; color: var(--dim); padding: 8px 0; }
.seg button.active { background: var(--grad); color: #fff; box-shadow: 0 0 16px rgba(139, 92, 255, .4); }

.searchbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; background: rgba(21, 23, 34, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--accent); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(124, 92, 255, .25); max-width: calc(100vw - 24px); }
.sb-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sb-text b { font-size: .95rem; }
.sb-text small { color: var(--dim); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.radar { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent2); flex: none; }
.radar::before, .radar::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent2); animation: ping 1.8s ease-out infinite; }
.radar::after { animation-delay: .9s; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
body:has(#searchBar:not([hidden])) .toast { bottom: 96px; }

#matchDialog { width: min(480px, calc(100vw - 24px)); }
.md-head { height: 160px; }
.md-head h2 { margin-top: 8px; font-size: 1.9rem; }
.md-head p { margin: 2px 0 0; font-weight: 650; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.md-body { padding: 18px 22px 22px; }
.md-members { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 10px; }
.md-member { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; animation: pop .4s ease-out backwards; }
.md-member .avatar { width: 52px; height: 52px; font-size: 1.3rem; }
.md-member:nth-child(2) { animation-delay: .08s; } .md-member:nth-child(3) { animation-delay: .16s; } .md-member:nth-child(4) { animation-delay: .24s; } .md-member:nth-child(5) { animation-delay: .32s; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
#mdCount { text-align: center; }
.gtile-info .searching { color: var(--warn); }

/* ---------------------------------------------------------- Offene Runden & Admin */
.sec-sub { font-size: .85rem; color: var(--dim); font-weight: 500; margin-left: 8px; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.oround { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.oround:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 26px rgba(139, 92, 255, .25); border-color: rgba(185, 161, 255, .4); }
.oround.active { border-color: rgba(43, 240, 138, .6); box-shadow: 0 0 24px rgba(43, 240, 138, .2); }
.oround.full { opacity: .75; }
.obanner { position: relative; height: 104px; }
.obanner .pill { position: absolute; z-index: 1; top: 8px; left: 8px; }
.obanner h3 { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 8px; font-family: var(--display); font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.obody .note { color: var(--dim); font-size: .82rem; margin: 0; }
.ofoot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.ofoot .avs { flex: 1; min-width: 0; overflow: hidden; }
.ofoot .first { flex: 1; color: var(--dim); font-size: .78rem; }
.ocount { font-size: .8rem; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ocount.full { color: var(--warn); }
.apill { display: inline-block; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--grad); color: #fff; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.peer.away { opacity: .6; }
.peer.away .state { font-style: italic; }
#membersDialog { width: min(460px, calc(100vw - 24px)); }
.mdlg { padding: 22px; }
.mdlg h2 { font-size: 1.25rem; margin-bottom: 8px; padding-right: 44px; }
.mblist { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mbrow { display: flex; align-items: center; gap: 10px; background: var(--panel2); border-radius: 12px; padding: 8px 10px; }
.mbrow .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.danger.sm { padding: 6px 12px; font-size: .82rem; }

/* ---------------------------------------------------------- Runden, Teilen, Einladen */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.quick b { margin-right: 4px; }
.quick button { padding: 7px 14px; font-size: .85rem; }
.oround .sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oround .admin { color: var(--dim); font-size: .75rem; }
.iconbtn { padding: 6px 9px; font-size: .9rem; line-height: 1; }
.roomactions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.refbtn { white-space: nowrap; }
.linkrow { display: flex; gap: 8px; margin-bottom: 10px; }
.linkrow input { flex: 1; min-width: 0; font-size: .85rem; }
#refDialog, #pwDialog { width: min(480px, calc(100vw - 24px)); }
.pill.lock { background: rgba(10, 10, 20, .6); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------------------------------------------------------- Turniere */
.roombar { position: sticky; top: 63px; z-index: 4; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: rgba(8, 40, 26, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(52, 210, 123, .45); font-size: .9rem; }
.empty.small { padding: 22px 16px; font-size: .9rem; }
#tourBack { margin-bottom: 10px; }
.tgrid { display: grid; grid-template-columns: minmax(270px, 1fr) 2fr; gap: 18px; margin-bottom: 18px; align-items: start; }
.panel h2 small { text-transform: none; letter-spacing: 0; }
.teambox { background: var(--panel2); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.teambox.mine { box-shadow: 0 0 0 1px var(--accent); }
.teambox h4 { margin: 0 0 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .95rem; }
.teambox h4 small { color: var(--dim); font-weight: 600; }
.teambox .primary.sm, .teambox .ghost.sm { margin-top: 6px; }
.tmember { display: flex; align-items: center; gap: 8px; font-size: .86rem; padding: 3px 0; }
.tmember .avatar.xs { margin-left: 0; }
.tmember .x { margin-left: auto; padding: 2px 8px; font-size: .75rem; }
.teamform { display: flex; gap: 8px; margin-bottom: 12px; }
.teamform input { flex: 1; min-width: 0; }
.champion { text-align: center; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(245, 197, 66, .22), rgba(245, 197, 66, .04)); border: 1px solid rgba(245, 197, 66, .5); margin-bottom: 12px; font-weight: 800; font-size: 1.1rem; color: var(--gold2); }
.bracket { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 8px; }
.bracket > .hint { margin: 0; }
.bround { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; min-width: 210px; flex: none; }
.bround h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin: 0; }
.bmatch { background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.bmatch.mine { border-color: var(--accent); box-shadow: var(--glow); }
.bmatch.conflict { border-color: var(--warn); }
.bteam { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: .88rem; }
.bteam + .bteam { border-top: 1px solid var(--line); }
.bteam.win { color: var(--ok); font-weight: 700; }
.bteam.lose { color: var(--dim); text-decoration: line-through; }
.bteam.tbd { color: var(--dim); font-style: italic; }
.bact { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); }
.bact button { padding: 5px 9px; font-size: .78rem; }
.bact .claim { font-size: .76rem; color: var(--warn); width: 100%; }
.tgrid.running { grid-template-columns: 1fr; }
.tgrid.running > .tbracket { order: -1; }
.tgrid.running #tvTeams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tgrid.running #tvTeams .teambox { margin-bottom: 0; }
.tgrid.running #tvTeams > .champion, .tgrid.running #tvTeams > .hint { grid-column: 1 / -1; margin-bottom: 0; }
.tchat .chatlog { min-height: 120px; max-height: 280px; }
#tvChatForm { display: flex; gap: 8px; }
.msg .host { font-size: .62rem; background: var(--gold); color: #2a1a00; border-radius: 5px; padding: 1px 5px; margin-left: 4px; font-weight: 800; vertical-align: 1px; }

/* ---------------------------------------------------------- Creator */
:root { --creator: #33d6ff; }
.creatorbtn { background: linear-gradient(135deg, #33d6ff, #7c5cff); color: #fff; box-shadow: 0 6px 20px rgba(51, 214, 255, .3); }
.creatorbtn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(51, 214, 255, .45); }
.creatorbtn.sm { padding: 6px 12px; font-size: .82rem; }
.namecrown.creator { color: var(--creator); }
.avatar.prem.creator { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--creator); }
.avatar.xs.prem.creator { border-color: var(--creator); box-shadow: none; }
.peer .avatar.prem.creator { box-shadow: 0 0 0 2px var(--panel2), 0 0 0 4px var(--creator); }
.prembtn.active.creator { color: #9fefff; border-color: rgba(51, 214, 255, .55); background: rgba(51, 214, 255, .1); }
.compare .ccol { color: #8feaff; font-weight: 700; background: rgba(51, 214, 255, .07); }
#premiumDialog { width: min(640px, calc(100vw - 24px)); }
.creatorinfo { display: flex; gap: 10px; align-items: flex-start; background: rgba(51, 214, 255, .08); border: 1px solid rgba(51, 214, 255, .35); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: .88rem; color: #cdf6ff; }
.creatorinfo .crown { color: var(--creator); margin-top: 2px; }
.creatorinfo p { margin: 0 0 6px; }
.creatorinfo ul { margin: 0 0 8px; padding-left: 18px; }
.creatorinfo li { margin: 2px 0; }
.creatorinfo .nopw { margin: 0; color: #9fefff; font-weight: 650; }
#adminDialog { width: min(560px, calc(100vw - 24px)); }
.adminform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.adminform button { grid-column: 1 / -1; }
.mbrow .sub { color: var(--dim); font-weight: 400; }
.mbrow .sub.block { display: block; margin-top: 2px; }
#premiumDialog .actions { flex-wrap: wrap; }

/* ---------------------------------------------------------- Im Trend (Poster-Leiste) */
.trail { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 16px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.tcard { position: relative; padding: 0; text-align: left; background: none; border-radius: 20px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.tcard .art { position: relative; inset: auto; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); transition: transform .22s, box-shadow .22s, border-color .22s; }
.tcard:hover .art { transform: translateY(-6px) rotate(-.6deg); border-color: rgba(255, 61, 139, .6); box-shadow: 0 22px 46px rgba(0, 0, 0, .55), 0 0 34px rgba(255, 61, 139, .35); }
.tcard.active .art { border-color: var(--cyan); box-shadow: 0 0 34px rgba(34, 225, 255, .5); }
.tcard .rank { position: absolute; z-index: 2; left: -4px; bottom: 52px; font-family: var(--display); font-weight: 900; font-size: 4.4rem; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .85); text-shadow: 0 0 24px rgba(255, 61, 139, .6); pointer-events: none; }
.tcard .tops { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tcard .tops .pill:last-child { margin-left: auto; }
.tcard .tinfo { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 58px; display: flex; flex-direction: column; gap: 6px; padding-left: 44px; }
.tcard b { font-family: var(--display); font-weight: 900; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.12; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.tcard .tmeta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--dim); font-weight: 600; min-height: 20px; padding: 0 4px; }
.tcard .tmeta .livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.tcard .tmeta.hot { color: #ffd0e3; }

/* ---------------------------------------------------------- Steam */
.steambtn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: #dfe9f2; background: linear-gradient(135deg, #1b2838, #2a475e); border: 1px solid rgba(102, 192, 244, .45); border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: .9rem; transition: filter .18s, box-shadow .18s, transform .18s; }
.steambtn:hover { filter: brightness(1.15); box-shadow: 0 0 20px rgba(102, 192, 244, .35); transform: translateY(-1px); }
.steambtn.sm { padding: 4px 10px; font-size: .78rem; border-radius: 10px; }
.steambtn svg { width: 16px; height: 16px; flex: none; }
.steamrow { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0 2px 46px; font-size: .8rem; color: var(--dim); }
.steamrow code { font-family: inherit; font-weight: 800; color: #dfe9f2; background: rgba(102, 192, 244, .12); border: 1px solid rgba(102, 192, 244, .35); border-radius: 8px; padding: 2px 8px; }
.steamrow .playing { flex-basis: 100%; color: #9fd7ff; font-weight: 650; }
.steamsug { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.steamsug:empty { display: none; }
.steamsug button { display: inline-flex; align-items: center; gap: 6px; background: rgba(27, 40, 56, .9); border: 1px solid rgba(102, 192, 244, .4); color: #dfe9f2; border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 650; }
.steamsug button:hover, .steamsug button.active { border-color: #66c0f4; box-shadow: 0 0 14px rgba(102, 192, 244, .35); }
.steamsug .lbl { font-size: .74rem; color: var(--dim); align-self: center; margin-right: 2px; }
.stcard { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(27, 40, 56, .9), rgba(42, 71, 94, .7)); border: 1px solid rgba(102, 192, 244, .35); margin-bottom: 14px; }
.stcard b { display: block; font-size: 1.05rem; }
.stcard small { color: #a9c2d6; }

/* ---------------------------------------------------------- Profilbild */
.mt { margin-top: 12px; }
.inl { display: inline !important; }
.picnow { display: flex; align-items: center; gap: 16px; margin: 6px 0 16px; }
.picnow .avatar { box-shadow: 0 0 0 3px rgba(139, 92, 255, .6), 0 0 30px rgba(139, 92, 255, .4); }
.picnow b { display: block; font-size: 1.1rem; }
.picnow small { color: var(--dim); }
.avgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; margin-bottom: 14px; }
.avgrid button { padding: 0; aspect-ratio: 1; border-radius: 50%; background: none; border: 2px solid transparent; transition: transform .15s, border-color .15s, box-shadow .15s; }
.avgrid button:hover { transform: scale(1.06); }
.avgrid button.active { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 225, 255, .55); }
.avgrid button svg { width: 100%; height: 100%; display: block; }
.filebtn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 16px; border-radius: 12px; margin: 0 8px 10px 0; color: var(--text); font-weight: 700; font-size: .95rem; }
.filebtn input { display: none; }
.filebtn:has(input:disabled) { opacity: .5; cursor: not-allowed; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .showcase { padding: 28px 16px 0; gap: 12px; }
  .claim { margin-top: 0; }
  .mosaic-wrap { min-height: 170px; margin: 0 -16px; }
  .mosaic { grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-6deg); }
  .mtile:nth-child(3n + 2) { transform: none; }
  .mtile:nth-child(n + 7) { display: none; }
  .mtile b { font-size: .75rem; left: 8px; bottom: 6px; }
  .auth-panel { border-left: 0; background: none; padding: 0 16px 40px; }
}
@media (max-width: 720px) {
  main { padding: 16px 16px 56px; }
  .top { padding: 10px 16px; }
  .me-text { display: none; }
  .me { gap: 6px; }
  .mebtn { padding: 0; }
  #adminBtn, #logout { display: none; } /* auf dem Handy im Kontomenü */
  .refbtn .label, #adminBtn .label { display: none; }
  .adminform { grid-template-columns: 1fr; }
  .prembtn .label { display: none; }
  .compare { font-size: .82rem; }
  .compare th, .compare td { padding: 8px 4px; }
  .hero { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .rail { grid-auto-columns: 168px; }
  .trail { grid-auto-columns: 156px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { justify-content: flex-start; padding: 7px 10px; font-size: .8rem; }
  .sec-sub { display: none; }
  .hero h1 { font-size: 2rem; }
  .tcard .rank { font-size: 3.4rem; bottom: 50px; }
  .tcard .tinfo { padding-left: 34px; }
  .hero { padding: 26px 20px; }
  .ogrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .oround { scroll-snap-align: start; }
  .rail-nav { display: none; }
  .filters select { flex: 1 1 140px; }
  .grid { grid-template-columns: 1fr; }
  .room { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: 1fr; }
  .roombar { top: 55px; }
  .roombanner-in { flex-direction: column; align-items: stretch; }
  .row { flex-wrap: wrap; }
  .row > label { flex-basis: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------- Freunde */
.friendsbtn { position: relative; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fcount { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(43, 240, 138, .16); color: var(--ok); font-size: .75rem; font-weight: 800; text-align: center; }
.fdot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--bg), 0 0 12px var(--pink); }
dialog.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; max-width: 100vw; width: min(410px, 100vw); border-radius: 24px 0 0 24px; border-right: 0; animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.fr { display: flex; flex-direction: column; gap: 14px; min-height: 100%; padding: 22px 20px 20px; }
.fr-head { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.fr-head h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 900; }
.frstatus { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 6px 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.frstatus select { background: none; border: 0; padding: 2px; font-size: .85rem; font-weight: 700; }
.frstatus select option { background: var(--panel); }
.sdot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #5d5a78; }
.sdot.on { background: var(--ok); box-shadow: 0 0 10px rgba(43, 240, 138, .7); }
.sdot.inv { background: transparent; box-shadow: inset 0 0 0 2px #8a87a8; }
.fradd { display: flex; gap: 8px; }
.fradd input { flex: 1; min-width: 0; }
.frlists { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.frsec h3 { margin: 0 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.frsec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fitem { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.fitem.on { background: linear-gradient(90deg, rgba(43, 240, 138, .06), rgba(255, 255, 255, .02)); }
.fitem.off { opacity: .62; }
.fitem.req { border-color: rgba(255, 61, 139, .45); background: rgba(255, 61, 139, .07); }
.fav { position: relative; display: inline-flex; }
.fav .avatar { width: 40px; height: 40px; }
.fav .sdot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; box-shadow: 0 0 0 3px #121124; }
.fav .sdot.on { box-shadow: 0 0 0 3px #121124, 0 0 10px rgba(43, 240, 138, .7); }
.fmain { display: flex; flex-direction: column; min-width: 0; }
.fmain b { display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmain small { color: var(--dim); font-size: .8rem; line-height: 1.3; overflow-wrap: anywhere; }
.fmain small.act { color: var(--accent2); }
.fmain small.act.here { color: var(--ok); }
.factions { display: flex; align-items: center; gap: 6px; }
.factions .sm { padding: 6px 10px; }
.fmore { position: relative; }
.fmore summary { list-style: none; cursor: pointer; padding: 4px 8px; border-radius: 8px; color: var(--dim); font-weight: 900; letter-spacing: .1em; }
.fmore summary::-webkit-details-marker { display: none; }
.fmore summary:hover, .fmore[open] summary { background: var(--panel2); color: var(--text); }
.fmore > div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 3; display: grid; min-width: 150px; padding: 4px; border: 1px solid var(--line2); border-radius: 12px; background: #17152b; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.fmore > div button { background: none; text-align: left; padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: .85rem; }
.fmore > div button:hover { background: var(--panel2); }
.fmore > div button.bad { color: var(--bad); }
.frempty { padding: 18px; border: 1px dashed var(--line2); border-radius: 14px; color: var(--dim); text-align: center; font-size: .9rem; }
.fr-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.fr-foot .toggle { white-space: normal; }
.fr-foot .hint { margin: 0; }
.peer .addf { padding: 5px 10px; font-size: .8rem; }
.peer .fpill { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 999px; background: rgba(43, 240, 138, .13); box-shadow: inset 0 0 0 1px rgba(43, 240, 138, .35); font-size: .72rem; flex: none; }
.invitecard { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; width: min(360px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid rgba(185, 161, 255, .5); box-shadow: 0 24px 60px rgba(0, 0, 0, .6), var(--glow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: drawer-in .25s ease-out; }
.invitecard .avatar { width: 44px; height: 44px; grid-row: span 2; }
.invitecard p { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.invitecard p small { display: block; color: var(--accent2); font-weight: 700; }
.invitecard .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin: 6px 0 0; }
@media (max-width: 720px) {
  .friendsbtn .label { display: none; }
  dialog.drawer { width: 100vw; border-radius: 0; border-left: 0; }
  .fr { padding: 18px 16px 16px; }
  .invitecard { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

@media (max-width: 420px) {
  .refbtn { display: none; } /* auf kleinen Handys im Kontomenü („Freunde einladen“) */
}

/* ---------------------------------------------------------- Sprachen & Länder */
.flag { display: inline-block; margin-right: 5px; font-size: 1.05em; line-height: 1; vertical-align: -.08em; }
.flag.code { padding: 1px 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); color: var(--dim); font-size: .62rem; font-weight: 800; letter-spacing: .04em; vertical-align: .12em; }
.ltag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--dim); font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
.ltag.learn { background: rgba(34, 225, 255, .1); color: #8beeff; }
.ltag.hl { background: rgba(43, 240, 138, .16); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(43, 240, 138, .4); }
.plangs { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-left: 50px; margin-top: -4px; color: var(--dim); font-size: .72rem; }
.pill.lang { background: rgba(14, 13, 27, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.pill.learn { background: linear-gradient(120deg, #22e1ff, #8b5cff); color: #fff; box-shadow: 0 0 12px rgba(34, 225, 255, .4); }
.obanner .olang { position: absolute; z-index: 1; top: 8px; right: 8px; left: auto; }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.lchips button { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--dim); font-size: .82rem; font-weight: 650; }
.lchips button:hover { border-color: var(--line2); color: var(--text); }
.lchips button.active { background: rgba(139, 92, 255, .22); border-color: var(--accent); color: var(--text); }
.lchips button.active.learn { background: rgba(34, 225, 255, .14); border-color: var(--cyan); }
.lglevels { display: grid; gap: 8px; margin-bottom: 8px; }
.lglevels label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(34, 225, 255, .05); }
.lglevels select { width: auto; }
#sLangMore { margin-bottom: 14px; }
.learnt { align-self: end; white-space: normal; }
.learnt small { color: var(--dim); font-weight: 500; }
.learnnote { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(34, 225, 255, .35); background: linear-gradient(90deg, rgba(34, 225, 255, .1), rgba(139, 92, 255, .08)); font-weight: 600; }
.lchips button.morelangs { border-style: dashed; color: var(--accent2); }

/* ---------------------------------------------------------- Sprachspiele */
.pkinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.pkind { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; text-align: left; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-weight: 600; }
.pkind .pk-ico { font-size: 1.8rem; line-height: 1; }
.pkind b { font-size: 1rem; }
.pkind small { color: var(--dim); font-weight: 500; font-size: .8rem; line-height: 1.35; }
.pkind.active { border-color: var(--accent); background: rgba(139, 92, 255, .16); box-shadow: var(--glow); }
.playbox { margin: 0 0 18px; padding: 16px; border-radius: 22px; border: 1px solid rgba(139, 92, 255, .45); background: var(--glass); box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(139, 92, 255, .15); }
.pb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pb-head h2 { font-family: var(--display); font-size: 1.25rem; font-weight: 900; margin-right: auto; }
.pb-round { color: var(--dim); font-size: .85rem; font-weight: 700; }
.pb-timer { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; font-variant-numeric: tabular-nums; font-weight: 800; }
.pb-timer .bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; min-width: 60px; }
.pb-timer .bar i { display: block; height: 100%; background: var(--grad); transition: width .25s linear; }
.pb-players { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pb-player { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; }
.pb-player.turn { border-color: var(--pink); background: rgba(255, 61, 139, .14); }
.pb-player.ok { border-color: rgba(43, 240, 138, .6); background: rgba(43, 240, 138, .12); }
.pb-player.gone, .pb-player.out { opacity: .45; }
.pb-player .sc { color: var(--accent2); font-variant-numeric: tabular-nums; }
.pb-player .lv { font-size: .7rem; }
.pb-main { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.pb-main.solo { grid-template-columns: 1fr; }
.pb-side { display: flex; flex-direction: column; gap: 10px; }
.pb-word { font-family: var(--display); font-size: 1.6rem; font-weight: 900; letter-spacing: .02em; overflow-wrap: anywhere; }
.pb-mask { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: .3em; white-space: pre-wrap; overflow-wrap: anywhere; }
.pb-trans { color: #8beeff; font-weight: 700; }
.pb-sub { color: var(--dim); font-size: .85rem; }
.pb-hints { display: grid; gap: 6px; }
.pb-hints .hint1 { padding: 8px 12px; border-radius: 12px; background: rgba(255, 194, 75, .1); border: 1px solid rgba(255, 194, 75, .35); font-size: .88rem; font-weight: 600; }
.pb-canvas { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.pb-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.pb-canvas .pb-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(10, 9, 20, .82); color: #fff; text-align: center; }
.pb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pb-tools .sw { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.pb-tools .sw.active { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.pb-tools .sz { width: 34px; height: 30px; padding: 0; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 8px; }
.pb-tools .sz.active { border-color: var(--accent); background: rgba(139, 92, 255, .2); }
.pb-tools .sz i { display: block; border-radius: 50%; background: currentColor; }
.pb-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pb-choices button { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; }
.pb-choices small { font-weight: 500; opacity: .85; }
.pb-card { padding: 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 61, 139, .18), rgba(139, 92, 255, .14)); border: 1px solid rgba(255, 61, 139, .45); }
.pb-card .ban { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.pb-card .ban li { color: #ffb3c8; font-weight: 700; text-decoration: line-through; text-decoration-color: rgba(255, 77, 109, .8); }
.pb-card .ban li small { color: var(--dim); text-decoration: none; font-weight: 500; }
.pb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-who { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-bomb { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; text-align: center; }
.pb-bomb .bomb { font-size: 4.2rem; line-height: 1; animation: bomb-tick 1s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255, 61, 139, .55)); }
.pb-bomb .bomb.boom { animation: bomb-boom .6s ease-out; }
@keyframes bomb-tick { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.06); } }
@keyframes bomb-boom { from { transform: scale(.6); } to { transform: scale(1.3); } }
.pb-bomb .prompt { font-family: var(--display); font-size: 1.9rem; font-weight: 900; }
.pb-bomb .prompt b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.3rem; }
.pb-pass { display: flex; gap: 8px; width: min(420px, 100%); }
.pb-pass input { flex: 1; min-width: 0; }
.pb-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .85rem; }
.pb-feed li { padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.pb-feed .ok { color: var(--ok); }
.pb-end { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pb-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pb-rank li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-weight: 700; }
.pb-rank li:first-child { background: linear-gradient(90deg, rgba(245, 197, 66, .25), rgba(255, 255, 255, .04)); }
.pb-learned { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 240px; overflow-y: auto; font-size: .88rem; }
.pb-learned li b { color: #fff; }
.pb-learned li span { color: #8beeff; }
.msg.sys.priv { color: #ffd98a; }
.msg.sys.priv.learn { color: #8beeff; }
.msg.sys.priv.good { color: var(--ok); }
@media (max-width: 860px) {
  .pb-main { grid-template-columns: 1fr; }
  .pkinds { grid-template-columns: 1fr; }
  .pb-end { grid-template-columns: 1fr; }
}
.pb-card.watch { background: linear-gradient(160deg, rgba(255, 194, 75, .16), rgba(255, 77, 109, .12)); border-color: rgba(255, 194, 75, .5); }
.buzzer { padding: 16px; font-size: 1.05rem; border-radius: 16px; box-shadow: 0 8px 26px rgba(255, 77, 109, .35); }

/* ---------------------------------------------------------- Mikro-Leiste unten */
.voicebar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 11; display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: rgba(16, 15, 30, .9); border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 24px rgba(139, 92, 255, .2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.voicebar button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; white-space: nowrap; }
.voicebar #muteBtn.muted { background: var(--bad); box-shadow: 0 6px 20px rgba(255, 77, 109, .35); }
.voicebar kbd { padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .25); font: 700 .72rem ui-monospace, Menlo, Consolas, monospace; }
body:has(#voiceBar:not([hidden])) main { padding-bottom: 110px; }
body:has(#voiceBar:not([hidden])) .toast { bottom: 92px; }
body:has(#voiceBar:not([hidden])) .invitecard { bottom: 92px; }
body:has(#voiceBar:not([hidden])) .searchbar { bottom: 92px; }
/* Große Bildschirme: Leiste rechts unten – verdeckt so nicht die Mitte (z. B. die Zeichenfläche) */
@media (min-width: 900px) {
  .voicebar { left: auto; right: 20px; transform: none; }
  body:has(#voiceBar:not([hidden])) .toast { bottom: 24px; }
  body:has(#voiceBar:not([hidden])) .invitecard { bottom: 96px; }
}
.as-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.as-key .hint { flex-basis: 100%; margin: 0; }
.pb-feed li.rej { opacity: .7; }
.pb-feed li.rej span:not(.rejtag) { text-decoration: line-through; }
.pb-feed .rejtag { color: var(--bad); font-weight: 700; }
.pb-vote { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.pb-vote button { padding: 3px 8px; font-size: .75rem; }
.pb-vote small { color: var(--dim); }

/* ---------------------------------------------------------- Musik (YouTube zusammen hören) */
.musicbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; margin: 0 0 18px; padding: 14px; border-radius: 22px; border: 1px solid rgba(34, 225, 255, .35); background: var(--glass); box-shadow: 0 16px 50px rgba(0, 0, 0, .4), 0 0 30px rgba(34, 225, 255, .1); }
.mu-player { position: relative; width: 356px; height: 200px; border-radius: 14px; overflow: hidden; background: #000; }
.mu-player iframe { display: block; width: 356px; height: 200px; border: 0; }
.mu-consent { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.mu-consent { background: radial-gradient(400px 200px at 30% 20%, rgba(255, 61, 139, .35), transparent 70%), radial-gradient(400px 200px at 80% 90%, rgba(34, 225, 255, .3), transparent 70%), #120f22; }
.mu-consent > div { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); width: 100%; }
.mu-consent small { color: #ddd; font-size: .75rem; }
.mu-demo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 16px; text-align: center; background: linear-gradient(135deg, #2b0f1f, #1a1030); color: #fff; font-weight: 800; }
.mu-demo small { font-weight: 500; color: var(--dim); }
.mu-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mu-now { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mu-title { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mu-row input[type=range] { width: 140px; }
.mu-add { display: flex; gap: 8px; }
.mu-add input { flex: 1; min-width: 0; }
.mu-queue ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 3px; font-size: .88rem; }
.mu-queue li span { overflow-wrap: anywhere; }
.mu-queue li .link { margin-left: 6px; padding: 0 4px; }
@media (max-width: 720px) {
  .musicbox { grid-template-columns: 1fr; }
  .mu-player { margin: 0 auto; }
}
.micnote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.micnote small { flex-basis: 100%; color: var(--dim); }
.michelp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; }
.pb-tools .tool { padding: 5px 10px; font-size: .82rem; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 8px; }
.pb-tools .tool.active { border-color: var(--accent); background: rgba(139, 92, 255, .25); }
.steamnote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(102, 192, 244, .45); background: linear-gradient(90deg, rgba(27, 40, 56, .9), rgba(42, 71, 94, .6)); font-weight: 600; }
.steamnote span { flex: 1 1 260px; }
.peer .own { font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; flex: none; }
.peer .own.ok { background: rgba(43, 240, 138, .12); }
.peer .own.no { background: rgba(255, 194, 75, .15); color: var(--warn); }
.gatesteps ol { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 4px; }
#proofWrap { margin: -4px 0 12px; }
.freenote { margin: 8px 0 0; font-size: .78rem; color: var(--dim); }
.steamstate { margin: 2px 0 10px; font-size: .82rem; color: var(--dim); }
.ipnote { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-size: .82rem; background: rgba(43, 240, 138, .08); border: 1px solid rgba(43, 240, 138, .3); color: #b8f5d2; }
.ipnote.warn { background: rgba(255, 194, 75, .08); border-color: rgba(255, 194, 75, .35); color: var(--warn); }


/* Art der Lobby: Spiel- oder Sprachlern-Lobby */
.modeseg button { padding: 9px 6px; font-weight: 600; }
#langFields { margin-bottom: 4px; }

/* Sprachtreffs: Sprache antippen = filtern */
.quick .chip { padding: 7px 14px; }
.quick .chip .num { opacity: .8; font-weight: 600; }
.quicknote { flex-basis: 100%; font-size: .85rem; color: var(--dim); padding-top: 2px; }
.quick .linkbtn { background: none; border: 0; padding: 0; color: var(--accent2); font-weight: 650; font-size: .875rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.quick .linkbtn:hover { color: var(--text); }

/* Rechtliche Seiten (z. B. /gewinnspiel) */
.legalpage { min-height: 100vh; }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; line-height: 1.6; }
.legal .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; margin-bottom: 18px; }
.legal .brand img { width: 36px; height: 36px; }
.legal h1 { font-size: 2rem; margin: 6px 0 4px; letter-spacing: -.02em; }
.legal .lead { color: var(--dim); margin: 0 0 22px; }
.legal h2 { font-size: 1.15rem; margin: 26px 0 6px; }
.legal p, .legal li { color: var(--text); opacity: .92; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent2); }
.legal .warn { background: rgba(255, 61, 139, .1); border: 1px solid rgba(255, 61, 139, .35); border-radius: 12px; padding: 12px 14px; }
.legal .back { margin-top: 32px; }

/* Tandempartner */
.tdspeaks { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.tdspeaks .ltag { font-size: .82rem; padding: 5px 10px; }
.tdneed { display: grid; gap: 12px; justify-items: start; margin: 6px 0 4px; }
.tdneed p { margin: 0; color: var(--dim); }
.md-member .md-role { display: block; color: var(--cyan); font-size: .74rem; font-weight: 650; text-align: center; }
.legalfoot { text-align: center; padding: 28px 16px 96px; font-size: .85rem; color: var(--dim); }
.legalfoot a, .legalhint a { color: var(--dim); }
.legalfoot a:hover, .legalhint a:hover { color: var(--text); }
#liveSec .sec-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.liveempty { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border: 1px dashed var(--line2); border-radius: 18px; background: rgba(255, 255, 255, .02); color: var(--dim); }
.liveempty p { margin: 0; }
.liveempty b { color: var(--text); }
.liveacts { display: flex; gap: 10px; flex-wrap: wrap; }
#liveSec h2 .livedot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); display: inline-block; }
.namehint { display: block; margin-top: 6px; font-size: .78rem; color: var(--dim); font-weight: 400; }
.namehint.bad { color: var(--bad); font-weight: 600; }
.launch-note { display: inline-block; align-self: flex-start; margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(43, 240, 138, .1); border: 1px solid rgba(43, 240, 138, .45); color: var(--text); font-weight: 700; }
.prelaunch { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; max-width: none; margin: 0; }
.pl-card { width: min(560px, 100%); display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; padding: 32px 24px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), var(--glow); }
.pl-card h1 { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: -.02em; margin: 4px 0 0; overflow-wrap: anywhere; }
.pl-lead { color: var(--dim); margin: 0; line-height: 1.5; }
.pl-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.pl-count div { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.pl-count b { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 8vw, 2.4rem); line-height: 1.1; }
.pl-count span { color: var(--dim); font-size: .8rem; }
.pl-verify { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 196, 61, .08); border: 1px solid rgba(255, 196, 61, .35); font-size: .9rem; }
.pl-ref { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 14px; border-radius: 16px; background: rgba(139, 92, 255, .08); border: 1px solid rgba(185, 161, 255, .3); font-size: .9rem; }
.pl-ref span { color: var(--dim); }
.pl-refrow { display: flex; gap: 8px; margin-top: 4px; }
.pl-refrow input { flex: 1; min-width: 0; }
.pl-acts { display: flex; gap: 16px; align-items: center; justify-content: center; }
button[data-cd] { color: #a6f0c6 !important; text-decoration: none !important; opacity: 1 !important; cursor: default; }
