.sd{--brass:#c9993a;--cream:#f4ecd6;--ink:#0e2830;color:var(--cream);background:#0b1d23;border:2px solid #2a1f15;border-radius:14px;padding:8px;box-shadow:0 6px 0 #18120d;user-select:none;-webkit-user-select:none}
.sd-hud{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:2px 2px 8px}
.sd-stat{display:flex;flex-direction:column;min-width:54px;line-height:1.1}
.sd-k{font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;color:#8fb3b8}
.sd-stat b{font-size:1.05rem;color:var(--cream);font-variant-numeric:tabular-nums}
.sd-lives{display:flex;gap:5px;margin:0 auto 0 4px}
.sd-lives i{width:14px;height:14px;background:#33423f;transform:rotate(45deg);border:2px solid #0b1d23;display:block}
.sd-lives i.on{background:#e2573c;box-shadow:0 0 0 1px #f4ecd6}
.sd-ib{min-height:44px;min-width:44px;padding:0 10px;border:2px solid var(--brass);background:#1a2b2f;color:var(--cream);border-radius:10px;font:700 .78rem system-ui,sans-serif;cursor:pointer}
.sd-ib:active{transform:translateY(1px);background:#243b40}
.sd-stage{position:relative;width:100%;border-radius:10px;overflow:hidden;background:#0e2830}
#sd-canvas{display:block;touch-action:none;-webkit-touch-callout:none;cursor:grab;max-width:100%}
.sd-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(8,20,24,.72);overflow:auto}
.sd-overlay[hidden]{display:none}
.sd-card{width:100%;max-width:300px;text-align:center;display:flex;flex-direction:column;gap:10px;animation:sdin .22s ease-out}
.sd-card h2{font:800 1.7rem/1.1 Georgia,'Times New Roman',serif;color:var(--cream);letter-spacing:.02em}
.sd-title h2{font-size:2.1rem;text-shadow:0 3px 0 #7a5a1a}
.sd-lead{font-size:.9rem;line-height:1.4;color:#cfe0dc}
.sd-big{font:800 2.6rem/1 Georgia,serif;color:#ffd77a}
.sd-meta{font-size:.8rem;color:#9fc0c2}
.sd-unlock{font-weight:700;color:#ffd77a;font-size:.9rem}
.sd-btn{min-height:48px;padding:8px 14px;border:2px solid var(--brass);border-radius:10px;background:#16363b;color:var(--cream);font:700 1rem system-ui,sans-serif;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.sd-btn small{font-weight:500;font-size:.72rem;color:#9fc0c2}
.sd-btn:active{transform:translateY(1px)}
.sd-btn:focus-visible,.sd-ib:focus-visible{outline:3px solid #ffd77a;outline-offset:2px}
.sd-main{background:var(--brass);color:#1b1408;font-size:1.15rem}
.sd-small{flex:1;min-height:44px;font-size:.85rem}
.sd-row{display:flex;gap:10px;align-items:center}
.sd-best{font-weight:700;color:#ffd77a;font-size:.9rem;white-space:nowrap}
#sd-status{min-height:2.4em;font-size:.82rem;color:#9fc0c2;padding:8px 2px 0;line-height:1.3}
@keyframes sdin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.sd-card{animation:none}.sd *{transition:none!important}}
.sd-rank{display:flex;flex-direction:column;gap:3px;align-items:center;font-size:.8rem;color:var(--cream);font-weight:700}
.sd-rank i{display:block;width:100%;height:6px;border-radius:3px;background:#243b40;overflow:hidden}
.sd-rank i b{display:block;height:100%;background:var(--brass)}
.sd-rank small{font-weight:500;font-size:.72rem;color:#9fc0c2}
@supports(padding:max(0px)){.sd{padding-bottom:max(8px,env(safe-area-inset-bottom))}}
.sd-stage{display:flex;align-items:center;justify-content:center}
#sd-canvas{flex:none}
html.pip-immersive .game-wrap,html.pip-native .game-wrap,.game-wrap:fullscreen{display:flex;flex-direction:column;padding-left:8px;padding-right:8px;box-sizing:border-box}
html.pip-immersive .sd,html.pip-native .sd,.game-wrap:fullscreen .sd{flex:1;min-height:0;display:flex;flex-direction:column;box-shadow:none;border-radius:10px}
html.pip-immersive .sd-stage,html.pip-native .sd-stage,.game-wrap:fullscreen .sd-stage{flex:1;min-height:0;height:auto}
html.pip-immersive #sd-status,html.pip-native #sd-status,.game-wrap:fullscreen #sd-status{min-height:0;padding-top:4px;font-size:.78rem}
html.pip-immersive .ad-well,html.pip-immersive #similar-games,html.pip-immersive footer{display:none}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive .sd,html.pip-native .sd,.game-wrap:fullscreen .sd{flex-direction:row;gap:8px;align-items:stretch}
html.pip-immersive .sd-hud,html.pip-native .sd-hud,.game-wrap:fullscreen .sd-hud{flex-direction:column;flex-wrap:nowrap;align-items:stretch;width:92px;flex:none;overflow:hidden;padding:0}
html.pip-immersive .sd-lives,html.pip-native .sd-lives,.game-wrap:fullscreen .sd-lives{margin:2px 0}
html.pip-immersive #sd-status,html.pip-native #sd-status,.game-wrap:fullscreen #sd-status{display:none}
}
