.shop-trigger{border:0;border-radius:14px;background:#fff0bc;color:#967129;display:flex;align-items:center;gap:7px;padding:12px 14px;font-size:12px;font-weight:800;white-space:nowrap}.coin-symbol{display:inline-grid;place-items:center;width:21px;height:21px;border:2px solid #e8b341;background:#ffda71;border-radius:50%;color:#b47d23;font-size:12px;line-height:1}.profile-wallet{border:0;border-radius:12px;background:#fff0ba;color:#aa7f31;padding:11px 12px;margin-top:22px;display:flex;align-items:center;gap:7px;font-weight:800;font-size:11px;width:100%;justify-content:center}.profile-wallet>span:last-child{margin-left:auto;color:#ac8846;font-size:10px}.win-coins{color:#ffdf79;font:800 19px 'Outfit',sans-serif;margin:12px 0 23px}.win-coins:empty{display:none}#coin-shop{width:min(970px,calc(100% - 28px));max-height:92dvh;background:#f7f2ff;color:#3e2a60;border-radius:24px;padding:0;overflow:auto}.shop-head{display:flex;align-items:center;justify-content:space-between;padding:24px 28px;background:#eee5fb;border-bottom:1px solid #e3d6f2}.shop-head small{font-size:9px;color:#ad92c3;font-weight:800;letter-spacing:1.5px}.shop-head h2{font:800 30px 'Outfit',sans-serif;margin:4px 0 0;letter-spacing:-.8px}.shop-head-right{display:flex;gap:15px;align-items:center}.shop-balance{display:flex;align-items:center;gap:8px;background:#fff4cd;border:1px solid #edce7b;border-radius:13px;padding:11px 13px;color:#aa802d;font-size:13px;font-weight:800}.shop-close{border:0;border-radius:50%;width:32px;height:32px;background:#fff8;color:#987bb0;font-size:22px}.shop-layout{display:grid;grid-template-columns:220px 1fr}.shop-preview{padding:28px 22px;background:linear-gradient(#e7dcf8,#e1f4ed);text-align:center}.shop-preview .shop-avatar{width:150px;height:150px;margin:10px auto 18px}.shop-avatar svg{width:100%;height:100%}.shop-preview h3{font:800 24px 'Outfit',sans-serif;margin:12px 0 8px}.shop-preview p{font-size:11px;line-height:1.7;color:#987fab}.shop-preview small{font-size:9px;color:#ae95c1}.shop-preview button{border:0;border-radius:12px;background:#7b4cca;color:#fff;padding:12px 14px;font-size:11px;font-weight:800;width:100%;margin-top:15px}.shop-preview button:disabled{background:#d1c3e4;color:#9c83ae;cursor:default}.shop-reward{border-top:1px solid #cdbdde66;margin-top:25px;padding-top:20px}.shop-reward strong{display:block;color:#90723b;font:800 22px 'Outfit',sans-serif;margin:7px 0}.shop-reward a{color:#855bb5;font-size:11px;font-weight:700;text-underline-offset:3px}.shop-main{padding:24px;min-width:0}.shop-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:21px}.shop-tabs button{border:0;border-radius:18px;background:#eae0f6;color:#a182b6;padding:8px 13px;font-weight:800;font-size:11px}.shop-tabs button[aria-selected=true]{background:#7c50ca;color:#fff}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shop-item{padding:13px 10px 12px;background:#fff;border:2px solid transparent;border-radius:16px;text-align:center;position:relative;color:#60417c}.shop-item.selected{border-color:#b58ade}.shop-item .item-preview{display:block;width:100%;border:0;padding:0;background:none;color:inherit}.item-avatar{width:86px;height:86px;display:block;margin:0 auto 6px}.item-avatar svg{width:100%;height:100%}.shop-item b{font:700 13px 'Outfit',sans-serif;display:block}.item-category{font-size:8px;color:#b49ac7;display:block;margin:5px 0 12px;text-transform:uppercase;letter-spacing:.8px}.shop-item .item-buy{display:flex;justify-content:center;align-items:center;gap:5px;border:0;border-radius:9px;background:#fff0c3;color:#a17c31;font-size:11px;font-weight:800;padding:8px;width:100%}.shop-item .item-buy.owned{background:#e4f2eb;color:#64927b}.shop-item .item-buy:disabled{cursor:default;opacity:.7}.shop-item .coin-symbol{width:15px;height:15px;font-size:8px;border-width:1px}.shop-status{font-size:11px;line-height:1.6;color:#87669e;min-height:18px;margin:16px 0 0}.shop-empty{padding:30px 10px;color:#ae92bf;font-size:12px;grid-column:1/-1}.shop-trigger-text{font-size:11px}.profile-identity .profile-wallet .coin-symbol{flex-shrink:0}@media(max-width:1100px){.shop-trigger-text{display:none}.shop-trigger{padding:11px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}header{gap:12px}}@media(max-width:620px){.shop-trigger{padding:9px;gap:4px;font-size:10px}.shop-trigger .coin-symbol{width:17px;height:17px;font-size:9px}.play-header .session-label{display:none}.play-header .brand{font-size:23px}.play-header .back{font-size:9px}.play-header{gap:6px}.shop-head{padding:18px 16px}.shop-head h2{font-size:25px}.shop-head-right{gap:8px}.shop-balance{font-size:11px;padding:8px}.shop-balance .coin-symbol{width:17px;height:17px;font-size:10px}.shop-layout{grid-template-columns:1fr}.shop-preview{display:grid;grid-template-columns:85px 1fr;text-align:left;gap:0 15px;padding:17px}.shop-preview .shop-avatar{width:85px;height:85px;grid-row:span 3;margin:0}.shop-preview h3{font-size:19px;margin:5px 0}.shop-preview p{font-size:10px;margin:0}.shop-preview small{font-size:8px}.shop-preview>button{grid-column:1/-1;margin-top:12px}.shop-reward{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding-top:12px}.shop-reward strong{font-size:16px;margin:0}.shop-reward p{font-size:9px}.shop-reward a{margin-left:auto;font-size:10px}.shop-main{padding:17px}.shop-tabs{gap:5px;margin-bottom:15px}.shop-tabs button{font-size:10px;padding:7px 10px}.shop-grid{gap:10px}.shop-item{padding:10px 7px}.item-avatar{width:76px;height:76px}.shop-item b{font-size:12px}.profile-wallet{grid-column:2;margin-top:10px;width:auto;max-width:190px}.profile-wallet>span:last-child{display:none}}

/* Currency symbols remain aligned within reward text and buttons. */
.coin-symbol{vertical-align:middle}.shop-reward strong,.win-coins{align-items:center;gap:5px}

/* Keep category changes inside one frame; the partial third row invites scrolling. */
#coin-shop{--shop-row-height:184px;--shop-gap:12px;height:min(calc(224px + var(--shop-row-height) * 2.5 + var(--shop-gap) * 2),calc(100dvh - 32px));max-height:none;overflow:hidden;overflow:clip;outline:none;-webkit-user-select:none;user-select:none}
#coin-shop[open]{display:flex;flex-direction:column}
.shop-head{height:104px;flex:none}
.shop-layout{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);overflow:hidden;overflow:clip}
.shop-preview{min-height:0;overflow:hidden;overflow:clip}
.shop-main{display:flex;flex-direction:column;min-height:0;padding:20px 24px}
.shop-tabs{flex:none;height:32px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 0 16px}
.shop-tabs::-webkit-scrollbar{display:none}
.shop-tabs button{flex:none;white-space:nowrap}
.shop-grid{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9b3e6 transparent;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:var(--shop-row-height);align-content:start;gap:var(--shop-gap)}
.shop-grid:focus{outline:none}

.shop-item{height:var(--shop-row-height);display:flex;flex-direction:column;padding:12px 10px}
.shop-item .item-preview{flex:1;min-height:0}
.item-avatar{width:76px;height:76px;margin-bottom:5px}
.shop-item b{line-height:16px}
.item-category{line-height:10px;margin:4px 0 8px}
.shop-item .item-buy{flex:none;height:31px;padding:7px}
.shop-status{flex:none;height:20px;min-height:0;overflow:hidden;margin:12px 0 0;line-height:20px;white-space:nowrap;text-overflow:ellipsis}
@media(min-width:621px) and (max-height:650px){
 .shop-preview{padding:16px}
 .shop-preview .shop-avatar{width:80px;height:80px;margin:0 auto 8px}
 .shop-preview h3{font-size:18px;line-height:22px;margin:6px 0}
 .shop-preview>p,.shop-preview>small,.shop-reward p{display:none}
 .shop-preview>button{padding:10px;margin-top:10px}
 .shop-reward{margin-top:12px;padding-top:10px}
 .shop-reward strong{font-size:15px;margin:0 0 6px}
}
@media(min-width:621px) and (max-height:480px){.shop-preview .shop-avatar{display:none}}
@media(max-width:800px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){
 #coin-shop{--shop-row-height:164px;--shop-gap:10px;height:min(calc(320px + var(--shop-row-height) * 2.5 + var(--shop-gap) * 2),calc(100dvh - 24px))}
 .shop-head{height:84px;padding:14px 16px}
 .shop-head h2{font-size:24px}
 .shop-layout{grid-template-rows:128px minmax(0,1fr)}
 .shop-preview{grid-template-columns:64px minmax(0,1fr);grid-template-rows:22px 12px 30px 1fr;gap:4px 12px;padding:12px 14px}
 .shop-preview .shop-avatar{width:64px;height:64px;grid-column:1;grid-row:1/4;margin:0}
 .shop-preview h3{grid-column:2;grid-row:1;font-size:17px;line-height:22px;margin:0;white-space:nowrap}
 .shop-preview>p,.shop-reward p{display:none}
 .shop-preview>small{grid-column:2;grid-row:2;line-height:12px}
 .shop-preview>button{grid-column:2;grid-row:3;margin:0;padding:5px 8px;line-height:20px;font-size:10px}
 .shop-preview>button .coin-symbol{width:17px;height:17px;font-size:9px}
 .shop-reward{grid-column:1/-1;grid-row:4;flex-wrap:nowrap;justify-content:space-between;margin:2px 0 0;padding-top:5px}
 .shop-reward strong{font-size:12px;line-height:20px;margin:0;white-space:nowrap}
 .shop-reward .coin-symbol{width:16px;height:16px;font-size:8px}
 .shop-reward a{font-size:10px;white-space:nowrap}
 .shop-main{padding:14px}
 .shop-item{padding:9px 7px}
 .item-avatar{width:64px;height:64px;margin-bottom:3px}
 .item-category{margin:3px 0 6px}
}

/* Keep prices visible in every ownership state and allow status messages to wrap. */
#coin-shop{--shop-row-height:210px}.item-state{display:block;font-size:10px;line-height:15px;color:#806136;margin:3px 0 8px}.shop-item .item-buy{height:auto;min-height:44px}.shop-preview .shop-price{font-size:13px;font-weight:800;color:#76542c;line-height:1.4}.shop-preview .shop-needed{font-size:11px;line-height:1.5;color:#6b527e}.shop-status{height:auto;min-height:20px;white-space:normal;overflow:visible;line-height:1.5}.shop-preview{overflow:auto}.shop-preview button:focus-visible,.shop-item button:focus-visible{outline:3px solid #40236d;outline-offset:2px}
.shop-preview .shop-price,.shop-preview .shop-needed{display:block}
.shop-preview>button,.shop-tabs button{min-height:44px}.shop-tabs{height:auto;min-height:44px}
@media(max-width:620px){#coin-shop{--shop-row-height:205px}.shop-preview{display:block}.shop-preview .shop-avatar{float:left;width:64px;height:64px;margin:0 12px 6px 0}.shop-preview h3{font-size:18px}.shop-preview>small{display:none}.shop-preview .shop-needed{clear:both}.shop-preview>button{margin-top:8px;min-height:44px}.shop-layout{grid-template-rows:auto minmax(0,1fr)}.shop-preview{max-height:230px;padding:12px 16px}.shop-preview .shop-reward{display:none}}
@media(max-height:500px){#coin-shop[open]{height:calc(100dvh - 20px);overflow:auto;display:block}.shop-head{height:auto;min-height:66px}.shop-layout{display:block;overflow:visible}.shop-preview{max-height:none;overflow:visible;display:block;text-align:left;padding:12px 18px}.shop-preview .shop-avatar{display:block;float:left;width:58px;height:58px;margin:0 12px 5px 0}.shop-preview .shop-price,.shop-preview .shop-needed{display:block}.shop-preview>button{width:auto;margin-top:7px}.shop-reward{display:none}.shop-main{display:block}.shop-tabs{height:auto;min-height:44px;flex-wrap:wrap;overflow:visible}.shop-grid{overflow:visible;grid-auto-rows:210px}.shop-status{margin-bottom:8px}}
