/* ============================================================
   Behrendt WM — „Pitch & Aurora" Theme
   ============================================================ */
:root {
  --font-display: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;

  --bg: #060912;
  --txt: #eaf0ff;
  --muted: #8893b8;
  --muted-2: #6b76a0;

  --accent: #00e5a0;
  --accent-2: #1fb6ff;
  --grad: linear-gradient(135deg, #00e5a0 0%, #1fb6ff 100%);
  --gold: #ffd166;
  --silver: #cdd6f4;
  --bronze: #e0a878;
  --danger: #ff5d73;

  --glass: rgba(20, 28, 52, 0.45);
  --glass-2: rgba(28, 38, 68, 0.55);
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(0, 229, 160, 0.25), 0 10px 40px -8px rgba(0, 229, 160, 0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--txt);
  background: var(--bg);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
/* Aurora-Hintergrund */
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -2;
  background:
    radial-gradient(38% 46% at 14% 6%, rgba(0, 229, 160, 0.20), transparent 70%),
    radial-gradient(42% 50% at 86% 10%, rgba(31, 182, 255, 0.18), transparent 70%),
    radial-gradient(50% 55% at 50% 108%, rgba(124, 77, 255, 0.18), transparent 70%),
    radial-gradient(40% 40% at 70% 60%, rgba(255, 209, 102, 0.07), transparent 70%);
  filter: saturate(1.1);
  animation: aurora 20s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
}
/* feine Grain-Textur */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hidden { display: none !important; }

/* ---------- LOGO ---------- */
.logo-mark { width: 32px; height: 32px; display: block; filter: drop-shadow(0 0 9px rgba(0, 229, 160, 0.4)); }
.logo-mark.lg { width: 78px; height: 78px; filter: drop-shadow(0 0 22px rgba(0, 229, 160, 0.5)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- AUTH ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 28px 18px; gap: 20px;
}
.auth-card {
  width: 100%; max-width: 410px; padding: 34px 28px 30px; text-align: center;
  background: linear-gradient(180deg, rgba(30, 40, 72, 0.6), rgba(14, 20, 40, 0.5));
  border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow), var(--hi);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.auth-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-card h1 {
  font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1.05;
}
.auth-card h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-card h1 small {
  display: block; margin-top: 8px; font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase; color: var(--accent);
}
.auth-sub { color: var(--muted); font-size: 14px; margin: 12px 0 20px; line-height: 1.45; }
.auth-foot { color: var(--muted-2); font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 14px; }

form label { display: block; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 13px; letter-spacing: 0.2px; }
form input[type=text], form input[type=password] {
  width: 100%; margin-top: 7px; padding: 14px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 26, 0.6); color: var(--txt);
  font-size: 16px; font-family: var(--font-body); transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
form input::placeholder { color: var(--muted-2); }
form input:focus {
  outline: none; border-color: var(--accent); background: rgba(8, 12, 26, 0.85);
  box-shadow: 0 0 0 4px rgba(0, 229, 160, 0.13);
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  position: relative; overflow: hidden; width: 100%; padding: 15px; margin-top: 6px;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--grad); color: #032a20; font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: 0.2px;
  box-shadow: 0 10px 26px -10px rgba(0, 229, 160, 0.7);
  transition: transform 0.1s, filter 0.18s, box-shadow 0.18s;
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg); transition: left 0.55s ease;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 14px 32px -10px rgba(0, 229, 160, 0.85); }
.btn-primary:hover::after { left: 130%; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.error { color: var(--danger); font-size: 13px; margin: 2px 0 12px; font-weight: 600; }

/* ---------- TABS ---------- */
.tabs { display: flex; gap: 6px; }
.auth-tabs { background: rgba(8, 12, 26, 0.5); padding: 5px; border-radius: 14px; margin-bottom: 20px; border: 1px solid var(--line); }
.auth-tabs .tab { flex: 1; }
.tab {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  padding: 11px 15px; border-radius: 11px; font-size: 14px; font-weight: 700; white-space: nowrap;
  font-family: var(--font-body); transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.tab:hover { color: var(--txt); }
.auth-tabs .tab.active { background: var(--grad); color: #042a20; box-shadow: 0 6px 18px -8px rgba(0, 229, 160, 0.8); }
.main-tabs .tab.active {
  background: linear-gradient(180deg, rgba(0, 229, 160, 0.16), rgba(31, 182, 255, 0.10));
  color: var(--accent); box-shadow: inset 0 0 0 1px rgba(0, 229, 160, 0.35), 0 6px 18px -10px rgba(0, 229, 160, 0.5);
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; background: rgba(8, 11, 24, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.5px; white-space: nowrap; }
.brand-word b { margin-left: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-badge {
  font-size: 14px; color: var(--muted); font-weight: 700; font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  max-width: 46vw; min-width: 0; transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.user-badge .ub-ic { flex: none; }
.user-badge .ub-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.user-badge:hover { color: var(--txt); border-color: var(--accent); background: rgba(0, 229, 160, 0.08); }
.btn-ghost {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--muted);
  padding: 8px 13px; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 700; font-family: var(--font-body);
  transition: color 0.18s, border-color 0.18s;
}
.btn-ghost:hover { color: var(--txt); border-color: var(--danger); }

.main-tabs {
  padding: 12px 16px; gap: 8px; overflow-x: auto; position: sticky; top: 55px; z-index: 20;
  background: rgba(8, 11, 24, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.main-tabs::-webkit-scrollbar { display: none; }
main { max-width: 780px; margin: 0 auto; padding: 10px 16px 90px; }
.tabpane { display: none; }
.tabpane.active { display: block; animation: fadeUp 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- TIPPEN ---------- */
.pane-head { position: sticky; top: 116px; z-index: 10; padding: 8px 0 14px; }
.summary { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.summary b { color: var(--gold); font-weight: 800; }
.filterbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filterbar input[type=text] {
  flex: 1; min-width: 170px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line);
  background: rgba(8, 12, 26, 0.5); color: var(--txt); font-size: 14px; font-family: var(--font-body);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.filterbar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 229, 160, 0.12); }
.check { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.daygroup { margin-top: 20px; }
.dayhead {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1.5px; margin: 8px 4px 10px; display: flex; align-items: center; gap: 8px;
}

.match {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 11px; box-shadow: var(--shadow), var(--hi);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.match:hover { transform: translateY(-2px); border-color: var(--line-bright); }
.match.is-live { border-color: rgba(255, 93, 115, 0.6); box-shadow: 0 0 0 1px rgba(255, 93, 115, 0.4), 0 16px 40px -16px rgba(255, 93, 115, 0.5); }
.match-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.grp-pill {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.4px; color: var(--muted);
}
.match-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.team.away { justify-content: flex-end; text-align: right; }
.team .flag { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.team .tname { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-input { display: flex; align-items: center; gap: 7px; justify-content: center; }
.score-input input {
  width: 48px; height: 48px; text-align: center; font-size: 21px; font-weight: 800; font-family: var(--font-display);
  border-radius: 13px; border: 1px solid var(--line); background: rgba(8, 12, 26, 0.7); color: var(--txt);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.score-input input::-webkit-inner-spin-button, .score-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.score-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 229, 160, 0.14); }
.score-input input:disabled { opacity: 0.85; background: rgba(8, 12, 26, 0.45); }
.score-input .sep { color: var(--muted-2); font-weight: 800; font-family: var(--font-display); }

.match-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.result-line { font-size: 13px; color: var(--muted); }
.result-line b { color: var(--txt); font-size: 16px; font-family: var(--font-display); }
.badge-pts { font-weight: 800; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-family: var(--font-display); }
.badge-pts.p4 { background: rgba(0, 229, 160, 0.18); color: var(--accent); }
.badge-pts.p3 { background: rgba(255, 209, 102, 0.18); color: var(--gold); }
.badge-pts.p2 { background: rgba(255, 209, 102, 0.18); color: var(--gold); }
.badge-pts.p1 { background: rgba(136, 147, 184, 0.18); color: var(--muted); }
.badge-pts.p0 { background: rgba(255, 93, 115, 0.16); color: var(--danger); }
.locktag { font-size: 11.5px; color: var(--muted); }
.locktag.open { color: var(--accent); }
.locktag.bet-status { color: var(--muted); font-weight: 600; }
.locktag.bet-status.tipped { color: var(--accent); font-weight: 700; }
.btn-save {
  border: none; border-radius: 11px; padding: 10px 18px; cursor: pointer; font-weight: 700; font-size: 13px;
  font-family: var(--font-display); background: var(--grad); color: #042a20;
  box-shadow: 0 8px 20px -10px rgba(0, 229, 160, 0.8); transition: filter 0.15s, transform 0.1s, opacity 0.15s;
}
.btn-save:hover:not(:disabled) { filter: brightness(1.07); }
.btn-save:active:not(:disabled) { transform: translateY(1px); }
.btn-save:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.btn-save.saved { background: rgba(0, 229, 160, 0.12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(0, 229, 160, 0.35); }

/* LIVE */
.live-line { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.live-line b { font-size: 19px; color: var(--txt); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.live-badge {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 93, 115, 0.16);
  color: var(--danger); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.5px;
  padding: 3px 9px; border-radius: 999px; box-shadow: 0 0 14px -2px rgba(255, 93, 115, 0.5);
}
.live-badge.sm { font-size: 10px; padding: 2px 7px; box-shadow: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: livepulse 1.2s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.65); } }

/* MITSPIELER-TIPPS */
.all-bets { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 11px; }
.all-bets-head { font-family: var(--font-display); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; margin-bottom: 9px; }
.ab-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; }
.ab-row .ab-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-row.me { font-weight: 800; }
.ab-row.me .ab-name { color: var(--accent); }
.ab-score { font-weight: 800; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.ab-row .badge-pts { font-size: 11px; padding: 2px 8px; }
.ab-empty { color: var(--muted); font-size: 13px; font-style: italic; }

/* ---------- RANGLISTE ---------- */
.lb-table {
  width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); box-shadow: var(--shadow), var(--hi);
}
.lb-table th, .lb-table td { padding: 13px 10px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--line); }
.lb-table th { font-family: var(--font-display); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: rgba(255, 255, 255, 0.03); font-weight: 600; }
.lb-table td.name { text-align: left; font-weight: 700; }
.lb-table tr.me { background: rgba(0, 229, 160, 0.08); }
.lb-table tbody tr:first-child { background: linear-gradient(90deg, rgba(255, 209, 102, 0.12), transparent 70%); }
.lb-table tbody tr:first-child td.name { color: var(--gold); }
.lb-table tr:last-child td { border-bottom: none; }
.lb-pts { font-weight: 900; color: var(--accent); font-size: 17px; font-family: var(--font-display); }
.rank-medal { font-size: 17px; font-family: var(--font-display); font-weight: 700; }
.legend { margin-top: 18px; font-size: 13.5px; color: var(--muted); background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); padding: 16px 18px; border-radius: var(--radius); box-shadow: var(--hi); line-height: 1.5; }
.legend > b { font-family: var(--font-display); color: var(--txt); font-size: 14px; }
.legend ul { margin: 10px 0 0 4px; list-style: none; }
.legend li { margin: 7px 0; padding-left: 16px; position: relative; }
.legend li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.legend b { color: var(--txt); }

/* ---------- TABELLEN ---------- */
.group-card { background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 6px; margin-bottom: 15px; box-shadow: var(--shadow), var(--hi); }
.group-title { font-family: var(--font-display); font-weight: 700; padding: 9px 12px; color: var(--gold); letter-spacing: 0.5px; }
.std-table { width: 100%; border-collapse: collapse; }
.std-table th, .std-table td { padding: 9px 6px; font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }
.std-table th { font-family: var(--font-display); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.std-table td.tm { text-align: left; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.std-table td.tm .flag { font-size: 19px; }
.std-table tr:last-child td { border-bottom: none; }
.std-table tr.qualify td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.std-pts { font-weight: 900; color: var(--accent); font-family: var(--font-display); }

/* ---------- ADMIN ---------- */
.admin-block { background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow), var(--hi); }
.admin-block h3 { margin-bottom: 13px; font-size: 16px; font-family: var(--font-display); font-weight: 700; }
.admin-match { display: grid; grid-template-columns: 1fr auto auto; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-match:last-child { border-bottom: none; }
.admin-match .am-teams { font-size: 13px; font-weight: 600; }
.admin-match .am-teams small { color: var(--muted); font-weight: 400; }
.admin-score { display: flex; gap: 5px; align-items: center; }
.admin-score input { width: 42px; height: 40px; text-align: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(8, 12, 26, 0.7); color: var(--txt); font-size: 16px; font-weight: 700; font-family: var(--font-display); }
.admin-score input:focus { outline: none; border-color: var(--accent); }
.admin-users { list-style: none; }
.admin-users li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.admin-users li:last-child { border-bottom: none; }
.admin-users .tag-admin { color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.5px; }

.empty { text-align: center; color: var(--muted); padding: 44px 10px; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 6, 16, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeUp 0.2s ease; }
.modal-card { width: 100%; max-width: 390px; background: linear-gradient(180deg, rgba(30, 40, 72, 0.85), rgba(14, 20, 40, 0.9)); border: 1px solid var(--line-bright); border-radius: 22px; padding: 24px; box-shadow: var(--shadow), var(--hi); animation: rise 0.25s ease; }
.modal-card h3 { margin-bottom: 18px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.modal-card label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.modal-card input[type=text] { width: 100%; margin-top: 7px; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line); background: rgba(8, 12, 26, 0.7); color: var(--txt); font-size: 16px; font-family: var(--font-body); }
.modal-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 229, 160, 0.13); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn-ghost { flex: 1; padding: 14px; text-align: center; border-radius: 13px; }
.modal-actions .btn-primary { flex: 2; margin-top: 0; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: rgba(20, 28, 52, 0.92); color: var(--txt); border: 1px solid var(--accent);
  padding: 13px 20px; border-radius: 14px; font-weight: 700; font-size: 14px; z-index: 100;
  box-shadow: var(--shadow), 0 0 24px -6px rgba(0, 229, 160, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: toastIn 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.toast.err { border-color: var(--danger); box-shadow: var(--shadow), 0 0 24px -6px rgba(255, 93, 115, 0.5); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- MOBILE ---------- */
@media (max-width: 480px) {
  .topbar { padding: 11px 13px; gap: 8px; }
  .brand-word { font-size: 16px; }
  .logo-mark { width: 28px; height: 28px; }
  .topbar-right { gap: 6px; }
  .user-badge { font-size: 13px; padding: 7px 10px; max-width: none; gap: 4px; }
  .user-badge .ub-name { display: none; }
  .btn-ghost { font-size: 12.5px; padding: 7px 10px; }

  .main-tabs { padding: 10px 11px; gap: 4px; top: 51px; }
  .main-tabs .tab { padding: 9px 11px; font-size: 13px; }

  main { padding: 8px 11px 90px; }
  .match { padding: 12px 12px; }
  .match-row { gap: 7px; }
  .team { gap: 7px; }
  .team .tname { font-size: 13px; white-space: normal; overflow: visible; line-height: 1.15; overflow-wrap: break-word; word-break: normal; }
  .team .flag { font-size: 22px; }
  .score-input { gap: 5px; }
  .score-input input { width: 42px; height: 42px; font-size: 19px; }
  .pane-head { position: static; }

  .auth-card h1 { font-size: 30px; }
  .std-table th, .std-table td { padding: 8px 4px; font-size: 12px; }
  .lb-table th, .lb-table td { padding: 11px 6px; }
}
