/* v18 canonical UI. Native materials are deliberately independent of raster frames. */
@font-face{font-family:SoulArtSupplement14;src:url('./assets/fonts/soul-v14-supplement.woff2') format('woff2');font-display:swap;font-weight:400}
:root{
 --ui18-ink:#10171d;--ui18-slate:#263740;--ui18-bone:#e8ddc4;--ui18-brass:#a68b58;
 --ui18-soul:#79bdc8;--ui18-muted:#a8aaa3;--ui18-ember:#d38351;--ui18-hurt:#ba6058;
 --ui18-line:#a68b5866;--ui18-surface:linear-gradient(135deg,#263740e8,#10171df5 78%);
 --ui18-contract:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%2310171d' stroke='%23a68b58' stroke-width='1.6'%3E%3Cpath d='m16 3 8 13-8 13-8-13Z'/%3E%3Cpath d='m16 10 4 6-4 6-4-6Z' fill='%2379bdc8' fill-opacity='.5'/%3E%3C/svg%3E");
 --ink:var(--ui18-ink);--panel:#10171df2;--gold:var(--ui18-brass);--paper:var(--ui18-bone);
 --muted:var(--ui18-muted);--blue:var(--ui18-soul);--red:var(--ui18-hurt);--line:var(--ui18-line);
 --paint-button:none;--paint-hover:none;--paint-pressed:none;--paint-disabled:none;
 --art-font:SoulArt,SoulArtSupplement,SoulArtSupplement14,SoulMyanmar,SoulSymbols,serif;color-scheme:dark;
}
:root[lang=ja]{--art-font:SoulArtJP,SoulArt,SoulArtSupplement14,SoulMyanmar,serif}
:root[lang=my]{--art-font:SoulMyanmar,SoulArt,SoulArtSupplement14,serif}
html,body,#app{background-color:var(--ui18-ink);color:var(--ui18-bone)}
#app{font-family:var(--art-font);font-synthesis:weight;background:var(--ui18-ink)!important}
#app,#screen,.page,.modal,.story-intro{overflow-anchor:none;scroll-behavior:auto}
#app #world{filter:none!important;background-color:var(--ui18-ink)}
#app .vignette{background:linear-gradient(0deg,#10171d24,transparent 28%);opacity:.7}
#app button,#app input,#app select,#app textarea{font:inherit}
#app button{background-image:none!important;border-image:none!important;border-radius:1px!important;box-shadow:none!important;filter:none!important;text-shadow:none;transition:color .15s,border-color .15s,background-color .15s;touch-action:manipulation}
#app button:hover,#app button:active{translate:none!important;transform:none!important}
#app button:disabled{opacity:.42;cursor:not-allowed}
#app :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--ui18-soul);outline-offset:3px}
#app :is(input,select,textarea){background:var(--ui18-ink)!important;background-image:none!important;border:1px solid var(--ui18-line)!important;border-image:none!important;color:var(--ui18-bone);border-radius:1px;padding:10px 12px;accent-color:var(--ui18-soul)}
#app textarea{resize:vertical;line-height:1.7}
#app select option{background:var(--ui18-ink);color:var(--ui18-bone)}
#app kbd{border:1px solid #a68b5860;border-bottom-width:2px;background:#10171db0;color:#c9c8b9;border-radius:2px;font:11px/1.3 system-ui,sans-serif;padding:3px 6px}
#app .art-icon,#app .painted-icon{object-fit:contain;filter:none!important;vertical-align:middle;flex-shrink:0}
#app svg.visual-icon18{display:inline-block;max-width:100%;overflow:visible;flex-shrink:0}
#app .eyebrow{color:var(--ui18-brass);font-size:10px;letter-spacing:2.4px;line-height:1.7}
#app :is(.page-sub,.foot-note,.modal-lead,.gear-note,.connection-help,.cloud-note){color:var(--ui18-muted);line-height:1.9}
#app :is(h1,h2,h3){color:var(--ui18-bone);font-weight:600;text-shadow:none}
#app .page h2{font-size:clamp(25px,2.5vw,36px);letter-spacing:3px}
#app :is(.primary,.secondary,.back,.small-btn,.modal-actions button,.connection-actions button,.battle-inventory,.story-controls button,.narrative-choice){
 background-color:#1a272e!important;background-image:linear-gradient(110deg,#26374055,#10171d55)!important;
 background-size:auto!important;background-repeat:no-repeat!important;border:1px solid #a68b5885!important;
 border-image:none!important;box-shadow:inset 0 1px #e8ddc40a!important;color:var(--ui18-bone);
 padding:11px 19px;min-height:42px;font-size:13px;line-height:1.5;letter-spacing:.4px;
}
#app .primary{border-color:var(--ui18-brass)!important;background-color:#333328!important;color:#f3e6c8}
#app :is(.primary,.secondary,.back,.small-btn,.modal-actions button,.narrative-choice):hover{background-color:#35444a!important;border-color:#d0b87e!important;color:#fff0d1}
#app :is(.primary,.secondary,.back,.small-btn,.modal-actions button,.narrative-choice):active{background-color:#131e24!important;box-shadow:inset 0 2px 5px #0007!important}
#app :is(.primary,.secondary,.back,.small-btn):disabled{background-color:#1d2427!important;border-color:#62665d!important}
/* All broad surfaces share a quiet native material and one 20px contract. No image is stretched. */
#app :where(.modal,.doll-panel,.gear-inventory,.item-detail,.connection-panel,.coop-intro,.hero-preview,.talent-detail,.talent-branch,.hero-card,.level-card,.achievement-card,.supply-card,.gear-shop-card,.letter-card,.codex-card,.relic-card13,.upgrade,.weapon-tile,.ending-card,.cloud-versions article,.instruction,.training-preview,.story-box,.control-grid>div,.result-grid>div){
 position:relative;border:1px solid var(--ui18-line)!important;border-image:none!important;border-image-source:none!important;
 border-image-width:0!important;border-radius:1px;background-color:var(--ui18-ink)!important;
 background-image:var(--ui18-surface)!important;background-position:center!important;background-size:auto!important;
 background-repeat:no-repeat!important;box-shadow:0 10px 28px #0002!important;isolation:isolate;filter:none!important;
}
#app :where(.modal,.doll-panel,.gear-inventory,.item-detail,.connection-panel,.coop-intro,.hero-preview,.talent-detail,.talent-branch,.hero-card,.level-card,.achievement-card,.supply-card,.gear-shop-card,.letter-card,.codex-card,.relic-card13,.upgrade,.weapon-tile,.ending-card,.cloud-versions article):before{
 content:'';position:absolute;inset:5px;z-index:1;width:auto;height:auto;pointer-events:none;border:0;
 background:linear-gradient(var(--ui18-brass),var(--ui18-brass)) left top/13px 1px no-repeat,linear-gradient(var(--ui18-brass),var(--ui18-brass)) left top/1px 13px no-repeat,linear-gradient(var(--ui18-brass),var(--ui18-brass)) right bottom/13px 1px no-repeat,linear-gradient(var(--ui18-brass),var(--ui18-brass)) right bottom/1px 13px no-repeat;
 opacity:.5;animation:none!important;mix-blend-mode:normal;
}
#app :where(.modal,.doll-panel,.gear-inventory,.item-detail,.connection-panel,.coop-intro,.hero-preview,.talent-detail,.talent-branch,.hero-card,.level-card,.achievement-card,.supply-card,.gear-shop-card,.letter-card,.codex-card,.relic-card13,.upgrade,.weapon-tile,.ending-card,.cloud-versions article):after{
 content:'';position:absolute;top:8px;right:11px;left:auto;bottom:auto;width:20px;height:20px;
 background:var(--ui18-contract) center/20px 20px no-repeat!important;border:0!important;opacity:.7;pointer-events:none;z-index:2;animation:none!important;
}
#app :where(.modal,.doll-panel,.gear-inventory,.item-detail,.connection-panel,.coop-intro,.hero-preview,.talent-detail){padding:25px}
#app :where(.achievement-card,.supply-card,.gear-shop-card,.letter-card,.codex-card,.relic-card13,.upgrade,.weapon-tile,.ending-card,.cloud-versions article){padding:24px}
#app :is(.hero-card.selected,.gear-card.selected,.talent-node.selected){border-color:var(--ui18-brass)!important;outline:1px solid #a68b5833;outline-offset:-4px}
#app :is(.hero-card:hover,.gear-shop-card:hover,.codex-card:hover){border-color:#a68b58a8!important}
/* One clear navigation header. */
#app #topbar{height:64px;padding:0 3%;gap:24px;background:#10171dee!important;border-bottom:1px solid #a68b5833;backdrop-filter:blur(10px)}
#app .wordmark{font-size:18px;gap:9px;letter-spacing:2px;min-height:42px}
#app .wordmark .wordmark-emblem{height:28px;width:28px}
#app .wordmark small{font-size:9px;letter-spacing:2px;color:var(--ui18-muted)}
#app .top-nav{gap:24px;margin-left:auto}
#app .top-nav button{color:var(--ui18-muted);font-size:12px;min-height:42px}
#app .top-nav button[aria-current=page],#app .top-nav button:hover{color:var(--ui18-bone)}
#app .top-nav button[aria-current=page]:after{content:'';position:absolute;left:0;right:0;bottom:4px;height:1px;background:var(--ui18-brass)}
#app .top-actions{gap:8px}
#app .top-actions button{width:34px;height:34px;padding:7px;background-color:#1b282d!important;border:1px solid #a68b583d!important;display:grid;place-items:center}
#app .top-actions select{min-height:34px;font-size:11px;padding:6px 8px;max-width:110px}
#app .top-actions svg{width:20px;height:20px}
#app #screen{inset:64px 0 0;scrollbar-color:var(--ui18-brass) var(--ui18-ink)}
#app .page{min-height:100%;padding:32px max(4%,calc((100vw - 1560px)/2)) 30px;background:linear-gradient(130deg,#10171df8,#1d2a30ed)!important;animation:ui18-enter .2s ease-out}
#app .page-head{border-bottom-color:var(--ui18-line);margin-bottom:24px;padding-bottom:23px}
#app .page-head h2{font-weight:600}
#app .page-sub{max-width:800px;font-size:13px;margin-top:10px}
#app .page-foot{margin-top:26px;padding-top:23px;border-top-color:var(--ui18-line);gap:18px;flex-wrap:wrap}
#app .currency-pill,#app .talent-point-pill{border:1px solid #a68b5850;background:#10171d!important;background-image:none!important;padding:11px 18px;color:var(--ui18-bone);font-size:13px;gap:9px}
#app :is(.currency-pill,.talent-point-pill):before,#app :is(.currency-pill,.talent-point-pill):after{content:none!important}
#app :is(.tab-strip,.gear-topline,.talent-topline){gap:10px}
#app :is(.tab-strip button,.partner-picker button,.region-tab,.talent-build-presets button,.talent-tree-tabs button){background:#18252b!important;background-image:none!important;border:1px solid #a68b5840!important;border-image:none!important;color:var(--ui18-muted);padding:10px 14px;min-height:40px}
#app :is(.tab-strip button.active,.partner-picker button.active,.region-tab.active,.talent-tree-tabs button.active){color:var(--ui18-bone);border-color:var(--ui18-brass)!important;background-color:#313a36!important;box-shadow:inset 0 -2px #a68b58!important}
/* Home: live combat cast shares the world, with a quiet menu on the left. */
#app[data-page=home]:not(.battle) #topbar{height:52px;background:linear-gradient(#10171dc9,transparent)!important;border:0;backdrop-filter:none}
#app[data-page=home]:not(.battle) .wordmark,#app[data-page=home]:not(.battle) .top-nav{visibility:hidden}
#app[data-page=home]:not(.battle) #screen{inset:0}
#app #screen .home18{position:relative;display:grid;grid-template-columns:minmax(280px,31%) minmax(0,1fr);grid-template-rows:1fr auto;gap:0 3%;align-items:stretch;width:100%;height:100%;min-height:700px!important;padding:78px 4% 0!important;overflow:hidden;isolation:isolate;background:#10171d url('./assets/v18/menu-world.webp') center/cover no-repeat!important}
#app #screen .home18:before,#app #screen .home18:after{content:none!important}
#app .home18-atmosphere{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#10171def 0%,#10171dc4 28%,#10171d12 61%),linear-gradient(0deg,#10171df5 0%,transparent 54%);pointer-events:none}
#app .home18-left{position:relative;align-self:center;width:100%;max-width:410px;padding-bottom:26px;z-index:3}
#app .home18-brand .eyebrow{font-size:9px;color:#b8ad92;letter-spacing:2.3px}
#app .home18-brand h1{font-size:clamp(43px,4.3vw,68px);line-height:1.2;letter-spacing:.06em;white-space:normal;color:var(--ui18-bone);font-weight:650;margin:9px 0 0;text-shadow:0 3px 18px #0005}
#app .home18-brand h1 small{display:block;font-size:clamp(16px,1.6vw,23px);font-weight:400;letter-spacing:.5em;color:#c4b490;line-height:1.5;margin:9px 0 0}
#app .home18-brand p{margin:15px 0 24px;font-size:12px;color:var(--ui18-muted);letter-spacing:1px;line-height:1.7}
#app .home18-menu{display:grid;gap:5px}
#app .home18-row{display:flex;align-items:center;gap:13px;width:100%;min-height:45px;padding:10px 14px;background:linear-gradient(90deg,#26374085,#10171d25)!important;border:1px solid #a68b5838!important;border-left:2px solid #a68b5870!important;text-align:left;font-size:15px;color:#d2cebe;letter-spacing:2px}
#app .home18-row:hover{background:linear-gradient(90deg,#3a484ad9,#26374077)!important;border-color:#a68b58b0!important;color:#f2e6ce}
#app .home18-row:active{background-color:#10171d!important}
#app .home18-row.home18-start{min-height:53px;background:linear-gradient(90deg,#66583d8c,#26374088)!important;border-color:#a68b5895!important;font-size:18px;color:#f3e6c8;margin-bottom:4px}
#app .home18-row-number{font:9px/1 system-ui;color:#a68b58c9;letter-spacing:0}
#app .home18-row-arrow{margin-left:auto;opacity:.55}
#app .home18-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:15px}
#app .home18-modes button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:42px;padding:8px 3px;background:#10171dc0!important;border:1px solid #a68b5842!important;font-size:10px;color:var(--ui18-muted);line-height:1.5}
#app .home18-modes button.active{background:#263740e0!important;border-color:#a68b58a0!important;color:var(--ui18-bone)}
#app .home18-partner{display:flex;gap:5px;align-items:center;margin-top:9px;font-size:10px;color:var(--ui18-muted)}
#app .home18-partner>span{margin-right:auto}
#app .home18-partner button{padding:5px 8px;min-height:30px;border-bottom:1px solid transparent!important;color:var(--ui18-muted)}
#app .home18-partner button.active{color:var(--ui18-bone);border-bottom-color:var(--ui18-brass)!important}
#app .home18-mode-note{margin-top:10px;font-size:10px;color:#a8aaa399;line-height:1.6}
#app .home18-connect{width:100%;margin-top:9px;font-size:11px}
#app .home18-stage{min-width:0;display:flex;flex-direction:column;justify-content:flex-end;position:relative;padding-top:6px}
#app .home18-cast{position:relative;flex:1;min-height:340px;max-height:650px;pointer-events:none;overflow:visible}
#app #menu-cast18{display:block;position:absolute;inset:auto -8% -4%;width:116%;height:112%;object-fit:contain;object-position:bottom;background:transparent!important;filter:none!important}
#app .home18-cast-caption{position:absolute;left:8%;bottom:4%;text-shadow:0 3px 12px #0009;z-index:2}
#app .home18-cast-caption>span{font:9px/1.6 system-ui;color:#d0cab9;letter-spacing:2px}
#app .home18-cast-caption h2{font-size:30px;letter-spacing:5px;line-height:1.4;margin-top:5px}
#app .home18-cast-caption h2 small{display:block;font-size:11px;font-weight:400;color:#b9bcb0;letter-spacing:3px}
#app .home18-hero-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;z-index:4;margin-bottom:27px;border:0;background:none!important}
#app .home18-hero-rail button{display:flex;align-items:center;gap:8px;min-width:0;min-height:72px;padding:5px 10px 5px 3px;background:#10171dcc!important;border:1px solid #a68b5840!important;text-align:left}
#app .home18-hero-rail button.active{background:#263740dc!important;border-color:#a68b58b0!important}
#app .home18-hero-rail img{content:normal!important;position:static!important;width:50px!important;height:59px!important;max-width:50px!important;object-fit:contain!important;object-position:center bottom!important;filter:none!important}
#app .home18-hero-rail button>span{min-width:0;flex:1}
#app .home18-hero-rail b{display:block;font-size:14px;font-weight:500;white-space:nowrap;letter-spacing:1px}
#app .home18-hero-rail small{display:block;font-size:9px;color:var(--ui18-muted);margin-top:5px;line-height:1.6}
#app .home18-hero-rail .visual-icon18{opacity:.6}
#app .home18-footer{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:63px;border-top:1px solid #a68b583d;color:var(--ui18-muted);font-size:10px;z-index:4}
#app .home18-footer>div{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
#app .home18-footer small{font:9px/1.6 system-ui;color:#a8aaa39c}
#app .preview-label18{font-size:10px;color:#b6b7a8}
#app .home18-footer nav{display:flex;flex-wrap:wrap;gap:14px;justify-content:flex-end;align-items:center}
#app .home18-footer button,#app .home18-footer a{font-size:10px;min-height:32px;color:#b6b8aa;padding:4px 0;line-height:1.5}
#app .home18-footer a{display:flex;align-items:center;color:#baa77e}
#app .home18-footer :is(button,a):hover{color:var(--ui18-bone)}
/* Character art never receives a second poster or a heavy gold surround. */
#app #screen .hero-card{padding:0!important;overflow:hidden;text-align:left;background-color:#141f24!important;background-image:linear-gradient(180deg,#26374040,#10171df5 68%)!important}
#app #screen .hero-card:after{left:13px;right:auto;top:9px;width:20px;height:20px}
#app .hero-card .portrait{height:clamp(280px,30vw,420px);background:transparent!important;mask-image:none!important;clip-path:none!important}
#app .portrait,#app .skeleton-portrait,#app .hero-preview .portrait{background:transparent!important;background-image:none!important;border-image:none!important;filter:none!important}
#app .portrait img{content:normal!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;object-position:center bottom!important;filter:none!important;transform:none!important}
#app .portrait canvas{display:block;width:100%;height:100%;object-fit:contain;background:transparent!important;filter:none!important}
#app .hero-card .hero-info{padding:8px 24px 24px}
#app .hero-info h3{font-size:27px;font-weight:500;letter-spacing:3px}
#app .hero-info h3 small{color:var(--ui18-brass);font-size:11px;letter-spacing:1px}
#app .hero-info p{font-size:12px;line-height:2;color:var(--ui18-muted)}
#app .tags{color:var(--ui18-soul);font-size:11px;line-height:1.7}
#app .hero-stats{border-color:var(--ui18-line);color:var(--ui18-muted)}
#app .hero-stats b{color:var(--ui18-bone)}
#app .selection-mark{color:var(--ui18-brass);font-size:10px;border-bottom-color:var(--ui18-brass)}
/* Map and archive use the same chapter source as combat/story. */
#app .region-tabs{gap:6px;border:0}
#app .region-tab{padding:15px;box-shadow:none!important}
#app .region-tab b{font-size:19px;letter-spacing:2px;color:var(--ui18-bone)}
#app .region-tab :is(small,span){color:var(--ui18-muted);font-size:10px}
#app .region-art{background-size:cover!important;background-position:center!important;border:0;height:170px;filter:none!important}
#app .level-info{padding:22px!important;background:none!important;border:0!important;border-image:none!important}
#app .level-info h3{font-size:22px;letter-spacing:2px}
#app .level-info p{font-size:12px;color:var(--ui18-muted);line-height:1.9}
#app .level-status{font-size:10px;color:#b5b4a2;border-color:var(--ui18-line)}
#app .level-card.locked{opacity:.62;filter:none!important}
#app .level-num,#app .boss-badge{background:#10171dc9;color:var(--ui18-bone);border:1px solid #a68b5844;font-size:10px}
#app .letter-card{font-size:13px;line-height:1.9;color:var(--ui18-muted)}
#app .letter-card h3{font-size:21px;line-height:1.6;color:var(--ui18-bone)}
#app .letter-card p{color:var(--ui18-muted);font-size:12px;line-height:2}
#app .archive-card14{padding:0 22px 23px!important}
#app .archive-art14{margin:0 -22px 18px;height:170px;position:relative;overflow:hidden;border:0;background:#10171d}
#app .archive-art14>img:first-child{width:100%;height:100%;object-fit:cover;filter:none!important}
#app .archive-art14 .archive-silhouette14{position:absolute;right:-5%;bottom:-10%;width:50%;height:100%;object-fit:contain;opacity:.6;filter:none!important;mask-image:linear-gradient(#000 50%,transparent)}
#app .archive-art14>span{position:absolute;inset:0;display:grid;place-items:center;background:#10171d90;letter-spacing:3px;font-size:11px}
#app .progress-numbers{border:1px solid var(--ui18-line);background:#10171d;padding:15px 20px;color:var(--ui18-muted);font-size:12px;line-height:1.9}
#app .progress-numbers b{color:var(--ui18-bone)}
/* Workshop, equipment, growth, shop and codex all share the same material. */
#app .equipment-layout{gap:20px}
#app .doll-panel,#app .item-detail,#app .talent-detail{position:sticky;top:14px}
#app .paper-doll,#app .talent-preview-wrap{background:radial-gradient(ellipse at 50% 82%,#79bdc815,transparent 60%)!important;border:0}
#app #wardrobe-preview,#app #talent-preview{background:transparent!important;filter:none!important}
#app .gear-filters select{padding:8px 10px;font-size:12px}
#app .gear-card{padding:10px 6px!important;background:#19262d!important;border:1px solid #a68b5842!important;box-shadow:none!important}
#app .gear-card:hover{border-color:#a68b58a8!important;background-color:#263740!important}
#app .gear-card.unowned{opacity:.55;filter:none!important}
#app .gear-card .gear-icon,#app .doll-slot .gear-icon{background:transparent!important;border:0!important}
#app .gear-card>span:not(.gear-icon){font-size:10px;line-height:1.7;color:var(--ui18-bone)}
#app .gear-card small{font-size:9px;color:var(--rarity,var(--ui18-brass))}
#app .equipped-slot{width:68px;min-height:68px;background:none!important;border:0!important;padding:0;color:var(--ui18-muted)}
#app .equipped-slot small{font-size:10px;color:var(--ui18-muted)}
#app .paper-doll{grid-template-columns:68px minmax(0,1fr) 68px}
#app .doll-slots .gear-icon{width:65px;height:65px}
#app .gear-icon{background:#10171d!important;background-image:none!important;border:1px solid #a68b5844!important;box-shadow:none!important}
#app .gear-icon:after{background:var(--rarity,var(--ui18-brass));height:1px}
#app .gear-icon i{background-image:url('./assets/v18/gear-icons.webp')!important}
#app :is(.gear-icon.large,.gear-shop-card>.gear-icon,.weapon-tile .gear-icon){background:transparent!important;border:0!important;border-image:none!important}
#app .gear-icon.large i{inset:5% 8%}
#app .doll-slot{border:1px solid #a68b5850;background:#10171dc9!important;color:var(--ui18-muted)}
#app .gear-totals>span,#app .item-stats>div{background:transparent;border-color:#a68b5833;color:var(--ui18-muted)}
#app .gear-totals b,#app .item-stats b{color:var(--ui18-bone)}
#app .item-detail h3{font-size:22px;line-height:1.7}
#app .item-detail p{font-size:12px;color:var(--ui18-muted);line-height:1.9}
#app :is(.gear-shop-card,.supply-card,.relic-card13,.codex-card) h3{color:var(--ui18-bone)}
#app :is(.gear-shop-card,.supply-card,.relic-card13,.codex-card) p{font-size:12px;line-height:1.9;color:var(--ui18-muted)}
#app .gear-shop-card>small{font-size:10px}
#app .gear-shop-card>.gear-icon{height:155px;aspect-ratio:auto}
#app .supply-art{background:none!important;min-height:150px}
#app .supply-art .art-icon{filter:none!important;transform:none!important}
#app .supply-orbit,#app .relic-halo13{display:none!important}
#app .supply-stock{border-color:var(--ui18-line);color:var(--ui18-muted)}
#app .supply-stock b{color:var(--ui18-bone)}
#app .achievement-emblem{background:none!important;border:0!important;color:var(--ui18-brass);min-width:62px}
#app .achievement-card:not(.unlocked){opacity:.65}
#app .achievement-card.unlocked{border-color:#a68b5880!important}
#app .achievement-card :is(small,p){color:var(--ui18-muted)}
#app .achievement-card h3{color:var(--ui18-bone);font-size:20px}
#app .starter-shelf14{margin-top:30px;padding:24px;background:var(--ui18-surface)!important;background-size:auto!important;background-repeat:no-repeat!important;border:1px solid var(--ui18-line)}
#app .starter-shelf14 h2{color:var(--ui18-bone);font-size:26px}
#app .starter-shelf14 p{color:var(--ui18-muted);font-size:13px;line-height:1.9}
#app .starter-grid14{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin-top:20px}
#app .codex-card canvas{background:transparent!important;filter:none!important}
#app .codex-card>small{color:var(--ui18-brass)}
#app .talent-point-pill b{color:var(--ui18-bone)}
#app .talent-point-pill span,#app .talent-point-pill small{color:var(--ui18-muted)}
#app .talent-detail-title h3{color:var(--ui18-bone)}
#app .talent-detail-title b{color:var(--ui18-soul)}
#app .talent-rule{color:#d0d0c1;font-size:13px;line-height:1.95}
#app :is(.talent-requirement,.talent-source-note p,.talent-source-note b,.talent-node-gate){color:var(--ui18-muted)}
#app .talent-source-note,#app .talent-branch-title{border-color:var(--ui18-line)}
#app .talent-branch{--branch-color:var(--ui18-soul);padding:19px 12px}
#app .talent-branch.branch-1{--branch-color:#acaaa5}
#app .talent-branch.branch-2{--branch-color:var(--ui18-ember)}
#app .talent-branch-title h3{color:var(--ui18-bone)}
#app .talent-branch-title img,#app .talent-node-icon img,#app .talent-detail-title>img{filter:none!important}
#app .talent-node{background:#142128!important;border:1px solid #a68b5844!important;padding:20px 11px 30px;min-height:152px;filter:none!important}
#app .talent-node.learned{background:#263740!important;border-color:#79bdc878!important}
#app .talent-node.keystone{background:#302b26!important;border-color:#a68b5885!important}
#app .talent-node-copy>b{color:var(--ui18-bone);font-size:13px}
#app .talent-node-copy>small{color:var(--ui18-muted);font-size:11px;line-height:1.8;-webkit-line-clamp:3}
#app .talent-pips i{border-color:#a68b5860;box-shadow:none}
#app .talent-pips i.filled{background:var(--branch-color);border-color:var(--branch-color);box-shadow:none}
/* Modal, settings, co-op, controls and cloud forms. */
#app .modal-shade{background:#080e13c9;backdrop-filter:blur(8px);animation:ui18-enter .18s ease-out}
#app .modal{width:min(780px,calc(100vw - 36px));max-height:calc(100dvh - 48px);padding:31px;overflow:auto;animation:ui18-enter .2s ease-out;clip-path:none!important;transform:none!important}
#app .modal h2{font-size:28px;letter-spacing:3px;line-height:1.5}
#app .modal-lead{font-size:13px;margin-top:12px;margin-bottom:23px}
#app .modal-close{position:absolute;right:9px;top:7px;width:34px;height:34px;min-height:34px;padding:2px;font-size:24px;color:var(--ui18-muted);background:transparent!important;border:0!important;z-index:5}
#app .modal:after{right:46px}
#app .modal-actions{gap:10px;flex-wrap:wrap;margin-top:22px}
#app .control-grid>div{padding:14px!important;border:1px solid #a68b5835!important;color:var(--ui18-muted);font-size:12px}
#app .control-grid b{color:var(--ui18-bone);font-size:17px}
#app .control-grid kbd{white-space:normal;line-height:1.6;font-size:11px}
#app .instruction{padding:17px 20px!important;border:1px solid #a68b5840!important;color:var(--ui18-muted);font-size:13px;line-height:2;margin:20px 0}
#app .training-preview{padding:20px!important;gap:18px;border:1px solid #a68b5840!important}
#app .training-preview h3{color:var(--ui18-bone);font-size:23px}
#app .training-preview p{color:var(--ui18-muted);font-size:12px}
#app .setting{border-color:#a68b582e;padding:14px 0;gap:18px;line-height:1.7}
#app .setting label,#app .setting>span{color:var(--ui18-bone);font-size:13px}
#app .setting small{color:var(--ui18-muted);font-size:11px;line-height:1.7}
#app .setting input[type=range]{padding:0!important;background:transparent!important;border:0!important}
#app .setting input[type=checkbox]{width:18px;height:18px}
#app .connection-panel,#app .coop-intro{padding:28px}
#app .coop-intro h3{font-size:36px;line-height:1.7;color:var(--ui18-bone)}
#app .connection-label{color:var(--ui18-brass);font-size:12px}
#app .connection-label textarea{font:12px/1.8 ui-monospace,monospace}
#app .network-status{border:1px solid #79bdc844;background:#79bdc80a;color:var(--ui18-soul);font-size:13px;padding:13px}
#app .cloud-state{background:#79bdc80a;border-color:var(--ui18-soul);color:var(--ui18-soul)}
#app .cloud-summary,#app .cloud-versions small{color:var(--ui18-muted)}
#app .cloud-summary b,#app .cloud-conflict>h3{color:var(--ui18-bone)}
#app .cloud-versions article{padding:22px}
/* Story shares the chapter illustration and hero materials with the game. */
#app[data-page=story] #screen{inset:64px 0 0}
#app .story-intro{position:relative;min-height:100%;padding:25px 7% 30px;display:flex;justify-content:flex-end;background:#10171d!important;animation:ui18-enter .3s ease-out;isolation:isolate;overflow:hidden}
#app .story-intro:before{content:'';display:block;position:absolute;inset:-3%;z-index:-3;background-image:linear-gradient(#10171d15,#10171d70),var(--story-art,url('./assets/v18/scenes/stage-00.webp'))!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;transform:scale(1.03);filter:none!important;transition:transform 4s ease,background-position 4s ease;animation:none!important}
#app .story-intro:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,#10171df5 0%,#10171d8c 21%,transparent 65%),linear-gradient(90deg,#10171d50,transparent 60%)!important;animation:none!important}
#app .story-intro[data-camera="1"]:before{transform:scale(1.08) translateX(-1%)}
#app .story-intro[data-camera="2"]:before{transform:scale(1.06) translateX(1%)}
#app .story-chapter{top:25px;left:7%;right:7%;font-size:13px;letter-spacing:3px;color:#c9ba9a;text-shadow:0 2px 8px #0008}
#app .story-cast{inset:65px 0 13%;z-index:-2}
#app .story-actor{width:min(55%,650px);height:100%;opacity:.3;filter:none!important;mask-image:linear-gradient(#000 78%,transparent 99%);transition:opacity .4s,transform .5s}
#app .story-actor.speaking{opacity:1;filter:none!important}
#app .story-actor img{content:normal!important;object-fit:contain!important;object-position:center bottom!important;width:100%;height:100%;filter:none!important}
#app .story-box{padding:24px 30px 20px!important;min-height:220px;border:1px solid #a68b5875!important;background-color:#10171df0!important;background-image:linear-gradient(110deg,#263740c9,#10171dd9)!important;box-shadow:0 12px 45px #0005!important;animation:ui18-enter .25s ease-out;transform:none!important}
#app .story-box:before{content:none!important}
#app .story-box:after{content:'';position:absolute;right:16px;top:13px;width:20px;height:20px;background:var(--ui18-contract) center/20px 20px no-repeat!important;pointer-events:none}
#app .story-box h3{font-size:25px;color:var(--ui18-bone);line-height:1.5}
#app .story-box p{font-size:clamp(17px,1.65vw,23px);line-height:1.9;color:var(--ui18-bone);margin:11px 0 15px;min-height:77px}
#app .story-controls{gap:15px;align-items:center;flex-wrap:wrap}
#app .story-controls button{min-height:42px;font-size:12px}
#app :is(#story-count,#story-voice){font-size:11px;color:var(--ui18-muted)}
#app .story-actor.communication{width:180px;height:250px;left:calc(50% - 90px);bottom:30%;mask-image:none;filter:none!important}
#app .story-actor.communication svg{width:100%;height:100%}
#app .narrative-line{color:var(--ui18-muted);font-size:13px;line-height:1.9}
#app .narrative-line b{color:var(--ui18-soul);font-size:12px}
#app .narrative-line p{color:var(--ui18-bone);font-size:14px;line-height:1.95}
#app .narrative-line.with-portrait img{content:normal!important;object-fit:contain!important;filter:none!important}
#app .narrative-choice{text-align:left;min-height:53px;padding:14px 20px}
#app .narrative-outcome{color:var(--ui18-soul)}
#app .magic-echo{background:none!important;border:1px solid #79bdc833;animation:ui18-echo .5s ease-out both;mix-blend-mode:normal}
#app #modal-root.vanishing .modal,#app .story-intro.vanishing{animation:ui18-leave .24s ease-in both;filter:none!important}
/* Results and statistics retain readable information hierarchy. */
#app .result h2{color:var(--ui18-bone);font-size:34px}
#app .result-grid{gap:10px}
#app .result-grid>div{padding:16px!important;color:var(--ui18-muted);font-size:12px;border:1px solid #a68b5833!important;box-shadow:none!important}
#app .result-grid b{display:block;margin-top:10px;font-size:26px;color:var(--ui18-bone);font-weight:500}
#app .result-rank{background:transparent!important;background-image:none!important;border:1px solid #a68b5870!important;color:var(--ui18-brass);box-shadow:none!important}
#app .rank{font-size:74px;color:var(--ui18-brass);line-height:1.2;text-shadow:none;margin:22px 0}
#app .ending-body{color:var(--ui18-bone);font-size:15px;line-height:2}
#app .ending-card h3{color:var(--ui18-bone)}
#app .ending-option{padding:22px;background:var(--ui18-surface)!important;background-size:auto!important;background-repeat:no-repeat!important;border:1px solid var(--ui18-line)!important;text-align:left}
#app .ending-option:hover{border-color:var(--ui18-brass)!important;background-color:#263740!important}
#app .ending-option b{font-size:25px;color:var(--ui18-bone);font-weight:500;letter-spacing:3px}
#app .ending-option small{font-size:13px;color:var(--ui18-muted);line-height:1.9}
#app .ending-option.dawn{border-color:#79bdc880!important}
#app .end-title{font-size:38px;letter-spacing:6px;color:var(--ui18-brass);margin:20px 0}
/* HUD: thin material edges, quiet tracks. JS owns clipPath, width stays 100%. */
#app #hud{z-index:8;pointer-events:none}
#app[data-page="battle"] #topbar{display:none}
#app #hud :is(button,.combat-bottom,#map-hud){pointer-events:auto}
#app #hud :is(.hero-hud,.objective,#boss-hud,#coop-hud,.combat-bottom,#loot-banner,#ultimate-control,#banter,#field-coach,#hint,.weave-card16,#recruit-receipt16){border:1px solid #a68b5860!important;border-image:none!important;border-image-width:0!important;background-color:#10171de8!important;background-image:linear-gradient(120deg,#26374080,#10171d33)!important;background-size:auto!important;background-repeat:no-repeat!important;box-shadow:0 4px 18px #0002!important;clip-path:none;filter:none!important;border-radius:1px!important}
#app #hud :is(.hero-hud,.objective,#boss-hud,#coop-hud,.combat-bottom,#loot-banner,#banter,#field-coach,#hint):before{content:none!important;border:0!important;background:none!important;animation:none!important}
#app #hud .hero-hud{position:absolute;top:16px;left:18px;width:355px;min-height:116px;padding:13px;gap:12px}
#app #hud .tiny{position:relative;width:61px;min-width:61px;height:80px;border:1px solid #a68b5850!important;background:transparent!important;overflow:hidden;clip-path:none!important;mask-image:none!important;border-radius:1px!important}
#app #hud .tiny img{content:normal!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;object-position:center top!important;z-index:0!important;border-radius:0!important;filter:none!important}
#app #hud .bars{padding:0;min-width:0;flex:1}
#app .hud-name{margin-bottom:5px}
#app .hud-name b{font-size:17px;font-weight:500;color:var(--ui18-bone)}
#app .hud-name small{font-size:10px;color:var(--ui18-muted)}
#app #hud .bar{position:relative;height:24px;background:#060c11!important;border:1px solid #a68b5855!important;border-image:none!important;transform:none!important;overflow:hidden;margin:0}
#app #hud .bar:before{content:none!important;background:none!important;filter:none!important}
#app #hud .bar i{position:absolute;inset:0;width:100%!important;height:100%;background:linear-gradient(0deg,#87423d,#ba6058)!important;background-image:linear-gradient(0deg,#87423d,#ba6058)!important;background-size:auto!important;border:0;transform:none!important;filter:none!important;box-shadow:none!important;transition:clip-path .15s}
#app #hud .bar.resonance{height:17px;margin-top:5px}
#app #hud .bar.resonance i,#app #hud #p2-soul{background:linear-gradient(0deg,#426e7b,#79bdc8)!important;background-image:linear-gradient(0deg,#426e7b,#79bdc8)!important}
#app #hud .bar span{position:absolute;inset:0;text-align:center;line-height:22px;font:12px/22px system-ui;color:#f5edda;text-shadow:0 1px 2px #000;transform:none!important;z-index:1}
#app #hud .bar.resonance span{font-size:10px;line-height:15px}
#app #hud-weapon{font-size:10px!important;line-height:1.5;color:#c0b495;padding:0;display:block;margin-top:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#app .heat-track{height:3px;margin:6px 0 0;background:#384046}
#app .heat-track i{background:var(--ui18-brass);box-shadow:none}
#app .heat-track.hot i{background:var(--ui18-hurt)}
#app #heat-status{font:10px/1.6 system-ui;color:var(--ui18-muted);margin-top:3px}
#app #hud .objective{position:absolute;top:16px;left:50%;right:auto;bottom:auto;transform:translateX(-50%);width:min(31vw,440px);min-height:80px;padding:10px 14px;text-align:left;display:block}
#app #hud .objective b{font-size:16px;line-height:1.7;color:var(--ui18-bone)}
#app #hud .objective>small{font-size:11px!important;line-height:1.6;color:var(--ui18-muted)!important}
#app #hud #map-hud{position:absolute;right:18px;top:16px;width:230px;height:149px}
#app #hud #minimap{position:absolute;inset:0 0 auto;width:100%;height:124px;margin:0!important;border:1px solid #a68b5860!important;border-image:none!important;background:#10171de6!important;overflow:hidden;box-shadow:none}
#app #hud #mini-content{position:absolute;inset:7px;width:auto;height:auto;background:#10171d}
#app #hud #mini-content .expedition-map{border:0!important;background:transparent!important;width:100%;height:100%;object-fit:fill;display:block}
#app #hud #map-open{inset:0!important;width:100%!important;height:100%!important;background:none!important;border:0!important}
#app #hud #room-label{top:126px;left:0;width:100%;font-size:10px!important;color:var(--ui18-muted)!important;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#app #hud #boss-hud{top:144px;left:50%;right:auto;bottom:auto;transform:translateX(-50%);width:min(650px,47vw);max-width:none;padding:10px 17px}
#app #boss-hud>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;line-height:1.6}
#app #boss-name{font-size:17px;color:var(--ui18-bone)}
#app #boss-phase{font-size:11px;color:var(--ui18-ember)}
#app #hud #boss-hud .bar{height:17px;margin:5px 0 0}
#app #hud #boss-hud .bar span{font-size:10px;line-height:15px}
#app .boss-ticks14{position:absolute;inset:1px;z-index:2;pointer-events:none;opacity:.25;background:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),#e8ddc4 calc(25% - 1px) 25%)}
#app #hud #coop-hud{top:146px;left:18px;right:auto;width:300px;padding:11px 13px}
#app #coop-hud b{font-size:13px;color:var(--ui18-bone)}
#app #coop-hud small{font-size:10px;color:var(--ui18-muted)}
#app #hud #coop-hud .bar{height:18px;margin-top:6px}
#app #hud #coop-hud .bar span{line-height:16px;font-size:10px}
#app #hud #coop-hud .resonance{height:14px}
#app #hud #coop-hud .resonance span{line-height:12px;font-size:9px}
#app #hud .combat-bottom{position:absolute;left:18px;right:18px;bottom:14px;padding:9px 13px;gap:12px;min-height:64px;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box}
#app #hud .key-row{display:flex;gap:7px}
#app #hud .key-row button{display:flex;align-items:center;gap:5px;min-height:43px;min-width:80px;padding:6px 8px;border:1px solid #a68b5833!important;background:#1d2b31!important;font-size:12px;color:#d7d4c2}
#app #hud .key-row .art-icon{width:25px;height:25px}
#app #skill-timer{font-size:10px;color:var(--ui18-brass)}
#app #skill-control:before{background:linear-gradient(90deg,#79bdc821,transparent)!important;inset:0;width:var(--ready,100%);z-index:-1}
#app #hud .supply-hotbar{position:static;display:flex;margin-left:auto;gap:6px;transform:none}
#app #hud .supply-hotbar button{position:relative;width:39px;height:39px;min-height:39px;padding:5px;background:#1b292f!important;background-image:none!important;border:1px solid #a68b5860!important;box-shadow:none!important}
#app #hud .supply-hotbar .art-icon{width:26px;height:26px}
#app #hud .supply-hotbar kbd{top:-8px;left:-4px;font:9px/1.2 system-ui;padding:1px 3px}
#app #hud .supply-hotbar b{right:3px;bottom:1px;font:9px/1.2 system-ui}
#app #hud .battle-inventory{min-height:39px;white-space:nowrap;font-size:12px;padding:8px 12px}
#app #hud .resource-row{display:flex;align-items:center;gap:13px;color:var(--ui18-bone);font-size:12px}
#app #hud .resource-row>span{display:flex;align-items:center;gap:4px}
#app #hud .resource-row .art-icon{width:21px;height:21px}
#app #hud .resource-row .morality .art-icon{width:17px;height:17px}
#app #hud .resource-row button{font-size:11px;color:var(--ui18-muted);min-height:35px}
#app #hud #ultimate-control{position:absolute;right:18px;bottom:103px;width:218px;min-width:0;min-height:68px;padding:10px;display:flex;align-items:center;gap:9px;isolation:isolate;text-align:left}
#app #ultimate-control:before{content:'';position:absolute;inset:3px;background:#79bdc818!important;clip-path:inset(0 calc(100% - var(--oath,0%)) 0 0);z-index:-1}
#app #ultimate-control>:is(img,svg){width:42px;height:42px;filter:none!important;animation:none!important}
#app #ultimate-control span{display:flex;flex-direction:column;gap:3px}
#app #ultimate-control small,#app #ultimate-control em{font:10px/1.5 system-ui;color:var(--ui18-muted);font-style:normal}
#app #ultimate-control b{font-size:16px;color:var(--ui18-bone)}
#app #ultimate-control kbd{margin-left:auto;font-size:10px}
#app #ultimate-control.ready{border-color:var(--ui18-soul)!important}
#app #army-count{position:absolute;right:24px;bottom:178px;font:11px/1.5 system-ui;color:var(--ui18-soul)}
#app #hud #hint{position:absolute;left:50%;right:auto;bottom:105px;transform:translateX(-50%);padding:9px 16px;max-width:min(720px,63vw);font-size:14px;line-height:1.8;text-align:center}
#app #hud #loot-banner{top:240px;left:18px;padding:8px 13px;font-size:12px;max-width:300px}
#app #hud #loot-banner .gear-icon{width:36px;height:36px}
#app #hud #banter{left:50%;right:auto;bottom:190px;transform:translateX(-50%);--banter-align-x:-50%;padding:12px 20px;max-width:min(600px,64vw);gap:12px;animation:none!important}
#app #banter>img.banter-face{content:normal!important;width:74px;height:72px;object-fit:contain!important;object-position:center bottom;mask-image:linear-gradient(#000 70%,transparent);filter:none!important}
#app #banter>.visual-icon18{width:44px;height:60px}
#app #banter b{font-size:12px;color:var(--ui18-soul)}
#app #banter p{font-size:14px;line-height:1.8;color:var(--ui18-bone)}
#app #hud #field-coach{left:18px;top:245px;width:330px;max-width:36vw;padding:15px 18px;border-left:2px solid var(--ui18-soul)!important}
#app #field-coach span{font-size:11px;letter-spacing:1px;color:var(--ui18-soul)}
#app #field-coach b{font-size:16px;font-weight:500;line-height:1.8;color:var(--ui18-bone);margin:7px 0 11px}
#app #field-coach em{font-size:13px;color:#c6b58e;font-style:normal}
#app .expedition-map[data-painted-map=large]{border:1px solid #a68b5870!important;border-image:none!important;padding:9px;background:#10171d!important;max-height:330px}
#app .map-legend{color:var(--ui18-muted);font-size:11px}
#app .mission-columns h3{color:var(--ui18-bone)}
#app .mission-columns p{color:var(--ui18-muted);font-size:13px}
/* Possession overlay is functional even with the old acceptance stylesheet removed. */
#app #soul-weave16{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:18px;pointer-events:none;background:#10171d55;z-index:12}
#app #soul-weave16[hidden],#app #recruit-receipt16[hidden]{display:none!important}
#app .weave-card16{width:min(410px,90vw);padding:20px;pointer-events:auto;border-color:var(--soul,var(--ui18-soul))!important}
#app .weave-card16 header{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--ui18-bone)}
#app .weave-card16 header span{font-size:10px;color:var(--ui18-muted)}
#app .weave-card16 p{margin:10px 0;font-size:12px;line-height:1.7;color:var(--ui18-muted)}
#app .weave-slots16{display:flex;gap:12px;margin:15px 0;justify-content:center}
#app .weave-slots16 span{width:52px;height:48px;display:grid;place-items:center;border:1px solid #a68b5860;background:#10171d;font-size:16px;color:var(--ui18-muted)}
#app .weave-slots16 span.filled{color:var(--ui18-bone);border-color:var(--ui18-soul);background:#263740}
#app .weave-timer16{height:3px;background:#10171d;margin:16px 0}
#app .weave-timer16 i{display:block;height:100%;background:var(--soul,var(--ui18-soul))}
#app .weave-inputs16{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
#app .weave-inputs16 button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:42px;font-size:12px;background:#263740!important;border:1px solid #a68b5860!important}
#app .weave-inputs16 kbd{font-size:9px}
#app .weave-cancel16{margin-top:14px;min-height:34px;width:100%;font-size:11px;color:var(--ui18-muted)}
#app #recruit-receipt16{position:absolute;top:29%;left:50%;transform:translateX(-50%);padding:14px 24px;color:var(--ui18-bone);font-size:15px;z-index:11}
/* Finger targets use native square plates; no stretched raster frames remain. */
#app #touch-controls{position:absolute;inset:0;display:none;pointer-events:none}
#app.touch-mode #touch-controls{display:block}
#app #hud #touch-controls :is(.touch-actions button,.touch-move button),#app #touch-partner button{background:#1c2c34e8!important;background-image:none!important;border:1px solid #a68b5888!important;border-image:none!important;box-shadow:inset 0 1px #e8ddc40d!important;border-radius:3px!important;filter:none!important;color:var(--ui18-bone);pointer-events:auto;touch-action:none;user-select:none}
#app #hud #touch-controls button:active,#app #touch-partner button:active{background:#3c514f!important;border-color:#c7b078!important}
#app #touch-controls .touch-move{position:absolute;left:18px;bottom:24px;display:flex;gap:8px;pointer-events:auto}
#app #touch-controls .touch-move button{display:grid;place-items:center;width:62px;height:62px;padding:14px}
#app #touch-controls .touch-move svg{width:29px;height:29px}
#app #touch-controls .touch-actions{position:absolute;right:18px;bottom:19px;display:flex;align-items:flex-end;flex-wrap:wrap;gap:6px;max-width:370px;justify-content:flex-end;pointer-events:auto}
#app #touch-controls .touch-actions button{width:49px;height:49px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px;gap:2px}
#app #touch-controls .touch-actions button .art-icon{width:25px;height:25px}
#app #touch-controls .touch-actions button span{font-size:9px;line-height:1.3;color:var(--ui18-bone)}
#app #touch-controls .touch-actions .fire{width:66px;height:66px;background:#42352be8!important;border-color:#b99762!important}
#app #touch-controls .touch-actions .fire .art-icon{width:33px;height:33px}
#app #touch-controls .touch-actions .soul{background:#24414be8!important;border-color:#79bdc899!important}
#app #touch-partner{background:#10171de8;border:1px solid #a68b5844;padding:8px;gap:5px;color:var(--ui18-soul)}
#app #touch-partner button{min-width:40px;min-height:40px;padding:5px;font-size:10px}
#app #touch-partner .visual-icon18{width:22px;height:22px}
/* Loading and transient feedback use the same native contract. */
#app #load-overlay{background:#10171dfb!important;background-image:none!important;gap:15px;color:var(--ui18-bone)}
#app #load-overlay:before,#app #load-overlay:after{content:none!important;background:none!important}
#app #load-overlay .load-sigil{width:68px;height:86px;animation:none!important;filter:none!important}
#app #loading-title{font-size:25px;letter-spacing:4px;color:var(--ui18-bone)}
#app .load-quote{font-size:13px;line-height:1.9;color:var(--ui18-muted);animation:none!important}
#app .load-meta{font-size:12px;color:var(--ui18-muted)}
#app #loading-progress{font:14px/1.6 system-ui;color:var(--ui18-brass)}
#app .load-track{background:#263740;border:1px solid #a68b5840;box-shadow:none;height:5px}
#app #load-meter{background:var(--ui18-soul);box-shadow:none}
#app #toast{border:1px solid #a68b5870;background:#10171df2!important;color:var(--ui18-bone);font-size:13px;line-height:1.8;box-shadow:0 8px 30px #0005}
@keyframes ui18-enter{from{opacity:0}to{opacity:1}}
@keyframes ui18-leave{to{opacity:0}}
@keyframes ui18-echo{from{opacity:.4}to{opacity:0;scale:1.08}}
@media(max-width:1200px){
 #app #topbar{gap:16px;padding:0 2%}.wordmark small{display:none}
 #app .top-nav{gap:16px}#app #screen .home18{grid-template-columns:33% minmax(0,1fr);padding:71px 3% 0!important;gap:0 2%}
 #app .home18-brand h1{font-size:47px}#app .home18-brand h1 small{font-size:18px}
 #app .home18-row{min-height:42px;font-size:14px;gap:10px}#app .home18-row.home18-start{min-height:49px;font-size:17px}
 #app .home18-hero-rail button{padding:5px;gap:4px}#app .home18-hero-rail img{width:40px!important;max-width:40px!important;height:51px!important}#app .home18-hero-rail b{font-size:12px}#app .home18-hero-rail small{font-size:8px}
 #app .home18-footer{align-items:flex-start;padding:13px 0;gap:15px}#app .home18-footer nav{gap:7px 13px}
 #app #hud .hero-hud{width:305px;padding:10px;gap:9px}#app #hud .tiny{width:52px;min-width:52px;height:73px}
 #app #hud .objective{width:29vw;left:51%;padding:8px 11px}#app #hud .objective b{font-size:14px}#app #hud .objective>small{font-size:10px!important}
 #app #hud #map-hud{width:200px}#app #hud #minimap{height:110px}#app #hud #room-label{top:113px}
 #app #hud .combat-bottom{gap:8px;padding:8px}#app #hud .key-row button{font-size:11px;min-width:72px;padding:6px;gap:3px}#app #hud .key-row .art-icon{display:none}
 #app #hud .resource-row{gap:8px;font-size:11px}#app #hud .resource-row .morality{display:none}#app #hud .supply-hotbar button{width:35px;height:35px;min-height:35px}
}
@media(max-width:900px){
 #app .wordmark{font-size:15px}#app .top-nav{gap:12px}#app .top-nav button{font-size:11px}
 #app .top-actions{gap:5px}#app .top-actions select{max-width:90px;font-size:10px}
 #app #screen .home18{grid-template-columns:35% minmax(0,1fr);min-height:690px!important;padding-top:72px!important}
 #app .home18-brand h1{font-size:39px}#app .home18-brand h1 small{font-size:16px}#app .home18-brand p{font-size:11px}
 #app .home18-row{padding:9px;font-size:13px;letter-spacing:1px;gap:8px}#app .home18-row-number{display:none}
 #app .home18-modes button{flex-direction:column;gap:2px;font-size:9px}
 #app .home18-hero-rail{gap:5px}#app .home18-hero-rail button{flex-direction:column;padding:5px 3px;text-align:center;gap:2px}#app .home18-hero-rail .visual-icon18{display:none}#app .home18-hero-rail img{width:47px!important;max-width:47px!important;height:50px!important}#app .home18-hero-rail small{margin-top:3px}
 #app .home18-cast-caption{left:3%;bottom:6%}#app .home18-cast-caption h2{font-size:24px}
 #app .hero-grid{gap:13px}#app .hero-card .hero-info{padding:10px 15px 20px}#app .hero-info h3{font-size:22px}#app .hero-info h3 small{display:block;margin:7px 0 0}#app .hero-info p{font-size:11px}
 #app .region-tabs{overflow:auto;grid-template-columns:repeat(5,minmax(135px,1fr))}#app .region-tab{padding:12px}
 #app .level-grid{gap:13px}#app .level-info{padding:18px!important}#app .level-info h3{font-size:19px}
 #app :where(.doll-panel,.gear-inventory,.item-detail,.connection-panel,.coop-intro,.talent-detail){padding:19px}
 #app .gear-shop-card{padding:20px!important}#app .gear-shop-card h3{font-size:16px}
 #app .talent-workspace{grid-template-columns:230px minmax(0,1fr)}#app .talent-branches{gap:8px}#app .talent-node{grid-template-columns:30px 1fr;gap:7px;padding-left:7px;padding-right:7px}#app .talent-node-icon{width:30px}#app .talent-node-copy>b{font-size:12px}#app .talent-node-copy>small{font-size:10px}
}
@media(max-width:700px){
 #app #topbar{height:54px;padding:0 12px;gap:9px}#app .wordmark{font-size:14px;letter-spacing:1px;gap:5px}#app .wordmark .wordmark-emblem{width:22px;height:22px}
 #app .wordmark small,#app .top-nav{display:none}#app .top-actions{margin-left:auto}#app .top-actions button{width:31px;height:31px;padding:6px}#app .top-actions select{max-width:87px;min-height:31px;padding:5px}
 #app #screen,#app[data-page=story] #screen{inset:54px 0 0}#app[data-page=home] #screen{inset:0}
 #app .page{padding:22px 18px 25px}#app .page-head{gap:12px;flex-wrap:wrap;padding-bottom:18px;margin-bottom:20px}#app .page-sub{font-size:12px}#app .page h2{font-size:27px;letter-spacing:2px}
 #app .page-head>.back{font-size:11px;padding:8px 12px;min-height:37px}#app .page-foot .foot-note{order:3;width:100%;font-size:11px}
 #app #screen .home18{grid-template-columns:1fr;grid-template-rows:auto auto auto;gap:0;height:auto!important;min-height:100%!important;padding:0 20px!important;overflow:hidden;background-position:62% top!important;background-size:auto 480px!important;background-color:var(--ui18-ink)!important}
 #app .home18-atmosphere{background:linear-gradient(0deg,#10171d 39%,#10171d22 86%),linear-gradient(90deg,#10171dc9,transparent 70%)}
 #app .home18-left{grid-row:2;max-width:none;align-self:auto;padding:0 0 16px}
 #app .home18-brand{position:absolute;top:-273px;left:0;max-width:52vw;pointer-events:none}
 #app .home18-brand .eyebrow{font-size:6px;letter-spacing:1px}#app .home18-brand h1{font-size:34px;line-height:1.3;letter-spacing:2px}#app .home18-brand h1 small{font-size:13px;letter-spacing:6px;margin-top:6px}#app .home18-brand p{font-size:10px;max-width:140px;line-height:1.8;margin-top:11px}
 #app .home18-stage{grid-row:1;padding-top:49px;height:348px}
 #app .home18-cast{min-height:220px;height:220px;flex:1}
 #app #menu-cast18{height:110%;width:95%;left:18%;right:auto;bottom:-9%;object-position:bottom}
 #app .home18-cast-caption{display:none}
 #app .home18-hero-rail{margin:0 0 16px;gap:7px}
 #app .home18-hero-rail button{min-height:60px;flex-direction:row;gap:5px;padding:3px;text-align:left}
 #app .home18-hero-rail img{height:48px!important;width:37px!important;max-width:37px!important}
 #app .home18-hero-rail b{font-size:12px}#app .home18-hero-rail small{font-size:8px;max-height:26px;overflow:hidden}
 #app .home18-menu{grid-template-columns:1fr 1fr;gap:7px}
 #app .home18-row,#app .home18-row.home18-start{min-height:45px;font-size:13px;padding:9px 11px;gap:7px;margin:0;letter-spacing:1px}
 #app .home18-row .art-icon{width:19px;height:19px}#app .home18-row .home18-row-arrow{display:none}
 #app .home18-modes{margin-top:13px;gap:7px}#app .home18-modes button{min-height:44px;flex-direction:row;font-size:10px;gap:5px}
 #app .home18-mode-note{font-size:10px;text-align:center}#app .home18-partner{justify-content:center}
 #app .home18-footer{display:block;min-height:110px;padding:15px 0 22px;font-size:9px}
 #app .home18-footer>div{justify-content:space-between;margin-bottom:10px;gap:7px}#app .home18-footer nav{justify-content:flex-start;gap:5px 16px}#app .home18-footer :is(button,a){min-height:29px;font-size:10px}
 #app .hero-grid{grid-template-columns:1fr;gap:16px}#app #screen .hero-card{display:grid;grid-template-columns:43% 1fr;min-height:300px}#app .hero-card .portrait{height:100%;min-height:300px}#app .hero-card .hero-info{padding:32px 17px 22px 0}#app .hero-info h3{font-size:25px}#app .hero-info p{min-height:0;font-size:12px}#app .hero-info h3 small{font-size:10px}#app .hero-stats{flex-wrap:wrap;gap:9px;font-size:9px}#app .selection-mark{font-size:8px;right:12px;top:11px}
 #app .level-grid{grid-template-columns:1fr}#app .region-art{height:190px}#app .level-info{padding:21px!important}#app .level-info p{font-size:12px}
 #app .story-collection{grid-template-columns:1fr}#app .archive-art14{height:190px}
 #app .equipment-layout{grid-template-columns:1fr}#app .doll-panel,#app .item-detail,#app .talent-detail{position:relative;top:auto}#app .doll-panel{max-width:none}#app .item-detail{grid-column:auto;display:block}#app .item-detail .gear-icon.large{width:100%;height:180px;aspect-ratio:auto}#app .gear-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#app .gear-card{padding:6px 3px!important}#app .gear-card>span:not(.gear-icon){font-size:9px}#app .gear-note{font-size:11px}
 #app .gear-shop-grid,#app .starter-grid14,#app .codex-grid{grid-template-columns:1fr 1fr;gap:12px}#app .gear-shop-card,#app .codex-card{padding:19px 13px!important}#app .gear-shop-card h3,#app .codex-card h3{font-size:16px}#app .gear-shop-card p,#app .codex-card p{font-size:11px}#app .gear-shop-card>.gear-icon{height:120px}#app .codex-card canvas{height:170px}
 #app .supply-grid,#app .achievement-grid,#app .relic-shelf13{grid-template-columns:1fr;gap:16px}#app .supply-card{padding:22px!important;grid-template-columns:90px 1fr;gap:6px 17px}#app .supply-art{min-height:135px;height:100%;grid-row:span 5}#app .supply-art .art-icon{width:65px;height:65px}#app .supply-card h3{font-size:22px}#app .supply-card>p{font-size:12px}#app .achievement-card{padding:22px!important}
 #app .talent-workspace{grid-template-columns:1fr}#app .talent-detail{display:grid;grid-template-columns:90px 1fr;gap:0 13px;padding:20px}#app .talent-branches{display:flex;overflow-x:auto;gap:12px}#app .talent-branch{flex:0 0 min(78vw,310px);padding:18px 13px}#app .talent-node{grid-template-columns:40px 1fr;gap:9px;padding:20px 11px 30px}#app .talent-node-icon{width:40px}#app .talent-node-copy>b{font-size:14px}#app .talent-node-copy>small{font-size:12px}#app .talent-tree-tabs{gap:9px}#app .talent-tree-tabs>button{padding:12px;grid-template-columns:25px 1fr}#app .talent-tree-tabs b{font-size:15px}
 #app .modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:27px 20px}#app .modal h2{font-size:25px}#app .control-grid{grid-template-columns:1fr 1fr;gap:8px}#app .control-grid>div{padding:12px!important}#app .control-grid kbd{font-size:10px}#app .modal-actions{gap:8px}#app .modal-actions button{flex:1 1 40%;font-size:12px;padding:10px}
 #app .instruction{padding:14px 16px!important;font-size:12px}#app .training-preview{padding:16px!important;gap:12px}#app .training-preview h3{font-size:20px}#app .training-preview p{font-size:11px}#app .training-preview .art-icon{width:42px;height:42px}
 #app .coop-layout{grid-template-columns:1fr}#app .connection-panel,#app .coop-intro{padding:23px}#app .coop-intro h3{font-size:29px}#app .cloud-versions{grid-template-columns:1fr}
 #app .story-intro{padding:20px 5% 22px}#app .story-chapter{left:5%;right:5%;top:20px;font-size:12px}#app .story-cast{inset:70px -10% 22%}#app .story-actor{width:78%}#app .story-actor:not(.speaking){opacity:.1}#app .story-box{padding:20px!important;min-height:250px}#app .story-box h3{font-size:23px}#app .story-box p{font-size:18px;line-height:1.85;min-height:108px}#app .story-controls{gap:9px}#app .story-controls button{font-size:11px;padding:9px 12px}#app .story-actor.communication{width:130px;height:190px;left:calc(50% - 65px)}
 #app .result-grid{grid-template-columns:repeat(2,1fr)}#app .result-grid b{font-size:24px}
 #app .narrative-line.with-portrait{grid-template-columns:60px 1fr;gap:10px}#app .narrative-line.with-portrait img{width:60px;height:85px}#app .narrative-line p{font-size:13px}
}
@media(max-width:800px),(max-height:570px) and (orientation:landscape){
 #app #hud .hero-hud{top:8px;left:8px;width:246px;min-height:93px;padding:8px;gap:7px}#app #hud .tiny{width:41px;min-width:41px;height:61px}#app .hud-name{margin-bottom:3px}#app .hud-name b{font-size:13px}#app .hud-name small{font-size:9px}
 #app #hud .bar{height:20px}#app #hud .bar span{font-size:10px;line-height:18px}#app #hud .bar.resonance{height:14px;margin-top:3px}#app #hud .bar.resonance span{font-size:9px;line-height:12px}#app #hud-weapon{display:none!important}#app #heat-status{font-size:9px}#app .heat-track{margin-top:4px}
 #app #hud .objective{top:8px;left:calc(50% + 32px);width:27vw;min-height:66px;padding:6px 8px}#app #hud .objective b{font-size:12px}#app #hud .objective>small{font-size:9px!important}#app #hud .objective :is(#host-status,#mission-state,#checkpoint-status){display:none!important}
 #app #hud #map-hud{right:8px;top:8px;width:140px;height:101px}#app #hud #minimap{height:78px}#app #hud #mini-content{inset:5px}#app #hud #room-label{top:80px;font-size:9px!important}
 #app #hud #boss-hud{top:112px;width:43vw;padding:7px 10px}#app #boss-name{font-size:13px}#app #boss-phase{font-size:9px}#app #hud #boss-hud .bar{height:13px}#app #hud #boss-hud .bar span{line-height:11px;font-size:8px}
 #app #hud #coop-hud{top:112px;left:8px;width:205px;padding:7px 10px}#app #coop-hud b{font-size:11px}#app #coop-hud small{font-size:8px}#app #hud #coop-hud .bar{height:15px}#app #hud #coop-hud .bar span{font-size:9px;line-height:13px}#app #hud #coop-hud .resonance{height:12px}#app #hud #coop-hud .resonance span{font-size:8px;line-height:10px}
 #app #hud .combat-bottom{left:27%;right:27%;bottom:5px;padding:4px 6px;gap:6px;min-height:35px}#app #hud .key-row,#app #hud .supply-hotbar{display:none!important}#app #hud .resource-row{font-size:10px;gap:5px}#app #hud .resource-row .art-icon{width:15px;height:15px}#app #hud .resource-row button{font-size:9px;padding:3px;min-height:27px}#app #hud .resource-row .morality{display:none}#app #hud .battle-inventory{font-size:10px;padding:5px 7px;min-height:29px}
 #app #hud #ultimate-control{right:9px;bottom:114px;width:165px;min-height:51px;padding:6px;gap:5px}#app #ultimate-control>:is(img,svg){width:32px;height:32px}#app #ultimate-control b{font-size:12px}#app #ultimate-control small,#app #ultimate-control em{font-size:9px}#app #ultimate-control kbd{display:none}#app #army-count{right:13px;bottom:171px;font-size:9px}
 #app #hud #hint{bottom:75px;max-width:52vw;font-size:11px;line-height:1.6;padding:7px 10px}#app #hud #field-coach{left:10px;top:115px;width:260px;max-width:36vw;padding:10px 13px}#app #field-coach span{font-size:10px}#app #field-coach b{font-size:13px;margin:5px 0 7px}#app #field-coach em{font-size:11px}
 #app #hud #banter{bottom:187px;max-width:70vw;padding:10px 15px;gap:9px}#app #banter>img.banter-face{width:48px;height:56px}#app #banter b{font-size:10px}#app #banter p{font-size:11px}#app #hud #loot-banner{top:205px;left:9px;max-width:230px;font-size:10px;padding:6px 9px}
 #app #touch-controls .touch-actions{right:10px;bottom:12px;gap:5px;max-width:280px}#app #touch-controls .touch-actions button{width:44px;height:44px}#app #touch-controls .touch-actions .fire{width:59px;height:59px}#app #touch-controls .touch-actions button span{font-size:8px}#app #touch-controls .touch-move{left:12px;bottom:18px;gap:7px}#app #touch-controls .touch-move button{width:56px;height:56px}
 #app #touch-partner{top:215px;left:8px;right:auto;max-width:220px;flex-wrap:wrap}#app #touch-partner button{min-height:35px;min-width:35px}
}
@media(max-width:540px) and (orientation:portrait){
 #app.battle #world{top:146px;bottom:auto;height:auto;aspect-ratio:16/9;object-fit:contain}
 #app #hud .hero-hud{top:57px;left:12px;width:calc(100% - 24px);min-height:80px;height:80px;padding:6px 9px;gap:8px}#app #hud .tiny{width:42px;min-width:42px;height:62px}#app .hud-name b{font-size:13px}#app .hud-name small{font-size:9px}#app .hud-name{margin-bottom:2px}#app #hud .bar{height:19px}#app #hud .bar span{line-height:17px}#app #hud .bar.resonance{height:13px}#app #hud .bar.resonance span{line-height:11px}#app #heat-status{font-size:9px;line-height:12px;margin-top:2px}
 #app #hud #map-hud{top:calc(146px + 56.25vw + 7px);right:12px;width:125px;height:96px}#app #hud #minimap{height:74px}#app #hud #room-label{top:76px;font-size:9px!important}
 #app #hud .objective{top:calc(146px + 56.25vw + 7px);left:12px;transform:none;width:calc(100% - 155px);min-height:76px;padding:8px;text-align:left}#app #hud .objective b{font-size:12px}#app #hud .objective #area-label{font-size:9px!important}
 #app #hud #boss-hud{top:calc(146px + 56.25vw - 42px);width:84%;left:50%;padding:5px 9px}#app #boss-name{font-size:11px}#app #boss-phase{font-size:8px}#app #hud #boss-hud .bar{height:10px}#app #hud #boss-hud .bar span{font-size:7px;line-height:8px}
 #app #hud .combat-bottom{left:12px;right:12px;bottom:145px;min-height:34px;padding:3px 6px}#app #hud .resource-row{margin-left:auto;font-size:10px}
 #app #hud #ultimate-control{right:12px;bottom:189px;width:160px}#app #army-count{bottom:246px;right:16px}
 #app #hud #hint{bottom:250px;max-width:90vw;font-size:11px}#app #hud #field-coach{top:calc(146px + 56.25vw + 95px);left:12px;width:calc(100% - 24px);max-width:none;padding:11px 14px}
 #app #hud #banter{left:12px;right:12px;bottom:267px;transform:none;max-width:none;width:auto;padding:11px 14px}#app #banter>img.banter-face{width:40px;height:53px}#app #banter p{font-size:12px}
 #app #hud #coop-hud{top:calc(146px + 56.25vw + 94px);left:12px;width:calc(100% - 24px);padding:8px 12px}#app #hud #loot-banner{top:calc(146px + 56.25vw - 1px);left:14px;font-size:9px;max-width:87%}
 #app #touch-controls .touch-actions{display:grid;grid-template-columns:repeat(3,44px) 54px;grid-template-rows:repeat(2,44px);width:201px;max-width:none;gap:5px;bottom:14px;right:10px}
 #app #touch-controls .touch-actions button{width:44px;height:44px;min-height:44px;padding:4px}#app #touch-controls .touch-actions .fire{grid-column:4;grid-row:1/span 2;width:54px;height:93px}#app #touch-controls .touch-actions .art-icon{width:23px;height:23px}#app #touch-controls .touch-actions .fire .art-icon{width:31px;height:31px}
 #app #touch-controls .touch-move{left:10px;bottom:34px;gap:7px}#app #touch-controls .touch-move button{width:52px;height:58px;padding:12px}
 #app #touch-partner{top:auto;bottom:113px;left:12px;right:12px;max-width:none;gap:4px;padding:4px;justify-content:center}#app #touch-partner button{min-height:31px;min-width:30px;font-size:9px}
 #app.battle.coaching #hud :is(#map-hud,.objective,#ultimate-control,#hint){display:none!important}
 #app.battle.coaching #hud #field-coach{top:calc(146px + 56.25vw + 9px);min-height:98px}
 #app .weave-card16{padding:15px;width:calc(100vw - 28px)}#app .weave-card16 header{font-size:12px}#app .weave-inputs16 button{min-height:44px;font-size:12px}#app .weave-slots16{margin:12px 0}
}
@media(max-height:570px) and (orientation:landscape){
 #app #topbar{height:43px}#app #screen,#app[data-page=story] #screen{inset:43px 0 0}#app[data-page=home] #screen{inset:0}
 #app #screen .home18{grid-template-columns:31% minmax(0,1fr);grid-template-rows:1fr auto;min-height:100%!important;height:100%!important;padding:43px 3% 0!important;gap:0 3%;background-size:cover!important;background-position:center!important}
 #app .home18-left{grid-row:auto;align-self:center;padding:0 0 10px;max-width:300px}#app .home18-brand{position:static;max-width:none}#app .home18-brand .eyebrow{font-size:6px;letter-spacing:1px}#app .home18-brand h1{font-size:29px;line-height:1.2}#app .home18-brand h1 small{font-size:11px;letter-spacing:5px;margin-top:3px}#app .home18-brand p{display:none}
 #app .home18-menu{grid-template-columns:1fr;gap:3px;margin-top:13px}#app .home18-row,#app .home18-row.home18-start{min-height:29px;padding:5px 9px;font-size:11px;gap:9px;letter-spacing:1px}#app .home18-row.home18-start{min-height:33px;font-size:13px}#app .home18-row .art-icon{width:16px;height:16px}#app .home18-row-number{display:none}
 #app .home18-modes{margin-top:9px;gap:4px}#app .home18-modes button{min-height:30px;flex-direction:row;gap:3px;font-size:8px;padding:4px 2px}#app .home18-modes .art-icon{width:15px;height:15px}#app .home18-mode-note{margin-top:4px;font-size:8px;text-align:left}#app .home18-partner{margin-top:3px;font-size:8px}#app .home18-partner button{min-height:23px;font-size:8px;padding:3px 6px}#app .home18-connect{min-height:26px;font-size:9px;padding:5px;margin-top:5px}
 #app .home18-stage{grid-row:auto;height:auto;min-height:0;padding:0}#app .home18-cast{min-height:160px;max-height:none}#app #menu-cast18{height:112%;width:112%;left:-6%;bottom:-8%}#app .home18-cast-caption{display:block;left:7%;bottom:8%}#app .home18-cast-caption h2{font-size:21px}#app .home18-cast-caption>span{font-size:7px}#app .home18-cast-caption small{font-size:9px}
 #app .home18-hero-rail{margin-bottom:8px;gap:6px}#app .home18-hero-rail button{flex-direction:row;min-height:47px;padding:3px 6px;gap:6px;text-align:left}#app .home18-hero-rail img{width:34px!important;max-width:34px!important;height:40px!important}#app .home18-hero-rail b{font-size:11px}#app .home18-hero-rail small{font-size:7px;margin-top:2px}#app .home18-hero-rail .visual-icon18{display:none}
 #app .home18-footer{display:flex;align-items:center;min-height:31px;padding:4px 0;gap:10px}#app .home18-footer>div{gap:9px;margin:0}#app .home18-footer small,#app .preview-label18{font-size:7px}#app .home18-footer nav{gap:4px 10px}#app .home18-footer :is(button,a){font-size:8px;min-height:24px}
 #app.touch-mode.battle #topbar{display:none}#app.touch-mode.battle #world{top:0;bottom:0;height:100%}
 #app #hud #boss-hud{top:7px;width:37vw}#app #hud .objective{top:107px;left:9px;transform:none;width:220px;min-height:50px;padding:6px 9px}#app #hud #coop-hud{top:160px;left:9px;width:220px}#app #hud #field-coach{top:109px;left:9px;max-width:31vw}#app.battle.coaching #hud #ultimate-control{display:none}
 #app #hud #banter{bottom:83px;max-width:48vw;padding:8px 13px}#app #banter p{font-size:10px}#app #banter>img.banter-face{width:35px;height:44px}
 #app #hud #ultimate-control{bottom:108px}#app #army-count{bottom:166px}
 #app .story-intro{padding:12px 6% 13px}#app .story-chapter{top:11px;font-size:11px}#app .story-cast{inset:35px 0 6%}#app .story-actor{width:45%}#app .story-box{padding:13px 23px!important;min-height:152px}#app .story-box h3{font-size:20px}#app .story-box p{font-size:15px;line-height:1.8;min-height:46px;margin:6px 0 8px}#app .story-controls button{min-height:34px;padding:7px 12px;font-size:10px}#app .story-box:after{top:8px}
 #app .modal{max-height:calc(100dvh - 20px);padding:22px}#app .modal h2{font-size:24px}#app .modal-lead{font-size:12px;margin-bottom:15px}#app .instruction{font-size:11px;margin:15px 0}#app .page{padding-top:20px}
 #app .weave-card16{padding:13px;width:350px}#app .weave-card16 p{margin:7px 0;font-size:11px}#app .weave-slots16{margin:9px 0;gap:8px}#app .weave-slots16 span{height:35px;width:43px}#app .weave-timer16{margin:10px 0}#app .weave-inputs16 button{min-height:34px}#app .weave-cancel16{margin-top:7px;min-height:26px}
}
@media(prefers-reduced-motion:reduce){
 #app *,#app *:before,#app *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 #app .story-intro:before,#app .story-actor{transform:none!important}
}
