/* DTF Futsal
   Layout: fantasy-football stats site. Gradient hero, gradient nav, white cards on a pale page, max 820px.
   Phones get the nav as a bottom tab bar; wider screens keep it as a sticky top bar.
   Single light theme by design. */
:root {
  --bg: #f6f5f8;
  --surface: #ffffff;
  --surface-2: #f1eff4;
  --ink: #37003c;            /* deep purple */
  --muted: #76657c;
  --line: #ebe7ee;
  --line-strong: #cfc5d4;
  --neon: #00ff87;
  --win: #01a84f;
  --loss: #e90052;
  --draw: #b9aebf;
  --grad-hero: linear-gradient(100deg, #1fd2fd 0%, #3aa4ff 42%, #6a6cff 72%, #8b45ff 100%);
  --grad-nav: linear-gradient(90deg, #2c74a6 0%, #3a5ea9 45%, #5040a7 80%, #5b38a6 100%);
  --shadow: 0 1px 2px rgb(55 0 60 / 5%), 0 6px 20px rgb(55 0 60 / 6%);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --tabbar-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.locked { position: fixed; left: 0; right: 0; overflow: hidden; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, [data-action] { touch-action: manipulation; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
b, strong, h2, h3 { font-weight: 700; }
/* Barlow Condensed carries headings, scores and stat numbers; Figtree carries names and sentences. */
.wordmark, h2.title, .tname, .scorebox, .tl-score, .total b, .hscore .box, .phero .last, .pstat b, .htitle, .sheet-panel h3, .empty h3 { font-family: var(--font-display); font-weight: 700; }
.tname, .team-h b { letter-spacing: .04em; text-transform: uppercase; }
.team-h b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }

/* Hero */
.hero { background: var(--grad-hero); color: var(--ink); }
.hero-in { max-width: 820px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 12px rgb(55 0 60 / 25%); background: #2a2a2a url(assets/badge.webp) 46% 8% / 220% auto no-repeat; }
.wordmark { font-size: 44px; letter-spacing: -0.02em; line-height: 1; }
.tagline { font-size: 16px; font-weight: 600; }
.conn { margin-left: auto; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgb(255 255 255 / 55%); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--draw); display: inline-block; }
.conn.live i { background: var(--win); }
.conn.off i { background: var(--loss); }

/* Nav: sticky top bar on wide screens */
.nav { position: sticky; top: 0; z-index: 20; background: var(--grad-nav); }
.nav-in { max-width: 820px; margin: 0 auto; padding: 0 8px; display: flex; }
.tab { position: relative; border: 0; background: none; color: #fff; padding: 12px 10px 13px; font-size: 16px; white-space: nowrap; opacity: .92; display: inline-flex; align-items: center; gap: 6px; }
.tab svg { display: none; }
.tab[aria-current="page"] { font-weight: 700; opacity: 1; }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: #fff; }
.tab .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 2px rgb(0 255 135 / 30%); animation: pulse 1.6s ease-in-out infinite; }

/* Nav: bottom tab bar on phones */
@media (max-width: 640px) {
  :root { --tabbar-h: 60px; }
  .nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; padding-bottom: var(--safe-b); box-shadow: 0 -4px 18px rgb(55 0 60 / 18%); }
  .nav-in { padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
  .tab { flex-direction: column; justify-content: center; gap: 3px; height: var(--tabbar-h); padding: 6px 2px 5px; font-size: 11px; font-weight: 600; letter-spacing: .01em; opacity: .78; }
  .tab svg { display: block; width: 23px; height: 23px; }
  .tab[aria-current="page"] { opacity: 1; font-weight: 700; }
  .tab[aria-current="page"]::after { left: 30%; right: 30%; top: 0; bottom: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .tab .live-dot { position: absolute; top: 9px; right: calc(50% - 18px); }
}

/* Main */
main { max-width: 820px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-block: 22px calc(56px + var(--tabbar-h) + var(--safe-b)); display: grid; gap: 18px; }
h2.title { font-size: 32px; margin: 0; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.bar-note { background: var(--ink); color: #fff; text-align: center; border-radius: var(--r-sm); padding: 9px 14px; font-size: 14px; }
.bar-note.soft { background: var(--surface-2); color: var(--ink); }
.bar-note.warn { background: #ffe7f0; color: #8a0031; }
.label { font-size: 12px; color: var(--muted); }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Buttons */
.btn {
  border: 0; background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 10px 18px;
  font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.outline { background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { background: transparent; color: var(--loss); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.block { width: 100%; min-height: 52px; font-size: 16px; font-weight: 700; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.info {
  width: 32px; height: 32px; flex: none; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; margin: -4px;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1;
}
.info:active { background: var(--surface-2); }

/* Hover effects only where a real pointer exists, so taps on iPhone don't leave rows highlighted */
@media (hover: hover) {
  .tab:hover { opacity: 1; }
  .btn:hover { filter: brightness(.97); }
  .btn.primary:hover { filter: brightness(1.15); }
  .info:hover, .ibtn:hover, button.prow-btn:hover, button.tl-item:hover, .prow:hover, .pick button:hover { background: var(--surface-2); }
  .hrow:hover { background: #e9e5ee; }
}

/* Jersey */
.kit { display: inline-block; flex: none; }
.kit svg { display: block; width: 100%; height: 100%; }

/* Scoreboard */
.board { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.board-meta { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.pill.live { background: var(--loss); color: #fff; }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 20px 12px 8px; }
.side { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.side .kit { width: 52px; height: 52px; }
.tname { font-size: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorebox { display: flex; align-items: stretch; background: var(--ink); color: #fff; border-radius: 10px; overflow: hidden; }
.scorebox span { font-size: clamp(44px, 14vw, 72px); line-height: 1; padding: 10px 14px 8px; font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: center; }
.scorebox span + span { border-left: 1px solid rgb(255 255 255 / 22%); }
.scorebox span.bump { animation: bump .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes bump { 35% { transform: scale(1.2); color: var(--neon); } }
.scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 16px 16px; font-size: 13px; color: var(--muted); text-align: center; }
.scorers div { overflow-wrap: anywhere; }

/* Teams */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px 12px 10px; display: grid; align-content: start; min-width: 0; }
.team-h { display: flex; align-items: center; gap: 8px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.team-h .kit { width: 22px; height: 22px; }
.team-h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-h small { color: var(--muted); margin-left: auto; font-size: 12px; white-space: nowrap; }
.prow-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; min-height: 50px; padding: 6px 2px;
  background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; border-radius: 0;
}
.prow-btn:last-of-type { border-bottom: 0; }
button.prow-btn:active { background: var(--line); }
.prow-btn .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balls { display: inline-flex; gap: 3px; align-items: center; flex: none; font-size: 12px; color: var(--muted); }
.balls i { width: 12px; height: 12px; border-radius: 50%; background: var(--neon); border: 2px solid var(--ink); display: inline-block; }
.og { margin-top: 8px; justify-content: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-strong); border-radius: 8px; min-height: 42px; font-weight: 400; }

/* Timeline */
.tl-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 48px; padding: 8px 2px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.tl-item:first-child { border-top: 0; }
.tl-score { background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.tl-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.tl-who .kit { width: 18px; height: 18px; }
.tl-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-who em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.tl-time { color: var(--muted); font-size: 12px; }

/* Empty */
.empty { text-align: center; padding: 34px 20px; display: grid; gap: 10px; justify-items: center; }
.empty h3 { font-size: 24px; margin: 0; }
.empty p { color: var(--muted); margin: 0; max-width: 40ch; }
.empty .kit { width: 64px; height: 64px; }

/* Forms (16px text stops iPhone zooming in on focus) */
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.input, textarea.input {
  width: 100%; border: 1px solid var(--line-strong); background: #fff; border-radius: 8px;
  padding: 11px 14px; font-size: 16px; color: var(--ink); min-height: 48px; -webkit-appearance: none; appearance: none;
}
input[type="date"].input { display: block; text-align: left; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
textarea.input { min-height: 180px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #9d8fa3; }
.input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

/* Review */
.entry { display: flex; align-items: center; gap: 4px; padding: 6px 0; min-height: 50px; border-bottom: 1px solid var(--line); }
.entry .nm { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .raw { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.tag { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--neon); color: var(--ink); flex: none; }
.tag.check { background: #ffe58a; }
.ibtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--muted); }
.ibtn:active { background: var(--surface-2); color: var(--ink); }
.ibtn svg { width: 18px; height: 18px; }
.team-name-input { font-weight: 700; font-size: 16px; padding: 6px 10px; min-height: 40px; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 400; text-align: center; padding: 4px 6px 10px; white-space: nowrap; }
.tbl th abbr { text-decoration: underline dotted; text-underline-offset: 3px; }
.tbl th:first-child { text-align: left; }
.tbl td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: center; font-size: 15px; }
.tbl td.g { font-weight: 700; }
.who { display: flex; align-items: center; gap: 8px; text-align: left; min-width: 0; }
.who .kit { width: 26px; height: 30px; }
.who .nmb { min-width: 0; }
.who b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank { width: 22px; color: var(--muted); font-size: 13px; text-align: center; flex: none; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.total { padding: 14px 10px; text-align: center; }
.total + .total { border-left: 1px solid var(--line); }
.total span { display: block; font-size: 12px; color: var(--muted); }
.total b { display: block; font-size: 26px; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* History list (league rows) */
.hist { display: grid; gap: 8px; }
.hrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; min-height: 56px; }
.hrow:active { background: #e9e5ee; }
.hrow .hl { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hrow .hl b { font-size: 15px; }
.hrow .hl small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hscore { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.hscore .box { background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; background: var(--draw); }
.dot svg { width: 12px; height: 12px; }
.dot.live { background: var(--loss); }
@media (max-width: 420px) { .hscore .tn { display: none; } }

/* Players */
.plist { display: grid; }
.prow { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.prow:first-child { border-top: 0; }
.prow:active { background: var(--surface-2); }
.prow .st { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Bottom sheet (confirmations, pickers) */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; justify-items: center; }
.sheet-bg, .modal-bg { position: absolute; inset: 0; background: rgb(55 0 60 / 45%); animation: fade .18s ease; }
.sheet-panel {
  position: relative; width: min(520px, 100%); max-height: 88dvh; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff;
  border-radius: 22px 22px 0 0; padding: 22px 16px calc(18px + var(--safe-b)); display: grid; gap: 14px;
  animation: up .24s cubic-bezier(.2,.9,.3,1);
}
.sheet-panel::before { content: ""; justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: -10px 0 -4px; }
@media (min-width: 641px) { .sheet { align-items: center; } .sheet-panel { border-radius: 22px; padding-bottom: 18px; } .sheet-panel::before { display: none; } }
.sheet-panel h3 { margin: 0; font-size: 28px; line-height: 1.1; text-wrap: balance; }
.sheet-panel p { margin: 0; color: var(--muted); }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; min-height: 54px; font-size: 16px; }
.pick { display: grid; max-height: 46dvh; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pick button { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-align: left; min-height: 50px; padding: 12px; border: 0; border-top: 1px solid var(--line); background: #fff; font-size: 16px; }
.pick button:first-child { border-top: 0; }
.pick button:active { background: var(--surface-2); }
.pick small { color: var(--muted); font-size: 12px; }

/* Player stats modal */
.modal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; }
.modal-panel {
  position: relative; width: min(900px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 22px;
  padding: 18px 16px 20px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); box-shadow: 0 20px 60px rgb(55 0 60 / 25%);
  animation: pop .26s cubic-bezier(.2,.9,.3,1.05);
}
@media (max-width: 640px) {
  .modal { padding: 0; place-items: end center; }
  .modal-panel { border-radius: 22px 22px 0 0; max-height: 92dvh; padding-bottom: calc(20px + var(--safe-b)); animation: up .28s cubic-bezier(.2,.9,.3,1); }
}
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 75%); display: grid; place-items: center; color: var(--ink); }
.modal-x svg { width: 18px; height: 18px; }
.phero { background: var(--grad-hero); border-radius: 16px; padding: 18px 18px 16px; display: flex; gap: 16px; align-items: center; min-height: 128px; overflow: hidden; position: relative; }
.phero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgb(255 255 255 / 12%); }
.phero .kit { width: 84px; height: 92px; filter: drop-shadow(0 6px 10px rgb(55 0 60 / 25%)); }
.phero .pos { font-size: 15px; }
.phero .first { font-size: 20px; margin-top: 8px; }
.phero .last { font-size: 42px; line-height: 1.05; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.phero .pteam { font-size: 14px; margin-top: 6px; }
.pbtns { display: flex; gap: 8px; }
.pbtns .btn { flex: 1; min-height: 42px; font-size: 14px; }
.pstrip { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--r); }
.pstat { padding: 12px 6px; text-align: center; display: grid; gap: 3px; align-content: start; }
.pstat + .pstat { border-left: 1px solid var(--line); }
.pstat span { font-size: 12px; color: var(--muted); }
.pstat b { font-size: 24px; font-variant-numeric: tabular-nums; }
.pstat small { font-size: 11px; color: var(--muted); }
@media (max-width: 640px) {
  .pstrip { grid-template-columns: repeat(3, 1fr); }
  .pstat:nth-child(4) { border-left: 0; }
  .pstat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
.pbox { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; }
.pbox h4 { margin: 0 0 10px; font-size: 15px; }
.form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fcell { display: grid; justify-items: center; gap: 5px; text-align: center; min-width: 0; }
.fcell .gw { font-size: 12px; color: var(--muted); }
.fcell .kit { width: 30px; height: 32px; }
.fcell .opp { font-size: 13px; }
.fcell .fp { width: 100%; border-radius: 6px; padding: 4px 2px; font-size: 13px; font-weight: 700; background: var(--surface-2); }
.fcell .fp.scored { background: var(--neon); }
.res { display: inline-block; min-width: 44px; padding: 3px 8px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.res.w { background: var(--win); }
.res.l { background: var(--loss); }
.res.d { background: var(--draw); }
.res.live { background: var(--ink); }
.ptbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptbl { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
.ptbl th { font-size: 13px; font-weight: 700; text-align: center; padding: 6px 8px 10px; white-space: nowrap; }
.ptbl th:nth-child(2), .ptbl td:nth-child(2) { text-align: left; }
.ptbl th abbr { text-decoration: underline dotted; text-underline-offset: 3px; }
.ptbl td { text-align: center; padding: 11px 8px; border-top: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.ptbl td .opp { display: inline-flex; align-items: center; gap: 6px; }
.ptbl td .opp .kit { width: 18px; height: 20px; }
.htitle { font-size: 22px; margin: 4px 0 0; }

@keyframes up { from { transform: translateY(28px); opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* Toast (sits above the bottom tab bar on phones) */
.toast { position: fixed; left: 50%; bottom: calc(18px + var(--tabbar-h) + var(--safe-b)); transform: translateX(-50%); z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 15px; box-shadow: 0 8px 24px rgb(55 0 60 / 30%); max-width: calc(100% - 32px); width: max-content; text-align: center; animation: up .2s ease; }

@media (max-width: 560px) { .teams.review { grid-template-columns: 1fr; } .wordmark { font-size: 38px; } .badge { width: 50px; height: 50px; } .tagline { font-size: 15px; } }
@media (max-width: 380px) { .teams { gap: 8px; } .team { padding-inline: 8px; } .tbl td, .tbl th { padding-inline: 4px; } .tagline { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
