/* ==========================================================================
   Kvocijent — design system
   ========================================================================== */
:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", var(--font-body);

  --brand-50: #ECFEFF;
  --brand-100: #CFFAFE;
  --brand-200: #A5F3FC;
  --brand-400: #38BDF8;
  --brand-500: #0EA5E9;
  --brand-600: #0284C7;
  --brand-700: #0369A1;
  --cyan-400: #22D3EE;
  --net-rgb: 3, 105, 161;
  --teal-500: #14B8A6;
  --amber-500: #F59E0B;
  --rose-500: #F43F5E;
  --emerald-500: #10B981;

  --bg: #F6F7FB;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F3F9;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --ink: #0F172A;        /* drawing colour for puzzles */
  --paper: #FFFFFF;      /* puzzle background */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px -20px rgba(14, 165, 233, .25), 0 8px 20px -10px rgba(15, 23, 42, .12);
  --grad-brand: linear-gradient(135deg, #0EA5E9 0%, #22D3EE 100%);
  --grad-hero: none;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 220ms;
  --max: 1120px;
  --gutter: 16px;
  color-scheme: light;
}


/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 8px; }
a { color: var(--brand-600); text-decoration: none; }
svg { display: block; }
img { max-width: 100%; }
input { font: inherit; }
::selection { background: var(--brand-200); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--stack, 16px); }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; color: var(--text-3); }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.view { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .25)); }
.brand__text { color: var(--text); }
:root[data-theme="light"] .brand img, :root[data-theme="light"] .cert__logo { filter: invert(1); }
.topbar__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.meta-pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.meta-pill svg { width: 16px; height: 16px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); transition: background var(--dur), transform var(--dur); }
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.progress { height: 4px; background: var(--border); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--grad-brand); transition: width .5s var(--ease); border-radius: 0 4px 4px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur), opacity var(--dur);
  will-change: transform; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary { color: #04121F; background: var(--grad-brand); box-shadow: 0 10px 24px -10px rgba(14, 165, 233, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(14, 165, 233, .75); }
.btn--ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- landing ---------- */
.neural { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#app { position: relative; z-index: 1; }
.hero { position: relative; padding: 48px 0 32px; min-height: calc(100dvh - 64px); display: flex; flex-direction: column; justify-content: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 500px at 50% -10%, rgba(var(--net-rgb), .16), transparent 65%); pointer-events: none; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__single { text-align: center; max-width: 760px; }
.hero__single h1 { margin: 0 0 28px; font-size: clamp(40px, 7vw, 68px); }
.hero__single .hero__cta { justify-content: center; margin-top: 0; }
@media (min-width: 900px) { .hero { padding: 40px 0; } .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; margin: 18px 0 16px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--text-2); font-size: 14px; }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--emerald-500); }

.hero-card { position: relative; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite; }
.hero-card__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-3); font-weight: 600; margin-bottom: 14px; }
.hero-card__q { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.hero-card .matrix { max-width: 320px; margin: 0 auto 14px; }
.hero-card__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-card__opts .opt-tile { padding: 8px; }

.section { padding: 64px 0; }
.section { background: transparent; }
.section--alt { background: color-mix(in srgb, var(--bg-elev) 70%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section__head p { color: var(--text-2); font-size: 17px; }

.features { display: grid; gap: 16px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 16px; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }
.feature__step { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--brand-600); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

.domains { display: grid; gap: 12px; }
@media (min-width: 640px) { .domains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .domains { grid-template-columns: repeat(5, 1fr); } }
.domain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.domain__swatch { width: 12px; height: 12px; border-radius: 4px; flex: none; margin-top: 6px; }
.domain h4 { font-size: 16px; margin-bottom: 4px; }
.domain p { font-size: 13.5px; color: var(--text-2); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 36px; }
.stat { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 18px 12px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.stat span { font-size: 13px; color: var(--text-2); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--text-3); transition: transform var(--dur); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text-2); }

.cta-band { background: var(--grad-brand); color: #04121F; border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 40%); pointer-events: none; }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; position: relative; }
.cta-band p { opacity: .9; margin-bottom: 22px; position: relative; }
.cta-band .btn { background: #04121F; color: #fff; position: relative; }

.footer { padding: 28px 0 28px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px; }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); display: grid; gap: 10px; }

/* ---------- quiz ---------- */
.quiz { height: calc(100dvh - 69px); display: flex; flex-direction: column; overflow: hidden; }
.quiz__body { flex: 1; min-height: 0; width: 100%; max-width: 720px; margin: 0 auto; padding: 12px var(--gutter) 12px; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
.quiz__body > .puzzle { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; padding: 10px; }
.quiz__body > .puzzle > .matrix { width: var(--fit, 100%); max-width: 100%; }
.quiz__body > .puzzle > .cutout-svg { height: 100%; width: auto; max-width: 100%; }
.quiz__body .opt-grid { flex: none; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quiz__body .opt-tile { aspect-ratio: auto; height: clamp(64px, 14dvh, 132px); padding: 8px; }
.quiz__body .opt-tile .option__key { width: 20px; height: 20px; font-size: 10px; left: 6px; top: 6px; }
.quiz__body .opt-tile svg { max-height: none; }
.quiz__body .choose { margin-bottom: 8px; font-size: 13px; }
.quiz__body .options { gap: 9px; }
.quiz__body .option { padding: 12px 16px; font-size: 16px; }
.quiz__body .memo { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 6px; }
.q-title { font-size: clamp(20px, 3.2vw, 28px); font-weight: 800; text-align: center; margin: 8px 0 18px; }
.q-sub { text-align: center; color: var(--text-2); margin: -16px 0 24px; }
.q-kicker { text-align: center; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brand-600); margin-bottom: 10px; }

.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border);
  font-size: 17px; font-weight: 500; box-shadow: var(--shadow-sm);
  transition: border-color var(--dur), background var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}
.option:hover { border-color: var(--brand-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.option.is-selected { border-color: var(--brand-600); background: color-mix(in srgb, var(--brand-500) 10%, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent); }
.option__key { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--text-2); flex: none; transition: background var(--dur), color var(--dur); }
.option.is-selected .option__key { background: var(--brand-600); color: #fff; }

/* Likert */
.likert .option { justify-content: center; font-weight: 600; }
.likert .option[data-tone="5"] { background: color-mix(in srgb, var(--emerald-500) 12%, var(--surface)); border-color: color-mix(in srgb, var(--emerald-500) 35%, var(--border)); }
.likert .option[data-tone="4"] { background: color-mix(in srgb, var(--emerald-500) 6%, var(--surface)); }
.likert .option[data-tone="3"] { background: color-mix(in srgb, var(--amber-500) 8%, var(--surface)); }
.likert .option[data-tone="2"] { background: color-mix(in srgb, var(--rose-500) 6%, var(--surface)); }
.likert .option[data-tone="1"] { background: color-mix(in srgb, var(--rose-500) 12%, var(--surface)); border-color: color-mix(in srgb, var(--rose-500) 35%, var(--border)); }

/* Visual puzzles */
.puzzle { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.puzzle svg { width: 100%; height: auto; }
.matrix { display: grid; gap: 8px; }
.matrix--2 { grid-template-columns: repeat(2, 1fr); margin-inline: auto; }
.matrix--3 { grid-template-columns: repeat(3, 1fr); }
.cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; }
.cell svg { width: 86%; height: 86%; }
.cell--missing { border: 3px solid var(--brand-500); background: color-mix(in srgb, var(--brand-500) 8%, var(--paper)); position: relative; animation: pulseRing 2.2s ease-in-out infinite; }
@keyframes pulseRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, .35); } 50% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0); } }
.cell--missing::after { content: "?"; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 7vw, 48px); color: var(--brand-600); }
.cutout { position: relative; }
.cutout .marker { fill: color-mix(in srgb, var(--brand-500) 8%, var(--paper)); stroke: var(--brand-500); stroke-width: 3; }
.cutout .marker-q { fill: var(--brand-600); font-family: var(--font-display); font-weight: 800; font-size: 56px; }

.choose { text-align: center; font-weight: 600; color: var(--text-2); margin-bottom: 12px; font-size: 15px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .opt-grid { grid-template-columns: repeat(3, 1fr); } }
.opt-tile {
  position: relative; background: var(--paper); border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; aspect-ratio: 4 / 3;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}
.opt-tile:hover { border-color: var(--brand-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.opt-tile.is-selected { border-color: var(--brand-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent); }
.opt-tile svg { width: 100%; height: 100%; max-height: 120px; }
.opt-tile .option__key { position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; font-size: 11px; }

/* memory */
.memo { text-align: center; }
.memo__digits { display: flex; justify-content: center; gap: 8px; margin: 18px 0 12px; flex-wrap: wrap; }
.memo__digit { width: clamp(44px, 12vw, 64px); height: clamp(52px, 14vw, 72px); border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 36px; box-shadow: var(--shadow-sm); animation: pop .4s var(--ease) both; }
.memo__digit:nth-child(2) { animation-delay: .05s } .memo__digit:nth-child(3) { animation-delay: .1s } .memo__digit:nth-child(4) { animation-delay: .15s } .memo__digit:nth-child(5) { animation-delay: .2s } .memo__digit:nth-child(6) { animation-delay: .25s }
.memo__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 9vw, 60px); padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); margin: 24px auto 16px; max-width: 520px; box-shadow: var(--shadow-md); }
.memo__bar { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; max-width: 420px; margin: 0 auto 10px; }
.memo__bar i { display: block; height: 100%; width: 100%; background: var(--grad-brand); transform-origin: left; animation: drain linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* interstitial */
.inter { text-align: center; padding: 6px 0; }
.inter h2 { font-size: clamp(22px, 4.2vw, 34px); font-weight: 800; margin-bottom: 16px; }
.inter p { color: var(--text-2); font-size: 15px; max-width: 520px; margin: 14px auto 20px; }
.inter .radar { max-width: min(300px, 38dvh); }
.inter__art { width: min(180px, 24dvh); height: min(180px, 24dvh); margin: 0 auto; display: grid; place-items: center; position: relative; }
.inter__art svg { width: 100%; height: 100%; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--border-strong); animation: spin 30s linear infinite; }
.ring--2 { inset: 22px; border-style: solid; border-color: var(--border); animation-direction: reverse; animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }
.bolt { width: 96px; height: 96px; color: var(--brand-600); filter: drop-shadow(0 10px 20px rgba(14, 165, 233, .35)); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 110px; }
.podium i { display: block; width: 72px; border-radius: 12px 12px 0 0; background: var(--surface-2); border: 1px solid var(--border); }
.podium i.top { background: var(--surface); height: 100px; display: grid; place-items: center; font-weight: 700; color: var(--text-3); box-shadow: var(--shadow-md); }
.podium i.side { height: 64px; }
.avatar { width: 56px; height: 56px; margin: 0 auto -8px; position: relative; z-index: 1; }
.gauge { width: min(240px, 30dvh); height: auto; margin: 0 auto; }

/* analyzing */
.analyze { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 24px; min-height: calc(100dvh - 69px); display: flex; flex-direction: column; justify-content: center; }
.analyze h1 { font-size: clamp(28px, 5.5vw, 44px); font-weight: 800; margin-bottom: 12px; }
.analyze p.lead { color: var(--text-2); font-size: 18px; margin-bottom: 26px; }
.analyze__bar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.analyze__bar .progress { flex: 1; height: 10px; border-radius: 10px; }
.analyze__bar .progress__bar { border-radius: 10px; transition: width .35s linear; }
.analyze__pct { font-weight: 700; font-variant-numeric: tabular-nums; width: 48px; text-align: right; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text-3); transition: color var(--dur); }
.checks li .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: transparent; transition: all var(--dur); }
.checks li.is-active { color: var(--text); }
.checks li.is-active .tick { border-color: var(--brand-500); animation: pulse 1s ease-in-out infinite; }
.checks li.is-done { color: var(--text); }
.checks li.is-done .tick { background: var(--brand-600); border-color: var(--brand-600); color: #fff; animation: none; }
.checks li .tick svg { width: 14px; height: 14px; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 12, 30, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fadeIn .25s both; }
.modal { width: 100%; max-width: 480px; background: var(--surface); border-radius: var(--radius-lg); padding: 28px 24px 24px; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease) both; text-align: center; }
.modal__handle { width: 44px; height: 5px; border-radius: 5px; background: var(--brand-600); margin: 0 auto 18px; }
.modal h3 { font-size: 22px; margin-bottom: 20px; }
.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .option { justify-content: center; font-weight: 600; }
.modal p { color: var(--text-2); margin-bottom: 18px; }

/* email */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-md); }
.field { position: relative; margin: 18px 0; }
.field input { width: 100%; padding: 18px 18px; font-size: 17px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); transition: border-color var(--dur), box-shadow var(--dur); }
.field input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent); }
.field label { position: absolute; top: -9px; left: 14px; background: var(--surface); padding: 0 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .err { color: var(--rose-500); font-size: 13px; margin-top: 8px; display: none; }
.field.is-invalid .err { display: block; }
.field.is-invalid input { border-color: var(--rose-500); }

/* results / paywall */
.results { padding: 24px 0 60px; }
.compare { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 10px; align-items: end; margin: 26px 0; }
.compare__col { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 10px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.compare__col.you { background: var(--grad-brand); color: #04121F; border: 0; box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.compare__col b { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.compare__col .fig { width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.compare__col.you .fig { background: rgba(255, 255, 255, .18); }
.compare__col .fig svg { width: 70%; height: 70%; }
.compare__col small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.compare__col.you small { color: rgba(4, 18, 31, .75); }

.report-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.report-card h3 { font-size: 18px; margin-bottom: 14px; }
.bell { width: 100%; height: auto; }
.score-hero .band { background: rgba(4, 18, 31, .14); }
.kv { display: grid; gap: 10px; margin-top: 14px; }
.kv > div { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--surface-2); border-radius: 12px; font-weight: 600; }
.kv > div span:last-child { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.blur { filter: blur(9px); user-select: none; pointer-events: none; color: var(--brand-600); }
.lock-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--teal-500); font-weight: 700; }
.lock-note svg { width: 16px; height: 16px; }

.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checklist li svg { width: 22px; height: 22px; color: var(--brand-600); flex: none; margin-top: 1px; }

.pricing { display: grid; gap: 14px; margin: 22px 0; }
@media (min-width: 720px) { .pricing { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease); }
.plan:hover { transform: translateY(-2px); }
.plan.is-selected { border-color: var(--brand-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent); }
.plan__badge { position: absolute; top: -12px; left: 18px; background: var(--grad-brand); color: #04121F; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); letter-spacing: .02em; }
.plan h4 { font-size: 18px; margin-bottom: 4px; }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 34px; margin: 10px 0 4px; }
.plan .price small { font-size: 14px; color: var(--text-2); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.plan ul li::before { content: "✓"; color: var(--emerald-500); font-weight: 800; margin-right: 8px; }
.plan .note { font-size: 13px; color: var(--text-3); margin-top: 12px; }

.summary { border: 1.5px solid var(--brand-500); border-radius: var(--radius-lg); padding: 20px; margin-top: 20px; background: var(--surface); }
.summary__row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary__row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 20px; font-family: var(--font-display); }
.pay { display: grid; gap: 10px; margin-top: 16px; }
.pay .btn { width: 100%; }
.pay .btn--paypal { background: #FFC439; color: #111; }
.pay .btn--gpay { background: #111; color: #fff; }
.secure { display: flex; justify-content: center; gap: 16px; margin-top: 14px; color: var(--text-3); font-size: 12.5px; flex-wrap: wrap; }
.secure span { display: inline-flex; align-items: center; gap: 5px; }
.secure svg { width: 14px; height: 14px; }

.sticky-cta { position: sticky; bottom: 0; z-index: 10; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.sticky-cta .btn { width: 100%; max-width: 720px; margin: 0 auto; display: flex; }

/* report */
.score-hero { background: var(--grad-brand); color: #04121F; border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.score-hero::after { content: ""; position: absolute; inset: -30%; background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .22), transparent 45%); pointer-events: none; }
.score-hero .label { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.score-hero .score { font-family: var(--font-display); font-size: clamp(72px, 16vw, 120px); font-weight: 800; line-height: 1; margin: 6px 0; font-variant-numeric: tabular-nums; position: relative; }
.score-hero .band { display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .18); font-weight: 700; margin-top: 6px; position: relative; }
.grid-2 { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.radar { width: 100%; max-width: 380px; margin: 0 auto; overflow: visible; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 14.5px; }
.bar__track { height: 10px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.bar__fill { height: 100%; border-radius: 10px; width: 0; transition: width 1.2s var(--ease); }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.answers { display: grid; gap: 8px; margin-top: 10px; }
.answer { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; background: var(--surface); }
.answer .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.answer .n.ok { background: color-mix(in srgb, var(--emerald-500) 15%, var(--surface)); color: var(--emerald-500); }
.answer .n.bad { background: color-mix(in srgb, var(--rose-500) 15%, var(--surface)); color: var(--rose-500); }
.answer .n.na { background: var(--surface-2); color: var(--text-3); }
.answer time { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cert__logo { width: 150px; margin: 0 auto 8px; display: block; }
.cert { border: 2px solid var(--brand-200); border-radius: var(--radius-lg); padding: 28px; text-align: center; background: linear-gradient(180deg, var(--surface), var(--surface-2)); position: relative; }
.cert::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--border-strong); border-radius: 18px; pointer-events: none; }
.cert .label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.cert .name { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin: 10px 0 4px; }
.cert .big { font-family: var(--font-display); font-size: 56px; font-weight: 800; }
.cert .seal { width: 64px; height: 64px; margin: 12px auto 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--radius-pill); font-weight: 600; box-shadow: var(--shadow-lg); z-index: 60; animation: fadeUp .3s both; font-size: 14px; }

/* legal */
.legal { max-width: 760px; margin: 0 auto; padding: 36px var(--gutter) 60px; }
.legal h1 { font-size: 34px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.notice { background: color-mix(in srgb, var(--amber-500) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber-500) 40%, var(--border)); border-radius: 12px; padding: 12px 14px; font-size: 14px; }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: confFall linear forwards; }
@keyframes confFall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: .6; } }

/* ---------- print (certificate) ---------- */
@media print {
  body { background: #fff; }
  .topbar, .footer, .pay, .field, [data-action="again"], .sticky-cta, .toast, .confetti { display: none !important; }
  .results .report-card { break-inside: avoid; box-shadow: none; }
  .score-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* compact landing */
.steps-row { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 700px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
.step-chip { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; color: var(--text-2); }
.step-chip b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); color: #04121F; font-size: 13px; flex: none; }
.footer--mini .footer__grid { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center; font-size: 13px; }
.footer--mini .footer__bottom { text-align: center; }

/* gender choice */
.gender-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; margin: 26px auto 16px; }
.gender { display: grid; justify-items: center; gap: 12px; padding: 26px 16px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--border); font-weight: 700; font-size: 18px; box-shadow: var(--shadow-sm); transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur); }
.gender:hover { border-color: var(--brand-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gender.is-selected { border-color: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent); }
.gender__icon { width: 64px; height: 64px; color: var(--brand-400); }
.gender__icon svg { width: 100%; height: 100%; }

/* narrow phones: keep the quiz header on one line */
@media (max-width: 400px) { .quiz-page .brand__text { display: none; } .meta-pill { padding: 6px 10px; font-size: 13px; } .topbar__right, .topbar__left { gap: 8px; } }

/* ==========================================================================
   Interactive games
   ========================================================================== */
.quiz__body > .game { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.game .q-title { margin-bottom: 6px; }
.game__hint { text-align: center; color: var(--text-2); font-size: 14.5px; margin: 0 auto 6px; max-width: 520px; }
.game__status { text-align: center; font-weight: 700; font-size: 14px; color: var(--brand-600); min-height: 21px; margin-bottom: 8px; }
.game__stage { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; position: relative; }
.game__intro { display: grid; justify-items: center; gap: 20px; text-align: center; }
.game__demo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.game__demo span { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.game__demo span.hit { border: 2px solid var(--emerald-500); color: var(--emerald-500); }
.game__demo em { font-style: normal; color: var(--text-3); font-size: 18px; }
.game__demo em.game__demo-note { color: var(--emerald-500); font-size: 15px; }
.game__done { display: grid; justify-items: center; gap: 6px; animation: pop .35s var(--ease) both; text-align: center; }
.game__check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 30px; font-weight: 800; box-shadow: var(--shadow-lg); }
.game__done b { font-size: 22px; font-family: var(--font-display); }
.game__done span:last-child { color: var(--text-2); }
.arena { position: relative; width: 100%; flex: 1 1 0; min-height: 150px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* 1 · shell game */
.cupw { position: absolute; bottom: 12%; width: 27%; max-width: 150px; aspect-ratio: 100 / 110; transform: translateX(-50%); transition: left 400ms ease-in-out; z-index: 1; }
.cupw.front { z-index: 2; }
.cupw .cup { position: absolute; inset: 0; z-index: 2; transition: transform .35s var(--ease), filter .2s; }
.cupw .cup svg { width: 100%; height: 100%; }
.cupw.lift .cup { transform: translateY(-62%); }
.cupw .ball { position: absolute; left: 50%; bottom: 7%; width: 38%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FDBA74, #EA580C); box-shadow: 0 6px 12px -4px rgba(234, 88, 12, .6); display: none; z-index: 1; }
.cupw.has-ball .ball { display: block; }
.cupw:not(.lift) .ball { box-shadow: none; }
.cupw:not([disabled]) { cursor: pointer; }
.cupw:not([disabled]):hover .cup { transform: translateY(-6%); }
.cupw.ok .cup { filter: drop-shadow(0 0 10px rgba(16, 185, 129, .9)); }
.cupw.bad .cup { filter: drop-shadow(0 0 10px rgba(244, 63, 94, .9)); }

/* 2 · reaction */
.arena--react { cursor: pointer; }
.react__msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-weight: 700; font-size: 18px; color: var(--text-2); }
.react__msg[hidden] { display: none; }
.react__early { color: var(--rose-500); }
.react__dot { position: absolute; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand-500) 18%, transparent), 0 12px 24px -8px var(--brand-500); animation: pop .15s var(--ease) both; }

/* 3 · corsi */
.corsi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(100%, 42dvh); aspect-ratio: 1; }
.corsi__t { border-radius: 16px; background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); transition: background .15s, box-shadow .15s, transform .15s; }
.corsi__t.on { background: var(--grad-brand); border-color: transparent; transform: scale(1.05); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-500) 22%, transparent); }
.corsi__t.bad { background: var(--rose-500); border-color: transparent; }
.corsi__t.good { background: var(--emerald-500); border-color: transparent; }

/* 4 · stroop */
.stroop { width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.stroop__timer { width: 100%; height: 5px; border-radius: 5px; background: var(--border); overflow: hidden; }
.stroop__timer i { display: block; height: 100%; background: var(--grad-brand); transform-origin: left; }
.stroop__word { width: 100%; padding: 22px 0; text-align: center; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 11vw, 64px); letter-spacing: .02em; line-height: 1.2; transition: box-shadow .15s; }
.stroop__word.ok { box-shadow: 0 0 0 4px rgba(16, 185, 129, .45); }
.stroop__word.bad { box-shadow: 0 0 0 4px rgba(244, 63, 94, .45); }
.stroop__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.stroop__b { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 10px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border); font-weight: 700; box-shadow: var(--shadow-sm); transition: transform .1s; }
.stroop__b:active { transform: scale(.97); }
.stroop__b i { width: 22px; height: 22px; border-radius: 50%; flex: none; }

/* 5 · typed answer */
.typed { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.typed__seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.typed__seq span { min-width: 46px; height: 50px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.typed__seq span.q { border: 2px solid var(--brand-500); color: var(--brand-600); background: color-mix(in srgb, var(--brand-500) 8%, var(--surface)); }
.typed__input { min-width: 150px; height: 58px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: .04em; }
.typed__input:empty::before { content: "?"; color: var(--text-3); }
.typed__input.ok { border-color: var(--emerald-500); color: var(--emerald-500); }
.typed__input.bad { border-color: var(--rose-500); color: var(--rose-500); animation: shake .3s; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 320px); }
.keypad button { height: clamp(42px, 7dvh, 58px); border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-weight: 700; font-size: 20px; transition: transform .1s; }
.keypad button:active { transform: scale(.96); }
.keypad .kp-ok { background: var(--grad-brand); color: #fff; border: 0; }

/* 6 · multiple object tracking */
.mot__b { position: absolute; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #CBD5E1, #64748B); box-shadow: 0 4px 10px -4px rgba(15, 23, 42, .4); will-change: transform; transition: box-shadow .15s; }
.mot__b.tgt { background: radial-gradient(circle at 35% 30%, #FDBA74, #EA580C); box-shadow: 0 0 0 6px rgba(234, 88, 12, .25); }
.mot__b.sel { box-shadow: 0 0 0 4px var(--brand-500); }
.mot__b.ok { background: radial-gradient(circle at 35% 30%, #6EE7B7, #059669); }
.mot__b.bad { background: radial-gradient(circle at 35% 30%, #FDA4AF, #E11D48); }
.mot__b.miss { box-shadow: 0 0 0 4px #EA580C; }

/* 7 · rotate */
.rot { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rot__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.rot__card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 18px; padding: 10px; text-align: center; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.rot__card small { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.rot__card--you { border-color: var(--brand-400); }
.rot__card.ok { border-color: var(--emerald-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .25); }
.rot__card.bad { border-color: var(--rose-500); box-shadow: 0 0 0 4px rgba(244, 63, 94, .25); }
.rot__shape { width: min(100%, 24dvh); aspect-ratio: 1; margin: 0 auto; }
.rot__flip { display: block; width: 100%; height: 100%; transition: transform .35s var(--ease); }
.rot__shape svg { width: 100%; height: 100%; transition: transform .35s var(--ease); }
.rot__ctrl { display: flex; gap: 10px; }
.rot__ctrl button { width: 60px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); transition: transform .1s; }
.rot__ctrl button:active { transform: scale(.95); }
.rot__ctrl svg { width: 24px; height: 24px; }
.rot__ok { min-width: 180px; }

/* 8 · dots */
.dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--brand-600); }
.dots__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; min-height: 116px; align-content: start; }
.dots__choices button { height: 52px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.dots__choices button.ok { border-color: var(--emerald-500); color: var(--emerald-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.dots__choices button.bad { border-color: var(--rose-500); color: var(--rose-500); }

/* 9 · hanoi */
.hanoi { width: 100%; flex: 1 1 0; min-height: 170px; max-height: 320px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.peg { position: relative; display: flex; flex-direction: column-reverse; align-items: center; padding: 0 6px 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.peg::before { content: ""; position: absolute; left: 50%; bottom: 14px; top: 26%; width: 8px; margin-left: -4px; border-radius: 4px; background: var(--border-strong); }
.peg.goal { border-color: var(--brand-400); background: color-mix(in srgb, var(--brand-500) 6%, var(--surface)); }
.peg.shake { animation: shake .3s; }
.peg__label { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--brand-600); }
.disk { position: relative; z-index: 1; height: clamp(20px, 4dvh, 28px); margin-top: 4px; border-radius: 10px; box-shadow: 0 4px 10px -6px rgba(15, 23, 42, .5); transition: transform .15s; }
.disk.s1 { width: 40%; background: var(--brand-400); }
.disk.s2 { width: 64%; background: var(--brand-500); }
.disk.s3 { width: 88%; background: var(--brand-600); }
.disk.up { transform: translateY(-16px); box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--brand-500); }

/* 10 · n-back */
.nback { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nback__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.nback__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.nback__dots i.on { background: var(--brand-500); }
.nback__card { width: min(58vw, 30dvh); aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-md); font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 18vw, 110px); transition: box-shadow .15s, border-color .15s; }
.nback__card.ok { border-color: var(--emerald-500); box-shadow: 0 0 0 6px rgba(16, 185, 129, .25); }
.nback__card.bad { border-color: var(--rose-500); box-shadow: 0 0 0 6px rgba(244, 63, 94, .25); }
.nback__btn { width: 100%; max-width: 360px; }
