:root {
  --ink: #07072f;
  --navy: #0b0b48;
  --navy-light: #15106b;
  --violet: #7758ff;
  --violet-light: #b8a8ff;
  --blue: #3fb9ff;
  --yellow: #ffe45f;
  --pink: #ff5c91;
  --green: #9cff76;
  --white: #f9f8ff;
  --muted: #c4c5ee;
  --panel: rgba(7, 7, 48, 0.78);
  --panel-strong: rgba(8, 7, 50, 0.94);
  --border: rgba(180, 163, 255, 0.62);
  --shadow: 0 20px 70px rgba(0, 0, 30, 0.45);
  font-family: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
  color: var(--white);
  background: var(--ink);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(63, 185, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 12% 85%, rgba(119, 88, 255, 0.24), transparent 30rem),
    linear-gradient(145deg, #05052d 0%, #0d0a53 52%, #090637 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(120, 151, 255, 0.1);
  border-radius: 42% 58% 62% 38%;
  pointer-events: none;
}

body::before {
  top: -18rem;
  left: -10rem;
  transform: rotate(28deg);
  background: rgba(38, 42, 151, 0.2);
}

body::after {
  right: -18rem;
  bottom: -20rem;
  transform: rotate(-18deg);
  background: rgba(33, 70, 171, 0.14);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.26;
  pointer-events: none;
}

.ambient-one {
  top: 18%;
  left: -10rem;
  background: #445cff;
}

.ambient-two {
  right: -9rem;
  bottom: 0;
  background: #7a37ff;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    radial-gradient(circle, rgba(65, 189, 255, 0.75) 1px, transparent 1px);
  background-position: 0 0, 27px 36px;
  background-size: 78px 78px, 112px 112px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  align-items: center;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.brand-bulb {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 228, 95, 0.62);
  border-radius: 15px;
  background: rgba(255, 228, 95, 0.12);
  box-shadow: 0 0 24px rgba(255, 228, 95, 0.18);
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-family: "Mali", sans-serif;
  font-size: 20px;
}

.brand small {
  margin-top: 6px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.header-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  min-height: 52px;
  padding: 10px 14px 10px 22px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 243, 171, 0.88);
  border-radius: 999px;
  color: #11102f;
  background: linear-gradient(135deg, #fff278 0%, #ffd84a 52%, #ffbd35 100%);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 205, 62, 0.34), inset 0 1px rgba(255, 255, 255, 0.92);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-cta::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 26%, rgba(255, 255, 255, 0.8) 47%, transparent 67%);
  background-size: 220% 100%;
  animation: cta-shine 3.4s ease-in-out infinite;
}

.header-cta-label,
.header-cta-arrow {
  position: relative;
  z-index: 1;
}

.header-cta-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #292064;
  font-size: 18px;
  line-height: 1;
}

.header-cta:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 15px 34px rgba(255, 205, 62, 0.46), inset 0 1px rgba(255, 255, 255, 0.92);
}

@keyframes cta-shine {
  0%, 58% { background-position: 135% 0; }
  82%, 100% { background-position: -40% 0; }
}

main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 165px);
  margin: 0 auto;
}

.screen {
  display: none;
  animation: screen-in 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.screen.is-active {
  display: block;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-screen.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  min-height: calc(100vh - 165px);
  align-items: center;
  gap: 56px;
  padding: 16px 0 72px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.camp-logo {
  display: block;
  width: clamp(220px, 18vw, 300px);
  max-width: 78%;
  height: auto;
  margin: 0 0 2px -7px;
  filter: drop-shadow(0 10px 20px rgba(79, 65, 219, 0.3));
}

@media (min-width: 941px) {
  .landing-copy {
    transform: translateY(clamp(-58px, -4vw, -36px));
  }
}

.landing-copy h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-family: "Mali", sans-serif;
  font-size: clamp(45px, 5.25vw, 76px);
  line-height: 1.16;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 0 32px rgba(143, 111, 255, 0.2);
}

.highlight {
  position: relative;
  display: inline-block;
  margin: 0 0.11em;
  color: var(--yellow);
}

.highlight::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 2px;
  left: -3px;
  height: 5px;
  border-radius: 99px;
  background: var(--pink);
  transform: rotate(-2deg);
  opacity: 0.78;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.75;
}

.primary-button {
  display: inline-flex;
  min-height: 58px;
  padding: 14px 18px 14px 24px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 18px;
  color: #121032;
  background: linear-gradient(135deg, #ffe85f, #ffc83d);
  box-shadow: 0 12px 30px rgba(255, 202, 61, 0.22), inset 0 1px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 17px 36px rgba(255, 202, 61, 0.32), inset 0 1px rgba(255, 255, 255, 0.8);
}

.button-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(18, 16, 50, 0.12);
  font-size: 20px;
}

.landing-actions > p {
  margin: 12px 0 0 3px;
  color: #9294cc;
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 9% 8% 4%;
  border: 1px solid rgba(130, 167, 255, 0.27);
  border-radius: 48% 52% 42% 58%;
  background:
    linear-gradient(145deg, rgba(61, 120, 255, 0.16), rgba(48, 24, 152, 0.42)),
    rgba(13, 11, 79, 0.64);
  box-shadow: inset 0 0 70px rgba(75, 138, 255, 0.16), 0 0 80px rgba(65, 105, 255, 0.16);
  transform: rotate(-4deg);
}

.orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(123, 187, 255, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
}

.orbit-one {
  width: 82%;
  height: 44%;
}

.orbit-two {
  width: 55%;
  height: 77%;
  transform: translate(-50%, -50%) rotate(38deg);
}

.floating-card,
.code-panel {
  position: absolute;
  display: flex;
  z-index: 3;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(156, 146, 255, 0.7);
  border-radius: 17px;
  background: rgba(9, 8, 60, 0.82);
  box-shadow: 0 12px 35px rgba(0, 0, 35, 0.35), inset 0 0 22px rgba(111, 92, 255, 0.13), 0 0 20px rgba(103, 92, 255, 0.13);
  backdrop-filter: blur(10px);
}

.floating-card {
  min-width: 146px;
  padding: 12px 15px;
  will-change: transform;
}

.floating-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(78, 83, 219, 0.28);
  font-size: 23px;
}

.floating-card small,
.floating-card strong {
  display: block;
}

.floating-card small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.floating-card strong {
  margin-top: 2px;
  font-size: 16px;
}

.card-physics {
  top: 7%;
  left: 0;
  animation: house-float-physics 5.6s ease-in-out infinite;
}

.card-chemistry {
  top: 15%;
  right: 0;
  animation: house-float-chemistry 6.4s ease-in-out 0.7s infinite;
}

.card-biology {
  right: 3%;
  bottom: 13%;
  animation: house-float-biology 5.9s ease-in-out 1.1s infinite;
}

@keyframes house-float-physics {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  50% { transform: translate3d(8px, -15px, 0) rotate(-1deg); }
}

@keyframes house-float-chemistry {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(3deg); }
  50% { transform: translate3d(-10px, 13px, 0) rotate(5deg); }
}

@keyframes house-float-biology {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(-7px, -12px, 0) rotate(-4deg); }
}

.mascot-stage {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 330px;
  height: 330px;
  isolation: isolate;
  overflow: visible;
  transform: translate(-50%, -45%);
}

.mascot-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid rgba(99, 185, 255, 0.68);
  border-radius: 48% 52% 46% 54%;
  background: radial-gradient(circle at 48% 34%, rgba(81, 175, 255, 0.28), rgba(39, 26, 145, 0.35) 54%, rgba(7, 6, 50, 0.8));
  box-shadow: inset 0 0 50px rgba(66, 180, 255, 0.2), 0 0 48px rgba(51, 145, 255, 0.27);
  transform: rotate(6deg);
}

.black-hole-canvas {
  position: absolute;
  z-index: 1;
  top: -19%;
  left: -47%;
  display: block;
  width: 194%;
  height: 138%;
  opacity: 1;
  filter: saturate(0.9) contrast(1.05) brightness(1.04) drop-shadow(0 0 26px rgba(231, 187, 132, 0.15));
  pointer-events: none;
  transform-origin: 50% 51%;
}

.mascot {
  position: absolute;
  z-index: 2;
  inset: 16px 9px 0;
  display: flex;
  align-items: flex-end;
}

.mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 25, 0.42));
}

.mascot-spark {
  position: absolute;
  z-index: 4;
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(255, 228, 95, 0.88);
}

.spark-one { top: 24%; left: -5px; font-size: 28px; }
.spark-two { right: 4px; bottom: 23%; font-size: 18px; }

.code-panel {
  bottom: 3%;
  left: 0;
  display: grid;
  min-width: 210px;
  padding: 13px 15px;
  gap: 3px;
  transform: rotate(2deg);
}

.code-panel b { color: var(--pink); font-size: 12px; }
.code-panel span { color: #a9d5ff; font-family: monospace; font-size: 10px; }
.panel-dots { display: flex; gap: 4px; margin-bottom: 4px; }
.panel-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.panel-dots i:nth-child(2) { background: var(--yellow); }
.panel-dots i:nth-child(3) { background: var(--green); }

.neon-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 0 35px rgba(117, 88, 255, 0.08), 0 0 25px rgba(111, 90, 255, 0.11);
  backdrop-filter: blur(18px);
}

.quiz-screen.is-active {
  display: grid;
  min-height: calc(100vh - 165px);
  padding: 26px 0 80px;
  place-items: center;
}

.quiz-shell {
  width: min(920px, 100%);
  padding: clamp(20px, 4vw, 44px);
  border-radius: 32px;
}

.quiz-topline {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 20px;
}

.back-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(184, 168, 255, 0.36);
  border-radius: 14px;
  background: rgba(38, 29, 126, 0.44);
  cursor: pointer;
  font-size: 20px;
}

.back-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.progress-label {
  display: flex;
  margin-bottom: 8px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.progress-label span:last-child {
  color: var(--yellow);
  font-weight: 700;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(116, 109, 219, 0.35);
  border-radius: 999px;
  background: rgba(6, 5, 42, 0.76);
}

.progress-fill {
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  box-shadow: 0 0 16px rgba(63, 185, 255, 0.75);
  transition: width 280ms ease;
}

.lab-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #99a0d0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.lab-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(156, 255, 118, 0.8);
}

.question-area {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: clamp(42px, 7vw, 72px) 0 32px;
  align-items: start;
  gap: 20px;
}

.question-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(63, 185, 255, 0.52);
  border-radius: 20px;
  background: rgba(42, 79, 181, 0.24);
  box-shadow: inset 0 0 20px rgba(63, 185, 255, 0.08), 0 0 24px rgba(63, 185, 255, 0.11);
  font-size: 31px;
}

.question-kicker {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.question-copy h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-family: "Mali", sans-serif;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.35;
  text-wrap: balance;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-button {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 30px;
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(169, 159, 255, 0.34);
  border-radius: 19px;
  color: var(--white);
  background: rgba(17, 13, 85, 0.68);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.option-button:hover {
  border-color: var(--blue);
  background: rgba(32, 28, 125, 0.84);
  box-shadow: 0 0 24px rgba(63, 185, 255, 0.1);
  transform: translateX(4px);
}

.option-button.is-selected {
  border-color: var(--yellow);
  background: rgba(55, 46, 144, 0.92);
  transform: scale(0.992);
}

.option-emoji {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: rgba(79, 67, 181, 0.4);
  font-size: 24px;
}

.option-text {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.45;
}

.option-key {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(190, 181, 255, 0.3);
  border-radius: 9px;
  color: #a3a4d1;
  font-size: 11px;
  font-weight: 700;
}

.quiz-hint {
  margin: 20px 0 0;
  color: #898bbd;
  font-size: 11px;
  text-align: center;
}

.result-screen.is-active {
  display: block;
  padding: 28px 0 82px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
  align-items: start;
  gap: 22px;
}

.result-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: clamp(26px, 5vw, 52px);
  border-radius: 32px;
  isolation: isolate;
}

.result-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--result-glow, rgba(63, 185, 255, 0.3)), transparent 68%);
  opacity: 0.68;
}

.result-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(130deg, transparent 20%, black);
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-stamp,
.result-code {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.result-code {
  color: #8c8fbe;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.86fr) minmax(320px, 1.14fr);
  align-items: center;
  gap: 28px;
}

.result-identity {
  min-width: 0;
}

.result-visual {
  position: relative;
  min-height: 360px;
  margin: 30px 0 4px;
  overflow: hidden;
  border: 1px solid rgba(188, 179, 255, 0.58);
  border-radius: 36px 48px 34px 52px;
  background:
    radial-gradient(circle at 50% 24%, var(--result-glow, rgba(63, 185, 255, 0.32)), transparent 62%),
    linear-gradient(145deg, rgba(56, 45, 151, 0.4), rgba(7, 7, 49, 0.72));
  box-shadow:
    inset 0 0 48px rgba(101, 177, 255, 0.16),
    0 20px 54px rgba(0, 0, 25, 0.34),
    0 0 38px var(--result-glow, rgba(63, 185, 255, 0.18));
  transform: rotate(2deg) scale(1.02);
}

.result-visual::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1px dashed rgba(219, 214, 255, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.result-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.4));
}

.result-combo {
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.result-card h2 {
  margin-bottom: 18px;
  font-family: "Mali", sans-serif;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.result-card blockquote {
  margin: 0 0 24px;
  padding-left: 17px;
  border-left: 4px solid var(--pink);
  color: #f0eaff;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  line-height: 1.5;
}

.result-description {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.result-disclosure {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(160, 151, 241, 0.3);
  border-radius: 20px;
  background: rgba(15, 12, 72, 0.52);
}

.result-disclosure summary,
.action-disclosure summary {
  cursor: pointer;
  list-style: none;
}

.result-disclosure summary::-webkit-details-marker,
.action-disclosure summary::-webkit-details-marker {
  display: none;
}

.result-disclosure summary:focus-visible,
.action-disclosure summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}

.result-disclosure summary {
  position: relative;
  display: grid;
  padding: 16px 48px 16px 18px;
  gap: 2px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.result-disclosure summary small {
  color: #9496c3;
  font-size: 10px;
  font-weight: 500;
}

.result-disclosure summary::after,
.action-disclosure summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.result-disclosure[open] summary::after,
.action-disclosure[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.result-disclosure-body {
  padding: 20px 18px 18px;
  border-top: 1px solid rgba(160, 151, 241, 0.2);
}

.result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  gap: 12px;
}

.result-meta > div {
  padding: 17px;
  border: 1px solid rgba(160, 151, 241, 0.27);
  border-radius: 18px;
  background: rgba(19, 15, 83, 0.62);
}

.result-meta small,
.result-meta strong {
  display: block;
}

.result-meta small {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.result-meta strong {
  color: #ecebff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.result-note {
  margin: 20px 0 0;
  color: #8588b9;
  font-size: 11px;
}

.result-actions {
  display: grid;
  gap: 16px;
}

.reward-card {
  padding: 24px;
  border-radius: 26px;
}

.reward-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.reward-heading > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 228, 95, 0.12);
  font-size: 24px;
}

.reward-heading small {
  color: var(--yellow);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.reward-heading h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.reward-closed {
  padding-top: 24px;
  text-align: center;
}

.reward-box {
  position: relative;
  display: grid;
  width: 116px;
  height: 96px;
  margin: 0 auto 20px;
  place-items: center;
  border: 2px solid #8dbaff;
  border-radius: 20px 20px 28px 28px;
  background: linear-gradient(145deg, #4d5eff, #292086);
  box-shadow: inset 0 0 25px rgba(118, 209, 255, 0.27), 0 0 30px rgba(73, 143, 255, 0.25);
}

.reward-box::before {
  content: "";
  position: absolute;
  top: -14px;
  width: 128px;
  height: 28px;
  border: 2px solid #a7c9ff;
  border-radius: 11px;
  background: #6957e6;
  transform: rotate(-3deg);
}

.reward-box span {
  position: relative;
  z-index: 2;
  color: var(--yellow);
  font-size: 32px;
  font-weight: 800;
}

.reward-closed > p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.reward-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: #121032;
  background: var(--yellow);
  cursor: pointer;
  font-weight: 800;
}

.reward-closed > small {
  display: block;
  margin-top: 10px;
  color: #777aac;
  font-size: 9px;
}

.reward-card.is-opening .reward-box {
  animation: box-shake 600ms ease;
}

@keyframes box-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-5deg) scale(1.03); }
  40% { transform: rotate(5deg) scale(1.06); }
  60% { transform: rotate(-4deg) scale(1.08); }
  80% { transform: rotate(3deg) scale(1.03); }
}

.reward-result {
  padding-top: 24px;
  text-align: center;
}

.reward-result-icon {
  margin-bottom: 6px;
  font-size: 50px;
}

.reward-result > p:first-of-type {
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.reward-result h3 {
  margin-bottom: 8px;
  color: var(--yellow);
  font-family: "Mali", sans-serif;
  font-size: 25px;
}

.reward-result p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.reward-result code {
  display: inline-block;
  padding: 8px 12px;
  border: 1px dashed rgba(255, 228, 95, 0.6);
  border-radius: 10px;
  color: var(--yellow);
  background: rgba(255, 228, 95, 0.08);
  font-family: monospace;
  font-size: 13px;
}

.cta-card {
  padding: 28px;
  border: 1px solid rgba(255, 228, 95, 0.42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 218, 68, 0.18), transparent 35%),
    linear-gradient(145deg, rgba(36, 27, 125, 0.88), rgba(10, 9, 62, 0.94));
  box-shadow: 0 22px 55px rgba(3, 3, 34, 0.34), 0 0 34px rgba(255, 223, 77, 0.08);
}

.cta-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-card h2 {
  margin: 0;
  color: var(--white);
  font-family: "Mali", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
}

.cta-card .cta-heartline {
  margin: 10px 0 20px;
  color: #d4d2f5;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.register-button,
.share-button {
  width: 100%;
}

.register-button {
  min-height: 58px;
  padding: 14px 18px;
  gap: 10px;
  border-radius: 17px;
  box-shadow: 0 12px 28px rgba(255, 216, 48, 0.2);
  font-size: 16px;
  text-align: center;
}

.share-invite {
  display: grid;
  margin-top: 20px;
  gap: 4px;
}

.share-invite strong {
  color: var(--white);
  font-size: 13px;
}

.share-invite small {
  color: #a9a8d1;
  font-size: 11px;
  line-height: 1.5;
}

.share-button {
  min-height: 54px;
  margin-top: 12px;
  border: 1px solid rgba(122, 205, 255, 0.64);
  border-radius: 17px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(42, 86, 218, 0.78), rgba(87, 45, 187, 0.78));
  box-shadow: 0 12px 28px rgba(30, 91, 222, 0.18);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

.secondary-details {
  display: grid;
  gap: 10px;
}

.action-disclosure {
  overflow: hidden;
  border: 1px solid rgba(130, 153, 255, 0.26);
  border-radius: 20px;
  background: rgba(9, 9, 63, 0.58);
}

.action-disclosure > summary {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  min-height: 70px;
  padding: 14px 48px 14px 16px;
  align-items: center;
  gap: 10px;
}

.action-disclosure > summary > span:first-child {
  font-size: 22px;
}

.action-disclosure > summary > span:last-child {
  display: grid;
  gap: 2px;
}

.action-disclosure summary strong {
  color: var(--white);
  font-size: 13px;
}

.action-disclosure summary small {
  color: #8f92c1;
  font-size: 10px;
  line-height: 1.4;
}

.action-disclosure .reward-card,
.action-disclosure .story-mission {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(130, 153, 255, 0.2);
  border-radius: 0;
  background: rgba(19, 14, 87, 0.44);
}

.story-mission {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 220, 88, 0.36);
  border-radius: 17px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 196, 54, 0.15), transparent 34%),
    rgba(57, 37, 129, 0.22);
}

.story-mission-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-mission-heading > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 228, 95, 0.15);
  font-size: 19px;
}

.story-mission-heading small {
  display: block;
  color: var(--yellow);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.story-mission-heading h3 {
  margin: 2px 0 0;
  color: var(--white);
  font-size: 16px;
  line-height: 1.25;
}

.story-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.story-steps li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #c8c8ef;
  font-size: 11px;
  line-height: 1.45;
}

.story-steps b {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #17133f;
  background: var(--yellow);
  font-size: 10px;
}

.story-steps a,
.story-steps strong {
  color: var(--blue);
  font-weight: 800;
}

.copy-story-link {
  width: 100%;
  min-height: 39px;
  border: 1px solid rgba(255, 228, 95, 0.52);
  border-radius: 12px;
  color: var(--yellow);
  background: rgba(255, 228, 95, 0.08);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
}

.copy-story-link:hover {
  background: rgba(255, 228, 95, 0.16);
}

.restart-button {
  display: block;
  margin: 2px auto 0;
  border: 0;
  color: #8d8fbe;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 17px;
  border: 1px solid rgba(184, 168, 255, 0.5);
  border-radius: 14px;
  color: var(--white);
  background: rgba(9, 8, 55, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 25, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  padding: 20px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(136, 133, 205, 0.17);
  color: #696c9e;
  font-size: 10px;
}

@media (max-width: 940px) {
  .landing-screen.is-active {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 44px;
  }

  .landing-copy {
    text-align: center;
  }

  .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-visual {
    width: min(580px, 100%);
    min-height: 540px;
    margin: 0 auto;
  }

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

  .result-hero {
    grid-template-columns: minmax(240px, 0.86fr) minmax(310px, 1.14fr);
  }

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

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 16px 0;
  }

  .brand-bulb {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 19px;
  }

  .brand strong { font-size: 17px; }
  .brand small { font-size: 7px; }
  .header-cta { min-height: 44px; padding: 8px 10px 8px 15px; font-size: 13px; }
  .header-cta-arrow { width: 24px; height: 24px; font-size: 15px; }

  .landing-screen.is-active {
    min-height: auto;
    padding: 18px 0 54px;
  }

  .landing-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .camp-logo { width: min(210px, 62vw); margin: 0 auto 5px; }

  .hero-copy {
    font-size: 15px;
    line-height: 1.7;
  }

  .primary-button { width: 100%; min-height: 54px; }

  .hero-visual {
    min-height: 440px;
    margin-top: 18px;
  }

  .hero-visual::before { inset: 8% 3% 4%; }
  .mascot-stage { width: 260px; height: 260px; }
  .mascot { inset: 15px 4px 0; }

  .floating-card {
    min-width: 115px;
    padding: 9px 10px;
    gap: 7px;
    border-radius: 14px;
  }

  .floating-card > span { width: 31px; height: 31px; border-radius: 9px; font-size: 18px; }
  .floating-card strong { font-size: 12px; }
  .floating-card small { font-size: 6px; }
  .card-physics { top: 4%; left: -1%; }
  .card-chemistry { top: 15%; right: -2%; }
  .card-biology { right: -1%; bottom: 12%; }

  .code-panel {
    bottom: 1%;
    min-width: 160px;
    padding: 10px 12px;
  }

  .code-panel b { font-size: 9px; }
  .code-panel span { font-size: 8px; }

  .quiz-screen.is-active {
    min-height: auto;
    padding: 18px 0 55px;
  }

  .quiz-shell {
    padding: 16px;
    border-radius: 22px;
  }

  .quiz-topline {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .back-button { width: 38px; height: 38px; border-radius: 12px; }
  .lab-status { display: none; }

  .question-area {
    grid-template-columns: 1fr;
    margin: 34px 0 24px;
    gap: 12px;
  }

  .question-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 24px;
  }

  .question-copy h2 { font-size: clamp(22px, 7vw, 30px); }

  .option-button {
    grid-template-columns: 40px 1fr;
    min-height: 68px;
    padding: 10px;
    gap: 11px;
    border-radius: 16px;
  }

  .option-button:hover { transform: none; }
  .option-emoji { width: 40px; height: 40px; border-radius: 12px; font-size: 21px; }
  .option-text { font-size: 14px; }
  .option-key { display: none; }

  .result-screen.is-active { padding-top: 18px; }
  .result-actions { grid-template-columns: 1fr; }
  .result-card { min-height: auto; padding: 24px 20px; border-radius: 23px; }
  .result-hero { grid-template-columns: 1fr; gap: 0; }
  .result-visual { width: min(100%, 370px); min-height: 320px; margin: 26px auto 24px; order: -1; }
  .result-visual img { min-height: 320px; }
  .result-card h2 { font-size: clamp(38px, 12vw, 56px); }
  .result-card blockquote { font-size: 17px; }
  .result-description { font-size: 14px; }
  .result-meta { grid-template-columns: 1fr; }
  .result-disclosure { margin-top: 18px; }
  .cta-card h2 { font-size: clamp(25px, 8vw, 32px); }
  .reward-card,
  .cta-card { padding: 20px; border-radius: 22px; }

  footer {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 370px) {
  .site-header,
  main,
  footer { width: min(100% - 20px, 1180px); }
  .header-cta { padding-inline: 10px; }
  .landing-copy h1 { font-size: 36px; }
  .hero-visual { min-height: 410px; }
  .mascot-stage { width: 230px; height: 230px; }
  .floating-card { min-width: 104px; }
  .floating-card > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
