:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1118;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 181, 48, 0.15), transparent 25rem),
    linear-gradient(180deg, #0c1017 0%, #111821 52%, #0b0f15 100%);
}

button {
  font: inherit;
}

.audio-controls {
  position: fixed;
  z-index: 20;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 13, 20, 0.78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.audio-toggle {
  min-width: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 10px;
  color: #aab4c3;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
}

.audio-toggle.is-on {
  border-color: rgba(244, 197, 66, 0.72);
  color: #1a1300;
  background: #f4c542;
}

.shell {
  width: min(1380px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 34px 54px;
}

.home-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 36px;
}

.home-hero p,
.section-head p {
  margin: 0;
  color: #f4c542;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero h1,
.section-head h1 {
  margin: 0;
  color: #f8f7f3;
  font-size: clamp(4.2rem, 8.1vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.score-tile {
  display: grid;
  width: 138px;
  min-width: 138px;
  aspect-ratio: 1.16;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(174, 188, 205, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
}

.score-tile strong {
  font-size: 3rem;
  line-height: 1;
  font-weight: 950;
}

.score-tile span {
  color: #aab4c3;
  font-weight: 750;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.brand-nav {
  display: flex;
  justify-content: flex-start;
  margin: -18px 0 18px;
}

.brand-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  min-height: 230px;
  gap: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  padding: 24px;
  color: #f8fafc;
  background:
    linear-gradient(132deg, color-mix(in srgb, var(--accent) 28%, transparent), transparent 44%),
    linear-gradient(140deg, rgba(31, 43, 60, 0.92), color-mix(in srgb, var(--wash) 20%, rgba(255, 255, 255, 0.06)));
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.18);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.brand-card:hover {
  border-color: color-mix(in srgb, var(--accent) 76%, rgba(255, 255, 255, 0.22));
  transform: translateY(-2px);
}

.brand-card__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  font-size: 2.5rem;
  line-height: 1;
}

.brand-card__body {
  display: grid;
  gap: 8px;
}

.brand-card__body span {
  color: #aeb8c7;
  font-size: 0.98rem;
  font-weight: 950;
  text-transform: uppercase;
}

.brand-card__body strong {
  color: #f9fafb;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 950;
}

.brand-card__body small {
  color: #b8c0cf;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.pack-card,
.mode-card,
.choice-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
}

.pack-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: start;
  min-height: 214px;
  gap: 20px;
  overflow: hidden;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(132deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent 43%),
    linear-gradient(140deg, rgba(31, 43, 60, 0.92), color-mix(in srgb, var(--wash) 19%, rgba(255, 255, 255, 0.06)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.18);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.pack-card:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, rgba(255, 255, 255, 0.28));
  transform: translateY(-2px);
}

.pack-card.is-playable {
  border-color: color-mix(in srgb, var(--accent) 66%, rgba(255, 255, 255, 0.2));
}

.pack-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  font-size: 2.25rem;
  line-height: 1;
}

.pack-card__body {
  display: grid;
  gap: 8px;
}

.pack-card__kicker {
  color: #aeb8c7;
  font-size: 0.98rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pack-card__title {
  color: #f9fafb;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 950;
}

.pack-card__subtitle {
  color: #b8c0cf;
  font-size: 1.28rem;
  font-weight: 650;
  line-height: 1.45;
}

.pack-card__badge {
  min-width: 72px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 13px;
  color: #f4c542;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
  font-weight: 950;
}

.home-note {
  margin: 30px 0 0;
  color: #c7ceda;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
}

.topbar,
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 22px;
  color: #c7d2dc;
  font-weight: 800;
}

.ghost-button,
.primary-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 14px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.primary-button {
  border: 0;
  color: #101418;
  background: #f8fafc;
  font-weight: 900;
}

.section-head {
  display: grid;
  gap: 10px;
  padding: 22px 0;
}

.mode-list {
  display: grid;
  gap: 10px;
}

.mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 16px;
  text-align: left;
  cursor: pointer;
}

.mode-card span {
  display: grid;
  gap: 4px;
}

.mode-card small {
  color: #9ca8b8;
  font-size: 0.78rem;
  font-weight: 850;
}

.mode-card:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.compact-head h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.team-grid,
.round-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.team-card,
.round-card,
.setup-panel,
.result-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
}

.team-card {
  display: grid;
  min-height: 158px;
  align-content: end;
  gap: 8px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, transparent), transparent 50%),
    rgba(255, 255, 255, 0.07);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.team-card:hover,
.round-card:hover {
  border-color: color-mix(in srgb, var(--accent, #f4c542) 70%, rgba(255, 255, 255, 0.2));
  transform: translateY(-2px);
}

.team-card span {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 950;
}

.team-card strong {
  font-size: 1.65rem;
  line-height: 1.15;
}

.team-card small {
  color: #b8c0cf;
  font-weight: 850;
}

.setup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
}

.setup-panel div {
  display: grid;
  gap: 2px;
}

.setup-panel span {
  color: #9ca8b8;
  font-size: 0.82rem;
  font-weight: 950;
}

.setup-panel strong {
  font-size: 2.3rem;
  line-height: 1;
}

.round-card {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 6px;
  cursor: pointer;
  --accent: #f4c542;
}

.round-card strong {
  color: #f8f7f3;
  font-size: 4rem;
  line-height: 1;
}

.round-card span {
  color: #f4c542;
  font-weight: 950;
  text-transform: uppercase;
}

.quiz-shell {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
}

.question-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  min-height: 310px;
  text-align: center;
}

.question-panel p {
  margin: 0;
  color: #d7e0e8;
  font-size: 1.1rem;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  width: min(70vw, 300px);
  aspect-ratio: 1;
  place-items: center;
  border: 12px solid var(--secondary);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.2), transparent 32%),
    var(--primary);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.logo-mark span {
  color: #ffffff;
  font-size: clamp(3rem, 18vw, 6.6rem);
  font-weight: 1000;
}

.hint-card {
  display: grid;
  width: min(100%, 360px);
  min-height: 170px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 1.45rem;
  font-weight: 900;
}

.explanation-card {
  width: min(100%, 640px);
  border: 1px solid rgba(244, 197, 66, 0.22);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(244, 197, 66, 0.08);
  color: #dfe6ef;
  font-weight: 750;
  line-height: 1.55;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-button {
  min-height: 64px;
  padding: 10px;
  cursor: pointer;
  font-weight: 850;
}

.choice-button.is-correct {
  border-color: rgba(91, 214, 138, 0.86);
  background: rgba(91, 214, 138, 0.2);
}

.choice-button.is-wrong {
  border-color: rgba(255, 95, 109, 0.86);
  background: rgba(255, 95, 109, 0.18);
}

.feedback {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding-top: 14px;
  visibility: hidden;
}

.feedback.is-visible {
  visibility: visible;
}

.feedback span {
  color: #f8fafc;
  font-weight: 900;
}

.empty {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #c7d2dc;
  background: rgba(255, 255, 255, 0.06);
}

.result-shell {
  display: grid;
  align-content: start;
}

.result-panel {
  display: grid;
  justify-items: center;
  gap: 24px;
  min-height: 540px;
  align-content: center;
  padding: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(244, 197, 66, 0.18), transparent 22rem),
    rgba(255, 255, 255, 0.07);
}

.result-panel p {
  margin: 0;
  color: #f4c542;
  font-weight: 950;
  text-transform: uppercase;
}

.result-panel h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7rem);
  line-height: 0.92;
}

.result-media {
  display: grid;
  width: min(560px, 100%);
  gap: 8px;
  margin: 0;
}

.result-media video,
.result-media img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.result-media img {
  object-fit: contain;
  padding: 10px;
}

.result-media figcaption {
  color: #f4c542;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.result-media.is-danger figcaption {
  color: #ff6b7a;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(640px, 100%);
  gap: 10px;
}

.result-stats span {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  color: #9ca8b8;
  font-size: 0.78rem;
  font-weight: 950;
}

.result-stats strong {
  color: #f8f7f3;
  font-size: 2.2rem;
  line-height: 1;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 560px) {
  .shell {
    padding: 18px;
  }

  .home-hero {
    display: grid;
    padding-bottom: 24px;
  }

  .home-hero h1 {
    font-size: clamp(3.1rem, 18vw, 4.4rem);
  }

  .score-tile {
    width: 112px;
    min-width: 112px;
  }

  .brand-grid,
  .pack-grid,
  .choice-grid,
  .team-grid,
  .round-grid {
    grid-template-columns: 1fr;
  }

  .pack-card {
    grid-template-columns: 44px 1fr;
    min-height: 178px;
    padding: 18px;
  }

  .brand-card {
    grid-template-columns: 44px 1fr;
    min-height: 190px;
    padding: 18px;
  }

  .brand-card .pack-card__badge {
    grid-column: 2;
    justify-self: start;
  }

  .brand-card__icon {
    width: 38px;
    height: 38px;
    font-size: 1.85rem;
  }

  .brand-card__body strong {
    font-size: 1.5rem;
  }

  .brand-card__body small {
    font-size: 0.98rem;
  }

  .pack-card__badge {
    grid-column: 2;
    justify-self: start;
  }

  .pack-card__icon {
    width: 38px;
    height: 38px;
    font-size: 1.8rem;
  }

  .pack-card__title {
    font-size: 1.45rem;
  }

  .pack-card__subtitle {
    font-size: 1rem;
  }

  .question-panel {
    min-height: 300px;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }
}
