/* Account shop only. The dialog is a top layer and never participates in game canvas layout. */
.ua-shop{box-sizing:border-box;position:fixed;inset:0;width:min(1720px,calc(100vw - 32px));max-width:none;height:min(920px,calc(100dvh - 32px));max-height:none;margin:auto;padding:0;border:1px solid #5b7577;border-radius:18px;color:var(--ua-text);background:#050d11;box-shadow:0 24px 100px #000d;font-family:Arial,sans-serif;overflow:hidden}
.ua-shop *, .ua-shop *::before,.ua-shop *::after{box-sizing:border-box}
.ua-shop::backdrop{background:#000d;backdrop-filter:blur(8px)}
.ua-shop-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-width:0;background:radial-gradient(ellipse at 65% 7%,#113137 0,transparent 50%),#050d11}
.ua-shop-top{display:flex;align-items:center;gap:20px;min-height:90px;padding:14px clamp(18px,2.5vw,42px);border-bottom:1px solid #536b68;background:linear-gradient(100deg,#0b191e,#101e20 50%,#0a1418)}
.ua-shop-brand{display:flex;align-items:center;gap:16px;min-width:0;font:italic 900 clamp(18px,2vw,32px)/.9 var(--ua-display);letter-spacing:.02em;white-space:nowrap}
.ua-shop-brand b{color:var(--ua-lime)}
.ua-shop-brand small{display:block;margin-top:7px;color:var(--ua-muted);font:700 10px/1.2 Arial,sans-serif;letter-spacing:.24em}
.ua-shop-slashes{display:block;flex:none;width:52px;height:29px;transform:skewX(-24deg);background:repeating-linear-gradient(90deg,var(--ua-lime) 0 11px,transparent 11px 18px)}
.ua-shop-account{display:grid;gap:4px;margin-left:auto;padding:10px 18px;min-width:160px;max-width:35%;border:1px solid #57716d;border-radius:10px;background:#071318;text-align:right}
.ua-shop-account-label,.ua-shop-account-state{font-size:10px;letter-spacing:.12em;color:var(--ua-muted)}
.ua-shop-account strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
.ua-shop-account-state{color:var(--ua-lime)}
.ua-shop-close{flex:none;width:48px;height:48px;border:1px solid #6b7c7d;border-radius:10px;background:#111d22;color:#eef7f4;font-size:22px;cursor:pointer}
.ua-shop-body{display:grid;grid-template-columns:minmax(205px,20%) minmax(300px,1fr) minmax(340px,35%);gap:clamp(12px,1.3vw,24px);min-height:0;padding:clamp(12px,1.3vw,24px);overflow:hidden}
.ua-shop-eyebrow{display:flex;justify-content:space-between;gap:10px;margin:0 0 20px;color:var(--ua-lime);font:700 10px/1.4 Arial,sans-serif;letter-spacing:.18em}
.ua-shop-eyebrow span{color:#87a1a5}
.ua-shop-categories,.ua-shop-catalog,.ua-shop-preview{min-width:0;min-height:0}
.ua-shop-categories{display:flex;flex-direction:column;gap:8px;padding:20px 14px;border:1px solid #394e52;border-radius:12px;background:linear-gradient(155deg,#17262ac7,#071014ed);overflow:auto}
.ua-shop-categories button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:51px;padding:10px 12px;border:1px solid #44595b;border-radius:7px;background:#09161ac7;color:#c9d7d6;font:italic 700 13px var(--ua-display);text-align:left;cursor:pointer}
.ua-shop-categories button span{color:var(--ua-cyan)}
.ua-shop-categories button.selected{color:#141b08;border-color:var(--ua-lime);background:linear-gradient(105deg,var(--ua-lime),#84af24);box-shadow:0 0 19px #ccff2355}
.ua-shop-categories button.selected span{color:#202d06}
.ua-shop-side-note{margin-top:auto;padding:18px 8px 4px;border-top:1px solid #3e5758;color:var(--ua-lime);font-size:11px;letter-spacing:.08em}
.ua-shop-side-note small{display:block;margin-top:7px;color:var(--ua-muted);font-size:11px;line-height:1.4;letter-spacing:0}
.ua-shop-status-dot{display:inline-block;width:6px;height:6px;margin-right:8px;border-radius:50%;background:var(--ua-lime);box-shadow:0 0 10px var(--ua-lime)}
.ua-shop-catalog{overflow:auto;padding:20px 4px 12px}
.ua-shop-catalog h1{margin:0;font:italic 900 clamp(40px,5vw,76px)/.9 var(--ua-display);text-transform:uppercase;letter-spacing:-.025em}
.ua-shop-title-mark{color:var(--ua-lime);font-size:.65em}
.ua-shop-subtitle{margin:14px 0 26px;color:var(--ua-muted);font-size:14px}
.ua-shop-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ua-shop-card{display:grid;grid-template-rows:minmax(140px,1fr) auto;min-width:0;min-height:252px;padding:0;overflow:hidden;border:1px solid #526a6d;border-radius:12px;background:#0b171c;color:var(--ua-text);text-align:left;cursor:pointer}
.ua-shop-card.selected{border-color:var(--ua-lime);box-shadow:0 0 0 1px #caff2855,0 0 22px #caff2822}
.ua-shop-card-art{position:relative;display:grid;place-items:center;min-height:140px;background:radial-gradient(circle at 50% 55%,#1c4852,#0d1a22 55%,#071013 80%)}
.ua-shop-card-art::before{content:'';position:absolute;width:86px;height:86px;border:3px solid var(--ua-lime);border-radius:24px;transform:rotate(-10deg);box-shadow:0 0 12px var(--ua-lime),inset 0 0 15px #49e9ef80}
.ua-shop-card-art svg{position:relative;width:52px;height:52px;fill:none;stroke:#dcfaff;stroke-width:1.5}
.ua-shop-card-info{display:grid;gap:8px;padding:14px;border-top:1px solid #456166}
.ua-shop-card-info strong{font:italic 800 18px var(--ua-display)}
.ua-shop-card-info small{color:var(--ua-muted);font-size:11px;line-height:1.4}
.ua-shop-card-info em{color:var(--ua-lime);font:700 11px Arial,sans-serif;letter-spacing:.1em}
.ua-shop-empty{grid-column:1/-1;padding:28px;border:1px dashed #476065;border-radius:10px;color:var(--ua-muted);line-height:1.6}
.ua-shop-preview{display:flex;flex-direction:column;gap:0;overflow:auto;padding:20px;border:1px solid #657d80;border-top:2px solid var(--ua-lime);border-radius:12px;background:linear-gradient(150deg,#25353ba8,#071115f4 52%,#0c1a1eed)}
.ua-shop-preview-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;flex:none;min-height:clamp(200px,30vh,340px);overflow:hidden;border:1px solid #46737a;border-radius:9px;background:radial-gradient(circle at 50% 36%,#195467aa,transparent 54%),linear-gradient(#071318,#0b1e23)}
.ua-shop-stage-grid{position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 39px,#50e1ec0d 40px),repeating-linear-gradient(90deg,transparent 0 39px,#50e1ec0d 40px)}
.ua-shop-preview-avatar{position:relative;display:grid;place-items:center;width:110px;height:110px;border:2px solid var(--ua-lime);border-radius:29px;background:#05151bc9;box-shadow:0 0 0 3px #00c8ff,0 0 30px #b9ff2299,inset 0 0 18px #00d5ff55}
.ua-shop-preview-avatar svg{width:66px;height:66px;stroke:#ecfafd;stroke-width:1.5;fill:none}
.ua-shop-preview-stage.no-frame .ua-shop-preview-avatar{border-color:#698185;box-shadow:none}
.ua-shop-preview-name{position:relative;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:italic 800 19px var(--ua-display)}
.ua-shop-stage-caption{position:absolute;bottom:13px;color:#9aafb4;font-size:9px;letter-spacing:.16em}
.ua-shop-product-meta{padding:20px 2px 0}
.ua-shop-badge{display:inline-block;padding:7px 10px;border:1px solid #83ad4e;border-radius:4px;color:var(--ua-lime);font:700 10px Arial,sans-serif;letter-spacing:.12em}
.ua-shop-badge.pending{border-color:#67777a;color:#c1cbcb}
.ua-shop-product-meta h2{margin:14px 0 8px;font:italic 900 clamp(24px,2vw,33px) var(--ua-display)}
.ua-shop-product-meta p{margin:0;color:var(--ua-muted);font-size:13px;line-height:1.55}
.ua-shop-price{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:20px;padding:15px 0;border-top:1px solid #425b5f}
.ua-shop-price span{color:var(--ua-muted);font-size:10px;letter-spacing:.15em}
.ua-shop-price strong{color:var(--ua-lime);font-size:17px}
.ua-shop-product-meta .ua-shop-message{min-height:18px;margin:0 0 8px;color:#ffbdbd}
.ua-shop-primary{width:100%;min-height:52px;border:1px solid var(--ua-lime);border-radius:7px;background:linear-gradient(110deg,#d3ff23,#91be1f);color:#101808;font:italic 900 18px var(--ua-display);cursor:pointer}
.ua-shop-primary:disabled{opacity:.55;cursor:not-allowed}
.ua-shop-product-meta .ua-shop-disclaimer{margin-top:12px;font-size:11px}
.ua-shop-bottom{display:flex;align-items:center;gap:20px;min-height:70px;padding:10px clamp(18px,2.5vw,42px);border-top:1px solid #536b68;background:#0a171b;color:var(--ua-muted);font-size:12px}
.ua-shop-bottom>span:first-child{color:var(--ua-text);font-weight:800;letter-spacing:.14em}
.ua-shop-bottom b{margin-left:8px;color:var(--ua-lime)}
.ua-shop-bottom button{margin-left:auto;min-height:44px;padding:8px 18px;border:1px solid var(--ua-cyan);border-radius:7px;background:#10252b;color:var(--ua-text);font-weight:800;cursor:pointer}
.ua-shop-bottom button span{color:var(--ua-lime);margin-left:18px}
.ua-shop :is(button):focus-visible{outline:2px solid var(--ua-cyan);outline-offset:3px}
.ua-shop :is(button):hover:not(:disabled){filter:brightness(1.14)}
@media(max-width:1100px){.ua-shop-body{grid-template-columns:minmax(175px,22%) minmax(260px,1fr) minmax(290px,34%);gap:10px}.ua-shop-categories button{font-size:11px;padding:8px}.ua-shop-preview{padding:14px}.ua-shop-products{grid-template-columns:1fr}}
@media(max-width:700px){.ua-shop{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.ua-shop-top{min-height:69px;padding:max(10px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left));gap:8px}.ua-shop-brand{font-size:17px}.ua-shop-slashes{width:28px;height:20px;background:repeating-linear-gradient(90deg,var(--ua-lime) 0 6px,transparent 6px 10px)}.ua-shop-brand small{font-size:8px}.ua-shop-account{min-width:0;max-width:42%;padding:6px 7px}.ua-shop-account-label{display:none}.ua-shop-account strong{font-size:12px}.ua-shop-account-state{font-size:9px}.ua-shop-close{width:44px;height:44px}.ua-shop-body{display:flex;flex-direction:column;gap:10px;padding:12px max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left));overflow:auto}.ua-shop-categories{display:block;flex:none;padding:10px;overflow:visible}.ua-shop-categories .ua-shop-eyebrow{margin:0 0 8px}.ua-shop-categories button{display:inline-flex;width:auto;min-height:44px;margin:3px 4px 3px 0;font-size:11px;white-space:nowrap}.ua-shop-categories{white-space:normal}.ua-shop-categories button span,.ua-shop-side-note{display:none}.ua-shop-catalog{flex:none;overflow:visible;padding:12px 2px}.ua-shop-catalog h1{font-size:43px}.ua-shop-subtitle{margin:9px 0 16px}.ua-shop-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ua-shop-card{min-height:190px;grid-template-rows:minmax(96px,1fr) auto}.ua-shop-card-art{min-height:96px}.ua-shop-card-art::before{width:63px;height:63px;border-radius:17px}.ua-shop-card-art svg{width:39px;height:39px}.ua-shop-card-info{padding:10px;gap:5px}.ua-shop-card-info strong{font-size:15px}.ua-shop-preview{flex:none;overflow:visible;padding:14px}.ua-shop-preview .ua-shop-eyebrow{margin-bottom:10px}.ua-shop-preview-stage{min-height:175px}.ua-shop-preview-avatar{width:74px;height:74px;border-radius:19px}.ua-shop-preview-avatar svg{width:45px}.ua-shop-preview-name{font-size:16px}.ua-shop-product-meta{padding-top:14px}.ua-shop-bottom{min-height:62px;padding:8px max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));gap:8px}.ua-shop-bottom>span:nth-child(2){display:none}.ua-shop-bottom button{padding:8px 10px;font-size:11px}}
@media(max-width:450px){.ua-shop-products{grid-template-columns:1fr}.ua-shop-card{min-height:122px;grid-template-columns:110px 1fr;grid-template-rows:auto}.ua-shop-card-art{min-height:122px}.ua-shop-brand small{letter-spacing:.08em}}
@media(max-height:520px) and (orientation:landscape){.ua-shop-top{min-height:56px;padding-top:5px;padding-bottom:5px}.ua-shop-body{display:grid;grid-template-columns:150px minmax(170px,1fr) minmax(210px,38%);overflow:hidden;padding:8px}.ua-shop-categories{overflow:auto}.ua-shop-categories button{display:flex;width:100%;min-height:38px}.ua-shop-catalog,.ua-shop-preview{overflow:auto}.ua-shop-catalog h1{font-size:34px}.ua-shop-preview-stage{min-height:140px}.ua-shop-bottom{min-height:48px}.ua-shop-products{grid-template-columns:1fr}.ua-shop-card{min-height:130px}}
@media(max-height:850px) and (min-width:701px){.ua-shop-categories{gap:6px}.ua-shop-categories button{min-height:44px}.ua-shop-side-note{padding-top:9px}.ua-shop-preview-stage{min-height:clamp(160px,24vh,220px)}.ua-shop-preview-avatar{width:80px;height:80px;border-radius:21px}.ua-shop-preview-avatar svg{width:48px;height:48px}.ua-shop-preview-name{font-size:16px}.ua-shop-product-meta{padding-top:12px}.ua-shop-product-meta h2{margin:9px 0 6px}.ua-shop-price{margin-top:12px;padding:10px 0}.ua-shop-primary{min-height:46px}.ua-shop-product-meta .ua-shop-disclaimer{margin-top:6px}}
@media(max-height:520px) and (orientation:landscape){.ua-shop-categories .ua-shop-eyebrow span{display:none}.ua-shop-preview-stage{min-height:148px}.ua-shop-preview-avatar{width:60px;height:60px;border-radius:16px}.ua-shop-preview-avatar svg{width:38px;height:38px}.ua-shop-preview-name{font-size:13px;margin-bottom:13px}.ua-shop-stage-caption{bottom:5px;font-size:7px}.ua-shop-product-meta h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.ua-shop::backdrop{backdrop-filter:none}}
/* Override the generic menu-dialog dimensions without changing the renderer. */
.arena-host dialog.ua-shop{width:min(1720px,calc(100vw - 32px));max-width:none;height:min(920px,calc(100dvh - 32px));max-height:none;padding:0;overflow:hidden;background:#050d11;box-shadow:0 24px 100px #000d}
@media(max-width:700px){.arena-host dialog.ua-shop{width:100vw;height:100dvh;max-height:none;border-radius:0}}
/* V2: bounded identity, explicit touch detail surface and persistent navigation. */
.ua-profile-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.ua-profile-header{grid-column:1/-1;display:flex;align-items:center;gap:16px;padding:18px;border:1px solid #527276;border-radius:12px;background:#091b21}
.ua-profile-avatar{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border:1px solid #69858a;border-radius:17px;background:#041117}
.ua-profile-avatar svg{width:38px;height:38px;fill:currentColor;stroke:none}
.ua-profile-avatar.neon{border-color:var(--ua-lime);box-shadow:0 0 0 2px var(--ua-cyan),0 0 18px #caff2855}
.ua-profile-header>div{min-width:0}.ua-profile-header strong{display:block;font:italic 800 24px var(--ua-display);overflow-wrap:anywhere}.ua-profile-header small{display:block;margin-top:8px;font-size:10px;letter-spacing:.08em;color:var(--ua-lime)}
.ua-profile-stat{padding:14px;border:1px solid #38565e;border-radius:9px;min-width:0;background:#08151b}.ua-profile-stat small{font-size:10px;letter-spacing:.1em;color:var(--ua-cyan)}.ua-profile-stat p{overflow-wrap:anywhere;margin:8px 0 0;font-size:13px;line-height:1.5}
.ua-profile-panel .shop-action{margin:0;min-height:48px;cursor:pointer}.ua-profile-logout{border-color:#b85b66;background:#30151c}
.arena-host #menu-dialog:has(.ua-profile-panel){width:min(660px,calc(100vw - 24px));padding:24px;max-height:calc(100dvh - 24px);overflow:auto;scroll-padding:20px}
#menu-dialog:has(.ua-profile-panel) .dialog-close{position:sticky;float:right;top:0;border:1px solid #69858a;border-radius:8px;background:#102229;z-index:2;min-width:44px;min-height:44px}
#ua-shop-detail-back{display:none;min-height:44px;border:1px solid #52767e;border-radius:8px;background:#10262e;color:#e9faff;font-weight:700;padding:10px;cursor:pointer}
.ua-shop-categories button{flex-shrink:0;min-height:44px}.ua-shop-card{min-height:160px}.ua-shop-brand{white-space:normal}.ua-shop-brand small{line-height:1.4}
@media(max-width:900px){
 .arena-host dialog.ua-shop{width:100vw;height:100dvh;border-radius:0;border:0}
 .ua-shop-top{min-height:72px;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));gap:10px}
 .ua-shop-brand{font-size:16px;gap:8px;flex:1}.ua-shop-brand small{font-size:8px;letter-spacing:.08em}.ua-shop-slashes{width:25px;height:19px;background:repeating-linear-gradient(90deg,var(--ua-lime) 0 6px,transparent 6px 10px)}
 .ua-shop-account{min-width:0;max-width:32%;padding:7px}.ua-shop-account-label{display:none}.ua-shop-account strong{font-size:12px}.ua-shop-account-state{font-size:8px;letter-spacing:0}.ua-shop-close{width:44px;height:44px}
 .ua-shop-body{display:flex;flex-direction:column;padding:12px;overflow:auto;gap:12px;position:relative}
 .ua-shop-categories{position:sticky;top:0;z-index:2;display:flex;flex-flow:row nowrap;flex:none;gap:8px;padding:8px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;background:#0a191f;border-radius:10px;min-height:62px}
 .ua-shop-categories .ua-shop-eyebrow,.ua-shop-side-note{display:none}.ua-shop-categories button{display:flex;flex:none;width:auto;min-height:44px;margin:0;padding:10px 14px;font-size:12px}.ua-shop-categories button span{display:none}
 .ua-shop-catalog{overflow:visible;flex:none;padding:10px 2px}.ua-shop-catalog h1{font-size:34px;line-height:1.05}.ua-shop-eyebrow{font-size:9px;letter-spacing:.1em;margin-bottom:12px}.ua-shop-subtitle{font-size:13px;margin:10px 0 18px}
 .ua-shop-products{grid-template-columns:repeat(2,minmax(0,1fr))}.ua-shop-card{display:grid;grid-template-columns:1fr;grid-template-rows:120px auto;min-height:210px}.ua-shop-card-art{min-height:120px}.ua-shop-card-info{padding:12px}.ua-shop-card-info strong{font-size:18px}
 .ua-shop-preview{display:none}.ua-shop.show-detail .ua-shop-categories,.ua-shop.show-detail .ua-shop-catalog{display:none}
 .ua-shop.show-detail .ua-shop-preview{display:flex;flex:1;min-height:min-content;overflow:visible;padding:14px}.ua-shop.show-detail #ua-shop-detail-back{display:block;position:sticky;top:0;z-index:3;margin-bottom:14px}
 .ua-shop-preview-stage{min-height:180px;gap:12px}.ua-shop-preview-avatar{width:76px;height:76px;border-radius:20px}.ua-shop-preview-avatar svg{width:44px;height:44px}.ua-shop-preview-name{font-size:16px;margin:0}.ua-shop-stage-caption{font-size:8px;bottom:8px}
 .ua-shop-product-meta h2{font-size:25px}.ua-shop-bottom{min-height:62px;padding:8px 12px max(8px,env(safe-area-inset-bottom));gap:8px}.ua-shop-bottom>span:nth-child(2){display:none}.ua-shop-bottom button{min-height:44px}
}
@media(max-width:450px){.ua-shop-brand{font-size:13px}.ua-shop-brand small{font-size:7px}.ua-shop-account{max-width:29%}.ua-shop-products{grid-template-columns:1fr}.ua-shop-card{grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto;min-height:140px}.ua-shop-card-art{min-height:140px}.ua-profile-panel{grid-template-columns:1fr}.ua-profile-header strong{font-size:21px}.ua-profile-header{padding:12px;gap:12px}.arena-host #menu-dialog:has(.ua-profile-panel){padding:16px}.ua-profile-avatar{flex-basis:52px;width:52px;height:52px}.ua-profile-avatar svg{width:32px;height:32px}}
@media(max-height:520px) and (max-width:900px){.ua-shop-top{min-height:62px}.ua-shop-preview-stage{min-height:160px}.ua-shop-bottom{min-height:54px}.ua-shop-brand small{display:none}}
