/* Final responsive layout for the open Character Studio storefront. */
/* Decorative lighting stays inside its section; no page-width clipping needed. */
body{overflow-x:visible}
#signature-looks:before{left:18%;right:0}
.showcase.panel:before{left:0;right:0}
.coin-pack:after,.item-card:before{pointer-events:none}
.header{position:relative;top:auto}
/* Retain the glass treatment without pinning a two-row header over products. */
#coin-shop[hidden],#extra-plays[hidden],#get-coins-link[hidden],#coin-shop-shortcut[hidden]{display:none!important}
.studio-layout>*{min-width:0}
#extra-plays{grid-template-columns:minmax(0,1fr) auto}
#extra-plays h3{grid-column:1/-1}
#extra-plays label{grid-column:1/-1}
#extra-plays select{grid-column:1;min-width:0;width:100%;margin:0}
#extra-plays button{grid-column:2;align-self:stretch}
#play-status{grid-column:1/-1;margin:0}
.coin-packs{scrollbar-width:thin;scrollbar-color:#8298b8 #112037}
.coin-packs::-webkit-scrollbar{display:block;height:4px}
.coin-packs::-webkit-scrollbar-thumb{background:#8298b8;border-radius:8px}
.shop-tabs{scrollbar-width:thin;scrollbar-color:#52788e transparent}
.shop-tabs::-webkit-scrollbar{display:block;height:3px}
.shop-tabs::-webkit-scrollbar-thumb{background:#52788e;border-radius:8px}
.shop-tabs button,.look-card button,.item-card button,.focus-controls button{min-height:44px!important}
.shop-filters .free-filter,.shop-toolbar .free-filter{min-height:44px}
input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;flex:none}
#shop-search,#email,#password{font-size:16px}
.item-card{display:flex;flex-direction:column}
.item-card .item-art{flex:none}
.item-card .preview-item{margin-top:auto}
.item-card button.buy:disabled{box-shadow:none}
#featured-looks .look-copy{overflow-wrap:break-word}
/* Do not attach hover movement to a finger resting on a product card. */
@media(hover:none),(pointer:coarse){
 #featured-looks .look-card:hover,.item-card:hover,.coin-pack:hover,#featured-looks button:hover:not(:disabled){transform:none}
}
@media(max-width:680px){
 .header{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:12px}
 .page-title{display:block;min-height:0;padding:12px 0 16px;margin:4px 0 12px}
 .page-title h1{font-size:36px!important;letter-spacing:-1.5px;line-height:1.05}
 .page-title>p{display:none}
 .page-title .eyebrow{margin-bottom:8px}
 .studio-shortcuts{margin:10px 0 22px;gap:7px}
 .studio-shortcuts a{font-size:11px;min-height:44px}
 #signature-looks h2{font-size:26px;letter-spacing:-.8px}
 #signature-looks:before{left:10%;right:0}
 .showcase.panel:before{left:0;right:0}
 #featured-looks .look-card{grid-template-columns:110px minmax(0,1fr);gap:10px;padding:14px}
 #featured-looks .look-art{height:220px}
 #featured-looks .look-edition{font-size:9px}
 #featured-looks .look-detail{font-size:11px;line-height:1.5}
 #featured-looks .look-description{font-size:12px}
 .coin-shop h2{font-size:27px;line-height:1.1}
 .coin-pack{flex-basis:78vw;max-width:290px;min-height:162px}
 #extra-plays{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}
 #extra-plays h3{font-size:17px}
 #extra-plays button{width:auto;font-size:12px;padding:10px 12px}
 #extra-plays select{font-size:16px;padding:10px}
 .shop-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 .shop-toolbar>*{min-width:0}
 .shop-toolbar select{max-width:100%}
 .shop .collection-note{margin-bottom:12px}
}
@media(max-width:360px){
 .page-title h1{font-size:32px!important}
 #featured-looks .look-card{grid-template-columns:88px minmax(0,1fr);gap:9px;padding:12px}
 #featured-looks .look-art{height:210px}
 #featured-looks h3{font-size:17px}
 #featured-looks .look-detail{font-size:10px}
 .shop-toolbar{grid-template-columns:minmax(0,1fr)!important}
}

/* Return to the item you tried on without losing your browsing position. */
.back-to-collection{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:48px;margin:14px 0 8px;padding:12px 16px;border:1px solid #4a9dba;border-radius:14px;background:linear-gradient(110deg,#17394a,#142537);color:#bcf5ff;font-size:14px;font-weight:750;cursor:pointer}
.back-to-collection[hidden]{display:none}
.back-to-collection:focus-visible{outline:2px solid #8cebd8;outline-offset:4px}
.back-to-collection span{font-size:22px;line-height:1}
.item-card{scroll-margin-top:24px}

/* Finish the wallet and collection with readable comparisons and ownership. */
.coin-pack{display:flex;flex-direction:column;gap:0;min-width:0;padding:22px}
.pack-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-height:40px;margin-bottom:18px}
.pack-heading h3{margin:0;color:#e6eefb;font-size:14px;font-weight:750;letter-spacing:.1px}
.pack-value{display:inline-flex;padding:5px 8px;border-radius:999px;background:#b6f4d9;color:#102b23;font-size:10px;font-weight:850;white-space:nowrap}
.coin-pack.best-value{box-shadow:inset 0 0 0 1px #9ee4c955,0 16px 36px #0004;background:radial-gradient(ellipse at 100% 0,#38857155,transparent 65%),linear-gradient(145deg,#1d3537,#121d2d 70%)}
.coin-pack .coin-amount{font-size:36px;line-height:1.1;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.coin-pack>p{margin:7px 0;color:#c3cee0}
.coin-pack .pack-rate{margin:6px 0 20px;color:#b4c6dc;font-size:12px;font-variant-numeric:tabular-nums}
.coin-pack button{margin-top:auto;min-height:48px;font-size:14px}
.coin-pack button:disabled{opacity:1;color:#c4cbd6;background:#243043;box-shadow:inset 0 0 0 1px #65768c55;cursor:not-allowed}
.browse-unlocks{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;width:fit-content;max-width:100%;margin:18px 0 0;padding:11px 17px;border-radius:999px;background:#13323e;color:#a3f2ee;font-size:13px;font-weight:750}
.browse-unlocks span{font-size:21px}
.browse-unlocks:focus-visible{outline:2px solid #8cebd8;outline-offset:4px}
.shop-reassurance{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:11px;color:#afc9d7}
.shop-reassurance span:first-child{color:#99e7d7}
.item-card.is-equipped{box-shadow:inset 0 0 0 1px #79dbc66b,0 12px 28px #0003}
.item-card.is-owned .item-ownership{color:#a0ebd7}
.item-card .item-ownership{min-height:24px;margin-top:4px;margin-bottom:12px;font-weight:750;font-variant-numeric:tabular-nums}
.item-card button.equipped{opacity:1;background:#153632;color:#a6ebd5;border-color:#3c7469}
@media(max-width:680px){
 .coin-pack{min-height:238px}
 .pack-heading{margin-bottom:15px}
 .coin-pack .coin-amount{font-size:34px!important}
 .coin-pack .pack-rate{margin:8px 0 17px}
 .browse-unlocks{width:100%;font-size:12px}
 .shop-grid{gap:10px}
 .item-card h3{line-height:1.35;min-height:38px}
 .item-card .item-ownership{font-size:11px;line-height:1.5}
}

/* Showroom pass: tighter rhythm, larger artwork, and one bottom-nav allowance. */
body{background:radial-gradient(ellipse at 0 0,#12445566,transparent 42rem),radial-gradient(ellipse at 100% 24%,#40267444,transparent 40rem),#070e1b}
main{padding-bottom:20px}
body.has-app-nav{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
.public-footer{margin-bottom:0;padding-bottom:0!important}
.header{gap:14px;background:#081321e8}
.brand small{letter-spacing:3px;color:#96aec7}
.page-title{padding:18px 0;min-height:0}
.page-title .eyebrow{color:#99d6de;letter-spacing:2px}
.page-title h1{font-size:clamp(38px,4.8vw,58px);letter-spacing:-2px}
.page-title h1 span{background:linear-gradient(95deg,#5ce9ee,#8dbeff 68%,#b09aff);background-clip:text;-webkit-background-clip:text}
.studio-shortcuts a{border-radius:14px}
#signature-looks{margin-bottom:20px}
#featured-looks .look-card{border-radius:24px;position:relative}
#featured-looks .look-art{background:radial-gradient(ellipse at 50% 58%,color-mix(in srgb,var(--look-accent) 24%,transparent),transparent 67%)}
#featured-looks .look-art:before{content:"";position:absolute;inset:22% 5% 16%;border:1px solid color-mix(in srgb,var(--look-accent) 20%,transparent);border-radius:50%;transform:rotate(-18deg);pointer-events:none}
#featured-looks .look-art .character{filter:drop-shadow(0 12px 12px #0006)}
#featured-looks .look-detail{margin-bottom:8px}
.look-progress{display:flex;gap:4px;margin:0 0 14px}
.look-progress span{flex:1;height:3px;border-radius:3px;background:#ffffff1f}
.look-progress .owned{background:var(--look-accent);box-shadow:0 0 7px color-mix(in srgb,var(--look-accent) 25%,transparent)}
#featured-looks button{border-radius:12px;background:color-mix(in srgb,var(--look-accent) 13%,transparent)}
.coin-shop.panel{padding-top:22px;padding-bottom:22px;margin-bottom:22px}
.coin-pack{border-radius:20px!important;isolation:isolate}
.coin-pack:after{content:"◈";width:auto;height:auto;right:10px;top:22px;bottom:auto;background:none;font-size:115px;line-height:1;color:#ffe0a0;opacity:.075;transform:rotate(-12deg);z-index:-1}
.pack-heading{margin-bottom:10px;min-height:28px}
.coin-pack .pack-rate{margin-bottom:14px}
.coin-pack button{border-radius:12px;box-shadow:0 6px 18px #ffc76116}
.browse-unlocks{border-radius:14px}
.showcase.panel{padding:18px;background:linear-gradient(145deg,#142b3b80,#10192b55);border-radius:26px;box-shadow:inset 0 1px 0 #b5dfff16}
.showcase.panel:before{display:none}
.showcase .stage{box-shadow:none;background:radial-gradient(ellipse at 50% 65%,#3edcea1c,transparent 68%);border-radius:24px!important}
.showcase .panel-top{padding:0;margin-bottom:4px}
.showcase .fine-print{font-size:10px;line-height:1.5;margin-bottom:0}
.showcase>.primary{min-height:44px;border-radius:12px;font-size:12px}
.showcase .loadout-details{margin:8px 0}
.showcase .loadout-details>summary{background:transparent;padding-left:0}
.item-card{border-radius:20px;padding:9px;box-shadow:inset 0 1px 0 #e2f2ff14,0 8px 22px #0003}
.item-card:before{inset:0 15px auto;width:auto;height:2px;background:linear-gradient(90deg,transparent,var(--rarity),transparent);opacity:.65}
.item-card .item-art{height:190px!important;border-radius:15px!important;background:radial-gradient(ellipse at 50% 60%,#477a9544,transparent 70%)!important}
.item-card h3{min-height:0;margin:10px 3px 4px;font-size:14px;line-height:1.35;letter-spacing:-.2px}
.item-card .item-category{font-size:10px;margin:0 3px 6px;color:#9bafc6}
.item-card .item-ownership{margin:0 3px 6px;min-height:20px;font-size:12px}
.item-card button.preview-item{margin-bottom:4px;border-radius:10px;background:#8fcfff08}
.item-card button.buy,.item-card button.equipped,.item-card.legendary button.buy{border-radius:11px}
.shop-toolbar{margin-bottom:8px}
.shop-toolbar>label,.shop-toolbar>div{background:transparent;box-shadow:none;padding:4px 0}
.shop-reassurance{margin-bottom:14px}
.leaderboard.panel{margin-top:24px;padding-top:20px}
.leaderboard tbody tr:first-child{background:linear-gradient(90deg,#ffd2790d,transparent)}
.leaderboard td{padding-top:12px;padding-bottom:12px}
.bottom-nav{background:#081423f5;box-shadow:0 -8px 28px #0003;border-top-color:#80c3e522}
.bottom-nav-item{font-size:11px;min-height:48px}
.bottom-nav-icon{font-size:19px}
@media(max-width:680px){
 main{padding-top:14px;padding-bottom:16px}
 .header{padding:12px 16px;gap:10px}
 .brand{font-size:16px;display:flex;align-items:baseline;flex-wrap:wrap;gap:0}
 .brand small{margin:0 0 0 12px;font-size:8px;letter-spacing:2px}
 .account-bar{gap:6px}
 .account-bar #nav-name{max-width:74px;font-size:11px}
 .account-bar .profile-button{padding-right:8px}
 .account-bar #auth-button{padding:9px 8px;font-size:11px;min-height:44px}
 .coin-chip{padding:7px 9px}
 .get-coins{border-radius:12px;min-height:44px;display:inline-flex;align-items:center;padding:9px 12px}
 .page-title{margin:0;padding:12px 0 16px}
 .page-title h1{font-size:36px!important;line-height:1.04}
 .studio-shortcuts{gap:6px;margin:8px 0 16px}
 .studio-shortcuts a{padding:8px 10px;font-size:10px;min-height:44px}
 #signature-looks h2{font-size:25px;letter-spacing:-.8px}
 #signature-looks>.collection-note{margin-bottom:12px}
 #featured-looks .look-card{grid-template-columns:115px minmax(0,1fr);gap:12px;padding:15px;flex-basis:90%}
 #featured-looks .look-art{height:205px}
 #featured-looks .look-description{font-size:11px;margin-bottom:10px}
 #featured-looks .look-edition{font-size:8px;letter-spacing:1px}
 #featured-looks h3{font-size:18px}
 #featured-looks .look-detail{font-size:10px}
 #featured-looks .look-price{font-size:13px}
 .coin-shop h2{font-size:25px;letter-spacing:-.8px}
 .coin-shop .coin-pack{flex-basis:70vw;max-width:280px;min-height:206px;padding:16px!important}
 .coin-pack .coin-amount{font-size:32px!important}
 .coin-pack>p{margin:5px 0}
 .coin-pack .pack-rate{margin:5px 0 12px}
 .coin-pack button{min-height:44px}
 #extra-plays{margin-top:16px;padding-top:14px}
 .studio-layout{gap:14px}
 .showcase.panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px;padding:16px}
 .showcase>*{grid-column:1/-1;min-width:0}
 .showcase .stage{grid-column:1;grid-row:2/5;height:230px!important;margin:4px 0 0}
 .showcase .character-caption{grid-column:2;grid-row:2;align-self:end;text-align:left;margin:8px 0 0}
 .showcase .character-caption h3{font-size:18px;line-height:1.2;margin-bottom:4px}
 .showcase .character-caption p{font-size:11px;overflow-wrap:anywhere}
 .showcase .preview-note{grid-column:2;grid-row:3;text-align:left;margin:5px 0;font-size:10px;align-self:start}
 .showcase .focus-controls{grid-column:2;grid-row:4;display:flex;flex-direction:column;gap:4px;margin:4px 0 8px;align-self:start}
 .showcase .focus-controls button{border-radius:10px;font-size:11px;padding:7px}
 .showcase .stage:before{bottom:18px;height:22px;left:4%;right:4%}
 .showcase .loadout-details{margin:4px 0}
 .showcase .loadout-details>summary{font-size:11px}
 .shop.panel{padding-top:10px}
 .shop-grid{gap:10px}
 .item-card .item-art{height:170px!important}
 .item-card h3{font-size:13px;min-height:35px}
 .item-card .badge{font-size:8px;letter-spacing:1px;top:5px;left:5px;padding:5px 7px}
 .item-card button{font-size:11px;padding:8px}
 .shop-tabs{margin-top:10px;margin-bottom:8px}
 #shop-search{padding:12px 15px}
 .shop-filters{margin-top:8px;margin-bottom:5px}
 #shop-result-count{margin-top:8px}
 .public-footer{font-size:10px;line-height:1.5;margin-top:18px!important;padding-top:10px}
 .public-footer a{font-size:11px;padding:7px 8px}
}
@media(max-width:360px){
 .brand small{font-size:7px;letter-spacing:1.5px}
 .account-bar #nav-name{display:none}
 .studio-shortcuts a{font-size:9px;padding:8px}
 #featured-looks .look-card{grid-template-columns:92px minmax(0,1fr);gap:9px;padding:12px;flex-basis:94%}
 #featured-looks .look-art{height:205px}
 .showcase.panel{padding:12px;column-gap:10px}
 .showcase .character-caption h3{font-size:16px}
 .item-card .item-art{height:150px!important}
}
/* Keep the extra-play action above decorative section layers. */
#extra-plays button{position:relative;z-index:1;border-radius:12px}

/* Independent facial features stay readable at phone size. */
.personality-note{max-width:62ch;color:#b9ceda;line-height:1.6;margin:0 0 16px;font-size:14px}
.item-art:is([data-slot="eyes"],[data-slot="brows"],[data-slot="nose"],[data-slot="mouth"],[data-slot="hair"],[data-slot="marks"]){overflow:hidden}
.item-art:is([data-slot="eyes"],[data-slot="brows"],[data-slot="nose"],[data-slot="mouth"],[data-slot="hair"],[data-slot="marks"]) .character{transform:scale(1.85);transform-origin:50% 18%}


/* Character-first mobile studio: no product, price or purchase behavior changes. */
.studio-category-label{display:block;margin:12px 0 6px;font-weight:750;font-size:13px;color:#b9dff0}
#studio-category{display:block;width:100%;min-height:48px;padding:11px 14px;border:1px solid #487494;border-radius:13px;background:#10263c;color:#f2faff;font:inherit;font-weight:700}
.coin-pack-options{border:1px solid #7b684b;border-radius:16px;padding:12px;margin-top:12px}
.coin-pack-options>summary{cursor:pointer;font-weight:800;color:#ffdc9c;padding:8px;min-height:44px}
.coin-pack-options:not([open]) #coin-packs{display:none}
@media(max-width:680px){
 .page-title{padding:6px 0 8px;margin:4px 0 8px}
 .page-title h1{font-size:28px!important}
 .page-title>p{display:none}
 .studio-shortcuts{margin:5px 0 10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .studio-shortcuts a{font-size:10px;min-width:0;padding:9px 5px;text-align:center}
 .studio-layout{display:flex;flex-direction:column;gap:10px}
 .showcase.panel{order:0}
 .shop.panel{order:1}
 .shop-tabs{display:flex!important;overflow-x:auto;gap:7px;scroll-snap-type:x proximity;padding:5px 0;scrollbar-width:thin}
 .shop-tabs button{flex:0 0 auto;min-height:44px;padding:9px 13px;scroll-snap-align:start}
 .collection-looks{margin-top:12px}
 .coin-shop{margin-top:12px}
 .personality-note{font-size:12px;margin-bottom:6px}
 .shop-filters{gap:10px}
 .shop-toolbar{gap:8px}
 .item-card.is-equipped{border-color:#64e5c8!important;box-shadow:inset 0 0 0 1px #64e5c877}
 .item-card.is-owned:not(.is-equipped){border-color:#5786b6}
 .showcase .stage{height:260px!important}
}

/* Bound scrollable category rail to the phone viewport, never the document. */
.studio-layout,.studio-layout>.shop,.shop-tabs{min-width:0;max-width:100%;box-sizing:border-box}
.shop-tabs{width:100%;overflow-x:auto;overscroll-behavior-x:contain}
@media(max-width:680px){.shop.panel{width:100%;overflow:hidden}.shop-tabs{display:flex!important;flex-wrap:nowrap;max-width:100%;width:100%}}

/* Compact neon product art; text and StoreKit prices remain real controls. */
.coin-pack-art{display:block;width:100%;height:112px;object-fit:contain;margin:0 auto 8px;filter:drop-shadow(0 0 12px #36ddff20)}
.coin-pack{border-color:#39d9f766!important;background:radial-gradient(ellipse at 50% 0,#126a8140,transparent 70%),#111b30!important}
.coin-pack:nth-child(2){border-color:#b88aff88!important;background:radial-gradient(ellipse at 50% 0,#7533b340,transparent 70%),#111b30!important}
.coin-pack.best-value{border-color:#ffda6b99!important;background:radial-gradient(ellipse at 50% 0,#94712040,transparent 70%),#111b30!important}
@media(max-width:680px){.coin-pack-art{height:86px}.coin-shop .coin-pack{flex-basis:min(66vw,250px);max-width:250px}.coin-pack .pack-heading{min-height:42px}}

/* Neon display lighting frames the complete rig without shifting any layers. */
.showcase .stage{background:radial-gradient(ellipse at 50% 42%,#45e5ed29,transparent 65%),linear-gradient(145deg,#13283e,#11192e)!important;border:1px solid #5edcde38;box-shadow:inset 0 1px 0 #afffff15!important}
.showcase .stage:before{border-color:#70f3df88!important;box-shadow:0 0 20px #47ebda33,inset 0 0 14px #54cdec22}
.showcase .stage .character{filter:drop-shadow(0 8px 8px #03081588)}
.item-card .item-art{background:radial-gradient(ellipse at 50% 40%,#3b8d9c40,transparent 75%),linear-gradient(150deg,#162d43,#131d32)!important;border:1px solid #74dce31f}
.item-card.is-equipped .item-art{border-color:#66e6c76b;box-shadow:inset 0 0 22px #54ebcd10}
@media(hover:hover){.item-card:hover .item-art{border-color:#75eff270}}
