/* SwarmPicks Liquid Glass layer (PDub chose Liquid Glass, 2026-12-03).
   Sources: ecc liquid-glass-design skill (iOS 26, translated to CSS) on top of the Stadium Night palette.
   Rules: glass is an overlay, not a new palette; compact controls (30-32px); motion = transform/opacity only,
   off under prefers-reduced-motion; text contrast on glass is measured from pixels (axe cannot see through blur). */
@font-face { font-family: "Anton"; src: url("fonts/anton-latin-400.woff2") format("woff2"); font-display: swap; }
:root {
  --smoke-0: #0e1013; --smoke-1: #16191d; --smoke-2: #22262c; --smoke-3: #343a42;
  --ink: #f4f5f7; --fog: #c9ced6; --dim: #b4bac3;
  --amber: #ffb43a; --amber-hi: #ffd27f; --amber-ink: #1a1205;
  --win: #5ee08f; --loss: #ff8f8f;
  --display: Anton, Impact, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --disp: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(.2, .9, .3, 1.25);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--smoke-0); color: var(--ink); font: 15px/1.45 var(--text); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* The material: smoky frosted glass with a lit top edge */
.glass {
  background: linear-gradient(135deg, rgba(40,44,50,.62), rgba(22,25,29,.72));
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.35);
}
/* Backdrop for glass to blur: the hero photo, dimmed, plus soft amber glow */
.backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.backdrop .photo { position: absolute; inset: -20px; background: url("assets/hero-swarm-2x-v2.webp") 62% 30% / cover; filter: blur(6px) brightness(.55) saturate(1.1); }
.backdrop .orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; }
.backdrop .o1 { width: 240px; height: 240px; left: -70px; top: 30%; background: var(--amber); }
.backdrop .o2 { width: 260px; height: 260px; right: -90px; top: 65%; background: #7a5a2a; }

/* Buttons: amber gel (main) and clear glass (ghost). Compact: 32px. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 16px; border-radius: 999px;
  font: 700 14px var(--text); text-decoration: none; border: 0; cursor: pointer; transition: transform .35s var(--spring); }
.btn:active { transform: scale(.96); }
.btn-main { color: var(--amber-ink); background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 14px rgba(255,180,58,.35); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }

/* Floating glass top bar (site) */
.gbar { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 18px; margin: 12px 16px 0; padding: 5px 6px 5px 12px; border-radius: 999px; }
.gbar img { width: 28px; height: 28px; object-fit: contain; }
.gbar b { font: 400 19px var(--display); letter-spacing: .5px; }
.gbar nav { display: flex; gap: 2px; }
.gbar nav a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--dim); text-decoration: none; }
.gbar nav a[aria-current="page"] { color: var(--amber-ink); background: linear-gradient(180deg, var(--amber-hi), var(--amber)); }
.gbar .end { margin-left: auto; display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 13px; }

/* Floating glass tab bar (phone app) */
.gtabs { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: 16px; display: flex; justify-content: space-around; padding: 7px 6px; border-radius: 32px; }
.gtab { display: grid; justify-items: center; gap: 1px; font: 600 10px var(--text); min-width: 58px; padding: 4px 6px; border-radius: 16px; color: var(--dim); }
.gtab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gtab.on { color: var(--amber-ink); background: linear-gradient(180deg, var(--amber-hi), var(--amber)); box-shadow: 0 2px 10px rgba(0,0,0,.3); }

/* Game card parts */
.team { display: grid; grid-template-columns: 5px 1fr auto; gap: 10px; align-items: center; margin: 3px 0; font: 600 15px var(--text); }
.team i { height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.55); }   /* thin light edge (PDub 2026-12-03) */
.team span { font-size: 12px; color: var(--dim); font-weight: 600; }
.team.pick span::after { content: " · Swarm"; color: var(--amber); }
.why { font-size: 13px; color: var(--dim); margin: 6px 0 8px; line-height: 1.4; }
.why b { color: var(--ink); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.35); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.seg button { position: relative; z-index: 1; min-height: 30px; border: 0; background: transparent; border-radius: 999px; font: 600 13px/1 var(--text); color: var(--ink); cursor: pointer; transition: transform .35s var(--spring); }
.seg button:active { transform: scale(.96); }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; opacity: 0; transition: transform .35s var(--spring), opacity .2s, background .2s; }
.seg[data-pick="0"] .thumb { opacity: 1; background: linear-gradient(180deg, var(--amber-hi), var(--amber)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 12px rgba(255,180,58,.35); }
.seg[data-pick="1"] .thumb { opacity: 1; transform: translateX(100%); background: rgba(255,255,255,.28); }
.seg[data-pick="0"] button:first-of-type { color: var(--amber-ink); }
.saved { font-size: 12px; color: var(--win); text-align: center; }
.saved:not(:empty) { padding-top: 5px; }

/* Score duel */
.kicker { font: 600 13px var(--text); color: var(--amber); }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; text-align: center; margin-top: 4px; }
.score strong { display: block; font: 700 46px/1.05 var(--disp); letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.score small { color: var(--dim); font-size: 13px; }
.score > span { color: var(--dim); font-size: 22px; padding-bottom: 22px; }
.lock { text-align: center; font-size: 13px; color: var(--dim); margin: 6px 0 0; }
.lock b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Mock-only label for invented data */
.sample { display: inline-block; font: 700 10px/1 var(--text); letter-spacing: .6px; padding: 3px 6px; border-radius: 4px; background: #ffd84a; color: #1a1a1a; vertical-align: middle; }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.in > * { animation: rise .6s var(--ease) backwards; }
.in > *:nth-child(2) { animation-delay: .06s; } .in > *:nth-child(3) { animation-delay: .12s; }
.in > *:nth-child(4) { animation-delay: .18s; } .in > *:nth-child(5) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
