:root{--bg:#0b141b;--ink:#ece6d6;--steel:#26323d;--steel2:#3c4c5a;--hazard:#ffc93c;--orange:#ff7a1a;--dark:#10181f}
*{box-sizing:border-box}
.wo{max-width:420px;margin:0 auto;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);font-family:"Arial Narrow","Roboto Condensed",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}
.wo-h1{font-size:1.15rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--hazard);margin:.2rem 0 .1rem}
.wo-sub{font-size:.85rem;color:#9fb0bd;margin:0 0 .4rem;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.wo-hud{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;min-height:48px;padding:2px 0}
.wo-hl,.wo-hr{display:flex;align-items:center;gap:8px}
.wo-lvl{font-weight:900;font-size:1rem;letter-spacing:.05em;text-transform:uppercase;min-width:56px}
.wo-pips,.wo-uppips{display:inline-flex;gap:4px;align-items:center}
.wo-pip{display:inline-block;width:11px;height:11px;border-radius:50%;border:2px solid #7d8d9a;background:transparent}
.wo-pip.on{background:var(--orange);border-color:#ffb36b}
.wo-score{font-weight:900;font-size:1.05rem;min-width:44px;text-align:right;color:var(--hazard);font-variant-numeric:tabular-nums}
.wo-btn{font:inherit;font-weight:900;text-transform:uppercase;letter-spacing:.05em;cursor:pointer;border-radius:6px;border:2px solid var(--dark);min-height:48px;padding:0 16px;color:var(--ink);background:var(--steel);box-shadow:0 3px 0 var(--dark);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.wo-btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--dark)}
.wo-btn:focus-visible{outline:3px solid var(--hazard);outline-offset:2px}
.wo-btn:disabled{opacity:.42;cursor:default}
.wo-mini{min-height:44px;min-width:44px;padding:0 8px;font-size:.78rem}
.wo-mini.off{text-decoration:line-through;opacity:.7}
.wo-primary{background:var(--orange);color:#1a0f05;border-color:#7a3b00;font-size:1.15rem;width:100%;margin-top:.7rem;box-shadow:0 4px 0 #7a3b00}
.wo-alt{background:var(--steel);border-color:var(--steel2);flex:1;font-size:.9rem}
.wo-sq{width:48px;padding:0;font-size:1.5rem;flex:none}
.wo-stage{position:relative;width:min(100%,calc((100vh - 190px) * .6667));width:min(100%,calc((100svh - 190px) * .6667));min-width:270px;margin:0 auto;border-radius:10px;overflow:hidden;background:#0c161e;border:3px solid var(--dark);box-shadow:0 0 0 2px #ffc93c55}
.wo-stage canvas{display:block;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;max-width:100%}
.wo-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(8,14,20,.82);overflow:auto}
.wo-layer[hidden]{display:none}
.wo-panel{width:100%;max-width:330px;margin:auto;animation:wo-pop .22s ease-out}
@keyframes wo-pop{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
.wo-kicker{font-weight:800;font-size:.8rem;letter-spacing:.18em;text-transform:uppercase;color:#9fb0bd}
.wo-title{font-weight:900;font-size:2.5rem;line-height:1;text-transform:uppercase;color:var(--hazard);text-shadow:0 3px 0 #7a3b00;margin:.15rem 0 .5rem}
.wo-title.sm{font-size:1.8rem}
.wo-lead{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.92rem;line-height:1.4;color:#c9d2da;margin:0 0 .8rem;padding-bottom:.7rem;border-bottom:6px solid transparent;border-image:repeating-linear-gradient(135deg,var(--hazard) 0 8px,var(--dark) 8px 16px) 6}
.wo-step{display:flex;gap:8px;align-items:center}
.wo-stepmid{flex:1;text-align:center;line-height:1.2}
.wo-stepmid b{display:block;font-size:1.25rem;text-transform:uppercase;letter-spacing:.05em}
.wo-stepmid span{font-size:.78rem;color:#9fb0bd;font-family:system-ui,sans-serif}
.wo-row{display:flex;gap:8px;margin-top:.7rem}
.wo-foot{margin-top:.8rem;font-size:.78rem;color:#9fb0bd;font-family:system-ui,sans-serif}
.wo-stars{display:flex;gap:6px;margin:.2rem 0 .6rem}
.wo-star{width:38px;height:36px;background:#2b3844;clip-path:polygon(50% 0,62% 36%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 36%)}
.wo-star.on{background:var(--hazard)}
.wo-stats{font-weight:800;font-size:1.05rem;line-height:1.5;margin-bottom:.4rem}
.wo-coins{font-weight:900;color:var(--hazard);margin-bottom:.5rem}
.wo-list{display:flex;flex-direction:column;gap:6px}
.wo-up{display:flex;gap:8px;align-items:center;background:#17232d;border:2px solid var(--steel2);border-radius:6px;padding:6px 8px}
.wo-upinfo{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.wo-upinfo b{text-transform:uppercase;letter-spacing:.05em}
.wo-upinfo span{font-size:.74rem;color:#9fb0bd;font-family:system-ui,sans-serif;line-height:1.25}
.wo-buy{min-width:84px;padding:0 8px;font-size:.85rem;background:var(--hazard);color:#1a1405;border-color:#7a5a00;box-shadow:0 3px 0 #7a5a00}
.wo-how{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.88rem;line-height:1.5;color:#b4c0ca;max-width:420px;margin:1rem auto}
.wo-how h2{font-size:1rem;color:var(--hazard);margin:.8rem 0 .3rem}
@media (prefers-reduced-motion:reduce){.wo *{animation:none!important;transition:none!important}}
.wo-goal{margin:.6rem 0 0;padding:6px 8px;border-left:4px solid var(--hazard);background:#17232d;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.82rem;line-height:1.3;color:#d8dfe5}
.wo-tip{margin:.3rem 0 .2rem;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.86rem;line-height:1.35;color:#c9d2da}
.wo-star.on{animation:wo-star .45s cubic-bezier(.2,1.6,.4,1) both}
@keyframes wo-star{from{transform:scale(0) rotate(-40deg);opacity:0}to{transform:none;opacity:1}}
.wo-glow{border-color:var(--hazard);animation:wo-glow 1.6s ease-in-out infinite}
@keyframes wo-glow{0%,100%{box-shadow:0 3px 0 var(--dark),0 0 0 0 rgba(255,201,60,0)}50%{box-shadow:0 3px 0 var(--dark),0 0 10px 2px rgba(255,201,60,.55)}}
.wo-layer{padding-bottom:max(12px,env(safe-area-inset-bottom))}
/* Full screen: playfield fills the stage under the dock. */
html.pip-immersive .game-wrap.pip-stage,.game-wrap:fullscreen{display:flex;flex-direction:column;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-bottom:max(8px,env(safe-area-inset-bottom));overflow:hidden!important}
.game-wrap:fullscreen{padding-top:max(8px,env(safe-area-inset-top));background:#0b141b}
html.pip-immersive .wo,.game-wrap:fullscreen .wo{flex:1;min-height:0;display:flex;flex-direction:column;max-width:none;width:100%;padding:0}
html.pip-immersive .wo-h1,html.pip-immersive .wo-sub,html.pip-immersive .wo-how,.game-wrap:fullscreen .wo-h1,.game-wrap:fullscreen .wo-sub,.game-wrap:fullscreen .wo-how{display:none}
html.pip-immersive .wo-hud,.game-wrap:fullscreen .wo-hud{flex:none}
html.pip-immersive .wo-stage,.game-wrap:fullscreen .wo-stage{flex:1;min-height:0;min-width:0;width:100%;display:flex;align-items:center;justify-content:center;border-radius:0}
html.pip-immersive .wo-stage canvas,.game-wrap:fullscreen .wo-stage canvas{flex:none}
@media (orientation:landscape){html.pip-immersive .wo-hud,.game-wrap:fullscreen .wo-hud{min-height:44px}}
@media (orientation:landscape){
html.pip-immersive .wo,.game-wrap:fullscreen .wo{flex-direction:row;align-items:stretch;gap:8px}
html.pip-immersive .wo-hud,.game-wrap:fullscreen .wo-hud{flex:none;width:118px;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:8px;overflow-y:auto;min-height:0}
html.pip-immersive .wo-hl,html.pip-immersive .wo-hr,.game-wrap:fullscreen .wo-hl,.game-wrap:fullscreen .wo-hr{flex-wrap:wrap;justify-content:space-between;gap:6px}
html.pip-immersive .wo-stage,.game-wrap:fullscreen .wo-stage{height:auto;align-self:stretch}
}
