:root {
  color-scheme: light;
  --ink: #111318;
  --muted: #5e6673;
  --paper: #ffffff;
  --canvas: #f4f7fb;
  --line: #dce3ed;
  --blue: #0878f9;
  --blue-dark: #0458bd;
  --yellow: #ffd400;
  --green: #1f9d70;
  --coral: #ff6b5f;
  --shadow: 0 22px 70px rgba(23, 42, 77, 0.12);
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 212, 0, 0.24), transparent 24rem),
    radial-gradient(circle at 95% 5%, rgba(8, 120, 249, 0.12), transparent 30rem),
    var(--canvas);
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  padding: .8rem 1rem;
  border-radius: .7rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 1rem; }

.topbar {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 30px rgba(32,48,74,.07);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, .45rem);
  gap: .18rem;
  transform: skew(-12deg);
}

.brand-mark i { width: .45rem; height: 1.5rem; background: var(--yellow); }

.lab-nav { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }

.lab-nav a {
  padding: .55rem .78rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}

.lab-nav a:hover, .lab-nav a[aria-current="page"] { background: var(--ink); color: white; }

.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0 3rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 3rem; align-items: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  background: rgba(255,212,0,.34);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kicker::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink); }

h1 { max-width: 820px; margin: 1rem 0; font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .96; letter-spacing: -.065em; }

h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.035em; }

.lede { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; }

.panel {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid rgba(255,255,255,.94);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }

.micro { color: var(--muted); font-size: .82rem; line-height: 1.5; }

.progress-track { height: .55rem; overflow: hidden; border-radius: 999px; background: #e8edf4; }

.progress-bar { height: 100%; width: 20%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), #ff9f1c); transition: width .35s ease; }

.question { margin: 1.4rem 0 .8rem; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.18; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.choice, .primary, .secondary, .chip {
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.choice {
  min-height: 5.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
}

.choice:hover { transform: translateY(-2px); border-color: #aac9f6; box-shadow: 0 9px 22px rgba(31,77,136,.1); }

.choice:focus-visible, .primary:focus-visible, .secondary:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(8,120,249,.35);
  outline-offset: 3px;
}

.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  font-weight: 850;
}

.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(8,120,249,.24); }
.primary:hover { transform: translateY(-2px); background: var(--blue-dark); }
.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.secondary:hover { background: #f0f4fa; }

.result { padding: 1.4rem; border-radius: 20px; background: var(--ink); color: white; }
.result strong { display: block; margin: .45rem 0; color: var(--yellow); font-size: 1.65rem; }
.result p { margin: 0; color: #d7dce5; line-height: 1.55; }

.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.metric { padding: .9rem; border-radius: 15px; background: #f5f8fc; }
.metric b { display: block; font-size: 1.25rem; }
.metric span { color: var(--muted); font-size: .75rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: grid; gap: .45rem; }
.field label { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; font-weight: 780; }
.field output { color: var(--blue-dark); }

input[type="range"] { width: 100%; accent-color: var(--blue); }

select {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.planner-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.4rem; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .55rem; margin-top: 1rem; }
.day { min-height: 8rem; padding: .75rem; border-radius: 15px; background: #f2f6fb; }
.day b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.block { margin-top: .65rem; padding: .55rem; border-radius: 10px; background: var(--yellow); font-size: .74rem; font-weight: 800; line-height: 1.25; }
.block.rest { background: #dfe8f5; color: var(--muted); }

.score-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.score-number { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; flex: 0 0 auto; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 1.35rem; font-weight: 900; }

.roulette-wrap { display: grid; place-items: center; gap: 1.2rem; }
.wheel-stage { position: relative; width: min(20rem, 75vw); aspect-ratio: 1; }
.wheel {
  width: 100%; height: 100%; border: 10px solid white; border-radius: 50%;
  background: conic-gradient(#ffd400 0 60deg, #0878f9 60deg 120deg, #ff6b5f 120deg 180deg, #20242c 180deg 240deg, #70d7b4 240deg 300deg, #b89cff 300deg 360deg);
  box-shadow: 0 20px 48px rgba(20,35,65,.2);
  transition: transform 1.6s cubic-bezier(.12,.68,.16,1);
}
.wheel::after { content: "VWA\A LAB"; white-space: pre; position: absolute; inset: 31%; display: grid; place-items: center; border: 8px solid white; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.05rem; font-weight: 900; line-height: 1.05; text-align: center; }
.pointer { position: absolute; top: -.4rem; left: 50%; z-index: 2; width: 0; height: 0; transform: translateX(-50%); border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 35px solid var(--ink); filter: drop-shadow(0 3px 3px rgba(0,0,0,.2)); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.chip { padding: .5rem .75rem; border-radius: 999px; background: #edf2f8; color: var(--muted); font-size: .78rem; font-weight: 800; }
.chip[aria-pressed="true"] { background: var(--ink); color: white; }

.prompt-card { min-height: 12rem; display: grid; align-content: center; gap: .55rem; padding: 1.5rem; border-radius: 20px; background: var(--ink); color: white; text-align: left; }
.prompt-card .category { color: var(--yellow); font-size: .75rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.prompt-card strong { font-size: clamp(1.2rem, 3vw, 1.75rem); line-height: 1.25; }
.prompt-card p { margin: 0; color: #cfd5df; line-height: 1.5; }

.timer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; }
.timer-display { font-variant-numeric: tabular-nums; font-size: 1.8rem; font-weight: 900; }

.slot-panel { position: relative; overflow: hidden; background: linear-gradient(155deg, #111318 0%, #222935 100%); color: white; }
.slot-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 0, rgba(255,212,0,.22), transparent 45%); }
.slot-panel > * { position: relative; z-index: 1; }
.slot-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.slot-top .micro { color: #bdc5d0; }
.bulb-row { display: flex; gap: .38rem; }
.bulb-row i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px rgba(255,212,0,.75); animation: bulb-pulse 1.1s ease-in-out infinite alternate; }
.bulb-row i:nth-child(even) { animation-delay: -.55s; }
.slot-machine { padding: .8rem; border: 2px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(0,0,0,.22); box-shadow: inset 0 2px 12px rgba(0,0,0,.35); }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.reel { position: relative; min-width: 0; overflow: hidden; padding: 1rem .35rem; border: 5px solid #e7ebf1; border-radius: 18px; background: linear-gradient(#dce2e9, white 18%, white 82%, #dce2e9); color: var(--ink); text-align: center; box-shadow: inset 0 8px 14px rgba(17,19,24,.12), inset 0 -8px 14px rgba(17,19,24,.12); }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 1px; background: rgba(17,19,24,.12); }
.reel::before { top: 22%; }
.reel::after { bottom: 22%; }
.reel-symbol { display: block; font-size: clamp(3rem, 8vw, 5.2rem); line-height: 1; filter: drop-shadow(0 5px 5px rgba(17,19,24,.12)); }
.reel-label { display: block; min-height: 2.2em; margin-top: .55rem; font-size: clamp(.66rem, 1.6vw, .88rem); font-weight: 900; line-height: 1.1; }
.reel.spinning .reel-symbol, .reel.spinning .reel-label { filter: blur(2px); }
.slot-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.spin-button { min-width: min(18rem, 100%); min-height: 4rem; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); box-shadow: 0 8px 0 #b79700, 0 14px 25px rgba(0,0,0,.28); cursor: pointer; font-size: 1.05rem; font-weight: 950; letter-spacing: .02em; transition: transform .15s ease, box-shadow .15s ease; }
.spin-button:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #b79700, 0 17px 28px rgba(0,0,0,.3); }
.spin-button:active { transform: translateY(6px); box-shadow: 0 2px 0 #b79700, 0 7px 16px rgba(0,0,0,.25); }
.spin-button:disabled { cursor: wait; opacity: .75; }
.spin-button:focus-visible { outline: 4px solid rgba(255,255,255,.7); outline-offset: 4px; }
.slot-status { min-height: 5.2rem; display: grid; place-items: center; margin-top: 1.2rem; padding: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.07); color: #dbe1e9; text-align: center; line-height: 1.45; }
.slot-status strong { display: block; color: var(--yellow); font-size: 1.3rem; }
.slot-status.jackpot { background: var(--yellow); color: var(--ink); animation: jackpot-pop .55s ease both; }
.slot-status.jackpot strong { color: var(--ink); font-size: clamp(1.35rem, 3vw, 1.8rem); }
.education-score { display: flex; align-items: center; justify-content: center; gap: .65rem; color: #dbe1e9; font-size: .8rem; font-weight: 800; }
.education-score output { color: var(--yellow); font-size: 1.5rem; font-weight: 950; font-variant-numeric: tabular-nums; }
.product-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1rem; }
.product-token { display: flex; align-items: center; gap: .55rem; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; background: #f7f9fc; font-size: .76rem; font-weight: 800; }
.product-token span { font-size: 1.45rem; }
.confetti-piece { position: fixed; z-index: 100; left: var(--left); top: var(--top); width: 9px; height: 14px; pointer-events: none; border-radius: 2px; background: var(--color); animation: confetti-burst var(--duration) cubic-bezier(.12,.7,.2,1) forwards; }

@keyframes bulb-pulse { to { opacity: .35; transform: scale(.78); } }
@keyframes jackpot-pop { 0% { transform: scale(.92); } 65% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes confetti-burst { 0% { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); } 100% { opacity: 0; transform: translate(var(--x),var(--y)) rotate(var(--rotation)) scale(.7); } }

.site-footer { width: min(1120px, calc(100% - 2rem)); margin: 2rem auto 0; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hidden { display: none !important; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .shell { padding-top: 3rem; }
  .week { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; }
  .brand span:last-child { display: none; }
  .lab-nav a { padding: .48rem .6rem; font-size: .76rem; }
  .choices, .form-grid, .metric-strip { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.65rem, 16vw, 4.6rem); }
  .panel { border-radius: 22px; }
  .week { grid-template-columns: 1fr; }
  .product-legend { grid-template-columns: 1fr 1fr; }
  .reels { gap: .35rem; }
  .reel { padding-inline: .15rem; border-width: 3px; }
}

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