/* ===== Base ===== */
:root{
  --stroke: rgba(255,255,255,.12);
  --shadow: 0 18px 36px rgba(0,0,0,.7);
  --fallback-glow: 29,78,216;
}
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin:0;
  padding:16px;
  background:#000;
  color:#e5e7eb;
}
a{ color:inherit; }

/* ===== Header (Vegas style – FIXED) ===== */
header{
  text-align:center;
  margin:18px auto 14px;
  max-width:960px;
  position:relative;
}

.vegas-title{
  margin:0 0 6px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:40px;
  line-height:1.05;

  background: linear-gradient(
    180deg,
    #fff7d6 0%,
    #ffd76a 40%,
    #fbbf24 60%,
    #b45309 100%
  );
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent !important;

  text-shadow:
    0 0 6px rgba(255,210,110,.35),
    0 0 12px rgba(255,160,0,.18),
    0 14px 32px rgba(0,0,0,.85);
}

/* shimmer sweep on first load */
html.shimmer .vegas-title{
  background: linear-gradient(
    90deg,
    rgba(255,247,214,.65),
    rgba(255,215,0,.95),
    rgba(255,247,214,.65)
  );
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent !important;
}

.subhead{
  margin:0 auto 12px;
  max-width:760px;
  font-size:15px;
  color: rgba(255,255,255,.78);
  line-height:1.35;
}

/* ===== Inputs row ===== */
.player-info{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  margin:12px auto 0;
  max-width:640px;
}
.player-info input{
  flex:1;
  min-width:0;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color:#fff;
  outline:none;
  box-shadow:0 12px 26px rgba(0,0,0,.55);
}
.player-info input::placeholder{
  color: rgba(255,255,255,.55);
}

/* ===== Main ===== */
main{ max-width:960px; margin:0 auto; }
#matchups h3{
  margin:16px 0 8px;
  font-size:16px;
  color:#d1d5db;
}

/* ===== Matchups ===== */
.matchup-card{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  padding:14px 12px;
  margin-bottom:14px;
  border:2px solid rgba(255,215,0,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:
    0 22px 40px rgba(0,0,0,.75),
    0 0 20px rgba(255,215,0,.16);
  color:#fff;
}
.matchup-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(
      140% 160% at 12% -8%,
      rgba(var(--brand-rgb, var(--fallback-glow)), .55),
      rgba(var(--brand-rgb, var(--fallback-glow)), .22) 46%,
      rgba(0,0,0,.18) 72%
    );
  pointer-events:none;
}
.matchup-card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.20));
  pointer-events:none;
}
.matchup-card > *{
  position:relative;
  z-index:2;
}
.matchup-card[data-brand]{
  border-color: rgba(var(--brand-rgb), .55);
  box-shadow:
    0 22px 40px rgba(0,0,0,.78),
    0 0 26px rgba(var(--brand-rgb), .28);
}

.matchup-header{
  font-size:13px;
  color:rgba(255,255,255,.70);
  margin-bottom:8px;
}

.team-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 6px;
  border-radius:10px;
  transition:background .18s, box-shadow .18s;
  cursor:default;
  -webkit-tap-highlight-color: rgba(255,255,255,.15);
}
.team-option.selected{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 8px 18px rgba(0,0,0,.35);
}
.team-line{
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  font-weight:650;
}
.logo{
  width:24px;
  height:24px;
  object-fit:contain;
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,.75))
    drop-shadow(0 2px 3px rgba(0,0,0,.35));
}
.team-option input{
  width:30px;
  height:30px;
}

/* ===== Submit ===== */
.submit-bar{
  display:flex;
  justify-content:center;
  padding:18px 0 8px;
}
#submitBtn{
  width:min(640px, 94vw);
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(255,215,0,.35);
  background: linear-gradient(180deg, rgba(255,215,0,.20), rgba(255,215,0,.08));
  color:#fff;
  font-weight:900;
  font-size:18px;
  box-shadow:0 22px 40px rgba(0,0,0,.75);
}

/* ===== Leaderboard ===== */
#leaderboard{
  margin:18px auto 0;
  max-width:960px;
  padding:12px;
  border-radius:16px;
  background:linear-gradient(180deg,#fb4f14,#ff6a33);
  box-shadow:0 10px 30px rgba(0,0,0,.55);
}
.vegas-header{
  margin:6px 6px 10px;
  color:#111;
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
  font-size:12px;
  opacity:.9;
}
.lb-list{ display:grid; gap:10px; }

/* ===== Super Bowl ===== */
.mode-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:10px auto 0;
  padding:6px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.8px;
  text-transform:uppercase;
  color: rgba(255,215,0,.95);
  border:1px solid rgba(255,215,0,.35);
  background: linear-gradient(180deg, rgba(255,215,0,.16), rgba(255,215,0,.06));
  box-shadow:0 18px 32px rgba(0,0,0,.70);
}

.sb-card{
  border-radius:16px;
  padding:14px 12px;
  margin-bottom:14px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow:0 22px 40px rgba(0,0,0,.75);
}
.sb-prompt{
  font-size:15px;
  font-weight:850;
  margin:0 0 10px;
  color:#fff;
}
.sb-meta{
  font-size:12px;
  color: rgba(255,255,255,.65);
  margin-bottom:10px;
}
.sb-options{
  display:grid;
  gap:10px;
}
.sb-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
}
.sb-option .label{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:750;
  color:#fff;
}
.sb-option input{
  width:26px;
  height:26px;
}
.sb-hint{
  font-size:12px;
  color: rgba(255,255,255,.62);
  margin-top:8px;
}