.er{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.er button{font-family:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
.er-stage{position:relative;width:100%;aspect-ratio:9/14;max-height:calc(100svh - 150px);min-height:380px;margin:0 auto;border:3px solid #f1e4c8;border-radius:6px;overflow:hidden;background:#140c0b;touch-action:none;box-shadow:5px 5px 0 #6b2a14}
.er-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.er-mute{position:absolute;top:6px;right:6px;width:44px;height:44px;border:2px solid #f1e4c8;background:#140c0b;color:#f1e4c8;border-radius:6px;display:flex;align-items:center;justify-content:center;z-index:3}
.er-mute .x{display:none}.er-mute.off .w{display:none}.er-mute.off .x{display:inline}
.er-ov{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6rem;padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom));background:rgba(20,12,11,.86);text-align:center;touch-action:manipulation}
.er-ov[hidden]{display:none}
.er-logo{font-size:2.5rem;letter-spacing:.04em;text-transform:uppercase;color:#ff9a3a;text-shadow:3px 3px 0 #6b2a14;line-height:1}
.er-h2{font-size:1.6rem;color:#ff9a3a;text-shadow:2px 2px 0 #6b2a14}
.er-pitch{font-size:.95rem;line-height:1.4;color:#e4d6b8;max-width:300px}
.er-small{font-size:.82rem;color:#c9b99a;min-height:1em}
.er-score{font-size:3rem;font-weight:800;color:#f1e4c8;line-height:1}
.er-best{font-size:1rem;color:#ffdc62;font-weight:700;min-height:1.2em}
.er-btn{min-width:200px;min-height:52px;padding:.5rem 1.2rem;font-size:1.2rem;font-weight:800;color:#140c0b;background:#ff9a3a;border:3px solid #f1e4c8;border-radius:6px;box-shadow:3px 3px 0 #6b2a14}
.er-btn.alt{background:#2a1410;color:#f1e4c8;font-size:1rem;min-height:46px}
.er-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #6b2a14}
.er-btn:focus-visible,.er-card:focus-visible,.er-sw:focus-visible,.er-mute:focus-visible{outline:3px solid #ffdc62;outline-offset:2px}
.er-sws{display:flex;gap:2px;flex-wrap:wrap;justify-content:center}
.er-sw{width:44px;height:44px;background:transparent;border:0;display:flex;align-items:center;justify-content:center;position:relative}
.er-sw::before{content:"";width:26px;height:26px;border-radius:50%;background:var(--c);box-shadow:0 0 0 3px #140c0b,0 0 0 5px var(--g)}
.er-sw.on::before{box-shadow:0 0 0 3px #140c0b,0 0 0 6px #f1e4c8}
.er-sw.lock{opacity:.35}.er-sw.lock::before{background:#4a403b;box-shadow:0 0 0 3px #140c0b,0 0 0 5px #6b5a50}
.er-cards{display:flex;flex-direction:column;gap:.55rem;width:100%;max-width:320px}
.er-card{position:relative;display:block;text-align:left;min-height:64px;padding:.55rem .8rem .55rem 2.4rem;color:#f1e4c8;background:#2a1410;border:3px solid #f1e4c8;border-radius:6px;box-shadow:3px 3px 0 #6b2a14}
.er-card b{display:block;font-size:1rem;color:#ff9a3a}
.er-card span{display:block;font-size:.82rem;color:#d8c9aa;line-height:1.3}
.er-card i{position:absolute;left:.7rem;top:.55rem;font-style:normal;font-weight:800;color:#ffdc62}
.er-card:active{transform:translate(2px,2px)}
.er-help{font-size:.78rem;color:#a89a7e;margin-top:.6rem;line-height:1.4}
@media (prefers-reduced-motion:reduce){.er *{animation:none!important;transition:none!important}}
/* full screen: the playfield fills the stage under the dock */
html.pip-immersive .er,html.pip-native .er,.er:fullscreen{display:flex;flex-direction:column;padding:0;background:#140c0b}
html.pip-immersive .er-help,html.pip-native .er-help,.er:fullscreen .er-help{display:none}
html.pip-immersive .er-stage,html.pip-native .er-stage,.er:fullscreen .er-stage{flex:1 1 auto;min-height:0;max-height:none;aspect-ratio:auto;width:100%;height:auto;border:0;border-radius:0;box-shadow:none}
html.pip-immersive .er-stage canvas,html.pip-native .er-stage canvas,.er:fullscreen .er-stage canvas{position:absolute;left:0;top:0}
html.pip-immersive .er-mute,html.pip-native .er-mute,.er:fullscreen .er-mute{top:calc(6px + env(safe-area-inset-top));right:calc(6px + env(safe-area-inset-right))}
@media (orientation:landscape) and (max-height:480px){.er-logo{font-size:1.8rem}.er-pitch{display:none}.er-ov{gap:.35rem;padding:.5rem}.er-btn{min-height:46px}}
