/* ====== Design tokens (team colors & spacing) ====== */
:root {
--tamu-maroon: #500000;  /* Texas A&M Aggie Maroon */
--nd-blue:    #0C2340;   /* Notre Dame Blue */
--nd-gold:    #C99700;   /* Standard Dome Gold */
--bg: #ffffff;
--bg-soft: #f6f6f6;
--text: #111111;
--muted: #6b7280;
--radius: 16px;
--shadow: 0 10px 30px rgba(0,0,0,.08);
--safe-top: env(safe-area-inset-top);
--safe-bottom: env(safe-area-inset-bottom);
}
@media (prefers-color-scheme: dark) {
:root {
    --bg: #0b0f17;
    --bg-soft: #0f1623;
    --text: #f6f7fb;
    --muted: #9aa4b2;
    --shadow: 0 10px 30px rgba(0,0,0,.4);
}
}

/* ====== Base ====== */
html, body { height: 100%; }
body {
margin: 0;
font: 16px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
color: var(--text);
background: var(--bg);
-webkit-font-smoothing: antialiased;
}
.app {
min-height: 100dvh;
display: grid;
grid-template-rows: auto auto 1fr auto;
}

/* ====== Hero header ====== */
.hero {
position: relative;
padding: calc(24px + var(--safe-top)) 16px 20px;
background: linear-gradient(135deg, var(--tamu-maroon) 0 50%, var(--nd-blue) 50% 100%);
color: white;
overflow: hidden;
box-shadow: var(--shadow);
}
.hero::after {
/* subtle texture shine */
content: "";
position: absolute; inset: 0;
background: radial-gradient(1200px 300px at 50% -200px, rgba(255,255,255,.18), transparent 60%);
pointer-events: none;
}
.hero-grid {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: end;
gap: 12px;
max-width: 780px;
margin: 0 auto;
}
.team {
display: grid;
gap: 2px;
text-transform: uppercase;
letter-spacing: .06em;
font-weight: 800;
line-height: 1.05;
text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.team--tamu { text-align: left; }
.team--nd { text-align: right; color: var(--nd-gold); }
.team span {
font-size: clamp(14px, 3.2vw, 16px);
opacity: .9;
font-weight: 700;
}
.team strong { font-size: clamp(26px, 8vw, 40px); }

.vs {
display: grid;
place-items: center;
width: clamp(64px, 12vw, 84px);
height: clamp(64px, 12vw, 84px);
border-radius: 999px;
background: radial-gradient(circle at 30% 30%, #fff6, #0000), var(--nd-gold);
color: #241a00;
font-weight: 900;
font-size: clamp(18px, 4vw, 22px);
box-shadow: 0 8px 30px rgba(0,0,0,.35);
border: 4px solid #fff8;
}
.subline {
text-align: center;
margin-top: 10px;
font-size: .95rem;
opacity: .9;
}

/* ====== Segmented toggle ====== */
.tabs {
position: sticky; top: 0; z-index: 10;
background: var(--bg);
padding: 10px 12px; padding-top: 8px;
border-bottom: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
display: grid; place-items: center;
}
.segmented {
display: grid; grid-auto-flow: column; gap: 6px;
background: var(--bg-soft);
padding: 6px; border-radius: 999px; box-shadow: var(--shadow);
}
.segmented button {
appearance: none; border: 0; background: transparent; color: var(--text);
padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.segmented button[data-active="true"] {
background: linear-gradient(180deg, #fff, #f0f0f0);
color: #111;
}
@media (prefers-color-scheme: dark) {
.segmented button[data-active="true"] { background: linear-gradient(180deg, #1b2332, #121a28); color: #fff; }
}

/* ====== Content & cards ====== */
main { max-width: 780px; margin: 0 auto; padding: 14px; padding-bottom: calc(16px + var(--safe-bottom)); }
.section { display: none; }
.section[data-visible="true"] { display: grid; gap: 12px; }

.card {
background: var(--bg);
border: 1px solid color-mix(in oklab, var(--text) 8%, transparent);
border-radius: var(--radius);
padding: 14px; box-shadow: var(--shadow);
}
.title { font-weight: 800; font-size: 1.05rem; }
.meta { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.actions { display: grid; grid-auto-flow: column; gap: 8px; margin-top: 10px; }
.btn {
display: inline-grid; place-items: center; gap: 6px; grid-auto-flow: column;
border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 700;
background: var(--bg-soft); color: var(--text); text-decoration: none; cursor: pointer;
}
.btn.primary { background: color-mix(in oklab, var(--nd-gold) 40%, #fff); }
.btn.maroon { background: color-mix(in oklab, var(--tamu-maroon) 35%, #fff); color: #fff; }
.btn.blue   { background: color-mix(in oklab, var(--nd-blue) 35%, #fff); color: #fff; }

.badge { font-size: .75rem; padding: 4px 8px; border-radius: 999px; background: var(--bg-soft); }

.filters { display: grid; grid-auto-flow: column; gap: 8px; overflow:auto; padding-bottom: 4px; }

.offline {
position: fixed; left: 50%; bottom: calc(14px + var(--safe-bottom)); transform: translateX(-50%);
background: #222; color: #fff; padding: 10px 12px; border-radius: 12px; font-weight: 700;
box-shadow: var(--shadow); display: none; z-index: 1000; font-size: .95rem;
}

footer { text-align: center; color: var(--muted); padding: 22px 12px 28px; }
footer a { color: inherit; }