/* Shared layout rules come last so older page-specific breakpoints cannot
   leave the header, catalog and wardrobe in incompatible intermediate states. */
body #main-content{width:100%;min-width:0}body .page-panel,body .surface,body .shop-catalog,body .avatar-detail{min-width:0}
body .page-heading h1,body #page-shop .page-heading h1{min-width:0!important;max-width:100%;overflow-wrap:anywhere;width:fit-content}
body .page-heading>div{min-width:0;max-width:100%}body .filter-tabs{flex-wrap:wrap}body .filter-tabs button{max-width:100%}
body .product-card,body .product-info,body .product-price-row,body .wardrobe-item{min-width:0}body .product-info h3,body .wardrobe-item b{overflow-wrap:anywhere}
body .app-header{isolation:isolate;gap:clamp(10px,1.5vw,25px)}body .app-header>.brand,body .app-header>.header-tools{min-width:0}
body .app-nav{min-width:0;flex-wrap:nowrap}body .app-nav button{min-width:0;white-space:nowrap}
@media(min-width:1100px){
body{padding-bottom:22px}body .app-header{display:grid;grid-template-columns:minmax(175px,225px) minmax(0,1fr) auto;align-items:start;height:clamp(125px,9.5vw,156px);padding:14px clamp(16px,2vw,40px) 0}
body .brand{max-width:100%;gap:0}body .brand .brand-wordmark{width:100%;max-width:225px;height:auto;aspect-ratio:3.5}body .brand small{font-size:clamp(9px,.7vw,11px);letter-spacing:2px}
body .app-nav{position:static;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(3px,1vw,20px);height:auto;padding:0;background:none;border:0;box-shadow:none;align-items:start}
body .app-nav button{display:flex;flex-direction:column;padding:3px 0;font-size:clamp(15px,1.25vw,20px)!important;letter-spacing:1px;border:0;gap:5px}
body .painted-nav-icon{width:clamp(33px,3vw,45px);height:clamp(37px,3.3vw,50px)}body .header-tools{padding-top:2px;gap:7px;flex-wrap:nowrap}body .profile-trigger{width:34px;height:34px;flex:none}
body .header-tools .coin-pill{width:clamp(150px,13vw,205px);min-width:0!important;height:clamp(45px,3.95vw,62px);padding:7px 14px 7px clamp(46px,4vw,65px)!important}body .header-tools .coin-pill b{font-size:clamp(21px,1.8vw,29px)}body .header-tools .coin-pill:after{font-size:clamp(12px,1vw,17px)}
}
@media(max-width:1099px){
body{padding-bottom:calc(95px + env(safe-area-inset-bottom))}body .app-header{position:relative;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;height:100px;padding:12px clamp(12px,3vw,26px);gap:10px}
body .brand{flex:0 1 215px;gap:0;overflow:hidden}body .brand>span:last-child{width:100%;min-width:0}body .brand .brand-wordmark{width:100%;max-width:215px;height:auto;aspect-ratio:3.5}body .brand small{font-size:9px;letter-spacing:1px;white-space:normal}
body .header-tools{flex:0 0 auto;gap:7px;padding:0}body .header-tools .coin-pill{width:150px;min-width:0!important;height:45px;padding:6px 11px 6px 47px!important}body .header-tools .coin-pill b{font-size:22px}body .header-tools .coin-pill:after{font-size:12px}
body .app-nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(83px + env(safe-area-inset-bottom));padding:7px 8px calc(8px + env(safe-area-inset-bottom));gap:0;background:#fff6e8 url('./assets/desktop/paper.webp') center/cover;border-top:1px solid #caa46c;box-shadow:0 -4px 18px #714d2314;z-index:60;align-items:center}
body .app-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;font-size:clamp(12px,1.8vw,17px)!important;letter-spacing:0;gap:3px;padding:0;border:0;background:none;line-height:1.3}
body .app-nav button>span{display:flex}body .painted-nav-icon{width:34px;height:37px}
body .page-heading>button,body .page-heading>.shop-balance{position:static;margin:10px auto 0}body .page-heading h1,body #page-shop .page-heading h1{font-size:clamp(25px,4vw,34px)!important;padding-inline:clamp(25px,5vw,55px)!important}
}
@media(min-width:1100px) and (max-width:1299px){body .app-header{grid-template-columns:180px minmax(0,1fr) auto;gap:10px}body .header-tools .coin-pill{width:150px;height:45px}body .app-nav button{font-size:16px!important}body .brand .brand-wordmark{max-width:180px}}
@media(max-width:1199px){
body #page-shop .shop-layout,body #page-avatar .avatar-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
body #page-shop .fitting-room,body #page-avatar .avatar-stage{position:static;width:100%;max-width:680px;margin-inline:auto}
body #page-shop .shop-avatar,body #page-avatar .big-avatar{max-width:490px;width:100%;margin-inline:auto}body #page-avatar .avatar-detail{width:100%}
body #page-shop .shop-filter-bar{display:flex;flex-wrap:wrap;gap:12px}body #page-shop .shop-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1 0 100%;width:100%;gap:5px}body #page-shop .shop-tabs button{font-size:20px;letter-spacing:1px;padding:10px 7px!important}
body:not(.answering) #page-play .home-hero{height:auto;min-height:0;padding:30px clamp(20px,5vw,45px);margin:0 0 25px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;overflow:visible}
body:not(.answering) .home-hero:before{border-radius:inherit}body:not(.answering) .home-traveler{position:relative;inset:auto;display:flex;flex-wrap:wrap;gap:10px;max-width:100%}body:not(.answering) .home-hero>h1,body:not(.answering) .home-hero>p{width:min(100%,580px);margin:0;position:relative}body:not(.answering) .home-hero>h1{font-size:0!important;height:clamp(62px,12vw,82px);background:url('./assets/desktop/wordmark.webp') center/contain no-repeat}body:not(.answering) .home-hero>p{font-size:clamp(16px,2.5vw,24px);letter-spacing:3px}
body:not(.answering) .home-controls{display:flex;flex-direction:column;position:relative;width:min(100%,580px);gap:14px}body:not(.answering) .home-controls .game-energy{width:100%;margin:0;flex-wrap:wrap}body:not(.answering) .home-controls .home-actions{width:100%;margin:0;display:flex;flex-direction:column;gap:14px}body:not(.answering) .home-figure{display:none}body:not(.answering) .home-controls .painted-action{width:100%;max-width:100%;min-height:125px!important}body:not(.answering) .home-controls .resume-game{max-width:100%;white-space:normal}
}
@media(max-width:799px){body #page-shop .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body #page-shop .clothing-card{display:flex;flex-direction:column}body #page-shop .clothing-card .product-art{height:200px!important;min-height:0}body #page-shop .product-info h3{font-size:20px}body #page-shop .product-info>div{flex-wrap:wrap;gap:8px}body #page-shop .product-info .text-button{max-width:100%}body #page-shop .product-buy{width:100%}body #page-avatar .wardrobe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body .avatar-motion-controls{flex-wrap:wrap;gap:8px}body .avatar-motion-controls button{max-width:100%}body .rank-tabs{display:flex;flex-wrap:wrap;max-width:100%}body .ranking-controls{display:flex;flex-wrap:wrap;gap:10px}}
@media(max-width:479px){
body .app-header{height:84px;padding-inline:12px;gap:7px}body .brand{flex-basis:150px}body .brand small{font-size:7px;margin-left:0!important;letter-spacing:0}body .header-tools{gap:4px}body .header-tools .coin-pill{width:113px;height:35px;padding:5px 8px 5px 35px!important}body .header-tools .coin-pill b{font-size:18px}body .header-tools .coin-pill:after{font-size:10px;margin-left:3px}body .profile-trigger{width:27px;height:27px}body #rules{width:22px;height:22px}
body .app-nav button{font-size:12px!important}body .painted-nav-icon{width:29px;height:32px}body main,body #main-content{padding-inline:12px}body #page-shop .product-grid{gap:8px}body #page-shop .product-art,body #page-shop .clothing-card .product-art{height:155px!important}body #page-shop .product-info{padding:8px}body #page-shop .product-info h3{font-size:17px}body #page-shop .shop-tabs button{font-size:17px}body #page-shop .product-info>div>b{font-size:16px;white-space:normal}body #page-avatar .wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .wardrobe .filter-tabs button{flex:1 1 40%;font-size:16px}body .leaderboard{padding:14px}
}
@media(max-width:359px){body .brand{flex-basis:112px}body .header-tools .coin-pill{width:102px;height:32px;padding-left:32px!important}body .header-tools .coin-pill b{font-size:16px}body .header-tools{gap:3px}body #page-shop .product-grid{grid-template-columns:minmax(0,1fr)}body #page-shop .product-art,body #page-shop .clothing-card .product-art{height:220px!important}}
@supports not (container-type:inline-size){@media(max-width:1199px){.honor-wall .journey-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.honor-lower{grid-template-columns:minmax(0,1fr)}}}
@media(max-width:1199px){body:not(.answering) .home-controls .game-energy>div:first-child{min-width:0;flex:1 1 160px}body:not(.answering) .home-controls .energy-actions{min-width:0;max-width:100%;flex-wrap:wrap}body:not(.answering) .home-controls .game-energy p,body:not(.answering) .home-controls .game-energy small{overflow-wrap:anywhere}}
