@import url("assets/fonts/latin.css");
:root {
  color-scheme: dark;
  --gold: #e8b267;
  --gold-strong: #edb567;
  --paper: #f3f1e8;
  --muted: #a5aaa0;
  --line: rgba(202,210,188,.19);
  --surface: #1b1e1b;
  --cn: "PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  --mono: "IBM Plex Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --display: "Barlow Condensed","DIN Condensed","Arial Narrow",Impact,sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #171a17; }
body { margin: 0; font: 16px/1.5 var(--cn); color: var(--paper); background: #171a17; }
button, input, select { font: inherit; }
button, a, select, input[type="range"] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; padding: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #ffcf85; outline-offset: 4px; }
button:disabled { cursor: default; opacity: .48; }
svg { display: block; width: 20px; height: 20px; flex: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
::selection { background: #e2ad65; color: #171a17; }
.topbar { position: relative; z-index: 2; border-bottom: 1px solid #414338; background: #171a18; }
.bar-inner, .lobby-content, .status-inner { width: min(1650px,calc(100% - clamp(40px,7.8vw,142px))); margin-inline: auto; }
.bar-inner { height: 74px; display: flex; align-items: stretch; }
.brand { display: inline-flex; align-items: center; gap: 11px; align-self: center; }
.brand>svg { width: 34px; height: 39px; color: var(--gold); }
.wordmark { font: italic 900 27px/.87 var(--display); letter-spacing: .025em; transform: skew(-3deg); }
.wordmark small { display: block; margin-top: 7px; font: 700 10px/1 var(--cn); letter-spacing: .34em; transform: skew(3deg); color: #cacbbd; }
nav { display: flex; align-items: stretch; margin-left: clamp(38px,6.1vw,110px); gap: clamp(17px,2.8vw,54px); }
.nav-tab { position: relative; display: inline-flex; align-items: center; gap: 9px; color: #b6b9ae; padding: 0 2px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-tab svg { width: 16px; height: 16px; }
.nav-tab.active { color: var(--gold); }
.nav-tab.active::after { content: ""; height: 3px; background: var(--gold); position: absolute; bottom: -1px; left: 0; right: 0; }
.nav-tab:hover, .footer-tools button:hover { color: #ffe2a8; }
.nav-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn { display: inline-grid; width: 36px; height: 36px; place-items: center; color: #c9ccc1; }
.icon-btn:hover { background: #ffffff0d; color: var(--gold); }
.icon-btn svg { width: 19px; height: 19px; }
.nav-tools i, .footer-tools>i { height: 17px; width: 1px; background: var(--line); }
.lobby { isolation: isolate; position: relative; min-height: calc(100svh - 75px); display: flex; flex-direction: column; }
.backdrop { position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; background: #3c413d url("assets/beachhead.jpg") 76% 36% / cover no-repeat; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(13,18,17,.76),rgba(16,21,19,.43) 31%,rgba(19,20,16,.02) 66%),linear-gradient(0deg,#171a18 0%,rgba(18,21,18,.88) 12%,rgba(19,22,18,.18) 43%,transparent 70%); }
.lobby-content { position: relative; flex: 1; display: flex; flex-direction: column; }
.mission { position: relative; flex: 1; min-height: 335px; display: flex; align-items: center; }
.mission-copy { padding: clamp(30px,4.8vh,70px) 0 clamp(32px,5vh,72px); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--cn); letter-spacing: .14em; color: var(--gold); }
.eyebrow [lang="en"], .section-heading>span, .map-heading>span:last-child, .map-caption>span:last-child { font: 500 12px/1 var(--mono); letter-spacing: .1em; }
.mission-label .label-line { width: 28px; height: 1px; background: #c9a26c; opacity: .8; }
.slashes { width: 20px; height: 12px; background: repeating-linear-gradient(116deg,transparent 0 3px,var(--gold) 3px 6px,transparent 6px 8px); }
.mission h1 { margin: 17px 0 3px -4px; font: 900 clamp(65px,6.65vw,108px)/1.12 var(--cn); letter-spacing: .055em; color: #f7f5e9; text-shadow: 0 3px 19px #10130f33; }
.mission-english { margin: 0; font: 700 clamp(24px,2.1vw,34px)/1.2 var(--display); letter-spacing: .18em; color: #dedfce; }
.intro { margin: 22px 0 0; max-width: 500px; font-size: clamp(15px,1.05vw,18px); color: #dedfd3; line-height: 1.75; text-wrap:balance; }
.mission-facts { display: flex; align-items: center; gap: clamp(12px,1.4vw,24px); margin-top: 19px; color: #e5e6da; font-size: 13px; font-weight: 550; }
.mission-facts span { display: inline-flex; align-items: center; gap: 7px; }
.mission-facts svg { width: 17px; height: 17px; color: var(--gold); }
.mission-facts i { width: 1px; height: 13px; background: #cdcebb5e; }
.map-frame { position: absolute; bottom: clamp(20px,3.7vh,48px); right: 0; width: clamp(164px,14vw,224px); background: #1a231eca; border: 1px solid #d3d1ad5e; color: #e6e7d3; backdrop-filter: blur(5px); }
.map-frame::before, .map-frame::after { content: ""; position: absolute; width: 10px; height: 10px; z-index: 1; pointer-events: none; }
.map-frame::before { left: -1px; top: -1px; border-left: 2px solid #cfcbb1; border-top: 2px solid #cfcbb1; }
.map-frame::after { right: -1px; bottom: -1px; border-right: 2px solid #cfcbb1; border-bottom: 2px solid #cfcbb1; }
.map-heading,.map-caption { display: flex; align-items: center; justify-content: space-between; padding: 6px 9px; }
.map-heading { font-weight: 600; font-size: 12px; border-bottom: 1px solid #cac7a537; }
.map-heading>span:first-child { display: flex; gap: 6px; align-items: center; }
.map-heading b { width: 5px; height: 5px; background: var(--gold); }
.map-heading>span:last-child, .map-caption>span:last-child { font-size: 10px; letter-spacing: .06em; color: #c9cfb9; }
#brief-map { width: 100%; height: auto; display: block; }
.map-caption { padding-block: 4px; border-top: 1px solid #cac7a535; font-size: 11px; color: #d2d2bf; }
.deployment { background: linear-gradient(106deg,rgba(34,38,33,.98),rgba(24,27,24,.98)); border: 1px solid #abb19b4a; position: relative; box-shadow: 0 12px 38px #070a082e; }
.deployment::before { content: ""; position: absolute; left: -1px; top: -1px; width: 43px; height: 2px; background: var(--gold); }
.setup-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(20px,2vw,34px); padding: clamp(18px,2.3vh,32px) clamp(20px,2vw,34px); }
.section-heading { display: flex; align-items: baseline; gap: 11px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: .055em; }
.section-heading>span { color: #a5ab9c; font-size: 11px; letter-spacing: .13em; }
.gear-setup { padding-left: clamp(20px,2vw,34px); border-left: 1px solid var(--line); }
.side-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-card { min-width: 0; overflow: hidden; height: clamp(96px,11.8vh,136px); position: relative; display: flex; align-items: center; gap: clamp(9px,1.05vw,19px); padding: 11px clamp(10px,1.2vw,24px); text-align: left; border: 1px solid #555c50; background: linear-gradient(115deg,#40463b45,#33393259); transition: border-color .18s,background .18s,transform .18s; }
.side-card:hover { border-color: #b9bdaa; transform: translateY(-1px); }
.side-card.selected { border-color: #d7a75e; background: linear-gradient(110deg,#76634352,#5d4f353d); }
.crest { width: clamp(44px,4.25vw,72px); height: clamp(50px,4.9vw,80px); color: #bdc4af; }
.selected .crest { color: #edc079; }
.side-text { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.side-text b { font-weight: 750; letter-spacing: .06em; font-size: clamp(20px,1.72vw,31px); line-height: 1.3; }
.side-text small { font: 600 11px/1.35 var(--mono); letter-spacing: .13em; color: #b2b8a8; }
.selected .side-text small { color: #ddbd88; }
.side-text>span { margin-top: 7px; color: #c6cabc; font-size: 13px; white-space: nowrap; }
.side-check { position: absolute; top: -1px; right: -1px; width: 24px; height: 24px; clip-path: polygon(0 0,100% 0,100% 100%); background: var(--gold); display: none; color: #28291f; }
.selected .side-check { display: block; }
.side-check svg { margin: 2px 2px 0 auto; width: 12px; height: 12px; }
#gear-slots,#hud-slots { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.gear-slot { position: relative; height: clamp(96px,11.8vh,136px); display: grid; grid-template-rows: 1fr auto; justify-items: center; width: 100%; border: 1px solid #454a40; background: radial-gradient(ellipse at 55% 20%,#343a32,#242a24 75%); color: #c0c6b6; transition: background .15s,border .15s; }
.gear-slot:hover,.gear-slot.selected { background: radial-gradient(ellipse at 50% 22%,#474638,#303025 90%); border-color: #89744e; }
.gear-slot.selected::after { content: ""; position: absolute; bottom: -1px; height: 2px; background: var(--gold); left: -1px; right: -1px; }
.slot-number { position: absolute; left: 7px; top: 5px; color: #9da491; font: 12px/1.2 var(--mono); }
.gear-slot.selected .slot-number { color: var(--gold); }
.gear-slot .gear-icon { align-self: center; margin-top: 13px; }
.gear-icon { width: 77%; height: 43px; color: #bbbfaf; filter: drop-shadow(0 1px 1px #0009); }
.gear-slot.selected .gear-icon { color: #ddd3b7; }
.gear-slot strong { margin-bottom: 8px; color: #d0d4c6; font-weight: 550; font-size: 13px; }
.gear-slot.selected strong { color: #ebcb96; }
.deploy-foot { display: flex; align-items: center; gap: 22px; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px clamp(20px,2vw,34px); background: #11151145; }
.objective-preview { display: flex; align-items: center; gap: 10px; color: #b4bba9; font-size: 14px; }
.objective-preview svg { width: 17px; height: 17px; color: #cfba8a; }
.objective-preview b { color: #d9dbcc; font-size: 13px; white-space: nowrap; font-weight: 650; }
.objective-preview>span { border-left: 1px solid #626854; padding-left: 11px; }
.deploy-button { flex: none; display: inline-flex; position: relative; align-items: center; justify-content: center; gap: 13px; color: #26261e; background: var(--gold-strong); padding: 0 27px; height: 49px; min-width: 219px; box-shadow: inset 0 1px #ffe5ad88; clip-path: polygon(0 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%); transition: background .16s; }
.deploy-button:hover,.primary:hover { background: #ffd18a; }
.deploy-button svg { width: 16px; height: 16px; }
.deploy-button b { white-space: nowrap; font-size: 18px; letter-spacing: .1em; }
.deploy-button span { font: 700 12px/1 var(--mono); letter-spacing: .11em; opacity: .78; }
.statusbar { margin-top: clamp(12px,2vh,27px); background: #151816b8; border-top: 1px solid #b7bea322; }
.status-inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.ready { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .06em; color: #bdc4b1; }
.ready b, .hud-overline i { width: 6px; height: 6px; border-radius: 50%; background: #a2b87a; box-shadow: 0 0 8px #a2b87a4a; }
.footer-tools { display: flex; align-items: center; gap: 17px; }
.footer-tools a{display:inline-flex;align-items:center;min-height:40px;text-decoration:none;color:#c1c6b6;font-size:13px;white-space:nowrap}
.footer-tools a:hover,.footer-tools a:focus-visible{color:#ffe2a8}
@media(max-width:560px){.status-inner{flex-wrap:wrap}.footer-tools{flex-wrap:wrap;row-gap:0}}
.footer-tools button { display: inline-flex; align-items: center; gap: 7px; color: #c1c6b6; font-size: 13px; min-height: 40px; }
.footer-tools svg { width: 17px; height: 17px; }
kbd { display: inline-block; font: 12px/1.2 var(--mono); color: #cdd1c4; border: 1px solid #686e5f; padding: 2px 5px; border-radius: 2px; text-align: center; }
dialog { --dialog-bg: #20241f; background: var(--dialog-bg); color: var(--paper); border: 1px solid #737861; padding: 0; width: min(570px,calc(100% - 28px)); max-height: min(85svh,780px); overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 110px #0009; }
dialog::backdrop { background: #0c100fd6; backdrop-filter: blur(7px); }
dialog[open] { animation: panel-in .16s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px 7px 24px; border-bottom: 1px solid var(--line); background: #181c17; }
.dialog-bar .eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .18em; }
.dialog-bar .eyebrow::before { content:""; width: 18px; height: 3px; background: var(--gold); }
.dialog-inner { padding: 24px; }
.dialog-inner h2 { font-size: 29px; line-height: 1.3; margin: 0 0 20px; letter-spacing:.045em; }
.dialog-inner p { color: #c3c8b8; }
.dialog-intro { font-size: 15px; margin: 0 0 17px; line-height: 1.7; }
.help-list { display: grid; gap: 0; margin: 0 0 18px; }
.help-list>div, .setting-row { display:flex; justify-content: space-between; align-items:center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.help-list dt { margin: 0; color: #c8cdbc; font-size: 15px; }
.help-list dd { margin: 0; text-align: right; font-size: 14px; }
.help-list kbd { min-width: 23px; margin-left: 3px; padding: 4px 6px; }
.dialog-buttons { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.primary,.secondary { min-height: 41px; padding: 8px 18px; font-weight: 650; font-size: 15px; border: 1px solid var(--line); }
.primary { color: #22251b; background: var(--gold); border-color: var(--gold); }
.secondary { color: #d1d7c6; background: #353a30; }
.secondary:hover { border-color: #b4b99f; }
.setting-row input { accent-color: var(--gold); width: min(155px,40vw); }
.setting-row select { color: var(--paper); background: #31362d; border: 1px solid #6d735d; padding: 6px 28px 6px 10px; appearance: none; background-image: linear-gradient(45deg,transparent 50%,#e2c894 50%),linear-gradient(135deg,#e2c894 50%,transparent 50%); background-position: calc(100% - 13px) 52%,calc(100% - 8px) 52%; background-size: 5px 5px; background-repeat:no-repeat; }
.setting-row output { font: 13px var(--mono); margin-left: 9px; min-width: 2em; display: inline-block; }
.toggle { border: 1px solid #817c60; background: #373b2e; padding: 5px 15px; color: var(--gold); font-weight:650; }
.armory-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 13px; }
.armory-nav button { border: 1px solid var(--line); padding: 8px; font-size: 14px; }
.armory-nav button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: #423d2d; }
.armory-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.armory-item { display:flex; align-items:center; gap:12px; padding:13px 10px; background: #2a3027; border:1px solid var(--line); text-align:left; }
.armory-item[aria-pressed="true"] { border-color: var(--gold); background:#39392b; }
.armory-item .gear-icon { width: 67px; height: 35px; }
.armory-item b,.armory-item small { display:block; }
.armory-item small { color:var(--muted); font: 10px/1.6 var(--mono); letter-spacing: .06em; }
.weapon-detail { padding: 15px; background:#191d18; margin-top:14px; border-left:2px solid var(--gold); }
.weapon-detail strong { margin-right:8px; }
.weapon-detail small { font:12px var(--mono); color:var(--gold); }
.weapon-detail p { margin: 6px 0 0; font-size: 14px; }
.empty-record { display: grid; justify-items:center; padding: 25px 0; gap: 7px; border:1px dashed #757c5c6b; }
.empty-record svg { width: 45px; height:49px; color:var(--gold); margin-bottom:6px; }
.empty-record p { margin:0; font-size:14px; }
.record-list { list-style:none; padding:0; margin:0; }
.record-list li { display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.record-list b { color:var(--gold); }
.record-list span { color:#ccd1c2; font-size:14px; }
.record-list time { color:#aeb5a1; font:12px var(--mono); margin-left:auto; }
.result-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.result-stats>div { border:1px solid var(--line); padding:12px 9px; display:grid; text-align:center; }
.result-stats b { font:700 30px var(--display); color:var(--gold); }
.result-stats span { font-size:13px; color:#bdc6b1; }
#toast { position:fixed; z-index:10; left:50%; bottom:64px; transform:translate(-50%,8px); opacity:0; pointer-events:none; padding:9px 17px; font-size:14px; background:#262c22; border:1px solid #8b8f70; transition:opacity .2s,transform .2s; }
#toast.show { opacity:1; transform:translate(-50%,0); }
body.in-battle { overflow: hidden; }
#battle { position: fixed; inset: 0; isolation: isolate; background: #515b54; overflow: hidden; user-select: none; touch-action: none; }
#viewport { position:absolute; inset:0; outline:0; cursor:none; touch-action:none; }
#viewport canvas { width:100%; height:100%; display:block; }
#field-loading { position:absolute; inset:0; z-index:3; display:grid; place-items:center; background:linear-gradient(#17201880,#101510b8),var(--chapter-art,url("assets/films/tribe.webp")) center/cover; }
#field-loading>div { display:flex; align-items:center; gap:13px; padding:16px 27px; background:#1c211be8; border:1px solid #92876d; box-shadow:0 6px 40px #0b100c52; }
#battle #field-loading {z-index:40;background-color:#151b17}
#field-loading>div {display:grid;grid-template-columns:auto 1fr auto;width:min(375px,88vw);box-sizing:border-box}
#field-load-value {font:600 13px/1.2 monospace;color:#dfc595}
#field-load-progress {grid-column:1/-1;appearance:none;width:100%;height:5px;border:0;background:#474c40;accent-color:#dfbd84}
#field-load-progress::-webkit-progress-bar {background:#474c40}
#field-load-progress::-webkit-progress-value {background:#dfbd84}
#field-loading b { font-size:17px; letter-spacing:.04em; }
#damage-vignette { position:absolute; pointer-events:none; inset:0; opacity:0; background:radial-gradient(ellipse at center,transparent 30%,rgba(179,65,40,.56)); }
#hud { position:absolute; inset:0; pointer-events:none; }
.glass { background:linear-gradient(120deg,#1b221ddc,#252b20aa); border:1px solid #d4d7b962; box-shadow:0 4px 14px #0c120c25; }
.hud-mission { position:absolute; top:clamp(14px,2.5vw,36px); left:clamp(14px,2.5vw,36px); width:clamp(170px,16vw,245px); padding:15px 17px; }
.hud-overline { display:flex; align-items:center; gap:7px; font:600 12px var(--mono),var(--cn); letter-spacing:.08em; color:var(--gold); }
.hud-overline i { background:var(--gold); width:5px; height:5px; }
.hud-mission>b { display:block; font-size:19px; margin:4px 0 8px; }
.hud-mission small { display:block; font-size:12px; color:#e1e3d4; margin-top:5px; }
.capture-track,.health-track { background:#bdc4b438; height:4px; position:relative; overflow:hidden; }
.capture-track i,.health-track i { display:block; height:100%; background:var(--gold); width:0; }
.hud-center { position:absolute; top:clamp(14px,2.5vw,36px); left:50%; transform:translateX(-50%); display:grid; justify-items:center; gap:8px; }
.clock { display:flex; align-items:center; gap:9px; padding:5px 14px; }
.clock svg { color:var(--gold); width:17px; height:17px; }
.clock b { font:650 22px var(--mono); }
#compass { display:flex; align-items:center; justify-content:center; gap:7px; color:#fff9e5; text-shadow:0 1px 6px #10140d; font:12px var(--mono); }
#compass::before,#compass::after { content:""; width:34px; height:6px; background:repeating-linear-gradient(90deg,#fff8deaa 0 1px,transparent 1px 8px); }
.hud-pause { pointer-events:auto; position:absolute; right:clamp(14px,2.5vw,36px); top:clamp(14px,2.5vw,36px); display:grid; place-items:center; width:42px; height:42px; color:#f9f3d8; }
.hud-pause svg { width:17px; height:17px; }
#rescue-marker { position:absolute; display:grid; justify-items:center; gap:3px; color:#ffe6a8; transform:translate(-50%,-100%); text-shadow:0 1px 4px #171b0b; }
#rescue-marker b { display:grid; place-items:center; background:#222c20bb; border:1px solid #f5d38b; width:21px; height:21px; font:700 13px var(--mono); }
#rescue-marker span { font:600 12px var(--mono),var(--cn); }
#crosshair,#hit-signal { position:absolute; left:50%; top:50%; width:26px; height:26px; transform:translate(-50%,-50%); }
#crosshair { filter:drop-shadow(0 1px 1.5px #182118); }
#crosshair i,#crosshair b { position:absolute; background:#fff9e2; border-radius:1px; }
#crosshair i:nth-child(1),#crosshair i:nth-child(2) { left:12px; width:2px; height:6px; }
#crosshair i:nth-child(1) { top:0; } #crosshair i:nth-child(2) { bottom:0; }
#crosshair i:nth-child(3),#crosshair i:nth-child(4) { top:12px; width:6px; height:2px; }
#crosshair i:nth-child(3) { left:0; } #crosshair i:nth-child(4) { right:0; }
#crosshair b { width:2px; height:2px; top:12px; left:12px; background:#ffd487; }
#hit-signal { opacity:0; transform:translate(-50%,-50%) rotate(45deg); background:linear-gradient(#ffd598,#ffd598) center top/2px 7px no-repeat,linear-gradient(#ffd598,#ffd598) center bottom/2px 7px no-repeat,linear-gradient(#ffd598,#ffd598) left center/7px 2px no-repeat,linear-gradient(#ffd598,#ffd598) right center/7px 2px no-repeat; }
.hud-notices { position:absolute; top:calc(50% + 38px); left:0; right:0; text-align:center; }
#combat-notice { display:inline-block; background:#172017cd; color:#f3e3bb; font-size:14px; font-weight:600; padding:4px 11px; }
#combat-notice:empty,.hud-notices:empty { display:none; }
.lower-left,.lower-right { position:absolute; bottom:clamp(14px,2.5vw,36px); display:grid; gap:7px; }
.lower-left { left:clamp(14px,2.5vw,36px); width:140px; }
.radar canvas { display:block; width:100%; height:auto; }
.radar span { display:block; padding:3px 7px; font-size:11px; border-top:1px solid #bdc7ac40; letter-spacing:.08em; }
.health { padding:6px 9px; display:flex; align-items:center; gap:7px; }
.health svg { width:14px; height:14px; color:#bfd79c; }
.health>b { font:700 19px var(--mono); }
.health-track { flex:1; }
.health-track i { width:100%; background:#bed29d; }
.lower-right { right:clamp(14px,2.5vw,36px); width:clamp(178px,15vw,245px); }
.ammo-panel { display:flex; align-items:center; justify-content:space-between; padding:7px 13px; }
.ammo-panel>div { display:flex; gap:14px; align-items:center; }
.ammo-panel span { font-weight:600; font-size:15px; }
.ammo-panel b { font:700 29px var(--display); color:#ffe6ba; }
.ammo-panel>svg { width:19px; height:19px; color:#d4ceb0; }
#hud-slots { gap:4px; pointer-events:auto; }
#hud-slots button { padding:5px 2px; display:grid; justify-items:center; gap:2px; color:#d0d7c3; background:#232a20d9; border:1px solid #929b7b80; }
#hud-slots button.selected { border-color:var(--gold); color:var(--gold); }
#hud-slots .gear-icon { height:19px; width:34px; color:inherit; }
#hud-slots small { font:10px var(--mono); }
#field-hint { position:absolute; bottom:4.5%; left:50%; transform:translateX(-50%); max-width:calc(100% - 400px); color:#f0efdf; background:#1c221be3; padding:5px 10px; font-size:13px; text-align:center; }
#field-hint:empty { display:none; }
#touch-controls { display:none; pointer-events:none; position:absolute; inset:0; }
#move-pad, #touch-fire, #touch-reload { pointer-events:auto; touch-action:none; position:absolute; border:1px solid #f9efd383; border-radius:50%; background:#1c261e75; color:#fff0c8; display:grid; place-items:center; }
#move-pad { left:22px; bottom:24px; width:96px; height:96px; }
#move-pad i { width:41px; height:41px; border-radius:50%; background:#e7e5cf84; border:1px solid #dddcbc; }
#touch-fire { right:24px; bottom:25px; width:68px; height:68px; }
#touch-fire svg { width:31px; height:31px; }
#touch-reload { right:103px; bottom:31px; width:44px; height:44px; }
@media (min-width:1700px) and (min-height:960px) { .mission { min-height:490px; }.mission-copy { padding-bottom:8vh; }.setup-grid { padding:32px; }.deploy-foot { padding:16px 32px; } }
@media (max-width:1100px) {
  .bar-inner,.lobby-content,.status-inner { width:calc(100% - 56px); }
  .setup-grid { gap:18px; padding:19px; }
  .gear-setup { padding-left:18px; }
  .side-card { gap:8px; padding:10px; }
  .side-text>span { font-size:12px; }
  .gear-icon { width:84%; }
}
@media (min-width:801px) and (max-height:720px) {
  .bar-inner { height:61px; }.lobby { min-height:calc(100svh - 62px); }
  .mission-copy { padding-block:25px; }.mission { min-height:265px; }
  .mission h1 { margin-top:12px; font-size:clamp(57px,5.9vw,86px); }
  .intro { margin-top:12px; }.mission-facts { margin-top:12px; }
  .side-card,.gear-slot { height:87px; }.setup-grid { padding-block:16px; }
  .deploy-foot { padding-block:9px; }.deploy-button { height:43px; }.statusbar { margin-top:11px; }.status-inner { min-height:35px; }
}
@media (max-width:800px) {
  .bar-inner,.lobby-content,.status-inner { width:calc(100% - 40px); }
  .bar-inner { height:62px; }.lobby { min-height:calc(100svh - 63px); }
  .brand>svg { width:29px; height:34px; }.wordmark { font-size:23px; }.wordmark small { font-size:9px; }
  nav { margin-left:30px; gap:17px; }.nav-tab { gap:6px; font-size:13px; }
  .nav-tools { gap:3px; }.nav-tools i { display:none; }
  .mission { min-height:300px; }.mission-copy { padding-block:30px; }
  .mission h1 { font-size:clamp(55px,9vw,78px); }
  .intro { max-width:365px; font-size:15px; }
  .map-frame { width:158px; bottom:20px; }
  .setup-grid { grid-template-columns:1fr; gap:16px; padding:17px; }
  .gear-setup { padding:0; border:0; }
  .section-heading { margin-bottom:9px; }
  .section-heading h2 { font-size:17px; }
  .side-card { height:78px; padding:8px 16px; gap:13px; }.crest { width:46px; height:52px; }
  .side-text b { font-size:21px; }.side-text small { font-size:10px; }.side-text>span { margin-top:2px; }
  .gear-slot { height:71px; }.gear-slot .gear-icon { margin-top:5px; height:33px; max-width:92px; }
  .gear-slot strong { margin-bottom:4px; }.objective-preview { gap:7px; font-size:13px; }
  .deploy-foot { padding:10px 17px; gap:12px; }.deploy-button { min-width:174px; height:44px; padding:0 17px; gap:9px; }
  .objective-preview b { display:none; }.objective-preview>span { padding-left:0; border:0; }
}
@media (max-width:600px) {
  .bar-inner,.lobby-content,.status-inner { width:calc(100% - 32px); }
  .bar-inner { height:55px; align-items:center; }.lobby { min-height:calc(100svh - 56px); }
  .brand { gap:6px; }.brand>svg { width:24px; height:31px; }.wordmark { font-size:21px; }.wordmark small { font-size:8px; margin-top:5px; }
  nav { margin-left:auto; gap:13px; height:100%; }.nav-tab svg { display:none; }.nav-tab { font-size:12px; padding:0; }
  .nav-tools { margin-left:13px; }.nav-tools .icon-btn { width:26px; }.nav-tools .icon-btn svg { width:17px; height:17px; }
  #full-button { display:none; }
  .backdrop { background-size:auto max(535px,64%); background-position:76% 0; background-color:#1b1e19; }
  .backdrop::after { background:linear-gradient(90deg,#0e1515c9,rgba(15,20,17,.45) 48%,#1a201513 88%),linear-gradient(0deg,#191d18 9%,#1b1e1977 41%,transparent 63%); }
  .mission { min-height:305px; }.mission-copy { padding:38px 0 24px; }
  .mission-label { gap:8px; font-size:12px; }.mission-label [lang="en"] { font-size:10px; }
  .mission h1 { margin:13px 0 2px -2px; font-size:clamp(49px,12.6vw,75px); letter-spacing:.04em; }
  .mission-english { font-size:21px; letter-spacing:.135em; }
  .intro { margin-top:14px; max-width:275px; font-size:14px; line-height:1.75; }
  .mission-facts { margin-top:15px; gap:10px; font-size:12px; }.mission-facts svg { width:14px; height:14px; }.mission-facts span { gap:4px; }
  .map-frame { display:none; }
  .setup-grid { gap:16px; padding:16px 13px; }.side-options { gap:7px; }
  .side-card { height:79px; padding:7px; gap:7px; }.side-text b { font-size:19px; }.side-text>span { font-size:11px; }.crest { width:39px; height:49px; }.side-text small { font-size:9px; letter-spacing:.06em; }
  #gear-slots { gap:5px; }.gear-slot { height:66px; }.slot-number { left:5px; top:3px; font-size:10px; }
  .gear-slot .gear-icon { width:81%; height:30px; }.gear-slot strong { font-size:12px; }
  .deploy-foot { display:grid; gap:11px; padding:12px 13px 14px; }.deploy-button { width:100%; }.objective-preview { font-size:12px; }.objective-preview svg { width:15px; height:15px; }
  .statusbar { margin-top:12px; }.status-inner { min-height:40px; }.ready { font-size:11px; }.footer-tools { gap:10px; }.footer-tools button { font-size:12px; }.footer-tools kbd { display:none; }
  .dialog-inner { padding:19px; }.dialog-inner h2 { font-size:24px; }.armory-item .gear-icon { width:45px; }.armory-item { gap:6px; }.record-list li { flex-wrap:wrap; }
}
@media (max-width:380px) { .bar-inner { width:calc(100% - 20px); }.nav-tools { margin-left:6px; } nav { gap:9px; } }
@media (pointer:coarse) {
  #touch-controls { display:block; }.lower-left { bottom:130px; width:98px; }.lower-right { bottom:109px; width:157px; }
  #field-hint { bottom:8px; max-width:80%; font-size:11px; padding:3px 7px; }
}
@media (max-width:650px), (max-height:550px) {
  .hud-mission { width:154px; padding:9px 11px; }.hud-mission>b { font-size:16px; margin:3px 0 4px; }.hud-overline { font-size:11px; }
  .clock b { font-size:17px; }.clock { padding:4px 7px; gap:5px; }
  .hud-center { left:57%; }.hud-pause { width:35px; height:35px; }
  #compass::before,#compass::after { width:15px; }.radar { display:none; }
  .lower-right { width:155px; }.ammo-panel { padding:5px 8px; }.ammo-panel b { font-size:22px; }
  .lower-left { width:100px; }.health>b { font-size:15px; }
  #field-hint { max-width:75%; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

.topbar,.dialog-bar {
  background: linear-gradient(100deg,#141914ee,#22251ef2 55%,#181b17ee), url("assets/rusted-steel.jpg") center 51%/680px;
  box-shadow: inset 0 -1px #795b3e66;
}
.backdrop { background-image:url("assets/campaign-coast.jpg?v=veils1"); background-position:69% 37%; }
.backdrop::after {
  background:linear-gradient(90deg,#111914c9 0%,#10181480 29%,transparent 61%),
    linear-gradient(0deg,#171a18 2%,#171a18ed 12%,#171a1840 44%,transparent 66%);
}
.wallet { display:inline-flex; align-items:center; gap:7px; min-height:35px; padding:0 11px; white-space:nowrap; border:1px solid #a78f655e; background:#221f199e; }
.wallet:hover { border-color:#d5b17d; }
.wallet svg,.store-balance svg { width:16px; height:16px; color:var(--gold); }
.wallet span { font-size:12px; color:#cec9b7; }
.wallet b,.store-balance b { color:#f4cf91; font:650 15px var(--mono); }
.mission { min-height:285px; }
.mission-copy { padding-block:clamp(26px,4vh,62px); }
.mission-facts button { display:inline-flex; align-items:center; gap:6px; padding:3px 0; font-weight:inherit; }
.mission-facts button:hover { color:#ffda93; text-decoration:underline; text-underline-offset:4px; }
.deployment {
  background:linear-gradient(110deg,#23271ff2,#191d18e8),url("assets/rusted-steel.jpg") 18% 58%/750px;
  border-color:#8b836cc4; box-shadow:inset 0 1px #bfaa7e38,0 10px 42px #090b0873;
}
.deployment::after { content:""; position:absolute; top:-1px; right:-1px; width:32px; height:2px; background:#a3916d; pointer-events:none; }
.campaign-rail { display:flex; align-items:center; gap:clamp(18px,2.1vw,34px); padding:13px clamp(20px,2vw,34px); border-bottom:1px solid #a8ac8f35; background:#13191250; }
.rail-heading { flex:none; }
.rail-heading h2 { margin:0; font-size:15px; letter-spacing:.06em; line-height:1.5; }
.rail-heading span { display:block; font-size:10px; color:#adb59e; white-space:nowrap; }
#chapter-steps { flex:1; min-width:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
.chapter-step { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; min-width:0; min-height:36px; padding:5px 10px; border:1px solid #a5ad8c42; text-align:left; background:linear-gradient(110deg,#41443755,#30332c44); }
.chapter-step small { font:600 11px var(--mono); color:#c2c6b5; }
.chapter-step b { font-size:13px; font-weight:600; }
.chapter-step i { font:9px var(--mono); color:#d2b882; justify-self:end; }
.chapter-step i svg { width:11px; height:11px; }
.chapter-step.locked { color:#adb2a2; }
.chapter-step.locked i,.chapter-step.locked small { color:#929987; }
.chapter-step:hover { border-color:#a19576; }
.chapter-step.selected { border-color:#ba945d; background:linear-gradient(110deg,#78643f70,#423c2c70); box-shadow:inset 3px 0 #e0b377; }
.chapter-step.selected b,.chapter-step.selected small { color:#f5d397; }
.side-card,.side-card.selected {
  background-image:linear-gradient(108deg,#252f25d4,#20271fdc),url("assets/field-weave.jpg"); background-size:auto,250px; background-position:center;
}
.side-card.selected { background-image:linear-gradient(110deg,#594e36b8,#3a3428d9),url("assets/field-weave.jpg"); }
.side-card::before { content:""; position:absolute; inset:3px; border:1px dashed #c9cfaa23; pointer-events:none; }
.side-card .crest { filter:drop-shadow(0 1px 1px #121611); }
.gear-slot { background:radial-gradient(ellipse at 50% 15%,#373c32e8,#1c221be8 90%),url("assets/rusted-steel.jpg") center/330px; }
.gear-slot.unissued .gear-icon { color:#9ea18e; }
.gear-lock { position:absolute; top:6px; right:6px; color:#c7b18c; }
.gear-lock svg { width:12px; height:12px; }
.deploy-foot,.dialog-inner { background:linear-gradient(108deg,#1e241eeb,#191e18f2),url("assets/field-weave.jpg") center/300px; }
.deploy-button { background:#e9b574; background-image:linear-gradient(115deg,#f1c48be6,#dfaa68ed),url("assets/rusted-steel.jpg"); background-size:auto,300px; }
.deploy-button:hover { filter:brightness(1.08); }
dialog[data-view="armory"],dialog[data-view="intel"] { width:min(660px,calc(100% - 28px)); }
.store-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:15px; margin-bottom:15px; border-bottom:1px solid var(--line); }
.store-switch { display:flex; gap:4px; }
.store-switch button { border:1px solid #7981697c; padding:6px 12px; font-size:14px; font-weight:650; }
.store-switch button[aria-pressed="true"] { background:#bda376; border-color:#d7b983; color:#22261b; }
.store-balance { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.store-balance span { font-size:12px; color:#c9cbb9; }
.armory-item { min-height:52px; }
.shop-instruction,.shop-feedback,.settle-balance { font-size:13px; line-height:1.65; }
.shop-instruction { margin:12px 0; }
.shop-feedback:empty { display:none; }
.dialog-inner .shop-feedback,.dialog-inner .settle-balance { margin:14px 0 0; color:#efc988; }
.supply-row { display:grid; grid-template-columns:63px 1fr auto; align-items:center; gap:14px; padding:14px 3px; border-bottom:1px solid var(--line); }
.supply-row .gear-icon { width:62px; height:36px; }
.supply-row b { font-size:15px; }
.supply-row p { margin:3px 0; font-size:13px; line-height:1.55; }
.supply-row small { color:#e0c08d; font-size:12px; }
.supply-row b + small { display:block; margin-top:3px; line-height:1.45; }
.supply-row button { min-height:36px; white-space:nowrap; color:#f3d29b; font-size:13px; }
.intel-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.intel-grid article { min-width:0; padding-bottom:10px; border:1px solid var(--line); background:#191e18; }
.intel-grid img { display:block; width:100%; height:auto; aspect-ratio:4/4.5; object-fit:cover; object-position:center 24%; border-bottom:1px solid var(--line); }
.intel-grid b { display:block; margin:10px 9px 4px; font-size:15px; }
.intel-grid p { margin:0 9px; font-size:12px; line-height:1.65; }
.hud-mission { min-width:176px; }
#field-conditions { margin-top:7px; padding-top:6px; border-top:1px solid #e1decf38; font-size:11px; letter-spacing:.06em; color:#e2cba3; }
#flight-data { margin-top:4px; color:#edf1de; font:11px/1.5 var(--mono),var(--cn); }
.ordnance-key { pointer-events:auto; justify-self:end; display:inline-flex; align-items:center; gap:8px; padding:5px 9px; color:#f2e3c5; min-height:34px; }
.ordnance-key kbd { font-size:11px; color:inherit; }
.ordnance-key span { font-size:12px; }
.ordnance-key b { color:#ffdb96; font:600 14px var(--mono); }
.ordnance-key:hover:enabled { border-color:#eac386; background:#343b29ef; }
#hud-slots button:disabled { opacity:.5; }
#bomb-reticle { position:absolute; transform:translate(-50%,-50%); width:36px; height:18px; border:1.5px dashed #ffcf81; border-radius:50%; color:#ffe2a7; filter:drop-shadow(0 1px 2px #17231b); }
#bomb-reticle i { position:absolute; width:6px; height:2px; background:currentColor; top:calc(50% - 1px); left:calc(50% - 3px); }
#bomb-reticle span { position:absolute; inset:100% -14px auto; margin-top:2px; font-size:10px; text-align:center; text-shadow:0 1px 2px #10150e; }
@media (min-width:1450px) { .mission { min-height:350px; } }
@media (max-width:1000px) {
  .chapter-step { gap:5px; padding:5px 7px; }.chapter-step b { font-size:12px; }
  .nav-tools { gap:4px; }.wallet span { display:none; }.wallet { padding-inline:8px; }
}
@media (min-width:801px) and (max-height:700px) {
  .mission { min-height:228px; }.mission-copy { padding-block:18px; }.campaign-rail { padding-block:9px; }
}
@media (max-width:800px) {
  .mission { min-height:270px; }.campaign-rail { display:block; padding:12px 17px; }
  .rail-heading { display:flex; align-items:baseline; gap:10px; margin-bottom:8px; }
  .chapter-step { grid-template-columns:1fr auto; gap:0 4px; min-height:39px; padding:4px 6px; }
  .chapter-step small { grid-row:1; font-size:9px; }.chapter-step i { grid-row:1; }.chapter-step b { grid-row:2; grid-column:1 / -1; }
  .side-card,.side-card.selected { background-size:auto,205px; }
}
@media (max-width:600px) {
  .bar-inner { width:calc(100% - 24px); }.brand .wordmark { font-size:19px; }
  .deploy-foot { grid-template-columns:minmax(0,1fr); }
  nav { gap:10px; }.nav-tools { gap:2px; margin-left:auto; }.wallet { padding:0 5px; gap:3px; min-height:29px; }
  .wallet svg { width:13px; height:13px; }.wallet b { font-size:11px; }.nav-tools .icon-btn { width:24px; }
  .backdrop { background-size:auto 500px; background-position:74% -9px; }
  .backdrop::after { background:linear-gradient(90deg,#111a15bd 0%,#131a1473 50%,transparent 90%),linear-gradient(0deg,#191d18 16%,#191d1873 43%,transparent 67%); }
  .mission { min-height:254px; }.mission-copy { padding:23px 0; }.intro { max-width:68%; }
  .campaign-rail { padding:11px 12px; }#chapter-steps { gap:3px; }.chapter-step { padding:4px; }.chapter-step b { font-size:11px; white-space:nowrap; }
  .rail-heading { margin-bottom:6px; }.rail-heading h2 { font-size:14px; }.gear-lock { top:4px; right:4px; }.gear-lock svg { width:10px; height:10px; }
  .store-top { align-items:flex-start; flex-wrap:wrap; gap:8px; }.store-switch button { padding:5px 8px; }
  .supply-row { grid-template-columns:38px 1fr auto; gap:8px; }.supply-row .gear-icon { width:38px; }.supply-row button { padding:6px; }
  .intel-grid { gap:5px; }.intel-grid b { font-size:13px; margin-inline:5px; }.intel-grid p { font-size:11px; margin-inline:5px; }
  .hud-mission { min-width:0; }.ordnance-key { min-height:38px; gap:6px; } #hud-slots .gear-icon { width:26px; }
}
@media (max-width:410px) {
  .nav-tab[data-nav="lobby"] { display:none; }nav { margin-left:12px; }
  .chapter-step b { font-size:10px; }.chapter-step { padding:3px; }.mission-facts { gap:7px; }
}
@media (pointer:coarse) {
  .ordnance-key { min-height:42px; }.ordnance-key kbd { display:none; }
  #hud-slots button { min-height:35px; }#hud-slots .gear-icon { width:24px; }
}

.support-store { display:inline-flex; align-items:center; justify-content:center; gap:7px; margin-left:auto; padding:7px 11px; border:1px solid #a0916b6b; background:#252a20c9; }
.support-store:hover { border-color:var(--gold); }
.support-store .gear-icon { width:28px; height:18px; color:#debd88; }
.support-store span { color:#e1d4b7; font-weight:600; font-size:13px; white-space:nowrap; }
.support-store b { color:#b9c1ad; font-size:12px; font-weight:500; white-space:nowrap; }
.weapon-specs { display:flex; flex-wrap:wrap; gap:5px 16px; margin-top:12px; padding-top:8px; border-top:1px solid var(--line); font-size:12px; color:#b8bead; }
.weapon-specs b { color:#ecd1a4; font:600 14px var(--mono),var(--cn); }
.support-keys { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; pointer-events:auto; }
.field-key { display:flex; align-items:center; justify-content:center; gap:4px; min-height:32px; padding:3px; }
.field-key kbd { color:#ecd6aa; font:11px var(--mono); }
.field-key span,.field-key b { font-size:12px; white-space:nowrap; }
.field-key b { color:#f0c483; font-weight:600; }
.field-key[aria-pressed="true"],.field-key:hover:enabled { border-color:var(--gold); background-color:#494532; }
#air-contact { padding:2px 8px; border:1px solid #df967f9c; background:#33251ed6; color:#ffccb2; font-size:11px; white-space:nowrap; }
#air-tag,#uav-tag { position:absolute; transform:translate(-50%,-100%); display:grid; justify-items:center; gap:1px; color:#ffd0ae; text-shadow:0 1px 2px #161713; }
#air-tag span,#uav-tag span { font:600 11px var(--cn); padding:0 4px; background:#322c25a6; }
#air-tag i,#uav-tag i { width:32px; height:3px; background:#422d26d4; }
#air-tag b,#uav-tag b { display:block; height:100%; background:#ffa57e; }
#aim-shade { position:absolute; inset:0; pointer-events:none; opacity:0; background:radial-gradient(ellipse at center,transparent 34%,#18211929 70%,#090e0b72); transition:opacity .16s; }
.aiming #aim-shade { opacity:1; }.aiming #crosshair { transform:translate(-50%,-50%) scale(.67); }
.placing #crosshair { opacity:0; }.placing #viewport { cursor:crosshair; }
#touch-aim { pointer-events:auto; touch-action:manipulation; position:absolute; right:155px; bottom:32px; width:44px; height:44px; color:#fff0c8; font:600 12px var(--cn); border-radius:50%; border:1px solid #f9efd383; background:#1c261e8a; display:grid; place-items:center; }
#touch-aim[aria-pressed="true"] { color:#231f17; background:var(--gold); }
#touch-crouch { pointer-events:auto; touch-action:manipulation; position:absolute; left:110px; bottom:18px; width:44px; height:44px; color:#fff0c8; font:600 12px var(--cn); border-radius:50%; border:1px solid #f9efd383; background:#1c261e8a; }
#touch-crouch[aria-pressed="true"] { color:#231f17; background:var(--gold); }
.flight-mode #touch-crouch { display:none; }
#beast-tag { position:absolute; display:grid; justify-items:center; transform:translate(-50%,-100%); pointer-events:none; text-shadow:0 1px 3px #121516; color:#f1d0a9; }
#beast-tag span { font:600 11px var(--cn); letter-spacing:.04em; background:#292724bf; padding:2px 5px; }
#beast-tag i { width:47px; height:3px; background:#302e2be0; }
#beast-tag b { display:block; height:100%; background:#edac73; }
#beast-tag[data-team="ally"] { color:#d1e9da; }
#beast-tag[data-team="ally"] b { background:#a3d8be; }
@media (max-width:1020px) and (min-width:601px) { .support-store b { display:none; }.deploy-foot { gap:12px; } }
@media (max-width:600px) {
  .deploy-foot { grid-template-columns:minmax(0,1fr) auto; }
  .deploy-foot .deploy-button { grid-column:1 / -1; }.support-store { padding:4px 6px; gap:4px; }.support-store b { display:none; }
  .support-store .gear-icon { width:22px; }
  .field-key kbd { display:none; }.field-key { min-height:34px; }
}
@media (pointer:coarse) { .field-key kbd { display:none; }.field-key { min-height:38px; } }
.support-keys { min-width:192px; justify-self:end; width:100%; }
#aa-status { justify-self:end; padding:3px 9px; color:#bde2db; font-size:12px; }
#landing-status { margin-top:7px; padding:2px 0 2px 7px; color:#cde9dd; border-left:2px solid #8ec4ad; font-size:13px; }
#boat-tag { position:absolute; transform:translate(-50%,-100%); padding:2px 5px; white-space:nowrap; font-size:11px; color:#e3e4bd; background:#18231bd6; border-bottom:1px solid #c6bf86; }
#optic-view { position:absolute; inset:0; pointer-events:none; z-index:1; }
.lens-mask { position:absolute; inset:0; background:#080d0df7;
  -webkit-mask-image:radial-gradient(ellipse 32% 44% at 33% 50%,transparent 91%,black 100%),radial-gradient(ellipse 32% 44% at 67% 50%,transparent 91%,black 100%);
  -webkit-mask-composite:source-in;
  mask-image:radial-gradient(ellipse 32% 44% at 33% 50%,transparent 91%,black 100%),radial-gradient(ellipse 32% 44% at 67% 50%,transparent 91%,black 100%);
  mask-composite:intersect; }
.lens-reticle { position:absolute; width:84px; height:24px; top:50%; left:50%; transform:translate(-50%,-50%); opacity:.68;
  background:linear-gradient(#181e19,#181e19) center/1px 15px no-repeat,linear-gradient(#181e19,#181e19) center/100% 1px no-repeat,repeating-linear-gradient(90deg,#182018 0 1px,transparent 1px 10px) center/65px 5px no-repeat; }
.lens-readout { position:absolute; bottom:10%; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:10px; padding:5px 9px; white-space:nowrap; border:1px solid #a4bb9d74; background:#0e1818d9; color:#c7e9ca; font:12px var(--mono),var(--cn); }
.lens-readout b { font-size:18px; color:#fee19c; }.lens-readout button { pointer-events:auto; border:1px solid #a9bb9666; background:#27332a; color:#edecd9; padding:4px 7px; }
.observing #crosshair,.observing #aim-shade,.observing #rescue-marker,.observing #field-hint { visibility:hidden; }
.observing .hud-notices { top:auto;bottom:calc(10% + 46px); }
.observing #touch-aim,.observing #touch-fire,.observing #touch-reload { display:none; }
.observing #hud,.observing #touch-controls { z-index:2; }.observing .hud-mission,.observing .hud-center,.observing .lower-left { opacity:.7; }
.observing #hud-slots,.observing .lower-right>:not(.support-keys),.observing .support-keys>:not(#optic-action) { display:none; }
.observing .support-keys { display:flex; justify-content:flex-end; }.observing #optic-action { padding-inline:10px; }
@media (max-width:650px),(max-height:550px) { .support-keys { min-width:148px; }#landing-status { margin-top:4px; font-size:11px; }.lens-readout { bottom:13%; gap:5px; }.observing .hud-notices { bottom:calc(13% + 40px); } }
@media (max-width:600px) and (orientation:portrait) { .lens-mask { -webkit-mask-image:radial-gradient(ellipse 55% 37% at 50% 48%,transparent 90%,black 100%); mask-image:radial-gradient(ellipse 55% 37% at 50% 48%,transparent 90%,black 100%); }.lens-readout { bottom:24%; }.observing .hud-notices { bottom:calc(24% + 40px); } }

.photo-credit { margin:14px 0 4px; color:#c3c5b5; font:13px/1.5 var(--cn); }
.photo-credit a { color:#e2c585; text-underline-offset:3px; }

#rescue-marker b{width:auto;min-width:31px;padding:2px 6px;white-space:nowrap}
#rescue-action{position:absolute;z-index:4;left:50%;bottom:14%;transform:translateX(-50%);pointer-events:auto;border-color:#c2ba80;min-height:38px;padding:7px 15px;gap:9px;white-space:nowrap}
#rock-tag{position:absolute;transform:translate(-50%,-130%);font-size:12px;font-weight:700;color:#ffe5bc;background:#342b22d9;border:1px solid #ba9867;padding:3px 7px;white-space:nowrap}
@media(max-width:660px){#rescue-action{bottom:23%}}

/* Theater selection and the live field ledger. */
.brand .wordmark { font:850 27px/.9 var(--cn); transform:none; letter-spacing:.14em; }
.brand .wordmark small { font:600 8px/1 var(--mono); letter-spacing:.15em; transform:none; margin-top:7px; }
.lobby[data-theater="forest"] .backdrop { background-color:#14241d; background-image:url("assets/primeval-forest-hero.webp"); background-position:55% 42%; }
.lobby[data-theater="forest"] .backdrop::after { background:linear-gradient(90deg,#07130fdf 0%,#1022198a 31%,#13251a09 61%),linear-gradient(0deg,#141d18 0%,#16241b8a 27%,transparent 60%); }
.theater-picker { display:flex; width:max-content; max-width:100%; gap:0; margin-top:17px; padding:3px; border:1px solid #c4d0b452; background:#0b1710c9; }
.theater-picker button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:35px; padding:5px 15px; font-size:13px; font-weight:650; color:#d0d7c7; letter-spacing:.05em; }
.theater-picker button i { width:7px; height:7px; border:1px solid #a9b6a1; transform:rotate(45deg); }
.theater-picker button:hover { background:#5b71543d; }
.theater-picker button[aria-pressed="true"] { background:#bfa777; color:#1b261c; }
.theater-picker button[aria-pressed="true"] i { background:#263c29; border-color:#263c29; }
.theater-picker+.mission-facts { margin-top:12px; }
.field-bank { position:absolute; top:var(--hud-bank-top, max(17px,3vh)); right:calc(max(17px,2.2vw) + 54px); display:flex; align-items:center; gap:7px; min-height:35px; padding:5px 10px; font:600 12px var(--cn); color:#e3d7ae; }
.field-bank svg { width:16px; height:16px; color:#ebc175; }
.field-bank b { font:700 16px var(--mono); color:#ffe3a0; font-variant-numeric:tabular-nums; }
#credit-feed { position:absolute; right:max(17px,2.2vw); top:calc(var(--hud-bank-top, max(17px,3vh)) + 44px); display:grid; justify-items:end; gap:4px; }
.credit-change { padding:4px 8px; background:#101d18dc; border-right:2px solid currentColor; font:650 12px/1.4 var(--cn); animation:credit-arrival 2.9s both; color:#abf2ba; }
.credit-change.loss { color:#ffafa1; background:#331e1bd9; }
@keyframes credit-arrival { 0% { opacity:0; transform:translateY(7px); } 12%,76% { opacity:1; transform:translateY(0); } 100% { opacity:0; transform:translateY(-6px); } }
#cover-status { color:#bbd6a7; font-size:11px; margin-top:2px; }
#tank-tag { position:absolute; display:grid; justify-items:center; transform:translate(-50%,-100%); pointer-events:none; color:#ffe1c3; }
#tank-tag span { padding:2px 5px; background:#2b241bdd; font:650 11px var(--cn); }
#tank-tag i { width:48px; height:4px; background:#251f1add; }
#tank-tag b { display:block; height:100%; background:#f0af77; }
.credit-rules { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 16px; }
.credit-rules span { display:flex; justify-content:space-between; border-bottom:1px solid var(--line); padding:4px 0; color:#d1d9c8; }
.credit-rules b { font-family:var(--mono); color:#edc687; }
@media(max-width:800px) { .theater-picker { margin-top:12px; } }
@media(max-width:600px) {
  .brand .wordmark { font-size:22px; }.brand .wordmark small { font-size:7px; letter-spacing:.06em; }
  .lobby[data-theater="forest"] .backdrop { background-size:auto 600px; background-position:63% 0; }
  .theater-picker button { min-height:33px; padding:4px 12px; }.theater-picker+.mission-facts { margin-top:9px; }
  .field-bank { --hud-bank-top:10px; right:55px; min-height:29px; gap:4px; padding:4px 6px; }
  .field-bank span { display:none; }.field-bank b { font-size:13px; }.field-bank svg { width:12px; height:12px; }
  #credit-feed { --hud-bank-top:8px; right:12px; }.credit-change { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .credit-change { animation:none; } }

.store-balance .ledger-debit { color:#ffab96; }
.settle-balance .ledger-gain { color:#abedb9; }

#retry-programs { margin-left:5px; padding:2px 7px; border:1px solid currentColor; color:var(--gold); }
#motion-status { font:11px/1.45 var(--cn); color:#dbd3ad; }
#post-tag { position:absolute; transform:translate(-50%,-100%); padding:3px 6px; white-space:nowrap; font:600 11px var(--cn); background:#17241dd9; color:#d9e6c7; border-bottom:1px solid #9eb08a; }
#wall-action { pointer-events:auto; position:absolute; bottom:calc(14% + 45px); left:50%; transform:translateX(-50%); padding:6px 14px; border-color:#a3c9bc; color:#cae9da; white-space:nowrap; }
#battle.crossing-wall::after { content:""; position:absolute; pointer-events:none; inset:0; box-shadow:inset 0 0 10vmin #9dc9b97a; z-index:1; }
#touch-sprint,#touch-jump { pointer-events:auto; position:absolute; bottom:68px; left:110px; display:grid; place-items:center; border:1px solid #e7ecd089; width:42px; height:39px; border-radius:50%; color:#f2e8c9; font:600 12px var(--cn); background:#1a281ed1; touch-action:manipulation; }
#touch-jump { left:156px; } #touch-sprint[aria-pressed=true] { color:#1c271e; background:var(--gold); }
.flight-mode #touch-sprint,.flight-mode #touch-jump,.at-gun-post #touch-sprint,.at-gun-post #touch-jump,.at-gun-post #touch-crouch { display:none; }
@media(max-width:660px){#wall-action{bottom:calc(23% + 43px)}#hud-slots .gear-icon{max-width:100%;}.gear-slot strong{white-space:nowrap;font-size:12px;}}
@media(prefers-reduced-motion:reduce){#battle.crossing-wall::after{box-shadow:inset 0 0 3px #bfe3d4;}}

#uav-tag {color:#ffd5bc;pointer-events:none;} #uav-tag i {width:45px;}
#swarm-status {margin-top:5px;font-size:12px;color:#a6e4db;line-height:1.4;white-space:pre-line;}
.supply-row .dog-portrait {height:auto;aspect-ratio:1;object-fit:cover;object-position:center;border:1px solid var(--line);}
#guard-dog-status {justify-self:end;min-width:min(100%,155px);padding:5px 9px;color:#c0e6d6;font-size:11px;}
#guard-dog-status div {display:flex;align-items:baseline;justify-content:space-between;gap:9px;}
#guard-dog-status strong {font-size:12px;} #dog-condition {font:600 12px var(--mono),var(--cn);}
#guard-dog-status i {display:block;height:3px;margin:4px 0;background:#51645b;}
#dog-armor {display:block;height:100%;background:#9bd4ba;} #guard-dog-status[data-low="true"] #dog-armor {background:#e0a678;}
#guard-dog-tag,#route-mine-tag,#rotor-tag {position:absolute;transform:translate(-50%,-100%);pointer-events:none;white-space:nowrap;padding:2px 5px;background:#202a25da;font:600 11px var(--cn);color:#afe3cd;}
#route-mine-tag {color:#ffd58d;background:#392e1ded;}

.lobby[data-theater="xiliang"] .backdrop {background-color:#48361e;background-image:url("assets/xiliang-siege-hero.webp");background-position:55% 43%;}
.lobby[data-theater="xiliang"] .backdrop::after {background:linear-gradient(90deg,#17150de0 0%,#2a21158f 32%,#34261509 65%),linear-gradient(0deg,#171d16 1%,#28221773 27%,transparent 64%);}
.lobby[data-theater="xiliang"] #gear-slots {grid-template-columns:repeat(3,minmax(0,1fr));}
.lobby[data-theater="xiliang"] .gear-slot {grid-template-rows:1fr auto auto;background:linear-gradient(140deg,#51452bdd,#2d2b22ed),url("assets/field-weave.jpg") center/200px;}
.lobby[data-theater="xiliang"] .gear-slot strong {margin:0;}
.lobby[data-theater="xiliang"] .gear-slot small {font-size:11px;color:#c7bea9;margin:2px 0 6px;}
.lobby[data-theater="xiliang"] .gear-slot .gear-icon {height:clamp(27px,5vh,56px);margin:4px 0 0;max-width:115px;}
.xiliang-intel {width:100%;max-height:220px;object-fit:cover;border:1px solid var(--line);}
.xiliang-sortie #hud,.xiliang-sortie #touch-controls,.xiliang-sortie #optic-view,.xiliang-sortie #damage-vignette {display:none!important;}
#oasis-hud {position:absolute;inset:0;pointer-events:none;overflow:hidden;color:#fff1cf;font-family:var(--cn);font-variant-numeric:tabular-nums;}
.oasis-panel {background:linear-gradient(130deg,#24251ced,#2e281ce8);border:1px solid #b9a47679;box-shadow:0 2px 9px #1b170f36;color:#fff1cf;}
.oasis-objective {position:absolute;left:2%;top:3%;width:clamp(210px,19vw,285px);padding:12px 16px 13px;border-left:3px solid #cfa56d;}
.oasis-objective>span,.oasis-weapon>small {display:block;font-size:12px;font-weight:650;letter-spacing:.05em;color:#dac193;}
.oasis-objective>b {display:block;font-size:clamp(19px,1.7vw,25px);margin:3px 0 11px;}
.oasis-score {display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;}
.oasis-score span:first-child {color:#aae2d5;}.oasis-score span:last-child {color:#f5b583;}
.oasis-score b {font-size:17px;}.oasis-bars {display:grid;grid-template-columns:1fr 1fr;gap:12px;height:4px;margin:4px 0 8px;}.oasis-bars span{background:#96876f44;overflow:hidden;}
.oasis-bars i {display:block;height:100%;transition:width .2s;}#oasis-def-bar {background:#76cbb5;}#oasis-att-bar {background:#e6a270;}
#oasis-control {font-size:12px;color:#eee0c3;}.oasis-clock {position:absolute;top:3%;left:50%;transform:translateX(-50%);padding:5px 12px;display:flex;align-items:center;gap:6px;white-space:nowrap;}
.oasis-clock b {font-size:21px;}.oasis-clock span {font-size:12px;border-left:1px solid #a997735e;padding-left:7px;}.oasis-clock svg,.oasis-bank svg {width:17px;height:17px;}
.oasis-bank {position:absolute;top:3%;right:2%;display:flex;align-items:start;gap:5px;}.oasis-bank span,.oasis-bank button {padding:7px 9px;font-size:13px;}.oasis-bank button {pointer-events:auto;display:grid;place-items:center;height:34px;}.oasis-bank b {color:#f1cc88;}
#oasis-award {position:absolute;top:calc(100% + 5px);right:0;color:#d3ffdf;text-shadow:0 1px 4px #182c17;white-space:nowrap;font-weight:bold;}
#oasis-sight {position:absolute;left:50%;top:50%;width:19px;height:12px;transform:translate(-50%,-50%);border-left:2px solid #ffeed3bd;border-right:2px solid #ffeed3bd;filter:drop-shadow(0 1px 1px #322518);transition:width .1s;}
#oasis-sight i {position:absolute;left:50%;top:50%;width:3px;height:3px;background:#fff9e4;transform:translate(-50%,-50%);border-radius:50%;}
#oasis-sight.hit {border-color:#ffbe80;}#oasis-sight.hit i {background:#ff9c55;}
#oasis-target,#oasis-message,#oasis-hint {position:absolute;left:50%;transform:translateX(-50%);text-align:center;font-size:13px;white-space:nowrap;text-shadow:0 1px 4px #2c2118;}
#oasis-target {top:calc(50% + 15px);color:#ffe9c6;}#oasis-message {top:62%;color:#fff0c8;font-weight:bold;background:#29251ccb;}
#oasis-message:not(:empty),#oasis-hint:not(:empty) {padding:4px 10px;}#oasis-hint {bottom:2.7%;max-width:49%;background:#242218d6;white-space:normal;}
#oasis-objective-mark {position:absolute;transform:translate(-50%,-100%);display:grid;justify-items:center;color:#d1f4e8;text-shadow:0 1px 3px #112d24;font-size:12px;}
#oasis-objective-mark i {width:9px;height:9px;border:2px solid #a5e6cf;transform:rotate(45deg);margin-bottom:3px;background:#385b5199;}#oasis-objective-mark small {font-size:11px;}
.oasis-map {position:absolute;left:2%;bottom:3%;width:clamp(110px,12vw,164px);}.oasis-map canvas {width:100%;height:auto;display:block;}.oasis-map div {display:flex;gap:7px;align-items:center;font-size:12px;padding:4px 8px;}.oasis-map b {font-size:16px;}
.oasis-map div>i,.oasis-weapon>i {flex:1;background:#8b7d553d;height:4px;display:block;}.oasis-map em,.oasis-weapon em {display:block;height:100%;background:#b8ca91;width:100%;}
.oasis-weapon {position:absolute;right:2%;bottom:3%;width:clamp(170px,18vw,245px);padding:10px 13px;}.oasis-weapon>div {display:flex;align-items:center;justify-content:space-between;gap:10px;}.oasis-weapon>div b {font-size:clamp(17px,1.5vw,23px);}.oasis-weapon>div span {color:#f7d28d;font-weight:750;font-size:19px;}.oasis-weapon>i {margin:6px 0;}.oasis-weapon em {background:#e3b66e;width:0;}.oasis-weapon>small:last-child {font-size:11px;color:#d0c3a7;}
#oasis-touch {display:none;}#oasis-stick,#oasis-touch button {pointer-events:auto;touch-action:none;border:1px solid #d7c79f98;background:#25261ca8;color:#fff1cf;position:absolute;}
#oasis-stick {left:5%;bottom:6%;width:78px;height:78px;border-radius:50%;display:grid;place-items:center;}#oasis-stick i {width:30px;height:30px;background:#c6bb9677;border-radius:50%;}
#oasis-touch button {bottom:6%;padding:9px 11px;border-radius:5px;}#oasis-touch-fire {right:3%;}#oasis-touch-aim {right:20%;}#oasis-touch-post {right:36%;}
@media(pointer:coarse){#oasis-touch {display:block;}.oasis-map,.oasis-weapon{bottom:25%;}#oasis-hint{bottom:1%;font-size:10px;}}
@media(max-width:650px){.oasis-objective{width:165px;padding:7px;}.oasis-objective>b{font-size:16px;margin-bottom:4px;}.oasis-score,.oasis-objective>span,#oasis-control{font-size:10px;}.oasis-clock{top:3%;left:auto;right:2%;transform:none;padding:3px 7px;}.oasis-clock b{font-size:17px;}.oasis-bank{top:calc(3% + 34px);}.oasis-map{width:92px;}.oasis-weapon{width:140px;padding:5px 8px;}.lobby[data-theater="xiliang"] .backdrop{background-position:58% top;}.theater-picker button{padding-inline:8px;}}
@media(max-height:520px){.oasis-map{width:80px;}.oasis-objective{padding:5px 8px;}.oasis-objective>b{margin:0;font-size:16px;}.oasis-bars{margin:1px 0 3px;}.oasis-weapon{padding:5px 8px;}.oasis-clock{padding:2px 6px;}#oasis-hint{font-size:10px;}}

.siege-loadout {position:absolute;right:2%;bottom:3%;display:grid;justify-items:end;align-items:end;gap:5px;}
.siege-loadout .oasis-weapon {position:static;}
.siege-orders {display:flex;gap:5px;}
.siege-orders button {pointer-events:auto;display:flex;gap:5px;align-items:center;padding:5px 8px;font:600 13px var(--cn);color:#f7eacc;}
.siege-orders button:disabled {opacity:.68;}.siege-orders b {color:#e5ba78;}.siege-orders kbd {font:700 11px var(--cn);border:1px solid #c9b17a8c;padding:1px 3px;}
.oasis-weapon>div>b,.oasis-weapon>div>span {white-space:nowrap;}
@media(max-width:650px){.siege-orders button{padding:4px 6px;font-size:12px;}.siege-loadout .oasis-weapon{width:155px;}.oasis-weapon>div{gap:4px;}.oasis-weapon>div>b{font-size:16px;}.oasis-weapon>div>span{font-size:16px;}}
@media(pointer:coarse){.siege-loadout{bottom:25%;}.siege-orders button{min-height:36px;}.siege-orders kbd{display:none;}}
@media(pointer:coarse) and (max-height:520px){.siege-loadout{grid-auto-flow:column;align-items:end;}}

#oasis-drop {position:absolute;width:7px;height:7px;border:1.5px solid #ffdc95;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 2px #46341b;pointer-events:none;}

.campaign-modes {display:inline-flex;gap:16px;border-bottom:1px solid #e6dcb34a;}
.campaign-modes button {padding:4px 0 7px;color:#d0d4c4;font:650 13px/1.1 var(--cn);letter-spacing:.09em;border-bottom:2px solid transparent;}
.campaign-modes button[aria-pressed="true"] {color:#ffdb9b;border-bottom-color:#e2b167;}
.campaign-modes button:focus-visible,.theater-picker button:focus-visible {outline:2px solid #ffdb9b;outline-offset:2px;}
.theater-picker button.is-locked {color:#adae9d;}
.theater-picker button.is-locked i {width:7px;height:6px;margin-top:2px;border-radius:1px;transform:none;position:relative;border-color:#abae9e;}
.theater-picker button.is-locked i::before {content:"";position:absolute;left:0;top:-5px;width:5px;height:4px;border:1px solid #abae9e;border-bottom:0;border-radius:3px 3px 0 0;}
.lobby[data-theater="tribe"] .backdrop {background:#17201e url("assets/tribe-hero.webp") 62% 38% / cover no-repeat;}
.lobby[data-theater="tribe"] .backdrop::after {background:linear-gradient(90deg,#0a1415cb 0%,#0d13136b 30%,transparent 58%),linear-gradient(0deg,#191b17 0%,#1a1c18bd 15%,transparent 59%);}
.lobby[data-theater="forest"] .backdrop {background-image:url("assets/monsoon-camp.webp");background-position:62% 39%;}
.tribe-loadout {grid-column:1 / -1;display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:58px;padding:10px 15px 10px 18px;border-left:2px solid #cf965d;background:linear-gradient(100deg,#63483154,transparent);}
.tribe-loadout strong {font-size:17px;color:#f2d2a4;letter-spacing:.06em;}
.tribe-loadout span {color:#d4d1be;font-size:13px;}
#support-store[hidden] {display:none!important;}
#oasis-wall-warning {position:absolute;top:clamp(64px,12vh,106px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(48vw,480px);padding:5px 12px;background:#322011de;border:1px solid #e2ad6985;color:#ffe3ad;font:650 13px/1.4 var(--cn);text-align:center;text-shadow:0 1px 2px #23160c;}
#oasis-wall-warning[hidden] {display:none;}
#siege-fire-mode[aria-pressed="true"] {background:#502b19e3;border-color:#dc9b55;}
#siege-fire-mode[aria-pressed="true"] b {color:#ffd29a;}
#helicopter-action {grid-column:1/-1;}
.next-chapter {display:grid;grid-template-columns:clamp(80px,23%,144px) 1fr;align-items:center;gap:14px;margin:.9rem 0;color:#ebe5d5;background:#b7b1910b;border:1px solid #b2a27542;}
.next-chapter img {width:100%;height:82px;object-fit:cover;}
.next-chapter strong {font-size:15px;color:#eac78e;}
.next-chapter p {margin:4px 10px 0 0;font-size:13px;line-height:1.5;color:#c9cebe;}
@media(max-width:650px){
  .theater-picker {width:100%;max-width:380px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
  .theater-picker button {gap:4px;padding-inline:2px;font-size:12px;white-space:nowrap;}
  .lobby[data-theater="tribe"] .backdrop,.lobby[data-theater="forest"] .backdrop {background-size:auto 570px;background-position:62% 0;}
  #oasis-wall-warning {top:clamp(108px,24vh,142px);max-width:76vw;font-size:11px;padding:3px 8px;}
  .siege-orders {flex-wrap:wrap;max-width:206px;justify-content:flex-end;}
}
@media(pointer:coarse) and (max-height:520px) {
  .siege-orders {max-width:210px;}.support-keys {gap:2px;}#helicopter-action {min-height:21px;}
}
.lobby:is([data-theater="tribe"],[data-theater="xiliang"]) #gear-slots {grid-template-columns:repeat(4,minmax(0,1fr));}
.lobby[data-theater="tribe"] .gear-slot small {font-size:10px;color:#bdc6af;white-space:nowrap;}
#chapter-film {width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;border:0;padding:0;background:#080908;color:#eee7d1;}
#chapter-film::backdrop {background:#080908;}
.film-stage {width:100%;height:100%;position:relative;display:grid;place-items:center;overflow:hidden;}
#chapter-screen {width:100%;height:100%;object-fit:contain;}
.film-heading {position:absolute;inset:0 0 auto;padding:clamp(20px,4vw,68px);background:linear-gradient(#0b0c0bba,transparent);pointer-events:none;text-shadow:0 2px 6px #111;}
.film-heading span {font-size:clamp(12px,1.15vw,18px);letter-spacing:.26em;color:#dec58e;}
.film-heading h2 {font:500 clamp(24px,3.4vw,54px)/1.4 "Songti SC","Noto Serif CJK SC",serif;letter-spacing:.16em;margin:.2em 0;}
#film-caption {position:absolute;bottom:clamp(72px,14%,144px);padding:.26em .75em;max-width:86%;background:#111411a1;text-align:center;font:500 clamp(15px,2.1vw,32px)/1.55 "Songti SC",serif;text-shadow:0 2px 4px #111;border-radius:3px;}
#film-caption:empty {display:none;}
.film-controls {position:absolute;bottom:0;left:0;right:0;padding:22px clamp(14px,4vw,70px);display:flex;gap:10px;align-items:center;background:linear-gradient(transparent,#080908e8);}
.film-controls button {color:#eee6cf;padding:8px 12px;border:1px solid #b4a4817d;background:#101510bb;font-size:13px;}
.film-controls button:hover,.film-controls button:focus-visible {border-color:#e4c691;}
.film-controls button[aria-pressed=false] {color:#a9a69a;}
#film-skip {margin-left:auto;}#film-time {font:12px monospace;color:#c7c2ad;}
#region-feedback {position:absolute;top:calc(50% + 29px);left:50%;transform:translateX(-50%);z-index:5;color:#e8dcc0;text-shadow:0 1px 4px #151817,0 0 7px #111;font-weight:650;pointer-events:none;white-space:nowrap;font-size:13px;}
#region-feedback[data-critical=true] {color:#ffd886;letter-spacing:.08em;}
@media(max-width:650px){.mission-facts{flex-wrap:wrap;row-gap:4px}.film-controls{gap:6px}.film-controls button{padding:7px 8px}.lobby[data-theater="tribe"] .gear-slot small{font-size:9px}}

.tribe-sortie #hud,
.tribe-sortie #touch-controls,
.tribe-sortie #optic-view,
.tribe-sortie #damage-vignette {
  display: none !important;
}
#tribe-hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  color: #f5efdc;
  font-family: var(--cn, system-ui), sans-serif;
  font-variant-numeric: tabular-nums;
  --tribe-moss: #bce0bd;
  --tribe-amber: #f4cb87;
  --tribe-dark: rgba(23, 33, 27, 0.87);
}
#tribe-hud[hidden],
#tribe-hud [hidden] {
  display: none !important;
}
#tribe-hud svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.tribe-top {
  position: absolute;
  inset: 24px 24px auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 3;
}
.tribe-task,
.tribe-clock,
.tribe-pause,
.tribe-compass,
.tribe-tools,
.tribe-interaction.available,
.tribe-notice:not(:empty) {
  background: linear-gradient(130deg, rgba(27, 39, 31, 0.93), rgba(23, 32, 27, 0.78));
  border: 1px solid rgba(181, 194, 153, 0.39);
  box-shadow: 0 4px 22px #10191232;
}
.tribe-task {
  min-width: 218px;
  padding: 13px 18px 12px;
  border-left: 3px solid #d6ad68;
}
.tribe-caption {
  color: #c8c5a4;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 650;
}
.tribe-task h2 {
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.1;
  margin: 7px 0 11px;
  letter-spacing: 0.04em;
  color: #fff7df;
  font-weight: 750;
}
.tribe-objectives {
  display: grid;
  gap: 5px;
}
.tribe-objectives > div,
.tribe-tools > div,
.tribe-vitals {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tribe-objectives > div {
  font-size: 12px;
  color: #d0d4bc;
}
.tribe-objectives svg {
  color: #d6b97f;
  width: 15px !important;
  height: 15px !important;
}
.tribe-objectives b {
  margin-left: auto;
  color: #ebead6;
  font-size: 13px;
}
.tribe-objectives b[data-enough='true'] {
  color: var(--tribe-moss);
}
.tribe-objectives b[data-enough='false'] {
  color: var(--tribe-amber);
}
.tribe-clock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 2px;
}
.tribe-clock b {
  font:
    650 19px/1.1 ui-monospace,
    monospace;
  color: #f6efd7;
}
.tribe-clock span {
  font-size: 12px;
  color: #d8cda8;
  font-weight: 650;
}
.tribe-pause {
  margin-left: auto;
  pointer-events: auto;
  min-height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #e8dec5;
}
.tribe-aim {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff3d0b5;
  box-shadow: 0 0 3px 1px #18302d76;
}
.tribe-marks {
  position: absolute;
  inset: 0;
}
.tribe-world-mark {
  position: absolute;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  transform: translate(-50%, -100%);
  gap: 4px;
  white-space: nowrap;
  text-shadow: 0 1px 4px #13271f;
}
.tribe-world-mark i {
  width: 7px;
  height: 7px;
  display: block;
  transform: rotate(45deg);
  box-shadow: 0 1px 3px #131b0f;
  background: #edc17d;
  border: 1px solid #fff0bf;
}
.tribe-world-mark span {
  padding: 3px 6px;
  background: #1d342cc9;
  border: 1px solid #ebd5aa54;
  color: #fff3cf;
  border-radius: 2px;
  font-weight: 650;
  font-size: 11px;
}
.tribe-world-mark.roof i {
  background: #7dd4ae;
}
.tribe-world-mark.fire i {
  background: #f5985d;
}
.tribe-notice,
.tribe-interaction {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 66%;
  text-align: center;
  font-size: 13px;
  border-radius: 2px;
  line-height: 1.45;
  font-weight: 600;
}
.tribe-notice {
  bottom: 17.3%;
  padding: 7px 12px;
  color: #eeedda;
}
.tribe-notice:empty {
  display: none;
}
.tribe-interaction {
  bottom: 6%;
  padding: 8px 14px;
  color: #fff2d3;
  background: #1b291e88;
  border: 1px solid #e8d6ab33;
}
.tribe-interaction.available {
  color: #ffdda2;
  border-color: #d1ae72a8;
}
.tribe-compass,
.tribe-tools {
  position: absolute;
  bottom: 3%;
  border-radius: 2px;
}
.tribe-compass {
  left: 2%;
  width: clamp(126px, 14vw, 183px);
}
.tribe-compass canvas {
  display: block;
  width: 100%;
  height: auto;
}
.tribe-vitals {
  padding: 5px 9px;
  border-top: 1px solid #a7a7834d;
  color: var(--tribe-moss);
  font-size: 15px;
  gap: 6px;
}
.tribe-vitals svg {
  width: 15px !important;
  height: 15px !important;
}
.tribe-vitals i {
  height: 3px;
  flex: 1;
  background: #72987d4d;
}
.tribe-vitals em {
  display: block;
  height: 100%;
  background: #a9d5a9;
}
.tribe-tools {
  right: 2%;
  padding: 8px 13px;
}
.tribe-tools > div {
  font-size: 13px;
  color: #dbcba4;
}
.tribe-tools b {
  color: #fff2cf;
}
.tribe-tools small {
  display: block;
  font-size: 10px;
  color: #c9c8ae;
  margin-top: 5px;
}
.tribe-tools kbd {
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.tribe-touch {
  display: none;
}
.tribe-hurt {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px #ac7952;
}
#tribe-hud.touch .tribe-touch {
  display: block;
}
.tribe-stick,
.tribe-acts button {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  color: #f9eed1;
  background: #26372b9c;
  border: 1px solid #e6dcb780;
  border-radius: 50%;
}
.tribe-stick {
  width: 86px;
  height: 86px;
  left: max(21px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
}
.tribe-stick i {
  display: block;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #d4d3ab6b;
  border: 1px solid #f0e5bb99;
}
.tribe-acts {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
}
.tribe-acts button {
  position: relative;
  width: 57px;
  height: 57px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.tribe-acts button:last-child {
  height: 68px;
  width: 68px;
  border-color: #dfb277ad;
  color: #f6d3a1;
}
.tribe-acts button:active {
  background: #657852ab;
}
#tribe-hud.touch .tribe-tools {
  bottom: 105px;
}
#tribe-hud.touch .tribe-tools small {
  display: none;
}
#tribe-hud.touch .tribe-compass {
  bottom: 117px;
  width: 110px;
}
@media (max-width: 760px), (max-height: 520px) {
  .tribe-top {
    inset: 10px 12px auto;
  }
  .tribe-task {
    padding: 8px 10px;
    min-width: 149px;
  }
  .tribe-task h2 {
    font-size: 17px;
    margin: 4px 0 7px;
  }
  .tribe-caption {
    font-size: 9px;
  }
  .tribe-objectives {
    gap: 2px;
  }
  .tribe-objectives > div,
  .tribe-objectives b {
    font-size: 10px;
  }
  .tribe-objectives svg {
    width: 12px !important;
    height: 12px !important;
  }
  .tribe-clock {
    gap: 6px;
    padding: 7px 9px;
  }
  .tribe-clock b {
    font-size: 15px;
  }
  .tribe-clock span {
    font-size: 10px;
  }
  .tribe-notice,
  .tribe-interaction {
    font-size: 11px;
    max-width: 54%;
  }
  .tribe-notice {
    bottom: 22%;
  }
  .tribe-interaction {
    bottom: 7%;
  }
  .tribe-tools {
    padding: 4px 8px;
  }
  .tribe-compass {
    width: 106px;
  }
  .tribe-world-mark span {
    font-size: 9px;
  }
}
@media (max-width: 510px) {
  .tribe-clock {
    left: auto;
    right: 49px;
    transform: none;
    flex-direction: column;
    gap: 2px;
  }
  .tribe-notice {
    bottom: 30%;
    max-width: 79%;
    min-width: 180px;
  }
  .tribe-interaction {
    bottom: 17%;
    max-width: 77%;
  }
  #tribe-hud.touch .tribe-compass {
    bottom: 116px;
    width: 88px;
  }
  .tribe-top {
    inset: 10px 8px auto;
  }
  .tribe-task {
    min-width: 135px;
  }
  .tribe-tools small {
    display: none;
  }
}

.tribe-trail {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #d2d2a82b;
  font-size: 11px;
  color: #d0d6bd;
}
.tribe-trail svg {
  width: 14px !important;
  height: 14px !important;
  color: #a7ccb6;
}
.tribe-trail[data-done='true'] {
  color: #a2d4b2;
}
.tribe-world-mark.trail i {
  background: #94c3a5;
  border-color: #b4d1b2;
}
.tribe-world-mark.trail span {
  color: #d5efdb;
  border-color: #93c8a156;
}
.tribe-hit {
  position: absolute;
  top: calc(50% + 22px);
  left: 50%;
  transform: translateX(-50%);
  color: #ece1c9;
  text-shadow: 0 1px 5px #070f0c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tribe-hit[data-type='scare'] {
  color: #c3f0b7;
}
.tribe-hit[data-type='safe'] {
  color: #ffd594;
}
.tribe-aim[data-draw='true'] {
  outline: 1px solid #f8df9bad;
  outline-offset: 6px;
}
#tribe-hud .tribe-tools {
  padding: 9px 11px 8px;
  min-width: 215px;
}
.tribe-equipped {
  font-size: 11px;
  margin-left: auto;
  color: #cfdbc9;
}
#tribe-hud .tribe-loadout {
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 4px;
  margin: 6px 0 4px;
}
.tribe-loadout button {
  position: relative;
  pointer-events: auto;
  touch-action: manipulation;
  display: grid;
  justify-items: center;
  align-items: center;
  grid-template-rows: 19px 13px;
  min-height: 42px;
  padding: 4px 2px 2px;
  gap: 1px;
  background: #17231bd9;
  border: 1px solid #c5c29b4e;
  border-radius: 2px;
  color: #e3e5d0;
  cursor: pointer;
}
.tribe-loadout button[aria-pressed='true'] {
  color: #ffe4ab;
  border-color: #e2bf7c;
  background: #414635;
}
.tribe-loadout button[aria-disabled='true'] {
  color: #a9b2a4;
  border-color: #c5c29b27;
  background: #233126bd;
}
.tribe-loadout button kbd {
  font-size: 8px;
  position: absolute;
  left: 3px;
  top: 2px;
  color: #bac5b3;
}
#tribe-hud .tribe-loadout button b {
  line-height: 1;
  font-size: 10px;
  color: inherit;
}
.tribe-loadout button > span {
  font: 600 9px/1 system-ui;
  position: absolute;
  right: 3px;
  top: 3px;
  color: #d7d4b4;
}
.tribe-loadout button[aria-disabled='true'] > span {
  font-size: 7px;
  letter-spacing: -0.5px;
  top: 2px;
  right: 1px;
}
#tribe-hud .tribe-loadout button svg {
  width: 19px;
  height: 19px;
}
#tribe-hud .tribe-energy {
  display: block;
  height: 3px;
  background: #384438;
  margin: 6px 0;
}
.tribe-energy i {
  display: block;
  height: 100%;
  background: #c7b974;
}
.tribe-energy[data-full='true'] i {
  background: #cae3ae;
}
.tribe-acts button.drawing {
  background: #7d7447;
  border-color: #ffe4a5;
}
@media (max-width: 760px), (max-height: 520px) {
  .tribe-trail {
    margin-top: 4px;
    padding-top: 4px;
    font-size: 9px;
  }
  #tribe-hud .tribe-tools {
    min-width: 171px;
    padding: 5px 7px;
  }
  #tribe-hud .tribe-loadout {
    gap: 3px;
    grid-template-columns: repeat(4, minmax(38px, 1fr));
  }
  .tribe-loadout button {
    min-height: 37px;
    grid-template-rows: 16px 11px;
  }
  #tribe-hud .tribe-loadout button svg {
    width: 16px;
    height: 16px;
  }
  #tribe-hud .tribe-loadout button b {
    font-size: 9px;
  }
  .tribe-acts {
    gap: 6px;
  }
  .tribe-acts button {
    width: 47px;
    height: 47px;
  }
  .tribe-acts button:last-child {
    width: 57px;
    height: 57px;
  }
  #tribe-hud.touch .tribe-tools {
    bottom: 84px;
  }
  .tribe-hit {
    font-size: 10px;
  }
}
@media (max-width: 510px) {
  #tribe-hud.touch .tribe-tools {
    bottom: 85px;
    right: 8px;
  }
  #tribe-hud.touch .tribe-interaction {
    bottom: 25.5%;
    max-width: 86%;
  }
  #tribe-hud.touch .tribe-notice {
    bottom: 32.5%;
  }
}

.tribe-family{display:flex;gap:5px;margin:8px 0 2px}
.tribe-family-member{flex:1;min-width:0}
.tribe-family-member span{display:block;font-size:10px;color:#eee7ce;line-height:1.4}
.tribe-family-member i,.tribe-world-mark em{display:block;background:#172c26;border:1px solid #f2dfac65;overflow:hidden;height:5px}
.tribe-family-member i b,.tribe-world-mark em b{display:block;height:100%;background:#a7c990;transition:width .18s linear}
.tribe-family-member[data-low="true"] i b,.tribe-world-mark[data-hurt="true"] em b{background:#e68970}
.tribe-family-member[data-safe="true"] span{color:#bccfbd}
.tribe-world-mark em{width:49px;margin-top:-3px;height:5px;box-shadow:0 1px 2px #12251c}
.tribe-world-mark.beast em b{background:#dbad6d}
.tribe-world-mark.beast i,.tribe-world-mark.person i{display:none}
.tribe-world-mark em[hidden]{display:none}
@media(max-height:480px){.tribe-family{margin:3px 0 0}.tribe-family-member span{font-size:8px}.tribe-family-member i{height:3px}}

.tribe-world-mark[data-compact=true] span,.tribe-world-mark[data-compact=true] i{display:none}
.tribe-world-mark[data-compact=true] em{width:25px;height:3px;opacity:.78}
.tribe-world-mark.fence i{display:none}
.tribe-world-mark.fence span{border-color:#b18f57;color:#f3dfab;background:#33271be8}
.tribe-world-mark.fence em{width:66px;height:6px}.tribe-world-mark.fence em b{background:#ecb458}
.tribe-world-mark.fence[data-hurt=true] em b{background:#ed7254}
#battle[data-duty] .tribe-trail,
#battle[data-duty="relief"] .tribe-objectives,
#battle[data-duty="relief"] .tribe-family {
  display: none;
}

/* The centre stays open at every zoom, with both light and dark edges. */
#battle :is(#crosshair,#oasis-sight,.tribe-aim,.city-reticle) {
  --sight-size: 42px;
  --sight-ink: #fff8d9;
  position: absolute;
  left: 50%; top: 50%;
  width: var(--sight-size); height: var(--sight-size);
  margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0;
  background: none; box-shadow: none; opacity: 1;
  color: var(--sight-ink);
  transform: translate(-50%,-50%);
  filter: drop-shadow(0 1px 1px #080a08);
  pointer-events: none;
}
#battle :is(#crosshair,#oasis-sight,.tribe-aim,.city-reticle)::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(currentColor,currentColor) center top / 3px 28%,
    linear-gradient(currentColor,currentColor) center bottom / 3px 28%,
    linear-gradient(currentColor,currentColor) left center / 28% 3px,
    linear-gradient(currentColor,currentColor) right center / 28% 3px;
  background-repeat: no-repeat;
  filter: drop-shadow(1px 0 #171714) drop-shadow(-1px 0 #171714) drop-shadow(0 1px #171714) drop-shadow(0 -1px #171714);
}
#battle :is(#crosshair,#oasis-sight,.tribe-aim,.city-reticle)::after {
  content:"";position:absolute;top:50%;left:50%;width:4px;height:4px;box-sizing:content-box;
  transform:translate(-50%,-50%);border:1.5px solid #201e16;border-radius:50%;background:#ffdd86;
}
#battle :is(#crosshair,#oasis-sight,.city-reticle) > :is(i,b) { display:none; }
#battle.aiming #crosshair,#battle #oasis-sight.focused,#battle .tribe-aim[data-draw='true'] { --sight-size:36px; }
#battle #oasis-sight.rider-lock { --sight-ink:#ffda89; }
#battle #oasis-sight.hit { --sight-ink:#ffa86b; }
#battle.placing #crosshair { opacity:0; }
@media (prefers-contrast: more) { #battle :is(#crosshair,#oasis-sight,.tribe-aim,.city-reticle) { --sight-size:52px; } }
@media (forced-colors: active) { #battle :is(#crosshair,#oasis-sight,.tribe-aim,.city-reticle) { forced-color-adjust:none; } }

#lobby{background-color:#1b201c}
#lobby[data-theater] .backdrop{bottom:auto;height:var(--banner-height,clamp(480px,62vh,820px));background-color:#1b201c;background-image:var(--chapter-art,url("assets/banners/tribe.webp"));background-size:cover;background-position:var(--chapter-focus,67%) 52%}
#lobby[data-theater=tribe]{--chapter-focus:71%}
#lobby[data-theater=xiliang]{--chapter-focus:63%}
#lobby[data-theater=forest]{--chapter-focus:76%}
#lobby[data-theater=coast]{--chapter-focus:72%}
#lobby[data-theater=city]{--chapter-focus:69%}
#lobby[data-theater] .backdrop::after{background:linear-gradient(90deg,#101513a8 0%,#14191751 33%,transparent 65%),linear-gradient(0deg,#1b201c 0%,#171b1757 11%,transparent 30%)}
#lobby-weather {position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;mask-image:linear-gradient(#000 54%,transparent 90%);}
.lobby-content,.statusbar {z-index:1;}
#chronicle-era {color:#e8c58d;font-size:.77rem;line-height:1.4;letter-spacing:.16em;margin:13px 0 1px;font-weight:650;}
#chronicle-thread {max-width:min(64ch,72%);margin:8px 0 0;color:#dfdfcd;font-size:clamp(12px,.87vw,16px);line-height:1.55;text-wrap:pretty;}
#lobby .theater-picker {border:0;border-bottom:1px solid #c7a97685;background:linear-gradient(90deg,#14201bec,#1a241bd9);padding:0;margin-top:17px;}
#lobby .theater-picker button {display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:2px 6px;text-align:left;min-height:43px;padding:6px clamp(6px,1vw,18px);letter-spacing:0;}
.theater-picker button i {grid-row:1 / 3;}.theater-picker small {grid-column:2;font-size:.66rem;line-height:1.25;opacity:.75;font-weight:450;}
.mission-facts {flex-wrap:wrap;row-gap:6px;}
.language-select {max-width:116px;font:inherit;font-size:12px;color:var(--cream,#e5e4d9);background:#242b25;border:1px solid #b4a27a72;border-radius:2px;padding:6px 4px;cursor:pointer;}
.diary-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}.diary-grid button {text-align:start;display:grid;align-content:start;background:#232b25;border:1px solid #5d6254;padding:0 0 10px;}.diary-grid button[aria-pressed=true] {border-color:#dcaf68;}.diary-grid img {width:100%;height:155px;object-fit:cover;object-position:center 36%;}.diary-grid strong,.diary-grid small {margin:6px 8px 0;}.diary-grid small {color:#d2bd93;}
#battle.city-sortie>#hud,#battle.city-sortie>#oasis-hud,#battle.city-sortie>#touch-controls,#battle.city-sortie #crosshair {display:none;}
@media(max-width:800px){#chronicle-thread{max-width:95%;}.nav-tools{gap:5px;}.language-select{max-width:80px;font-size:11px;}.mission-facts{max-width:100%;}.mission-copy{min-width:0;}.theater-picker small{font-size:9px;}.diary-grid img{height:110px;}}
@media(max-width:560px){#lobby .theater-picker{max-width:100%;width:100%;overflow-x:auto;}.theater-picker button{flex:none;}#lobby .theater-picker button{padding:5px 7px;font-size:11px;}#lobby .mission-copy{width:100%;}#lobby .map-frame{display:none;}#lobby #mission-title{overflow-wrap:anywhere;font-size:clamp(33px,11vw,64px);}.bar-inner{flex-wrap:wrap;}.mission-facts i{display:none;}#chronicle-thread{max-width:100%;}.intro{max-width:100%;}.language-select{max-width:68px;}}
#city-hud {position:absolute;inset:0;z-index:5;pointer-events:none;color:#f2eddf;font:500 14px/1.4 system-ui,sans-serif;text-shadow:0 1px 2px #161c19;}
#city-hud button {pointer-events:auto;}#city-hud .glass {background:#162420e6;border:1px solid #a4ab9978;}
.city-order,.city-watch,.city-vitals,.city-load,.city-pause {position:absolute;padding:10px 14px;}
.city-order {top:3%;left:2%;min-width:180px;border-top:2px solid #dbb477!important;}.city-order h2 {font-size:20px;margin:3px 0 6px;}.city-order small,.city-watch small{color:#e0c797;}
.city-order progress,.city-repair progress {width:100%;height:6px;display:block;accent-color:#b5c68d;margin:3px 0 5px;}.city-condition {display:flex;justify-content:space-between;}
.city-watch {top:3%;left:50%;transform:translateX(-50%);display:grid;text-align:center;}.city-watch b{font:700 23px monospace;}.city-pause{top:3%;right:2%;}
.city-vitals {left:2%;bottom:4%;}.city-load {right:2%;bottom:4%;}.city-load #city-gun{font-size:17px;font-weight:700;color:#ffe9b8;}
#city-slots {display:flex;gap:3px;margin-block:5px;}#city-slots button {display:flex;align-items:center;border:1px solid #8a95817d;padding:2px 4px;font-size:10px;}#city-slots button[aria-pressed=true]{background:#886d43;}
#city-slots .gear-icon{width:28px;height:17px;}.city-reticle {position:absolute;top:50%;left:50%;width:14px;height:14px;transform:translate(-50%,-50%);background:linear-gradient(90deg,transparent 6px,#fff5c7 6px 8px,transparent 8px) center/100% 100%,linear-gradient(transparent 6px,#fff5c7 6px 8px,transparent 8px);filter:drop-shadow(0 0 2px #302d28);}
.city-notice,.city-repair {position:absolute;top:64%;left:50%;transform:translateX(-50%);background:#17221aba;padding:3px 10px;}.city-notice:empty{display:none;}.city-repair{top:57%;}.city-touch{display:none;}
@media(pointer:coarse){.city-touch{display:flex;align-items:center;gap:8px;position:absolute;bottom:19%;left:3%;right:3%;}.city-touch button,#city-stick{pointer-events:auto;touch-action:none;padding:12px;background:#182721c9;border:1px solid #e0dcc77d;}.city-touch #city-stick {margin-right:auto;border-radius:100%;width:62px;height:62px;text-align:center;font-size:23px;}.city-order{min-width:125px;max-width:43%;font-size:11px;}.city-order h2{font-size:15px;}.city-watch{left:auto;right:13%;transform:none;}}
.diary-region {width:100%;height:clamp(125px,22vh,230px);object-fit:cover;display:block;margin-top:12px;}
@media(max-width:650px){
  .topbar .bar-inner {height:auto;min-height:64px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:4px 5px;padding-block:7px;}
  .topbar .brand {grid-column:1;grid-row:1;min-width:0;}.topbar .brand .wordmark{font-size:clamp(11px,4vw,19px);letter-spacing:.025em;overflow-wrap:anywhere;}.topbar .brand .wordmark small{display:none;}
  .topbar .bar-inner nav{grid-row:2;grid-column:1 / -1;min-height:24px;margin:0;justify-content:flex-start;gap:16px;}.topbar .nav-tools {grid-row:1;grid-column:2;margin:0;}
  #lobby .lobby-content,#lobby .mission,#lobby .mission-copy,#lobby .setup-grid>section {min-width:0;max-width:100%;}
  #lobby .theater-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:100%;overflow:visible;}
  #lobby .theater-picker button{min-width:0;grid-template-columns:7px minmax(0,1fr);gap:2px 5px;white-space:normal;overflow-wrap:anywhere;letter-spacing:0;}
  #lobby #chapter-steps{display:flex;overflow-x:auto;gap:5px;}.chapter-step{flex:0 0 auto;min-width:98px;max-width:180px;}
  #lobby .side-options{grid-template-columns:repeat(2,minmax(0,1fr));}#lobby .side-card{min-width:0;height:auto;padding:9px 6px;gap:6px;align-items:center;}#lobby .side-card .crest{width:26px;flex:0 0 26px;}#lobby .side-text{min-width:0;}#lobby .side-text b{font-size:17px;white-space:normal;overflow-wrap:anywhere;}
  #lobby .gear-slot {min-width:0;height:auto;min-height:70px;white-space:normal;justify-content:flex-start;}#lobby .gear-slot strong,#lobby .gear-slot small{max-width:100%;white-space:normal;overflow-wrap:anywhere;padding-inline:1px;text-align:center;font-size:10px;}
  html:not([lang^=zh]) .mission-english,html:not([lang^=zh]) .side-text small,html:not([lang^=zh]) .section-heading span[lang=en]{display:none;}
  .mission h1{line-height:1.05;}.diary-grid img{height:95px;}
}
#lobby .backdrop::before {content:"";position:absolute;inset:-4% -9% 37%;background:url("assets/weather-cloud-low.webp") center 24% / cover no-repeat;opacity:var(--cloud-cover,.14);mask-image:linear-gradient(#0008,transparent 79%);animation:weather-cloud-pass 45s ease-in-out infinite alternate;pointer-events:none;}
@keyframes weather-cloud-pass {from{transform:translateX(-3%);}to{transform:translateX(4%);}}
@media(prefers-reduced-motion:reduce){#lobby .backdrop::before{animation:none;}}
#city-bearing {display:inline-block;margin-left:9px;font:600 13px monospace;color:#e6ac82;}
#city-hud.city-lightning::before {content:"";position:absolute;inset:0;pointer-events:none;animation:city-flash .48s ease-out both;}
@keyframes city-flash {0%{background:#d9ecfc38;}100%{background:#d9ecfc00;}}
@media(max-width:650px){
  #lobby{--mobile-banner:clamp(150px,50vw,238px)}
  #lobby[data-theater] .backdrop{height:var(--mobile-banner);background-size:cover;background-position:var(--chapter-focus) center}
  #lobby .lobby-content{padding-top:var(--mobile-banner)}
  #lobby[data-theater] .backdrop::after{background:linear-gradient(0deg,#1b201c,transparent 14%)}
  #lobby-weather{height:var(--mobile-banner);mask-image:linear-gradient(#000 75%,transparent)}
}
@media(min-width:651px){
  #lobby[data-theater=city] .backdrop{background-size:auto 94%;background-position:right top}
  #lobby[data-theater=city] .backdrop::after{background:linear-gradient(90deg,#1b201c calc(100% - var(--banner-height)*2.25),transparent calc(125% - var(--banner-height)*2.25)),linear-gradient(0deg,#1b201c,transparent 18%)}
  #lobby[data-theater=city] .map-frame{top:18px;bottom:auto;right:0;width:clamp(125px,9.7vw,165px)}
}
@media(min-width:651px) and (max-width:1250px){#lobby[data-theater=city] .map-frame [lang=en],#lobby[data-theater=city] .map-heading span:last-child{display:none}}
@media(max-width:850px){#lobby .side-text>span{white-space:normal;overflow-wrap:anywhere;line-height:1.3;}#lobby .side-card {height:auto;min-height:72px;}}
#lobby[data-theater=tribe] #gear-slots{grid-template-columns:repeat(4,minmax(0,1fr));}
#lobby[data-theater=city] #gear-slots{grid-template-columns:repeat(5,minmax(0,1fr));}
#lobby[data-theater=tribe] .gear-slot{grid-template-rows:minmax(25px,1fr) auto auto;}.lobby[data-theater=tribe] .gear-slot strong{margin-bottom:2px;}.lobby[data-theater=tribe] .gear-slot small{margin-bottom:5px;}
@media(min-width:850px) and (max-height:850px){
  #lobby .mission{min-height:280px;}#lobby .mission-copy{padding-block:15px 17px;}
  #lobby #chronicle-era{margin-top:9px;}#lobby .mission h1{font-size:clamp(54px,5vw,76px);margin:7px 0 2px -2px;}
  #lobby .mission-english{font-size:21px;}#lobby .intro{margin-top:12px;}#lobby #chronicle-thread{margin-top:3px;}
  #lobby .theater-picker{margin-top:12px;}#lobby .mission-facts{margin-top:7px;}
  #lobby .setup-grid{padding-block:13px;}#lobby .section-heading{margin-bottom:8px;}
  #lobby .side-card,#lobby .gear-slot{height:77px;}#lobby .gear-slot .gear-icon{height:31px;margin-top:5px;}
  #lobby .campaign-rail{padding-block:9px;}#lobby .deploy-foot{padding-block:8px;}
}
.language-picker{position:relative;display:inline-flex;min-width:0;z-index:12;}
.language-picker .language-select{display:flex;align-items:center;justify-content:space-between;gap:.6rem;max-width:none;white-space:nowrap;color:#f0e8d5;padding:.37rem .52rem;}
.language-select::after{content:"";width:6px;height:6px;border:solid #d1bd93;border-width:0 1px 1px 0;transform:translateY(-2px) rotate(45deg);}
.language-select[aria-expanded=true]::after{transform:translateY(2px) rotate(225deg);}
.language-options{position:absolute;top:calc(100% + 5px);right:0;min-width:max(145px,100%);max-height:min(390px,47vh);overflow:auto;overscroll-behavior:contain;border:1px solid #a78e61;background:#1c241f;box-shadow:0 10px 22px #0008;text-align:left;}
.language-options [role=option]{padding:6px 12px;border-left:3px solid transparent;color:#e6e3d7;cursor:pointer;font-size:14px;}
.language-options [aria-selected=true]{border-color:#e4b365;color:#edc887;}.language-options .pointed,.language-options [role=option]:hover{background:#454535;}
#topbar:has(.language-select[aria-expanded=true]){z-index:30;overflow:visible;}
.setting-row:has(.language-picker){position:relative;z-index:4;}.setting-row .language-options{top:auto;bottom:calc(100% + 4px);}
.tribe-world-mark.person em b,.tribe-world-mark.person[data-hurt=true] em b,.tribe-family-member i b,.tribe-family-member[data-low=true] i b{background:#54d878;}
.tribe-world-mark.beast em b,.tribe-world-mark.beast[data-hurt=true] em b{background:#ef5852;}
#city-support{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:7px;}#city-support button,#city-post{border:1px solid #b8af8a6b;padding:4px 6px;background:#202b23d9;color:#eee8cc;font-size:12px;text-align:left;}
#city-support button:disabled{color:#a4aaa0;border-color:#7a827142;}#city-post{background:#705b33;border-color:#e5bd79;color:#fff0c8;margin-bottom:4px;}
@media(max-width:640px){#city-support button,#city-post{font-size:10px;padding:3px;}#city-hud .city-load{max-width:48%;}#city-support{gap:2px;}}
.city-calls>summary {pointer-events:auto;cursor:pointer;}
.city-calls[open]>summary {display:none;}
@media(pointer:coarse){
  #city-hud .city-touch {bottom:max(9px,env(safe-area-inset-bottom));left:3%;right:3%;gap:5px;}
  .city-touch #city-stick {width:52px;height:52px;margin:0;flex-shrink:0;}
  .city-touch button {min-height:40px;padding:6px 9px;border-radius:5px;line-height:1.1;}
  .city-touch .city-mobility {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-right:auto;}
  .city-mobility button {padding:3px 5px;min-height:26px;font-size:11px;}
  .city-mobility #city-jump{grid-column:1/-1;}
  .city-touch [aria-pressed=true] {background:#7b653d;}
  .city-mobility[hidden] {display:none;}.city-mobility[hidden]+#city-aim {margin-left:auto;}
  #city-hud .city-vitals,#city-hud .city-load {bottom:calc(max(9px,env(safe-area-inset-bottom)) + 62px);padding:5px 7px;}
  #city-hud .city-vitals {max-width:32%;font-size:12px;}
  #city-hud .city-load {max-width:64%;width:min(245px,63vw);}
  .city-calls>summary,.city-calls[open]>summary {display:list-item;color:#efd5a3;padding:4px 5px;font-size:12px;background:#334135;}
  #city-support {position:absolute;bottom:100%;right:0;width:100%;margin-bottom:3px;padding:4px;background:#17251ff5;border:1px solid #ad9e76;gap:3px;}
  #city-support button {font-size:11px;min-height:36px;white-space:normal;}
  #city-post {min-height:32px;margin:3px 0;}#city-slots button {flex:1;min-width:0;}
  #city-slots .gear-icon {max-width:76%;}#city-fix {min-height:27px;}
}
.rift-entry,#rift-field-controls button {color:#ead7a6;background:#28352d;border:1px solid #b39b6a88;padding:.42rem .66rem;cursor:pointer;font:inherit;}
.rift-entry kbd,#rift-field-controls kbd {color:#f9d180;}
.supply-row .rift-recommend {display:inline-block;margin-inline-start:.6rem;color:#eed08b;font-weight:700;}
#rift-field-controls {position:absolute;z-index:7;top:clamp(6.5rem,15vh,8.5rem);right:clamp(12px,2vw,34px);display:flex;align-items:flex-end;flex-direction:column;gap:3px;pointer-events:none;}
#rift-field-controls[hidden],#rift-vitals[hidden]{display:none;}#rift-field-controls button{pointer-events:auto;font-size:12px;}
.rift-equipped #oasis-drop,.rift-equipped #oasis-ammo,.rift-equipped .tribe-interaction:empty {display:none;}
@media(max-width:650px){.rift-entry{padding:.28rem .42rem;font-size:12px;}#rift-field-controls {top:clamp(4.1rem,16vh,6.5rem);right:10px;}}

.history-link,.history-close,.history-timeline button{font:600 .8rem/1.3 var(--cn);cursor:pointer;}
.history-link{vertical-align:baseline;padding:0 .08em .06em;margin-inline-start:.8em;border:0;border-bottom:1px solid #ceb380;background:none;color:#efd49c;white-space:nowrap;}
.history-link:hover,.history-link:focus-visible{color:#fff4cf;border-color:currentColor;}
.history-brief-kind{display:inline-block;margin-inline-end:.65em;font-size:.83em;letter-spacing:.04em;color:#d3c69f;}
.history-reader{box-sizing:border-box;width:min(720px,93vw);max-width:none;max-height:88dvh;padding:clamp(17px,3vw,34px);overflow:auto;overscroll-behavior:contain;border:1px solid #928569;background:#132021;color:#e3e1d0;border-radius:5px;box-shadow:0 20px 90px #0009;}
.history-reader[open]{display:block;}
.history-reader::backdrop{background:rgb(6 13 14 /.72);}
.history-reader-head{display:flex;align-items:center;justify-content:space-between;gap:18px;}
.history-reader-head h2,.history-record h3{margin:0;font:600 clamp(22px,2vw,34px)/1.26 var(--display,var(--cn));letter-spacing:.01em;color:#f4ead0;}
.history-close,.history-timeline button{background:none;color:#d9d7c7;border:1px solid #77837b;border-radius:2px;padding:6px 10px;}
.history-close:hover,.history-timeline button:hover,.history-close:focus-visible,.history-timeline button:focus-visible{background:#354442;color:#fff5d9;}
.history-timeline{display:flex;flex-wrap:wrap;gap:5px;margin:18px 0;border-block:1px solid #465351;padding:10px 0;}
.history-timeline button{font-size:.76rem;line-height:1.25;text-align:start;border-color:transparent;padding:5px 8px;}
.history-timeline button[aria-current=page]{color:#f1d69e;border-color:#a89873;background:#263332;}
.history-record .history-date{margin:12px 0 4px;color:#d4bb8d;letter-spacing:.06em;font-size:.86rem;}
.history-record section{margin-top:17px;}
.history-record h4,.history-panel h3{font:650 .88rem/1.35 var(--cn);color:#e0c391;margin:0 0 .38em;}
.history-record p,.history-panel p{margin:.22em 0;color:#e4e1d3;font:400 .98rem/1.55 var(--cn);}
.history-adaptation{padding-inline-start:12px;border-inline-start:2px solid #9d8d6e;}
.history-references{list-style:none;display:grid;gap:6px;padding:0;margin:6px 0 0;}
.history-references a{display:block;max-width:100%;color:#e0cfaa;font:400 .86rem/1.38 var(--cn);text-underline-offset:2px;}
.history-references a:focus-visible,.history-references a:hover{color:#fff1c9;}
.history-publisher,.history-document{display:block;}
.history-publisher{color:#aab8ae;font-size:.77rem;}
.history-document{text-decoration:underline;text-decoration-color:#768176;text-underline-offset:2px;}
.history-panel{margin:17px 0;padding:14px 0;border-block:1px solid #62716980;}
.history-panel .history-link{margin:10px 0 0;}
@media(max-width:560px){.history-reader{width:95vw;max-height:92dvh;padding:15px;}.history-timeline{margin-block:12px;gap:3px;}.history-timeline button{font-size:.72rem;padding:5px 6px;}.history-record p,.history-panel p{font-size:.88rem;}.history-record section{margin-top:12px;}}
.history-record .history-object{margin:16px 0 0;padding:12px 14px;background:#1d2c2b;border-inline-start:2px solid #758d82;}
.history-archive-photo{display:flex;align-items:flex-end;gap:10px;margin:10px 0 0;}
.history-archive-photo img{width:118px;max-width:40%;height:auto;object-fit:contain;}
.history-archive-photo figcaption{color:#bac5b8;font:400 .77rem/1.4 var(--cn);max-width:28ch;}



:root {
  --script-ui: "Noto Sans SC";
  --script-title: "Noto Serif SC";
  --cn: "Barlow", var(--script-ui), "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", var(--script-ui), ui-monospace, monospace;
  --display: "Barlow Condensed", var(--script-title), "Arial Narrow", sans-serif;
  --book: "Spectral", var(--script-title), Georgia, serif;
}
:root:lang(zh-Hant), :root:lang(zh-TW), :root:lang(zh-HK) {
  --script-ui: "Noto Sans TC"; --script-title: "Noto Serif TC";
}
:root:lang(ja) { --script-ui: "Noto Sans JP"; --script-title: "Noto Serif JP"; }
:root:lang(ko) { --script-ui: "Noto Sans KR"; --script-title: "Noto Serif KR"; }
:root:lang(th) { --script-ui: "Noto Sans Thai"; --script-title: "Noto Serif Thai"; }

#lobby .mission h1, .brand .wordmark, .dialog-bar h2, .section-heading h2 { font-family:var(--display); }
.mission-english { font-family:var(--display); }
#chapter-film .film-heading h2, #chapter-film #film-caption { font-family:var(--book); }
#hud, #oasis-hud, #tribe-hud, #city-hud, .hud-notices { font-family:var(--cn); }
html:not([lang^="zh"]):not([lang="ja"]):not([lang="ko"]) #lobby .mission h1 {letter-spacing:.012em;}
:root:lang(th) #lobby .mission h1, :root:lang(th) #chapter-film .film-heading h2 {line-height:1.29;letter-spacing:0;}
:root:lang(th) .brand .wordmark, :root:lang(th) .film-heading span {letter-spacing:0;}

#chapter-film .film-stage {isolation:isolate;}
#chapter-film .film-stage::after {
  content:"";position:absolute;inset:48% 0 0;z-index:1;pointer-events:none;
  background:linear-gradient(transparent 7%,rgba(7,12,14,.20) 45%,rgba(6,9,11,.68));
}
#chapter-film .film-heading, #chapter-film .film-controls, #chapter-film #film-caption {z-index:2;}
#chapter-film .film-heading {padding:clamp(17px,4.2vw,74px);background:linear-gradient(160deg,#060c11b5,transparent 65%);}
#chapter-film .film-heading h2 {color:#fbf4df;letter-spacing:.035em;line-height:1.34;text-shadow:0 2px 10px #090e12;}
#chapter-film .film-heading span {color:#e8cf9b;font-weight:600;letter-spacing:.14em;}
#chapter-film #film-caption {
  inset:auto auto max(95px,15.5%) 50%;transform:translateX(-50%);width:max-content;max-width:min(80vw,51ch);
  margin:0;padding:.3em .72em .38em;color:#fffaf0;background:rgba(9,14,16,.64);
  border-radius:2px;text-shadow:0 1px 3px #000;font-size:clamp(18px,2.15vw,36px);line-height:1.43;
  font-weight:500;letter-spacing:.01em;text-wrap:balance;pointer-events:none;
}
#chapter-film:lang(zh) #film-caption, #chapter-film:lang(ja) #film-caption, #chapter-film:lang(ko) #film-caption {
  max-width:min(81vw,28em);letter-spacing:.045em;line-height:1.6;
}
#chapter-film:lang(th) #film-caption {letter-spacing:0;line-height:1.6;}
#chapter-film #film-caption:empty {display:none;}
#chapter-film .film-controls {z-index:3;padding:max(12px,2.8vh) max(14px,4vw) max(14px,env(safe-area-inset-bottom));}
#chapter-film .film-controls button, #film-language {font:600 14px/1.28 var(--cn);letter-spacing:.01em;min-height:35px;}
#film-language {background:#121b1cec;color:#f1ecde;border:1px solid #998a69;padding:5px 8px;max-width:10.5em;}
#film-volume {width:clamp(42px,7vw,108px);accent-color:#d7b679;cursor:pointer;}
#chapter-film #film-time {font:500 12px/1.2 var(--mono);}
@media(max-width:680px){
  #chapter-film .film-controls{gap:5px;flex-wrap:wrap;justify-content:center;padding-inline:max(8px,env(safe-area-inset-left));}
  #chapter-film .film-controls button,#film-language{font-size:12px;padding:5px 7px;}
  #chapter-film #film-caption{max-width:90%;font-size:clamp(17px,3.5vw,24px);bottom:max(112px,15%);}
  #chapter-film #film-skip{margin-left:0;}#film-language{max-width:8.2em;}#film-volume{width:49px;}
}
@media(max-height:450px) and (orientation:landscape){
  #chapter-film .film-heading{padding:9px 20px;}
  #chapter-film .film-heading h2{font-size:clamp(22px,3.5vw,34px);margin:0;}
  #chapter-film #film-caption{bottom:55px;font-size:clamp(16px,2.8vw,21px);max-width:87vw;}
  #chapter-film .film-controls{padding-block:4px;}
}

#chapter-film .language-options {top:auto;bottom:calc(100% + 6px);right:0;max-height:min(350px,55dvh);}
#chapter-film #film-language {width:auto;max-width:12em;}
@media(max-width:680px){#chapter-film #film-language{max-width:10em;}}
@media (max-aspect-ratio:3/4) {
  #chapter-film .film-heading {top:max(12px,calc(50% - 28.125vw - 90px));bottom:auto;background:none;}
  #chapter-film #film-caption {top:calc(50% + 28.125vw + clamp(12px,2.6vh,28px));bottom:auto;}
  #chapter-film .film-stage::after {background:none;}
}
#chapter-film #film-sources{pointer-events:auto;position:absolute;top:clamp(17px,4.2vw,74px);right:clamp(12px,4vw,65px);border:1px solid #a39672;border-radius:2px;padding:6px 10px;color:#f1dfb9;background:#111b1acc;font:600 .78rem/1.3 var(--cn);cursor:pointer;}
#chapter-film #film-sources:hover,#chapter-film #film-sources:focus-visible{background:#34403a;color:#fff4cf;}
#chapter-film .film-heading{padding-right:clamp(78px,15vw,160px);}
@media(max-height:450px) and (orientation:landscape){#chapter-film #film-sources{top:9px;right:18px;}}
@media(max-aspect-ratio:3/4){#chapter-film .film-heading{top:max(12px,calc(50% - 28.125vw - 112px));}#chapter-film #film-sources{top:16px;right:12px;}}
#chapter-film #film-photo-credit{display:block;width:fit-content;max-width:100%;padding:3px 7px;color:#f2ecda;background:rgb(14 23 25 /.76);font:550 clamp(10px,.86vw,14px)/1.4 var(--cn);letter-spacing:.02em;}
#chapter-film #film-photo-credit[hidden]{display:none;}
@media(max-aspect-ratio:3/4){#chapter-film .film-heading:has(#film-photo-credit:not([hidden])){top:max(8px,calc(50% - 28.125vw - 137px));}}

@font-face{font-family:"Holdfast SC";src:url("assets/fonts/holdfast-title-sc.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:"Holdfast TC";src:url("assets/fonts/holdfast-title-tc.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap}
:root:lang(zh-Hans),:root:lang(zh-CN){--chapter-face:"Holdfast SC","Noto Serif SC","Songti SC",serif}
:root:lang(zh-Hant),:root:lang(zh-TW){--chapter-face:"Holdfast TC","Noto Serif TC","Songti TC",serif}
html[lang^=zh] #lobby .mission h1,html[lang^=zh] .brand .wordmark b{font-family:var(--chapter-face);font-weight:700;font-synthesis:none}
.topbar .brand,.topbar .brand .wordmark{flex:0 0 auto;width:max-content;min-width:max-content;white-space:nowrap;word-break:keep-all}
.brand .wordmark b{font:700 1em/.99 "Barlow Condensed",var(--cn);letter-spacing:.045em}
.brand .wordmark small{white-space:nowrap;letter-spacing:.12em}
.brand .wordmark small[hidden]{display:none}.bar-inner,.bar-inner nav,.bar-inner .nav-tools{min-width:0}
#lobby .mission-copy{min-width:0}
#lobby .gear-slot{box-sizing:border-box;height:auto;min-height:108px;min-width:0;padding:.45rem .3rem .5rem;align-content:start;grid-template-rows:45px auto auto;row-gap:.15rem}
#lobby .gear-slot .gear-icon{width:76%;height:31px;max-width:90px;margin:8px auto 0}
#lobby .gear-slot :is(strong,small){display:block;min-width:0;line-height:1.28;white-space:normal;overflow-wrap:anywhere;margin:0}
#lobby .gear-options,#gear-slots{height:auto;min-width:0}
#battle #field-loading{background:linear-gradient(95deg,#101911bb,#11191466),var(--chapter-art,url("assets/banners/tribe.webp")) center/cover no-repeat;z-index:16}
#battle #viewport{background-color:#222920;background-image:var(--chapter-art);background-size:cover;background-position:center}
#duty-strip{position:absolute;left:50%;top:clamp(43px,6.6vh,65px);transform:translateX(-50%);z-index:5;pointer-events:none;max-width:min(76vw,490px);background:linear-gradient(100deg,#17241ff0,#18221cce);border:1px solid #c3b18166;border-bottom:2px solid #d9b672;color:#f1ecda;display:flex;align-items:center;gap:.65rem;padding:.44rem .9rem;text-align:center;font-family:var(--cn);box-shadow:0 3px 10px #1115}
#duty-strip[hidden],#duty-strip i[hidden]{display:none}
#duty-strip b,#duty-strip small{display:block}#duty-strip b{font-size:clamp(12px,1.12vw,16px);line-height:1.25}#duty-strip small{font:500 11px/1.5 var(--mono);color:#e0c992}
#duty-strip i{font:700 27px/1 var(--cn);color:#f3c47a}
#battle[data-duty] :is(.capture-track,#hud-goal,#hud-progress),#battle[data-duty] #rescue-marker{display:none!important}
#battle[data-duty=relief] #oasis-objective-mark{display:none!important}
@media(max-width:1120px){.bar-inner{gap:12px}.bar-inner nav{flex:1 1 auto;justify-content:center}.bar-inner .nav-tools{gap:7px}.wallet span{display:none}.topbar .brand{margin-right:0}.nav-tab{padding-inline:10px}}
@media(max-width:870px){.bar-inner nav .nav-tab span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.bar-inner nav .nav-tab{min-width:34px;padding:6px;justify-content:center}.bar-inner .wallet{padding-inline:6px}.bar-inner{gap:8px}.topbar .brand{gap:5px}}
@media(max-width:600px){.bar-inner{flex-wrap:wrap;height:auto;min-height:48px;row-gap:0;padding:4px 10px}.bar-inner .brand{order:0}.bar-inner .nav-tools{margin-left:auto;order:1}.bar-inner nav{order:2;flex:1 0 100%;height:31px}.bar-inner nav .nav-tab{flex:1;gap:6px}.bar-inner nav .nav-tab span{clip-path:none;width:auto;height:auto;position:static;font-size:11px;white-space:nowrap}.topbar .wordmark{font-size:21px}.bar-inner .language-select{max-width:110px;font-size:12px}.topbar .nav-tools .icon-btn{width:24px}.topbar .bar-inner .brand svg{width:23px}.bar-inner .wallet{font-size:12px}.lobby .mission h1{max-width:100%;overflow-wrap:anywhere}
#lobby .theater-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:100%}#lobby .theater-picker button{white-space:normal;min-width:0;overflow-wrap:anywhere;line-height:1.16}#lobby .theater-picker small{font-size:9px}
#lobby #gear-slots{grid-template-columns:repeat(3,minmax(0,1fr))}#lobby:is([data-theater=tribe],[data-theater=xiliang]) #gear-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
#lobby .gear-slot{min-height:88px;grid-template-rows:34px auto auto}
#duty-strip{top:auto;bottom:clamp(88px,18vh,138px);max-width:62vw;padding:.3rem .55rem}}
#lobby .side-card{height:auto;min-height:88px;padding-block:10px;align-self:stretch}
#lobby .side-text{min-width:0}#lobby .side-text :is(b,small,em){overflow-wrap:anywhere;white-space:normal}
#lobby .mission-facts{flex-wrap:wrap;row-gap:8px}
@media(max-width:960px){#lobby .theater-picker{max-width:100%;flex-wrap:wrap}#lobby .theater-picker button{white-space:normal;min-width:0}.deploy-foot{flex-wrap:wrap}.mission-facts>button{white-space:normal}}
#battle[data-duty] .city-watch{display:none}
#battle[data-duty] .city-order{min-width:0;width:clamp(110px,26vw,230px);box-sizing:border-box;overflow-wrap:anywhere}
#battle[data-duty] .city-order h2{font-size:clamp(14px,2vw,20px);line-height:1.16;margin-bottom:2px}
#battle .oasis-map div{white-space:nowrap}
@media(max-height:520px){#battle .oasis-map{width:clamp(103px,13vw,140px)}}
#battle[data-duty="relief"] :is(.city-condition,#city-healthbar,#city-wave,#city-bearing){display:none}
#battle[data-duty="relief"] #city-fix{display:none}
#oasis-leader,#city-threat{position:absolute;z-index:3;transform:translate(-50%,-100%);pointer-events:none;white-space:nowrap;padding:2px 7px;color:#fff3cf;background:#31251ee8;border:1px solid #e6ba63;border-radius:3px;font:700 13px/1.3 system-ui,sans-serif;text-shadow:0 1px 2px #111}
#oasis-leader i{font:700 18px/1 Georgia,serif;color:#ffda78}
#city-threat{border-color:#e2a27e;color:#ffe9cd}
#city-threat[data-hit="true"]{background:#651e19eb;border-color:#ffa78c;color:white}
#city-life-bar{width:36px;height:6px;vertical-align:middle;margin-left:4px;accent-color:#a4ce8b}
.city-vitals:is([data-danger="hit"],[data-danger="low"]){border-color:#fc9d83!important;color:#ffd4bf}
.city-vitals[data-danger="low"] #city-life-bar{accent-color:#ef745d}
#battle[data-duty] :is(.tribe-clock,.oasis-clock) b,#battle[data-duty] .oasis-clock svg{display:none}
@media(min-width:601px){
 #battle[data-duty][data-theater=city] #duty-strip{top:3%;max-width:34vw}
 #battle[data-duty]:is([data-theater=tribe],[data-theater=xiliang]) #duty-strip{top:70px}
 #battle[data-duty][data-theater=coast] #duty-strip,#battle[data-duty][data-theater=forest] #duty-strip{top:96px}
}

#battle[data-duty] .tribe-interaction:empty{display:none}

@media(max-width:600px){body.in-battle{--field-caption-bottom:max(32vh,150px)}}

#lobby .theater-picker button[aria-pressed=true]{color:#19251c;background:#cdb483}
#lobby .theater-picker button[aria-pressed=true] small{color:#344034;opacity:1}
#lobby .theater-picker button[aria-pressed=true] i,#lobby .theater-picker button[aria-pressed=true] i::before{border-color:currentColor}
#panel[data-view=armory]{overflow-anchor:none;scrollbar-gutter:stable}
@media(max-width:600px){
  #deploy-button{min-width:0;max-width:100%;height:auto;min-height:44px;padding:9px 16px;gap:8px}
  #deploy-button b{white-space:normal;overflow-wrap:anywhere}
}

#battle[data-duty=relief] :is(.oasis-score,.oasis-bars,#oasis-control,#oasis-objective-mark,.tribe-objectives,.tribe-family){display:none}
#battle[data-duty] :is(.tribe-trail,.tribe-objectives){display:none}

#duty-strip em{display:block;margin-top:.12rem;color:#e6e7d7;font:normal 500 clamp(10px,.93vw,14px)/1.3 var(--cn);text-wrap:balance}
#duty-strip small{font-variant-numeric:tabular-nums}
#rally-mark,#field-stance{position:absolute;z-index:5;pointer-events:none;color:#ffe3a7;border:1px solid #b9975c;background:#14201be6;box-shadow:0 2px 7px #0006;font:600 12px/1.2 var(--cn)}
#rally-mark{transform:translate(-50%,-100%);padding:.35rem .55rem;white-space:nowrap;border-radius:2px}
#rally-mark::after{content:"";position:absolute;left:calc(50% - 4px);bottom:-5px;width:7px;height:7px;border:solid #e0ad5b;border-width:0 1px 1px 0;background:#18251e;transform:rotate(45deg)}
#field-stance{left:2.4%;bottom:clamp(154px,22vh,232px);display:flex;align-items:center;gap:.28rem;padding:.24rem .48rem .24rem .24rem;color:#e7ecd9;border-color:#b4bc9277}
#field-stance svg{width:27px;height:27px}
#field-stance[data-crouched=false] .low,#field-stance[data-crouched=true] .upright,#field-stance[hidden],#rally-mark[hidden],#film-order[hidden]{display:none}
#film-order{position:absolute;z-index:2;bottom:clamp(74px,16%,160px);left:50%;transform:translateX(-50%);width:max-content;max-width:85%;box-sizing:border-box;padding:clamp(12px,2vw,24px) clamp(18px,3vw,42px);background:linear-gradient(105deg,#101914f0,#15231deb);color:#f8eed6;border-left:3px solid #d6b16d;text-align:left;pointer-events:none;font-family:var(--cn)}
#film-order :is(small,strong,span){display:block}#film-order small{color:#e3c082;font-weight:650}#film-order strong{font-size:clamp(17px,2.5vw,33px);line-height:1.22;margin:.28em 0}#film-order span{line-height:1.35;font-size:clamp(13px,1.5vw,22px)}
@media(max-width:700px){#field-stance{left:8px;bottom:auto;top:42%;padding:.15rem .35rem}#field-stance svg{width:23px;height:23px}#duty-strip{min-width:min(52vw,250px)}}

.award-ceremony{display:flex;align-items:center;gap:1.4rem;padding:1rem 1.3rem;margin:.6rem 0 1rem;color:#f4e4b5;background:radial-gradient(ellipse at 18% 55%,#78613d60,transparent 65%),#232a26;border-block:1px solid #b89a6180}
.award-ceremony h3{margin:.22em 0;font-size:clamp(1.3rem,4vw,2rem);color:#fff3ce}
.award-ceremony p,.award-ceremony small{margin:0;font-size:.78rem}
.award-medal{position:relative;display:grid;place-content:center;text-align:center;flex:none;width:4rem;height:4rem;border-radius:50%;border:4px double #d7ba79;background:linear-gradient(135deg,#92733a,#403c2d 54%,#a78649);box-shadow:0 2px 7px #0008;font:2.1rem/1 serif;animation:award-stamp .65s ease-out both}
.award-medal small{font:.65rem/1.3 serif;letter-spacing:.14em}
.chapter-honor{background:radial-gradient(ellipse at 18% 55%,#89703785,transparent 65%),#323729;border-block-color:#d3b066}
.chapter-honor .award-medal{outline:2px solid #d7ba79;outline-offset:3px}
.award-collection{border-bottom:1px solid #927a4a;padding-bottom:.6rem}.award-collection p{font-size:.85rem;line-height:1.55}
@keyframes award-stamp{from{transform:translateY(-10px) scale(1.2);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.award-medal{animation:none}}

.award-ceremony.chapter-honor{min-height:9rem;background:linear-gradient(90deg,#252b22f5 7%,#343525da 56%,#282c2777),var(--honor-art) center/cover}
.award-ribbon{display:flex;gap:3px;margin-top:.45rem}.award-ribbon i{display:block;width:1rem;height:3px;background:#655f50}.award-ribbon .earned{background:#e9c57c}
.chapter-honor .award-medal{width:4.8rem;height:4.8rem}

#order-action{pointer-events:auto;touch-action:manipulation;min-width:44px;min-height:44px;background:#342e20;color:#ffe3a3;border:1px solid #d0a864;border-radius:4px;font:700 16px var(--mono);cursor:pointer}#order-action[hidden]{display:none}

#field-store{position:absolute;z-index:12;right:14px;top:50%;padding:.48em .65em;border:1px solid #b09c70;background:#19231fee;color:#f0e1bf;border-radius:4px;cursor:pointer}
#battle:not([data-duty]) #field-store{display:none}
#field-store kbd{opacity:.75}
@media(pointer:coarse){#field-store{top:35%;right:5px}#field-store kbd{display:none}}

#battle[data-duty=relief] #duty-strip::after{content:"";position:absolute;bottom:-2px;left:0;width:var(--arrival,0%);height:3px;background:#ffe196;pointer-events:none}

#account-menu[hidden]{display:none}

#siege-betrayal{position:absolute;top:29%;left:50%;transform:translateX(-50%);font-size:clamp(54px,9vw,124px);color:#ffcf9a;text-shadow:0 3px 10px #54100d,0 0 24px #962615;pointer-events:none;letter-spacing:.12em;z-index:6}

#duty-strip em:empty{display:none}
