/* Exact header.zip desktop geometry; phone keeps its existing controls. */
body .rh-original-header[hidden]{display:none!important}
body header.rv-new-header.rv-new-header.rv-new-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(max-content,1fr)!important;align-items:center!important;height:92px!important;min-height:92px!important;padding:0 40px!important;gap:20px!important;max-width:none!important;width:100%!important;box-sizing:border-box!important;flex-wrap:nowrap!important;background:#0b1030!important;position:relative!important;z-index:100!important}
body .rv-new-header .rh-logo{display:block!important;justify-self:start!important;margin:0!important;padding:0!important;width:auto!important;min-width:0!important}body .rv-new-header .rh-logo img{display:block!important;height:30px!important;width:auto!important;max-width:100%!important}
body .rv-new-header .rh-navigation{display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;height:58px!important;padding:0 6px!important;flex-wrap:nowrap!important;border-radius:29px!important;border:1px solid #26346a!important;background:#111a3d!important;width:max-content!important;margin:0!important}
body .rv-new-header .rh-navigation .rh-nav-item{display:flex!important;align-items:center!important;justify-content:center!important;height:46px!important;padding:0 20px!important;border-radius:23px!important;font:700 15.5px/1.2 var(--rv-font-body,'DM Sans',sans-serif)!important;white-space:nowrap!important;color:#c9d4ea!important;text-decoration:none!important;background:none!important;border:0!important}
body .rv-new-header .rh-navigation .rh-nav-item.is-active{background:#c4fa72!important;color:#0b1030!important}
body .rv-new-header .rh-navigation :is(.rh-spin,.rh-spin-link){display:inline-flex!important;align-items:center!important;justify-content:center!important;height:46px!important;min-height:46px!important;margin:0 8px!important;border-radius:23px!important;padding:0 16px 0 10px!important;font:800 17px/1 var(--rv-font-display,'Bricolage Grotesque',sans-serif)!important;letter-spacing:.06em!important;white-space:nowrap!important}
body .rv-new-header .rh-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;width:max-content!important;justify-self:end!important;min-width:0!important}
body .rv-new-header .rh-plus{display:flex!important;align-items:center!important;gap:9px!important;padding:0 14px 0 10px!important;height:44px!important;border-radius:22px!important;white-space:nowrap!important;color:#c4fa72!important;font:700 15px var(--rv-font-body,'DM Sans',sans-serif)!important;text-decoration:none!important}
body .rv-new-header .rh-plus img{width:24px!important;height:24px!important;border-radius:7px!important}
body .rv-new-header :is(.rh-search,.rh-sound){display:inline-flex!important;align-items:center!important;justify-content:center!important;width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;border-radius:24px!important;border:1px solid #34457a!important;background:#172440!important;padding:0!important;margin:0!important;color:#eef4ff!important}
body .rv-new-header .rh-sound[data-muted=true] svg{color:#6f81ad!important}body .rv-new-header .rh-sound svg{width:24px!important;height:24px!important}
body header .rv-approved-menu.rv-approved-menu>.rh-account-summary{display:flex!important;align-items:center!important;gap:10px!important;height:48px!important;min-height:48px!important;width:auto!important;min-width:0!important;border:1px solid #34457a!important;border-radius:24px!important;background:#172440!important;padding:0 16px 0 14px!important;color:#eef4ff!important;box-sizing:border-box!important;font:700 15px var(--rv-font-body,'DM Sans',sans-serif)!important}
body header .rv-approved-menu.rv-approved-menu[open]>.rh-account-summary{border-color:#c4fa72!important}body header .rv-approved-menu[open]>.rh-account-summary :is(.shell-icon,.rv-menu-toggle-x){color:#c4fa72!important}body header .rv-approved-menu[open]>.rh-account-summary:has(.rv-menu-toggle-x)>.rh-menu-icon{display:none!important}
body header .rh-account-summary :is(.shell-icon,.site-menu-icon,.rh-menu-icon,.rv-menu-toggle-x){display:inline-flex!important;flex:0 0 20px!important;width:20px!important;height:20px!important;color:inherit!important}body header .rh-account-summary :is(.player-avatar,.ar-avatar,.rh-account-avatar){display:inline-flex!important;flex:0 0 32px!important;width:32px!important;height:32px!important;max-width:32px!important;border-radius:50%!important;object-fit:cover!important}body header .rh-account-summary .ar-avatar img{width:32px!important;height:32px!important}
body header .rh-account-summary :is(.current-language,.country-flag,.player-flag){display:none!important}body header .rh-account-summary>bdi{white-space:nowrap!important;max-width:140px!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .rh-game-tools{display:flex!important;justify-content:center!important;align-items:center!important;gap:16px!important;margin:12px auto!important;width:max-content!important;max-width:calc(100% - 40px)!important}.rh-game-tools .shell-controls{display:flex;gap:8px}.rh-game-tools .shell-control{width:52px!important;height:52px!important}.rh-game-tools .shell-stats{display:flex!important;gap:6px!important}
@media(min-width:1024px) and (max-width:1279px){body .rv-new-header .rh-plus span,body .rv-new-header .rh-account-summary>bdi,body .rv-new-header .rh-account-summary>.shell-account-name,body header .rh-account-summary>.rh-account-name{display:none!important}body .rv-new-header .rh-plus{padding:0!important;width:44px!important;justify-content:center!important}body header.rv-new-header.rv-new-header.rv-new-header{padding-inline:24px!important;gap:12px!important}body .rv-new-header .rh-navigation .rh-nav-item{padding-inline:12px!important}}
@media(max-width:1023px){body header .rv-approved-menu.rv-approved-menu>.rh-account-summary{height:44px!important;min-height:44px!important;width:78px!important;min-width:78px!important;padding:0 5px 0 12px!important;gap:8px!important}body header .rh-account-summary>bdi,body header .rh-account-summary>.shell-account-name,body header .rh-account-summary>.rh-account-name{display:none!important}body header .rh-account-summary>.site-menu-icon~span:not(.player-avatar):not(.rh-menu-icon){display:none!important}body header .rv-approved-menu.rv-approved-menu>.rv-approved-menu-panel{position:fixed!important;inset:64px 0 0!important;top:64px!important;width:100%!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;background:#0b1030!important;padding:6px 16px 24px!important;overflow:auto!important}body header .rv-approved-menu .rv-menu-tiles{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}body header .rv-approved-menu .rv-menu-secondary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:761px) and (max-width:1023px){body .rv-phone-header :is(.home-nav,.rv-desktop-nav,.ar-shell-desktop,.ar-shell-spin,.shell-spin-button){display:none!important}body header.rv-phone-header:not(.shell-game-header){display:flex!important;height:64px!important;min-height:64px!important;padding:0 12px 0 16px!important;gap:8px!important}body header.rv-phone-header .ar-shell-logo{margin-inline-end:auto!important}body .rv-phone-header .ar-shell-logo img{height:24px!important;width:auto!important}body .rv-phone-header .ar-shell-account{margin-inline-start:0!important}body .rv-phone-header .rv-approved-menu{margin-inline-start:0!important}}

body header .rh-account-summary :is(.shell-icon,.site-menu-icon,.rh-menu-icon,.rv-menu-toggle-x){order:0!important}body header .rh-account-summary :is(.player-avatar,.ar-avatar,.rh-account-avatar){order:1!important}body header .rh-account-summary>bdi{order:2!important}
@media(min-width:761px) and (max-width:1023px){
 body.approved-game-ui header.rv-phone-header.shell-game-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-rows:64px 56px!important;height:120px!important;min-height:120px!important;padding:0 12px!important;gap:0 8px!important}
 body.approved-game-ui header.rv-phone-header .game-identity{grid-row:1!important;grid-column:1!important;min-width:0!important;overflow:hidden!important}
 body.approved-game-ui header.rv-phone-header .game-wordmark{font-size:24px!important}body.approved-game-ui header.rv-phone-header .game-wordmark img{height:28px!important;max-width:100%!important}
 body.approved-game-ui header.rv-phone-header .shell-menu{grid-row:1!important;grid-column:3!important}body.approved-game-ui header.rv-phone-header .shared-search{display:none!important}
 body.approved-game-ui header.rv-phone-header .shell-game-toolbar{grid-row:2!important;grid-column:1/-1!important;width:100%!important;gap:8px!important;justify-content:space-between!important}
 body.approved-game-ui header.rv-phone-header .shell-stats{flex:1 1 0!important;min-width:0!important;width:0!important;max-width:none!important;height:48px!important;padding:4px!important;overflow:hidden!important}
 body.approved-game-ui header.rv-phone-header .shell-controls :is(#pause,#mute,#sound,#help).shell-control{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important}
 body :is(.shared-mobile-nav,.mobile-tabs,.ar-shell-bottom){display:flex!important}body:is(.has-shared-nav,.has-game-shell,.ar-has-shell){padding-bottom:112px!important}
}
body header .rh-account-summary>img{display:block!important;flex:0 0 32px!important;width:32px!important;height:32px!important;border-radius:50%!important;object-fit:cover!important;order:1!important}
@media(max-width:1023px){body header.rv-phone-header>.rv-site-logo{flex:1 1 auto!important;min-width:0!important;max-width:175px!important}body header.rv-phone-header>.rv-site-logo img{display:block!important;width:175px!important;max-width:100%!important;height:auto!important}body header .rv-approved-menu.rv-approved-menu>.rv-approved-menu-panel{box-sizing:border-box!important}}
body header.rv-new-header.rv-new-header.rv-new-header{width:100vw!important;margin-inline:calc((100% - 100vw)/2)!important}
body:has(>header[data-rh-fallback]){display:block!important;padding-top:0!important}body:has(>header[data-rh-fallback])>main{margin:24px auto!important}
@media(max-width:1023px){body header.rv-phone-header.rv-phone-header{width:100vw!important;margin-inline:calc((100% - 100vw)/2)!important;box-sizing:border-box!important}body header[data-rh-fallback].rv-phone-header{display:flex!important;align-items:center!important;height:64px!important;min-height:64px!important;padding:0 12px 0 16px!important;gap:8px!important}body header[data-rh-fallback] :is(.shared-search,.mission-sound){display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;height:44px!important;width:44px!important;padding:0!important;border:1px solid #34457a!important;border-radius:50%!important;background:#172440!important;color:#eef4ff!important}body header[data-rh-fallback] :is(.shared-search,.mission-sound) svg{width:24px!important;height:24px!important}}

@media(max-width:1023px){body header .rv-approved-menu.rv-approved-menu.rv-approved-menu>.rh-account-summary>bdi,body header .rv-approved-menu.rv-approved-menu.rv-approved-menu>.rh-account-summary>.shell-account-name{display:none!important}}

/* Keep the open account menu above its existing dismissible shade. */
body header.rv-new-header.rv-new-header.rv-new-header:has(.rv-approved-menu[open]){z-index:1002!important}
