/* rr.css - Rail Rogue stage and overlays. Soot, copper, chalk, lantern amber. */
.rr{position:relative;width:100%;height:min(760px,calc(100svh - 150px));min-height:480px;background:#14100d;border:3px solid #3a2c1f;border-radius:14px;overflow:hidden;color:#efe6d2;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;box-shadow:0 0 0 2px #14100d,0 10px 30px rgba(0,0,0,.4)}
.rr canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none;-webkit-tap-highlight-color:transparent;outline:none}
.rr-mute{position:absolute;top:calc(6px + env(safe-area-inset-top,0px));right:6px;width:48px;height:48px;border:0;border-radius:12px;background:rgba(20,16,13,.7);color:#efe6d2;display:grid;place-items:center;cursor:pointer;touch-action:manipulation;z-index:5}
.rr-mute svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rr-mute .x{display:none}.rr-mute.off .x{display:block}.rr-mute.off .w{display:none}
.rr-mute:focus-visible,.rr-btn:focus-visible{outline:3px solid #ffb347;outline-offset:2px}
.rr-panel{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:12px calc(12px + env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px));background:linear-gradient(to top,rgba(20,16,13,.92) 35%,rgba(20,16,13,.35));z-index:4;overflow:auto}
.rr-panel[hidden]{display:none}
.rr-card{width:100%;max-width:360px;margin:auto 0 0;text-align:center}
.rr-logo{font:900 44px/1 "Arial Black",Impact,system-ui,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:#efe6d2;text-shadow:0 3px 0 #8f4f18,0 0 24px rgba(255,179,71,.45);margin:0 0 8px}
.rr-h{font:900 30px/1.1 "Arial Black",Impact,system-ui,sans-serif;text-transform:uppercase;margin:0 0 6px;color:#efe6d2}
.rr-h.win{color:#f2c14e}.rr-h.lose{color:#e0452f}
.rr-sub{font-size:14px;line-height:1.4;color:#d8cdb6;margin:0 0 12px}
.rr-score{font:900 52px/1 system-ui,sans-serif;color:#f2c14e;margin:4px 0}
.rr-stat{font-size:13px;color:#d8cdb6;margin:4px 0}
.rr-unlock{font-weight:800;color:#3fb8a5;margin:6px 0}
.rr-dim{display:block;font-size:12px;color:#a99d86;font-weight:500}
.rr-btn{min-height:48px;padding:0 14px;border:2px solid #efe6d2;border-radius:10px;background:#2a2018;color:#efe6d2;font:800 15px system-ui,sans-serif;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.rr-btn:active:not(:disabled){transform:translateY(2px)}
.rr-btn:disabled{opacity:.45;cursor:default}
.rr-go{display:block;width:100%;min-height:58px;margin:10px 0;background:#d9822b;color:#14100d;border-color:#14100d;font-size:22px;letter-spacing:.04em;text-transform:uppercase;box-shadow:0 4px 0 #8f4f18}
.rr-row{display:flex;gap:8px}.rr-row .rr-btn{flex:1}
.rr-ranks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:6px}
.rr-rank{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 8px;line-height:1.2}
.rr-rank small{font-size:11px;font-weight:600;color:#a99d86}
.rr-rank.on{background:#efe6d2;color:#14100d}.rr-rank.on small{color:#5a4a36}
.rr-map{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;margin:10px 0 6px;min-height:26px;align-items:center}
.rr-chip{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;font:900 12px system-ui,sans-serif;color:#14100d}
.rr-main{background:#d9822b}.rr-short{background:#3fb8a5}.rr-ore{background:#f2c14e}.rr-rest{background:#6aa6d6}.rr-rare{background:#e0452f}
.rr-up{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:8px 0;border-bottom:1px solid rgba(239,230,210,.2)}
.rr-upi strong{display:block;font-size:15px}
.rr-up .rr-btn{min-width:96px}
@media (prefers-reduced-motion:reduce){.rr *{animation:none!important;transition:none!important}}
@media (max-height:620px){.rr-logo{font-size:34px}.rr-sub{font-size:13px;margin-bottom:8px}}
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage{display:flex;flex-direction:column;overflow:hidden;padding-left:0;padding-right:0}
html.pip-immersive .game-wrap.pip-stage>.rr,html.pip-native .game-wrap.pip-stage>.rr{flex:1 1 auto;min-height:0;height:auto;border-radius:0;border-width:0;box-shadow:none}
html.pip-immersive .game-wrap.pip-stage>.rr{margin-bottom:0}
html.pip-immersive .pip-stage>.pip-actions,html.pip-native .pip-stage>.pip-actions{display:none}
html.pip-immersive .rr-mute,html.pip-native .rr-mute{top:calc(8px + env(safe-area-inset-top,0px))}
@media (orientation:landscape) and (max-height:520px){html.pip-immersive .rr-panel,html.pip-native .rr-panel{align-items:center}.rr-logo{font-size:30px}}
