:root {
  --bg: #071426;
  --bg-soft: #0b1d33;
  --card: #10243d;
  --card-strong: #132a48;
  --ink: #f7fbff;
  --muted: #9fb2c8;
  --line: #25415f;
  --blue: #4da3ff;
  --blue-dark: #2b7de9;
  --purple: #7657ff;
  --shadow: 0 14px 34px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top, #0d2b50 0, var(--bg) 36rem); color: var(--ink); padding-bottom: 88px; min-height: 100vh; }
button, select { font: inherit; color: inherit; }
a { color: var(--blue); cursor: pointer; pointer-events: auto; touch-action: manipulation; }
button { cursor: pointer; touch-action: manipulation; }
.app-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 14px; background: rgba(7,20,38,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(37,65,95,.8); }
h1,h2,p { margin: 0; }
h1 { font-size: 1.65rem; letter-spacing: -.04em; }
h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.eyebrow { color: #64b5ff; font-size: .72rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 3px; }
main { width: min(760px, 100%); margin: 0 auto; padding: 14px; }
.card,.event-card,.dialog-card { background: linear-gradient(180deg,var(--card-strong),var(--card)); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.controls { padding: 16px; }
.location-row { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.label,.radius-control label { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.radius-control select { border: 1px solid var(--line); background: #0b1d33; border-radius: 12px; padding: 9px 10px; color: var(--ink); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { white-space: nowrap; border: 1px solid var(--line); background: #0b1d33; color: var(--muted); padding: 9px 12px; border-radius: 999px; }
.filter:hover { border-color: #3b638b; color: var(--ink); }
.filter.active { color: #fff; background: linear-gradient(135deg,#2563eb,#3b82f6); border-color: #4da3ff; box-shadow: 0 0 0 1px rgba(77,163,255,.2) inset; }
.section-title { display: flex; justify-content: space-between; align-items: end; margin: 22px 4px 10px; }
.text-btn,.icon-btn,.nav-item { border: 0; background: transparent; }
.text-btn { color: var(--blue); font-weight: 700; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; background: #0b1d33; border: 1px solid var(--line); font-size: 1.35rem; color: var(--ink); }
.event-list { display: grid; gap: 10px; }
.event-card { overflow: hidden; padding: 0; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.event-card.priority { background: linear-gradient(140deg,#142b50,#171f46); border-color: #385a88; }
.event-card.away-game { background: linear-gradient(155deg,#2a1720,#321b24); border-color: #8a475b; box-shadow: 0 14px 34px rgba(34,8,16,.38); }
.event-card.away-game.priority { background: linear-gradient(145deg,#281a35,#3a1d2d); border-color: #9b5871; }
.event-card.away-game .team-badge { background: linear-gradient(135deg,#9f3157,#6f2747); }
.event-main { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 14px; }
.team-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg,#1d4ed8,#4338ca); box-shadow: 0 8px 18px rgba(0,0,0,.22); }
.event-card.priority .team-badge { background: linear-gradient(135deg,#2563eb,#6d28d9); }
.home-away-badge { display: inline-flex; align-items: center; width: fit-content; margin-top: 5px; padding: 3px 7px; border-radius: 999px; font-size: .65rem; font-weight: 900; letter-spacing: .09em; background: rgba(77,163,255,.13); color: #88c8ff; border: 1px solid rgba(77,163,255,.34); }
.away-game .home-away-badge { background: rgba(255,112,145,.12); color: #ff9bb4; border-color: rgba(255,112,145,.36); }
.event-meta { color: var(--muted); font-size: .82rem; margin-top: 4px; line-height: 1.35; }
.event-meta a { display: inline-block; position: relative; z-index: 2; text-decoration: underline; text-underline-offset: 2px; padding: 3px 0; }
.event-title { font-weight: 800; line-height: 1.2; color: #fff; }
.distance { color: #b8c9db; font-size: .8rem; white-space: nowrap; }
.event-actions { display: flex; border-top: 1px solid var(--line); background: rgba(3,12,24,.18); position: relative; z-index: 3; }
.away-game .event-actions { background: rgba(36,8,17,.22); border-top-color: #74384b; }
.event-actions a { flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 4; text-align: center; text-decoration: none; color: #70b8ff; font-size: .84rem; font-weight: 750; padding: 12px 6px; }
.event-actions a:hover,.event-actions a:focus-visible { background: rgba(77,163,255,.12); outline: none; }
.event-actions a:active { background: rgba(77,163,255,.2); }
.event-actions a + a { border-left: 1px solid var(--line); }
.event-actions .ticket-action { color: #ffd166; }
.empty { padding: 18px; text-align: center; color: var(--muted); background: #0b1d33; border: 1px dashed var(--line); border-radius: 16px; }
.count-pill { color: #b8c9db; background: #10243d; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; font-size: .78rem; }
.bottom-nav { position: fixed; bottom: 0; inset-inline: 0; height: 76px; display: grid; grid-template-columns: repeat(4,1fr); background: rgba(7,20,38,.96); backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 20; box-shadow: 0 -10px 30px rgba(0,0,0,.16); }
.nav-item { display: grid; place-items: center; align-content: center; gap: 2px; color: #7990a8; font-size: 1.1rem; }
.nav-item span { font-size: .72rem; }
.nav-item.active { color: var(--blue); }
dialog { border: 0; background: transparent; width: min(540px, calc(100% - 24px)); color: var(--ink); }
dialog::backdrop { background: rgba(0,5,12,.72); backdrop-filter: blur(5px); }
.dialog-card { padding: 18px; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; }
.team-choices { display: grid; gap: 10px; margin: 18px 0; }
.team-choice { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); background: #0b1d33; border-radius: 14px; padding: 12px; }
.primary-btn { width: 100%; border: 0; border-radius: 14px; background: linear-gradient(135deg,#2563eb,#3b82f6); color: #fff; font-weight: 800; padding: 13px; box-shadow: 0 10px 22px rgba(37,99,235,.22); }
@media (min-width:700px) { main { padding-top: 24px; } .event-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .followed .event-list { grid-template-columns: 1fr; } }