.wallet-view-shell{grid-column:2;grid-row:1;display:flex;align-items:center;gap:6px;justify-self:end;min-width:0;max-width:370px;width:100%}
body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-view-shell>.header-profile{display:flex;align-items:center;gap:6px;min-width:0;max-width:250px;width:auto;flex:1;margin:0;padding:6px 8px;min-height:48px;border:1px solid var(--line);border-radius:11px;background:var(--theme-field,var(--surface));color:var(--ink);box-shadow:none}
.wallet-view-control{position:relative;justify-self:end;min-width:0;max-width:122px;flex:none;z-index:36}
.wallet-view-control select{min-height:44px;max-width:100%;padding:7px 28px 7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:650 12px/1.3 var(--body);cursor:pointer}
.wallet-view-control select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.wallet-view-status{position:absolute;top:100%;right:0;width:min(300px,85vw);margin:6px 0 0;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:400 12px/1.5 var(--body);box-shadow:0 8px 24px #0003}
.wallet-view-status:empty{display:none}
.lobby-currency-badge img{display:block;width:22px;height:22px;object-fit:contain}
body[data-lobby-layout="reference"] .lobby-currency-badge:has(img){background:transparent}
@media(max-width:900px){.wallet-view-shell{gap:4px;width:100%}.wallet-view-control{max-width:94px}.wallet-view-control select{font-size:11px;min-height:44px;padding:6px 12px 6px 5px}body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-view-shell>.header-profile{padding:5px;min-height:44px}.wallet-view-shell .lobby-balance-profile{display:none}.lobby-currency-badge img{width:19px;height:19px}}
@media(max-width:900px){body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-view-shell :is(.lobby-balance-profile,.header-usd-label){display:none}body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-view-shell .header-usd-total{font-size:15px;font-weight:800;min-width:0;white-space:nowrap}.wallet-view-shell .header-usd-balance{gap:4px}}
@media(max-width:360px){.wallet-view-control{max-width:80px}.wallet-view-control select{font-size:10px;padding-inline:4px}body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-view-shell .header-usd-total{font-size:13px}}
@media(max-width:900px){.wallet-view-control{width:32px;max-width:32px;min-width:32px}.wallet-view-control select{display:block;width:32px;min-width:32px;height:44px;padding:0;appearance:none;-webkit-appearance:none;font-size:12px;color:var(--ink);text-indent:40px;overflow:hidden}.wallet-view-control select option{text-indent:0;font-size:14px;color:var(--ink);background:var(--surface)}.wallet-view-control::after{content:'⌄';position:absolute;left:50%;top:50%;transform:translate(-50%,-60%);font:700 20px/1 var(--body);color:var(--ink);pointer-events:none}}
@media(max-width:360px){body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-view-shell>.header-profile{padding-inline:3px}}
.wallet-refresh-control{position:relative;flex:none}.wallet-refresh-control[hidden]{display:none!important}
.wallet-refresh-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;min-width:44px;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:650 12px/1.35 var(--body);cursor:pointer}
.wallet-refresh-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.wallet-refresh-button:disabled{cursor:default;opacity:.65}
.wallet-refresh-icon{display:block;flex:none;font:500 25px/1 var(--body)}.wallet-refresh-header .wallet-refresh-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wallet-refresh-feedback{margin:6px 0 0;color:var(--muted);font:400 12px/1.45 var(--body)}.wallet-refresh-feedback:empty{display:none}
.wallet-refresh-header .wallet-refresh-feedback{position:absolute;top:100%;right:0;z-index:40;width:min(260px,80vw);padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:0 8px 24px #0003}
.wallet-refresh-header[data-state="unavailable"] .wallet-refresh-feedback{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wallet-refresh-control[data-state="error"] .wallet-refresh-feedback{color:var(--danger,var(--ink))}.wallet-refresh-control[data-state="busy"] .wallet-refresh-icon{animation:wallet-balance-refresh-spin 1s linear infinite}
.wallet-refresh-header{display:none}.wallet-refresh-menu{display:block;width:100%}.wallet-refresh-menu .wallet-refresh-button{justify-content:flex-start;width:100%;padding:10px 12px;background:var(--raised)}.wallet-refresh-menu .wallet-refresh-feedback{padding-inline:3px}.wallet-refresh-menu .wallet-refresh-icon{display:none}@keyframes wallet-balance-refresh-spin{to{transform:rotate(360deg)}}
@media(min-width:901px){.wallet-view-shell{max-width:420px}}
@media(prefers-reduced-motion:reduce){.wallet-refresh-control[data-state="busy"] .wallet-refresh-icon{animation:none}}

/* The profile link and wallet picker share one frame, with independent actions. */
.wallet-view-shell{width:max-content;max-width:none}
.wallet-profile-box{display:flex;align-items:center;flex:0 0 auto;width:max-content;min-width:max-content;min-height:48px;border:0;border-radius:0;background:transparent;color:var(--ink)}
.wallet-profile-box:has(>#header-profile[hidden]){display:none}
body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-profile-box>.header-profile{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto;min-width:44px;width:max-content;max-width:none;min-height:46px;margin:0;padding:6px 4px 6px 8px;border:0;border-radius:8px;background:transparent;color:inherit;box-shadow:none}
.game-header#lobby-header .wallet-profile-box #header-usd-balance{flex:0 0 auto;min-width:max-content}
.game-header#lobby-header .wallet-profile-box #header-usd-total:not(.is-unavailable){flex:0 0 auto;min-width:max-content;max-width:none;overflow:visible;text-overflow:clip}
.wallet-profile-box .header-profile:focus-visible,.wallet-profile-box .wallet-view-control select:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.wallet-profile-box .header-usd-label{display:none!important}
.wallet-profile-box .lobby-currency-badge{display:none!important}
.wallet-profile-box .wallet-view-control{width:76px;min-width:76px;max-width:76px;align-self:stretch;border:0}
.wallet-profile-box .wallet-view-control select{display:block;width:100%;min-height:46px;height:100%;padding:7px 22px 7px 4px;border:0;border-radius:8px;background:transparent}
.wallet-profile-box .wallet-view-control select option{color:var(--ink);background:var(--surface)}
@media(max-width:900px){
 .wallet-profile-box{min-height:46px}
 body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-profile-box>.header-profile{min-height:44px;padding:5px 4px 5px 5px}
 .wallet-profile-box .wallet-view-control{width:72px;min-width:72px;max-width:72px}
 .wallet-profile-box .wallet-view-control select{width:100%;min-width:44px;min-height:44px;height:100%;padding:6px 22px 6px 4px;text-indent:0}
 html .wallet-profile-box .wallet-view-control::after{content:'';left:auto;right:15px;top:50%;width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-75%) rotate(45deg)}
}
@media(max-width:360px){body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-profile-box>.header-profile{padding-inline:3px}body[data-lobby-layout="reference"] .wallet-profile-box .lobby-currency-badge{display:none}.game-header#lobby-header .wallet-profile-box #header-usd-total:not(.is-unavailable){font-size:13px}}
@media(max-width:600px){
 :root body[data-lobby-layout="reference"]{--lobby-header-height:115px}
 :root body[data-game-ui="compact"][data-lobby-layout="reference"] .site-header.game-header#lobby-header{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px auto;min-height:115px;padding-block:8px;gap:8px}
 :root body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .brand{gap:8px}
 :root body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .brand>span{display:flex}
 :root body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .header-wallet{grid-column:2;grid-row:1}
 .wallet-view-shell{grid-column:1 / -1;grid-row:2;width:max-content;max-width:100%;justify-self:end}
}
@media(min-width:601px) and (max-width:900px){:root body[data-lobby-layout="reference"]{--lobby-header-height:67px}}

@media(max-width:600px){.wallet-profile-box{min-width:0}body[data-game-ui="compact"][data-lobby-layout="reference"] .game-header#lobby-header .wallet-profile-box>.header-profile{min-width:0;flex:0 1 auto}.wallet-profile-box .wallet-view-control{width:62px;min-width:62px;max-width:62px}}
@media(max-width:360px){.wallet-profile-box .wallet-view-control{width:56px;min-width:56px;max-width:56px}.wallet-profile-box #header-usd-total{font-size:12px!important}}

#header-usd-balance[data-balance-status="stale"]{position:relative}
#header-usd-balance .header-balance-status{position:absolute;top:calc(100% + 2px);inset-inline-end:0;color:var(--muted);font:500 9px/1.2 var(--body);white-space:nowrap;pointer-events:none}

#shared-wallet-notice { grid-column:1/-1; flex-basis:100%; max-width:360px; color:var(--muted); font:400 12px/1.5 var(--body); }
#shared-wallet-notice[hidden] { display:none!important; }
#shared-wallet-notice p { margin:0 0 8px; }
