:root{
  --bg:#2B2560; --ink:#201a4d; --purple:#5b4fd4; --purple2:#6C5CE7;
  --cream:#fff7df; --yellow:#FFC93C; --coral:#FF7A6B; --mint:#5ED6B0;
  --lav:#ebe8ff; --panel:#fffefa; --muted:#706b8d; --shadow:0 14px 36px rgba(23,16,68,.18);
  --radius:24px; --embed-left:0px;
}
*{box-sizing:border-box;min-width:0}
html,body{margin:0;width:100%;height:100%;background:var(--bg);font-family:ui-rounded,"SF Pro Rounded",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);overflow:hidden}
body{min-height:100dvh}
body.is-embedded{--embed-left:48px}
button,input,select{font:inherit}
button{touch-action:manipulation}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:4px solid rgba(255,201,60,.92);outline-offset:2px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.whoo-app{width:100%;height:100dvh;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;background:linear-gradient(180deg,#30286d 0%,#29225d 100%);overflow:hidden}
.whoo-topbar{height:54px;min-width:0;display:flex;align-items:center;gap:8px;padding:6px max(10px,env(safe-area-inset-right)) 6px max(calc(var(--embed-left) + 8px),env(safe-area-inset-left));color:white}
.whoo-topbar>*{min-width:0}
.back-link,.icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border:0;border-radius:14px;background:rgba(255,255,255,.12);color:white;text-decoration:none;font-weight:900;cursor:pointer}
body.is-embedded .back-link{display:none}
.brand-mini{display:flex;align-items:center;gap:7px;font-weight:900;letter-spacing:-.02em;overflow:hidden}
.brand-mini .mini-owl{width:31px;height:31px;flex:0 0 31px}
.brand-mini span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-spacer{flex:1 1 auto}
.age-pill{flex:0 0 auto;font-size:11px;font-weight:900;color:#2b2560;background:var(--yellow);padding:6px 8px;border-radius:999px;white-space:nowrap}
.complete-badge{display:none;flex:0 0 auto;align-items:center;gap:5px;background:#e7fff7;color:#236f58;border-radius:999px;padding:6px 8px;font-size:11px;font-weight:900;white-space:nowrap}.complete-badge.show{display:flex}

.whoo-heading{min-width:0;padding:0 max(12px,env(safe-area-inset-right)) 7px max(calc(var(--embed-left) + 12px),env(safe-area-inset-left));color:white;display:flex;align-items:end;gap:12px}
.whoo-titlebox{min-width:0;overflow:hidden}.kicker{display:inline-flex;align-items:center;gap:6px;margin-bottom:2px;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#cfc9ff}
.whoo-heading h1{font-size:clamp(20px,4vw,32px);line-height:1.03;margin:0;letter-spacing:-.04em;max-width:900px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.whoo-heading p{margin:3px 0 0;color:#dcd9ff;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.activity-main{min-width:0;min-height:0;padding:0 max(8px,env(safe-area-inset-right)) 7px max(calc(var(--embed-left) + 8px),env(safe-area-inset-left));display:grid;grid-template-columns:minmax(0,1fr)}
.stage-card{position:relative;min-width:0;min-height:0;height:100%;border-radius:var(--radius);overflow:hidden;background:#dbe8ff;box-shadow:var(--shadow);border:2px solid rgba(255,255,255,.45)}
.stage-card canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}
.stage-badge{position:absolute;top:8px;left:8px;right:8px;z-index:3;display:flex;gap:6px;flex-wrap:wrap;pointer-events:none}
.metric-pill{background:rgba(255,255,255,.88);backdrop-filter:blur(5px);border:1px solid rgba(43,37,96,.08);padding:6px 8px;border-radius:999px;font-size:11px;font-weight:900;color:var(--ink);box-shadow:0 5px 14px rgba(32,26,77,.08);white-space:nowrap}

.controls-dock{min-width:0;display:flex;flex-direction:column;gap:6px;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(calc(var(--embed-left) + 8px),env(safe-area-inset-left));background:#f9f8ff;border-radius:20px 20px 0 0;overflow:hidden}
.controls-row{min-width:0;display:flex;gap:6px;align-items:stretch;flex-wrap:wrap}
.control-card{background:white;border:1px solid #e5e2f6;border-radius:14px;padding:6px 8px;min-width:0;box-shadow:0 4px 12px rgba(32,26,77,.05)}
.range-card{flex:1 1 220px}.control-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:1px}.control-label{font-size:10px;font-weight:900;color:var(--muted)}.control-value{font-size:12px;font-weight:950;color:var(--purple)}
input[type=range]{width:100%;height:26px;margin:0;accent-color:var(--purple2);cursor:pointer}
.toggle-btn,.secondary-btn,.primary-btn,.seg-btn{border:0;min-height:44px;border-radius:13px;font-weight:900;cursor:pointer;transition:transform .12s ease,background .15s ease,box-shadow .15s ease}
.toggle-btn:active,.secondary-btn:active,.primary-btn:active,.seg-btn:active{transform:translateY(1px) scale(.99)}
.toggle-btn{display:flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;background:#ece9fa;color:var(--ink)}.toggle-dot{width:21px;height:21px;border-radius:50%;background:white;border:3px solid #b5afd7;box-shadow:inset 0 0 0 3px white}.toggle-btn.is-on{background:#dff8ef}.toggle-btn.is-on .toggle-dot{border-color:#39b88e;background:var(--mint)}
.primary-btn{padding:0 13px;background:linear-gradient(180deg,#6c5ce7,#5748cd);color:white;box-shadow:0 6px 14px rgba(91,79,212,.23)}.secondary-btn{padding:0 12px;background:#ece9fa;color:var(--ink)}
.seg-wrap{border:0;margin:0;padding:0;min-width:0;flex:0 1 auto}.segmented{display:flex;background:#e9e6f7;padding:3px;border-radius:14px;gap:2px;min-height:44px;min-width:0}.seg-btn{flex:1 1 auto;min-width:0;min-height:44px;padding:0 9px;background:transparent;color:#6e6887;white-space:nowrap;font-size:11px}.seg-btn.active{background:white;color:var(--purple);box-shadow:0 3px 9px rgba(32,26,77,.08)}
.discovery-strip{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:stretch}.discovery-card{background:#fffaf0;border:1px solid #f0dfac;border-radius:14px;padding:6px 9px;min-width:0;overflow:hidden}.discovery-card strong{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.055em;color:#997725;margin-bottom:1px}.discovery-card p{font-size:11px;line-height:1.22;margin:0;color:#4a425e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.weird-card{display:flex;align-items:center;gap:6px;background:#e9fff6;border:1px solid #b6efd9;border-radius:14px;padding:6px 9px;font-size:10px;font-weight:850;color:#27765e;max-width:285px;overflow:hidden}.weird-card span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.prediction-overlay{position:fixed;z-index:100;inset:0;background:rgba(24,18,67,.45);display:grid;place-items:center;padding:12px max(12px,env(safe-area-inset-right)) 12px max(calc(var(--embed-left) + 12px),env(safe-area-inset-left));transition:opacity .2s ease,visibility .2s ease;overflow:auto;overscroll-behavior:contain}
.prediction-overlay.is-hidden{opacity:0;visibility:hidden;pointer-events:none}.prediction-card{width:min(520px,100%);max-height:calc(100dvh - 24px);overflow:auto;background:rgba(255,254,250,.97);border-radius:24px;padding:15px;box-shadow:0 18px 50px rgba(14,8,45,.28);text-align:center}.prediction-whiz{width:66px;height:66px;margin:-4px auto 2px;filter:drop-shadow(0 8px 10px rgba(35,28,82,.15))}.prediction-card .eyebrow{font-size:10px;font-weight:950;color:var(--purple);text-transform:uppercase;letter-spacing:.08em}.prediction-card h2{font-size:clamp(18px,4.6vw,27px);line-height:1.08;margin:4px 0 5px;letter-spacing:-.03em}.prediction-card p{font-size:12px;line-height:1.32;color:#69637c;margin:0 0 8px}.prediction-options{display:grid;grid-template-columns:1fr;gap:6px}.prediction-option,.prediction-skip{min-height:44px;border-radius:13px;border:2px solid #e5e1f5;background:#f8f7ff;padding:7px 9px;color:var(--ink);font-weight:900;cursor:pointer}.prediction-option:hover{border-color:#b8afe9;background:#f2f0ff}.prediction-skip{width:100%;margin-top:6px;border-color:#cdeee2;background:#ebfff7;color:#24755b}.prediction-note{margin-top:7px!important;font-size:10px!important;color:#8a8499!important}
.toast{position:fixed;left:max(calc(var(--embed-left) + 10px),10px);right:10px;top:8px;z-index:150;margin:auto;max-width:520px;background:rgba(255,255,255,.55);backdrop-filter:blur(9px);border:1px solid rgba(255,255,255,.65);color:#201a4d;padding:9px 12px;border-radius:14px;font-size:12px;font-weight:900;text-align:center;opacity:0;pointer-events:none;transform:translateY(-10px);transition:.18s ease;box-shadow:0 6px 18px rgba(23,16,68,.12)}.toast.show{opacity:1;transform:translateY(0)}

/* Whiz SVG classes */
.whiz-body{fill:#5d4dd3;stroke:#33277d;stroke-width:5}.whiz-belly,.whiz-face{fill:#fff3cf}.whiz-eye{fill:#fff}.whiz-pupil{fill:#201a4d}.whiz-beak{fill:#ffad2f}.whiz-wing-a{fill:#FFC93C}.whiz-wing-b{fill:#FF7A6B}.whiz-wing-c{fill:#5ED6B0}

@media (min-width:900px){
  .whoo-topbar{height:58px}.controls-dock{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:8px;padding-top:8px;padding-bottom:9px}.controls-dock>.controls-row{align-content:center}.whoo-heading p{display:block}
}

@media (max-width:768px){
  .whoo-heading p{display:none}.weird-card{display:none}.discovery-strip{grid-template-columns:1fr}.whoo-heading{padding-bottom:5px}.whoo-heading h1{font-size:20px}.kicker{font-size:9px}.controls-dock{gap:5px}.discovery-card{padding:5px 8px}.discovery-card p{font-size:10.5px}
}

@media (max-width:520px){
  .whoo-topbar{height:48px;padding-top:3px;padding-bottom:3px}.back-link,.icon-btn{height:40px;width:40px;flex-basis:40px}.brand-mini .mini-owl{width:28px;height:28px;flex-basis:28px}.brand-mini{font-size:12px}.age-pill{font-size:10px;padding:5px 7px}.complete-badge{width:30px;height:30px;padding:0;justify-content:center;border-radius:50%}.complete-badge .complete-label{display:none}
  .whoo-heading{padding-top:0;padding-bottom:4px}.whoo-heading h1{font-size:18px}.activity-main{padding-bottom:5px}.stage-card{border-radius:17px}.stage-badge{top:6px;left:6px}.metric-pill{font-size:9.5px;padding:4px 6px}
  .controls-dock{padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom));border-radius:17px 17px 0 0}.controls-row{gap:4px}.control-card{padding:4px 6px}.range-card{flex:1 1 100%}.seg-wrap{flex:1 1 100%}.seg-btn{font-size:10px;padding:0 5px}.toggle-btn,.primary-btn,.secondary-btn{font-size:10.5px;padding-left:9px;padding-right:9px}.control-label{font-size:9px}.control-value{font-size:11px}input[type=range]{height:24px}.discovery-card strong{font-size:8px}.discovery-card p{font-size:10px;line-height:1.16}
  .prediction-overlay{padding-top:8px;padding-bottom:8px}.prediction-card{padding:10px;border-radius:18px}.prediction-whiz{display:none}.prediction-card h2{font-size:17px}.prediction-card p{font-size:10.5px;line-height:1.24;margin-bottom:6px}.prediction-card .eyebrow{font-size:9px}.prediction-option,.prediction-skip{min-height:44px;padding:5px 7px;font-size:10.5px}.prediction-note{display:none}
}

@media (orientation:landscape) and (max-height:520px){
  .whoo-app{grid-template-rows:46px minmax(0,1fr) auto}.whoo-topbar{height:46px;padding-top:3px;padding-bottom:3px}.brand-mini{display:none}.whoo-heading{position:absolute;left:max(calc(var(--embed-left) + 8px),8px);right:118px;top:5px;z-index:4;padding:0;pointer-events:none}.whoo-heading .kicker,.whoo-heading p{display:none}.whoo-heading h1{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .activity-main{padding-top:0;padding-bottom:4px}.stage-card{border-radius:15px}.controls-dock{display:flex;flex-direction:column;gap:4px;padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom));border-radius:14px 14px 0 0}.controls-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;align-items:stretch}.controls-row>*{grid-column:span 1}.controls-row>.range-card,.controls-row>.seg-wrap{grid-column:span 2}.control-card{padding:3px 5px}.control-head{margin-bottom:0}.control-label{font-size:8.5px}.control-value{font-size:10px}input[type=range]{height:22px}.toggle-btn,.primary-btn,.secondary-btn,.seg-btn{min-height:44px;font-size:9.5px}.toggle-btn,.primary-btn,.secondary-btn{padding:0 6px}.segmented{min-height:44px;padding:2px}.seg-btn{padding:0 3px;min-height:44px}.discovery-card{padding:4px 7px}.discovery-card strong{font-size:7.5px}.discovery-card p{font-size:9px;line-height:1.1;-webkit-line-clamp:1}.stage-badge{top:5px;left:5px}.metric-pill{font-size:9px;padding:4px 6px}
  .prediction-overlay{padding-top:6px;padding-bottom:6px}.prediction-card{display:grid;grid-template-columns:58px minmax(0,1fr);column-gap:8px;text-align:left;max-width:690px;max-height:calc(100dvh - 12px);padding:8px 10px}.prediction-whiz{display:block;grid-row:1/6;width:52px;height:52px;margin:0;align-self:center}.prediction-card .eyebrow{font-size:8px}.prediction-card h2{font-size:14px;margin:1px 0 2px}.prediction-card p{font-size:9px;margin-bottom:4px}.prediction-options{grid-column:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.prediction-option{min-height:44px;padding:3px 5px;font-size:9px}.prediction-skip{grid-column:2;min-height:44px;margin-top:4px;font-size:9px}.prediction-note{display:none}
}

@media (orientation:landscape) and (max-height:390px){
  .whoo-heading h1{font-size:13px}.controls-dock{gap:3px}.control-card{padding-top:2px;padding-bottom:2px}.discovery-card p{font-size:8.5px}.metric-pill{font-size:8.5px}
}

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

/* v3 readability + discovery payoff */
.kicker{font-size:11px}
.age-pill,.complete-badge{font-size:11px}
.metric-pill{font-size:11px}
.control-label,.control-value{font-size:12px}
.toggle-btn,.secondary-btn,.primary-btn,.seg-btn{font-size:12px}
.seg-btn{min-width:44px}
.discovery-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;min-height:48px}
.discovery-copy{min-width:0;overflow:hidden}
.discovery-card strong{font-size:11px;line-height:1.1}
.discovery-card p{font-size:12px;line-height:1.25}
.discovery-more{align-self:stretch;min-width:72px;min-height:44px;border:0;border-radius:12px;background:#f3df9f;color:#654d16;font-size:12px;font-weight:950;cursor:pointer;padding:0 9px}
.discovery-more[hidden]{display:none}
.weird-card{font-size:12px}
.prediction-card .eyebrow{font-size:11px}
.prediction-card p{font-size:12px}
.prediction-option,.prediction-skip{font-size:12px}
.prediction-note{font-size:11px!important}

.discovery-overlay{position:fixed;z-index:140;inset:0;background:rgba(24,18,67,.45);display:grid;place-items:center;padding:12px max(12px,env(safe-area-inset-right)) 12px max(calc(var(--embed-left) + 12px),env(safe-area-inset-left));transition:opacity .18s ease,visibility .18s ease}
.discovery-overlay.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.discovery-sheet{width:min(560px,100%);max-height:calc(100dvh - 24px);overflow:auto;background:rgba(255,254,250,.98);border-radius:22px;padding:14px;box-shadow:0 18px 50px rgba(14,8,45,.26)}
.discovery-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}
.discovery-sheet-head strong{font-size:14px;color:#5947bd}
.discovery-close{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:13px;background:#ece9fa;color:#30286d;font-size:26px;line-height:1;font-weight:800;cursor:pointer}
.discovery-sheet p{margin:0;font-size:14px;line-height:1.45;color:#403953}

@media (max-width:768px){
  .kicker{font-size:11px}
  .discovery-card{padding:5px 7px}
  .discovery-card p{font-size:12px;line-height:1.22}
}

@media (max-width:520px){
  .age-pill{font-size:11px}
  .metric-pill{font-size:11px}
  .control-label,.control-value{font-size:12px}
  .toggle-btn,.primary-btn,.secondary-btn,.seg-btn{font-size:12px}
  .discovery-card strong{font-size:11px}
  .discovery-card p{font-size:12px;line-height:1.2}
  .prediction-card .eyebrow{font-size:11px}
  .prediction-card p{font-size:12px;line-height:1.25}
  .prediction-option,.prediction-skip{font-size:12px}
  .whoo-heading h1{font-size:18px;line-height:1.05;white-space:normal;overflow:hidden;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .discovery-sheet{padding:11px;border-radius:18px}
}

@media (orientation:landscape) and (max-height:520px){
  .control-label,.control-value{font-size:12px}
  .toggle-btn,.primary-btn,.secondary-btn,.seg-btn{font-size:12px}
  .seg-btn{min-width:44px}
  .discovery-card{padding:3px 6px;min-height:48px}
  .discovery-card strong{font-size:11px}
  .discovery-card p{font-size:12px;line-height:1.15;-webkit-line-clamp:1}
  .metric-pill{font-size:11px}
  .prediction-card .eyebrow{font-size:11px}
  .prediction-card p{font-size:12px;line-height:1.18}
  .prediction-option,.prediction-skip{font-size:12px;min-height:44px}
  .discovery-more{min-height:44px;font-size:12px}
}

@media (orientation:landscape) and (max-height:390px){
  .discovery-card p{font-size:12px}
  .metric-pill{font-size:11px}
}
