/* Current lobby / mercenary archive / forge UI tokens. */
@font-face{font-family:TFNoto;src:url('../assets/fonts/lich-raid/NotoSansKR-lich-v1.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:TFBarlow;src:url('../assets/fonts/lich-raid/BarlowCondensed-lich-v1.woff2') format('woff2');font-weight:600;font-display:swap}
/* Image-generated controls; the live text and native buttons remain accessible. */
.tw4-dock-button[data-tw4-drawer="loadout"]{background:transparent url('../assets/ui/territory-war/formation-v1/button-secondary-v2.webp') center/100% 100% no-repeat!important;border:0!important;clip-path:none;color:#f5e4be}
.tf-shell,.tf-squad{--tf-gold:#c8ff6b;--tf-ink:#080c17;--tf-line:#28324a;color:#f3f5ff;font-family:TFNoto,'Noto Sans KR',sans-serif;font-synthesis:none;box-sizing:border-box}
.tf-shell *,.tf-squad *{box-sizing:border-box}.tf-shell{min-height:100dvh;background:#080c17}.tf-shell h1,.tf-shell h2,.tf-shell h3,.tf-shell p,.tf-squad h2,.tf-squad p{margin:0}.tf-shell button,.tf-squad button{font:inherit;touch-action:manipulation}.tf-shell [hidden]{display:none!important}
.tf-header{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:96px;padding:20px max(28px,calc((100vw - 1360px)/2));border-bottom:1px solid var(--tf-line);background:#080c17}.tf-brand{display:flex;align-items:center;gap:16px}.tf-brand>span{font-size:45px;color:var(--tf-gold);font-weight:400}.tf-brand small{font-size:10px;letter-spacing:.21em;color:#8b97b0}.tf-brand h1{font-size:24px;letter-spacing:-.8px;font-weight:700;margin-top:5px}.tf-header-controls{display:flex;gap:12px;flex-shrink:0}.tf-main{max-width:1416px;margin:auto;padding:0 28px}.tf-phases{display:flex;list-style:none;margin:0;padding:0;border-bottom:1px solid var(--tf-line)}.tf-phases li{flex:1;display:flex;align-items:center;gap:10px;padding:23px 12px;position:relative;color:#788698;font-size:12px}.tf-phases li span{font-size:11px;letter-spacing:.1em;color:#6f7380}.tf-phases li.is-current{color:#c8ff6b}.tf-phases li.is-current span,.tf-phases li.is-complete{color:#c8ff6b}.tf-phases li.is-current:after{content:'';position:absolute;bottom:-1px;height:2px;left:12px;right:24px;background:#c8ff6b}
.tf-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:40px;align-items:center;min-height:570px;padding:40px 36px;margin:20px 0 30px;background:#101826 url('../assets/ui/territory-war/formation-v1/command-sanctum.webp') center/cover;border:1px solid #34425b}.tf-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#050a14dd 0%,#080c1766 46%,#060b1429 66%,#060b1499),linear-gradient(0deg,#080c17b0,transparent 35%)}.tf-kicker{display:block;color:#c8ff6b;font-size:10px;letter-spacing:.28em}.tf-hero-copy{padding:15px 0 22px;align-self:center}.tf-hero-copy h2{font-family:TFNoto,'Noto Sans KR',sans-serif;font-size:clamp(36px,4.2vw,62px);font-weight:500;letter-spacing:-2px;line-height:1.25;word-break:keep-all;max-width:650px;margin:22px 0 24px;text-shadow:0 2px 30px #000}.tf-hero-copy p{color:#c2cce0;font-size:15px;line-height:1.9;word-break:keep-all}.tf-hero-caption{display:flex;gap:35px;margin-top:68px}.tf-hero-caption>span{font:32px TFBarlow,'Barlow Condensed',sans-serif;color:#f3f5ff;display:flex;gap:10px;align-items:baseline}.tf-hero-caption small{font:11px TFNoto,'Noto Sans KR',sans-serif;color:#c7c9cd}
.tf-entry{padding:26px 24px 22px;border:1px solid #45556b;background:linear-gradient(140deg,#111b29ed,#080e19f5);box-shadow:0 20px 45px #0005}.tf-entry-top{display:flex;justify-content:space-between;gap:10px;padding-bottom:19px;margin-bottom:22px;border-bottom:1px solid var(--tf-line);font-size:10px;color:#a7b2c2;line-height:1.5}.tf-entry-top span{overflow-wrap:anywhere}.tf-entry-top i{font:normal 9px TFBarlow,'Barlow Condensed',sans-serif;letter-spacing:.08em;color:#edc57b;padding-top:2px}.tf-entry>small{color:#8b97b0;font-size:9px;letter-spacing:.2em}.tf-entry h3{font-size:24px;font-weight:700;letter-spacing:-.9px;margin:8px 0 12px;overflow-wrap:anywhere}.tf-entry>p{color:#a8b5c6;font-size:12px;line-height:1.9;word-break:keep-all;min-height:46px}.tf-countdown{margin:22px 0 17px;display:flex;flex-direction:column;gap:9px}.tf-countdown>span{font-size:10px;color:#8798ae}.tf-countdown time{font-size:32px;color:#c8ff6b;letter-spacing:1.5px;font-variant-numeric:tabular-nums;line-height:1.2}.tf-roster-count{display:flex;justify-content:space-between;align-items:baseline;color:#a9b5c6;font-size:11px}.tf-roster-count b{font-size:23px;color:#e7edf3;font-weight:600}.tf-roster-count small{font-size:11px;margin-left:4px;color:#9babbc}.tf-entry meter{width:100%;height:4px;display:block;margin:10px 0;appearance:none;border:0;background:#263041}.tf-entry meter::-webkit-meter-bar{background:#263041;border:0}.tf-entry meter::-webkit-meter-optimum-value{background:#c8ff6b}.tf-minimum{display:block;color:#b8c6a2;font-size:10px}.tf-entry-actions{display:grid;gap:8px;margin-top:20px}.tf-off-seal{display:flex;align-items:center;justify-content:center;gap:13px;color:#8b97b0;border-block:1px solid var(--tf-line);margin:26px 0;padding:26px 0}.tf-off-seal span{font-size:35px}.tf-off-seal b{font-size:13px;font-weight:500}
.tf-shell .tf-button,.tf-squad .tf-button,.tf-shell [data-tw3-claim]{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:16px 22px 12px;border:0;border-radius:0;color:#fff7e8;background:transparent url('../assets/ui/territory-war/formation-v1/button-secondary-v2.webp') center/100% 100% no-repeat;box-shadow:none;cursor:pointer;font-size:13px;font-weight:700;text-shadow:0 1px 4px #000;transition:filter .16s,transform .16s;line-height:1.4}.tf-shell .tf-button--primary,.tf-squad .tf-button--primary,.tf-shell [data-tw3-claim]{background-image:url('../assets/ui/territory-war/formation-v1/button-primary-v2.webp')}.tf-shell .tf-button--danger,.tf-squad .tf-button--danger{background-image:url('../assets/ui/territory-war/formation-v1/button-danger-v2.webp');min-height:56px;padding-top:12px}.tf-shell .tf-button--square{width:46px;height:46px;min-height:46px;padding:0;background-image:url('../assets/ui/territory-war/formation-v1/button-square-v2.webp');font-size:25px;font-weight:400}.tf-shell button:hover:not(:disabled),.tf-squad button:hover:not(:disabled){filter:brightness(1.2);transform:translateY(-1px)}.tf-shell button:active:not(:disabled),.tf-squad button:active:not(:disabled){transform:translateY(1px);filter:brightness(.95)}.tf-shell button:disabled,.tf-squad button:disabled{opacity:.48;filter:saturate(.35);cursor:not-allowed}.tf-shell button:focus-visible,.tf-squad button:focus-visible{outline:2px solid #ffe1a1;outline-offset:4px}.tf-shell [data-tw3-claim]{max-width:300px}.tf-shell .tw3-reward button{background-color:transparent;border:0;box-shadow:none}
.tf-section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}.tf-section-heading small{font-size:9px;letter-spacing:.19em;color:#8b97b0}.tf-section-heading h2{font-size:21px;font-weight:600;letter-spacing:-.7px;margin-top:7px}.tf-section-heading>span{font-size:10px;color:#c8ff6b;white-space:nowrap}.tf-faction-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.tf-faction{position:relative;isolation:isolate;min-height:181px;padding:27px 22px 25px 205px;border:1px solid #365b704d;background:linear-gradient(110deg,#142a3d90,#0a1522);overflow:hidden;color:#88d9ef}.tf-faction.side-b{border-color:#9445594d;background:linear-gradient(110deg,#33203590,#190e1e);color:#f39d9c}.tf-faction.is-mine{border-color:#cfb075a0}.tf-faction>img{position:absolute;left:10px;bottom:-6px;width:185px;height:185px;object-fit:contain;z-index:-1}.tf-faction small{font-size:9px;letter-spacing:.16em}.tf-faction h3{font-size:28px;letter-spacing:-.8px;font-weight:600;margin:5px 0 10px;color:#f4f0e7;overflow-wrap:anywhere}.tf-faction p{font-size:12px;color:#b9c2cf;line-height:1.6}.tf-faction div>span{display:inline-block;font-size:10px;color:#8b97b0;margin-top:12px;line-height:1.6}.tf-ruleline{display:flex;gap:24px;margin-top:27px;padding:22px 0;border-block:1px solid var(--tf-line);color:#7f8da8}.tf-ruleline span{flex:1;font:12px TFBarlow,'Barlow Condensed',sans-serif}.tf-ruleline b{font:500 12px TFNoto,'Noto Sans KR',sans-serif;color:#d9dce3;margin-left:10px}.tf-policy{font-size:11px;color:#8e9caf;line-height:1.9;margin-top:16px!important;word-break:keep-all}.tf-footer{display:flex;justify-content:space-between;gap:20px;padding:27px 0;color:#7d889a;font-size:10px;line-height:1.7}.tf-footer span:first-child{color:#8b97b0}.tf-reward-wrap{margin-top:25px}.tf-shell .tw3-reward{border-radius:0;border-color:var(--tf-line);background:#17160f}.tf-shell .tw3-reward-items{flex-wrap:wrap}
.tf-squad{background:#111828;padding:27px;min-width:0}.tf-squad--embedded{margin-top:28px;border:1px solid var(--tf-line);display:grid;grid-template-columns:1fr 1fr;gap:0 32px}.tf-squad--embedded .tf-section-heading{grid-column:1/-1}.tf-squad-hero{position:relative;min-height:160px;border-bottom:1px solid var(--tf-line);padding-bottom:15px;overflow:hidden}.tf-squad-citadel{position:absolute;right:0;bottom:-8px;width:160px;height:160px;object-fit:contain}.tf-squad .tw4-my-team{position:relative;background:none;border:0;box-shadow:none;padding:18px 155px 0 0;min-width:0}.tf-squad .tw4-my-team:before{display:none}.tf-squad .tw4-my-team-name{font-size:28px!important}.tf-squad .tw4-my-team-hint{font-size:11px;line-height:1.8}.tf-squad .tw4-my-team-eyebrow{flex-wrap:wrap;gap:8px}.tf-team-name{padding:18px 160px 0 0}.tf-team-name small{display:block;font-size:10px;color:#8b97b0}.tf-team-name strong{display:block;font-size:28px;line-height:1.3;margin:10px 0;color:#c8ff6b;overflow-wrap:anywhere}.tf-team-name p{font-size:11px;color:#9fadc0;line-height:1.7}.tf-power{padding:24px 0;border-bottom:1px solid var(--tf-line)}.tf-power>span{font-size:11px;color:#8b97b0}.tf-power strong{display:block;font-size:38px;font-weight:500;color:#f3f5ff;letter-spacing:-1px;margin:8px 0 6px;overflow-wrap:anywhere}.tf-power small{font-size:10px;color:#8194ac}.tf-readiness{display:flex;justify-content:space-between;gap:20px;padding:22px 0 16px;align-items:center}.tf-readiness small{display:block;font-size:10px;color:#8b97b0}.tf-readiness b{display:block;font-size:14px;margin:6px 0;color:#e6e9ed}.tf-readiness span{font-size:10px;color:#99a9bd;line-height:1.7}.tf-readiness>strong{font-size:28px;color:#c8ff6b;white-space:nowrap}.tf-readiness>strong small{display:inline;font-size:13px;color:#758399}.tf-five-slots{display:flex;gap:8px;margin-bottom:22px}.tf-five-slots i{flex:1;min-height:75px;border:1px solid #334052;background:linear-gradient(145deg,#182536,#0d1725);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;color:#536073;font-style:normal}.tf-five-slots i span{font-size:8px;letter-spacing:.12em}.tf-five-slots i b{font-size:28px;font-weight:400}.tf-five-slots i.is-filled{border-color:#b99a5759;color:#c8ff6b;background:linear-gradient(145deg,#34302075,#0d1725)}.tf-squad-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--tf-line);padding:20px 0;gap:15px;margin:0}.tf-squad-stats dt{font-size:10px;color:#9babbd}.tf-squad-stats dd{font-size:18px;color:#e4e4e4;margin:9px 0 0;overflow-wrap:anywhere}.tf-squad-stats small,.tf-squad-stats em{font-size:10px;font-style:normal;color:#8594ab}.tf-squad-stats em{display:block;margin-top:3px}.tf-squad-footer{margin-top:22px}.tf-squad-footer p{font-size:11px;color:#9aabc1;line-height:1.9;word-break:keep-all;margin-bottom:16px}.tf-squad-footer .tf-button{max-width:360px;margin:auto}.tf-squad--embedded .tf-squad-footer{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:24px}.tf-squad--embedded .tf-squad-footer p{margin:0}.tf-squad--embedded .tf-squad-footer button{flex:0 0 280px;margin:0}.tf-squad--embedded .tf-readiness{grid-column:1}.tf-squad--embedded .tf-five-slots{grid-column:2;grid-row:3;margin:20px 0}.tf-squad--embedded .tf-squad-stats{grid-column:1/-1}
.tw4-drawer[data-type="loadout"]{width:min(760px,100vw);max-width:100vw;background:#111828;border-color:#c0a26a66}.tw4-drawer[data-type="loadout"]>.tw4-drawer-content{padding:0}.tw4-drawer[data-type="loadout"]>header{background:#111828;border-color:#c0a26a44}.tw4-drawer[data-type="loadout"]>header button{background:transparent url('../assets/ui/territory-war/formation-v1/button-square-v2.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:none;width:46px;height:46px;color:#fff}.tw4-drawer[data-type="loadout"]>header small{color:#8b97b0}.tw4-drawer[data-type="loadout"] .tf-button{border:0}
@media(min-width:1100px){.tf-shell[data-twf-status="OFF"] .tf-hero{min-height:650px}}
@media(max-width:1000px){.tf-hero{gap:24px;padding:28px 24px;grid-template-columns:minmax(0,1fr) 300px}.tf-faction{padding-left:150px}.tf-faction>img{width:145px;height:155px;left:2px}.tf-faction h3{font-size:24px}.tf-main{padding:0 20px}.tf-hero-caption{gap:24px}.tf-hero-copy h2{font-size:42px}}
@media(max-width:700px){.tf-header{min-height:82px;padding:16px}.tf-brand{gap:9px}.tf-brand>span{font-size:33px}.tf-brand small{font-size:7px;letter-spacing:.12em}.tf-brand h1{font-size:19px;margin-top:6px}.tf-header-controls{gap:5px}.tf-shell .tf-button--square{width:42px;height:44px;min-height:44px}.tf-main{padding:0 14px}.tf-phases li{padding:18px 4px;flex-direction:column;gap:7px;font-size:10px}.tf-phases li span{font-size:9px}.tf-phases li.is-current:after{left:4px;right:4px}.tf-hero{grid-template-columns:1fr;gap:15px;padding:25px 18px 18px;margin-top:15px;min-height:0;background-position:57% top;background-size:auto 570px;background-repeat:no-repeat}.tf-hero:before{background:linear-gradient(0deg,#080c17 10%,#080c17d9 42%,#080c1766 80%,#080c1788)}.tf-hero-copy{padding:13px 4px 18px;min-height:245px}.tf-kicker{font-size:8px;letter-spacing:.22em}.tf-hero-copy h2{font-size:38px;letter-spacing:-1.5px;max-width:310px;margin:16px 0 19px}.tf-hero-copy p{font-size:12px;line-height:1.9}.tf-hero-caption{margin-top:34px;gap:27px}.tf-hero-caption>span{font-size:26px;gap:7px}.tf-hero-caption small{font-size:9px}.tf-entry{padding:20px 19px}.tf-entry-top{padding-bottom:12px;margin-bottom:16px}.tf-entry h3{font-size:22px;margin:6px 0 10px}.tf-entry>p{min-height:0}.tf-countdown{flex-direction:row;align-items:center;justify-content:space-between;margin:18px 0 16px;gap:9px}.tf-countdown time{font-size:25px}.tf-entry-actions{gap:10px}.tf-shell .tf-button,.tf-squad .tf-button{min-height:63px;font-size:12px}.tf-shell .tf-button--square{min-height:44px;font-size:23px}.tf-section-heading{gap:10px}.tf-section-heading h2{font-size:18px}.tf-section-heading small{font-size:8px}.tf-section-heading>span{font-size:9px}.tf-faction-grid{grid-template-columns:1fr;gap:12px}.tf-faction{min-height:151px;padding:24px 15px 22px 153px}.tf-faction>img{left:2px;width:145px;height:150px}.tf-faction small{font-size:8px}.tf-faction h3{font-size:25px}.tf-faction p{font-size:10px}.tf-faction div>span{font-size:9px;margin-top:7px}.tf-ruleline{gap:12px;padding:18px 0;flex-direction:column;margin-top:22px}.tf-ruleline b{font-size:11px}.tf-policy{font-size:10px}.tf-footer{font-size:9px;gap:12px;align-items:flex-start}.tf-footer span:first-child{white-space:nowrap}.tf-footer span:last-child{text-align:right}.tf-squad{padding:22px 17px}.tf-squad--embedded{display:block;padding:22px 17px}.tf-squad-hero{min-height:162px}.tf-squad .tw4-my-team{padding-right:135px}.tf-squad .tw4-my-team-name{font-size:25px!important}.tf-squad-citadel{width:145px;height:145px;right:-10px}.tf-team-name{padding-right:128px}.tf-team-name strong{font-size:25px}.tf-squad--embedded .tf-squad-footer{display:block}.tf-squad--embedded .tf-squad-footer p{margin-bottom:17px}.tf-squad--embedded .tf-squad-footer button{width:100%;margin:auto}.tf-squad-stats{gap:9px}.tf-squad-stats dd{font-size:17px}.tf-power strong{font-size:36px}.tf-shell .tw3-reward{padding:18px}.tf-shell .tw3-reward h3{font-size:21px}}
@media(prefers-reduced-motion:reduce){.tf-shell button,.tf-squad button{transition:none!important;transform:none!important}}

/* Recruitment-first composition, matching the user-supplied official brand. */
.tf-header{min-height:92px;padding:5px max(24px,calc((100vw - 1360px)/2));background:#080c17}
.tf-brand{min-width:0;gap:22px}.tf-brand>img{display:block;width:82px;height:82px;object-fit:contain;flex:none}.tf-brand>div{padding-left:24px;border-left:1px solid #28324a}.tf-brand small{font-size:11px;letter-spacing:0;color:#8b97b0;font-weight:600}.tf-brand h1{font-size:23px;font-weight:800;letter-spacing:-.6px;margin-top:3px;line-height:1.35}.tf-header-controls{gap:8px}
.tf-phases li{padding:20px 10px}.tf-phases li>span{font:600 16px TFBarlow,'Barlow Condensed',sans-serif;letter-spacing:0}.tf-phases li b{font-weight:600}
.tf-hero{grid-template-columns:minmax(0,1fr) 360px;gap:36px;min-height:450px;margin:24px 0;padding:28px;border-radius:5px;overflow:hidden}.tf-hero:before{background:linear-gradient(90deg,#080c17e8,#080c1760 48%,#080c170a 70%),linear-gradient(0deg,#080c17c9,transparent 58%)}
.tf-hero-copy{align-self:end;padding:24px 14px;min-width:0}.tf-kicker{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:0;color:#c8ff6b}.tf-kicker:before{content:'';height:5px;width:5px;background:currentColor;border-radius:50%}.tf-hero-copy h2{font-size:32px;font-weight:800;letter-spacing:-1px;line-height:1.45;margin:13px 0 15px;text-shadow:none}.tf-hero-copy p{font-size:13px;line-height:1.95}.tf-hero-caption{gap:28px;margin-top:30px;padding-top:20px;border-top:1px solid #6b78994d;max-width:360px}.tf-hero-caption>span{font-size:30px;gap:8px}.tf-hero-caption small{font-size:11px;color:#a0acc4}
.tf-entry{border-radius:4px;padding:22px 24px;background:linear-gradient(145deg,#151f30fa,#0b111ff7);position:relative}.tf-entry:before{content:'';position:absolute;left:-1px;right:-1px;top:-1px;height:2px;background:linear-gradient(90deg,#c8ff6b,#6d8f3b80,transparent)}.tf-entry-top{align-items:center;margin-bottom:20px;padding-bottom:15px;font-size:12px;color:#c1cbe0}.tf-entry-top>span{font-weight:600}.tf-entry-top>i{font:600 10px TFNoto,'Noto Sans KR',sans-serif;letter-spacing:0;flex:none;padding:3px 7px;color:#c8ff6b;border:1px solid #789d4855;border-radius:3px;background:#c8ff6b0b;white-space:nowrap}.tf-entry>small{font-size:11px;letter-spacing:0;color:#8b97b0}.tf-entry h3{font-size:22px;font-weight:800;letter-spacing:-.6px;margin:6px 0 10px}.tf-entry>p{min-height:0;font-size:12px;color:#a6b3ca;line-height:1.8}.tf-countdown{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 14px}.tf-countdown>span{font-size:11px;color:#8b97b0}.tf-countdown time{font:600 30px/1.1 TFBarlow,'Barlow Condensed',sans-serif;letter-spacing:.8px;font-variant-numeric:tabular-nums}.tf-roster-count b{font:600 27px TFBarlow,'Barlow Condensed',sans-serif}.tf-roster-count small{font:400 11px TFNoto,'Noto Sans KR',sans-serif}.tf-entry-power{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:11px;color:#a1b0c8;border-top:1px solid #28324a;padding-top:12px;margin-top:14px}.tf-entry-power b{font:600 22px TFBarlow,'Barlow Condensed',sans-serif;color:#f3f5ff}
.tf-shell .tf-button,.tf-squad .tf-button,.tf-shell [data-tw3-claim]{min-height:56px;padding:12px 22px;font:600 13px/1.5 TFNoto,'Noto Sans KR',sans-serif;text-shadow:none;color:#eef3ff}.tf-shell .tf-button--primary,.tf-squad .tf-button--primary,.tf-shell [data-tw3-claim]{color:#15220c;font-weight:800}.tf-shell .tf-button--danger,.tf-squad .tf-button--danger{color:#e8b7c0;min-height:50px}.tf-shell .tf-button--square{width:44px;height:44px;min-height:44px;padding:0;font:400 24px/1 Arial,sans-serif;color:#e5edf9}.tf-shell button:hover:not(:disabled),.tf-squad button:hover:not(:disabled){filter:brightness(1.12);transform:none}.tf-shell button:focus-visible,.tf-squad button:focus-visible{outline-color:#c8ff6b}
.tf-section-heading h2{font-size:18px;font-weight:800;letter-spacing:-.4px;margin-top:5px}.tf-section-heading small{font-size:10px;letter-spacing:0}.tf-faction{min-height:160px;padding:24px 20px 22px 180px;border-radius:4px}.tf-faction>img{left:9px;width:160px;height:167px}.tf-faction small{font-size:10px;letter-spacing:0;font-weight:600}.tf-faction h3{font-size:23px;font-weight:800;letter-spacing:-.6px;margin:5px 0 8px}.tf-faction p{font-size:11px;line-height:1.8}.tf-faction.is-mine{border-color:#a9cf67;box-shadow:inset 3px 0 #c8ff6b}.tf-faction.is-mine div>span{color:#c8ff6b}.tf-ruleline{padding:17px 0;margin-top:22px}.tf-ruleline>span{font-size:17px}.tf-footer{padding:22px 0}.tf-shell[data-twf-status='OFF'] .tf-hero{min-height:450px}
.tf-power strong{font:600 43px/1.25 TFBarlow,'Barlow Condensed',sans-serif}.tf-readiness>strong{font:600 33px TFBarlow,'Barlow Condensed',sans-serif}.tf-readiness>strong small{font:600 17px TFBarlow,'Barlow Condensed',sans-serif}.tf-squad-stats dd{font:600 25px TFBarlow,'Barlow Condensed',TFNoto,sans-serif}.tf-team-name strong{font-size:26px;font-weight:800}.tf-squad .tw4-my-team-name{font:800 26px/1.4 TFNoto,'Noto Sans KR',sans-serif!important;color:#c8ff6b}.tf-squad .tw4-my-team-badge{font-family:TFBarlow,'Barlow Condensed',sans-serif}.tf-five-slots i.is-filled{border-color:#78974a66;background:linear-gradient(135deg,#28362155,#0d1422)}
@media(max-width:1000px){.tf-hero{gap:22px;padding:22px;grid-template-columns:minmax(0,1fr) 320px}.tf-hero-copy{padding-left:0;padding-right:0}.tf-hero-copy h2{font-size:27px}.tf-faction{padding-left:145px}.tf-faction>img{width:135px;height:155px;left:2px}.tf-faction h3{font-size:21px}}
@media(max-width:700px){.tf-header{padding:3px 14px;min-height:72px;gap:8px}.tf-brand{gap:8px}.tf-brand>img{width:60px;height:60px}.tf-brand>div{padding-left:10px}.tf-brand small{font-size:9px}.tf-brand h1{font-size:18px;margin-top:3px;letter-spacing:-.5px}.tf-header-controls{gap:5px}.tf-phases li{padding:15px 4px;gap:5px;font-size:10px}.tf-phases li>span{font-size:12px}.tf-hero{grid-template-columns:1fr;gap:12px;margin:15px 0 24px;padding:16px 13px 13px;background-position:57% top;background-size:auto 440px}.tf-hero:before{background:linear-gradient(0deg,#080c17 25%,#080c17a6 60%,#080c1766)}.tf-hero-copy{min-height:174px;padding:7px 5px 8px;align-self:auto}.tf-kicker{font-size:10px}.tf-hero-copy h2{font-size:25px;letter-spacing:-.7px;margin:8px 0 9px;line-height:1.5}.tf-hero-copy p{font-size:11px;line-height:1.8}.tf-hero-caption{gap:24px;padding-top:12px;margin-top:13px}.tf-hero-caption>span{font-size:25px;gap:6px}.tf-hero-caption small{font-size:10px}.tf-entry{padding:17px 18px}.tf-entry-top{font-size:11px;padding-bottom:11px;margin-bottom:13px}.tf-entry>small{font-size:10px}.tf-entry h3{font-size:20px;margin:4px 0 7px}.tf-entry>p{font-size:11px}.tf-countdown{margin:16px 0 11px}.tf-countdown time{font-size:29px}.tf-roster-count b{font-size:25px}.tf-entry-actions{margin-top:15px;gap:7px}.tf-shell .tf-button,.tf-squad .tf-button{min-height:54px;font-size:12px}.tf-shell .tf-button--square{min-height:44px;width:44px;height:44px;font-size:23px}.tf-section-heading h2{font-size:17px}.tf-faction{padding:20px 15px 19px 145px;min-height:144px}.tf-faction>img{width:135px;height:147px}.tf-faction h3{font-size:22px}.tf-faction p{font-size:10px}.tf-squad-stats dd{font-size:22px}.tf-squad .tw4-my-team-name{font-size:24px!important}.tf-shell[data-twf-status='OFF'] .tf-hero{min-height:0}}
@media(max-width:370px){.tf-brand>img{width:53px;height:53px}.tf-brand>div{padding-left:8px}.tf-brand h1{font-size:16px}.tf-header{padding-inline:10px}.tf-header-controls{gap:3px}.tf-header-controls .tf-button--square{width:42px}.tf-main{padding-inline:10px}}

/* Keep connection-error controls on the same generated button surfaces. */
#territoryWarModalV3 .tw3-loading.tw3-error{font-family:TFNoto,'Noto Sans KR',sans-serif;color:#f3f5ff}#territoryWarModalV3 .tw3-error button{min-height:48px;border:0;border-radius:0;background:transparent url('../assets/ui/territory-war/formation-v1/button-secondary-v2.webp') center/100% 100% no-repeat;color:#f3f5ff;padding:12px 25px;font:600 13px TFNoto,'Noto Sans KR',sans-serif}

/* Actual PVP formation, including the mercenary slot. */
.tf-live-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.tf-live-card{min-width:0;padding:6px;background:#101a29;border:1px solid #334455;border-radius:5px;overflow:hidden}.tf-live-card img,.tf-live-placeholder{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:3px;background:#0a111d}.tf-live-placeholder{display:grid;place-items:center;color:#809172;font:500 24px TFBarlow,sans-serif}.tf-live-card small{display:block;color:#c8ff6b;font:600 9px TFBarlow,sans-serif;letter-spacing:.04em;margin-top:7px}.tf-live-card b{display:block;font-size:10px;line-height:1.5;overflow-wrap:anywhere;margin-top:2px}.tf-live-mercenary{padding:13px 15px;border:1px solid #78974a66;border-left:3px solid #c8ff6b;background:linear-gradient(110deg,#22332066,#101725);display:grid;gap:5px}.tf-live-mercenary>span,.tf-live-mercenary>small{font-size:11px;color:#a2b1c3}.tf-live-mercenary>strong{font-size:17px;color:#efffda}.tf-squad-footer p{line-height:1.8}@media(max-width:700px){.tf-live-cards{gap:4px}.tf-live-card{padding:4px}.tf-live-card b{font-size:9px}.tf-live-card small{font-size:8px}}

/* Territory mobilisation order uses the command post and character art from the quest scene. */
.tf-draft-prize{padding:16px 20px;background:#152b37;border:1px solid #435461;color:#f1f2e8}.tf-draft-prize h3{margin:0 0 10px}.tf-draft-prize dl{display:grid;gap:8px;margin:0}.tf-draft-prize dl div{display:flex;flex-wrap:wrap;gap:4px 15px}.tf-draft-prize dt{font-weight:750;color:#bbdfda;min-width:102px}.tf-draft-prize dd{margin:0}
.tw-draft-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 32px));max-width:100%;max-height:calc(100dvh - 32px);padding:0;overflow:auto;border:1px solid #686f70;border-top:2px solid #dfb580;border-radius:5px;background:#102330;color:#f5f3eb;box-shadow:0 24px 85px #01080cc9;font-family:Pretendard,'Malgun Gothic',sans-serif}
.tw-draft-dialog::backdrop{background:#071018d9}
.twd-layout{display:grid;grid-template-columns:46% 54%;min-height:405px}
.twd-scene{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(135deg,#0a1a2980,#10252e24 60%,#0c141bd9),url('/assets/ui/territory-war/draft-20261109/command-post.webp') center/cover}
.twd-scene:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#081821 1%,transparent 27%)}
.twd-portrait{position:absolute;left:0;top:2%;width:100%;height:auto;max-width:none;filter:drop-shadow(3px 4px 5px #06101b77);animation:twd-arrival .38s ease-out both}
.twd-speaker{position:absolute;z-index:1;bottom:22px;left:24px;display:grid;gap:4px;padding-left:11px;border-left:3px solid #e6be87;text-shadow:0 2px 5px #030e18}
.twd-speaker small,.twd-unit span,.twd-meta{font-size:12px;font-weight:700}
.twd-speaker small{color:#f4d0a6}.twd-speaker b{font-size:19px;color:white}
.twd-brief{box-sizing:border-box;padding:36px 32px 26px;display:flex;flex-direction:column;align-items:stretch;background:linear-gradient(150deg,#1d3544,#122631 55%,#0f202c);border-left:1px solid #52616a}
.twd-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#c8d3d4}
.twd-phase{padding:4px 8px;border:1px solid #8a7659;border-radius:2px;color:#f6d2a5}
.twd-brief h2{color:#fff5e5;font-size:clamp(32px,4vw,46px);font-weight:900;letter-spacing:-.055em;line-height:1.15;margin:17px 0 18px}
.twd-unit{display:flex;align-items:center;flex-wrap:wrap;gap:9px;border-block:1px solid #49616a;padding:11px 0;color:#a8bcc5}
.twd-unit strong{color:#9aedeb;font-size:16px}.tw-draft-dialog[data-side="B"] .twd-unit strong{color:#ffc3ab}
.twd-brief p{margin:19px 0 25px;line-height:1.65;font-size:18px;color:#f5f4ee;font-weight:550;word-break:keep-all;overflow-wrap:anywhere}
.twd-actions{margin-top:auto;display:flex;gap:8px}
.twd-actions button{box-sizing:border-box;cursor:pointer;min-height:44px;padding:9px 15px;border-radius:3px;border:1px solid #77928e;background:#243e48;color:#edf3ed;font:inherit;font-weight:750}
.twd-actions [data-enter]{flex:1;background:#d9ef91;border-color:#e9fcc2;color:#182921}
.twd-actions button:focus-visible{outline:3px solid #f5d59d;outline-offset:2px}
@keyframes twd-arrival{from{opacity:.3;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:610px){.tw-draft-dialog{width:min(420px,calc(100vw - 20px));max-height:calc(100dvh - 18px)}.twd-layout{grid-template-columns:1fr;min-height:0}.twd-scene{height:clamp(155px,31dvh,270px);background-position:center 40%}.twd-portrait{width:clamp(194px,61%,255px);left:auto;right:5%;top:0}.twd-speaker{bottom:13px;left:17px}.twd-brief{border-left:0;border-top:1px solid #67757b;padding:17px 19px}.twd-brief h2{font-size:30px;margin:8px 0 10px}.twd-unit{padding:8px 0}.twd-brief p{font-size:16px;line-height:1.55;margin:12px 0 16px}.twd-actions button{min-height:44px}}
@media(orientation:landscape) and (max-height:520px){.tw-draft-dialog{width:min(760px,calc(100vw - 20px))}.twd-layout{grid-template-columns:37% 63%;min-height:0}.twd-scene{height:auto}.twd-portrait{width:100%;right:0}.twd-brief{padding:14px 20px}.twd-brief h2{font-size:26px;margin:5px 0}.twd-unit{padding:4px 0}.twd-brief p{font-size:15px;margin:8px 0}.twd-speaker{bottom:10px}}
@media(prefers-reduced-motion:reduce){.twd-portrait{animation:none}}
