/* Match the existing console menu; keep the account controls and layout. */
html body dialog#accountMenuDialog#accountMenuDialog.mobile-panel,
html body dialog#notificationsDialog#notificationsDialog.mobile-panel,
html body dialog#authDialog#authDialog.mobile-panel,
html body dialog#profileDialog#profileDialog.mobile-panel{
 background:linear-gradient(180deg,#071342 0%,#1233a6 55%,#071342 100%)!important;
 color:#f4f6ff!important;border-color:#789aff!important;
}
html body dialog#accountMenuDialog#accountMenuDialog.mobile-panel :is(h2,h3,p,label,summary,small,strong,b,time,output),
html body dialog#notificationsDialog#notificationsDialog.mobile-panel :is(h2,h3,p,label,summary,small,strong,b,time,output){color:#f4f6ff!important;text-shadow:none!important}
html body dialog#accountMenuDialog#accountMenuDialog.mobile-panel :is(.music-options,#accountMenuStatus,#profileSummary),
html body dialog#notificationsDialog#notificationsDialog.mobile-panel .notifications-empty{background:#0b194e!important;color:#f4f6ff!important;border-color:#789aff!important}
html body dialog#accountMenuDialog#accountMenuDialog.mobile-panel>.panel-toolbar,
html body dialog#notificationsDialog#notificationsDialog.mobile-panel>.panel-toolbar,
html body dialog#authDialog#authDialog.mobile-panel>.panel-toolbar,
html body dialog#profileDialog#profileDialog.mobile-panel>.panel-toolbar{background:#0b194e!important;border-color:#789aff!important}
/* LED yellow is confined to accents and the notification outline. */
html body dialog#notificationsDialog#notificationsDialog.mobile-panel .notification-item{background:#0b194e!important;border:1px solid #859bda!important;border-radius:10px!important}
html body dialog#notificationsDialog#notificationsDialog.mobile-panel .notification-item.unread{background:#12276a!important;border:2px solid #ffe45c!important;box-shadow:0 0 10px #ffe45c33!important}
html body dialog#notificationsDialog#notificationsDialog.mobile-panel .notification-item.unread::before{background:#ffe45c!important;box-shadow:0 0 8px #ffe45c!important}
html body dialog#notificationsDialog#notificationsDialog.mobile-panel :is(h2,.notification-item strong,.notification-item b){color:#ffe96b!important}
html body dialog#notificationsDialog#notificationsDialog.mobile-panel .notification-item :is(time,small){color:#d9e4ff!important}
html body dialog#notificationsDialog#notificationsDialog.mobile-panel .notification-open{background:#ffe45c!important;color:#111c4e!important;border-color:#fff3ad!important}
html body #lobby#lobby #notificationsBadge{background:#ffe45c!important;color:#111c4e!important;box-shadow:0 0 9px #ffe45c88!important}
/* Push-style notices stay visible above the current screen or dialog. */
html body #walletNotice#walletNotice#walletNotice{box-sizing:border-box!important;position:fixed!important;inset:calc(12px + env(safe-area-inset-top)) auto auto 50%!important;transform:translateX(-50%)!important;width:min(calc(100vw - 24px),440px)!important;max-width:calc(100vw - 24px)!important;margin:0!important;padding:14px!important;background:linear-gradient(160deg,#102668,#071342)!important;border:2px solid #ffe45c!important;border-radius:14px!important;box-shadow:0 0 14px #ffe45c55,0 8px 30px #0008!important;color:#fff!important;z-index:9999;animation:notice-arrive .2s ease-out}
html body #walletNotice#walletNotice#walletNotice strong{display:block;color:#ffe96b!important;font:800 17px/1.35 'Truco Outfit',sans-serif!important;overflow-wrap:anywhere;text-shadow:none!important}
html body #walletNotice#walletNotice#walletNotice p{color:#fff!important;font:500 15px/1.45 'Truco Outfit',sans-serif!important;overflow-wrap:anywhere;margin:5px 0 0!important}
html body #walletNotice#walletNotice#walletNotice .wallet-notice-icon{background:#ffe45c!important;color:#111c4e!important;border-color:#fff3ad!important}
html body #walletNotice#walletNotice#walletNotice button{background:#ffe45c!important;color:#111c4e!important;border-color:#fff3ad!important;min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important;padding:0!important;box-shadow:none!important}
@keyframes notice-arrive{from{opacity:0;translate:0 -10px}to{opacity:1;translate:0 0}}
/* Registration and profile use the mobile panel's fixed navigation and scroll body. */
html body dialog#authDialog#authDialog.mobile-panel,
html body dialog#profileDialog#profileDialog.mobile-panel{box-sizing:border-box!important;position:fixed!important;inset:calc(10px + env(safe-area-inset-top)) 0 auto!important;top:calc(10px + env(safe-area-inset-top))!important;width:calc(100% - 16px)!important;max-width:480px!important;margin:0 auto!important;padding:0!important;max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow:hidden!important;border-radius:14px!important;transform:none!important}
html body dialog#authDialog#authDialog.mobile-panel>.menu-scroll-content,
html body dialog#profileDialog#profileDialog.mobile-panel>.menu-scroll-content{padding:18px!important;max-height:min(var(--menu-visible-height,calc(100dvh - 96px)),calc(100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))!important;overflow:auto!important;scroll-padding:16px}
html body dialog#authDialog#authDialog.mobile-panel :is(h2,label,p,small,.auth-switch,.auth-alternatives summary),
html body dialog#profileDialog#profileDialog.mobile-panel :is(h2,label,p,small){color:#f4f6ff!important;text-shadow:none!important}
html body dialog#authDialog#authDialog.mobile-panel .sheet-heading h2,
html body dialog#profileDialog#profileDialog.mobile-panel .sheet-heading h2{font-size:26px!important;color:#ffe96b!important;line-height:1.25!important}
html body dialog#authDialog#authDialog.mobile-panel label,
html body dialog#profileDialog#profileDialog.mobile-panel label{display:block;font:600 15px/1.4 'Truco Outfit',sans-serif!important;margin:12px 0 7px!important}
html body dialog#authDialog#authDialog.mobile-panel .remember-email{display:flex!important}
html body dialog#authDialog#authDialog.mobile-panel input:not([type=checkbox]),
html body dialog#profileDialog#profileDialog.mobile-panel #profileForm input{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:50px!important;background:#f6f8ff!important;color:#152144!important;border:1px solid #a9c4ff!important;border-radius:10px!important;font:400 16px/1.4 'Truco Outfit',sans-serif!important;padding:12px!important}
html body dialog#authDialog#authDialog.mobile-panel .auth-password-input input{padding-right:80px!important}
html body dialog#authDialog#authDialog.mobile-panel :is(#forgotPassword,#authBack,.auth-switch button){color:#ffe96b!important;background:transparent!important;font-size:15px!important;min-height:44px!important}
html body dialog#profileDialog#profileDialog.mobile-panel #saveProfile,
html body dialog#authDialog#authDialog.mobile-panel :is(#authSubmit,#verifySubmit){width:100%!important;min-height:50px!important;background:#ffe45c!important;color:#111c4e!important;border:1px solid #fff3ad!important;border-radius:10px!important;font:800 16px/1.4 'Truco Outfit',sans-serif!important;box-shadow:0 3px #b28a1d!important;padding:12px!important}
html body dialog#profileDialog#profileDialog.mobile-panel .profile-player-card{background:#0b194e!important;border-color:#91a8ee!important}
html body dialog#profileDialog#profileDialog.mobile-panel #profileCardRank{color:#ffe96b!important}
html body dialog#profileDialog#profileDialog.mobile-panel .profile-photo-controls button{background:#194fe3!important;border-color:#9bcaff!important;color:white!important}
html body dialog#profileDialog#profileDialog.mobile-panel #profileError:not(:empty),
html body dialog#authDialog#authDialog.mobile-panel #authError:not(:empty){background:#fff0f0!important;color:#8e1726!important;border:1px solid #ffabb5!important;padding:10px!important;border-radius:8px!important}
html body dialog#authDialog#authDialog.mobile-panel [hidden],html body dialog#profileDialog#profileDialog.mobile-panel [hidden]{display:none!important}
@media(max-width:350px){html body dialog#authDialog#authDialog.mobile-panel>.menu-scroll-content,html body dialog#profileDialog#profileDialog.mobile-panel>.menu-scroll-content{padding:12px!important}}
@media(prefers-reduced-motion:reduce){html body #walletNotice#walletNotice#walletNotice{animation:none!important}}

html body dialog#authDialog#authDialog.mobile-panel>.panel-toolbar,
html body dialog#profileDialog#profileDialog.mobile-panel>.panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;min-height:58px;padding:6px 10px;border-bottom:1px solid #789aff}
html body dialog#authDialog#authDialog.mobile-panel>.panel-toolbar button,
html body dialog#profileDialog#profileDialog.mobile-panel>.panel-toolbar button{box-sizing:border-box!important;position:static!important;inset:auto!important;margin:0!important;height:44px!important;min-height:44px!important;width:auto!important;max-width:none!important;padding:10px 12px!important;border:1px solid #a9c4ff!important;border-radius:8px!important;background:#f6f8ff!important;color:#152144!important;font:600 15px/1.3 'Truco Outfit',sans-serif!important;box-shadow:none!important;transform:none!important}
html body dialog#authDialog#authDialog.mobile-panel>.panel-toolbar #closeAuth.external-menu-close,
html body dialog#profileDialog#profileDialog.mobile-panel>.panel-toolbar #closeProfile.external-menu-close{position:static!important;inset:auto!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#f6f8ff!important;color:#152144!important;font-size:26px!important;box-shadow:none!important}
