/* One layout scale contains character, aura and pet; idle never changes it. */
.troncher-idle,.player-pet,.pet-card-art .pet-sprite{animation:none!important;transform:none!important}
.loadout-scene{width:225px;height:250px;position:relative;flex:none;margin:auto;isolation:isolate;display:flex;align-items:flex-end;justify-content:flex-start}
.loadout-scene>.fitting-player{margin:0 0 10px 0}.loadout-scene>.aura-stage{margin:0;width:190px;height:250px}
.loadout-scene>.pet-frame{position:absolute;right:0;bottom:10px;width:80px;height:80px;image-rendering:pixelated}
.inspection-stage .loadout-scene .fitting-player,.inspection-stage .loadout-scene .aura-stage{transform:none!important}
.inspection-stage .loadout-scene{transform:scale(1.15);transform-origin:50% 95%}.inspection-stage.zoomed .loadout-scene{transform:scale(1.5)}
.character .loadout-scene{max-width:none}.character{display:grid;place-items:center;min-height:285px}
.shop-v2-art{height:240px;display:grid;place-items:center;overflow:hidden}.shop-v2-art>canvas[data-modular-item]{width:190px;height:230px;image-rendering:pixelated}.shop-v2-art>.pet-frame{width:144px;height:144px;image-rendering:pixelated}.shop-v2-art .body-aura{transform:scale(.8);transform-origin:center}
.shop-v2-card{display:flex;flex-direction:column;align-items:stretch;text-align:center;gap:12px;padding:18px}.shop-v2-card h3{min-height:2.4em;margin:0}.shop-v2-card button{margin-top:auto}.shop-price{display:flex;flex-direction:column;gap:8px;margin:12px 0}.shop-price strong{font:18px 'IBM Plex Mono',monospace;color:var(--orange)}.shop-price span{font-size:14px;color:var(--muted)}
.pet-colors{border:1px solid var(--line);padding:12px;margin:18px 0;display:flex;flex-wrap:wrap;gap:8px}.pet-colors legend{font-size:16px}.pet-colors button[aria-pressed=true]{border-color:var(--orange);background:#493b28}.inspection-controls{display:flex;gap:8px;margin-top:12px}.inspection-controls button{flex:1}.preview-caption{text-align:center}.shop-inspection{align-items:start}.shop-inspection label{display:block;margin:16px 0 8px}
/* Silhouette radiation: narrow body light, broad bloom, rising sparks. */
.body-aura{overflow:visible;--aura:#6df4bf}.body-aura>.fitting-player{z-index:2}.body-aura-silhouette{position:absolute;left:0;top:10px;width:190px;height:230px;z-index:1;pointer-events:none;image-rendering:pixelated;filter:blur(2px) drop-shadow(0 0 5px var(--aura)) drop-shadow(0 0 12px var(--aura));opacity:.75;animation:bodyRadiate 3s ease-in-out infinite}
.body-energy-lines{position:absolute;inset:15px 30px 10px;z-index:3;pointer-events:none}.body-energy-lines i{position:absolute;left:calc(6% + var(--n)*17%);bottom:calc(8% + var(--n)*11%);height:12px;width:2px;background:var(--aura);box-shadow:0 0 5px var(--aura);opacity:0;animation:bodySpark 2.5s steps(8,end) infinite;animation-delay:calc(var(--n)*-.43s)}
.aura-ascension .body-aura-silhouette{filter:blur(3px) drop-shadow(0 -8px 8px #ffd050) drop-shadow(0 -15px 14px #ffa21c);animation:ascendRadiate 1.5s ease-in-out infinite}.aura-ascension .body-energy-lines{inset:-3px 20px 4px}.aura-ascension .body-energy-lines i{left:calc(4% + var(--n)*8%);bottom:calc(4% + var(--n)*6%);height:28px;width:3px;clip-path:polygon(60% 0,100% 38%,50% 52%,90% 100%,0 62%,42% 41%);animation-duration:1.8s}.aura-ascension .body-energy-lines i:nth-child(3n){background:#9aeaff;box-shadow:0 0 6px #4caaff;height:39px}
@keyframes bodyRadiate{50%{opacity:.95;filter:blur(3px) drop-shadow(0 0 7px var(--aura)) drop-shadow(0 0 16px var(--aura))}}
@keyframes bodySpark{15%{opacity:.7}80%{opacity:.4}100%{transform:translateY(-40px);opacity:0}}
@keyframes ascendRadiate{50%{opacity:1;filter:blur(3px) drop-shadow(0 -10px 12px #ffe76e) drop-shadow(0 -20px 17px #ffa21c)}}
@media(prefers-reduced-motion:reduce){.body-aura-silhouette{animation:none;opacity:.6}.body-energy-lines{display:none}}
/* Phone layout: readable touch controls, contained scene, reachable dialogs. */
@media(max-width:760px){
 html,body{max-width:100%;overflow-x:clip}header{margin:0;padding:12px;gap:10px;flex-wrap:wrap}header .brand{font-size:23px}header nav{order:5;width:100%;margin:0;overflow-x:auto;flex-wrap:nowrap;gap:4px;padding-bottom:4px}header nav button{flex:none;min-height:44px;padding:10px 13px}header .coinbadge{display:none}header #connectWallet{margin-left:auto;font-size:15px;padding:10px}header .user{padding:10px}main{width:100%;padding:14px}.statusbar{padding:0 14px;margin:14px auto;gap:8px;flex-wrap:wrap}.statusbar b{display:block;margin:7px 0 0}.heading{align-items:start;gap:12px;flex-wrap:wrap}h1{font-size:26px}.barracks{grid-template-columns:1fr!important}.barracks>.panel{min-width:0}.barracks .side{padding:18px}.geargrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}.gear{min-width:0;padding:12px}.shop-v2-art{height:180px}.shop-v2-art>canvas[data-modular-item]{width:142px;height:172px}.shop-v2-art .body-aura{transform:scale(.65);margin-top:-35px}.shop-v2-art>.pet-frame{width:110px;height:110px}.shop-v2-card h3{font-size:20px}.shop-categories{gap:6px;flex-wrap:wrap}.shop-categories button{flex:1 0 42%;min-height:44px;padding:10px}.shop-price strong{font-size:16px}.shop-price span{font-size:14px}.catalog-switch button{min-height:48px}dialog{width:calc(100vw - 16px)!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;padding:22px 16px!important;margin:auto;overflow:auto}dialog h2{padding-right:30px;font-size:21px}.inspection-grid{grid-template-columns:1fr!important;gap:20px}.inspection-stage{min-height:300px!important;height:300px!important}.inspection-stage .loadout-scene{transform:scale(1)}.inspection-stage.zoomed{height:390px!important}.inspection-stage.zoomed .loadout-scene{transform:scale(1.2)}.close{position:sticky;top:0;float:right;z-index:20;background:#192019}.wallet-address{overflow-wrap:anywhere;word-break:break-word}.filter-grid,.cards{grid-template-columns:1fr}.profilehead{flex-wrap:wrap;padding:18px}.profilehead h1{font-size:22px}.podium{gap:8px;padding:16px 4px 0}.winner{width:31%;min-width:0}.winner strong{font-size:17px;overflow-wrap:anywhere}.winner .base{padding:8px 4px}.winner small{font-size:11px}.grid{grid-template-columns:1fr}.tools{padding:12px}.tools input{min-width:140px}footer{padding:16px;flex-wrap:wrap}footer span:last-child{margin-left:0}.mini{font-size:14px}button{min-height:44px}.character{overflow:hidden!important}
}
@media(max-width:380px){.geargrid{grid-template-columns:1fr!important}.loadout-scene{transform:scale(.9);transform-origin:center bottom}.inspection-stage .loadout-scene{transform:scale(.9)}.shop-v2-art{height:230px}.shop-v2-art .body-aura{transform:scale(.8)}.shop-v2-art>canvas[data-modular-item]{width:190px;height:230px}}
.loadout-scene[data-scene-pet=""]{width:190px}
.holder-thesis{padding:18px;margin:14px 0}.thesis-copy{white-space:pre-wrap;overflow-wrap:anywhere}.thesis-history{border-top:1px solid #405039;margin-top:16px;padding-top:12px}.thesis-history summary{cursor:pointer;min-height:44px;padding:10px 0}.thesis-version{padding:12px 0}.thesis-version+.thesis-version{border-top:1px solid #405039}.coin-tabs{flex-wrap:wrap}

/* Keep shop art grounded just above its caption across card sizes. */
.shop-v2-card .shop-v2-art{align-items:end}.shop-v2-card h3{margin-top:10px;margin-bottom:12px}.shop-v2-art>canvas[data-modular-item]{align-self:end}

.shop-v2-card h3{min-height:24px;margin:0;line-height:1.25}.shop-v2-card{row-gap:10px}
