/* ==========================================================================
   Fall Football 2026 - shared design system
   Coca-Cola red, stadium black, game-day type.
   ========================================================================== */

/* Poppins, self-hosted so a venue never depends on a font CDN.
   Declared here for every screen; each screen opts in via font-family. */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap;
  src:url('/assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:800; font-display:swap;
  src:url('/assets/fonts/poppins-latin-800-normal.woff2') format('woff2'); }

:root {
  --ko-red: #F40009;
  --ko-red-hot: #FF2A32;
  --ko-red-deep: #B3000A;
  --ink: #0C0B0B;
  --ink-2: #171514;
  --ink-3: #221F1E;
  --line: #332E2D;
  --paper: #FFFFFF;
  --muted: #A9A19E;
  --muted-2: #6E6664;
  --gold: #FFC72C;
  --green: #22C55E;

  --home: #F40009;
  --away: #2B2A2A;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body { display: flex; flex-direction: column; }

/* --- type ---------------------------------------------------------------- */

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ko-red);
}
.eyebrow.muted { color: var(--muted-2); }

h1, h2, h3 { line-height: 1.02; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(30px, 7vw, 46px); }
h2 { font-size: clamp(22px, 5vw, 30px); }
.lede { color: var(--muted); line-height: 1.55; font-size: 15px; }

.tabular { font-variant-numeric: tabular-nums; }

/* --- layout -------------------------------------------------------------- */

.shell {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar .logo { height: 20px; opacity: 0.95; }
.topbar .meta { font-size: 11px; color: var(--muted-2); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.card.flush { padding: 0; overflow: hidden; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ko-red);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 17px 22px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--paper); }
.btn.ghost:hover { border-color: var(--muted-2); }
.btn.dark { background: var(--ink-3); }
.btn.sm { padding: 11px 16px; font-size: 14px; }

/* --- side pickers -------------------------------------------------------- */

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.side-pick {
  position: relative;
  border-radius: var(--r-lg);
  border: 2px solid var(--line);
  background: var(--ink-2);
  padding: 26px 18px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  overflow: hidden;
}
.side-pick .abbr { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.side-pick .name { font-size: 13px; color: var(--muted); margin-top: 6px; }
.side-pick .tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px;
}
.side-pick[aria-pressed="true"] { border-color: currentColor; transform: translateY(-2px); }
.side-pick[aria-pressed="true"]::after {
  content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0.14; pointer-events: none;
}

/* --- score bar ----------------------------------------------------------- */

.meter { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--ink-3); }
.meter span { transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

.scoreline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.scoreline .val { font-size: clamp(38px, 11vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
.scoreline .lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }

/* --- misc ---------------------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink-3); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.dot.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.off { background: var(--ko-red); }

.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; }
.hidden { display: none !important; }

input[type=text], input[type=email], input[type=number], input[type=password], select {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--paper);
  font-family: inherit;
  font-size: 16px;
  padding: 15px 16px;
  outline: none;
}
input:focus, select:focus { border-color: var(--ko-red); }
input::placeholder { color: var(--muted-2); }
label.field { display: block; }
label.field > span {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px;
}

.toast {
  /* Hidden means gone. 120% of its own height did not clear a phone's home bar,
     so a dismissed toast left a red sliver stuck to the bottom of the fan app
     that looked like a button and did nothing. Opacity and pointer-events do
     the work now; the transform is only the motion. */
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(140%); opacity: 0; pointer-events: none; visibility: hidden;
  background: var(--ko-red); color: #fff; font-weight: 800; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; z-index: 100;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease,
              visibility 0s linear 0.34s;
  box-shadow: var(--shadow);
  max-width: 90vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1;
  pointer-events: auto; visibility: visible; transition-delay: 0s; }

.conn {
  position: fixed; bottom: 10px; left: 10px; z-index: 90;
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); background: rgba(12,11,11,0.8); padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
/* Inside a header the badge is a normal flex child, not an overlay. */
.conn.inline { position: static; flex: none; background: transparent; padding: 0; backdrop-filter: none; }

.topbar .meta {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; text-align: right;
}

@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
.pop { animation: pop 0.45s ease; }

@keyframes riseFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: riseFade 0.4s ease both; }

/* Screens run unattended on a TV - never show a scrollbar or selection UI. */
.kiosk { overflow: hidden; user-select: none; cursor: none; }

/* Native checkboxes render Chrome/Safari blue by default, and blue is off
   limits across the Coca-Cola ecosystem. One line covers every page. */
input[type="checkbox"], input[type="radio"] { accent-color: var(--ko-red); }
