/* Quiz-show redesign: one cohesive stage-like visual system with CSS-first motion. */
:root {
  --stage-night: #02040d;
  --stage-deep: #071330;
  --stage-panel: rgba(5, 11, 28, 0.96);
  --stage-panel-soft: rgba(11, 25, 61, 0.94);
  --stage-border: rgba(114, 173, 255, 0.28);
  --stage-glow: rgba(88, 148, 255, 0.24);
  --stage-ice: #8ddfff;
  --ink-strong: #fcf7ef;
  --ink-soft: rgba(243, 236, 224, 0.82);
  --ink-muted: rgba(188, 196, 220, 0.7);
  --gold: #f2bb4d;
  --gold-deep: #b97a15;
  --gold-soft: #ffe6a9;
  --emerald: #2fb48f;
  --emerald-soft: #97f0c6;
  --royal: #1848af;
  --royal-soft: #4f7ae5;
  --royal-bright: #80b8ff;
  --danger-soft: #ffd4ca;
  --danger-ink: #7e271b;
  --panel-shadow: 0 2.4rem 5.2rem rgba(0, 0, 0, 0.48);
  --round-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.42);
}

html {
  background: #050915;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink-strong);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 229, 171, 0.22), transparent 22%),
    radial-gradient(circle at 18% 8%, rgba(92, 154, 255, 0.24), transparent 24%),
    radial-gradient(circle at 82% 6%, rgba(92, 154, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 38%, rgba(22, 56, 144, 0.34), transparent 48%),
    linear-gradient(180deg, #02040d 0%, #040917 28%, #07142e 62%, #050913 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(116deg, rgba(90, 147, 255, 0.16) 0%, transparent 28%),
    linear-gradient(244deg, rgba(90, 147, 255, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 50% 8%, rgba(255, 221, 146, 0.08), transparent 24%);
  filter: blur(1px);
}

body::after {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 216, 122, 0.14), transparent 24%),
    radial-gradient(circle at 50% 104%, rgba(84, 145, 255, 0.14), transparent 28%);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1260px;
}

#quizExperience {
  position: relative;
  padding: 2.75rem 0 4rem;
}

#quizExperience::before,
#quizExperience::after {
  content: "";
  position: absolute;
  top: 0;
  width: 28vw;
  min-width: 180px;
  height: 16rem;
  pointer-events: none;
  opacity: 0.42;
  filter: blur(18px);
}

#quizExperience::before {
  left: -8vw;
  background: radial-gradient(circle, rgba(103, 161, 255, 0.52), transparent 66%);
}

#quizExperience::after {
  right: -8vw;
  background: radial-gradient(circle, rgba(255, 199, 86, 0.4), transparent 68%);
}

.heading-font {
  font-family: "Righteous", cursive;
}

.tagline-font {
  font-family: "Indie Flower", cursive;
}

.quiz-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(122, 175, 255, 0.24);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 50% -6%, rgba(255, 224, 151, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(12, 21, 52, 0.98), rgba(5, 11, 28, 0.98) 30%, rgba(2, 7, 19, 0.99) 100%);
  box-shadow:
    var(--panel-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 213, 125, 0.04),
    0 0 4rem rgba(42, 87, 184, 0.16);
  padding: clamp(1.35rem, 2.8vw, 2.6rem);
}

.quiz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 208, 112, 0.18), transparent 20%),
    radial-gradient(circle at top left, rgba(111, 176, 255, 0.14), transparent 20%),
    radial-gradient(circle at 50% 18%, rgba(69, 116, 222, 0.16), transparent 38%);
  pointer-events: none;
}

.quiz-card::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 1.1rem;
  height: 0.72rem;
  pointer-events: none;
  opacity: 0.78;
  background:
    radial-gradient(circle, rgba(255, 231, 170, 0.94) 0 34%, transparent 35%) left center/1.7rem 0.72rem repeat-x;
}

.quiz-card > * {
  position: relative;
  z-index: 1;
}

.hero-intro {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 2rem 0 2.4rem;
  text-align: center;
}

.hero-intro::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: -1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 211, 118, 0.76), rgba(130, 186, 255, 0.44), transparent);
}

.show-broadcast {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.broadcast-pill,
.broadcast-copy {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.broadcast-pill {
  color: #130d03;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 1rem 2rem rgba(242, 187, 77, 0.22);
}

.broadcast-copy {
  color: var(--ink-soft);
  background: linear-gradient(180deg, rgba(25, 50, 114, 0.72), rgba(10, 19, 46, 0.74));
  border: 1px solid rgba(118, 179, 255, 0.18);
}

.hero-intro h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff8ea;
  text-shadow:
    0 0 2rem rgba(255, 206, 108, 0.18),
    0 0 3.4rem rgba(97, 157, 255, 0.14),
    0 0.75rem 1.6rem rgba(0, 0, 0, 0.34);
}

.hero-intro p:not(.tagline-font) {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-soft);
}

.hero-intro a:not(.btn) {
  color: #ffe3b1;
  font-weight: 700;
}

.tagline-font {
  margin-bottom: 1.15rem;
  color: #9ccfff;
  font-family: "Righteous", cursive;
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#messageInfoDialog {
  width: min(100%, 48rem);
  margin-bottom: 1.2rem;
  border: 1px solid rgba(118, 176, 255, 0.2);
  border-radius: 1.25rem;
  color: #fff8ef;
  background:
    linear-gradient(135deg, rgba(255, 198, 90, 0.18), rgba(89, 144, 255, 0.08)),
    linear-gradient(180deg, rgba(15, 30, 74, 0.98), rgba(8, 18, 44, 0.96));
  box-shadow:
    0 1.3rem 2.6rem rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 214, 125, 0.04);
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0;
}

.share-links a {
  margin: 0;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.share-links a:hover,
.share-links a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 1.6rem rgba(0, 0, 0, 0.2);
  filter: saturate(1.05);
}

.show-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 0 auto 1.4rem;
  padding: 1.15rem 1.85rem;
  border: 1px solid rgba(114, 173, 255, 0.22);
  border-radius: 1.55rem;
  background:
    radial-gradient(circle at 14% 50%, rgba(255, 212, 110, 0.14), transparent 18%),
    radial-gradient(circle at 86% 50%, rgba(114, 173, 255, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(15, 31, 77, 0.98), rgba(6, 16, 40, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1.1rem 2rem rgba(0, 0, 0, 0.22);
}

.show-banner::before,
.show-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 1rem rgba(242, 187, 77, 0.28);
}

.show-banner::before {
  left: 0.8rem;
}

.show-banner::after {
  right: 0.8rem;
}

.show-stage-pill {
  margin: 0 0 0.4rem;
  color: #a9d0ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.show-stage-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.85rem);
  color: #fff8ea;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.show-stage-copy {
  margin: 0.35rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.show-question-status {
  margin: 0.7rem 0 0;
  color: #dbe9ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.show-progress-chip {
  min-width: 9rem;
  padding: 0.95rem 1.05rem;
  text-align: center;
  border-radius: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 194, 89, 0.1), rgba(255, 194, 89, 0.03)),
    linear-gradient(180deg, rgba(9, 21, 56, 0.96), rgba(7, 16, 38, 0.98));
  border: 1px solid rgba(255, 208, 116, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(114, 173, 255, 0.06);
}

.show-progress-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#stagePercent {
  font-size: 2.25rem;
  line-height: 1;
  color: #fff6e0;
  text-shadow: 0 0 1rem rgba(242, 187, 77, 0.22);
}

.quiz-round-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 auto 1.4rem;
}

.quiz-round-marker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(114, 173, 255, 0.18);
  color: rgba(213, 223, 243, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(18, 37, 84, 0.94), rgba(8, 17, 42, 0.98));
  box-shadow:
    0 1rem 1.85rem rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.quiz-round-dot {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 173, 255, 0.18);
  background: linear-gradient(180deg, rgba(11, 21, 52, 0.98), rgba(8, 16, 36, 0.98));
  color: #a8d5ff;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 216, 124, 0.05);
}

.quiz-round-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.quiz-round-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(161, 203, 255, 0.74);
}

.quiz-round-title {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}

.quiz-round-marker.is-complete {
  color: #eef7ff;
  border-color: rgba(114, 173, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(111, 176, 255, 0.16), rgba(16, 41, 102, 0.26)),
    linear-gradient(180deg, rgba(18, 38, 84, 0.96), rgba(8, 17, 42, 0.98));
}

.quiz-round-marker.is-complete .quiz-round-dot {
  background: linear-gradient(135deg, rgba(114, 173, 255, 0.96), rgba(27, 76, 181, 0.96));
  color: #fff;
  border-color: rgba(185, 221, 255, 0.26);
}

.quiz-round-marker.is-current {
  color: #fff6df;
  border-color: rgba(255, 216, 124, 0.64);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 209, 106, 0.22), transparent 52%),
    linear-gradient(135deg, rgba(255, 197, 90, 0.16), rgba(39, 77, 181, 0.2)),
    linear-gradient(180deg, rgba(18, 38, 84, 0.98), rgba(9, 18, 44, 0.99));
  box-shadow:
    0 1.35rem 2.4rem rgba(0, 0, 0, 0.28),
    0 0 0 0.18rem rgba(255, 205, 103, 0.12),
    0 0 1.2rem rgba(255, 205, 103, 0.12);
  transform: translateY(-2px);
}

.quiz-round-marker.is-current .quiz-round-dot {
  color: #1c1203;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: rgba(255, 219, 147, 0.26);
  box-shadow:
    0 0 1.4rem rgba(242, 187, 77, 0.28),
    0 0 0 0.16rem rgba(255, 216, 124, 0.12);
}

.quiz-round-marker.is-upcoming {
  opacity: 0.92;
}

.quiz-shell .progress {
  height: 1.25rem;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(14, 29, 68, 0.98), rgba(7, 14, 34, 0.98));
  box-shadow:
    inset 0 0.08rem 0.28rem rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 212, 122, 0.1),
    0 0 0.9rem rgba(90, 147, 255, 0.08);
}

.quiz-shell .progress-bar {
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #120d03;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.22) 75%, transparent 75%, transparent),
    linear-gradient(90deg, rgba(93, 154, 255, 0.98) 0%, #9fd2ff 20%, var(--gold-soft) 52%, #f2bb4d 100%);
  background-size: 1rem 1rem, 100% 100%;
  box-shadow:
    0 0 1.4rem rgba(242, 187, 77, 0.22),
    0 0 1.8rem rgba(90, 147, 255, 0.12);
  transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-flow .progress {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-content {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.quiz-content > .quiz-panel {
  position: relative;
  counter-reset: question;
  min-height: 21rem;
  margin: 0 auto;
  padding: clamp(1.15rem, 2.7vw, 1.9rem);
  border: 1px solid rgba(114, 173, 255, 0.18);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 214, 125, 0.1), transparent 22%),
    radial-gradient(circle at 0% 0%, rgba(111, 176, 255, 0.12), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(111, 176, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 20, 49, 0.98), rgba(5, 11, 28, 0.99));
  box-shadow:
    var(--round-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 214, 125, 0.04);
}

.quiz-content > .quiz-panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  pointer-events: none;
  border-radius: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(circle at top, rgba(255, 225, 160, 0.08), transparent 24%),
    radial-gradient(circle at bottom, rgba(91, 154, 255, 0.06), transparent 30%);
}

.quiz-flow .quiz-content {
  max-width: 760px;
}

.quiz-flow .quiz-content > .quiz-panel {
  min-height: 0;
  counter-reset: none;
}

.question-row {
  margin: 0 0 1.2rem;
  padding: 1.15rem 1.05rem 1.2rem;
  border: 1px solid rgba(111, 176, 255, 0.16);
  border-radius: 1.55rem;
  background:
    linear-gradient(180deg, rgba(15, 29, 70, 0.84), rgba(8, 17, 41, 0.88)),
    radial-gradient(circle at top, rgba(255, 214, 125, 0.06), transparent 20%);
  box-shadow:
    0 1rem 1.8rem rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-left: 0;
  margin-right: 0;
}

.question-row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.question-row:last-child {
  margin-bottom: 0;
  padding-bottom: 1.2rem;
}

.quiz-flow .question-row[hidden] {
  display: none !important;
}

.quiz-flow .question-row {
  margin: 0;
  padding: 1.45rem 1.2rem 1.35rem;
}

.question-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(255, 214, 125, 0.18);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(11, 22, 53, 0.98), rgba(8, 16, 38, 0.98));
  color: #fff8ed;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.quiz-flow .question-label {
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.2rem 1.4rem;
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  line-height: 1.45;
}

.question-label::before {
  counter-increment: question;
  content: "Q" counter(question);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 2.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  color: #1a1104;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow:
    0 0.9rem 1.7rem rgba(242, 187, 77, 0.18),
    0 0 0 0.18rem rgba(255, 225, 165, 0.1);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quiz-flow .question-label::before {
  content: "Question " attr(data-question-number);
  min-width: 0;
  padding: 0.3rem 0.9rem;
  font-size: 0.76rem;
}

.option-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.option-group .btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.8rem;
  margin: 0;
  padding: 1rem 1.35rem;
  white-space: normal;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  border: 1px solid rgba(114, 173, 255, 0.24);
  color: #fff9f1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(24, 48, 112, 0.98), rgba(10, 19, 48, 0.99));
  box-shadow:
    0 1.1rem 1.95rem rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition:
    transform 0.16s ease,
    border-color 0.18s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    filter 0.2s ease;
}

.option-group .btn::before,
.option-group .btn::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.option-group .btn::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 224, 151, 0.08), transparent 18%, transparent 82%, rgba(132, 190, 255, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 48%);
  opacity: 1;
}

.option-group .btn::after {
  left: 1rem;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.12rem;
  border: 2px solid rgba(255, 214, 125, 0.42);
  background: rgba(255, 214, 125, 0.06);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.option-group .btn:hover,
.option-group .btn:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 125, 0.54);
  box-shadow:
    0 1.35rem 2.2rem rgba(0, 0, 0, 0.28),
    0 0 0 0.16rem rgba(255, 214, 125, 0.08),
    0 0 1.2rem rgba(90, 147, 255, 0.12);
  filter: saturate(1.08);
}

.option-group .btn:active {
  transform: translateY(0);
}

.option-group .btn.active {
  color: #170d04;
  border-color: rgba(255, 219, 147, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, #ffeab7 0%, #ffd782 16%, #f2bb4d 50%, #ffd782 84%, #ffeab7 100%);
  box-shadow:
    0 1.4rem 2.5rem rgba(242, 187, 77, 0.24),
    0 0 0 0.2rem rgba(255, 214, 125, 0.16),
    0 0 1.8rem rgba(255, 214, 125, 0.22);
  transform: translateY(-2px) scale(1.005);
}

.option-group .btn.active::after {
  background: #1b0f02;
  border-color: rgba(27, 15, 2, 0.96);
  box-shadow: 0 0 0 0.18rem rgba(255, 246, 223, 0.34);
  transform: translateY(-50%) rotate(45deg) scale(1.08);
}

.quiz-flow .option-group {
  grid-template-columns: 1fr;
  gap: 0.9rem;
  max-width: 40rem;
  margin: 0 auto;
}

.quiz-flow .option-group .btn {
  justify-content: flex-start;
  min-height: 4.2rem;
  padding: 1.1rem 1.35rem 1.1rem 2.85rem;
  text-align: left;
  font-size: 1rem;
}

.quiz-flow .option-group .btn::after {
  left: 1.1rem;
}

.validation-alert {
  margin-bottom: 1.15rem;
  border: 1px solid rgba(255, 201, 190, 0.28);
  border-radius: 1rem;
  color: var(--danger-ink);
  background: linear-gradient(135deg, rgba(255, 212, 202, 0.98), rgba(255, 239, 235, 0.96));
  box-shadow: 0 1rem 1.8rem rgba(126, 39, 27, 0.12);
}

.validation-alert[hidden] {
  display: none !important;
}

.result-panel {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 212, 122, 0.16), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(99, 164, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(10, 20, 49, 0.99), rgba(4, 9, 23, 0.99));
}

.result-board {
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}

.finish-kicker {
  margin: 0;
  color: #a9d0ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#resultCalc {
  min-height: 3.7rem;
  padding: 1rem 2.15rem;
  border: 1px solid rgba(255, 213, 125, 0.34);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, #ffe7ab 0%, #ffd678 18%, #f2bb4d 52%, #ffd678 82%, #ffe7ab 100%);
  color: #160d03;
  box-shadow:
    0 1.5rem 2.8rem rgba(242, 187, 77, 0.24),
    0 0 0 0.16rem rgba(255, 214, 125, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#resultCalc.reveal-armed {
  animation: revealTrigger 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

#resultCalc:hover,
#resultCalc:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 1.7rem 3rem rgba(242, 187, 77, 0.3),
    0 0 0 0.18rem rgba(255, 214, 125, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: saturate(1.04);
}

.result-stage {
  position: relative;
  overflow: hidden;
  width: min(100%, 48rem);
  padding: 1.7rem 1.3rem 1.35rem;
  border: 1px solid rgba(114, 173, 255, 0.22);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 214, 125, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(104, 170, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(11, 23, 57, 0.98), rgba(5, 10, 27, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1.4rem 2.8rem rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 214, 125, 0.04);
  transition: transform 0.32s ease, opacity 0.32s ease, box-shadow 0.32s ease;
}

.result-stage::before {
  content: "";
  position: absolute;
  inset: -22% -8%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 231, 175, 0.34), transparent 26%),
    linear-gradient(115deg, transparent 18%, rgba(255, 242, 211, 0.16) 46%, transparent 68%);
  transform: translateX(-16%) scale(0.96);
}

.result-stage::after {
  content: "";
  position: absolute;
  inset: 1rem;
  pointer-events: none;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 214, 125, 0.08), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(105, 168, 255, 0.08), transparent 34%);
}

.result-panel:not(.finish-revealed) .result-stage {
  opacity: 0.84;
  transform: translateY(6px) scale(0.994);
}

.result-label {
  margin-bottom: 0.45rem;
  color: rgba(167, 206, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

#points {
  margin-bottom: 0.55rem;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: #fff7ea;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 2.4rem rgba(242, 187, 77, 0.26),
    0 0 3rem rgba(90, 147, 255, 0.12),
    0 0.55rem 1.1rem rgba(0, 0, 0, 0.28);
}

.result-score {
  margin: 0 auto 1.05rem;
  max-width: 32rem;
  color: rgba(255, 239, 207, 0.8);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#quote {
  margin: 0 auto 1.2rem;
  max-width: 38rem;
  padding: 1.05rem 1.15rem;
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(255, 240, 205, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 214, 125, 0.18);
  color: #fff6e7;
  font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  line-height: 1.55;
}

.result-herd {
  padding: 1rem 1rem 0.95rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(114, 173, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(12, 24, 57, 0.92), rgba(7, 14, 33, 0.94));
}

#cowImages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
}

#cowImages img {
  width: 44px;
  margin: 0;
  filter: drop-shadow(0 0.8rem 0.95rem rgba(0, 0, 0, 0.18));
  transform-origin: center bottom;
}

.feedback-stage {
  position: relative;
  overflow: hidden;
  width: min(100%, 48rem);
  padding: 1.4rem 1.2rem 1.25rem;
  border: 1px solid rgba(114, 173, 255, 0.18);
  border-radius: 1.65rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 125, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(10, 20, 49, 0.98), rgba(5, 11, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1.3rem 2.4rem rgba(0, 0, 0, 0.22);
  text-align: left;
}

.feedback-copy {
  margin-bottom: 1rem;
}

.feedback-kicker {
  margin-bottom: 0.35rem;
  color: rgba(164, 205, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feedback-title {
  margin-bottom: 0.35rem;
  color: #fff7ea;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-text {
  margin-bottom: 0;
  color: rgba(255, 239, 207, 0.74);
}

.feedback-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.feedback-choice {
  min-height: 3.3rem;
  min-width: 9.5rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 173, 255, 0.24);
  color: #fff7ea;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(24, 48, 112, 0.98), rgba(10, 19, 48, 0.99));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.feedback-choice:hover,
.feedback-choice:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 125, 0.56);
  box-shadow:
    0 1.1rem 1.9rem rgba(0, 0, 0, 0.22),
    0 0 0 0.16rem rgba(255, 214, 125, 0.08),
    0 0 1.1rem rgba(90, 147, 255, 0.12);
  filter: saturate(1.04);
}

.feedback-choice.is-selected,
.feedback-choice[aria-pressed="true"] {
  color: #221303;
  border-color: rgba(255, 219, 147, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, #ffe8b1 0%, #ffd781 22%, #f2bb4d 50%, #ffd781 78%, #ffe8b1 100%);
  box-shadow:
    0 1.3rem 2.1rem rgba(255, 177, 55, 0.2),
    0 0 0 0.18rem rgba(255, 214, 125, 0.12);
}

.feedback-comment-shell {
  padding-top: 0.35rem;
}

.feedback-comment-title {
  margin-bottom: 0.3rem;
  color: #fff2d0;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feedback-comment-help {
  margin-bottom: 0.75rem;
  color: rgba(255, 239, 207, 0.68);
  font-size: 0.94rem;
}

.cusdis-shell {
  min-height: 5.25rem;
  padding: 0.95rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(114, 173, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(9, 18, 42, 0.96), rgba(5, 11, 27, 0.96));
}

.cusdis-placeholder {
  color: rgba(255, 239, 207, 0.72);
  font-size: 0.96rem;
  line-height: 1.5;
}

.cusdis-placeholder[data-tone="warning"] {
  color: #ffe1a6;
}

.cusdis-thread iframe {
  border-radius: 0.95rem;
}

.quiz-shell.is-auto-advancing .quiz-actions .btn-primary {
  box-shadow:
    0 1.2rem 2rem rgba(0, 0, 0, 0.22),
    0 0 0 0.16rem rgba(255, 214, 125, 0.12);
  filter: saturate(1.06);
}

.quiz-actions .btn {
  min-height: 3.2rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 1.1rem 2rem rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.quiz-actions {
  gap: 1rem;
}

.quiz-nav-buttons {
  gap: 0.75rem;
}

.quiz-nav-note {
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.quiz-actions .btn:hover:not(:disabled),
.quiz-actions .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 1.2rem 2.1rem rgba(0, 0, 0, 0.22);
  filter: saturate(1.04);
}

.quiz-actions .btn:disabled {
  box-shadow: none;
}

.quiz-actions .btn-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, #ffe9b4 0%, #ffd881 20%, #f2bb4d 52%, #ffd881 82%, #ffe9b4 100%);
  border-color: rgba(255, 214, 125, 0.34);
  color: #1d1104;
}

.quiz-actions .btn-outline-secondary {
  color: #eef5ff;
  border-color: rgba(114, 173, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(22, 45, 104, 0.92), rgba(9, 19, 44, 0.96));
}

.mt-4 > .btn.btn-secondary,
.mt-4 > .btn.btn-sm.btn-secondary {
  color: #eef5ff;
  border-color: rgba(114, 173, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(21, 43, 100, 0.92), rgba(9, 19, 44, 0.96));
}

h6.text-muted {
  color: rgba(255, 241, 211, 0.58) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-bump,
.panel-enter,
.attention-pop,
.result-pop,
.choice-lock,
.result-spotlight {
  animation-duration: 0.36s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.status-bump {
  animation-name: statusBump;
}

.panel-enter {
  animation-name: panelEnter;
}

.attention-pop {
  animation-name: alertShake;
}

.result-pop {
  animation-name: resultPop;
}

.choice-lock {
  animation-name: choiceLock;
}

.result-spotlight {
  animation-name: resultSpotlight;
}

.result-panel.result-spotlight .result-stage {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1.6rem 2.9rem rgba(0, 0, 0, 0.3),
    0 0 0 0.2rem rgba(255, 214, 125, 0.1),
    0 0 2.8rem rgba(255, 210, 109, 0.14);
}

.result-stage.result-spotlight::before {
  animation: resultSweep 0.86s cubic-bezier(0.22, 1, 0.36, 1);
}

.result-panel.finish-revealed .result-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1.5rem 2.8rem rgba(0, 0, 0, 0.28),
    0 0 0 0.16rem rgba(255, 214, 125, 0.08);
}

.result-panel.finish-revealed .result-label {
  animation: revealCard 0.28s ease both;
}

.result-panel.finish-revealed #points {
  animation: revealAmount 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-panel.finish-revealed .result-score {
  animation: revealCard 0.34s ease 0.06s both;
}

.result-panel.finish-revealed #quote {
  animation: revealCard 0.38s ease 0.12s both;
}

.result-panel.finish-revealed .result-herd {
  animation: revealCard 0.38s ease 0.16s both;
}

.result-panel.finish-revealed #cowImages img {
  animation: cowPop 0.4s ease both;
}

.option-group .btn:focus-within,
.quiz-actions .btn:focus-visible,
#resultCalc:focus-visible,
.share-links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.24rem rgba(255, 208, 115, 0.18);
}

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statusBump {
  0% {
    transform: translateY(6px);
    opacity: 0.9;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes alertShake {
  0% {
    opacity: 0;
    transform: translateX(-8px);
  }

  45% {
    opacity: 1;
    transform: translateX(4px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes resultPop {
  0% {
    opacity: 0.94;
    transform: scale(0.985);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes resultSpotlight {
  0% {
    opacity: 0.96;
    transform: scale(0.99);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealCard {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealAmount {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    letter-spacing: 0.08em;
  }

  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.02em;
  }
}

@keyframes cowPop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.88);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes revealTrigger {
  0% {
    transform: scale(1);
    box-shadow:
      0 1.2rem 2.4rem rgba(241, 179, 78, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  50% {
    transform: scale(0.97);
    box-shadow:
      0 0.75rem 1.6rem rgba(241, 179, 78, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 1.45rem 2.8rem rgba(241, 179, 78, 0.32),
      0 0 0 0.18rem rgba(255, 218, 140, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

@keyframes resultSweep {
  0% {
    opacity: 0;
    transform: translateX(-18%) scale(0.96);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(14%) scale(1.03);
  }
}

@keyframes choiceLock {
  0% {
    transform: scale(0.98);
  }

  60% {
    transform: scale(1.015);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 1199.98px) {
  .quiz-round-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  #quizExperience {
    padding-top: 2rem;
  }

  .show-banner {
    grid-template-columns: 1fr;
  }

  .show-progress-chip {
    justify-self: start;
  }

  .quiz-flow .quiz-content {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  #quizExperience {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
  }

  .quiz-card {
    padding: 1rem;
    border-radius: 1.35rem;
  }

  .quiz-card::after {
    left: 0.9rem;
    right: 0.9rem;
  }

  .hero-intro h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    letter-spacing: 0.03em;
  }

  .show-banner::before,
  .show-banner::after {
    display: none;
  }

  .show-question-status {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .quiz-round-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .quiz-round-marker {
    padding: 0.85rem 0.8rem;
  }

  .quiz-round-title {
    font-size: 0.88rem;
  }

  .question-row {
    padding-bottom: 1.2rem;
  }

  .quiz-flow .question-row {
    padding: 1.2rem 0.95rem 1.1rem;
  }

  .quiz-flow .question-label {
    padding: 1.15rem 0.95rem 1.2rem;
    font-size: clamp(1.05rem, 5vw, 1.45rem);
  }

  .quiz-flow .option-group .btn {
    min-height: 4rem;
    padding: 1rem 1.15rem 1rem 2.7rem;
    font-size: 0.98rem;
  }

  .quiz-actions .btn {
    width: 100%;
  }

  .quiz-nav-note {
    text-align: center;
  }

  .quiz-nav-buttons {
    width: 100%;
  }

  .result-stage {
    padding: 1.1rem 0.95rem 1rem;
  }

  .feedback-stage {
    padding: 1rem 0.95rem;
  }

  .feedback-choice {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .share-links a:hover,
  .quiz-actions .btn:hover:not(:disabled),
  #resultCalc:hover,
  .option-group .btn:hover {
    transform: none !important;
  }
}
