:root{--bg: #0e111b;--surface: #171c2b;--surface-2: #1e2437;--border: #262d42;--text: #eef1f7;--muted: #9aa3b8;--accent: #35d0ba;--accent-text: #06221d;--wrong: #ff5d73;--key: #2a3248;--key-extra: #2f3a58;--key-used: #161a26;--key-used-text: #4f5770;--radius: 14px;color-scheme:dark}@media(prefers-color-scheme:light){:root:not([data-theme=dark]){--bg: #f4f6fb;--surface: #ffffff;--surface-2: #eceff6;--border: #d9deea;--text: #1b2030;--muted: #5d6578;--accent: #138a77;--accent-text: #ffffff;--wrong: #d23a52;--key: #e2e7f1;--key-extra: #d7e1f5;--key-used: #f1f3f8;--key-used-text: #a3abbd;color-scheme:light}}:root[data-theme=light]{--bg: #f4f6fb;--surface: #ffffff;--surface-2: #eceff6;--border: #d9deea;--text: #1b2030;--muted: #5d6578;--accent: #138a77;--accent-text: #ffffff;--wrong: #d23a52;--key: #e2e7f1;--key-extra: #d7e1f5;--key-used: #f1f3f8;--key-used-text: #a3abbd;color-scheme:light}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}:root[data-large-text=true] body{font-size:19px}button,select,input{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer}a{color:inherit}h1,h2,p{margin:0}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.app{max-width:520px;margin:0 auto;height:var(--app-height, 100dvh);display:flex;flex-direction:column}.screen{flex:1;min-height:0;display:flex;flex-direction:column;padding:calc(10px + env(safe-area-inset-top,0px)) 16px calc(12px + env(safe-area-inset-bottom,0px))}.scroll{flex:1;min-height:0;overflow-y:auto;margin:0 -16px;padding:0 16px 8px;display:flex;flex-direction:column;gap:10px}.muted{color:var(--muted)}.small{font-size:13px}.center{text-align:center}.spacer{flex:1}.share{position:relative;flex:none}.share-note{position:absolute;top:calc(100% + 6px);right:0;z-index:20;padding:6px 10px;border-radius:10px;background:var(--surface);border:1px solid var(--border);box-shadow:0 6px 16px #00000040;font-size:13px;font-weight:600;white-space:nowrap}.topbar{display:flex;align-items:center;gap:8px;min-height:48px;margin-bottom:4px}.topbar h1{flex:1;font-size:17px;text-align:center;line-height:1.2}.topbar h1 small{display:block;font-size:12px;font-weight:500;color:var(--muted)}.topbar-actions{min-width:44px;display:flex;justify-content:flex-end}.icon-button{width:44px;height:44px;flex:none;border-radius:12px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border)}.icon-button svg{width:20px;height:20px}.button{min-height:50px;padding:0 18px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;text-decoration:none;text-align:center;background:var(--surface);border:1px solid var(--border)}.button svg{width:18px;height:18px}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.button.small{min-height:44px;font-size:14px}.button.danger{color:var(--wrong)}.button:disabled{opacity:.45}.button:active,.icon-button:active,.card:active,.key:active{transform:scale(.97)}.link{color:var(--accent);font-weight:600}.hero{text-align:center;margin-top:4px}.hero .balloon{height:150px}.hero h1{font-size:40px;font-weight:900;letter-spacing:-.02em}.language-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}.segmented{display:flex;padding:3px;border-radius:12px;background:var(--surface);border:1px solid var(--border)}.segmented button{min-height:36px;padding:0 14px;border-radius:9px;font-weight:700}.segmented button.on{background:var(--accent);color:var(--accent-text)}.segmented button:disabled{color:var(--muted)}.segmented small{font-weight:500;font-size:11px}.card{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);text-decoration:none}.card.big{padding:18px 16px;background:linear-gradient(135deg,#35d0ba38,#35d0ba0a),var(--surface);border-color:#35d0ba8c}.card.big b{font-size:20px}.card.highlight{border-color:var(--accent)}.card small{color:var(--muted);font-size:13px}.rules{font-size:14px;text-align:center;margin-top:6px}.label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600;margin:10px 0 0}.choices{display:flex;flex-direction:column;gap:8px}.choice{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);text-align:left}.choice small{color:var(--muted);font-size:13px}.choice.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{padding:8px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:14px}.chip.on{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:700}.chip.off{opacity:.5;border-style:dashed}.bottom-actions{display:grid;grid-template-columns:1fr 2fr;gap:10px;padding-top:12px}.bottom-actions.single{grid-template-columns:1fr}.play{padding-left:8px;padding-right:8px}.meta{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;font-size:13px;color:var(--muted)}.meta .chip{padding:3px 10px;font-size:13px}.art{flex:1;min-height:110px;position:relative;display:flex;align-items:center;justify-content:center}.balloon{height:100%;max-height:220px;width:auto}.balloon ellipse,.balloon-body{transition:all .35s ease}.popped.animate .burst{animation:burst .35s ease-out forwards}.popped.animate .shred{animation:shred .7s cubic-bezier(.2,.7,.4,1) var(--delay) both}.popped.animate .string,.popped.animate .knot{animation:drop .6s ease-in .15s both}@keyframes burst{0%{transform:scale(.4);opacity:1}to{transform:scale(1.3);opacity:0}}@keyframes shred{0%{transform:translate(var(--from-x),var(--from-y)) scale(.3)}35%{transform:translate(calc(var(--from-x) * -.4),calc(var(--from-y) * 1.15)) scale(1)}to{transform:none}}@keyframes drop{0%{transform:translateY(-70px);opacity:0}30%{opacity:1}}.tries{position:absolute;right:12px;top:6px;text-align:right}.tries b{font-size:24px;font-variant-numeric:tabular-nums}.tries small{display:block;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.word{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;padding:6px 4px 2px}.word span{width:clamp(24px,8.4vw,38px);height:clamp(38px,11vw,50px);display:grid;place-items:center;border-bottom:3px solid var(--muted);font-size:clamp(20px,6.6vw,30px);font-weight:800}.word span.hit{border-color:var(--accent);animation:pop .25s ease-out}.word span.missed{color:var(--wrong);border-color:var(--wrong)}.word.won span{color:var(--accent)}@keyframes pop{0%{transform:scale(.6);opacity:0}}.message{min-height:22px;text-align:center;font-size:13px;color:var(--muted);padding:2px 8px 6px}.keyboard{display:grid;gap:7px;padding:2px 0 8px;touch-action:manipulation;user-select:none;-webkit-user-select:none}.key-row{display:flex;justify-content:center;gap:5px}.key{position:relative;flex:1 1 0;max-width:42px;min-width:0;height:52px;border-radius:9px;background:var(--key);color:var(--text);font-weight:700;font-size:18px;box-shadow:0 2px #0000004d}:root[data-large-text=true] .key{font-size:21px}.key.extra{background:var(--key-extra);box-shadow:0 2px #0000004d,inset 0 0 0 1px #6cb8ff66}.key:disabled{cursor:default}.key.right{background:#35d0ba38;color:var(--accent)}.key.wrong{background:var(--key-used);color:var(--key-used-text);text-decoration:line-through;box-shadow:none}.key.right:after,.key.wrong:after{position:absolute;top:2px;right:4px;font-size:9px;text-decoration:none}.key.right:after{content:"✓"}.key.wrong:after{content:"✕";color:var(--wrong)}.tools{display:flex;justify-content:center}.tools .button{width:100%}.result-head{text-align:center;padding-top:10px}.result-head .balloon{height:130px}.result-head h1{font-size:30px;margin:4px 0 2px}.solution{font-size:32px;font-weight:800;letter-spacing:4px;margin:8px 0 2px;word-break:break-word}.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.kpi{padding:10px 6px;border-radius:12px;background:var(--surface);border:1px solid var(--border);text-align:center}.kpi b{display:block;font-size:22px;font-variant-numeric:tabular-nums}.kpi small{font-size:12px;color:var(--muted)}.distribution{display:grid;gap:7px;margin-top:8px}.dist-row{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.bar{height:24px;border-radius:6px;background:var(--accent);color:var(--accent-text);display:flex;align-items:center;justify-content:flex-end;padding:0 8px;font-size:12px;font-weight:700}.account-hint{padding:12px 14px;border-radius:12px;border:1px dashed var(--border);font-size:14px;color:var(--muted)}.account-hint .row{display:flex;gap:16px;margin-top:6px}.benefits{margin:4px 0;padding-left:20px;line-height:1.7}.setting{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--border)}.setting select{padding:6px 8px;border-radius:8px;border:1px solid var(--border);background:var(--surface-2)}.setting input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.consent{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:10;max-width:496px;margin:0 auto;padding:14px;border-radius:14px;background:var(--surface);border:1px solid var(--border);box-shadow:0 12px 30px #0000004d;font-size:14px}.consent .row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}@media(max-height:700px){.key{height:46px}.hero .balloon{height:110px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.legal-links{margin:4px 0}
