.hd{--ink:#efe6cc;--brass:#d6a23f;--hand:#e8573a;--gem:#46d6c8;--panel:#0f1b1e;background:var(--panel);border-radius:18px;padding:10px;color:var(--ink);box-shadow:0 0 0 2px #d6a23f55 inset,0 8px 24px #0f1b1e44;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.hd button{font-family:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.hd-hud{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;align-items:center;padding:2px 2px 8px}
.hd-cell{display:flex;flex-direction:column;min-width:0}
.hd-k{font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;color:#9aa7a3}
.hd-cell b{font-size:.95rem;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd-mute{grid-column:1/-1;justify-self:end;min-height:44px;min-width:44px;padding:0 14px;border-radius:12px;border:1px solid #d6a23f66;background:transparent;color:var(--ink);font-size:.85rem;cursor:pointer;margin-top:-4px}
.hd-mute[aria-pressed=true]{color:#9aa7a3}
.hd-stage{position:relative;width:100%;aspect-ratio:1/1.2;max-height:70vh;min-height:300px;border-radius:14px;overflow:hidden;background:radial-gradient(circle at 50% 40%,#1b2f33,#0b1517 75%);touch-action:none;cursor:pointer}
#hd-cv{display:block;touch-action:none;position:absolute;left:0;top:0}
.hd-hint{position:absolute;left:0;right:0;top:8px;text-align:center;font-size:.85rem;color:var(--brass);pointer-events:none;min-height:1.2em}
.hd-ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:max(10px,env(safe-area-inset-left));background:#0b1517cc;overflow:auto;touch-action:pan-y}
.hd-ov[hidden]{display:none}
.hd-card{width:100%;max-width:330px;display:flex;flex-direction:column;gap:9px;text-align:center}
.hd-card h2{font-size:1.7rem;color:var(--brass);letter-spacing:.01em}
.hd-sub{font-size:.9rem;color:#c9c2ab}
.hd-big{font-size:2.6rem;font-weight:800;font-variant-numeric:tabular-nums}
.hd-flag{color:var(--gem);font-weight:700}
.hd-note{font-size:.78rem;color:#9aa7a3}
.hd-stats{display:flex;justify-content:center;gap:16px}
.hd-stat{display:flex;flex-direction:column;min-width:70px}
.hd-stat b{font-size:1.15rem;font-variant-numeric:tabular-nums}
.hd-stat span{font-size:.7rem;color:#9aa7a3}
.hd-btn{min-height:48px;border-radius:12px;border:2px solid var(--brass);background:transparent;color:var(--ink);font-size:1rem;font-weight:700;cursor:pointer;padding:0 14px}
.hd-btn.primary{background:var(--brass);color:#1a1405}
.hd-btn.ghost{border-color:#d6a23f55;font-weight:500}
.hd-btn:active{transform:scale(.98)}
.hd-themes{display:flex;gap:6px;justify-content:center}
.hd-sw{flex:1;min-height:44px;min-width:44px;border-radius:10px;border:2px solid var(--sw);background:var(--sf);color:var(--ink);font-size:.7rem;cursor:pointer}
.hd-sw.on{box-shadow:0 0 0 2px var(--panel),0 0 0 4px var(--sw)}
.hd-sw:disabled{opacity:.5;cursor:default}
.hd button:focus-visible{outline:3px solid #f6d56a;outline-offset:2px}
.hd-how{margin-top:14px;font-size:.9rem;line-height:1.5;color:#334155}
.hd-how h2{font-size:1.05rem;margin-bottom:6px}
.hd-how p{margin-bottom:8px}
@media (max-width:380px){.hd-hud{grid-template-columns:repeat(2,1fr)}}
@media (prefers-reduced-motion:reduce){.hd *{animation:none!important;transition:none!important}}

html.pip-immersive .hd-how,html.pip-native .hd-how,.game-wrap:fullscreen .hd-how{display:none}
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage{max-width:none;margin:0;padding:6px;display:flex;flex-direction:column;overflow:hidden}
html.pip-immersive .hd,html.pip-native .hd{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:12px;padding:6px}
html.pip-immersive .hd-stage,html.pip-native .hd-stage{flex:1;min-height:0;max-height:none;aspect-ratio:auto;width:100%}
html.pip-immersive .hd-hud,html.pip-native .hd-hud{padding-bottom:4px}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive .hd,html.pip-native .hd{flex-direction:row;gap:8px}
html.pip-immersive .hd-hud,html.pip-native .hd-hud{width:116px;flex:none;grid-template-columns:1fr;align-content:start;gap:4px;padding:2px}
html.pip-immersive .hd-stage,html.pip-native .hd-stage{height:100%;width:auto;flex:1}
html.pip-immersive .hd-mute,html.pip-native .hd-mute{justify-self:stretch;margin-top:4px}
}
