/* One artwork source for every castle, from the gallery to the battlefield. */
.estate-original{display:block;width:100%;height:100%}.estate-original>img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 4px #5c614d1d)}
.world-layout{display:block}.world-layout>.map-panel{width:100%;max-width:1080px;margin:0 auto}
.estate-gallery{margin-top:22px;min-width:0}.estate-gallery .kuni-tabs{margin:0;gap:7px}.estate-gallery .gallery-heading{margin:26px 0 6px;align-items:center}.gallery-controls{display:flex;align-items:center;gap:7px;flex-shrink:0}.gallery-controls>span{font-size:11px;color:#8a907c;margin-right:5px}.gallery-controls button{width:36px;height:34px;padding:0;font-size:18px;color:#647558;background:#fffcf3}.gallery-controls button:disabled{opacity:.3}.gallery-hint{font-size:12px;color:#8a907c;margin:0 0 15px}
.estate-rail{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 42px)/4);gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:2px;padding:4px 2px 15px;scrollbar-width:thin;scrollbar-color:#acb69b #eeeddf;outline-offset:3px}
.estate-card{scroll-snap-align:start;min-width:0;display:flex;flex-direction:column;padding:13px;border:1px solid #e1ddcb;border-radius:20px;background:linear-gradient(145deg,#fffdf5,#f4f4e6);box-shadow:0 3px 8px #5c614907;transition:border-color .18s,box-shadow .18s}
.estate-card.selected{border-color:#859a70;box-shadow:0 0 0 2px #a9bb9166;background:linear-gradient(145deg,#fffdf0,#edf2df)}.estate-card.owned{border-color:#94ad8a}.estate-select{border:0;background:transparent;color:#5c644d;display:flex;flex-direction:column;align-items:center;width:100%;padding:0;cursor:pointer;text-align:center;box-shadow:none}.estate-select:focus-visible{outline:2px solid #7c9468;outline-offset:3px;border-radius:12px}.estate-card-state{align-self:flex-start;border-radius:10px;font-size:9px;padding:4px 8px;background:#eceedd;color:#8b927b}.selected .estate-card-state{background:#dce7cc;color:#5c7849}.estate-select>.estate-original{height:166px;margin:7px 0 3px}.estate-select>b{font-size:18px;letter-spacing:-.5px}.estate-select>small{font-size:10px;line-height:1.6;color:#929880;min-height:32px;margin:5px 0 8px;word-break:keep-all}
.estate-card-progress{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px 5px;font-size:11px;margin:4px 0 10px;color:#8a917c}.estate-card-progress b{color:#60794f;font-size:14px;margin-left:3px}.estate-card-progress small{font-size:10px;align-self:center}.estate-card-progress progress{width:100%;height:5px;margin:0}
.estate-card-captain{display:flex;gap:8px;align-items:center;padding:8px 0;border-top:1px dashed #dddcca;min-height:86px}.estate-card-captain>.rebel-standin{width:65px;height:72px;flex:none}.estate-card-captain>span:last-child{display:grid;gap:5px;min-width:0}.estate-card-captain small{font-size:9px;color:#939780}.estate-card-captain b{font-size:12px;font-weight:600;color:#686f57;line-height:1.5;word-break:keep-all}.estate-card-captain .rebel-banner{font-size:7px;padding:3px;right:-3px;top:5px;border-width:1px}.estate-card .estate-challenge{width:100%;margin-top:auto;font-size:12px;padding:10px 5px;border-radius:11px;min-height:39px}
#regionDetail.selected-estate-detail{display:grid;grid-template-columns:1.3fr .8fr 1fr;gap:22px;align-items:center;padding:20px;margin-top:18px;border:1px solid #dedfca;border-radius:19px;background:#fffdf1;box-shadow:none;text-align:left}.selected-estate-summary{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:12px}.selected-estate-summary .estate-portrait{width:110px;height:126px;margin:0}.selected-estate-summary .eyebrow{font-size:9px;letter-spacing:0}.selected-estate-summary h3{font-size:22px;margin:7px 0}.selected-estate-summary p{font-size:11px;line-height:1.7;margin:6px 0}.selected-estate-summary small{font-size:10px;color:#8e9780}.selected-estate-summary .progress-label{font-size:10px;margin-top:9px}.selected-estate-summary progress{height:5px;width:100%;margin:7px 0}.selected-estate-deploy{display:grid;gap:8px}.selected-estate-deploy .sector-label{font-size:11px}.selected-estate-deploy select{width:100%;margin-top:6px}.selected-estate-deploy #start,.selected-estate-deploy #practice{margin:0;width:100%;font-size:11px;padding:10px}.selected-estate-detail .boss-preview{border-top:0;border-left:1px dashed #d7dbc6;padding:0 0 0 15px;margin:0;display:flex;align-items:center;gap:9px;min-width:0}.selected-estate-detail .boss-preview>.kana-farmer{width:75px;height:100px;flex:none}.selected-estate-detail .boss-preview b{font-size:14px}.selected-estate-detail .boss-preview p{font-size:10px;line-height:1.7}.selected-estate-detail .boss-preview small{font-size:9px}.selected-estate-detail .boss-preview .primary{font-size:10px;padding:8px;width:100%;margin:5px 0 0}
@media(max-width:1050px){.estate-rail{grid-auto-columns:calc((100% - 28px)/3)}#regionDetail.selected-estate-detail{grid-template-columns:1.2fr 1fr;gap:18px}.selected-estate-detail .boss-preview{grid-column:1/-1;border-left:0;border-top:1px dashed #d7dbc6;padding:12px 0 0}.selected-estate-detail .boss-preview>.kana-farmer{width:68px;height:83px}.selected-estate-detail .boss-preview>div{display:grid;grid-template-columns:1fr auto;column-gap:20px;align-items:center;flex:1}.selected-estate-detail .boss-preview>div>small,.selected-estate-detail .boss-preview>div>b,.selected-estate-detail .boss-preview>div>p{grid-column:1}.selected-estate-detail .boss-preview #bossChallenge{grid-column:2;grid-row:1/4;width:auto}}
@media(max-width:650px){.estate-rail{grid-auto-columns:calc((100% - 12px)/2);gap:12px}.estate-card{padding:11px;border-radius:17px}.estate-gallery .gallery-heading{margin-top:20px}.estate-gallery .gallery-heading h2{font-size:17px}.estate-gallery .gallery-heading .eyebrow{font-size:9px;letter-spacing:0}.gallery-controls{gap:4px}.gallery-controls button{width:29px;height:29px}.gallery-controls>span{font-size:9px;margin-right:2px}.gallery-hint{font-size:10px}.estate-select>.estate-original{height:155px}.estate-select>b{font-size:17px}.estate-card-captain b{font-size:11px}#regionDetail.selected-estate-detail{padding:14px;gap:15px;grid-template-columns:1fr}.selected-estate-summary{grid-template-columns:95px 1fr}.selected-estate-summary .estate-portrait{width:95px;height:108px}.selected-estate-deploy{grid-template-columns:1fr 1fr}.selected-estate-deploy .sector-label{grid-column:1/-1}.selected-estate-detail .boss-preview{grid-column:1}.selected-estate-detail .boss-preview>div{display:block}.selected-estate-detail .boss-preview #bossChallenge{width:100%;font-size:10px}.estate-gallery .kuni-tabs{gap:5px}.estate-gallery .kuni-tabs button{padding:7px 4px}.estate-gallery .kuni-tabs button[aria-pressed=true]{padding:6px 3px}}
@media(max-width:460px){.estate-rail{grid-auto-columns:82%;padding-right:10px}.estate-select>.estate-original{height:173px}.estate-card-captain>.rebel-standin{width:73px;height:78px}.estate-card-captain b{font-size:13px}.estate-card-progress{font-size:12px}.estate-card .estate-challenge{font-size:13px}.gallery-controls>span{display:none}.estate-gallery .gallery-heading h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){.estate-card{transition:none}}
@media(min-width:1051px){.estate-gallery .kuni-tabs{grid-template-columns:repeat(7,minmax(0,1fr))}.estate-gallery .kuni-tabs button{grid-template-columns:26px 1fr;padding:10px 7px;gap:4px}.estate-gallery .kuni-tabs button[aria-pressed=true]{padding:9px 6px}.estate-gallery .kuni-tabs button>span{width:25px;height:31px;font-size:19px}.estate-gallery .kuni-tabs b{font-size:11px;white-space:nowrap}.estate-gallery .kuni-tabs small{font-size:9px}}
@media(min-width:1051px){.estate-gallery .kuni-tabs{grid-template-columns:repeat(8,minmax(0,1fr))}}
