/* =====================================================================
   NCAA Bowl Pool - app.css  (mobile first, light + dark)
   ===================================================================== */
:root {
  --navy: #07090f;
  --navy-2: #151a26;
  --gold: #facc15;
  --gold-2: #fde047;
  --red: #e11d2e;
  --bg: #07090f;
  --card: #0f1320;
  --card-2: #161b2b;
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --line: #1f2637;
  --ok: #22c55e;
  --ok-bg: #0f2e1c;
  --bad: #f87171;
  --bad-bg: #3a1414;
  --warn: #fbbf24;
  --warn-bg: #3a2a0a;
  --live: #ef4444;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .35);
  --tabbar-h: 64px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bebas Neue", Oswald, Impact, sans-serif;
  --cond: Oswald, "Arial Narrow", sans-serif;
  --led: "Share Tech Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.45;
  background: radial-gradient(120% 40% at 50% 0%, #121a2e 0%, var(--bg) 60%) fixed, var(--bg); color: var(--ink);
  padding-top: env(safe-area-inset-top);
}
body.has-nav { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .4em; font-family: var(--display); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.45rem; }
img { max-width: 100%; }
code { font-size: .85em; background: rgba(100, 116, 139, .12); padding: .1em .35em; border-radius: 6px; }
.ico { width: 22px; height: 22px; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.strong { font-weight: 700; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: linear-gradient(180deg, #151a26, #07090f); color: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-size: 1.6rem; letter-spacing: .08em; line-height: 1; }
.brand b { color: var(--gold); font-weight: 400; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { display: flex; align-items: center; gap: 6px; color: #a1a1aa; padding: 8px 12px; border-radius: 999px; font-family: var(--display); font-size: 1.1rem; letter-spacing: .06em; }
.topnav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; color: #fff; }
.topnav a.active { background: var(--gold); color: #000; }
.topnav .ico { width: 18px; height: 18px; }
.me-link { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.me-link:hover { text-decoration: none; }
.me-name { display: none; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar > .btn { margin-left: auto; }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #0b0e17; border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-2); font-family: var(--display); font-size: .95rem; letter-spacing: .06em; border-top: 3px solid transparent; }
.tab:hover { text-decoration: none; }
.tab.active { color: var(--gold); border-top-color: var(--gold); }
@media (min-width: 900px) {
  .topnav { display: flex; }
  .me-name { display: inline; }
  .tabbar { display: none; }
  body.has-nav { padding-bottom: 0; }
}

/* ---------- layout ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.page-head { margin: 8px 0 16px; }
.page-head p { margin: .2em 0 0; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); }
.grid-2 > .card { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.table-card { padding: 0; overflow: hidden; }
.table-card > .card-head { padding: 16px 18px 6px; }
.table-card > .inline-form, .table-card > p { padding: 0 18px 16px; }
.foot { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding: 24px 16px; color: var(--ink-2); font-size: .85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .06em; font-weight: 400; cursor: pointer; text-decoration: none;
  transition: transform .06s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold); color: #000; box-shadow: 0 0 18px rgba(250, 204, 21, .25); }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(100, 116, 139, .1); }
.topbar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-sm { padding: 7px 14px; font-size: 1rem; }
.btn-xs { padding: 3px 10px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.btn-row form { margin: 0; }
.pill { border: 0; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }

/* ---------- forms ---------- */
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; }
.form-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: .9rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.inline-form label { display: flex; align-items: center; gap: 8px; }
form.inline { display: inline; }

/* ---------- flash ---------- */
.flash { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-weight: 600; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-info { background: rgba(96, 165, 250, .12); color: #93c5fd; }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 0 auto; }
.auth-hero { text-align: center; padding: 18px 0 8px; }
.auth-hero img { border-radius: 22px; box-shadow: var(--shadow); }
.auth-hero h1 { margin: 12px 0 2px; }
.pay-note { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; text-align: center; }

/* ---------- home ---------- */
.hero {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #1a0a0c 0%, #151a26 45%, #0f1320 100%); color: #fff; border: 1px solid #2a1418;
  position: relative; overflow: hidden;
}
.hero .muted { color: #b6c3d8; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--gold-2); margin: 0 0 4px; font-weight: 700; }
.hero h1 { margin: 0 0 4px; }
.hero-stat { margin: 0; color: #dbe4f3; }
.hero-stat .big { font-family: var(--display); font-size: 3rem; line-height: .9; color: var(--gold); text-shadow: 0 0 18px rgba(250, 204, 21, .45); }
.countdown { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
@media (max-width: 599px) { .countdown { align-items: flex-start; text-align: left; } }
.cd-value { font-family: var(--led); font-size: 1.8rem; color: var(--gold); background: #000; padding: 2px 10px; border-radius: 8px; text-shadow: 0 0 10px rgba(250, 204, 21, .6); }
.cta, .notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cta p { margin: 0; }
.notice { background: var(--warn-bg); color: var(--warn); border-color: transparent; flex-direction: column; align-items: flex-start; gap: 2px; }
.notice a { color: inherit; text-decoration: underline; }

.pod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pod-row a {
  display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto 6px; column-gap: 12px; row-gap: 6px;
  align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--ink);
}
.pod-row a:hover { text-decoration: none; filter: brightness(.98); }
.pod-badge { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--led); font-size: 1.3rem; background: #000; color: var(--gold); border: 1px solid #3f3f46; }
.pod-meta { display: flex; flex-direction: column; }
.pod-status { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line); }
.pod-row.warn .pod-status { background: var(--warn-bg); color: var(--warn); }
.pod-row.ok .pod-status { background: var(--ok-bg); color: var(--ok); }
.pod-row.done .pod-badge { color: #52525b; }
.pod-bar { grid-column: 2 / span 2; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pod-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.pod-row.ok .pod-bar span { background: var(--ok); }

.mini-standings { list-style: none; margin: 0; padding: 0; }
.mini-standings li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.mini-standings li:last-child { border-bottom: 0; }
.mini-standings li.me { background: rgba(250, 204, 21, .1); border-radius: 10px; }
.mini-standings .rank { width: 22px; text-align: center; font-weight: 800; color: var(--ink-2); }
.mini-standings .team { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-standings .pts { font-family: var(--led); color: var(--gold); }

/* ---------- avatars ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.avatar.xs { width: 22px; height: 22px; }
.avatar.sm { width: 30px; height: 30px; }
.avatar.xl { width: 96px; height: 96px; }
.avatar-txt { display: inline-grid; place-items: center; font-weight: 800; font-size: .8em; background: var(--gold); color: #000; }
.avatar-txt.sm { font-size: .72rem; }
.avatar-txt.xs { font-size: .6rem; }
.avatar-txt.xl { font-size: 2rem; }
.avatar-edit { display: flex; gap: 16px; align-items: center; }

/* ---------- segmented control / chips ---------- */
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-btn { border: 0; background: transparent; color: var(--ink-2); font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; padding: 5px 14px; border-radius: 999px; cursor: pointer; }
.seg-btn:hover { text-decoration: none; color: var(--ink); }
.seg-btn.active { background: var(--gold); color: #000; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink-2); margin: 2px 4px 2px 0; }
.chip.gold { background: var(--gold); color: #000; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 4px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.ok-dot, .bad-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.bad-dot { background: var(--bad); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-family: var(--display); font-weight: 400; font-size: .95rem; letter-spacing: .08em; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card-2); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.me td { background: rgba(250, 204, 21, .08); }
.tbl td.strong { font-family: var(--led); color: var(--gold); font-weight: 400; font-size: 1.05rem; }
.tbl tr.muted td { opacity: .55; }
.tbl.compact td, .tbl.compact th { padding: 7px 10px; }
.tbl input, .tbl select { padding: 6px 8px; border-radius: 8px; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.team-cell > .avatar { vertical-align: middle; margin-right: 10px; }
.team-cell > span { display: inline-flex; flex-direction: column; vertical-align: middle; min-width: 0; }
.tbl td.team-cell { min-width: 150px; }
.rank { font-weight: 800; }
.history { display: flex; flex-wrap: wrap; }
.show-sm { display: block; }
@media (max-width: 699px) { .hide-sm { display: none; } }
@media (min-width: 700px) { .show-sm { display: none; } }
@media (max-width: 459px) { .hide-xs { display: none; } }

.pod-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .pod-cards { grid-template-columns: 1fr 1fr; } }
.pod-cards .card { margin: 0; }
.bonus-list { list-style: none; margin: 0; padding: 0; }
.bonus-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.bonus-list .pts { margin-left: auto; font-weight: 700; }

.prose { line-height: 1.6; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.formula { font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 10px 14px; border-radius: 10px; display: inline-block; }
.steps { margin: 0; padding-left: 20px; line-height: 1.7; }
.plain { list-style: none; padding: 0; margin: 0 0 16px; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.actions { text-align: right; }
.menu { position: relative; display: inline-block; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: 110%; z-index: 10; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 180px; }
.menu-body form { margin: 0; }
.menu-body button { display: block; width: 100%; text-align: left; border: 0; background: transparent; font: inherit; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.menu-body button:hover { background: var(--bg); }
.menu-body .danger { color: var(--bad); }
.raw { white-space: pre-wrap; font-size: .78rem; max-height: 480px; overflow: auto; background: var(--bg); padding: 12px; border-radius: 10px; }
.loading { padding: 40px; text-align: center; color: var(--ink-2); }

/* ---------- live ticker ---------- */
.ticker { display: flex; align-items: center; height: 30px; background: var(--red); overflow: hidden; white-space: nowrap; position: sticky; top: 56px; z-index: 25; }
.ticker[hidden] { display: none; }
.tk-tag { flex: none; height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #000; color: var(--gold); font-family: var(--display); font-size: 1.1rem; letter-spacing: .08em; position: relative; z-index: 1; }
.tk-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
.tk-track { display: inline-flex; gap: 34px; padding-left: 18px; animation: tick var(--tk-dur, 40s) linear infinite; font-family: var(--cond); font-weight: 600; font-size: .85rem; letter-spacing: .04em; color: #fff; }
.tk-track a { color: #fff; }
.tk-track b { color: var(--gold); font-family: var(--led); font-weight: 400; }
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- game cards (scores / home) ---------- */
.game-grid, .day-games { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .game-grid, .day-games { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .day-games { grid-template-columns: 1fr 1fr 1fr; } }
.day-head { margin: 26px 0 10px; font-family: var(--display); font-size: 1.3rem; letter-spacing: .1em; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); display: block; transition: transform .15s, border-color .15s; }
.gcard:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-2px); }
.gcard.state-in { border-color: rgba(239, 68, 68, .7); box-shadow: 0 0 0 1px rgba(239, 68, 68, .3), 0 0 24px rgba(239, 68, 68, .18); }
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card-2); font-family: var(--cond); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.g-bowl { display: flex; align-items: center; gap: 8px; color: #e4e4e7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.g-bowl img { width: 26px; height: 26px; object-fit: contain; flex: none; background: #fff; border-radius: 6px; padding: 2px; }
.g-status { white-space: nowrap; font-weight: 600; }
.state-in .g-status { color: var(--live); display: flex; align-items: center; gap: 6px; }
.state-in .g-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: blink 1.2s infinite; }
.g-team { display: grid; grid-template-columns: 42px 1fr 24px auto; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc, #334155) 80%, #000) 0%, color-mix(in srgb, var(--tc, #334155) 25%, var(--card)) 55%, var(--card) 100%); }
.g-team + .g-team { border-top: 1px solid rgba(0, 0, 0, .35); }
.g-team img, .g-logo-ph { width: 38px; height: 38px; object-fit: contain; }
.g-team img { background: #fff; border-radius: 50%; padding: 3px; box-sizing: border-box; }
.g-logo-ph { border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: .85rem; letter-spacing: .02em; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.g-name { font-family: var(--cond); font-weight: 600; font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.g-name small { font-weight: 400; color: rgba(255, 255, 255, .7); margin-left: 6px; font-size: .78rem; }
.g-score { font-family: var(--led); font-size: 1.9rem; line-height: 1; color: var(--gold); background: #000; border-radius: 6px; padding: 3px 8px; min-width: 2.2ch; text-align: center; text-shadow: 0 0 10px rgba(250, 204, 21, .7); }
.g-score:empty { visibility: hidden; }
.g-team.loser .g-score { color: #a16207; text-shadow: none; }
.g-team.loser .g-name { color: rgba(255, 255, 255, .55); }
.g-poss { width: 24px; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.g-poss .ico { width: 18px; height: 18px; filter: drop-shadow(0 0 4px rgba(250, 204, 21, .8)); }
.g-wp { height: 6px; display: flex; background: var(--line); }
.g-wp span { display: block; height: 100%; transition: width .8s ease; }
.g-last { padding: 7px 12px 0; font-size: .8rem; color: #d4d4d8; }
.g-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 9px 12px 11px; font-size: .78rem; }
.g-line { color: var(--ink-2); margin-right: auto; font-family: var(--cond); letter-spacing: .04em; }
.g-line b { color: var(--gold); font-family: var(--led); font-weight: 400; }
.mp { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #1a2032; font-family: var(--cond); font-weight: 600; letter-spacing: .03em; }
.mp.win { background: var(--ok-bg); color: #4ade80; box-shadow: 0 0 10px rgba(34, 197, 94, .25); }
.mp.loss { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; }
.mp.none { color: var(--bad); background: var(--bad-bg); }

/* score change flash + touchdown banner */
@keyframes flashScore { 0% { background: var(--gold); color: #000; transform: scale(1.25); box-shadow: 0 0 28px var(--gold); } 100% { transform: scale(1); } }
.g-score.flash, .gd-score.flash { animation: flashScore 1.4s ease-out; }
@keyframes rowFlash { 0%, 100% { filter: none; } 20%, 60% { filter: brightness(1.6) saturate(1.3); } }
.g-team.flash { animation: rowFlash 1.4s ease-out; }
.td-banner { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%) skewX(-8deg); z-index: 60; pointer-events: none;
  font-family: var(--display); font-size: clamp(3rem, 14vw, 7rem); letter-spacing: .06em; color: var(--gold); background: #000; padding: 6px 28px; border: 4px solid var(--gold);
  text-shadow: 0 0 24px rgba(250, 204, 21, .8); box-shadow: 0 0 60px rgba(250, 204, 21, .5); animation: tdIn 2.4s ease-out forwards; white-space: nowrap; }
.td-banner small { display: block; font-size: .28em; letter-spacing: .12em; color: #fff; text-align: center; text-shadow: none; }
@keyframes tdIn { 0% { opacity: 0; transform: translate(-50%, -50%) skewX(-8deg) scale(.4); } 12% { opacity: 1; transform: translate(-50%, -50%) skewX(-8deg) scale(1.1); } 20% { transform: translate(-50%, -50%) skewX(-8deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) skewX(-8deg) scale(1); } }
.win-pop { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); z-index: 61; pointer-events: none; text-align: center; animation: winUp 3s ease-out forwards; }
.win-pop b { display: block; font-family: var(--led); font-size: clamp(2.4rem, 11vw, 4.5rem); color: #4ade80; text-shadow: 0 0 24px rgba(74, 222, 128, .8); }
.win-pop span { display: inline-block; max-width: 86vw; font-family: var(--display); font-size: 1.4rem; letter-spacing: .1em; color: #fff; background: rgba(0, 0, 0, .8); padding: 4px 14px; border-radius: 8px; }
@keyframes winUp { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px); } }
.confetti { position: fixed; inset: 0; z-index: 59; pointer-events: none; }

/* sound toggle */
.snd { border: 1px solid #3f3f46; background: transparent; color: #a1a1aa; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.snd.on { color: #000; background: var(--gold); border-color: var(--gold); }
.snd .ico { width: 18px; height: 18px; }

/* ---------- game detail ---------- */
.gd-head { text-align: center; padding: 0; overflow: hidden; }
.gd-bowl { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; background: var(--card-2); font-family: var(--display); font-size: 1.3rem; letter-spacing: .08em; }
.gd-bowl img { height: 40px; background: #fff; border-radius: 8px; padding: 3px; }
.gd-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.gd-team { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 8px; color: #fff; }
.gd-team strong { font-family: var(--display); font-size: 1.5rem; letter-spacing: .06em; font-weight: 400; }
.gd-team .muted { color: rgba(255, 255, 255, .75); }
.gd-team img, .gd-team .g-logo-ph { width: 72px; height: 72px; }
.gd-team img { background: #fff; border-radius: 50%; padding: 5px; box-sizing: border-box; }
.gd-mid { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 10px; background: #000; min-width: 120px; }
.gd-score { font-family: var(--led); font-size: 2.8rem; color: var(--gold); text-shadow: 0 0 14px rgba(250, 204, 21, .7); line-height: 1; padding: 2px 6px; border-radius: 6px; }
.gd-vs { font-family: var(--display); color: var(--ink-2); font-size: 2rem; }
.gd-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; color: var(--ink-2); font-size: .85rem; padding: 10px 12px 4px; }
.ck { font-weight: 800; }
.ck.win { color: #4ade80; }
.ck.loss { color: var(--bad); }

/* ---------- picks ---------- */
.picks-app { position: relative; }
.pk-bar {
  position: sticky; top: 86px; z-index: 20; margin: 0 -16px 14px; padding: 10px 16px;
  background: rgba(7, 9, 15, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.pk-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.pk-tabs::-webkit-scrollbar { display: none; }
.pk-tab { flex: none; border: 1px solid #262d40; background: transparent; color: #d4d4d8; border-radius: 999px; padding: 5px 14px; font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; cursor: pointer; text-align: left; line-height: 1.1; }
.pk-tab small { display: block; font-family: var(--font); letter-spacing: 0; color: var(--ink-2); font-size: .66rem; }
.pk-tab.active { background: var(--gold); color: #000; border-color: var(--gold); }
.pk-tab.active small { color: #3b2f0a; }
.pk-tab.full::after { content: " \2713"; color: var(--ok); }
.pk-tab.active.full::after { color: #14532d; }
.pk-status { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; flex-wrap: wrap; }
.pk-status strong { font-family: var(--led); color: var(--gold); font-weight: 400; font-size: 1rem; }
.pk-save { font-family: var(--cond); font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.pk-save.saving { color: var(--warn); }
.pk-save.saved { color: var(--ok); }
.pk-save.error { color: var(--bad); }
.pk-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .pk-grid { grid-template-columns: 1fr 1fr; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 0 14px; overflow: hidden; }
.pcard.complete { border-color: rgba(34, 197, 94, .5); }
.pcard.locked { opacity: .8; }
.pc-head { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--card-2); margin-bottom: 4px; }
.pc-head > div:first-child { display: flex; gap: 10px; align-items: center; min-width: 0; }
.pc-head img.bowl-logo { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; flex: none; }
.pc-bowl { font-family: var(--display); font-size: 1.3rem; letter-spacing: .05em; line-height: 1; }
.pc-sub { font-size: .72rem; color: var(--ink-2); font-family: var(--cond); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.pc-gv { text-align: right; font-size: .62rem; color: var(--ink-2); white-space: nowrap; letter-spacing: .1em; font-family: var(--cond); }
.pc-gv strong { display: block; color: var(--gold); font-family: var(--led); font-weight: 400; font-size: 1.25rem; letter-spacing: 0; position: relative; overflow: hidden; }
.pc-gv strong::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: shine 3.4s ease-in-out infinite; }
@keyframes shine { 0% { transform: translateX(-130%); } 60%, 100% { transform: translateX(260%); } }
.pc-label { font-size: .7rem; letter-spacing: .14em; color: #71717a; font-family: var(--cond); margin: 10px 12px 6px; display: flex; justify-content: space-between; text-transform: uppercase; }
.pc-label span:last-child { color: var(--gold); letter-spacing: .06em; }
.pc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px;
  border: 2px solid transparent; border-radius: 12px; background: #1a2032; color: #fff;
  font-family: var(--cond); font-weight: 600; cursor: pointer; text-align: left; transition: all .2s;
}
.opt img, .opt .g-logo-ph { width: 38px; height: 38px; object-fit: contain; flex: none; }
.opt img { background: #fff; border-radius: 50%; padding: 3px; box-sizing: border-box; }
.opt .opt-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.opt .opt-txt small { font-weight: 400; color: rgba(255, 255, 255, .7); font-size: .74rem; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt.ats .opt-txt small { font-family: var(--led); color: var(--gold); font-size: .95rem; }
.opt.on { border-color: var(--gold); background: linear-gradient(135deg, var(--team, #334155), #000); box-shadow: 0 0 18px color-mix(in srgb, var(--team, #facc15) 70%, transparent); }
.opt.on::after { content: "\2713"; position: absolute; top: 5px; right: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #000; font-size: .75rem; font-weight: 900; display: grid; place-items: center; }
.opt:disabled { cursor: default; }
.opt:not(:disabled):not(.on):hover { background: #222a40; }
.conf-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.cv { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; position: relative; transition: transform .15s, filter .15s; }
.cv img { width: 46px; height: 46px; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.cv:not(:disabled):not(.on):hover { transform: translateY(-3px); }
.cv:not(:disabled):not(.on):hover img { filter: drop-shadow(0 0 8px rgba(132, 255, 64, .6)); }
.cv.used img { opacity: .25; filter: none; }
.cv.used { cursor: not-allowed; }
.cv.on { transform: translateY(-4px) scale(1.12); animation: popIn .35s ease-out; }
.cv.on img { filter: drop-shadow(0 0 10px rgba(132, 255, 64, .9)); }
@keyframes popIn { 0% { transform: scale(.6); } 70% { transform: scale(1.2); } 100% { transform: translateY(-4px) scale(1.12); } }
.cv:disabled { cursor: default; }
.pcard.locked .cv:not(.on) img { opacity: .35; }
.ball-sm { width: 20px; height: 20px; vertical-align: middle; margin-right: 2px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.tv { display: inline-flex; align-items: center; gap: 5px; background: #fff; border-radius: 6px; padding: 3px 6px; flex: none; }
.tv img { height: 13px; width: auto; display: block; }
.pc-tv { margin-top: 5px; }
.gd-meta .tv img { height: 16px; }
.fb { width: 22px; height: auto; filter: drop-shadow(0 0 5px rgba(250, 204, 21, .9)); animation: blink 1.6s infinite; }
.pc-lock { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: .72rem; font-family: var(--cond); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.pc-lock .ico { width: 13px; height: 13px; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #000; color: #fff; border: 1px solid var(--gold); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .9rem;
  z-index: 50; box-shadow: var(--shadow); max-width: 90vw;
}
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* ---------- head to head ---------- */
.h2h-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.h2h-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.h2h-side strong { font-family: var(--display); font-size: 1.4rem; letter-spacing: .05em; font-weight: 400; }
.h2h-amt { font-family: var(--led); color: var(--gold); font-size: 1.6rem; text-shadow: 0 0 10px rgba(250, 204, 21, .5); }
.h2h-vs { font-family: var(--display); font-size: 2.2rem; color: var(--red); }
.h2h-row td { vertical-align: middle; }
.h2h-pick { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cond); font-weight: 600; }
.h2h-same { color: var(--ink-2); font-size: .75rem; font-family: var(--cond); letter-spacing: .06em; }
.h2h-diff { color: var(--gold); font-size: .75rem; font-family: var(--cond); letter-spacing: .06em; }

/* ---------- home hero with team logo ---------- */
.hero.has-av { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.hero.has-av .countdown { justify-self: end; }
.hero-av-wrap { position: relative; display: block; border-radius: 50%; }
.hero-av { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 0 0 3px var(--gold), 0 0 28px rgba(250, 204, 21, .45); transition: transform .2s; }
.hero-av-wrap:hover .hero-av { transform: scale(1.05); }
.hero-upload { width: 112px; height: 112px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 2px dashed var(--gold); background: rgba(250, 204, 21, .08); color: var(--gold); cursor: pointer; text-align: center;
  font-family: var(--display); font-size: .95rem; letter-spacing: .06em; line-height: 1.05; transition: background .2s, transform .2s; animation: glowPulse 2.6s ease-in-out infinite; }
.hero-upload .ico { width: 30px; height: 30px; }
.hero-upload:hover { background: rgba(250, 204, 21, .18); transform: scale(1.05); }
.hero-upload.busy { animation: none; opacity: .6; cursor: progress; }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, .0); } 50% { box-shadow: 0 0 22px 2px rgba(250, 204, 21, .35); } }
@media (max-width: 599px) {
  .hero.has-av { grid-template-columns: minmax(0, 1fr) auto; }
  .hero.has-av .countdown { grid-column: 1 / -1; justify-self: start; }
  .hero-av, .hero-upload { width: 84px; height: 84px; }
  .hero-upload { font-size: .78rem; }
  .hero-upload .ico { width: 22px; height: 22px; }
}

/* ---------- registration ---------- */
.reg { max-width: 560px; }
.logo-pick { display: flex; align-items: center; gap: 16px; padding: 12px; margin-bottom: 14px; border: 1px dashed #3f3f46; border-radius: 14px; background: rgba(250, 204, 21, .04); }
.logo-pick > span { flex: none; }
.logo-pick .avatar.xl { box-shadow: 0 0 0 3px var(--gold), 0 0 20px rgba(250, 204, 21, .35); }
.pop-in { animation: popIn .4s ease-out; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 520px) { .form-row { grid-template-columns: 1fr 1fr; } }
.whos-in { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.whos-in li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--card-2); }
.whos-in li span { display: flex; flex-direction: column; min-width: 0; }
.whos-in strong { font-family: var(--cond); font-weight: 600; letter-spacing: .02em; }
.whos-in em, .tagline { color: var(--gold); font-size: .78rem; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- art ---------- */
.art-hero { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 6px; border-radius: 18px; box-shadow: 0 0 40px rgba(250, 160, 30, .35), 0 0 80px rgba(59, 130, 246, .25); }
.hero .art-corner { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 160%; opacity: .22; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
