:root{--bg: #0e1024;--panel: #171a3a;--panel-2: #1f2350;--line: rgba(255, 255, 255, .08);--text: #eef0ff;--muted: #9aa0d0;--accent: #9b5cff;--accent-2: #ff3ea5;--lime: #7cff4f;--btn: 64px;font-family:ui-rounded,SF Pro Rounded,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box;touch-action:manipulation}input,select,textarea{font-size:16px!important}html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);overscroll-behavior:none}body{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit}#app{position:fixed;inset:0;--sat: env(safe-area-inset-top, 0px);--sab: env(safe-area-inset-bottom, 0px);--sal: env(safe-area-inset-left, 0px);--sar: env(safe-area-inset-right, 0px)}.screen{position:absolute;top:var(--sat);bottom:var(--sab);left:var(--sal);right:var(--sar);display:none}.screen.active{display:flex}#menu{flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:24px 16px;background:radial-gradient(1200px 600px at 50% -10%,rgba(155,92,255,.22),transparent 60%),var(--bg)}.logo{text-align:center}.logo h1{margin:10px 0 0;font-size:clamp(42px,10vw,72px);letter-spacing:.02em;font-weight:800;background:linear-gradient(90deg,#ff3ea5,#9b5cff 45%,#19e3ff);-webkit-background-clip:text;background-clip:text;color:transparent}.logo-blocks{display:inline-flex;gap:6px}.logo-blocks i{width:22px;height:22px;border-radius:6px;background:var(--c);box-shadow:inset 0 1px #ffffff80,0 0 18px var(--c);animation:bob 2.4s ease-in-out infinite}.logo-blocks i:nth-child(2){animation-delay:.15s}.logo-blocks i:nth-child(3){animation-delay:.3s}.logo-blocks i:nth-child(4){animation-delay:.45s}@keyframes bob{50%{transform:translateY(-6px)}}.menu-list{display:flex;flex-direction:column;gap:12px;width:min(320px,100%)}.foot{color:var(--muted);font-size:14px;margin:0}.btn{display:block;width:100%;padding:14px 18px;border-radius:14px;border:1px solid var(--line);background:var(--panel);font-size:17px;font-weight:700;cursor:pointer;transition:transform .08s,background .15s}.btn:hover{background:var(--panel-2)}.btn:active{transform:scale(.98)}.btn.primary{background:linear-gradient(135deg,#ff3ea5,#9b5cff);border:none;box-shadow:0 8px 30px #9b5cff59}.btn.ghost{background:transparent}.btn.danger{color:#ff7b7b}.row-btns{display:flex;gap:10px}.row-btns .btn{flex:1}#game{flex-direction:column;align-items:center;justify-content:center}.play{flex:1;min-height:0;width:100%;display:grid;gap:12px;padding:12px;grid-template-columns:minmax(110px,160px) auto minmax(110px,160px);grid-template-rows:auto 1fr;grid-template-areas:"hold well next" "stats well power";justify-content:center;align-content:center}#holdBox{grid-area:hold}#nextBox{grid-area:next}#statsBox{grid-area:stats;align-self:start}#wellWrap{grid-area:well}#powerBox{grid-area:power;align-self:start}.box{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:8px 10px;position:relative}.box canvas{display:block;width:100%;height:64px}.label{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700}.stats{display:flex;flex-direction:column;gap:8px}.stat b{font-size:22px;font-variant-numeric:tabular-nums}.stat.score b{font-size:26px;color:#fff}.progress{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.progress .bar{flex:1;height:6px;border-radius:3px;background:#ffffff14;overflow:hidden}.progress .bar div{height:100%;width:0;background:linear-gradient(90deg,var(--lime),#19e3ff);transition:width .2s}.icon-btn{position:absolute;top:6px;right:6px;width:32px;height:32px;border-radius:10px;border:1px solid var(--line);background:var(--panel-2);cursor:pointer;font-size:11px}#wellWrap{position:relative;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center}#well{display:block;border-radius:6px;box-shadow:0 0 40px #9b5cff2e;touch-action:none}#popups{position:absolute;inset:0;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.popup{font-weight:900;font-size:clamp(16px,4.2vmin,28px);letter-spacing:.04em;text-shadow:0 2px 12px rgba(0,0,0,.6);animation:pop 1.1s ease-out forwards;white-space:nowrap}.popup.pts{font-size:clamp(13px,3vmin,18px);color:#fff;opacity:.85}@keyframes pop{0%{transform:scale(.6);opacity:0}15%{transform:scale(1.1);opacity:1}70%{opacity:1}to{transform:translateY(-30px);opacity:0}}.reduce-motion .popup{animation:fade 1.1s linear forwards}@keyframes fade{0%,70%{opacity:1}to{opacity:0}}#banner{position:absolute;left:0;right:0;top:28%;text-align:center;font-weight:900;font-size:clamp(26px,7vmin,44px);pointer-events:none;opacity:0;background:linear-gradient(90deg,#7cff4f,#19e3ff);-webkit-background-clip:text;background-clip:text;color:transparent}#banner.show{animation:banner 1.4s ease-out}@keyframes banner{0%{opacity:0;transform:scale(1.4)}15%{opacity:1;transform:scale(1)}80%{opacity:1}to{opacity:0}}#countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:clamp(60px,18vmin,120px);font-weight:900;pointer-events:none;color:#fff;text-shadow:0 0 30px var(--accent)}#touch{display:none;width:100%;padding:8px 12px 10px;gap:12px;justify-content:space-between;align-items:flex-end}.show-touch #touch{display:flex}.pad{display:grid;gap:8px}.pad-move{grid-template-columns:repeat(3,var(--btn));grid-template-areas:"hold . ." "l d r"}.pad-move [data-action=left]{grid-area:l}.pad-move [data-action=softDrop]{grid-area:d}.pad-move [data-action=right]{grid-area:r}.pad-move [data-action=hold]{grid-area:hold}.pad-act{grid-template-columns:repeat(2,var(--btn));grid-template-areas:"ccw cw" "hd hd"}.pad-act [data-action=rotCCW]{grid-area:ccw}.pad-act [data-action=rotCW]{grid-area:cw}.pad-act [data-action=hardDrop]{grid-area:hd}#touch button{height:var(--btn);min-width:var(--btn);border-radius:18px;border:1px solid var(--line);background:var(--panel);font-size:calc(var(--btn) * .4);font-weight:800;touch-action:none}#touch button.small{height:calc(var(--btn) * .7);font-size:14px;letter-spacing:.06em}#touch button.down{background:var(--panel-2);transform:scale(.95);border-color:var(--accent)}.btn-small{--btn: 52px}.btn-medium{--btn: 64px}.btn-large{--btn: 78px}.layout-left #touch{flex-direction:row-reverse}.layout-right #touch,.layout-left #touch{justify-content:center}.layout-right #touch{flex-direction:row}@media (orientation: portrait),(max-width: 640px){.play{grid-template-columns:1fr 1.6fr 1fr;grid-template-rows:auto 1fr;grid-template-rows:auto 1fr auto;grid-template-areas:"hold stats next" "well well well" "power power power";gap:6px 8px;padding:8px}#powerBox{padding:6px 8px;gap:4px}#powerBox>.label{display:none}#powerTiles{grid-template-columns:repeat(4,1fr)}#powerTiles button{padding:4px 2px}.box canvas{height:46px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;padding:6px 10px}.stat .label{font-size:9px}.stat b{font-size:16px}.stat.score b{font-size:18px}.stat.score{grid-column:1 / -1;display:flex;align-items:baseline;justify-content:space-between}.progress{grid-column:1 / -1}}.overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal));background:#080916c7;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.overlay.solid{background:var(--bg)}.overlay.hidden{display:none}.panel{width:min(440px,100%);max-height:100%;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:12px}.panel.wide{width:min(640px,100%)}.panel h2{margin:0 0 4px;font-size:24px}.panel p{margin:0;color:var(--muted);line-height:1.45}.big-score{font-size:44px;font-weight:900;text-align:center;font-variant-numeric:tabular-nums}.kv{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}.kv div{background:var(--panel-2);border-radius:12px;padding:8px 4px}.kv b{display:block;font-size:18px}input[type=text]{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--text);font-size:17px;-webkit-user-select:text;user-select:text}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:14px}th,td{padding:6px 4px;text-align:right;border-bottom:1px solid var(--line)}th:nth-child(2),td:nth-child(2){text-align:left}th{color:var(--muted);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.08em}tr.me td{color:var(--lime)}.setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.setting>span{font-weight:600}.setting small{display:block;color:var(--muted);font-weight:400}.setting input[type=range]{width:150px;accent-color:var(--accent)}.setting select{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:6px 8px;font:inherit}.setting input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.section-title{margin:10px 0 0;font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:var(--accent)}.key-btn{min-width:96px;padding:6px 10px;border-radius:10px;border:1px solid var(--line);background:var(--panel-2);cursor:pointer}.key-btn.listening{border-color:var(--accent-2);color:var(--accent-2)}.help-list{margin:0;padding-left:18px;color:var(--muted);line-height:1.6}#powerBox{display:flex;flex-direction:column;gap:8px}#powerNext{float:right;letter-spacing:0;text-transform:none;font-weight:600}#powerTiles{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}#powerTiles button{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 2px;border-radius:12px;border:1px solid var(--line);background:#14162e;color:var(--c);cursor:pointer;opacity:.35;transition:opacity .15s,transform .08s;touch-action:manipulation}#powerTiles button.ready{opacity:1;border-color:var(--c);box-shadow:0 0 12px color-mix(in srgb,var(--c) 45%,transparent)}#powerTiles button.ready:active{transform:scale(.94)}#powerTiles button.flash{animation:tilePop .5s ease-out}@keyframes tilePop{30%{transform:scale(1.18)}}#powerTiles i{font-style:normal;font-weight:900;font-size:18px;line-height:1.1}#powerTiles b{position:absolute;top:2px;right:6px;font-size:12px;color:var(--text);font-variant-numeric:tabular-nums}#powerTiles small{font-size:10px;color:var(--muted);font-weight:700;letter-spacing:.04em}#powerTiles [data-power=bomb]{--c: #FF8A1F}#powerTiles [data-power=row]{--c: #19E3FF}#powerTiles [data-power=column]{--c: #7CFF4F}#powerTiles [data-power=pop]{--c: #FF3EA5}#powerBox .bar{display:block;height:4px;border-radius:2px;background:#ffffff14;overflow:hidden}#powerBar{display:block;height:100%;width:0;background:linear-gradient(90deg,#ff8a1f,#ffd60a);transition:width .2s}.show-touch #game .play{touch-action:none}#touchHint{display:none;position:absolute;left:50%;bottom:12%;transform:translate(-50%);width:min(92%,320px);padding:12px 14px;border-radius:14px;background:#0e1024d9;border:1px solid var(--line);font-size:13px;line-height:1.7;color:var(--muted);text-align:center;pointer-events:none}#touchHint b{color:var(--text)}.show-touch.gestures-on #game.counting #touchHint{display:block}@media (orientation: portrait),(max-width: 640px){#powerTiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#powerTiles button{flex-direction:row;justify-content:center;gap:4px;padding:6px 2px;min-height:40px}#powerTiles small{display:none}#powerTiles i{font-size:20px}#powerTiles b{position:static;font-size:14px}}@media (orientation: landscape) and (min-width: 900px){.show-touch #touch{position:absolute;left:0;right:0;bottom:0;padding:0 24px 24px;pointer-events:none}.show-touch #touch .pad{pointer-events:auto}.show-touch.btn-medium{--btn: 72px}}@media (orientation: portrait) and (max-width: 640px){#game{justify-content:flex-start}.play{grid-template-columns:58px minmax(0,1fr) 58px;grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"hold stats next" "well well well" "power power power";gap:4px;padding:4px 4px 2px;align-content:stretch}.box{padding:3px 5px;border-radius:10px}.box canvas{height:30px}.label{font-size:8px;letter-spacing:.08em}#holdBox{cursor:pointer}#holdBox .label:after{content:" ⤴"}.icon-btn{top:2px;right:2px;width:20px;height:20px;border-radius:6px;font-size:8px}.stats{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;align-items:end;gap:0 6px;padding:3px 8px}.stat.score{grid-column:auto;display:block}.stat .label{font-size:8px}.stat b{font-size:14px}.stat.score b{font-size:17px}.progress{grid-column:1 / -1;font-size:9px;gap:4px}.progress .bar{height:4px}#powerBox{padding:3px;gap:3px;border-radius:10px}#powerBox>.label{display:none}#powerTiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}#powerTiles button{flex-direction:row;justify-content:center;gap:4px;min-height:34px;padding:2px;border-radius:9px}#powerTiles small{display:none}#powerTiles i{font-size:17px}#powerTiles b{position:static;font-size:13px}#powerBox .bar{height:3px}#touch{padding:2px 4px 4px;gap:6px;align-items:stretch}#touch .pad{flex:1;grid-template-columns:repeat(3,1fr);grid-template-areas:none;gap:5px}#touch .pad>*{grid-area:auto!important}#touch [data-action=hold]{display:none}#touch button{height:52px;min-width:0;border-radius:14px;font-size:22px}.btn-small #touch button{height:44px}.btn-large #touch button{height:62px}}@media (orientation: portrait) and (max-width: 640px) and (min-aspect-ratio: 52/100){#game{justify-content:flex-start}.play{grid-template-columns:minmax(0,1fr) 76px;grid-template-rows:auto auto auto 1fr;grid-template-areas:"well next" "well hold" "well stats" "well power";gap:6px;padding:6px 6px 4px;align-content:stretch}#wellWrap{justify-content:flex-start}.box{padding:5px 6px;border-radius:10px}.box canvas{height:38px}.label{font-size:9px;letter-spacing:.1em}#holdBox{cursor:pointer}#holdBox .label:after{content:" ⤴"}.icon-btn{top:3px;right:3px;width:24px;height:24px;border-radius:8px;font-size:9px}#nextBox .label{margin-right:22px}.stats{display:flex;flex-direction:column;gap:3px;padding:5px 6px}.stat.score{display:block}.stat .label{font-size:8px}.stat b,.stat.score b{font-size:14px}.stat.score b{font-size:15px}.progress{font-size:9px;gap:4px;flex-direction:column;align-items:stretch}#powerBox{padding:5px;gap:5px;align-self:stretch}#powerBox>.label{display:block}#powerNext{float:none;display:block}#powerTiles{grid-template-columns:1fr;gap:5px}#powerTiles button{flex-direction:row;justify-content:center;gap:4px;min-height:38px;padding:4px 2px}#powerTiles small{display:none}#powerTiles i{font-size:18px}#powerTiles b{position:static;font-size:13px}#touch{padding:4px 6px 6px;gap:8px;align-items:stretch}#touch .pad{flex:1;grid-template-columns:repeat(3,1fr);grid-template-areas:none;gap:6px}#touch .pad>*{grid-area:auto!important}#touch [data-action=hold]{display:none}#touch button{height:54px;min-width:0;border-radius:14px;font-size:22px}.btn-small #touch button{height:46px}.btn-large #touch button{height:64px}}#statsBox{position:relative}#statsBox .icon-btn{top:4px;right:4px}@media (max-width: 640px){.label,.stat .label{font-size:10px;letter-spacing:.06em}.progress,#powerNext{font-size:10px}#powerTiles button{min-height:44px}#powerTiles b{font-size:14px}.icon-btn{width:40px;height:40px;border-radius:10px;font-size:12px;top:4px;right:4px}#touch button{min-height:48px}}@media (orientation: portrait) and (max-width: 640px){.play{grid-template-columns:64px minmax(0,1fr) 64px}.box canvas{height:34px}.stats{grid-template-columns:1.5fr 1fr 1fr 1fr 40px;padding:4px 6px 4px 8px;min-height:56px}.stats .progress{grid-column:1 / 5}#statsBox .icon-btn{position:static;grid-column:5;grid-row:1 / 3;align-self:center}.stat b{font-size:15px}.stat.score b{font-size:18px}}@media (orientation: portrait) and (max-width: 640px) and (min-aspect-ratio: 52/100){.play{grid-template-columns:minmax(0,1fr) 84px;grid-template-rows:auto auto auto minmax(0,1fr);overflow:hidden}.box canvas{height:32px}.stats{display:grid;grid-template-columns:1fr;gap:2px;padding:4px 6px;min-height:0}.stats .progress{grid-column:1}#statsBox .icon-btn{position:static;grid-column:1;grid-row:auto;justify-self:stretch;width:auto;height:40px;margin-top:2px}.stat .label{font-size:10px}.stat b{font-size:15px}.stat.score b{font-size:16px}#powerBox{overflow:hidden;min-height:0}#powerTiles{gap:4px}#powerTiles button{min-height:44px}}#rotateHint{display:none}@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse){#rotateHint{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--bg);color:var(--text);text-align:center;padding:24px;font-size:18px;font-weight:700}#rotateHint .phone{width:44px;height:76px;border:3px solid var(--accent);border-radius:10px;animation:tilt 1.8s ease-in-out infinite}#rotateHint small{color:var(--muted);font-weight:500;font-size:14px}}@keyframes tilt{0%,30%{transform:rotate(-90deg)}60%,to{transform:rotate(0)}}@media (orientation: portrait) and (max-width: 640px){.stats{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr) 40px;gap:0 6px}#statsBox .stat{min-width:0}#statsBox .stat b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#statsBox .stat:nth-child(5){grid-column:3;grid-row:2;display:flex;align-items:center;justify-content:flex-end}#statsBox .stat:nth-child(5) .label{display:none}#statsBox .stat:nth-child(5) b{font-size:12px;color:var(--muted)}.stats .progress{grid-column:1 / 3;grid-row:2;flex-direction:row;align-items:center}#statsBox .icon-btn{grid-column:4;grid-row:1 / 3}}@media (orientation: portrait) and (max-width: 640px) and (min-aspect-ratio: 52/100){.stats{grid-template-columns:minmax(0,1fr)}#statsBox .stat:nth-child(5){grid-column:1;grid-row:auto;display:block}#statsBox .stat:nth-child(5) .label{display:block}#statsBox .stat:nth-child(5) b{font-size:15px;color:var(--text)}.stats .progress{grid-column:1;grid-row:auto;flex-direction:column;align-items:stretch}#statsBox .icon-btn{grid-column:1;grid-row:auto}}@media (orientation: portrait) and (max-width: 640px){.stats{grid-template-columns:minmax(0,2.3fr) minmax(0,1fr) minmax(0,1fr) 40px}.stat.score b{font-size:17px;letter-spacing:-.01em}}@media (orientation: portrait) and (max-width: 640px) and (min-aspect-ratio: 52/100){.play{grid-template-columns:minmax(0,1fr) 98px}.stats{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 4px}#statsBox .icon-btn{grid-column:1 / -1;height:40px}#statsBox .stat.score{grid-column:1 / -1}.stat.score b{font-size:16px}.stat b{font-size:14px}#statsBox .stat:nth-child(5){grid-column:1}.stats .progress{grid-column:2;align-self:end}#powerTiles{grid-template-columns:1fr 1fr;gap:4px}#powerTiles button{min-height:44px;flex-direction:column;gap:0;padding:2px}#powerTiles i{font-size:16px}#powerTiles b{font-size:12px}}@media (orientation: portrait) and (max-width: 380px) and (max-aspect-ratio: 52/100){.stat.score b{font-size:15px;letter-spacing:-.02em}.stat b{font-size:14px}}@media (orientation: landscape),(orientation: portrait) and (min-width: 700px){.play{grid-template-columns:minmax(0,1fr) var(--wellw, 320px) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-content:stretch;justify-content:stretch}#holdBox,#statsBox{justify-self:end;width:190px}#nextBox,#powerBox{justify-self:start;width:190px}#holdBox,#nextBox{margin-top:var(--peek, 0px)}#statsBox,#powerBox{align-self:start}#wellWrap{align-items:flex-start;justify-content:center}}@media (orientation: portrait) and (max-width: 640px) and (min-aspect-ratio: 52/100){#wellWrap{align-items:flex-start}#nextBox{margin-top:var(--peek, 0px)}}@media (orientation: landscape),(orientation: portrait) and (min-width: 700px){#statsBox .stat.score{margin-right:46px}#statsBox .stat.score b{font-size:22px;white-space:nowrap}.show-touch #statsBox .icon-btn{width:44px;height:44px;font-size:13px}}@media (orientation: portrait) and (min-width: 700px){.play{grid-template-areas:"hold well next" "stats well power";gap:12px;padding:12px}.box{padding:8px 10px;border-radius:14px}.box canvas{height:64px}.label,.stat .label{font-size:11px;letter-spacing:.12em}.stats{display:flex;flex-direction:column;gap:8px;padding:8px 10px}.stat.score{display:block}.stat b{font-size:20px}.stat.score b{font-size:22px}.progress{font-size:11px;flex-direction:row}#powerBox{padding:8px 10px;gap:8px}#powerBox>.label{display:block}#powerTiles{grid-template-columns:1fr 1fr;gap:6px}#powerTiles button{flex-direction:column;min-height:56px;padding:6px 2px}#powerTiles small{display:block;font-size:11px}#powerTiles b{position:absolute;top:3px;right:7px;font-size:13px}#statsBox .icon-btn{position:absolute;top:6px;right:6px;width:44px;height:44px}.show-touch #touch{display:flex;padding:6px 12px 12px;gap:16px;align-items:stretch}#touch .pad{flex:1;grid-template-columns:repeat(3,1fr);grid-template-areas:none;gap:10px;max-width:360px}#touch .pad-act{margin-left:auto}#touch .pad>*{grid-area:auto!important}#touch [data-action=hold]{display:none}#touch button{height:68px;min-width:0;font-size:26px}}@media (orientation: portrait) and (min-width: 700px){.play{grid-template-columns:minmax(0,1fr) var(--wellw, 400px) 200px minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:". well next ." ". well hold ." ". well stats ." ". well power ."}#holdBox,#statsBox,#nextBox,#powerBox{justify-self:stretch;width:auto;align-self:start}#holdBox{margin-top:0}#nextBox{margin-top:var(--peek, 0px)}}@media (orientation: portrait) and (max-width: 640px) and (min-aspect-ratio: 52/100) and (max-aspect-ratio: 64/100){.play{grid-template-columns:minmax(0,1fr) 64px;grid-template-rows:auto auto auto minmax(0,1fr) auto;grid-template-areas:"well next" "well hold" "well power" "well ." "stats stats";gap:6px;padding:6px 6px 4px;overflow:hidden}.box{padding:4px 5px}.box canvas{height:30px}#holdBox .label,#nextBox .label{font-size:10px;letter-spacing:.04em}#powerBox{padding:4px;gap:4px;align-self:start}#powerBox>.label{display:none}#powerTiles{grid-template-columns:1fr;gap:4px}#powerTiles button{flex-direction:column;gap:0;min-height:48px;padding:3px 2px}#powerTiles i{font-size:18px}#powerTiles b{position:static;font-size:13px}#powerTiles small{display:none}#statsBox.stats{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr) 44px;grid-template-rows:auto auto;align-items:center;gap:0 8px;padding:4px 6px 4px 10px;min-height:0}#statsBox .stat{min-width:0;display:block;grid-row:1}#statsBox .stat .label{display:block;font-size:10px}#statsBox .stat b{display:block;font-size:15px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#statsBox .stat.score{grid-column:1}#statsBox .stat.score b{font-size:17px}#statsBox .stat:nth-child(3){grid-column:2}#statsBox .stat:nth-child(4){grid-column:3}#statsBox .stat:nth-child(5){grid-column:4;grid-row:1;display:block}#statsBox .stat:nth-child(5) .label{display:block}#statsBox .stat:nth-child(5) b{font-size:15px;color:var(--text)}#statsBox .progress{grid-column:1 / 5;grid-row:2;flex-direction:row;align-items:center;gap:6px;font-size:10px;margin-top:2px}#statsBox .icon-btn{position:static;grid-column:5;grid-row:1 / 3;width:44px;height:44px;margin:0;justify-self:end}}@media (orientation: portrait) and (max-width: 640px) and (min-aspect-ratio: 52/100) and (max-aspect-ratio: 64/100){.play{grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-areas:"well next" "well hold" "well power" "stats stats"}#powerBox{align-self:stretch;display:flex;flex-direction:column}#powerTiles{flex:1;grid-template-rows:repeat(4,minmax(44px,1fr))}#powerTiles button{min-height:44px;height:100%}#powerTiles i{font-size:22px}#powerTiles b{font-size:15px}}@media (orientation: portrait) and (min-width: 700px){#powerBox{align-self:stretch;display:flex;flex-direction:column}#powerTiles{flex:1;grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(56px,1fr));gap:8px}#powerTiles button{height:100%;flex-direction:column;justify-content:center;gap:4px}#powerTiles i{font-size:30px}#powerTiles small{font-size:13px}#powerTiles b{font-size:15px}}button.stat.speed-up{appearance:none;background:none;border:0;padding:0;margin:0;text-align:left;color:inherit;font:inherit;cursor:pointer;border-radius:8px;min-height:40px}button.stat.speed-up .label i{font-style:normal;color:var(--lime);margin-left:2px}button.stat.speed-up:active{background:#7cff4f1f}button.stat.speed-up.maxed{cursor:default}button.stat.speed-up.maxed .label i{visibility:hidden}.speed-stepper{display:flex;align-items:center;justify-content:center;gap:18px;margin:6px 0}.speed-stepper .speed-step{width:72px;height:72px;padding:0;border-radius:20px;font-size:34px;line-height:1}.speed-stepper .speed-step:disabled{opacity:.3;cursor:default}.speed-value{min-width:70px;text-align:center;font-size:48px;font-weight:900;font-variant-numeric:tabular-nums}.speed-hint{text-align:center;font-size:14px}button.stat.speed-up .label{white-space:nowrap}button.stat.speed-up .label i{font-size:.9em;margin-left:1px}@media (max-width: 640px){button.stat.speed-up{min-height:40px;margin:-4px 0;padding:2px 0}}#questBar{position:absolute;left:0;right:0;top:calc(var(--peek, 12px) + 12px);display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none;z-index:2}.pill{max-width:92%;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#0e1024d1;border:1px solid var(--line);color:var(--text);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.pill.hidden{display:none}#mission{border-color:#7cff4f80}#mission b{color:var(--lime)}#surprise{border-color:#ffd60a99;color:#ffd60a}.pill.flash{animation:pillFlash .6s ease-out}@keyframes pillFlash{0%{transform:scale(1.25)}to{transform:scale(1)}}.reduce-motion .pill.flash{animation:none}.pill{opacity:.82;font-size:11px;padding:3px 9px}#hudTime.low{color:#ff3b3b}.btn.daily{display:flex;flex-direction:column;align-items:center;gap:2px;background:linear-gradient(135deg,#ff8a1f40,#ffd60a26);border-color:#ffd60a73}.btn.daily small,.btn.mode small{display:block;font-size:12px;font-weight:600;color:var(--muted)}.mode-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.btn.mode{padding:10px 6px;font-size:15px}.mode-name{text-align:center;margin-top:-8px!important}.extras-line{text-align:center;font-size:13px}.callout{padding:10px 12px;border-radius:12px;background:var(--panel-2);text-align:center;font-size:14px;color:var(--muted)}.callout b{color:var(--text)}.callout.win{border:1px solid rgba(124,255,79,.5)}.callout.win b{color:var(--lime)}.callout.lose{border:1px solid rgba(255,59,59,.4)}.btn.share{background:linear-gradient(135deg,#19e3ff,#9b5cff);border:none}.level-badge{margin-top:8px;font-size:14px;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:6px}.level-badge b{color:var(--text)}.xpbar{display:block;width:160px;height:6px;border-radius:3px;background:#ffffff1a;overflow:hidden}.xpbar>span{display:block;height:100%;background:linear-gradient(90deg,#7cff4f,#19e3ff)}.callout.xp{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 0}.callout.xp .xpbar{width:100%;margin-top:6px}.callout .unlock{width:100%;margin-top:6px;color:#ffd60a;font-weight:700}
