.sport-desktop-account,.triple-desktop-account-host{display:none}
.sport-desktop-account[hidden]{display:none!important}
@media(min-width:821px){
 /* The desktop wallet owns account access from the first paint. Do not show
    the legacy text link while its asynchronous profile/balance read is pending. */
 .casino-account-area>#casinoAccountLink,.sport-topbar .account-area>#sportAccountLink,.home-header-account>#sportAccountLink{display:none!important}
 .sport-desktop-account{display:flex;align-items:center;gap:10px;padding:4px 8px;border-left:1px solid #0b234d30;color:#0b234d!important;text-decoration:none;min-width:0;font-family:Arial,sans-serif;flex:0 0 auto}
 .sport-desktop-account__details{display:grid;gap:2px;min-width:0;text-align:right;font:12px/1.25 Arial,sans-serif}
 .sport-desktop-account__name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
 .sport-desktop-account__balance{white-space:nowrap;font-size:12px}
 .sport-desktop-account__balance strong{font-size:14px;font-variant-numeric:tabular-nums}
 .sport-desktop-account__icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border:1px solid #0b234d50;border-radius:50%;color:#0b234d}
 .sport-desktop-account__icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
 .has-desktop-account>#sportAccountLink,.has-desktop-account>#casinoAccountLink,.has-desktop-account>a[href="/account/"]{display:none!important}
 .sport-desktop-account:focus-visible{outline:2px solid #0b234d;outline-offset:3px}
 .texas-sport-nav .sport-desktop-account,header.toolbar .sport-desktop-account{background:#ffe18a;border-radius:4px}
 .triple-desktop-account-host{display:flex;align-items:center;justify-content:flex-end;padding:8px 20px;background:linear-gradient(100deg,#edba42,#ffe18a)}
}

@media(max-width:820px){#sportDesktopAccount,.triple-desktop-account-host{display:none!important}}

/* A sibling button keeps refresh separate from the account link. */
.header-wallet-refresh{display:none}
.header-wallet-refresh[hidden]{display:none!important}
.header-wallet-refresh-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:821px){.header-wallet-refresh{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:30px;height:30px;min-width:30px;padding:5px;margin:0;border:1px solid #0b234d66;border-radius:50%;background:#ffffff30;color:#0b234d;cursor:pointer;flex:0 0 auto}.header-wallet-refresh svg{width:18px;height:18px}.header-wallet-refresh:hover{background:#ffffff70}.header-wallet-refresh:focus-visible{outline:2px solid #0b234d;outline-offset:3px}.header-wallet-refresh:disabled{opacity:.55;cursor:wait}.header-wallet-refresh[aria-busy="true"] svg{animation:header-wallet-spin 1s linear infinite}}
@media(min-width:821px) and (pointer:coarse){.header-wallet-refresh{width:44px;height:44px;min-width:44px}}
@keyframes header-wallet-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.header-wallet-refresh[aria-busy="true"] svg{animation:none}}


/* Identity privacy is independent from the account link and wallet refresh. */
.header-identity-toggle{display:none}
.header-identity-toggle[hidden]{display:none!important}
@media(min-width:821px){
 .sport-desktop-account__details{width:140px}
 .sport-desktop-account__name{width:100%;min-height:15px}
 .header-identity-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;padding:5px;border:1px solid #0b234d66;border-radius:50%;background:#ffffff30;color:#0b234d;cursor:pointer}
 .header-identity-toggle svg{width:18px;height:18px}
 .header-identity-toggle[aria-pressed="true"] .identity-eye-slash{display:none}
 .header-identity-toggle:focus-visible{outline:2px solid #0b234d;outline-offset:3px}
 .header-identity-toggle:hover{background:#ffffff70}
}
@media(min-width:821px) and (pointer:coarse){.header-identity-toggle{width:44px;height:44px;flex-basis:44px}}

@media(min-width:821px){.has-desktop-account>.sport-login-trigger,.has-desktop-account>#casinoLoginLink{display:none!important}}
.header-identity-toggle{box-sizing:border-box}
@media(min-width:821px){
 #accountLogoutButton{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;padding:5px;font-size:0;border:1px solid #0b234d66;border-radius:50%;background:#ffffff30;color:#0b234d}
 #accountLogoutButton::before{content:'';width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M9 4H4v16h5M13 7l5 5-5 5M8 12h12'/%3E%3C/svg%3E") center/contain no-repeat}
}

/* Separate identity, privacy and refresh hit areas; no overlay on the name. */
.header-account-identity[hidden]{display:none!important}
@media(min-width:821px){
 .header-account-identity{display:flex;align-items:center;gap:6px;flex:0 0 auto;min-width:0}
 :is(.sport-topbar,.casino-header) .sport-desktop-account{gap:8px;padding:0;border:0;min-width:0}
 :is(.sport-topbar,.casino-header) .sport-desktop-account__details{width:136px;gap:4px;text-align:left}
 :is(.sport-topbar,.casino-header) .sport-desktop-account__name{max-width:136px;width:100%;min-height:15px;padding:0;font-size:12px;line-height:16px}
 :is(.sport-topbar,.casino-header) .sport-desktop-account__balance{font-size:11px;line-height:17px}
 :is(.sport-topbar,.casino-header) .sport-desktop-account__balance strong{font-size:14px}
 :is(.sport-topbar,.casino-header) .sport-desktop-account__icon{width:32px;height:32px;flex-basis:32px;border:0;border-radius:9px;background:#0b234d;color:#fff}
 :is(.sport-topbar,.casino-header) :is(.header-identity-toggle,.header-wallet-refresh,#accountLogoutButton){position:static;flex:0 0 36px;box-sizing:border-box;width:36px;height:36px;min-width:36px;margin:0;padding:8px;border:1px solid #0b234d25;border-radius:10px;background:#ffffff55;color:#0b234d}
 :is(.sport-topbar,.casino-header) :is(.header-identity-toggle,.header-wallet-refresh,#accountLogoutButton):hover{background:#ffffffa0}
 :is(.sport-topbar,.casino-header) :is(.header-identity-toggle,.header-wallet-refresh) svg{width:18px;height:18px}
}
@media(min-width:821px) and (pointer:coarse){
 :is(.sport-topbar,.casino-header) :is(.header-identity-toggle,.header-wallet-refresh,#accountLogoutButton){width:44px;height:44px;min-width:44px;flex-basis:44px}
 :is(.sport-topbar,.casino-header) .sport-desktop-account__details{width:112px}
}
@media(max-width:820px){.header-account-identity{display:none!important}}
