/* GOONER STATION – dunkles Design mit rot-pinken Akzenten */
:root {
  --bg: #0a0a0e;
  --bg2: #101016;
  --card: #15151d;
  --card2: #1b1b25;
  --line: #262633;
  --line2: #33334a;
  --text: #f4f4f8;
  --muted: #9a9ab0;
  --dim: #6b6b80;
  --accent: #ff2d55;
  --accent2: #ff4fa3;
  --grad: linear-gradient(135deg, #ff2d55 0%, #ff4fa3 100%);
  --ok: #2fd38a;
  --warn: #ffb340;
  --err: #ff5a5a;
  --info: #58a6ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 64px;
  --side-w: 248px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; min-height: 100dvh; font-size: 15px; line-height: 1.45; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 750; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: .4rem 0; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .err { color: var(--err); }
.accent { color: var(--accent); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.hidden { display: none !important; }
.svg-icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }

/* Boot */
.boot { min-height: 100vh; display: grid; place-content: center; gap: 24px; justify-items: center; }
.boot-logo, .logo { font-weight: 900; letter-spacing: .06em; font-size: 1.6rem; }
.boot-logo span, .logo span { display: block; font-size: .55em; letter-spacing: .5em; color: var(--accent); margin-top: 2px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Layout */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { width: var(--side-w); flex: none; background: var(--bg2); border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sidebar .logo { padding: 4px 12px 22px; font-size: 1.35rem; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: background .15s, color .15s; position: relative; }
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(255,45,85,.18), rgba(255,79,163,.06)); color: var(--text); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); }
.nav-item .svg-icon { width: 20px; height: 20px; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding: 12px 12px 4px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 20px 10px; background: rgba(10,10,14,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .title { font-weight: 800; font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .logo-sm { display: none; font-weight: 900; letter-spacing: .05em; }
.topbar .logo-sm span { color: var(--accent); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--text); }
.icon-btn:hover { border-color: var(--line2); }
.icon-btn .svg-icon { width: 20px; height: 20px; }
.badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.content { padding: 22px 22px calc(40px + var(--safe-b)); max-width: 1180px; width: 100%; margin: 0 auto; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bottom-nav { display: none; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .topbar .logo-sm { display: block; }
  .content { padding: 16px 14px calc(var(--nav-h) + 28px + var(--safe-b)); }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(14,14,20,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--dim); position: relative; }
  .bottom-nav a .svg-icon { width: 23px; height: 23px; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav a.active .svg-icon { color: var(--accent); filter: drop-shadow(0 0 8px rgba(255,45,85,.5)); }
  .bottom-nav .badge { top: 6px; right: calc(50% - 22px); }
  h1 { font-size: 1.4rem; }
}

/* Karten & Raster */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.card.glow { background: radial-gradient(120% 140% at 100% 0%, rgba(255,45,85,.16), transparent 55%), var(--card); }
.card.hero { background: radial-gradient(120% 160% at 100% 0%, rgba(255,79,163,.28), transparent 50%), radial-gradient(90% 120% at 0% 100%, rgba(255,45,85,.22), transparent 55%), var(--card2); border-color: #3a2533; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h2, .card-h h3 { display: flex; align-items: center; gap: 8px; }
.card-link { font-size: .84rem; color: var(--accent2); font-weight: 600; white-space: nowrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .grid-auto { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.section-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 700; margin: 6px 0 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font-weight: 650; cursor: pointer; transition: transform .08s, filter .15s, background .15s, border-color .15s; white-space: nowrap; user-select: none; }
.btn:hover { border-color: #46465f; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(255,45,85,.28); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--card2); }
.btn.danger { background: rgba(255,90,90,.12); border-color: rgba(255,90,90,.35); color: #ff8a8a; }
.btn.success { background: rgba(47,211,138,.14); border-color: rgba(47,211,138,.4); color: #6ff0b4; }
.btn.sm { padding: 6px 11px; min-height: 34px; font-size: .86rem; border-radius: 10px; }
.btn.lg { padding: 14px 22px; min-height: 52px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 38px; min-height: 38px; }
.btn .svg-icon { width: 18px; height: 18px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 7px 13px; border-radius: 9px; font-weight: 650; cursor: pointer; }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: .82rem; font-weight: 650; color: var(--muted); }
.input, input:not([type]), input[type=text], input[type=password], input[type=number], input[type=email], input[type=search], input[type=tel], input[type=url], input[type=datetime-local], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.18); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.hint { font-size: .8rem; color: var(--dim); }
.error-box { background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.35); color: #ffb0b0; padding: 10px 12px; border-radius: 12px; font-size: .9rem; }
.info-box { background: rgba(88,166,255,.08); border: 1px solid rgba(88,166,255,.3); color: #bcd8ff; padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.warn-box { background: rgba(255,179,64,.08); border: 1px solid rgba(255,179,64,.35); color: #ffd89c; padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.ok-box { background: rgba(47,211,138,.08); border: 1px solid rgba(47,211,138,.35); color: #a8f3d0; padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--muted); user-select: none; }
.chip.on { background: rgba(255,45,85,.16); border-color: rgba(255,45,85,.6); color: var(--text); }
.chip img, .chip .avatar { width: 22px; height: 22px; }

/* Tags & Pills */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 750; letter-spacing: .02em; background: var(--card2); border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.tag.red { background: rgba(255,45,85,.15); border-color: rgba(255,45,85,.45); color: #ff8fa6; }
.tag.green { background: rgba(47,211,138,.12); border-color: rgba(47,211,138,.4); color: #6ff0b4; }
.tag.yellow { background: rgba(255,179,64,.12); border-color: rgba(255,179,64,.4); color: #ffcd7a; }
.tag.blue { background: rgba(88,166,255,.12); border-color: rgba(88,166,255,.4); color: #9cc8ff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(47,211,138,.18); }
.live { display: inline-flex; align-items: center; gap: 6px; color: #ff8fa6; font-weight: 800; font-size: .74rem; letter-spacing: .1em; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,45,85,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,45,85,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); } }

/* Avatare */
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .9rem; overflow: hidden; border: 2px solid var(--line); }
.avatar.sm { width: 28px; height: 28px; font-size: .72rem; border-width: 1px; }
.avatar.lg { width: 76px; height: 76px; font-size: 1.6rem; }
.avatar.xl { width: 110px; height: 110px; font-size: 2.2rem; }
.avatars { display: flex; }
.avatars .avatar { margin-left: -8px; border-color: var(--card); }
.avatars .avatar:first-child { margin-left: 0; }

/* Listen */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: rgba(255,255,255,.02); }
.empty { text-align: center; padding: 30px 14px; color: var(--muted); }
.empty .svg-icon { width: 40px; height: 40px; color: var(--dim); margin: 0 auto 10px; display: block; }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.qualify td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
tr.me td { background: rgba(255,45,85,.06); }

/* Statistik-Kacheln */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-size: 1.6rem; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .l { font-size: .78rem; color: var(--muted); font-weight: 600; }
.progress { height: 8px; background: var(--bg2); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 8px; transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* Dashboard */
.hello { font-size: 1.7rem; font-weight: 850; letter-spacing: -.02em; }
.clock { font-size: 2.6rem; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.quick a { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); font-weight: 650; font-size: .9rem; transition: transform .12s, border-color .15s; }
.quick a:hover { transform: translateY(-2px); border-color: rgba(255,45,85,.5); }
.quick a .svg-icon { width: 24px; height: 24px; color: var(--accent2); }
.event-date { width: 56px; flex: none; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); text-align: center; padding: 6px 0; }
.event-date b { display: block; font-size: 1.35rem; font-weight: 850; line-height: 1.05; }
.event-date small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent2); font-weight: 800; }
.rsvp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rsvp-btns .btn.on.yes { background: rgba(47,211,138,.18); border-color: var(--ok); color: #fff; }
.rsvp-btns .btn.on.maybe { background: rgba(255,179,64,.18); border-color: var(--warn); color: #fff; }
.rsvp-btns .btn.on.no { background: rgba(255,90,90,.18); border-color: var(--err); color: #fff; }

/* Getränke */
.drink-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.drink { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .12s; }
.drink.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.15); }
.drink .img { aspect-ratio: 4/3; background: radial-gradient(circle at 50% 30%, #2a2a3a, #15151d); display: grid; place-items: center; overflow: hidden; }
.drink .img img { width: 100%; height: 100%; object-fit: cover; }
.drink .img .svg-icon { width: 46px; height: 46px; color: #3d3d55; }
.drink .body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.drink .price { font-weight: 850; font-size: 1.05rem; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.stepper button { width: 38px; height: 36px; border-radius: 9px; border: 0; background: var(--card2); color: var(--text); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button:active { transform: scale(.94); }
.stepper b { font-size: 1.1rem; min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-bar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 15; margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 18px; background: rgba(27,27,37,.96); backdrop-filter: blur(12px); border: 1px solid rgba(255,45,85,.45); box-shadow: var(--shadow); animation: fadeIn .2s; }
@media (min-width: 901px) { .cart-bar { bottom: 16px; } }
.cart-bar .total { font-size: 1.3rem; font-weight: 850; }
.pay-amount { font-size: 2.8rem; font-weight: 900; letter-spacing: -.03em; text-align: center; }
.twint-qr { background: #fff; padding: 12px; border-radius: 14px; width: min(260px, 100%); margin: 0 auto; }
.status-open { color: var(--warn); } .status-reported { color: var(--info); } .status-confirmed { color: var(--ok); } .status-cancelled { color: var(--dim); text-decoration: line-through; }

/* Filme */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.movie { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.movie .cover { aspect-ratio: 2/3; background: linear-gradient(160deg, #2b1a26, #14141c); display: grid; place-items: center; overflow: hidden; position: relative; }
.movie .cover img { width: 100%; height: 100%; object-fit: cover; }
.movie .cover .svg-icon { width: 46px; height: 46px; color: #4b3442; }
.movie .body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.poll-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; overflow: hidden; text-align: left; width: 100%; color: var(--text); }
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(255,45,85,.28), rgba(255,79,163,.12)); transition: width .6s cubic-bezier(.2,.8,.2,1); z-index: 0; }
.poll-opt > *:not(.bar) { position: relative; z-index: 1; }
.poll-opt.mine { border-color: var(--accent); }
.poll-opt.winner { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(47,211,138,.15); }
.poll-opt img { width: 40px; height: 60px; object-fit: cover; border-radius: 6px; }
.poll-opt .pct { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Turniere */
.bracket { display: flex; gap: 26px; overflow-x: auto; padding: 6px 2px 12px; }
.bracket .round { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; min-width: 210px; }
.bracket .round h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent2); text-align: center; margin-bottom: 4px; }
.tie { background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.tie .t { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: .9rem; }
.tie .t + .t { border-top: 1px solid var(--line); }
.tie .t.win { background: rgba(47,211,138,.1); font-weight: 750; }
.tie .t .sc { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.tie .t.tbd { color: var(--dim); font-style: italic; }
.match { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.match .side { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.match .side.away { text-align: right; align-items: flex-end; }
.match .side b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.match .side small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.match .score { font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 70px; text-align: center; padding: 6px 8px; border-radius: 10px; background: var(--card2); }
.match .score.pending { color: var(--dim); font-size: .95rem; }
.match.clickable { cursor: pointer; } .match.clickable:hover { border-color: rgba(255,45,85,.5); }
.score-input { display: flex; align-items: center; justify-content: center; gap: 14px; }
.score-input input { width: 84px; text-align: center; font-size: 1.8rem; font-weight: 850; padding: 8px; }

/* Quiz */
.quiz-q { font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .answers { grid-template-columns: 1fr; } }
.answer { padding: 18px 16px; border-radius: 16px; border: 2px solid transparent; font-size: 1.05rem; font-weight: 750; cursor: pointer; text-align: left; color: #fff; display: flex; align-items: center; gap: 12px; min-height: 70px; transition: transform .1s, opacity .2s, border-color .2s; }
.answer:active { transform: scale(.98); }
.answer .k { width: 34px; height: 34px; border-radius: 10px; background: rgba(0,0,0,.25); display: grid; place-items: center; flex: none; font-weight: 900; }
.answer.a0 { background: #e0234e; } .answer.a1 { background: #2f6fec; } .answer.a2 { background: #d89a0c; } .answer.a3 { background: #1f9e62; }
.answer.dim { opacity: .35; } .answer.picked { border-color: #fff; } .answer.correct { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); opacity: 1; }
.answer[disabled] { cursor: default; }
.countdown { position: relative; height: 10px; border-radius: 10px; background: var(--bg2); overflow: hidden; border: 1px solid var(--line); }
.countdown i { position: absolute; inset: 0 auto 0 0; background: var(--grad); transition: width .25s linear; }
.big-num { font-size: 3rem; font-weight: 900; font-variant-numeric: tabular-nums; }

/* Glücksrad */
.wheel-wrap { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; }
.wheel-wrap canvas { width: 100%; height: 100%; display: block; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #fff; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); z-index: 2; }
.result-banner { text-align: center; font-size: 1.6rem; font-weight: 900; padding: 14px; border-radius: 16px; background: var(--grad); color: #fff; animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Modal & Toast */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fadeIn .15s; }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.6); padding: 20px; animation: modalIn .22s cubic-bezier(.2,.9,.3,1.2); }
.modal.wide { width: min(820px, 100%); }
@keyframes modalIn { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .modal-back { place-items: end center; padding: 0; }
  .modal { border-radius: 22px 22px 0 0; max-height: 92dvh; padding-bottom: calc(20px + var(--safe-b)); animation: sheetIn .25s cubic-bezier(.2,.9,.3,1); }
  @keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
#toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 18px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100% - 24px)); }
@media (min-width: 901px) { #toasts { bottom: 24px; } }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; background: #20202b; border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 600; display: flex; gap: 10px; align-items: center; animation: fadeIn .2s; width: 100%; }
.toast.ok { border-color: rgba(47,211,138,.5); } .toast.err { border-color: rgba(255,90,90,.6); }
.toast .svg-icon { width: 20px; height: 20px; }
.toast.ok .svg-icon { color: var(--ok); } .toast.err .svg-icon { color: var(--err); }

/* Auth */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(60% 50% at 80% 0%, rgba(255,79,163,.18), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(255,45,85,.16), transparent 60%), var(--bg); }
.auth-card { width: min(420px, 100%); }
.auth .logo { text-align: center; font-size: 2.1rem; margin-bottom: 24px; }
.recovery { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1px dashed var(--accent); user-select: all; }

/* Benachrichtigungen */
.notif { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); align-items: flex-start; }
.notif.unread { border-color: rgba(255,45,85,.45); background: linear-gradient(90deg, rgba(255,45,85,.08), transparent 50%), var(--card); }
.notif .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card2); flex: none; color: var(--accent2); }
.notif .ic .svg-icon { width: 20px; height: 20px; }

/* QR */
.qr-box { background: #fff; border-radius: 16px; padding: 14px; width: min(280px, 100%); margin: 0 auto; }
.qr-box svg { width: 100%; height: auto; display: block; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; }

/* TV-Modus */
body.tv-mode { overflow: hidden; }
.tv { position: fixed; inset: 0; background: radial-gradient(70% 60% at 100% 0%, rgba(255,79,163,.16), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(255,45,85,.14), transparent 60%), #07070a; color: #fff; display: flex; flex-direction: column; padding: 2.2vw 3vw; gap: 1.6vw; font-size: 1.5vw; }
.tv-top { display: flex; align-items: center; gap: 2vw; }
.tv-top .logo { font-size: 2.2vw; }
.tv-top .tv-clock { margin-left: auto; font-size: 3.4vw; font-weight: 900; font-variant-numeric: tabular-nums; }
.tv-top .tv-date { font-size: 1.3vw; color: var(--muted); text-align: right; }
.tv-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.6vw; animation: fadeIn .5s; }
.tv h1 { font-size: 3vw; } .tv h2 { font-size: 2vw; } .tv h3 { font-size: 1.6vw; }
.tv .card { border-radius: 1.2vw; padding: 1.5vw; }
.tv table { font-size: 1.45vw; } .tv th { font-size: 1vw; } .tv td { padding: .8vw .6vw; }
.tv .tie .t { font-size: 1.2vw; padding: .6vw .8vw; } .tv .bracket .round { min-width: 16vw; } .tv .bracket .round h4 { font-size: 1vw; }
.tv .match { padding: 1vw; border-radius: 1vw; } .tv .match .score { font-size: 2vw; min-width: 7vw; }
.tv .quiz-q { font-size: 3vw; } .tv .answer { font-size: 1.9vw; min-height: 7vw; border-radius: 1.2vw; } .tv .answer .k { width: 3vw; height: 3vw; }
.tv .poll-opt { padding: 1vw 1.3vw; font-size: 1.6vw; border-radius: 1vw; }
.tv .wheel-wrap { width: min(36vw, 62vh); }
.tv .result-banner { font-size: 3vw; }
.tv-controls { position: fixed; right: 14px; bottom: 14px; display: flex; gap: 8px; opacity: 0; transition: opacity .3s; }
.tv:hover .tv-controls { opacity: 1; }
.tv-ticker { font-size: 1.2vw; color: var(--muted); display: flex; gap: 2vw; align-items: center; }
.tv-big-center { flex: 1; display: grid; place-items: center; text-align: center; }

/* Sonstiges */
.kbd { font-family: ui-monospace, monospace; background: var(--card2); border: 1px solid var(--line2); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; margin-top: 1px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 650; white-space: nowrap; font-size: .9rem; }
.tabs a.on { background: rgba(255,45,85,.15); border-color: rgba(255,45,85,.55); color: var(--text); }
.offline-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: #5a1d28; color: #ffd0d8; text-align: center; font-size: .84rem; font-weight: 650; padding: calc(6px + var(--safe-t)) 10px 6px; }
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; min-height: 80px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
