/* A fixed entrance composition, scaled as one 16:9 design. Keep the live
   battlefield outside transformed ancestors so its viewport camera is intact. */
html:has(body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open)){scrollbar-width:none}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open){overflow-x:clip;min-height:100dvh}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .tapestry-main{position:static;width:auto;max-width:none;margin:0;padding:0}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .tapestry-main>:is(.tapestry-title,.hanging-rod,.woven-panels){position:absolute;left:50%;margin:0;transform:translateX(-50%) scale(var(--home-entrance-scale));transform-origin:top center}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .tapestry-title{top:calc(var(--home-ui-y) + 42px * var(--home-entrance-scale));width:1032px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .tapestry-title h1{font-size:36px;line-height:1.35;letter-spacing:1px;margin:0 0 8px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .tapestry-title p{font-size:12px;line-height:2;letter-spacing:1px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .hanging-rod{top:calc(var(--home-ui-y) + 132px * var(--home-entrance-scale));width:1212px;height:52px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .rod-parts{top:12px;height:36px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .rod-end{flex-basis:39px;width:39px;height:36px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .rod-shaft{height:18px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-panels{top:calc(var(--home-ui-y) + 169px * var(--home-entrance-scale));width:1032px;padding:0 72.24px;display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:28px;z-index:2;--side-banner-height:510px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-panel{padding:25px 19px 90px;min-height:510px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-tool{min-height:554px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-panel>.medieval-icon{width:72px;height:72px;margin:28px auto 17px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-panel>.homepage-emblem{width:96px;height:96px;margin:16px auto 5px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-panel h2{font-size:38px;line-height:1.4;letter-spacing:2px;min-height:88px;margin:0}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-map h2{font-size:34px!important;line-height:1.35!important}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-panel>p{font-size:17px;line-height:1.85;margin:0;white-space:nowrap}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-panel>.stitch-rule{display:block;margin:20px 0}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .woven-panel>.woven-embroidery{display:block;width:138px;height:38px;bottom:92px;margin:0}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .roll-links{gap:8px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .roll-links button{font-size:13px;letter-spacing:2px;gap:10px;padding:0 8px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .roll-links .roll-guide{font-size:10px;letter-spacing:1px;padding-left:10px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .roll-links .medieval-icon{width:25px;height:25px}
/* Individual scale leaves each control's own transform animation available. */
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .home-language-toggle{top:calc(var(--home-ui-y) + 12px * var(--home-ui-scale));right:calc(var(--home-ui-x) + 14px * var(--home-ui-scale));scale:var(--home-ui-scale);transform-origin:top right}
/* Account sizing and viewport margins come from the shared wallet stylesheet. */
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .home-community{right:calc(var(--home-ui-x) + 24px * var(--home-ui-scale));bottom:calc(var(--home-ui-y) + 24px * var(--home-ui-scale));gap:7px;scale:var(--home-ui-scale);transform-origin:bottom right}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .home-community :is(a,button):not(.community-fold){width:122px;min-height:36px;font-size:14px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .resource-shop{scale:var(--home-ui-scale);transform-origin:bottom left;max-width:1904px}
/* Keep viewport centering independent of each dialog's transform animation. */
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) :is(.community-thanks-dialog,#home-development-notice){inset:auto;left:50%;top:50%;margin:0;translate:-50% -50%;scale:var(--home-ui-scale);transform:none;transform-origin:center;box-sizing:border-box;max-height:864px;max-width:1880px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .community-thanks-dialog{width:480px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .resource-shop-tabs{gap:10px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .resource-shop-tabs button{padding-inline:12px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) .resource-shop-products{padding-inline:16px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) #home-development-notice h2{font-size:23px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) #home-development-notice p{font-size:18px}
body[data-theme=tapestry][data-home-layout=wide]:not(.battle-world-open) #home-development-notice{padding:30px 32px 24px}
