@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Bebas+Neue&display=swap');

:root {
  --bg: #0a0906;
  --surface: #151209;
  --surface2: #1c1810;
  --raise: #252017;
  --ink: #f7f3e8;
  --ink2: #cfc4a8;
  --ink3: #8d8368;
  --line: #332c1c;
  --brand: #16c876;
  --brand-dk: #0e9c5a;
  --gold: #f0c14b;
  --gold2: #c8901e;
  --gold3: #fff3c4;
  --red: #f4506b;
  --blue: #5a8dee;
  --r: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(240, 193, 75, .10), transparent 65%),
    radial-gradient(700px 400px at 85% 70%, rgba(200, 144, 30, .05), transparent 60%),
    #080604;
  color: var(--ink);
  min-height: 100%;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.disp { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: .06em; }
.goldtext {
  background: linear-gradient(178deg, var(--gold3) 8%, var(--gold) 38%, var(--gold2) 62%, var(--gold3) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
.plate {
  background: linear-gradient(178deg, #efe6cf 0%, #cfc0a0 18%, #a99a78 50%, #d8caa8 82%, #f5edd8 100%);
  color: #241c08; border: 1px solid #6b5d3a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 4px rgba(0, 0, 0, .25), 0 6px 16px rgba(0, 0, 0, .5);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* nav */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; max-width: 1080px; margin: 0 auto;
}
.brand { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; letter-spacing: .08em; flex-shrink: 0; }
.brand span { color: var(--gold); }

/* nav-bar: everything to the right of the brand. My Boards and New Board
   stay inline at every width; the rest lives in .nav-more, which becomes a
   dropdown panel behind .nav-toggle on narrow screens. */
.nav-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; margin-left: auto; }
.nav-more { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--line); color: var(--ink);
  font-size: 17px; align-items: center; justify-content: center; cursor: pointer; line-height: 1;
}
.nav-toggle:hover { border-color: var(--gold2); }
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-more {
    display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px;
    flex-direction: column; align-items: stretch; gap: 8px; min-width: 190px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  }
  .nav-more.open { display: flex; }
  .nav-more a { width: 100%; }
}

/* headings */
h1, h2, h3 { line-height: 1.15; }
.h1 {
  font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: .07em;
  background: linear-gradient(178deg, var(--gold3) 8%, var(--gold) 40%, var(--gold2) 64%, var(--gold3) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65));
}
.sub { font-size: 14px; color: var(--ink3); font-weight: 500; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.pill { font-size: 11px; font-weight: 800; letter-spacing: .05em; padding: 5px 11px; border-radius: 99px; display: inline-block; }
.pill.live { background: var(--red); color: #fff; animation: lp 1.6s infinite; }
@keyframes lp { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 80, 107, .45); } 60% { box-shadow: 0 0 0 8px rgba(244, 80, 107, 0); } }
.pill.soft-g { background: rgba(22, 200, 118, .12); color: var(--brand); }
.pill.soft-y { background: rgba(245, 185, 62, .12); color: var(--gold); }
.pill.soft-r { background: rgba(244, 80, 107, .12); color: var(--red); }

/* buttons */
.btn {
  width: 100%; padding: 16px; border-radius: 16px; border: 0; font: inherit; font-weight: 800; font-size: 15px;
  cursor: pointer; color: var(--ink); transition: transform .12s, filter .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.p {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 19px; letter-spacing: .09em; color: #241c04;
  background: linear-gradient(178deg, #fff3c4 0%, var(--gold) 30%, var(--gold2) 68%, #e8cf8a 100%);
  border: 1px solid #7a621f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -3px 6px rgba(122, 80, 10, .45), 0 12px 28px rgba(240, 193, 75, .22);
}
.btn.p:hover { filter: brightness(1.07); }
.btn.g { background: var(--surface2); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.btn.g:hover { border-color: var(--gold2); }
.btn.sm { width: auto; padding: 10px 16px; font-size: 13px; }

/* inputs */
label { display: block; font-size: 12px; font-weight: 700; color: var(--ink2); letter-spacing: .03em; margin-bottom: 6px; text-transform: uppercase; }
input[type=text], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line);
  color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold2); }
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hint { font-size: 11.5px; color: var(--ink3); margin-top: 6px; }

/* image slots (fallback when assets are missing) */
.imgslot {
  position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid rgba(240, 193, 75, .3);
  background: linear-gradient(160deg, #241c0c, #120d05); min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.imgslot::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(240px 90px at 70% 25%, rgba(240, 193, 75, .22), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(240, 193, 75, .05) 30px 32px);
}
.imgslot img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.imgslot .fallback-tag {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 18px; letter-spacing: .1em; color: var(--gold); position: relative; z-index: 1;
}

/* toasts */
.toastwrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 999; width: min(420px, 92vw); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toastx {
  background: var(--raise); border: 1px solid #2c3442; border-radius: 16px; padding: 13px 16px; font-size: 13.5px; font-weight: 700;
  display: flex; gap: 10px; align-items: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  transform: translateY(-16px); opacity: 0; transition: all .35s cubic-bezier(.3, .9, .3, 1.2);
}
.toastx.on { transform: none; opacity: 1; }

/* bottom sheet */
.scrim { position: fixed; inset: 0; background: rgba(3, 5, 8, .6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: -100%; transform: translateX(-50%); z-index: 91; width: min(440px, 94vw);
  background: var(--raise); border: 1px solid #2b3341; border-radius: 22px 22px 0 0; padding: 20px 20px 26px;
  transition: bottom .38s cubic-bezier(.3, .9, .3, 1); box-shadow: 0 -18px 50px rgba(0, 0, 0, .6);
}
.sheet.on { bottom: 0; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: #39424f; margin: 0 auto 16px; }
.sheet h3 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; margin-bottom: 4px; }
.sheet .d { font-size: 13px; color: var(--ink2); line-height: 1.55; margin-bottom: 16px; }
.sheet .d b { color: var(--gold); }

footer.site { margin-top: 40px; padding: 26px 20px 60px; text-align: center; }
footer.site p { font-size: 12px; color: var(--ink3); max-width: 640px; margin: 0 auto; line-height: 1.7; }
footer.site b { color: var(--ink2); }

@media (max-width: 640px) {
  .row4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   HYPE PASS: recruiting-poster energy on top of the gold chrome.
   ============================================================ */

/* button hover sheen sweep */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .55s ease; pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* angled metallic plate section header, like an award-list plaque */
.plate-head {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px;
  transform: skewX(-8deg);
  background: linear-gradient(178deg, #fff3c4 0%, var(--gold) 32%, var(--gold2) 70%, #efe0ac 100%);
  border: 1px solid #7a621f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 5px rgba(90, 60, 6, .4), 0 10px 22px rgba(0, 0, 0, .45);
  border-radius: 4px;
}
.plate-head span {
  display: inline-block; transform: skewX(8deg);
  font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: .08em; font-size: 15px;
  color: #241c04; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

/* stadium spotlight glows, stackable on any hero/section */
.spotlights { position: relative; isolation: isolate; }
.spotlights::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 130%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 260px at 18% 10%, rgba(240, 193, 75, .16), transparent 65%),
    radial-gradient(460px 300px at 82% 6%, rgba(240, 193, 75, .12), transparent 62%),
    radial-gradient(600px 340px at 50% 40%, rgba(240, 193, 75, .07), transparent 70%);
}

/* subtle diagonal texture, like brushed-poster grain */
.texture-diag { position: relative; isolation: isolate; }
.texture-diag::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(-38deg, transparent 0 26px, rgba(240, 193, 75, .035) 26px 28px);
}

/* gold particle dots, pure CSS */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.particles span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: 0; box-shadow: 0 0 6px 1px rgba(240, 193, 75, .8);
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: .9; }
  92% { opacity: .5; }
  100% { transform: translateY(-140px); opacity: 0; }
}

/* skewed hype headline energy */
.hype-skew { display: inline-block; transform: skewX(-4deg); }

/* stadium-light vignette, sits behind a scorebug/panel */
.vignette { position: relative; isolation: isolate; }
.vignette::before {
  content: ""; position: absolute; inset: -18px; z-index: -1; pointer-events: none; border-radius: 24px;
  background: radial-gradient(360px 160px at 50% -10%, rgba(240, 193, 75, .16), transparent 70%);
}

/* confetti burst particle (spawned + removed via JS) */
.confetti-piece {
  position: fixed; top: 0; left: 0; width: 7px; height: 12px; z-index: 998; pointer-events: none;
  border-radius: 1px; will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .btn::after, .particles span, .confetti-piece { animation: none !important; transition: none !important; }
}

/* ============================================================
   SPORTS ATMOSPHERE LAYER: field dividers, silhouettes, texture,
   broadcast chrome. Pure CSS / inline SVG, no external assets.
   ============================================================ */

/* --- floating faint iconography (footballs, whistles, pennants) --- */
.field-pattern { position: relative; isolation: isolate; }
.field-pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23f0c14b' stroke-width='2.4'%3E%3Cellipse cx='34' cy='30' rx='19' ry='11' transform='rotate(-28 34 30)'/%3E%3Cpath d='M20 24l28 12M26 18l4 4M42 38l4 4M32 21l3 3M36 35l3 3' stroke-width='1.6'/%3E%3Cpath d='M150 26c0-9 7-16 16-16s16 7 16 16-16 30-16 30-16-21-16-30z'/%3E%3Ccircle cx='166' cy='26' r='5'/%3E%3Cpath d='M40 130l40 14v14l-40-10z'/%3E%3Cline x1='40' y1='96' x2='40' y2='158'/%3E%3Cpath d='M150 150c8-4 18-4 26 0-4 8-4 18 0 26-8 4-18 4-26 0 4-8 4-18 0-26z'/%3E%3Ccircle cx='163' cy='163' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px; background-repeat: repeat;
}

/* --- yard-line section divider: field stripe with hash marks + number --- */
.yard-divider {
  position: relative; height: 46px; margin: 8px 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.yard-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(247, 243, 232, .28) 12%, rgba(247, 243, 232, .28) 88%, transparent);
}
.yard-divider .hash { position: absolute; top: 50%; width: 100%; }
.yard-divider .hash span {
  position: absolute; top: -6px; width: 1px; height: 12px; background: rgba(247, 243, 232, .22);
}
.yard-divider .yard-num {
  position: relative; font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: .1em; font-size: 15px;
  color: var(--gold); background: var(--bg); padding: 0 16px; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.yard-divider .yard-num small { color: var(--ink3); font-size: 9px; letter-spacing: .18em; margin-left: 4px; }
.yard-divider.redzone .yard-num { color: var(--red); }
.yard-divider.redzone::before { background: linear-gradient(90deg, transparent, rgba(244, 80, 107, .35) 12%, rgba(244, 80, 107, .35) 88%, transparent); }
.yard-divider.touchdown .yard-num { color: var(--gold3); font-size: 17px; }
.yard-divider.touchdown::before { background: linear-gradient(90deg, transparent, rgba(240, 193, 75, .55) 12%, rgba(240, 193, 75, .55) 88%, transparent); }

@media (max-width: 640px) {
  .yard-divider { height: 30px; margin: 2px 0; }
  .yard-divider .yard-num { font-size: 12px; padding: 0 10px; }
  .yard-divider .yard-num small { display: none; }
}

/* --- broadcast-bug quarter watermark, sits in a section corner --- */
.bcast-bug {
  position: absolute; top: 12px; right: 14px; z-index: 2; pointer-events: none;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 10px; letter-spacing: .12em; color: var(--ink3);
  background: rgba(10, 9, 6, .55); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px 2px;
}
.bcast-bug b { color: var(--gold); }

/* --- crowd silhouette band, dark cutout row of fans --- */
.crowd-band { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 1; pointer-events: none; }
.crowd-band svg { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) { .crowd-band { height: 42px; } }

/* --- goalpost frame around the kickoff/countdown section --- */
.goalpost-frame { position: absolute; top: 6px; bottom: 6px; width: 54px; z-index: 0; pointer-events: none; opacity: .5; }
.goalpost-frame.left { left: 4px; }
.goalpost-frame.right { right: 4px; transform: scaleX(-1); }
.goalpost-frame svg { width: 100%; height: 100%; }
@media (max-width: 640px) { .goalpost-frame { width: 30px; opacity: .35; } }

/* --- QB throwing accent, how-it-works section --- */
.qb-accent { position: absolute; right: 6px; bottom: -4px; width: 100px; opacity: .16; z-index: 0; pointer-events: none; }
.qb-accent svg { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .qb-accent { width: 64px; } }

/* --- referee touchdown silhouette beside the final CTA --- */
.ref-accent { position: absolute; left: 14px; bottom: 8px; width: 88px; opacity: .5; z-index: 1; pointer-events: none; }
.ref-accent svg { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .ref-accent { width: 54px; left: 8px; opacity: .35; } }

/* --- GAME DAY LED ticker label --- */
.ticker-wrap { position: relative; }
.gameday-led {
  display: inline-flex; align-items: center; gap: 6px; position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 10.5px; letter-spacing: .1em; color: var(--red);
  background: #170b0d; border: 1px solid rgba(244, 80, 107, .5); border-radius: 5px; padding: 4px 9px 3px;
  text-shadow: 0 0 6px rgba(244, 80, 107, .8); z-index: 2;
}
.gameday-led .ledd { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 6px 2px rgba(244, 80, 107, .8); animation: ledpulse 1.1s infinite; }
@keyframes ledpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 640px) { .gameday-led { position: static; transform: none; margin: 0 auto 8px; width: fit-content; } .ticker-wrap { display: flex; flex-direction: column; align-items: center; } .ticker-wrap .ticker { width: 100%; align-self: stretch; } }

/* --- broadcast scorebug on the demo board --- */
.demo-scorebug {
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.demo-scorebug .side { position: relative; padding: 2px 6px; border-radius: 3px; }
.demo-scorebug .side.away { background: rgba(47, 174, 135, .14); }
.demo-scorebug .side.home { background: rgba(133, 149, 187, .14); }
.demo-scorebug .dot.live { position: relative; }
.demo-scorebug .dot.live::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid currentColor; opacity: .6;
  animation: ledpulse 1.3s infinite;
}

/* --- whistle icon eyebrow chip --- */
.eyebrow-chip { display: inline-flex; align-items: center; gap: 7px; }
.eyebrow-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

/* --- football glyph inside a button --- */
.btn-fb { width: 15px; height: 15px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .gameday-led .ledd, .demo-scorebug .dot.live::after { animation: none !important; }
}
