.header nav{gap:22px}.header .header-cta{text-decoration:none;white-space:nowrap}.header-actions{flex-shrink:0}.header nav a{white-space:nowrap}section[id]{scroll-margin-top:100px}.home-matches{background:#f5f1e7}.home-match-links{display:flex;align-items:center;gap:24px;margin:20px 0 28px}.home-match-links a{color:#23483c;text-decoration:none}.home-match-links .dark-button{color:white}.home-rank-row{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:13px 0;border-bottom:1px solid #d8d3c5}.home-rank-row strong{width:80px}.home-rank-row button,.store-tabs a{border:1px solid #c7cbbf;background:transparent;color:#23483c;border-radius:30px;padding:9px 14px;font:inherit;cursor:pointer;text-decoration:none}.home-rank-row button[aria-pressed=true],.store-tabs a[aria-current=true]{background:#173f34;color:#fff;border-color:#173f34}.home-friend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:30px 0}.home-friend{border:1px solid #d7d9cc;border-radius:16px;overflow:hidden;background:#fff}.home-friend>img{width:100%;aspect-ratio:4/4;object-fit:cover;object-position:top}.home-friend>div{padding:22px}.home-friend h3{font-size:26px;margin:12px 0}.home-friend p{line-height:1.7;color:#626c60}.rank-badge{color:#816424;font-weight:700}.home-friend .dark-button{display:inline-block;margin-top:12px;text-decoration:none}.home-fine{font-size:13px;color:#667365}.shop-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:30px 0}.shop-category{display:block;position:relative;padding:0 0 20px;background:#f4f1e8;color:#213c31;text-decoration:none;border-radius:16px;overflow:hidden;border:1px solid #dfdfd0}.shop-category img{width:100%;aspect-ratio:4/3;object-fit:cover}.shop-category h3,.shop-category p{margin:18px 20px 0}.shop-category p{font-size:14px;line-height:1.7;min-height:48px}.shop-category>span{display:block;margin:18px 20px 0;font-size:24px}.home-shop>.dark-button{display:inline-block;text-decoration:none}.store-main{min-height:75vh;padding-top:145px}.store-main h1{font-size:48px;margin:16px 0}.store-intro{line-height:1.8;color:#647163}.store-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:32px 0}.store-panel{background:#f2f0e7;padding:28px;border:1px solid #dddccb;border-radius:18px}.store-panel h2{margin-top:0}.store-panel p{line-height:1.8}.store-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}.store-item{background:white;border:1px solid #dedfd5;border-radius:12px;overflow:hidden;padding:14px}.store-item img{width:100%;aspect-ratio:1;object-fit:contain}.store-item h3{font-size:17px}.store-item button,.store-action{display:inline-block;border:0;padding:12px 18px;border-radius:8px;background:#214a3c;color:white;font:inherit;text-decoration:none;cursor:pointer}.store-item button:disabled{background:#e7e5db;color:#74796d;cursor:default}.store-item small{display:block;color:#647163;margin:10px 0;line-height:1.5}.my-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:32px 0}.my-links a,.my-equipment{padding:28px;border:1px solid #d7dace;border-radius:14px;color:#254536;text-decoration:none;background:#f4f1e7}.store-status{padding:12px;background:#e3eddc;border-radius:8px}.store-page .header{background:#102b26}.home-shop{padding-bottom:90px}
@media(max-width:1000px){.header{flex-wrap:wrap;gap:12px;padding:14px 20px}.header nav{order:3;width:100%;justify-content:center;gap:22px;display:flex!important}.header-actions{margin-left:auto}.shop-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-friend-grid{gap:12px}.home-friend>div{padding:16px}.store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.header nav{gap:0;justify-content:space-between;overflow:auto;font-size:13px}.header nav a{padding:6px 4px}.header .logo{font-size:22px}.header-actions{gap:8px}.header .header-cta{padding:8px 14px}.header select{max-width:88px}.home-friend-grid{grid-template-columns:1fr}.home-friend{display:grid;grid-template-columns:38% 62%}.home-friend>img{height:100%;aspect-ratio:auto}.home-friend h3{font-size:22px}.home-friend p{font-size:13px;margin:8px 0}.home-friend .dark-button{font-size:13px;padding:11px}.home-rank-row strong{width:100%;margin-bottom:5px}.home-rank-row button{font-size:13px;padding:8px 12px}.section{padding-left:20px;padding-right:20px}.shop-category-grid{gap:12px}.shop-category h3,.shop-category p{margin:14px 13px 0}.shop-category p{font-size:13px}.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-panel{padding:16px}.store-main h1{font-size:36px}.my-links{grid-template-columns:1fr}.home-match-links{gap:14px;font-size:13px}.store-tabs{gap:8px}.store-tabs a{font-size:13px;padding:10px}.store-main{padding-top:155px}.village-grid>.tk-card{grid-column:1/-1}}
.header .header-cta{display:inline-flex!important;align-items:center;color:#fff}.header-actions select{color:#fff}.header nav{flex-shrink:1}.store-tabs a:focus-visible,.home-rank-row button:focus-visible,.shop-category:focus-visible{outline:3px solid #b18b38;outline-offset:3px}
.header{background:rgba(16,43,38,.93)}
.shop-category:nth-child(n+3) img{object-fit:contain;padding:18px;background:#e8e5d9}
/* Compact homepage flow and a shared avatar shop. */
@media(min-width:1101px){.header nav{gap:34px;font-size:16px}.header{gap:24px}}
#villages{padding-bottom:24px}.home-matches.section{padding-top:24px;padding-bottom:24px;background:transparent}.home-matches>.section-top{background:#e3e8db;border:1px solid #bac7b0;border-radius:16px;padding:24px 28px;margin-bottom:16px}.home-matches h2{font-size:32px}.home-match-links{margin:12px 0 18px}.home-family42{display:flex;gap:10px}.home-family42 button{border:1px solid #b8c5b0;border-radius:9px;padding:12px 28px;background:#fff;font-size:17px;font-weight:700}.home-family42 button[aria-pressed=true]{background:#214a3c;color:#fff}.home-friend-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.home-friend>div{padding:16px}.home-friend h3{font-size:22px}.home-friend p{font-size:13px}.home-friend .dark-button{padding:11px;font-size:13px}.home-shop.section{padding-top:20px;padding-bottom:40px}.home-shop>.dark-button{display:none}.shop-gateway42{border:1px solid #c8c9b5;border-radius:20px;padding:30px;background:linear-gradient(135deg,#e4e9da,#f6eddb);display:grid;grid-template-columns:1fr 1.2fr;gap:24px;overflow:hidden}.shop-gateway-copy42 h3{font-size:30px}.shop-gateway-copy42 p{margin:18px 0}.shop-gateway-copy42 .dark-button{display:inline-block}.shop-objects42{display:flex;align-items:center;gap:10px}.shop-objects42 img{width:50%;height:190px;object-fit:contain;filter:drop-shadow(0 12px 12px #40381822)}.shop-gateway42>.avatar-pair42{grid-column:1/-1}.avatar-pair42{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:20px 0 30px}.avatar-pair42 article{min-width:0;background:#fffdf4;border:1px solid #d1d6c4;border-radius:18px;padding:22px;text-align:center}.avatar-pair42 h3{font-size:23px;margin:8px 0 14px}.portrait42{width:100%;height:360px;object-fit:contain;border-radius:14px;background:radial-gradient(#ebf2e3,#e2e7d8)}.model42{height:360px;position:relative;background:radial-gradient(#f7f4e5,#e0e5d7);border-radius:14px;overflow:hidden}.model42 canvas{display:block;width:100%;height:100%}.avatar-pair42 .store-action,.rotate42{margin:14px 4px 0}.rotate42{border:1px solid #aebda5;border-radius:8px;padding:10px 14px;background:#edf1e5}.shop-gateway42 .portrait42,.shop-gateway42 .model42{height:300px}#avatar2d-items,#avatar3d-items{margin-top:32px;border-top:1px solid #c5ceba;padding-top:28px;scroll-margin-top:30px}
@media(max-width:1000px){.home-friend-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-gateway42{padding:20px}.avatar-pair42 h3{font-size:20px}}
@media(max-width:650px){.home-friend-grid{grid-template-columns:1fr}.home-matches>.section-top{padding:18px}.home-matches h2{font-size:25px}.home-family42 button{padding:10px 20px;font-size:15px}.shop-gateway42{grid-template-columns:1fr;padding:16px}.shop-gateway42>.avatar-pair42{grid-column:auto}.avatar-pair42{grid-template-columns:1fr}.avatar-pair42 article{padding:16px}.portrait42,.model42{height:300px}.shop-objects42 img{height:140px}.home-shop.section{padding-top:12px}.home-shop h2{font-size:30px}}
.shop-objects42 img{width:calc((100% - 20px)/3)}
.friends43{border:1px solid #c3cdbb;border-radius:20px;padding:28px;background:linear-gradient(110deg,#dce5d4 0%,#f8f8ef 72%);box-shadow:0 8px 30px #304e3610}.friends43-head{display:grid;grid-template-columns:1fr auto;gap:4px 24px;align-items:center}.friends43-head>.overline{grid-column:1}.friends43-head h2{font-size:28px;margin:0}.friends43-head>p{font-size:12px}.friends43-filter{grid-column:2;grid-row:1/4;max-width:440px}.friends43-families,.friends43-ranges{display:flex;gap:6px;flex-wrap:wrap}.friends43-families{margin-bottom:9px}.friends43-filter button{border:1px solid #bfccb5;border-radius:7px;padding:6px 13px;font-size:12px;background:#ffffff70}.friends43-families button{font-weight:700;font-size:13px}.friends43-filter button[aria-pressed=true]{background:#315845;color:#fff;border-color:#315845}.friends43-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:22px}.friend43-card{min-width:0;background:#fffdf6;border:1px solid #d3dacb;border-radius:12px;padding:0 0 12px;overflow:hidden;text-align:left;transition:transform .2s,box-shadow .2s}.friend43-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #25463420}.friend43-card img{width:100%;aspect-ratio:1.18;object-fit:cover;object-position:center 18%}.friend43-card>span,.friend43-card>strong,.friend43-card>small{display:block;margin:6px 12px 0}.friend43-card>span{font-size:11px}.friend43-card>strong{font-size:16px}.friend43-card>small{font-size:11px;color:#73806b}.friends43-pages{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:18px;font-size:12px}.friends43-pages button{padding:5px 14px;border:1px solid #becbb5;border-radius:6px;background:#fff9}.friends43-pages button:disabled{opacity:.35;cursor:default}.friend43-dialog{width:min(700px,92vw);padding:0;border:1px solid #c7d0bd;border-radius:20px;background:#faf9f0;color:#274633;max-height:90vh;overflow:auto}.friend43-dialog[open]{display:grid;grid-template-columns:44% 56%}.friend43-dialog::backdrop{background:#0d201bcc;backdrop-filter:blur(4px)}.friend43-dialog>img{width:100%;height:100%;object-fit:cover;object-position:top}.friend43-info{padding:40px 28px}.friend43-info h2{font-size:30px;margin:12px 0}.friend43-info p{font-size:14px;line-height:1.9;margin:14px 0}.friend43-info .dark-button{display:inline-block;margin-top:12px;padding:13px 18px}.friend43-close{position:absolute;right:10px;top:8px;background:#fff;border-radius:50%;width:32px;height:32px;font-size:24px}.closet43-frame{display:block;width:100%;height:724px;border:1px solid #c9d1bc;border-radius:18px;background:#edf0e4}.shop43-host{margin-top:20px}.boards43{padding:24px;margin-top:24px;border:1px solid #d3d6c6;border-radius:18px;background:#f7f5eb}.boards43-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.boards43 h3{font-size:25px}.boards43 p,.boards43 a{font-size:12px}.boards43-status{margin:12px 0}.boards43-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;max-height:440px;overflow:auto;padding:4px}.boards43-grid button{background:#fffdf7;border:1px solid #d0d6c5;border-radius:10px;padding:8px;min-width:0}.boards43-grid button[aria-pressed=true]{border:2px solid #487155;background:#e6eedf}.boards43-grid img{width:100%;aspect-ratio:1.2;object-fit:contain}.boards43-grid strong,.boards43-grid small{display:block;font-size:12px}.boards43-grid small{font-size:10px;color:#738269}.store-panel:has(>.closet43-frame){padding:0;border:0;background:none}.home-shop>.section-top{margin-bottom:16px}
@media(max-width:1000px){.friends43-head{grid-template-columns:1fr}.friends43-filter{grid-column:1;grid-row:auto;margin-top:12px}.friends43-grid{gap:10px}.friend43-card>strong{font-size:14px}.boards43-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.friends43{padding:16px}.friends43-head h2{font-size:23px}.friends43-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.friend43-card>strong{font-size:15px}.friend43-dialog[open]{grid-template-columns:1fr}.friend43-dialog>img{max-height:260px;object-fit:contain;background:#e1e8d9}.friend43-info{padding:22px}.friend43-info h2{font-size:25px}.closet43-frame{height:1380px}.boards43{padding:16px}.boards43-head{display:block}.boards43-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:480px}.boards43 h3{font-size:23px}}

/* Compact friend navigation, shared-width rank chips. */
.friends43-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.friends43-head>.overline,.friends43-head>p{display:none}.friends43-head h2{font-size:24px;flex:none}.friends43-filter{display:flex;align-items:center;gap:10px;max-width:none;margin:0;overflow-x:auto}.friends43-families,.friends43-ranges{display:flex;flex-wrap:nowrap;gap:5px;margin:0}.friends43-filter button{box-sizing:border-box;flex:0 0 76px;width:76px;height:34px;padding:0 3px;font-size:12px;white-space:nowrap}.friends43-families button{background:#d2dfcf;border-color:#afc2aa}.friends43-ranges button{background:#fffdf6}.friends43-filter button[aria-pressed=true]{background:#315845;color:white}.friends43-grid{margin-top:16px}
.friend43-dialog{width:min(1120px,94vw);max-height:92vh}.friend43-dialog[open]{display:block}.friend50-bar{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:2;background:#f5f3e8;padding:14px 22px;border-bottom:1px solid #d6d9cc}.friend43-close{position:static;width:auto;height:34px;border-radius:8px;padding:0 12px;font-size:14px}.friend43-dialog .companion-profile{padding:24px;border:0;background:transparent}.friend43-dialog .companion-profile-head{grid-template-columns:minmax(220px,38%) 1fr;align-items:center}.friend43-dialog .companion-profile-head img{width:100%;height:auto;max-height:550px;object-fit:contain}.friend43-dialog .companion-profile-head h3{font-size:36px}.friend50-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;background:#f5f3e8;padding:14px 22px;border-top:1px solid #d6d9cc}.friend50-actions a{padding:12px 24px}
@media(max-width:1100px){.friends43-head{gap:10px}.friends43-filter{width:100%}}@media(max-width:650px){.friends43-head h2{font-size:21px}.friends43-filter{gap:8px}.friends43-filter button{width:72px;flex-basis:72px}.friend43-dialog .companion-profile{padding:16px}.friend43-dialog .companion-profile-head{grid-template-columns:1fr}.friend43-dialog .companion-profile-head img{max-height:380px}.friend43-dialog .companion-profile-head h3{font-size:28px}}

.friend43-dialog .companion-profile{box-sizing:border-box}.friend43-dialog .companion-profile-head{display:grid;min-width:0}.friend43-dialog .companion-profile-head>div{min-width:0}.friend43-dialog .companion-profile dt,.friend43-dialog .companion-language-note{color:#65765f}.friend43-dialog .companion-profile blockquote{color:#617d44}.friend43-dialog .companion-profile-head>img{width:100%!important;height:auto!important}@media(max-width:650px){.friend43-dialog .companion-profile-head>img{max-height:340px}}

.friend43-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.friend43-dialog .companion-profile{overflow-y:auto;min-height:0;padding:22px}.friend51-layout{display:grid;grid-template-columns:minmax(220px,38%) minmax(0,1fr);gap:28px;align-items:start}.friend51-portrait{position:sticky;top:0}.friend51-portrait img{display:block;width:100%;max-height:64vh;object-fit:contain;border-radius:14px;background:#e7ebdf}.friend51-info{min-width:0}.friend51-info h3{font-size:32px;margin:0 0 7px}.friend43-dialog .friend51-facts{display:grid;grid-template-columns:1fr;gap:12px;margin:18px 0}.friend51-facts>div{padding:10px 14px;border:1px solid #dce1d3;border-radius:10px;background:#eef2e7}.friend43-dialog .friend51-facts dt{color:#536d46;font-weight:700}.friend43-dialog .friend51-facts dd{font-size:15px;line-height:1.65}.friend50-bar,.friend50-actions{flex:none;position:static}.friend50-actions{justify-content:center}.friend50-actions a{text-align:center;min-width:260px}.friend51-more{margin-top:18px}.friend51-more>summary{color:#315845}.friend51-info .companion-profile-section dl{grid-template-columns:1fr}@media(max-width:650px){.friend51-layout{grid-template-columns:1fr;gap:15px}.friend51-portrait{position:static}.friend51-portrait img{max-height:220px}.friend51-info h3{font-size:25px}.friend50-actions a{min-width:0;width:100%}.friend43-dialog .companion-profile{padding:14px}.friend43-dialog .friend51-facts{gap:7px;margin:10px 0}}

.shop52-showcase{margin-top:18px;padding:24px;border:1px solid #cbd3bf;border-radius:18px;background:#f6f5eb}.shop52-showcase>header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.shop52-showcase h3{margin:6px 0;font-size:24px}.shop52-showcase header>a{padding:12px 20px;white-space:nowrap}.shop52-columns{display:grid;grid-template-columns:2fr 1fr;gap:24px}.shop52-columns h4{margin:0 0 10px;font-size:17px;color:#315845}.shop52-grid{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}.shop52-stones .shop52-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop52-product{min-width:0;display:block;background:#fffdf7;border:1px solid #d7dccf;border-radius:10px;overflow:hidden;text-decoration:none;color:#294533}.shop52-art{height:110px;display:flex;align-items:center;justify-content:center;background:#e8ebdf;padding:6px;box-sizing:border-box}.shop52-art img{width:100%;height:100%;object-fit:contain;min-width:0}.shop52-stones .shop52-art img{width:50%;height:auto;max-height:100%}.shop52-product strong{display:block;padding:8px;font-size:12px;text-align:center;overflow-wrap:anywhere}.shop52-product:hover{border-color:#678458;background:#f0f5e6}.shop52-product:focus-visible{outline:3px solid #315845;outline-offset:3px}@media(max-width:650px){.shop52-showcase{padding:16px}.shop52-showcase>header{align-items:flex-start;flex-direction:column}.shop52-columns{grid-template-columns:1fr}.shop52-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop52-art{height:120px}.shop52-showcase h3{font-size:21px}}

.store53-open{display:block;margin:12px 0 22px;padding:15px 24px;background:#315845;color:#fff;border:0;border-radius:10px;font:700 16px inherit;cursor:pointer}.store53-stone-pair{display:flex;align-items:center;justify-content:center;min-height:170px;padding:12px;background:#e7eadf}.store53-stone-pair img{width:50%!important;height:150px!important;object-fit:contain!important}.store-grid .store-item small{line-height:1.7;white-space:normal}

.selected54-set,.cart54{padding:24px;margin:18px 0;border:1px solid #c8d3be;border-radius:16px;background:#edf2e5;color:#294533}.selected54-art{display:flex;align-items:center;gap:10px;max-width:650px}.selected54-art img{width:22%;height:150px;object-fit:contain}.selected54-art img:first-child{width:50%}.selected54-set button,.cart54 button{padding:10px 16px;margin:5px;border:1px solid #6f8962;border-radius:8px;background:#315845;color:#fff;cursor:pointer}.cart54-row{display:flex;gap:18px;align-items:center;padding:10px 0;border-bottom:1px solid #cbd7c0}.cart54-row strong{flex:1}.cart54 small{display:block;line-height:1.7}.cart54 button:disabled{opacity:.45;cursor:default}.selected54-set p{font-size:13px;line-height:1.7}@media(max-width:600px){.cart54-row{flex-wrap:wrap}.selected54-art img{height:100px}}
