:root {
  --black: #050806;
  --panel: rgba(4, 10, 6, 0.88);
  --panel-light: rgba(15, 35, 21, 0.9);
  --field: #13552e;
  --field-dark: #082b17;
  --gold: #e2c36b;
  --gold-light: #fff0ad;
  --white: #ffffff;
  --muted: #b9c4bb;
  --green: #32c66b;
  --yellow: #e5ad31;
  --red: #d74747;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--field-dark);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  background:
    radial-gradient(
      ellipse at top,
      rgba(255, 255, 255, 0.24) 0,
      rgba(255, 255, 255, 0.06) 14%,
      transparent 36%
    ),
    linear-gradient(
      rgba(0, 10, 4, 0.28),
      rgba(0, 10, 4, 0.78)
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 2px),
      rgba(255, 255, 255, 0.16) calc(10% - 1px),
      rgba(255, 255, 255, 0.16) 10%
    ),
    repeating-linear-gradient(
      0deg,
      #155c32 0,
      #155c32 58px,
      #104c29 59px,
      #104c29 116px
    );

  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 120px;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(
      circle at 8% 5px,
      rgba(255, 255, 230, 0.95) 0 3px,
      rgba(255, 255, 210, 0.35) 4px 13px,
      transparent 28px
    ),
    radial-gradient(
      circle at 26% 5px,
      rgba(255, 255, 230, 0.95) 0 3px,
      rgba(255, 255, 210, 0.35) 4px 13px,
      transparent 28px
    ),
    radial-gradient(
      circle at 50% 5px,
      rgba(255, 255, 230, 0.95) 0 3px,
      rgba(255, 255, 210, 0.35) 4px 13px,
      transparent 28px
    ),
    radial-gradient(
      circle at 74% 5px,
      rgba(255, 255, 230, 0.95) 0 3px,
      rgba(255, 255, 210, 0.35) 4px 13px,
      transparent 28px
    ),
    radial-gradient(
      circle at 92% 5px,
      rgba(255, 255, 230, 0.95) 0 3px,
      rgba(255, 255, 210, 0.35) 4px 13px,
      transparent 28px
    );
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  padding:
    max(26px, env(safe-area-inset-top))
    16px
    max(38px, env(safe-area-inset-bottom));
}

/* PLAYER HEADER */

.player-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  margin-bottom: 14px;
  padding: 15px;
  overflow: hidden;

  border: 1px solid rgba(226, 195, 107, 0.62);
  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(1, 3, 2, 0.97),
      rgba(12, 64, 34, 0.93)
    );

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.13);
}

.player-header::after {
  content: "";
  position: absolute;
  inset: auto -30px -56px auto;
  width: 170px;
  height: 170px;
  border: 28px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.player-photo-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}

.player-photo {
  display: none;
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #111;
  border: 4px solid var(--gold);

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(226, 195, 107, 0.48);
}

.number {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;

  color: #111;
  background:
    radial-gradient(circle at 35% 25%, #ffffff, #d8d8d8 70%);

  border: 4px solid var(--gold);
  font-size: 28px;
  font-weight: 1000;

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(226, 195, 107, 0.42);
}

.player-title {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.eyebrow,
.label,
.question-label {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 {
  margin: 3px 0 0;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1;
  letter-spacing: -1px;
}

.subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  font-weight: 700;
}

.football-icon {
  position: relative;
  z-index: 1;
  font-size: 29px;
  transform: rotate(-18deg);
}

/* MAIN SCOREBOARD CARD */

.card {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 20px;
  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;

  background:
    linear-gradient(
      180deg,
      rgba(3, 8, 5, 0.94),
      rgba(5, 18, 10, 0.92)
    );

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.52),
    inset 0 1px rgba(255, 255, 255, 0.1);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      var(--gold-light),
      var(--gold),
      transparent
    );
}

h2 {
  margin: 15px 0 5px;
  color: var(--gold-light);
  font-size: clamp(40px, 12vw, 62px);
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;

  text-shadow:
    0 0 20px rgba(226, 195, 107, 0.35);
}

h3 {
  min-height: 66px;
  margin: 9px auto 7px;
  max-width: 440px;

  color: var(--white);
  font-size: clamp(25px, 7vw, 39px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.7px;
}

/* COUNTDOWN SCOREBOARD */

.countdown {
  width: min(170px, 58%);
  height: 82px;
  display: grid;
  place-items: center;
  margin: 14px auto 15px;

  color: #ffefaa;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 2px,
      transparent 2px,
      transparent 5px
    ),
    #050705;

  border: 2px solid rgba(226, 195, 107, 0.55);
  border-radius: 15px;

  font-family:
    "Arial Black",
    Impact,
    sans-serif;
  font-size: clamp(38px, 12vw, 60px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 1px;

  text-shadow:
    0 0 8px rgba(255, 229, 131, 0.8),
    0 0 22px rgba(255, 215, 89, 0.38);

  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.95),
    0 8px 22px rgba(0, 0, 0, 0.32);
}

/* POSITION QUIZ */

.question-label {
  margin: 5px 0 9px;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.position-btn {
  min-height: 45px;
  padding: 10px 5px;

  color: white;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.11),
      rgba(255, 255, 255, 0.055)
    );

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;

  font-size: 12px;
  font-weight: 950;
  cursor: pointer;

  transition:
    transform 0.17s ease,
    border-color 0.17s ease,
    background 0.17s ease,
    box-shadow 0.17s ease;
}

.position-btn.active {
  color: #0b0d0b;
  background:
    linear-gradient(180deg, var(--gold-light), var(--gold));
  border-color: var(--gold-light);

  box-shadow:
    0 0 19px rgba(226, 195, 107, 0.3);
}

.question-text {
  min-height: 44px;
  margin: 10px auto 3px;
  padding: 12px;

  color: #f5f7f5;
  background: rgba(255, 255, 255, 0.055);
  border-left: 4px solid var(--gold);
  border-radius: 8px;

  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

/* LARGE BUTTONS */

.primary,
.secondary,
.grade {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-weight: 950;
  text-transform: uppercase;

  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.primary {
  min-height: 55px;
  margin-top: 10px;
  padding: 15px;

  color: #0a0c09;
  background:
    linear-gradient(180deg, #fff0ad, #d0ae4d);

  border-radius: 14px;

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.72),
    0 8px 0 #816817,
    0 15px 26px rgba(0, 0, 0, 0.37);
}

.secondary {
  min-height: 49px;
  margin-top: 14px;
  padding: 13px;

  color: white;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.07)
    );

  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 13px;
}

.secondary:disabled {
  opacity: 0.38;
  cursor: default;
}

.primary:active,
.secondary:active,
.position-btn:active,
.grade:active {
  transform: translateY(3px) scale(0.985);
}

.primary:active {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.65),
    0 4px 0 #816817,
    0 8px 16px rgba(0, 0, 0, 0.32);
}

/* REVEAL AREA */

.reveal,
.answer {
  margin-top: 21px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.answer-title {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 1.4px;
}

.play-image {
  display: block;
  width: 100%;
  max-height: 72vh;
  margin: 14px auto 11px;
  object-fit: contain;

  background: white;
  border: 3px solid var(--gold);
  border-radius: 13px;

  box-shadow:
    0 15px 38px rgba(0, 0, 0, 0.58),
    0 0 23px rgba(226, 195, 107, 0.2);
}

#imageStatus {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* GRADING */

.grade-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.grade {
  min-height: 52px;
  padding: 12px 4px;
  border-radius: 12px;
  color: white;
  font-size: 11px;

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.25);
}

.missed {
  background:
    linear-gradient(180deg, #e15757, #a72929);
}

.almost {
  color: #181305;
  background:
    linear-gradient(180deg, #ffd66d, #c58a16);
}

.got {
  background:
    linear-gradient(180deg, #4ee184, #168b47);
}

/* STATS */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.stats div {
  padding: 14px 5px;
  text-align: center;

  background:
    linear-gradient(
      180deg,
      rgba(3, 8, 5, 0.88),
      rgba(9, 28, 16, 0.89)
    );

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.25);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--gold-light);
  font-size: 26px;
  line-height: 1;
}

.stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.rule {
  margin: 16px auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.hidden {
  display: none;
}

/* SMOOTH MOVEMENT */

.answer:not(.hidden),
.reveal:not(.hidden) {
  animation: revealUp 0.28s ease both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(11px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ANSWER FEEDBACK */

.card.result-got {
  animation: correctFlash 0.65s ease;
}

.card.result-almost {
  animation: almostFlash 0.65s ease;
}

.card.result-missed {
  animation: missedShake 0.65s ease;
}

@keyframes correctFlash {
  35% {
    transform: scale(1.012);
    box-shadow:
      0 0 0 4px rgba(50, 198, 107, 0.9),
      0 0 55px rgba(50, 198, 107, 0.7);
  }
}

@keyframes almostFlash {
  35% {
    box-shadow:
      0 0 0 4px rgba(229, 173, 49, 0.86),
      0 0 45px rgba(229, 173, 49, 0.55);
  }
}

@keyframes missedShake {
  25% {
    transform: translateX(-5px);
    box-shadow:
      0 0 0 4px rgba(215, 71, 71, 0.8),
      0 0 38px rgba(215, 71, 71, 0.48);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-3px);
  }
}

@media (max-width: 380px) {
  .app {
    padding-left: 11px;
    padding-right: 11px;
  }

  .card {
    padding-left: 13px;
    padding-right: 13px;
  }

  .football-icon {
    display: none;
  }
}

.voice-label {
  display: block;
  margin: 14px 0 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 2px;
}

.voice-select {
  width: 100%;
  min-height: 46px;
  margin-bottom: 14px;
  padding: 10px 12px;
  color: white;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
}

/* =========================================================
   CALABASAS RAMS HERO HEADER
   ========================================================= */

.rams-hero {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 135px;
  align-items: stretch;
  min-height: 235px;
  margin-bottom: 16px;
  overflow: hidden;

  border: 1px solid rgba(232, 194, 88, 0.75);
  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22),
      rgba(0, 0, 0, 0.78)
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 72px,
      rgba(255, 255, 255, 0.12) 73px,
      transparent 75px
    ),
    repeating-linear-gradient(
      0deg,
      #124d28 0,
      #124d28 46px,
      #0d3d20 47px,
      #0d3d20 94px
    );

  box-shadow:
    0 24px 65px rgba(0, 0, 0, 0.68),
    inset 0 1px rgba(255, 255, 255, 0.16),
    inset 0 -5px #b68b26;
}

.rams-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 50% -15%,
      rgba(255, 224, 133, 0.38),
      transparent 45%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.28),
      transparent 33%,
      transparent 68%,
      rgba(0, 0, 0, 0.18)
    );
}

.rams-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 61px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(232, 194, 88, 0.85),
      transparent
    );
}

.hero-logo-area,
.hero-copy,
.hero-photo-area {
  position: relative;
  z-index: 2;
}

.hero-logo-area {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 0 0 13px;
}

.team-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;

  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 20px rgba(222, 177, 60, 0.68));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px 5px 19px;
  text-align: center;
}

.hero-stars {
  margin-bottom: 3px;
  color: #edc55e;
  font-size: 14px;
  letter-spacing: 4px;
  text-shadow: 0 0 13px rgba(237, 197, 94, 0.65);
}

.hero-city {
  margin: 0;
  color: #f7f7f4;
  font-size: clamp(17px, 5vw, 27px);
  font-weight: 900;
  letter-spacing: clamp(4px, 1.5vw, 8px);
  line-height: 1;
}

.hero-team {
  margin: 3px 0 0;
  color: #d9ad45;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(58px, 16vw, 92px);
  font-weight: 1000;
  letter-spacing: 1px;
  line-height: 0.85;

  -webkit-text-stroke: 1px #fff0b3;

  text-shadow:
    0 2px 0 #694810,
    0 5px 0 #241500,
    0 0 25px rgba(226, 181, 70, 0.4);
}

.hero-rule {
  width: 88%;
  height: 2px;
  margin: 11px auto 9px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #e5ba52 20%,
      #e5ba52 80%,
      transparent
    );
}

.hero-player-name {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 11px;
  margin: 0;

  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(28px, 8vw, 43px);
  letter-spacing: 1px;
  line-height: 1;
}

.hero-player-name span {
  color: white;
}

.hero-player-name strong {
  color: #e1b54d;
}

.hero-position {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 8px 0 0;

  color: #f3f3ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero-position span {
  color: #e8bd53;
  font-size: 16px;
}

.hero-position i {
  width: 1px;
  height: 19px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-photo-area {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-photo {
  display: block;
  width: 155px;
  height: 218px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 75px 0 0 0;

  filter:
    contrast(1.08)
    saturate(0.92)
    drop-shadow(-13px 4px 18px rgba(0, 0, 0, 0.72));

  border-left: 2px solid rgba(226, 182, 70, 0.68);
}

.hero-photo-fallback {
  display: none;
  width: 112px;
  height: 112px;
  margin: auto;
  place-items: center;

  color: #111;
  background: #e5bd5e;
  border: 4px solid white;
  border-radius: 50%;

  font-size: 42px;
  font-weight: 1000;
}

/* Stronger black-and-gold app treatment */

.card {
  border-color: rgba(224, 180, 67, 0.5);

  background:
    linear-gradient(
      180deg,
      rgba(4, 6, 5, 0.97),
      rgba(6, 12, 8, 0.95)
    );

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.65),
    inset 0 1px rgba(255, 255, 255, 0.1);
}

.card::before {
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #d9aa39,
      #fff0a4,
      #d9aa39,
      transparent
    );
}

.stats div {
  border-color: rgba(217, 170, 57, 0.33);

  background:
    linear-gradient(
      180deg,
      rgba(5, 8, 6, 0.95),
      rgba(11, 17, 13, 0.95)
    );
}

@media (max-width: 500px) {
  .rams-hero {
    grid-template-columns: 82px minmax(0, 1fr) 96px;
    min-height: 205px;
    border-radius: 20px;
  }

  .hero-logo-area {
    padding: 34px 0 0 7px;
  }

  .team-logo {
    width: 88px;
    height: 88px;
  }

  .hero-photo {
    width: 112px;
    height: 184px;
  }

  .hero-copy {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-stars {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero-city {
    font-size: 14px;
    letter-spacing: 3px;
  }

  .hero-team {
    font-size: clamp(48px, 15vw, 69px);
  }

  .hero-player-name {
    gap: 7px;
    font-size: clamp(24px, 7vw, 33px);
  }

  .hero-position {
    gap: 7px;
    font-size: 9px;
    letter-spacing: 1.3px;
  }

  .hero-position span {
    font-size: 13px;
  }
}

@media (max-width: 365px) {
  .rams-hero {
    grid-template-columns: 67px minmax(0, 1fr) 79px;
  }

  .team-logo {
    width: 72px;
    height: 72px;
  }

  .hero-photo {
    width: 92px;
  }

  .hero-stars {
    display: none;
  }
}


/* ===== HERO IMAGE ===== */

.hero-banner{
    width:100%;
    margin-bottom:18px;
    border-radius:22px;
    overflow:hidden;

    border:2px solid rgba(220,180,70,.55);

    box-shadow:
        0 20px 50px rgba(0,0,0,.45);
}

.hero-banner img{
    display:block;
    width:100%;
    height:auto;
}

