/* Loop Skater: night rink. Scoped to #ls-root so the site frame keeps control of everything else. */
#ls-root{background:#0b1d2e;padding:8px;border-radius:16px;--ink:#0b1d2e;--ink2:#14304a;--ice:#d6f0f7;--amber:#ffb938;--coral:#ff5a4d;
  padding-left:calc(8px + env(safe-area-inset-left));padding-right:calc(8px + env(safe-area-inset-right));padding-bottom:calc(8px + env(safe-area-inset-bottom));
  color:#e8f6fb;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#ls-stage{position:relative;margin:0 auto;background:var(--ink);border-radius:14px;overflow:hidden;
  box-shadow:0 0 0 2px var(--ink2),0 8px 24px rgba(11,29,46,.35);touch-action:none;-webkit-user-select:none;user-select:none;
  -webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
#ls-canvas{display:block;touch-action:none;-webkit-user-select:none;user-select:none;cursor:pointer}
.ls-ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(11,29,46,.72);padding:10px;overflow:auto;touch-action:manipulation}
.ls-ov[hidden]{display:none}
.ls-card{width:100%;max-width:330px;background:#0f2740;border:2px solid #2b5878;border-radius:16px;padding:16px;text-align:center;display:flex;flex-direction:column;gap:10px}
.ls-h{margin:0;font-size:1.55rem;line-height:1.1;color:#fff;letter-spacing:.01em}
.ls-p{margin:0;font-size:.92rem;line-height:1.4;color:#c4dce8}
.ls-p b{color:var(--amber)}
.ls-small{margin:0;font-size:.78rem;color:#8fb0c4}
.ls-best{margin:0;color:var(--amber);font-weight:800;font-size:.95rem}
.ls-btn{min-height:46px;min-width:46px;padding:0 14px;border:2px solid #3b6a8c;border-radius:12px;background:#17385a;color:#eaf8fc;font:700 .95rem system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.ls-btn:hover{background:#1e4770}
.ls-btn:active{transform:translateY(1px)}
.ls-btn:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
.ls-btn:disabled{opacity:.45;cursor:default}
.ls-primary{background:var(--coral);border-color:#ffb3aa;color:#fff;font-size:1.1rem;min-height:54px}
.ls-primary:hover{background:#ff6f63}
.ls-row{display:flex;gap:8px}
.ls-row .ls-btn{flex:1;font-size:.85rem;padding:0 8px}
.ls-step{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.88rem;color:#c4dce8}
.ls-sq{width:46px;padding:0;font-size:1.3rem}
.ls-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.ls-stats div{background:#14304a;border-radius:10px;padding:8px 2px;display:flex;flex-direction:column}
.ls-stats b{font-size:1.1rem;color:#fff}
.ls-stats span{font-size:.68rem;color:#8fb0c4}
.ls-up{display:flex;align-items:center;gap:10px;text-align:left;background:#14304a;border-radius:12px;padding:8px 10px}
.ls-up>div{flex:1;font-size:.9rem;color:#fff}
.ls-up small{display:block;font-size:.74rem;color:#9bbbcd;margin-top:2px}
.ls-lv{color:var(--amber);font-size:.8rem;font-weight:700}
.ls-max{color:#8fb0c4;font-size:.8rem;font-weight:700;padding:0 8px}
.ls-bar{display:flex;gap:8px;margin:10px auto 0}
.ls-bar .ls-btn{flex:1;font-size:.85rem}
.ls-level{margin:8px 0 0;text-align:center;font-size:.82rem;color:#8fb0c4;min-height:1.2em}
.ls-help{margin:6px 0 0;font-size:.82rem;line-height:1.45;color:#6b8798}
#ls-ov[hidden]{display:none}
.ls-stars{display:inline-flex;gap:3px;vertical-align:middle}
.ls-stars i{width:14px;height:14px;background:#2b5878;clip-path:polygon(50% 0,62% 36%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 36%)}
.ls-stars i.on{background:var(--amber)}
.ls-rate .ls-stars i{width:30px;height:30px}
.ls-rate .ls-stars i.on{animation:ls-pop .5s ease-out both}
.ls-rate .ls-stars i:nth-child(2).on{animation-delay:.15s}
.ls-rate .ls-stars i:nth-child(3).on{animation-delay:.3s}
@keyframes ls-pop{0%{transform:scale(.2);opacity:0}70%{transform:scale(1.25)}100%{transform:scale(1);opacity:1}}
.ls-step small{color:#9bbbcd}
.ls-card{animation:ls-in .22s ease-out both}
@keyframes ls-in{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.ls-btn:active{transform:none}.ls-card,.ls-rate .ls-stars i.on{animation:none}}
/* Full screen: playfield fills the stage, copy hidden (kept in the page) */
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage,.game-wrap.pip-stage:fullscreen{padding:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center;background:#0b1d2e}
html.pip-immersive .game-title,html.pip-native .game-title,html.pip-immersive .ls-help,html.pip-native .ls-help,html.pip-immersive .ls-level,html.pip-native .ls-level{display:none}
html.pip-immersive #ls-root,html.pip-native #ls-root{border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:100%}
html.pip-immersive #ls-bar,html.pip-native #ls-bar{width:100%;max-width:420px}
@media (orientation:landscape) and (max-height:520px){html.pip-immersive #ls-root,html.pip-native #ls-root{flex-direction:row;gap:10px}html.pip-immersive #ls-bar,html.pip-native #ls-bar{flex-direction:column;width:96px;margin:0}}
html.pip-immersive #ls-root,html.pip-native #ls-root{padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
html.pip-immersive #ls-stage,html.pip-native #ls-stage{border-radius:0;box-shadow:none}
html.pip-immersive .ls-bar .ls-btn,html.pip-native .ls-bar .ls-btn{min-height:48px;min-width:48px}
html.pip-immersive .ls-sq,html.pip-native .ls-sq{width:48px;min-height:48px}
html.pip-immersive #ls-bar,html.pip-native #ls-bar{margin-top:6px}
