/* RE:RYZE unified, mobile-first navigation. Never restyle the combat canvas or touch HUD. */
:root{--rr-bg:#090e18;--rr-panel:#121b2b;--rr-panel2:#182235;--rr-line:#d7d9ff21;--rr-text:#f1f0f8;--rr-muted:#aab4c8;--rr-accent:#d4c4ff;--rr-mint:#9de2d2;--rr-radius:20px}
body[data-ryze-shell]{background:var(--rr-bg);color:var(--rr-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;margin:0;padding-bottom:84px!important}
body[data-ryze-shell]>.reryze-header,body[data-ryze-shell]>header,body[data-ryze-shell] .digi-mobile-header,body[data-ryze-shell] .digi-mobile-dock,body[data-ryze-shell] .rh-topbar,body[data-ryze-shell] .rh-mobile-nav{display:none!important}
.rr-shell{position:relative;z-index:50;color:var(--rr-text);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}.rr-shell *{box-sizing:border-box}.rr-shell a{text-decoration:none;color:inherit}.rr-shell button{font:inherit;cursor:pointer}.rr-shell svg{width:22px;height:22px;flex:none}.rr-shell :is(a,button):focus-visible{outline:3px solid var(--rr-mint);outline-offset:3px}.rr-skip{position:fixed;left:12px;top:-90px;background:var(--rr-mint);color:#09151b!important;padding:12px 18px;border-radius:9px;z-index:100}.rr-skip:focus{top:12px}
.rr-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;max-width:none;margin:0;padding:10px max(20px,calc((100vw - 1180px)/2));background:#0c1220f5;border-bottom:1px solid var(--rr-line)}
.rr-wordmark{font-size:23px;font-weight:900;letter-spacing:-1.2px;display:flex;align-items:center;white-space:nowrap;min-height:44px}.rr-wordmark>span{color:var(--rr-mint)}.rr-wordmark i{font-style:normal;font-size:8px;font-weight:700;letter-spacing:2px;margin-left:13px;border-left:1px solid var(--rr-line);padding-left:13px;color:var(--rr-muted)}
.rr-header-actions{display:flex;align-items:center;gap:8px}.rr-save,.rr-menu-button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 14px;border:1px solid var(--rr-line);border-radius:12px;background:#ffffff04;color:var(--rr-text);font-size:12px;font-weight:650}.rr-save:hover,.rr-menu-button:hover{background:#ffffff0b}.rr-header-actions .rr-save{margin:0;color:var(--rr-text)}
.rr-desktop{display:none}.rr-dock{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#0d1526f7;border-top:1px solid var(--rr-line);backdrop-filter:blur(18px);box-shadow:0 -8px 30px #0003;z-index:50}.rr-dock>a,.rr-dock>button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:54px;border:0;border-radius:13px;background:transparent;color:var(--rr-muted);font-size:11px;font-weight:650;letter-spacing:.015em}.rr-dock>[aria-current=page]{background:#d4c4ff14;color:#e0d3ff}.rr-dock>[aria-current=page] svg{stroke-width:2}
.rr-menu{width:min(900px,calc(100vw - 32px));max-height:88dvh;padding:28px;border:1px solid #c5c8ff35;border-radius:24px;background:#111b2c;color:var(--rr-text);box-shadow:0 30px 120px #0009;margin:auto}.rr-menu::backdrop{background:#02050cc4;backdrop-filter:blur(6px)}.rr-menu-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:24px}.rr-menu-heading p{font-size:9px;letter-spacing:.16em;color:var(--rr-mint);margin:0 0 9px}.rr-menu-heading h2{font-size:28px;line-height:1.15;margin:0;letter-spacing:-.04em}.rr-menu-heading button{display:grid;place-items:center;width:44px;height:44px;background:#ffffff08;border:1px solid var(--rr-line);border-radius:12px;color:var(--rr-text)}.rr-menu-grid{display:grid;grid-template-columns:1fr;gap:24px}.rr-menu-grid section{margin:0;padding:0;background:none;border:0}.rr-menu-grid h3{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--rr-muted);margin:0 0 8px;padding:0 12px}.rr-menu-grid a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:12px;border-radius:12px;border:1px solid transparent}.rr-menu-grid a:hover{background:#ffffff05;border-color:var(--rr-line)}.rr-menu-grid strong{display:block;font-size:14px;font-weight:650}.rr-menu-grid small{display:block;font-size:11px;color:var(--rr-muted);line-height:1.55;margin-top:3px}.rr-menu-grid a>svg{width:17px;color:var(--rr-mint)}.rr-menu-note{padding:18px 12px 0;margin:24px 0 0;border-top:1px solid var(--rr-line);color:var(--rr-muted);font-size:12px}
/* Shared utility pages retain their forms, confirmation text and handlers. */
body[data-ryze-shell]>.rr-shell~main{max-width:1180px;margin-inline:auto;padding:28px 24px 32px}body[data-ryze-shell] :is(.device-panel,.support-panel,.profile-grid>.panel,.saved.panel,.design-panel){background:var(--rr-panel);border-color:var(--rr-line);border-radius:var(--rr-radius)}
body[data-ryze-shell] :is(.support-hero,.intro){padding-top:24px}body[data-ryze-shell] .device-panel{margin:12px auto;max-width:780px;padding:28px}body[data-ryze-shell] .device-panel h1{font-size:clamp(30px,7vw,44px)!important;letter-spacing:-.045em}body[data-ryze-shell] :is(.primary,.secondary,.button){min-height:48px;border-radius:12px}body[data-ryze-shell] .primary{background:var(--rr-accent);color:#17132c;border-color:transparent}body[data-ryze-shell] .secondary{background:#ffffff04;color:var(--rr-text);border-color:var(--rr-line)}body[data-ryze-shell] .support-hero h1 em{font-family:inherit;font-weight:650;font-style:normal;color:var(--rr-accent)}body[data-ryze-shell] :is(.support-hero p,.support-panel p,.device-panel p){color:var(--rr-muted);line-height:1.7;font-size:14px}body[data-ryze-shell] .small{font-size:12px!important}body[data-ryze-shell] input:not([type=checkbox]):not([type=range]):not([type=file]),body[data-ryze-shell] select{min-height:44px}body[data-ryze-shell] :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--rr-mint);outline-offset:3px}
/* Calmer setup hierarchy; no match controls or canvas affected. */
body[data-ryze-shell] :is(.arena-prep-panel,.arena-prep-companion,.member-home-heading,.sanctuary-welcome,.sanctuary-sprite-card){border-color:var(--rr-line)!important;border-radius:20px!important}body[data-ryze-shell] .member-hub-nav{gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:5px}body[data-ryze-shell] .member-hub-tab{min-height:46px!important;flex-shrink:0}body[data-ryze-shell] .arena-prep-roster{gap:8px}body[data-ryze-shell] .arena-prep-roster button{border-radius:13px;min-height:72px}
body[data-digiflip-arena-active="1"] .rr-shell,body:has(:fullscreen) .rr-shell{display:none!important}body[data-digiflip-arena-active="1"]{padding-bottom:0!important}
@media(min-width:850px){body[data-ryze-shell]{padding-bottom:0!important}.rr-dock{display:none}.rr-desktop{display:flex;align-items:center;gap:4px}.rr-desktop a{display:flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:10px;font-size:13px;font-weight:600;color:var(--rr-muted)}.rr-desktop a[aria-current=page]{background:#d4c4ff12;color:var(--rr-accent)}.rr-menu-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.rr-header{min-height:64px;padding:8px 16px}.rr-wordmark{font-size:22px}.rr-wordmark i{display:none}.rr-save{border:0;padding:10px}.rr-save span,.rr-menu-button span{display:none}.rr-menu-button{width:44px;padding:10px}.rr-menu{padding:22px 16px;border-radius:20px;width:calc(100vw - 20px);max-height:85dvh}.rr-menu-heading h2{font-size:25px}body[data-ryze-shell]>.rr-shell~main{padding:20px 16px 28px}body[data-ryze-shell] .device-panel{padding:23px 18px}body[data-ryze-shell] .support-hero{padding:20px 4px}body[data-ryze-shell] .support-hero h1{font-size:38px}body[data-ryze-shell] .support-panel{padding:24px 20px}body[data-ryze-shell] .support-panel h2{font-size:27px}body[data-ryze-shell] .support-hero img{max-height:200px}}
@media(prefers-reduced-motion:reduce){.rr-shell *{scroll-behavior:auto!important;transition:none!important}}
body[data-ryze-shell] .digi-app-shell[data-mobile-active=true]>.digi-app-content{padding-bottom:0!important}body[data-rr-keyboard=true] .rr-dock{display:none}body[data-rr-keyboard=true]{padding-bottom:0!important}
/* Home: a clear invitation, one featured portrait and immediate routes into play. */
body[data-ryze-shell] .ryze-home{--rh-ink:#f1f0f8;--rh-muted:#aab4c8;background:transparent;padding-bottom:0}
body[data-ryze-shell] .rh-main{max-width:1180px;margin:auto;padding:28px 24px 0}
body[data-ryze-shell] .rh-hero{min-height:540px;border-radius:26px;background:#111a2b;border-color:var(--rr-line);padding:48px 42px 110px;overflow:hidden}
body[data-ryze-shell] .rh-hero h1{font-size:clamp(40px,4.5vw,62px);line-height:1.04;letter-spacing:-.055em}
body[data-ryze-shell] .rh-lead{font-size:15px;line-height:1.65;max-width:390px;margin-top:22px;color:#c0c7d7}
body[data-ryze-shell] .rh-hero-shade{background:linear-gradient(90deg,#0b1325ed 0%,#0e1729cc 48%,#10172e40 100%)}
body[data-ryze-shell] .rh-hero-actions{gap:10px;margin-top:24px}
body[data-ryze-shell] .rh-button{border-radius:12px;min-height:48px;font-size:13px;font-weight:700;letter-spacing:0;padding:12px 18px}
body[data-ryze-shell] .rh-button-primary{background:var(--rr-accent);color:#19152b;box-shadow:0 8px 30px #a792ed15}
body[data-ryze-shell] .rh-featured{min-height:370px}.rh-featured .rh-fighter{image-rendering:auto}
body[data-ryze-shell] .rh-fighter{width:310px;height:380px}body[data-ryze-shell] .rh-featured[data-art-kind=pixel] .rh-fighter{width:285px;height:340px}
body[data-ryze-shell] .rh-fighter-picker{left:42px;right:42px;bottom:22px;padding-top:16px;gap:10px}body[data-ryze-shell] .rh-fighter-picker button{border-radius:12px;min-width:140px;background:#121c30b3}
body[data-ryze-shell] .rh-section-heading{margin-bottom:20px}body[data-ryze-shell] .rh-section-heading h2{font-size:32px;letter-spacing:-.04em}body[data-ryze-shell] .rh-destinations{padding-top:38px}
body[data-ryze-shell] .rh-destination{border-radius:20px;min-height:225px;border-color:var(--rr-line)}body[data-ryze-shell] .rh-offline{margin-top:36px;border-radius:22px;background:linear-gradient(135deg,#d7ccf0,#b6ced0);color:#17232e}body[data-ryze-shell] .rh-support{border-radius:20px;margin-top:24px}body[data-ryze-shell] .rh-footer{max-width:1180px;margin:auto;padding:26px 24px 28px}
@media(max-width:850px){
 body[data-ryze-shell] .rh-main{padding:18px 16px 0}
 body[data-ryze-shell] .rh-hero{display:grid;grid-template-columns:1.12fr .88fr;gap:0 8px;padding:25px 20px 20px;min-height:0;border-radius:22px}
 body[data-ryze-shell] .rh-hero-copy{display:contents}
 body[data-ryze-shell] .rh-hero .rh-eyebrow{grid-column:1/-1;grid-row:1;margin:0 0 22px;font-size:8px;letter-spacing:.1em;line-height:1.5}
 body[data-ryze-shell] .rh-hero h1{grid-column:1;grid-row:2;font-size:clamp(30px,5.6vw,45px);margin:0;max-width:none;line-height:1.06;align-self:end}
 body[data-ryze-shell] .rh-lead{grid-column:1;grid-row:3;font-size:13px;line-height:1.6;margin:16px 0 0;max-width:none}
 body[data-ryze-shell] .rh-featured{grid-column:2;grid-row:2/4;position:relative;inset:auto;min-height:260px;height:100%;margin:0;align-self:stretch;display:flex;align-items:center;justify-content:center;padding:0 0 44px;overflow:visible}
 body[data-ryze-shell] .rh-fighter,body[data-ryze-shell] .rh-featured[data-art-kind=pixel] .rh-fighter{width:100%;max-width:225px;height:260px;margin:0;object-fit:contain;filter:drop-shadow(0 12px 12px #0006)}
 body[data-ryze-shell] .rh-fighter-caption{left:0;right:0;bottom:0;padding:9px 0 0;background:none;border:0;justify-content:center;text-align:center}
 body[data-ryze-shell] .rh-fighter-caption h2{font-size:18px;margin:3px 0}.rh-fighter-caption .rh-micro{font-size:7px}
 body[data-ryze-shell] .rh-fighter-caption p,body[data-ryze-shell] .rh-fighter-caption>a{display:none}
 body[data-ryze-shell] .rh-hero-actions{grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:1.15fr 1fr;gap:9px;margin-top:24px}
 body[data-ryze-shell] .rh-hero-actions .rh-button{min-height:50px;font-size:13px;padding:12px 10px;gap:8px}
 body[data-ryze-shell] .rh-hero-facts{grid-column:1/-1;grid-row:5;font-size:10px;gap:9px;margin-top:18px;justify-content:center;flex-wrap:wrap}
 body[data-ryze-shell] .rh-hero-facts>span:last-child{flex-basis:auto;border-left:1px solid #d8c7ff25;padding-left:9px}
 body[data-ryze-shell] .rh-fighter-picker{grid-column:1/-1;grid-row:6;position:relative;inset:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px;padding-top:14px;gap:7px}
 body[data-ryze-shell] .rh-fighter-picker button{min-width:0;min-height:48px;font-size:10px;gap:4px;padding:4px 7px 4px 3px;justify-content:center}
 body[data-ryze-shell] .rh-fighter-picker img{height:35px;width:26px}.rh-picker-indicator{display:none}
 body[data-ryze-shell] .rh-orbit{inset:15% -10% 8%;opacity:.5}
 body[data-ryze-shell] .rh-destinations{padding-top:30px}body[data-ryze-shell] .rh-section-heading h2{font-size:27px}body[data-ryze-shell] .rh-destination-grid{grid-template-columns:1fr;gap:12px}body[data-ryze-shell] .rh-destination{min-height:160px}body[data-ryze-shell] .rh-card-content h3{font-size:25px}body[data-ryze-shell] .rh-card-content p{font-size:13px}body[data-ryze-shell] .rh-card-meta{font-size:11px}
 body[data-ryze-shell] .rh-offline{margin-top:28px;padding:28px 24px}body[data-ryze-shell] .rh-offline h2{font-size:32px;line-height:1.12}body[data-ryze-shell] .rh-offline-art{display:none}body[data-ryze-shell] .rh-save-share{gap:16px}body[data-ryze-shell] .rh-footer{padding:24px 20px}
}
@media(max-width:360px){body[data-ryze-shell] .rh-hero{padding:22px 15px 18px;grid-template-columns:1.12fr .88fr}body[data-ryze-shell] .rh-hero h1{font-size:29px}body[data-ryze-shell] .rh-lead{font-size:12px}body[data-ryze-shell] .rh-hero-actions .rh-button{font-size:11px}body[data-ryze-shell] .rh-fighter-picker button{font-size:9px}}
body[data-ryze-shell] .digi-desktop-navbar,body[data-ryze-shell] .digi-mission-phase-bar{display:none!important}html[data-mobile-shell=true]:has(body[data-ryze-shell]){scroll-padding-bottom:84px}

/* Pocket phone chrome: keep the game action above the fold and utilities one tap away. */
@media(max-width:849px){
 .rr-header{min-height:56px;padding:5px 16px 5px max(16px,env(safe-area-inset-left));padding-top:max(5px,env(safe-area-inset-top))}
 .rr-header-actions [data-rr-menu]{display:none}
 .rr-dock{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));padding-bottom:calc(8px + env(safe-area-inset-bottom))}
 .rr-dock>a,.rr-dock>button{font-size:12px}
 .rr-menu{width:100%;max-width:none;max-height:min(85dvh,680px);margin:auto 0 0;border-radius:24px 24px 0 0;padding:20px max(16px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overscroll-behavior:contain}
 .rr-menu-heading{position:sticky;top:-20px;margin:-20px 0 10px;padding:20px 0 12px;background:var(--rr-panel);z-index:1;border-bottom:1px solid var(--rr-line)}
 .rr-menu-grid{gap:16px}.rr-menu-grid a{min-height:54px;padding:8px 10px}.rr-menu-grid small{font-size:12px}
 body[data-ryze-shell] .rh-main{padding-top:12px}
 body[data-ryze-shell] .rh-hero{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);padding:18px 16px 16px}
 body[data-ryze-shell] .rh-hero .rh-eyebrow{margin-bottom:12px;font-size:10px}
 body[data-ryze-shell] .rh-hero h1{align-self:center;font-size:clamp(28px,6.2vw,48px);text-wrap:balance}
 body[data-ryze-shell] .rh-featured{grid-row:2;min-height:0;min-width:0;padding-bottom:30px}
 body[data-ryze-shell] .rh-fighter,body[data-ryze-shell] .rh-featured[data-art-kind=pixel] .rh-fighter{height:clamp(108px,34vw,225px);margin:0}
 body[data-ryze-shell] .rh-fighter-caption{padding-top:0}
 body[data-ryze-shell] .rh-fighter-caption .rh-micro{display:none}
 body[data-ryze-shell] .rh-hero-actions{grid-row:3;margin-top:14px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
 body[data-ryze-shell] .rh-hero-actions .rh-button{font-size:14px}
 body[data-ryze-shell] .rh-lead{grid-column:1/-1;grid-row:4;margin-top:13px;font-size:14px;text-wrap:pretty}
 body[data-ryze-shell] .rh-hero-facts{justify-content:start;font-size:12px;margin-top:11px}
 body[data-ryze-shell] .rh-fighter-picker{margin-top:14px;padding-top:10px}
 body[data-ryze-shell] .rh-fighter-picker button{font-size:11px}
}
