.game-wrap{max-width:420px;margin:0 auto;padding:1rem;padding-bottom:max(1rem,env(safe-area-inset-bottom));padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}
.sm{display:flex;flex-direction:column;align-items:center;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.sm-hud{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.sm-info{display:flex;flex-direction:column;line-height:1.15;font-weight:700;font-size:.95rem;text-align:center;flex:1;min-width:0}
.sm-dim{font-weight:500;font-size:.75rem;color:#efe4c8aa}
.sm-btn{min-width:44px;min-height:44px;padding:0 12px;border:1.5px solid #d8a24a;background:transparent;color:#efe4c8;font:600 .85rem system-ui,sans-serif;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.sm-btn:active,.sm-alt:active,.sm-big:active{transform:translateY(1px);background:#d8a24a33}
.sm-btn:focus-visible,.sm-alt:focus-visible,.sm-big:focus-visible,#c:focus-visible{outline:2px solid #55c7b5;outline-offset:2px}
.sm-pips{display:flex;gap:5px;min-width:44px;justify-content:center}
.sm-pips i{width:11px;height:11px;border-radius:50%;border:1.5px solid #d8a24a;display:block;transition:background .2s,transform .2s}
.sm-pips i.on{background:#d8a24a}
.sm-pips i.pop{transform:scale(1.5)}
.sm-field{position:relative;width:100%;margin:0 auto;border:1.5px solid #efe4c844;border-radius:4px;overflow:hidden;touch-action:none;line-height:0}
#c{display:block;touch-action:none;cursor:crosshair;margin:0 auto;-webkit-touch-callout:none}
.sm-panel{position:absolute;inset:0;background:#0b1820e6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px;line-height:1.35;text-align:center;overflow:auto;animation:smin .28s ease-out}
.sm-panel[hidden]{display:none}
.sm-panel h2{font-size:1.6rem;letter-spacing:.03em;color:#efe4c8;font-weight:800}
.sm-lead{font-size:.95rem;color:#efe4c8cc;max-width:270px}
.sm-note{font-size:.85rem;color:#55c7b5;min-height:1.1em}
.sm-big,.sm-alt{width:min(260px,100%);min-height:48px;border-radius:6px;font:700 1rem system-ui,sans-serif;cursor:pointer}
.sm-big{background:#d8a24a;color:#0b1820;border:0}
.sm-alt{background:transparent;color:#efe4c8;border:1.5px solid #efe4c866}
.sm-stats{font-size:.8rem;color:#efe4c88f}
.sm-stars{display:flex;gap:10px;min-height:38px}
.sm-stars span{width:36px;height:36px;background:#efe4c833;clip-path:polygon(50% 2%,62% 36%,98% 38%,69% 59%,80% 94%,50% 73%,20% 94%,31% 59%,2% 38%,38% 36%)}
.sm-stars span.on{background:#d8a24a;animation:smstar .5s ease-out both}
.sm-stars span.on:nth-child(2){animation-delay:.15s}.sm-stars span.on:nth-child(3){animation-delay:.3s}
.sm-list{display:flex;flex-direction:column;gap:8px;width:min(280px,100%)}
.sm-probe{min-height:52px;border:1.5px solid #efe4c844;border-radius:6px;background:transparent;color:#efe4c8;text-align:left;padding:6px 12px;font:600 .95rem system-ui,sans-serif;cursor:pointer;display:flex;flex-direction:column;justify-content:center}
.sm-probe small{font-weight:400;font-size:.75rem;color:#efe4c8aa}
.sm-probe.sel{border-color:#55c7b5;background:#55c7b522}
.sm-probe.lock{opacity:.5;cursor:default}
.sm-hint{min-height:2.6em;margin-top:8px;font-size:.88rem;text-align:center;color:#efe4c8cc;max-width:330px}
@keyframes smin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes smstar{from{transform:scale(.2) rotate(-40deg);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sm *,.sm-panel{animation:none!important;transition:none!important}}
#p-title[hidden],#p-result[hidden],#p-probes[hidden]{display:none}
.sm-row{display:flex;align-items:center;justify-content:center;gap:8px;width:min(310px,100%)}
.sm-row .sm-big{flex:1;width:auto;min-width:0}
.sm-step{min-width:48px;min-height:48px;border-radius:6px;border:1.5px solid #efe4c866;background:transparent;color:#efe4c8;font:700 1.5rem system-ui,sans-serif;cursor:pointer;line-height:1}
.sm-step:disabled{opacity:.3;cursor:default}
.sm-step:active:not(:disabled){background:#d8a24a33}
.sm-step:focus-visible{outline:2px solid #55c7b5;outline-offset:2px}
.sm-hud{gap:6px}
.sm-hud .sm-btn{padding:0 9px}
.sm-info span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

html.pip-immersive .game-wrap{display:flex;flex-direction:column;align-items:center}
html.pip-immersive .sm{flex:1;min-height:0;width:100%;justify-content:flex-start}
html.pip-immersive .pip-actions,html.pip-immersive .ad-well{display:none}
html.pip-immersive .sm-hud{max-width:420px}
html.pip-immersive .sm-hint{min-height:0;margin-top:6px}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive .sm{flex-direction:row;align-items:center;justify-content:center;gap:10px}
html.pip-immersive .sm-hud{flex-direction:column;width:auto;max-width:none;margin:0;gap:6px}
html.pip-immersive .sm-info{flex:none}
html.pip-immersive .sm-pips{flex-wrap:wrap;max-width:60px}
html.pip-immersive .sm-hint{display:none}
}
html.pip-immersive .game-title,html.pip-native .game-title{display:none}
html.pip-immersive .game-wrap,html.pip-native .game-wrap{padding:4px max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));max-width:none;display:flex;flex-direction:column;align-items:center}
html.pip-native .sm{flex:1;min-height:0;width:100%;justify-content:flex-start}
html.pip-native .ad-well,html.pip-native .pip-actions{display:none}
html.pip-immersive .sm-hint,html.pip-native .sm-hint{min-height:0;margin-top:4px;line-height:1.2}
html.pip-immersive .sm-field,html.pip-native .sm-field{margin-top:0}
