/* Silent Beat: dark stage, walnut bars, amber and teal signal lights. */
body[data-pip-frame] .game-wrap{max-width:420px}
.sb-bar{display:flex;justify-content:space-between;align-items:center;margin:0 0 .5rem;gap:.5rem}
.sb-bar p{font-size:.8rem;color:#6d5f4c;margin:0}
#sb-mute{min-height:44px;min-width:44px;padding:0 .9rem;border:2px solid #14100c;border-radius:10px;background:#efe4cc;color:#14100c;font:800 .85rem ui-rounded,"Trebuchet MS","Segoe UI",Arial,sans-serif;cursor:pointer;box-shadow:3px 3px 0 #14100c}
#sb-mute:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #14100c}
#sb-stage{position:relative;width:100%;border-radius:14px;overflow:hidden;background:#0c0a08;border:2px solid #14100c;box-shadow:0 0 0 2px #ffb23e33;padding-bottom:env(safe-area-inset-bottom,0)}
#sb-canvas{display:block;margin:0 auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;outline:none}
#sb-panel{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:.6rem;padding:1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom,0));background:rgba(12,10,8,.9);color:#efe4cc;font-family:ui-rounded,"Trebuchet MS","Segoe UI",Arial,sans-serif;overflow:auto}
#sb-panel[hidden]{display:none}
#sb-panel h2{font-size:2rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#ffb23e;margin:0;line-height:1.05}
#sb-panel p{margin:0;font-size:.95rem;line-height:1.4;color:#efe4cc}
#sb-panel .sb-kick{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:#4fd1c1;font-weight:800}
#sb-panel .sb-note{font-size:.8rem;color:#a99b84}
#sb-panel .sb-big{font-size:3rem;font-weight:800;color:#efe4cc;line-height:1}
#sb-panel .sb-flag{display:inline-block;align-self:flex-start;background:#ff6a3d;color:#14100c;font-weight:800;font-size:.8rem;padding:.2rem .6rem;border-radius:4px;letter-spacing:.1em;text-transform:uppercase}
.sb-row{display:flex;gap:.6rem;flex-wrap:wrap}
.sb-btn{flex:1 1 auto;min-height:48px;padding:.5rem 1rem;border:2px solid #14100c;border-radius:10px;background:#efe4cc;color:#14100c;font:800 1rem ui-rounded,"Trebuchet MS","Segoe UI",Arial,sans-serif;cursor:pointer;box-shadow:4px 4px 0 #4fd1c1;touch-action:manipulation}
.sb-btn.sb-main{background:#ffb23e;box-shadow:4px 4px 0 #ff6a3d}
.sb-btn.sb-small{font-size:.85rem;min-height:44px;box-shadow:3px 3px 0 #6d5f4c}
.sb-btn:active{transform:translate(3px,3px);box-shadow:1px 1px 0 #14100c}
.sb-btn:focus-visible,#sb-mute:focus-visible{outline:3px solid #4fd1c1;outline-offset:2px}
.sb-help{margin-top:1rem;font-size:.85rem;line-height:1.5;color:#6d5f4c}
.sb-help h2{font-size:1rem;margin:0 0 .3rem}
.sb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Full screen: the stage is a flex column, the field fills it and the renderer fits the canvas to it. */
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage{display:flex;flex-direction:column;gap:.4rem;overflow:hidden;padding-left:max(.5rem,env(safe-area-inset-left,0));padding-right:max(.5rem,env(safe-area-inset-right,0));padding-bottom:max(.5rem,env(safe-area-inset-bottom,0));background:#0c0a08}
html.pip-immersive .game-wrap.pip-stage .game-title,html.pip-native .game-wrap.pip-stage .game-title,html.pip-immersive .sb-help,html.pip-native .sb-help,html.pip-immersive .sb-bar p,html.pip-native .sb-bar p,html.pip-immersive .game-wrap.pip-stage .pip-actions,html.pip-native .game-wrap.pip-stage .pip-actions,html.pip-immersive .playyard-ad,html.pip-immersive .ad-well,html.pip-immersive .below-content{display:none}
html.pip-immersive .sb-bar,html.pip-native .sb-bar{margin:0;justify-content:flex-end;flex:0 0 auto}
html.pip-immersive #sb-stage,html.pip-native #sb-stage{flex:1 1 0;min-height:0;display:flex;align-items:center;justify-content:center;border-radius:10px;padding-bottom:0}
html.pip-immersive #sb-canvas,html.pip-native #sb-canvas{margin:0;max-width:100%;max-height:100%}
html.pip-native .game-wrap.pip-stage{padding-top:calc(var(--pip-dock-h,52px) + 8px + env(safe-area-inset-top,0))}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage{flex-direction:row;align-items:stretch}
html.pip-immersive .sb-bar,html.pip-native .sb-bar{align-items:flex-start;order:2}
html.pip-immersive #sb-panel,html.pip-native #sb-panel{gap:.35rem;padding:.6rem 1rem}
html.pip-immersive #sb-panel h2,html.pip-native #sb-panel h2{font-size:1.4rem}
html.pip-immersive #sb-panel .sb-big,html.pip-native #sb-panel .sb-big{font-size:1.8rem}
html.pip-immersive #sb-panel p,html.pip-native #sb-panel p{font-size:.85rem;line-height:1.3}
}
@media (prefers-reduced-motion:reduce){.sb-btn,#sb-mute{transition:none}.sb-btn:active,#sb-mute:active{transform:none}}
