:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f5f3ed;--card:#fffefa;--surface:#eceee9;--ink:#173337;--muted:#627477;--line:#d7ded9;--accent:#13736c;--accent-ink:#fff;--accent-soft:#ddf1eb;--warm:#f0ae6c;--shadow:0 12px 36px #17333711;--tg-safe-top:0px;--tg-safe-right:0px;--tg-safe-bottom:0px;--tg-safe-left:0px}@media (prefers-color-scheme:dark){:root:not([data-telegram-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#142427;--card:#1c3033;--surface:#22383a;--ink:#ecf5ef;--muted:#adc1bc;--line:#3d5453;--accent:#74d5bf;--accent-ink:#102c2c;--accent-soft:#24443f;--warm:#edb782;--shadow:0 12px 36px #00000029}}:root[data-telegram-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#142427;--card:#1c3033;--surface:#22383a;--ink:#ecf5ef;--muted:#adc1bc;--line:#3d5453;--accent:#74d5bf;--accent-ink:#102c2c;--accent-soft:#24443f;--warm:#edb782;--shadow:0 12px 36px #00000029}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--bg);min-width:320px;color:var(--ink);margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.45;overflow-x:hidden}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible{outline:3px solid var(--warm);outline-offset:3px}button,input{-webkit-tap-highlight-color:transparent}::selection{background:var(--accent-soft)}.shell{width:min(100%,760px);min-height:var(--tg-viewport-stable-height,100dvh);padding:calc(20px + max(env(safe-area-inset-top), var(--tg-safe-top))) calc(22px + max(env(safe-area-inset-right), var(--tg-safe-right))) calc(48px + max(env(safe-area-inset-bottom), var(--tg-safe-bottom))) calc(22px + max(env(safe-area-inset-left), var(--tg-safe-left)));margin:0 auto}.topbar{justify-content:space-between;align-items:center;gap:12px;min-height:45px;display:flex}.brand-mark{border:1px solid var(--ink);letter-spacing:-3px;border-radius:12px;place-items:center;width:43px;height:43px;padding-right:3px;font-family:Georgia,serif;font-size:23px;font-style:italic;font-weight:700;display:inline-grid}.brand-mark.small{border-color:var(--line);width:37px;height:37px;font-size:19px}.text-button{color:var(--accent);text-align:left;background:0 0;border:0;min-height:44px;padding:8px 0;font-size:14px;font-weight:700}.text-button:hover{text-underline-offset:4px;text-decoration:underline}.kicker,.tiny-label,.eyebrow{color:var(--accent);letter-spacing:.13em;font-size:11px;font-weight:800}.tiny-label{font-size:10px}.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.045em;line-height:1.06}h2{letter-spacing:-.025em;line-height:1.2}.home-shell{flex-direction:column;display:flex;position:relative;overflow:hidden}.home-shell:before{content:"";background:radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);opacity:.78;pointer-events:none;border-radius:50%;width:590px;height:590px;position:absolute;top:135px;right:-290px}.home-shell>*{position:relative}.hero-visual{width:235px;height:232px;color:var(--accent);place-items:center;margin:44px auto 15px;display:grid}.hero-orbit{border:1px solid var(--accent);opacity:.32;border-radius:50%;position:absolute}.orbit-one{width:216px;height:216px;transform:rotate(-28deg)scaleX(.67)}.orbit-two{width:216px;height:216px;transform:rotate(32deg)scaleX(.67)}.hero-orbit:before,.hero-orbit:after{content:"";background:var(--accent);border-radius:50%;width:10px;height:10px;position:absolute}.hero-orbit:before{top:13%;left:19%}.hero-orbit:after{bottom:26%;right:6%}.hero-f{text-shadow:11px 10px 0 var(--accent-soft);font-family:Georgia,serif;font-size:136px;font-style:italic;line-height:1;position:relative;transform:rotate(-9deg)}.hero-cross{font-size:25px;font-weight:300;position:absolute}.cross-one{top:23px;left:10px}.cross-two{bottom:8px;right:14px}.hero-copy{max-width:590px}.hero-copy h1{margin:12px 0 17px;font-size:clamp(39px,9vw,64px);font-weight:790}.hero-copy h1 em{color:var(--accent);font-style:normal}.hero-copy p{color:var(--muted);max-width:470px;font-size:17px;line-height:1.55}.home-actions{gap:10px;width:100%;max-width:480px;margin-top:14px;display:grid}.button{text-align:left;border:1px solid #0000;border-radius:15px;justify-content:space-between;align-items:center;gap:14px;width:100%;min-height:56px;padding:13px 19px;font-weight:750;transition:transform .16s,background .16s,box-shadow .16s;display:flex}.button span{font-size:20px;font-weight:400;line-height:1}.button:hover:not(:disabled){box-shadow:var(--shadow);transform:translateY(-2px)}.button.primary{background:var(--accent);color:var(--accent-ink)}.button.secondary{background:var(--card);color:var(--ink);border-color:var(--line)}.button:disabled{opacity:.46;box-shadow:none;transform:none}.home-note{border-top:1px solid var(--line);max-width:480px;color:var(--muted);align-items:center;gap:14px;margin-top:33px;padding-top:18px;font-size:13px;display:flex}.note-icon{color:var(--accent);letter-spacing:.07em;flex:none;font-size:12px;font-weight:800}.home-stat{color:var(--muted);margin:17px 0 0;font-size:13px}.game-shell{max-width:710px}.game-topbar{margin-bottom:22px}.case-header{justify-content:space-between;align-items:end;gap:8px;margin-bottom:22px;display:flex}.case-header h1{margin:7px 0 0;font-size:clamp(29px,6vw,42px)}.query-counter{border:1px solid var(--line);background:var(--card);white-space:nowrap;color:var(--muted);border-radius:50px;padding:8px 12px;font-size:13px}.query-counter strong{color:var(--ink);font-size:16px}.panel{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:21px;padding:19px}.panel-heading,.section-line{justify-content:space-between;align-items:end;gap:10px;display:flex}.panel-heading h2,.section-line h2{margin:3px 0 0;font-size:20px}.panel-count{color:var(--muted);font-size:13px}.graph-frame{margin:14px -7px -3px;position:relative}.graph-frame svg{width:100%;height:auto;display:block;overflow:visible}.graph-frame.is-zoomed svg{cursor:grab;touch-action:none}.graph-frame.is-zoomed svg:active{cursor:grabbing}.graph-plot{fill:var(--bg)}.graph-grid{stroke:var(--line);stroke-width:.8px;opacity:.65}.graph-axis{stroke:var(--muted);stroke-width:1.4px}.graph-label{fill:var(--muted);font-family:inherit;font-size:10.5px}.graph-axis-name{fill:var(--ink);font-family:inherit;font-size:12px;font-style:italic;font-weight:700}.graph-target-curve{fill:none;stroke:var(--accent);stroke-width:2.8px;stroke-linecap:round;stroke-linejoin:round}.graph-other-curve{fill:none;stroke:var(--muted);stroke-width:1.3px;stroke-dasharray:4 4;opacity:.62}.graph-point-halo{fill:var(--accent-soft)}.graph-point{fill:var(--accent);stroke:var(--card);stroke-width:1.5px}.graph-new-point{transform-box:fill-box;transform-origin:50%;animation:.35s ease-out both point-in}.graph-empty{pointer-events:none;text-align:center;width:90%;color:var(--muted);font-size:13px;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%)}.graph-controls{justify-content:space-between;align-items:center;gap:8px;margin-top:7px;display:flex}.graph-zoom-label{color:var(--muted);white-space:nowrap;font-size:12px;font-weight:650}.graph-zoom-buttons{gap:6px;display:flex}.graph-zoom-buttons button{border:1px solid var(--line);background:var(--card);min-width:44px;min-height:44px;color:var(--ink);border-radius:10px;font-size:21px;font-weight:650;line-height:1}.graph-zoom-buttons button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.graph-zoom-buttons button:disabled{opacity:.45}.graph-zoom-buttons .graph-fit-button{min-width:75px;padding:0 8px;font-size:12px}.graph-pan-hint{color:var(--muted);margin:3px 0 0;font-size:11px}@keyframes point-in{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}.curve-toggle{min-height:44px;color:var(--muted);cursor:pointer;align-items:center;gap:9px;font-size:13px;display:flex}.curve-toggle input{accent-color:var(--accent);width:18px;height:18px}.experiment-section,.history-section,.candidates-section{margin-top:29px}.section-line .muted{text-align:right;font-size:12px}.x-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;display:grid}.x-button{border:1px solid var(--line);background:var(--card);min-width:0;min-height:79px;color:var(--ink);border-radius:16px;flex-wrap:wrap;place-content:center;align-items:baseline;gap:2px 5px;transition:border-color .16s,transform .16s,background .16s;display:flex}.x-button:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft);transform:translateY(-2px)}.x-button strong{font-size:29px;font-weight:730;line-height:1}.x-symbol{color:var(--muted);font-size:14px;font-weight:650}.x-button.used{background:var(--surface);opacity:.62}.x-used{text-align:center;color:var(--muted);flex-basis:100%;font-size:10px;display:block}.experiment-hint,.candidate-hint{color:var(--muted);margin:11px 1px 0;font-size:12px}.history-list{gap:7px;margin:13px 0 0;padding:0;list-style:none;display:grid}.history-list li{background:var(--card);border:1px solid var(--line);border-radius:12px;align-items:center;gap:10px;min-height:49px;padding:8px 12px;font-size:14px;display:flex}.history-number{color:var(--accent);font-size:11px;font-weight:800}.history-arrow{color:var(--muted);margin-left:auto}.history-list strong{white-space:nowrap;font-size:16px}.empty-history{border:1px dashed var(--line);color:var(--muted);border-radius:13px;margin:13px 0 0;padding:16px;font-size:13px}.candidate-list{gap:9px;margin-top:14px;display:grid}.candidate-card{border:1px solid var(--line);background:var(--card);border-radius:14px;align-items:stretch;gap:4px;min-width:0;padding:4px;transition:border-color .15s,background .15s,opacity .15s;display:flex}.candidate-card.selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.candidate-card.answer-card{border-color:var(--accent);background:var(--accent-soft)}.candidate-card.eliminated{opacity:.59}.candidate-card.tutorial-mismatch{background:var(--surface);opacity:.61}.candidate-select{min-width:0;min-height:57px;color:var(--ink);text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:13px;padding:5px 9px;display:flex}.candidate-select:disabled{cursor:default}.candidate-letter{border:1px solid var(--line);width:36px;height:36px;color:var(--accent);background:var(--bg);border-radius:10px;flex:none;place-items:center;font-size:15px;font-weight:800;display:grid}.candidate-formula{letter-spacing:-.02em;overflow-wrap:anywhere;min-width:0;font-size:clamp(17px,4.4vw,21px);font-weight:620}.candidate-radio{border:2px solid var(--line);border-radius:50%;flex:none;width:20px;height:20px;margin-left:auto}.selected .candidate-radio{border:6px solid var(--accent);background:var(--card)}.eliminated .candidate-formula{text-decoration:line-through;text-decoration-thickness:1.5px}.mark-button{border:0;border-left:1px solid var(--line);width:46px;min-height:50px;color:var(--muted);background:0 0;border-radius:0 10px 10px 0;flex:none;font-size:25px;line-height:1}.mark-button:hover:not(:disabled){color:var(--accent);background:var(--surface)}.answer-section{border-top:1px solid var(--line);margin-top:28px;padding-top:19px}.answer-guidance{background:var(--surface);color:var(--muted);border-radius:12px;margin-bottom:14px;padding:12px 14px;font-size:13px}.answer-guidance.ready{background:var(--accent-soft);color:var(--ink)}.surrender-button{width:100%;min-height:50px;color:var(--muted);text-underline-offset:3px;background:0 0;border:0;margin-top:8px;font-size:13px;text-decoration:underline;display:block}.surrender-button:hover{color:var(--ink)}.tutorial-note{background:var(--accent-soft);border:1px solid var(--accent);border-radius:16px;justify-content:space-between;align-items:flex-start;gap:18px;margin:0 0 18px;padding:15px 17px;display:flex}.tutorial-note p{margin:5px 0 0;font-size:13px;line-height:1.5}.tutorial-note .text-button{flex:none;font-size:12px}.outcome-panel{background:var(--accent-soft);border:1px solid var(--accent);border-radius:20px;margin-top:28px;padding:22px}.outcome-panel.lost,.outcome-panel.surrendered{background:var(--card);border-color:var(--line)}.outcome-panel h2{margin:7px 0 12px;font-size:clamp(25px,5vw,31px)}.outcome-panel>p{font-size:15px}.outcome-panel>p strong{color:var(--accent);display:inline}.explanation{border-top:1px solid var(--line);margin-top:17px;padding-top:17px}.explanation h3{margin-bottom:9px;font-size:15px}.explanation p{color:var(--muted);margin-bottom:8px;font-size:13px}.outcome-actions{gap:9px;margin-top:22px;display:grid}.outcome-actions .secondary{background:0 0}.tutorial-again{margin-top:12px}.toast{z-index:20;left:50%;top:calc(16px + env(safe-area-inset-top));background:var(--ink);width:min(100% - 24px,540px);color:var(--bg);box-shadow:var(--shadow);border-radius:12px;align-items:center;gap:12px;padding:12px 14px;font-size:13px;display:flex;position:fixed;transform:translate(-50%)}.toast span{flex:1}.toast button{width:36px;height:36px;color:inherit;background:0 0;border:0;flex:none;font-size:23px}.loading-screen{flex-direction:column;justify-content:center;align-items:flex-start;display:flex}.loading-screen h1{margin:22px 0 9px;font-size:34px}.loading-screen p{color:var(--muted)}.loading-screen .button{max-width:250px}.section-head{margin:37px 0 22px}.section-head h1{margin:7px 0 11px;font-size:clamp(34px,7vw,45px)}.section-head p{color:var(--muted);max-width:470px;font-size:14px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.stat-card{background:var(--card);border:1px solid var(--line);border-radius:16px;flex-direction:column;justify-content:space-between;min-height:111px;padding:15px;display:flex}.stat-card strong{letter-spacing:-.05em;color:var(--accent);font-size:35px;line-height:1}.stat-card span{color:var(--muted);font-size:13px}.stats-history{margin-top:22px}.stats-history h2{font-size:19px}.stats-history ul{margin:0;padding:0;list-style:none}.stats-history li{border-top:1px solid var(--line);align-items:center;gap:9px;padding:13px 0;font-size:13px;display:flex}.stats-history li span:nth-child(2){flex:1}.stats-history time{color:var(--muted)}.status-dot{background:var(--muted);border-radius:50%;width:9px;height:9px}.status-dot.won{background:var(--accent)}.status-dot.lost{background:#c87560}@media (min-width:760px){.home-shell{padding-top:36px}.hero-visual{width:300px;height:300px;margin:0;position:absolute;top:152px;right:14px}.hero-copy{margin-top:130px}.hero-copy p{max-width:440px}.home-actions,.home-note{max-width:420px}.home-shell:before{right:-180px}}@media (max-width:480px){.shell{padding-left:calc(17px + max(env(safe-area-inset-left), var(--tg-safe-left)));padding-right:calc(17px + max(env(safe-area-inset-right), var(--tg-safe-right)))}.home-shell{min-height:var(--tg-viewport-stable-height,100dvh)}.hero-visual{width:186px;height:181px;margin:24px auto 10px}.orbit-one,.orbit-two{width:176px;height:176px}.hero-f{font-size:113px}.hero-copy p{font-size:15px}.home-actions{margin-top:4px}.case-header{align-items:center}.case-header h1{font-size:29px}.query-counter{padding:7px 9px;font-size:11px}.query-counter strong{font-size:14px}.panel{padding:14px}.panel-heading h2,.section-line h2{font-size:18px}.section-line .muted{max-width:95px}.tutorial-note{display:block}.tutorial-note .text-button{margin-top:5px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
