:root {
  --bg: #07120c;
  --surface: rgba(14, 29, 21, 0.86);
  --surface-solid: #102218;
  --surface-2: rgba(22, 44, 32, 0.9);
  --border: rgba(74, 222, 128, 0.2);
  --border-strong: rgba(74, 222, 128, 0.45);
  --text: #eef8f1;
  --muted: #98b8a4;
  --accent: #22c55e;
  --accent-strong: #4ade80;
  --accent-soft: rgba(34, 197, 94, 0.16);
  --on-accent: #042210;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.16);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.16);
  --gold: #facc15;
  --gold-soft: rgba(250, 204, 21, 0.16);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(34, 197, 94, 0.22);
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(34, 197, 94, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 35% at 90% 25%, rgba(250, 204, 21, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(6, 17, 11, 0.72) 0%, rgba(7, 18, 12, 0.84) 45%, rgba(5, 13, 9, 0.92) 100%),
    url("/images/stadium-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); }
h1, h2, h3 { margin: 0 0 .55em; line-height: 1.2; }
h1 { font-size: 1.5rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 25;
  display: flex; align-items: center; gap: 1rem;
  padding: .65rem 20px;
  background: rgba(8, 19, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.22);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 900; font-size: 1.28rem; letter-spacing: .02em;
  text-decoration: none; color: #ffffff; white-space: nowrap;
}
.brand span {
  background: linear-gradient(90deg, #ffffff 0%, #86efac 65%, #facc15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; display: block; flex-shrink: 0;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.45);
}
.nav { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-weight: 700; white-space: nowrap; transition: all .18s ease;
}
.ui-ico { width: 17px; height: 17px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ui-ico-lg { width: 26px; height: 26px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.crown-ico { filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.55)); }
.inline-ico { display: inline-flex; align-items: center; gap: .4rem; }
.stat-label { display: inline-flex; align-items: center; gap: .38rem; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: .25rem; }
.cc-badge {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em;
  padding: .1rem .38rem; border-radius: 5px; margin-right: .35rem;
  background: rgba(74, 222, 128, 0.14); color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.3);
  vertical-align: middle;
}
.nav a:hover { background: rgba(74, 222, 128, 0.12); color: #ffffff; }
.nav a.active {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #031f0e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
}
.account { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.balance {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.38);
  color: #fef08a;
  padding: .28rem .7rem .28rem .35rem;
  border-radius: 999px;
}
.balance::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: url("/images/token-coin.jpg") center / cover no-repeat;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.55);
}

/* ---------- fixed side stadium art (wide desktop) ---------- */
.side-art {
  position: fixed; top: 53%; z-index: 1; pointer-events: none; user-select: none;
  transform: translateY(-50%);
  opacity: .95;
  display: none;
}
.side-art img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.7));
}
.side-left {
  width: clamp(240px, 21vw, 370px);
  left: max(6px, calc((100vw - 1220px) / 2 - 345px));
}
.side-left img { animation: floatBall 4.8s ease-in-out infinite; }
.side-right {
  width: clamp(200px, 17vw, 310px);
  right: max(10px, calc((100vw - 1220px) / 2 - 305px));
  display: none;
  flex-direction: column;
  gap: .85rem;
}
.side-right img:first-child { animation: floatBall 5.2s ease-in-out infinite reverse; }
.side-right .side-bonus {
  width: 92%; margin: 0 auto;
  animation: floatBall 5.8s ease-in-out infinite;
}
@media (min-width: 1420px) {
  .side-left { display: block; }
  .side-right { display: flex; }
}

/* ---------- layout ---------- */
.layout {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 1.15rem;
  max-width: 1220px; margin: 1.25rem auto; padding: 0 18px;
}
.main { min-width: 0; }
.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem;
  margin-bottom: 1rem;
}
.footer {
  max-width: 1220px; margin: 2.5rem auto 1.5rem; padding: 1rem 18px;
  color: var(--muted); font-size: .8rem;
  border-top: 1px solid rgba(74, 222, 128, 0.14);
}

/* ---------- hero & leaderboard banners (must come after .card) ---------- */
.card.hero-banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.85fr); gap: 1rem; align-items: center;
  padding: 1.5rem 1.5rem;
  border: 1px solid rgba(74, 222, 128, 0.4);
  background:
    radial-gradient(circle at 82% 45%, rgba(34, 197, 94, 0.35), transparent 52%),
    linear-gradient(112deg, rgba(7, 22, 14, 0.92) 0%, rgba(11, 34, 21, 0.80) 58%, rgba(16, 48, 29, 0.55) 100%),
    url("/images/stadium-bg.jpg") center / cover no-repeat;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hero-content { position: relative; z-index: 2; }
.hero-pill {
  display: inline-flex; align-items: center;
  font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  padding: .34rem 1.05rem .34rem .8rem; margin-bottom: .8rem;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.22) 0%, rgba(34, 197, 94, 0.14) 100%);
  color: #fef08a;
  border-left: 3px solid #facc15;
  border-top: 1px solid rgba(250, 204, 21, 0.35);
  border-bottom: 1px solid rgba(74, 222, 128, 0.35);
  border-right: none;
  border-radius: 3px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.14);
}
.hero-banner h1 {
  font-size: 1.75rem; font-weight: 900; color: #ffffff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
  margin-bottom: .45rem;
}
.hero-banner h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #4ade80, #facc15);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-banner p { color: #d1e7d9; margin: 0 0 1rem; font-size: .95rem; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.hero-token-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .84rem; font-weight: 700; color: #fef08a;
  background: rgba(10, 24, 16, 0.72); border: 1px solid rgba(250, 204, 21, 0.32);
  padding: .42rem .75rem; border-radius: 999px;
}
.hero-token-tag img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.hero-art {
  position: relative; z-index: 2; display: flex; justify-content: center; align-items: center;
}
.hero-art img {
  width: 100%; max-width: 170px; height: auto; display: block; border-radius: 28px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
  animation: floatBall 4.8s ease-in-out infinite;
}

.rank-banner {
  position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 1rem;
  border: 1px solid rgba(250, 204, 21, 0.42); padding: 1.35rem 1.45rem;
  background:
    linear-gradient(100deg, rgba(8, 19, 13, 0.92) 0%, rgba(10, 26, 17, 0.72) 56%, rgba(10, 26, 17, 0.32) 100%),
    url("/images/trophy-win.jpg") center 40% / cover no-repeat;
  color: #ffffff;
  box-shadow: var(--shadow);
}
.rank-banner h1 { margin: 0 0 .25rem; color: #fef08a; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.rank-banner p { margin: 0; color: #d8ece0; font-size: .92rem; }

@keyframes floatBall {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(1.3); }
}

/* ---------- controls ---------- */
button, .btn {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: .5rem .95rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
button:hover:not(:disabled) { border-color: var(--border-strong); transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: #4ade80; color: #03200f; font-weight: 800;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.35);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 6px 24px rgba(74, 222, 128, 0.5);
}
.btn-danger { color: var(--danger); }
.btn-sm { padding: .3rem .65rem; font-size: .84rem; }
.btn-gold {
  background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
  border-color: #fef08a; color: #1c1400; font-weight: 800;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
}
input, select, textarea {
  font: inherit; color: var(--text); background: rgba(7, 18, 12, 0.85);
  border: 1px solid var(--border); border-radius: 10px; padding: .55rem .75rem; width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: .6rem 0 .25rem; }
label.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: .2rem; }

.chips { display: flex; gap: .45rem; overflow-x: auto; padding: .2rem 0 .5rem; margin-bottom: .75rem; scrollbar-width: thin; }
.chip {
  padding: .42rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(14, 30, 21, 0.8); color: var(--muted); white-space: nowrap; font-weight: 700; font-size: .88rem;
  backdrop-filter: blur(8px);
}
.chip:hover { color: #ffffff; border-color: var(--accent); }
.chip.active {
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-color: #4ade80; color: #03200f;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.38);
}
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tabs button { border: none; background: none; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); }
.tabs button.active { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }

/* ---------- matches ---------- */
.day-head {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 800; color: #86efac; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  margin: 1.1rem 0 .55rem;
  padding: .25rem .7rem; border-radius: 999px;
  background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(74, 222, 128, 0.28);
}
.match {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-left: 3px solid #22c55e;
  border-radius: 14px;
  margin-bottom: .6rem;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.match:hover {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(34, 197, 94, 0.14);
  transform: translateY(-1px);
}
.match-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto auto; gap: .65rem; align-items: center; padding: .7rem .85rem; }
.match-time { font-weight: 800; font-variant-numeric: tabular-nums; color: #facc15; }
.match-league { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; margin-top: .1rem; }
.teams { min-width: 0; font-weight: 700; font-size: .96rem; }
.teams div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .08rem 0; }
.odds3 { display: grid; grid-template-columns: repeat(3, 3.9rem); gap: .35rem; }
.odd {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .35rem .25rem; border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  background: rgba(9, 22, 15, 0.85);
  font-variant-numeric: tabular-nums; min-height: 2.8rem; line-height: 1.15;
}
.odd small { font-size: .68rem; color: var(--muted); font-weight: 700; }
.odd b { font-size: .96rem; color: #ffffff; }
.odd:hover { border-color: #4ade80; background: rgba(34, 197, 94, 0.18); box-shadow: 0 0 12px rgba(34, 197, 94, 0.28); }
.odd.selected {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  border-color: #fef08a; color: #1c1400;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.45);
}
.odd.selected small, .odd.selected b { color: #1c1400; }
.more { min-width: 2.9rem; padding: .35rem .45rem; font-size: .8rem; color: #86efac; background: rgba(34, 197, 94, 0.12); border-color: rgba(74, 222, 128, 0.25); }
.markets { border-top: 1px solid var(--border); padding: .85rem; background: rgba(7, 17, 12, 0.72); }
.market { margin-bottom: .85rem; }
.market h3 { font-size: .82rem; color: #86efac; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.8rem, 1fr)); gap: .35rem; }
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--border); }

.score { font-weight: 900; font-variant-numeric: tabular-nums; text-align: center; min-width: 3.8rem; color: #facc15; font-size: 1.05rem; }
.score small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; }

/* ---------- bet slip ---------- */
.slip { position: sticky; top: 4.6rem; align-self: start; }
.slip-inner { padding: 0; overflow: hidden; border: 1px solid rgba(250, 204, 21, 0.32); }
.slip-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.05rem;
  background: linear-gradient(90deg, rgba(21, 128, 61, 0.45), rgba(14, 29, 21, 0.9));
  border-bottom: 1px solid var(--border); font-weight: 800; color: #ffffff;
}
.slip-count { background: #facc15; color: #1c1400; border-radius: 999px; padding: .05rem .55rem; font-size: .82rem; margin-left: .4rem; font-weight: 900; }
.slip-body { padding: .85rem 1.05rem; max-height: 55vh; overflow-y: auto; }
.slip-empty-art {
  display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: .75rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}
.slip-leg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; padding: .5rem 0; border-bottom: 1px dashed var(--border); }
.slip-leg:last-child { border-bottom: none; }
.slip-leg .t { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip-leg .s { font-weight: 700; color: #ffffff; }
.slip-leg .o { color: #facc15; }
.slip-leg .x { border: none; background: none; color: var(--muted); padding: .2rem .4rem; }
.slip-leg.changed .o { color: var(--warn); }
.slip-foot { padding: .85rem 1.05rem; border-top: 1px solid var(--border); background: rgba(8, 20, 14, 0.85); }
.slip-line { display: flex; justify-content: space-between; margin: .3rem 0; }
.slip-line b { color: #fef08a; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin: .45rem 0 .65rem; }
.quick button { padding: .35rem; font-size: .84rem; }
.slip-toggle { display: none; }

/* ---------- tickets ---------- */
.ticket { padding: .9rem 1.05rem; border-left: 3px solid var(--gold); }
.ticket-head { display: flex; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: .45rem; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.badge.won { background: var(--accent-soft); color: var(--accent-strong); border: 1px solid rgba(74, 222, 128, 0.35); }
.badge.lost { background: var(--danger-soft); color: var(--danger); }
.badge.void { background: var(--warn-soft); color: var(--warn); }
.leg { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) auto; gap: .5rem; padding: .35rem 0; font-size: .9rem; border-top: 1px solid var(--border); }
.leg .ico.won { color: var(--accent-strong); }
.leg .ico.lost { color: var(--danger); }
.leg .ico.void { color: var(--warn); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .55rem .55rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: .76rem; color: #86efac; text-transform: uppercase; letter-spacing: .05em; }
td.r, th.r { text-align: right; }
tr.me td { background: var(--accent-soft); }
.rank-1 { color: var(--gold); font-weight: 900; }
.pos { color: var(--accent-strong); }
.neg { color: var(--danger); }
.tag { font-size: .74rem; font-weight: 700; color: #fde047; border: 1px solid rgba(250, 204, 21, 0.35); background: rgba(250, 204, 21, 0.1); border-radius: 6px; padding: .05rem .35rem; margin-left: .35rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { background: rgba(10, 24, 16, 0.85); border: 1px solid var(--border); border-radius: 12px; padding: .7rem .9rem; }
.stat b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: #ffffff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .6rem; margin-bottom: 1rem; }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(2, 8, 5, 0.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.35rem; width: 100%; max-width: 410px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.error { color: var(--danger); font-size: .9rem; margin: .5rem 0 0; min-height: 1.2em; }
.notice { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 10px; padding: .65rem .85rem; font-size: .9rem; margin-bottom: 1rem; }
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 60;
  background: linear-gradient(135deg, #22c55e, #15803d); color: #03200f; padding: .7rem 1.15rem; border-radius: 12px; font-weight: 800;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); max-width: calc(100% - 32px);
}
.toast.err { background: #dc2626; color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .slip { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30; }
  .slip .card { margin: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .slip:not(.open) .slip-body, .slip:not(.open) .slip-foot { display: none; }
  .slip-toggle { display: inline; }
  .slip.empty-slip { display: none; }
  body { padding-bottom: 4rem; }
  .topbar { flex-wrap: wrap; gap: .45rem; }
  .nav { order: 3; flex-basis: 100%; }
  .account { margin-left: auto; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card.hero-banner { grid-template-columns: 1fr; text-align: left; }
  .hero-art img { max-width: 190px; }
}
@media (max-width: 520px) {
  .match-row { grid-template-columns: minmax(0, 1fr) auto; }
  .match-time { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: baseline; }
  .match-league { display: inline; }
  .teams { grid-column: 1 / -1; }
  .odds3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.admin-result input { width: 4.2rem; }
