.ec{max-width:420px;margin:0 auto;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1d2a3a}
.ec-hud{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;font-weight:700;font-size:.95rem}
.ec-hud span{white-space:nowrap}
.ec-mute{min-height:44px;min-width:44px;padding:0 12px;border:2px solid #1d2a3a;background:transparent;color:inherit;border-radius:8px;font:inherit;font-size:.8rem;cursor:pointer}
#ec-stage{position:relative;width:100%;border-radius:10px;overflow:hidden;border:2px solid #1d2a3a;background:#efe6d2;line-height:0}
#ec-canvas{display:block;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;outline:none}
#ec-card{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;text-align:center;background:rgba(239,230,210,.9);line-height:1.35;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
#ec-card[hidden]{display:none}
.ec-h{font-size:2rem;font-weight:800;letter-spacing:-.02em;margin:0;color:#1d2a3a}
.ec-p{margin:0;font-size:1rem;color:#1d2a3a;max-width:30ch}
.ec-stat{margin:0;font-size:.85rem;color:#4b4a40;min-height:1.2em}
.ec-note{margin:0;font-weight:700;color:#d9411e}
.ec-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.ec-btn{min-height:48px;min-width:48px;padding:0 20px;border:2px solid #1d2a3a;border-radius:8px;background:#fbf5e4;color:#1d2a3a;font:700 1rem system-ui,sans-serif;cursor:pointer}
.ec-btn:active{transform:translateY(1px)}
.ec-primary{background:#d9411e;border-color:#1d2a3a;color:#fff}
.ec-btn:focus-visible,.ec-mute:focus-visible,.ec-swb:focus-visible{outline:3px solid #1d2a3a;outline-offset:2px}
.ec-sw{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ec-swb{min-height:44px;padding:0 12px;border-radius:8px;border:2px solid var(--swi);background:var(--sw);color:var(--swi);font:600 .8rem system-ui,sans-serif;cursor:pointer}
.ec-swb.on{box-shadow:0 0 0 3px #d9411e}
.ec-swb:disabled{opacity:.5;cursor:default}
.ec-hint{margin:8px 0 0;min-height:2.6em;font-size:.9rem;text-align:center;color:#4b4a40}
.ec-hint-wrap{padding-bottom:env(safe-area-inset-bottom)}
@media (prefers-reduced-motion:reduce){.ec-btn{transition:none}.ec-btn:active{transform:none}}
/* Full screen (shell immersive on iPhone, native on Android): the board fills the stage, extras go away. */
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap:fullscreen{display:flex;flex-direction:column;overflow:hidden!important;padding-left:8px;padding-right:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
html.pip-immersive .ec,html.pip-native .ec{flex:1;min-height:0;max-width:none;width:100%;display:flex;flex-direction:column}
html.pip-immersive #ec-stage,html.pip-native #ec-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
html.pip-immersive #ec-card,html.pip-native #ec-card{overflow:auto;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
html.pip-immersive .facts,html.pip-immersive .about,html.pip-immersive .ad-well,html.pip-immersive footer,html.pip-immersive #similar-games,html.pip-immersive .pip-actions,
html.pip-native .facts,html.pip-native .about,html.pip-native .ad-well,html.pip-native footer,html.pip-native #similar-games,html.pip-native .pip-actions{display:none!important}
html.pip-immersive .ec-hint,html.pip-native .ec-hint{min-height:0;margin:4px 0 0}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive .ec-hint,html.pip-native .ec-hint{display:none}
html.pip-immersive #ec-card,html.pip-native #ec-card{gap:6px;padding-top:8px;padding-bottom:8px}
html.pip-immersive .ec-h,html.pip-native .ec-h{font-size:1.4rem}
html.pip-immersive .ec-p,html.pip-native .ec-p{font-size:.85rem;max-width:60ch}
}
