:root{--blueberry: #242bbf;--blueberry-deep: #1a1f8f;--cream: #fff0c9;--orange: #eb8633;--warm-white: #fffdf7;--ink: #1f2329;--ink-soft: #545a63;--good: #1e8a5a;--good-bg: #e3f6ec;--bad: #c9472f;--bad-bg: #fde8e3;--line: #eadfc6;--radius: 22px;--shadow: 0 10px 28px rgba(31, 35, 41, .14);--font-display: "Baloo 2", "Noto Sans Devanagari", system-ui, sans-serif;--font-body: "Instrument Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--emoji: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);color-scheme:light}*{box-sizing:border-box}html{background:#f8e3b0}html,body{margin:0;min-height:100%}body{background:radial-gradient(1200px 600px at 50% -10%,#fff7df 0%,var(--cream) 60%,#f8e3b0 100%) no-repeat,#f8e3b0;color:var(--ink);font-family:var(--font-body);font-size:17px;line-height:1.45;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}:lang(hi) body,html[lang=hi] body{line-height:1.6}button{font:inherit;color:inherit}#app{max-width:520px;min-height:100dvh;margin:0 auto;display:flex;flex-direction:column}.screen{flex:1;display:flex;flex-direction:column;gap:14px;padding:calc(14px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));min-height:100dvh}.title{font-family:var(--font-display);font-weight:800;font-size:clamp(30px,8.5vw,40px);line-height:1.1;margin:4px 0 0;color:var(--blueberry);text-align:center;text-wrap:balance}.title--sm{font-size:clamp(24px,6.8vw,32px)}.subtitle{margin:0;text-align:center;color:var(--ink-soft);font-size:17px;text-wrap:pretty}.note{margin:0;text-align:center;color:var(--ink-soft);font-size:15px}.footer{margin:auto 0 0;text-align:center;font-size:13px;color:#8b8577}.demo-notice{margin:0 auto;font-size:12.5px;color:#7a5a1c;background:#fff6dc;border:1px dashed #e5c675;border-radius:999px;padding:4px 12px;text-align:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:12px 20px;border:0;border-radius:18px;cursor:pointer;font-family:var(--font-display);font-weight:700;font-size:19px;line-height:1.15;transition:transform .12s ease,box-shadow .12s ease,background .12s ease;touch-action:manipulation;user-select:none}.btn:active:not(:disabled){transform:translateY(2px) scale(.99)}.btn:disabled{opacity:.45;cursor:default}.btn:focus-visible,.btn-icon:focus-visible,.lang-btn:focus-visible{outline:4px solid #ffb547;outline-offset:3px}.btn--xl{min-height:62px;font-size:21px}.btn--primary{background:var(--blueberry);color:#fff;box-shadow:0 5px 0 var(--blueberry-deep)}.btn--secondary{background:var(--warm-white);color:var(--blueberry);box-shadow:0 4px #e2d4b0;border:2px solid #eadcb8}.btn--ghost{background:transparent;color:var(--blueberry);min-height:44px;padding:8px 10px;font-size:17px}.btn--bad{background:var(--bad);color:#fff;box-shadow:0 5px #9b3322}.btn--good{background:var(--good);color:#fff;box-shadow:0 5px #146243}.btn .arrow{font-family:var(--emoji);font-size:24px}.btn-icon{width:48px;height:48px;border-radius:14px;border:2px solid #e6d8b5;background:var(--warm-white);display:grid;place-items:center;cursor:pointer;color:var(--blueberry)}.btn-icon svg{width:22px;height:22px;fill:currentColor}.stack{display:flex;flex-direction:column;gap:12px}.lang-toggle{display:inline-flex;background:#fff8e4;border:2px solid #eadcb8;border-radius:999px;padding:3px;gap:2px;align-self:center}.lang-btn{min-height:44px;min-width:88px;border:0;border-radius:999px;background:transparent;font-weight:600;cursor:pointer;padding:6px 14px;color:var(--ink-soft)}.lang-btn[aria-pressed=true]{background:var(--blueberry);color:#fff}.lang-btn[lang=hi]{font-family:"Noto Sans Devanagari",var(--font-body)}.screen--start{justify-content:flex-start}.start-top{display:flex;justify-content:flex-end}.hero-card{position:relative;aspect-ratio:16 / 10;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:4px solid #fff}.best-pill{margin:0 auto;background:#fff;border-radius:999px;padding:6px 14px;font-weight:600;box-shadow:0 2px #eadcb8}.best-pill--new{background:#fff3c4;color:#7a4b00}.how-head{display:flex;justify-content:space-between;align-items:center}.how-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.how-list li{display:flex;gap:12px;align-items:flex-start;background:var(--warm-white);border-radius:16px;padding:10px 12px;border:1px solid var(--line);font-size:16px}.how-ico{font-family:var(--emoji);font-size:22px;flex:0 0 30px;text-align:center}.demo{display:flex;flex-direction:column;gap:10px;background:#fff7e0;border:2px dashed #e6c977;border-radius:var(--radius);padding:12px}.demo-label{margin:0;font-weight:600;color:#7a5a1c;text-align:center}.demo-feedback{border-radius:16px;padding:16px;font-weight:600;text-align:center}.game-card--demo .card-art{aspect-ratio:16 / 9}.hud{display:flex;flex-direction:column;gap:8px;background:var(--warm-white);border-radius:18px;padding:10px 12px;box-shadow:0 3px #eadcb8}.hud-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.hud-score{display:flex;flex-direction:column;line-height:1;min-width:64px}.hud-label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-soft)}html[lang=hi] .hud-label{text-transform:none;letter-spacing:0;font-size:13px}.hud-value{font-family:var(--font-display);font-weight:800;font-size:28px;color:var(--blueberry)}.hearts{display:flex;gap:4px}.heart svg{width:28px;height:28px;display:block}.hud-row--progress{gap:10px}.hud-card{font-weight:700;font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}.progress{position:relative;flex:1;height:12px;background:#efe6cf;border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,var(--orange),#f5a623);border-radius:999px;transition:width .3s ease}.progress-tick{position:absolute;top:0;bottom:0;width:2px;background:#ffffffe6}.phase{font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;background:#e8eafe;color:var(--blueberry);white-space:nowrap}.phase--medium{background:#fff0d6;color:#9a5300}.phase--hard{background:#f1e4ff;color:#6b2fb3}.card-stage{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;position:relative}.game-card{position:relative;width:100%;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;border:4px solid #fff;will-change:transform}.game-card.is-dragging{cursor:grabbing;transition:none}.game-card.is-snapping{transition:transform .22s cubic-bezier(.2,.9,.3,1.2)}.game-card.fly-left{transition:transform .2s ease-in,opacity .2s ease-in;transform:translate(-130%) rotate(-14deg)!important;opacity:0}.game-card.fly-right{transition:transform .2s ease-in,opacity .2s ease-in;transform:translate(130%) rotate(14deg)!important;opacity:0}.card-art{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#eef6fb}.card-text{margin:0;padding:14px 16px 18px;font-size:clamp(18px,5vw,21px);font-weight:600;line-height:1.4;text-align:center;text-wrap:pretty;min-height:4.2em;display:flex;align-items:center;justify-content:center}.card-text:lang(hi){font-family:"Noto Sans Devanagari",var(--font-body);line-height:1.6}.drag-hint{position:absolute;top:14px;padding:6px 12px;border-radius:12px;font-family:var(--font-display);font-weight:800;font-size:20px;color:#fff;opacity:0;pointer-events:none;border:3px solid #fff;transition:opacity .1s}.drag-hint--bad{left:14px;background:var(--bad);transform:rotate(-8deg)}.drag-hint--good{right:14px;background:var(--good);transform:rotate(8deg)}.game-card[data-dir=left] .drag-hint--bad,.game-card[data-dir=right] .drag-hint--good{opacity:calc(.25 + var(--drag-strength, 0) * .75)}.game-card[data-ready=true] .drag-hint{box-shadow:0 0 0 4px #ffb547cc}.scene-bg{position:absolute;inset:0;width:100%;height:100%;display:block}.scene-props{position:absolute;left:0;right:0;bottom:8%;display:flex;align-items:flex-end;justify-content:center;gap:2%;padding:0 4%;flex-wrap:nowrap}.prop{font-family:var(--emoji);line-height:1;filter:drop-shadow(0 3px 2px rgba(0,0,0,.18))}.scene-props--lg .prop{font-size:clamp(48px,15vw,74px)}.scene-props--md .prop{font-size:clamp(42px,12.5vw,62px)}.scene-props--sm .prop{font-size:clamp(36px,10.5vw,52px)}.scene-props .prop--small{font-size:.55em!important;align-self:center}.scene-props--lg .prop--small{font-size:clamp(28px,8vw,40px)!important}.scene-props--md .prop--small{font-size:clamp(24px,7vw,34px)!important}.scene-props--sm .prop--small{font-size:clamp(22px,6vw,30px)!important}.prop--svg{display:inline-block}.prop--svg svg{display:block}.scene-props--lg .prop--svg svg{height:clamp(58px,18vw,88px);width:auto}.scene-props--md .prop--svg svg{height:clamp(50px,15vw,74px);width:auto}.scene-props--sm .prop--svg svg{height:clamp(44px,13vw,62px);width:auto}.prop--worker svg{height:clamp(64px,20vw,96px)!important}.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.actions .btn{min-height:68px;font-size:clamp(18px,5vw,21px);padding:10px 12px}.actions--single{grid-template-columns:1fr}.card-stage--feedback{align-items:center}.feedback{width:100%;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;display:flex;flex-direction:column;gap:10px;border:4px solid var(--good-bg);animation:pop-in .22s ease-out}.feedback.is-wrong{border-color:#ffe2c6}.fb-head{display:flex;gap:12px;align-items:center}.fb-icon svg{width:52px;height:52px;display:block}.feedback.is-correct .fb-icon svg circle{fill:var(--good)}.feedback.is-wrong .fb-icon svg circle{fill:var(--orange)}.fb-title{margin:0;font-family:var(--font-display);font-weight:800;font-size:26px;line-height:1.1}.feedback.is-correct .fb-title{color:var(--good)}.feedback.is-wrong .fb-title{color:#b45c12}.fb-answer{margin:2px 0 0;font-weight:700;font-size:16px}.fb-chips{display:flex;gap:8px;flex-wrap:wrap}.chip{font-weight:700;font-size:15px;padding:5px 12px;border-radius:999px}.chip--plus{background:var(--good-bg);color:#135c3c}.chip--minus{background:#fff0e2;color:#8a4410}.fb-scene{position:relative;aspect-ratio:16 / 7;border-radius:14px;overflow:hidden}.fb-scene .scene-props--lg .prop{font-size:clamp(34px,10vw,48px)}.fb-scene .scene-props--md .prop,.fb-scene .scene-props--sm .prop{font-size:clamp(28px,8vw,40px)}.fb-scene .prop--small{font-size:22px!important}.fb-scene .prop--svg svg{height:46px!important}.fb-card-text{margin:0;color:var(--ink-soft);font-size:15.5px}.fb-explain{margin:0;font-size:18px;font-weight:600;line-height:1.45;background:#fbf7ec;border-radius:14px;padding:12px 14px}.fb-explain:lang(hi),.fb-card-text:lang(hi){font-family:"Noto Sans Devanagari",var(--font-body);line-height:1.65}.demo-feedback.is-correct{background:var(--good-bg);color:#135c3c}.demo-feedback.is-wrong{background:#fff0e2;color:#8a4410}@keyframes pop-in{0%{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}.overlay-wrap{position:relative;flex:1;display:flex;flex-direction:column}.scrim{position:fixed;inset:0;background:#181b3c8c;display:grid;place-items:center;padding:16px;padding-bottom:calc(16px + var(--safe-bottom));z-index:10;backdrop-filter:blur(2px)}.dialog{width:min(440px,100%);background:var(--warm-white);border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 20px 50px #0000004d;animation:pop-in .18s ease-out}.dialog-title{margin:0;font-family:var(--font-display);font-weight:800;font-size:26px;color:var(--blueberry);text-align:center}.dialog-body{margin:0;text-align:center;color:var(--ink-soft)}.screen--result{justify-content:center;text-align:center}.result-badge{font-family:var(--emoji);font-size:76px;line-height:1;margin:0 auto}.score-big{display:flex;flex-direction:column;align-items:center;background:#fff;border-radius:var(--radius);padding:14px;box-shadow:var(--shadow)}.score-big span{font-family:var(--font-display);font-weight:800;font-size:64px;line-height:1;color:var(--blueberry)}.score-big small{color:var(--ink-soft);font-size:15px}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px}.stat{background:var(--warm-white);border:1px solid var(--line);border-radius:16px;padding:10px 6px;display:flex;flex-direction:column}.stat-value{font-family:var(--font-display);font-weight:800;font-size:26px;line-height:1.1}.stat-label{font-size:13.5px;color:var(--ink-soft)}@media(max-height:700px){.screen{gap:10px}.card-art{aspect-ratio:16 / 10}.card-text{min-height:3.6em;padding:10px 14px 12px}.actions .btn{min-height:60px}.fb-scene{display:none}.hero-card{aspect-ratio:16 / 8}}@media(max-height:600px){.card-art{aspect-ratio:2 / 1}.hud{padding:8px 10px;gap:6px}.hud-value{font-size:24px}.heart svg{width:24px;height:24px}}@media(orientation:landscape)and (max-height:560px){#app{max-width:920px}.screen{padding-top:calc(8px + var(--safe-top));gap:8px}.screen--game{display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:auto 1fr auto;column-gap:16px}.screen--game .hud{grid-column:1 / -1;flex-direction:row;align-items:center;padding:6px 10px}.screen--game .hud-row--progress{flex:1}.screen--game .card-stage{grid-column:1;grid-row:2 / 4}.screen--game .actions{grid-column:2;grid-row:3;grid-template-columns:1fr}.hud-value{font-size:22px}.heart svg{width:22px;height:22px}.btn-icon{width:44px;height:44px}.card-art{aspect-ratio:21 / 9}.card-text{font-size:17px;min-height:0;padding:8px 12px 10px}.fb-scene{display:none}.feedback{padding:12px;gap:6px}.fb-explain{font-size:16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
