:root{--bg:#eef4ff;--bg-2:#f8faff;--surface:#fff;--surface-2:#f2f5fb;--text:#172033;--muted:#65708a;--line:#dfe5f0;--accent:#1f7bff;--accent-deep:#1459c4;--accent-soft:#e3eeff;--accent-text:#fff;--bad:#e5484d;--bad-soft:#fdecec;--good:#12a150;--circle:#ff5c9d;--triangle:#ffad1f;--rect:#22bfa0;--shadow:0 10px 30px #17203314;--radius:16px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Segoe UI,Malgun Gothic,sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#0d1220;--bg-2:#121a2c;--surface:#182136;--surface-2:#1f2a42;--text:#e9eefc;--muted:#97a2bd;--line:#2a3654;--accent:#4a93ff;--accent-deep:#2b6bd0;--accent-soft:#1c2c4d;--accent-text:#fff;--bad:#ff7a7f;--bad-soft:#3a1d25;--good:#45d483;--shadow:0 10px 30px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:radial-gradient(60rem 30rem at 110% -10%, color-mix(in srgb, var(--circle) 14%, transparent), transparent 70%), radial-gradient(50rem 30rem at -20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), linear-gradient(var(--bg), var(--bg-2));color:var(--text);background-attachment:fixed}button,input,select{font:inherit;color:inherit}h2{margin:0;font-size:1rem}kbd{font:inherit;opacity:.7;border:1px solid;border-radius:6px;padding:.1em .45em;font-size:.72em;font-weight:600}@media (hover:none){.button kbd,.keys{display:none}}:focus-visible{outline:3px solid color-mix(in srgb, var(--accent) 60%, transparent);outline-offset:2px}.button{cursor:pointer;touch-action:manipulation;border:0;border-radius:14px;justify-content:center;align-items:center;gap:.5rem;min-height:48px;padding:0 1.1rem;font-weight:700;transition:transform 80ms,box-shadow 80ms,background-color .15s;display:inline-flex}.button:disabled{cursor:default;opacity:.5}.button.primary{background:var(--accent);color:var(--accent-text)}.button.primary:not(:disabled):active{background:var(--accent-deep);transform:translateY(1px)}.button.secondary{background:var(--surface);color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line)}.button.secondary:not(:disabled):active{background:var(--surface-2)}.button.ghost{color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line);background:0 0}.button.danger{background:var(--bad);color:#fff}.button.big{width:100%;min-height:56px;font-size:1.1rem}.icon-button{background:var(--surface);width:44px;height:44px;color:var(--text);box-shadow:var(--shadow);cursor:pointer;border:0;border-radius:12px;place-items:center;display:inline-grid}.card{background:var(--surface);box-shadow:var(--shadow);border-radius:20px;padding:16px}.note{color:var(--muted);margin:0;font-size:.875rem}.shape-circle{fill:var(--circle)}.shape-triangle{fill:var(--triangle)}.shape-rect{fill:var(--rect)}.home{max-width:440px;padding:calc(12px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));flex-direction:column;justify-content:center;gap:16px;min-height:100dvh;margin:0 auto;display:flex;position:relative}.home-top{top:calc(12px + env(safe-area-inset-top));right:calc(16px + env(safe-area-inset-right));gap:8px;display:flex;position:absolute}.hero{text-align:center;padding:8px 0 4px}.logo{flex-direction:column;align-items:center;gap:6px;display:inline-flex}.logo-shapes{gap:10px;display:flex}.logo-shapes svg{width:34px;height:34px;animation:2.4s ease-in-out infinite bob}.logo-shapes svg:nth-child(2){animation-delay:.2s}.logo-shapes svg:nth-child(3){animation-delay:.4s}.logo-text{letter-spacing:-.04em;font-size:3.2rem;font-weight:900;line-height:1}.tagline{color:var(--muted);margin:12px 0 0;line-height:1.55}.modes{flex-direction:column;gap:10px;display:flex}.duel-modes{grid-template-columns:1fr 1fr;gap:10px;display:grid}.modes .note{text-align:center;margin-top:-2px}.error-card{color:var(--bad);flex-direction:column;gap:12px;display:flex}.error-card p{margin:0}.my-stats{grid-template-columns:repeat(4,1fr);gap:4px;padding:14px 8px;display:grid}.stat{flex-direction:column;align-items:center;gap:2px;display:flex}.stat-value{font-variant-numeric:tabular-nums;font-size:1.35rem;font-weight:800}.stat-label{color:var(--muted);font-size:.75rem}.how-list{gap:8px;margin:0;padding-left:1.3rem;line-height:1.55;display:grid}.how-list li::marker{color:var(--accent);font-weight:800}.sheet-backdrop{z-index:10;background:#0a0e1973;justify-content:center;align-items:flex-end;animation:.15s fade-in;display:flex;position:fixed;inset:0}.sheet{width:100%;max-width:480px;padding:20px 20px calc(20px + env(safe-area-inset-bottom));background:var(--surface);box-shadow:var(--shadow);border-radius:24px 24px 0 0;flex-direction:column;gap:14px;animation:.2s sheet-up;display:flex}.sheet h2{font-size:1.15rem}.sheet-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}@media (width>=600px){.sheet-backdrop{align-items:center}.sheet{border-radius:24px;padding-bottom:20px}}.play{left:0;right:0;top:var(--vv-top,0px);height:var(--vvh,100dvh);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);touch-action:manipulation;overscroll-behavior:none;flex-direction:column;display:flex;position:fixed}.play-top{flex:none;align-items:center;gap:8px;padding:8px 12px;display:flex}.chip{background:var(--surface);height:36px;box-shadow:var(--shadow);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:0 12px;font-size:.9rem;font-weight:700;display:inline-flex}.chip-icon{width:16px;height:16px}.wrong-chip{color:var(--bad);font-variant-numeric:tabular-nums;margin-left:auto}.wrong-chip[data-empty=true]{color:var(--muted)}.play-body{flex-direction:column;flex:1;gap:10px;min-height:0;padding:0 12px 12px;display:flex}.stage{flex:auto;place-items:center;min-height:96px;display:grid;container-type:size}.frame{width:min(100cqw, 100cqh * var(--ar));aspect-ratio:var(--ar);position:relative}.canvas{width:100%;height:100%;box-shadow:var(--shadow);cursor:pointer;background:#fff;border-radius:18px;display:block}.phase-done .canvas{cursor:default}.phase-done .progress-row{display:none}.original{object-fit:fill;pointer-events:none;background:#fff;transition:opacity .6s;position:absolute}.start-overlay{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:12px;font-weight:700;display:flex;position:absolute;inset:0}.start-disc{background:var(--accent);width:76px;height:76px;color:var(--accent-text);box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);border-radius:50%;place-items:center;animation:1.8s ease-out infinite pulse;display:grid}.paused-badge{color:#fff;white-space:nowrap;pointer-events:none;background:#0f1420b8;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:.8rem;font-weight:700;display:inline-flex;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.review{color:#fff;background:#0f1420c7;border-radius:999px;align-items:center;gap:10px;padding:8px 8px 8px 14px;animation:.25s pop;display:flex;position:absolute;bottom:10px;left:10px;right:10px}.review-track{flex:1;align-items:center;min-width:0;display:flex;position:relative}.review-track input{appearance:none;cursor:pointer;background:0 0;width:100%;height:24px;margin:0}.review-track input::-webkit-slider-runnable-track{background:linear-gradient(90deg, #fff var(--fill), #ffffff4d var(--fill));border-radius:2px;height:4px}.review-track input::-moz-range-track{background:linear-gradient(90deg, #fff var(--fill), #ffffff4d var(--fill));border-radius:2px;height:4px}.review-track input::-webkit-slider-thumb{appearance:none;background:#fff;border:0;border-radius:50%;width:14px;height:14px;margin-top:-5px}.review-track input::-moz-range-thumb{background:#fff;border:0;border-radius:50%;width:14px;height:14px}.review-marker{background:var(--accent);cursor:pointer;border:2px solid #fff;border-radius:50%;width:10px;height:10px;padding:0;position:absolute;top:-4px;transform:translate(-50%)}.review-marker.opponent{background:var(--circle)}.review-percent{text-align:right;font-variant-numeric:tabular-nums;flex:none;width:4ch;font-size:.8rem;font-weight:800}.review-toggle{color:#fff;cursor:pointer;background:#ffffff29;border:0;border-radius:999px;flex:none;min-height:30px;padding:0 12px;font-size:.8rem;font-weight:800}.review-toggle[aria-pressed=true]{color:#111827;background:#fff}.review-toggle:disabled{opacity:.4;cursor:default}.panel{background:var(--surface);height:188px;box-shadow:var(--shadow);border-radius:22px;flex-direction:column;flex:none;gap:10px;padding:14px;display:flex;overflow-y:auto}.progress-row{align-items:center;gap:10px;display:flex}.progress-percent{text-align:right;font-variant-numeric:tabular-nums;flex:none;width:4.6ch;font-size:1.15rem;font-weight:800}.progress{background:var(--surface-2);border-radius:999px;flex:1;height:10px;overflow:hidden}.progress-bar{border-radius:inherit;background:linear-gradient(90deg, var(--accent), var(--circle));transform-origin:0;height:100%;transform:scaleX(0)}.guess{flex-direction:column;gap:8px;display:flex}.guess-field{gap:8px;display:flex}.guess-field input{border:2px solid var(--line);background:var(--surface-2);border-radius:14px;flex:1;min-width:0;min-height:52px;padding:0 14px;font-size:16px;font-weight:600}.guess-field input::placeholder{font-weight:400}.guess-field input:disabled{opacity:1;color:var(--muted)}.guess-field input:focus{border-color:var(--accent);background:var(--surface);outline:none}.guess-field .button{min-height:52px}.guess-slot{align-items:center;height:44px;display:flex;overflow:hidden}.guess-slot>p{white-space:nowrap;text-overflow:ellipsis;width:100%;overflow:hidden}.lead{color:var(--muted);text-align:center;margin:0;font-size:.9rem}.suggestions{scrollbar-width:none;gap:8px;width:100%;margin:0;padding:0;list-style:none;display:flex;overflow-x:auto}.suggestions li{background:var(--accent-soft);height:44px;color:var(--text);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:999px;flex:none;align-items:center;padding:0 14px;font-size:16px;font-weight:600;display:flex}.suggestions li small{display:none}.suggestions li[aria-selected=true]{box-shadow:inset 0 0 0 2px var(--accent)}.suggestions li.tried{background:var(--surface-2);color:var(--muted);text-decoration:line-through}.notice{color:var(--muted);margin:0;font-size:.85rem}.feedback{border-radius:12px;margin:0;padding:8px 12px;font-size:.92rem;font-weight:700;animation:.25s pop}.feedback.bad{background:var(--bad-soft);color:var(--bad)}.feedback.info{background:var(--surface-2);color:var(--muted)}.result{flex-direction:column;gap:8px;display:flex}.result .button.big{min-height:50px}.result-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.result-name{min-width:0}.result-title{color:var(--good);margin:0;font-size:.85rem;font-weight:800;animation:.35s pop}.result.failed .result-title{color:var(--muted)}.answer{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:1.9rem;font-weight:900;line-height:1.15;overflow:hidden}.answer small{color:var(--muted);font-size:.8rem;font-weight:500}.score-block{color:var(--accent);flex:none;align-items:baseline;gap:2px;margin:0;display:flex}.score-value{font-variant-numeric:tabular-nums;font-size:2.3rem;font-weight:900;line-height:1}.score-unit{font-weight:800}.stats{grid-template-columns:repeat(2,1fr);gap:8px;margin:0;display:grid}.stats div{background:var(--surface-2);border-radius:12px;justify-content:space-between;align-items:baseline;gap:6px;padding:8px 10px;display:flex}.stats dt{color:var(--muted);white-space:nowrap;font-size:.78rem}.stats dd{font-variant-numeric:tabular-nums;white-space:nowrap;margin:0;font-weight:800}.stats .sub{color:var(--muted);font-size:.72rem;font-weight:500}.result-note{align-items:center;min-height:36px;display:flex}.result .feedback{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}@media (height<=560px){.play-top{padding:4px 12px}}.guess-hint,.key-hint{display:none}@media (width>=900px){.home-top{order:1;justify-content:center;position:static}}.duel-lobby .home-top{left:calc(16px + env(safe-area-inset-left));position:absolute;right:auto}@media (width>=900px){.play{--chrome:92px;--group:min(100vw - 48px, (var(--vvh,100dvh) - var(--chrome)) * .75 + 404px)}.play-top{width:var(--group);margin:0 auto;padding:16px 0 12px}.play-body{width:var(--group);flex-direction:row;gap:24px;margin:0 auto;padding:0 0 24px}.panel{width:380px;height:auto;box-shadow:none;background:0 0;border-radius:0;gap:14px;padding:4px 0 0;overflow:visible}.guess{flex:1;min-height:0}.guess-slot{flex:1;align-items:flex-start;height:auto;min-height:0}.lead{width:100%;padding-top:8px}}@media (width>=900px) and (hover:hover){.guess-hint{min-height:1.4em;color:var(--muted);margin:0;font-size:.8rem;display:block}.key-hint{display:inline-block}.guess-slot .lead{display:none}}@media (width>=900px){.suggestions{flex-direction:column;gap:4px;overflow:visible}.suggestions li{background:0 0;border-radius:12px;justify-content:space-between}.suggestions li small{color:var(--muted);font-size:.8rem;font-weight:500;display:inline}.suggestions li[aria-selected=true]{background:var(--accent-soft);box-shadow:none}}.duel-lobby h1{margin:22px 0 0;font-size:1.25rem}.duel-waiting{text-align:center;flex-direction:column;align-items:center;gap:16px;display:flex}.duel-wait-dot{background:var(--accent);width:16px;height:16px;box-shadow:0 0 0 10px var(--accent-soft);border-radius:50%;margin:12px}.duel-invite{gap:8px;width:100%;display:flex}.duel-invite .button{flex:none}.duel-invite input{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;width:100%;min-width:0;padding:12px;font-size:16px}.duel-timer{font-variant-numeric:tabular-nums;justify-self:end}.duel-top{grid-template-columns:1fr auto 1fr;display:grid}.duel-top-left{align-items:center;gap:8px;min-width:0;display:flex}.duel-score{white-space:nowrap;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-content:center;align-items:baseline;column-gap:10px;width:200px;height:36px;font-size:.8rem;font-weight:700;display:grid}.duel-score .me{justify-self:end}.duel-score .opponent{justify-self:start}.duel-score b{font-variant-numeric:tabular-nums;font-size:1.35rem;font-weight:900;line-height:1;transition:font-size .3s}.duel-score b.bump{font-size:1.9rem}.duel-score .me{color:var(--accent)}.duel-score .opponent{color:var(--circle)}.duel-score [data-state=ready]:after{content:" ✓"}.duel-score .me[data-state=ready]:after{content:none}.duel-score .me[data-state=ready]:before{content:"✓ "}.duel-score [data-state=away]{opacity:.45}.duel-score-sep{color:var(--muted);font-weight:800}.duel-play .canvas{cursor:default}.duel-play.phase-done .canvas{cursor:pointer}.duel-ready-overlay{text-align:center;padding:16px;font-size:.85rem}.duel-ready-symbol{background:var(--accent-soft);width:76px;height:76px;color:var(--accent);border-radius:50%;place-items:center;font-size:1.5rem;display:grid}.duel-ready-controls{gap:12px;display:grid}.duel-panel{gap:8px}.duel-wrongs{border-top:1px solid var(--line);gap:4px;padding-top:6px;display:grid}.duel-wrongs p{gap:10px;margin:0;font-size:.75rem;display:flex}.duel-wrongs b{color:var(--muted);flex:none;font-weight:600}.duel-wrongs span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.duel-panel .result{gap:10px}.score-block.opponent{color:var(--circle)}.score-who{align-self:center;margin-right:4px;font-size:.8rem;font-weight:800}@media (width<=899px){.duel-wrongs{gap:12px;padding-top:4px;display:flex}.duel-wrongs p{min-width:0}.duel-panel .result{gap:6px}.duel-panel .answer{font-size:1.6rem}.duel-score{column-gap:6px;width:170px}.duel-score b.bump{font-size:1.65rem}.phase-running .duel-wrongs{display:none}}@media (width>=900px){.duel-panel{height:auto}.duel-wrongs{margin-top:auto}}@media (height<=560px) and (width<=899px){.duel-panel{padding:10px}.duel-wrongs{gap:12px;display:flex}.duel-wrongs p{min-width:0}}@media (width<=899px){[data-keyboard=open] .play-top{z-index:2;pointer-events:none;justify-content:flex-end;padding:8px 12px;display:flex;position:absolute;top:0;left:0;right:0}[data-keyboard=open] .play-top>*{pointer-events:auto}[data-keyboard=open] .play-top .icon-button,[data-keyboard=open] .play-top>.chip:not(.wrong-chip):not(.duel-timer),[data-keyboard=open] .duel-top-left,[data-keyboard=open] .duel-score{display:none}[data-keyboard=open] .play-top .chip{height:30px;font-size:.8rem}[data-keyboard=open] .play-body{gap:8px;padding-top:8px}[data-keyboard=open] .panel{gap:6px;height:auto;padding:8px 10px}[data-keyboard=open] .progress-percent,[data-keyboard=open] .duel-wrongs{display:none}[data-keyboard=open] .progress{height:4px}[data-keyboard=open] .guess{gap:6px}[data-keyboard=open] .guess-field input,[data-keyboard=open] .guess-field .button{min-height:44px}[data-keyboard=open] .guess-slot,[data-keyboard=open] .suggestions li{height:40px}}@keyframes bob{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent)}to{box-shadow:0 0 0 22px #0000}}@keyframes pop{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes fade-in{0%{opacity:0}}@keyframes sheet-up{0%{opacity:0;transform:translateY(24px)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
