/* Original Field Signal art direction: enamel, field maps, warm radio light. */
:root{--ink:#091619;--ink2:#13272a;--paper:#f4ead3;--paper-dim:#c5c9b7;--gold:#b9a56d;--gold-bright:#eed3a0;--cinnabar:#a4654e;--cinnabar-bright:#e5a585;--jade:#72a998;--font-title:Georgia,'Noto Serif CJK SC',serif;--font-body:system-ui,-apple-system,'Noto Sans CJK SC','Microsoft YaHei',sans-serif}
button{font:inherit;color:inherit}button:focus-visible,input:focus-visible{outline:3px solid #a8e2d3;outline-offset:4px}button{touch-action:manipulation}.bg-vignette{box-shadow:inset 0 0 13vmax #021014a0}.title-ink{display:none}
#screen-title{align-items:flex-start;padding:6vh 7vw;gap:14px;background:linear-gradient(90deg,#06141698,transparent 73%)}
#screen-title::before{content:'OLDWOLFGAMES / FIELD OPERATIONS';font:11px/1.5 var(--font-body);letter-spacing:.25em;color:#d7c59a;margin-bottom:12px;border-left:3px solid #d7c59a;padding-left:15px}
.game-title.latin{display:flex;flex-direction:column;font-family:Georgia,serif!important;font-size:clamp(64px,8.8vw,124px)!important;line-height:.91!important;letter-spacing:-.025em!important;gap:3px;font-weight:700!important;text-shadow:0 4px 36px #0009;align-items:flex-start}.game-title .accent{color:#e7c88c!important}.game-title span{animation:none!important}
body.en .game-subtitle,.game-subtitle{font-size:16px;letter-spacing:.1em;text-indent:0;margin-top:20px}.title-buttons{display:grid;grid-template-columns:repeat(2,minmax(150px,200px));gap:11px;margin-top:25px;animation:none}.title-buttons .btn-ink{font-size:15px!important;padding:14px 20px!important;letter-spacing:.03em;text-indent:0}.title-buttons #btn-new-run{background:#dbc99d;color:#14272a;border-color:#f3ddb0;font-weight:700}.title-footer{position:static!important;font-size:11px!important;letter-spacing:.05em!important;margin-top:15px;opacity:.9}.title-version{font-size:10px;opacity:.7;letter-spacing:.06em}.gear-btn{background:#0e252bd9!important;border:1px solid #b9a56d66;border-radius:50%;padding:10px!important;width:48px!important;height:48px!important}.gear-img{width:26px!important;height:26px!important}
.btn-ink{background:linear-gradient(165deg,#253d3f,#112629);border-color:#b9a56d88;letter-spacing:.06em;text-indent:0;font-family:var(--font-body);font-size:16px}.btn-ink.small,body.en .btn-ink.small{min-height:40px;padding:9px 15px;font-size:13px}.btn-ink.big,body.en .btn-ink.big{font-size:18px;padding:15px 30px}.overlay{background:#0410169e;backdrop-filter:blur(7px)}.overlay-panel{background-color:#10282cee!important;border:1px solid #a8936077;box-shadow:0 24px 90px #000b,inset 0 0 0 4px #09191e88;border-radius:14px;padding:28px;max-height:92dvh;overflow-y:auto}.overlay-panel.has-backdrop{background-blend-mode:multiply}.overlay-panel h2,body.en .overlay-panel h2{font-size:28px;line-height:1.2;margin:8px 0 16px;letter-spacing:.01em}.panel-desc{font-size:15px;line-height:1.65;color:#e0ddc9}.story-text{font-size:16px;line-height:1.85}.panel-row{gap:14px}.reward-option{background:linear-gradient(145deg,#1d383bee,#0c1e23ee);border:1px solid #829b8580;border-radius:9px;padding:18px;min-width:150px}.reward-option:hover{border-color:#e4ce91;background:#294748}.rw-desc{font:13px/1.55 var(--font-body);color:#d6daca}.rw-name{font-family:var(--font-title);font-size:17px}.rw-tag{font:10px/1.6 var(--font-body);letter-spacing:.09em}.rw-price{font-size:16px}.panel-desc,.rw-desc,.bs-desc,.hero-skill{user-select:text}
.officer-portrait{display:block;background-image:url('../assets/original/officers-atlas.webp');background-size:400% 300%;background-repeat:no-repeat;aspect-ratio:1;flex-shrink:0;overflow:hidden}.officer-portrait.opposition{filter:saturate(.55) sepia(.12);border-color:#ba715b}.hero-portrait .officer-portrait,.portrait>.officer-portrait{width:100%;height:100%}.intro-portrait,.story-hero-img,.tut-host-img,.cut-portrait{object-fit:cover}.hero-list{width:min(1100px,94vw);grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:14px;padding-bottom:35px;overflow-y:auto}.hero-card{background:#14292cf0;border:1px solid #94a28c66;color:var(--paper);text-align:left;box-shadow:0 10px 28px #0006;border-radius:9px;cursor:pointer}.hero-card:hover{border-color:#ebd8a4;background:#244347}.hero-portrait{height:160px}.hero-info{padding:15px}.hero-name,body.en .hero-card .hero-name{font-size:21px}.hero-skill{font:12px/1.6 var(--font-body)}.hero-card .hero-hp{font-size:12px}.screen-hint{font:13px/1.6 var(--font-body);letter-spacing:.03em;margin-bottom:15px}.screen-title,body.en .screen-title{font-size:32px;margin-top:26px}
.mode-card{background:#112a2d;border:1px solid #bfa87977;text-align:left;color:var(--paper);padding:0;cursor:pointer;overflow:hidden}.mode-art{position:absolute;inset:0;width:100%;height:100%}.mode-name{font-family:var(--font-title)}.mode-desc{font:13px/1.55 var(--font-body)}.mode-emblem{filter:none}
.map-header{background:linear-gradient(180deg,#0c232bf2,#0c232ba8);border-bottom:1px solid #a28e6155;min-height:76px;padding:16px 25px;gap:20px}.map-node{font:inherit;border:1px solid #a99563;box-shadow:0 6px 18px #0008;background:#132e32;padding:0;cursor:default}.map-node.available{cursor:pointer;border:2px solid #e6d096;box-shadow:0 0 0 6px #d0b26920,0 0 24px #e6d09655}.map-node.cleared{filter:saturate(.2);opacity:.6}.node-label,.node-place{font:11px/1.5 var(--font-body);letter-spacing:.03em}.story .node-place{background:#091b22dc;padding:4px 8px;border-radius:4px;white-space:nowrap}.map-node .node-art{width:100%;height:100%;border-radius:50%}#map-paths path{stroke:#b3beaa88;stroke-width:3}#map-paths path.lit{stroke:#efda9d;stroke-width:4}.run-stats{font-family:var(--font-body);font-size:14px}.act-name,body.en .act-name{font-size:21px}.map-node .node-art{opacity:.96}
.fighter-card{background:linear-gradient(160deg,#21393d,#0a1b21);border-color:#8ca19788}.fighter-name,body.en .fighter-name{font-size:14px}.fighter-area.enemy{padding-top:16px}.fighter-card .portrait{height:110px}.fighter-area.player .portrait{height:90px}.fighter-area.player{bottom:200px}.fighter-area.enemy .fighter-card{width:164px}.skill-btn{background:#143138;color:#eddfba;border-color:#829a8388;min-height:35px}.skill-icon{border-radius:5px}.game-card{width:110px;height:160px;border-color:#d2bc85;border-radius:7px;padding:0;text-align:left;margin:0 -7px;background:#17363c}.game-card .card-name.h-en,.game-card .card-name.h-en.long{font:700 12px/1.16 var(--font-body);top:auto;bottom:12px;left:8px;right:8px;max-width:none;transform:none;text-align:center;white-space:normal}.game-card .card-name{top:auto;bottom:12px;font-size:16px;writing-mode:horizontal-tb;left:8px;right:8px;text-align:center;letter-spacing:.05em}.game-card .card-shade{background:linear-gradient(0deg,#03131ff0 0%,transparent 55%)}.game-card .card-art{object-fit:cover}.game-card:focus-visible{z-index:30;transform:translateY(-20px)}#hand-area{min-height:205px;height:215px;padding-top:45px;padding-bottom:10px}#hand-area .game-card:hover{transform:translateY(-25px) scale(1.06)}.endturn{bottom:225px!important;right:3vw!important}.battle-center{bottom:220px!important}#battle-log{font-family:var(--font-body);font-size:12px;background:linear-gradient(90deg,transparent,#07181a55);padding:15px;max-height:190px}.pile{filter:sepia(.2) hue-rotate(95deg)}#prompt-bar{background:#0c2b32f5;border-color:#e6d297;padding:13px 20px;max-width:90vw}#prompt-text{font:14px/1.5 var(--font-body);letter-spacing:0}#game-tooltip{font:13px/1.65 var(--font-body);max-width:min(320px,90vw);background:#071e28f7;border-color:#c6b079;color:#f3e9d1}.hp-gem{filter:saturate(.55)}
.training-panel{width:min(850px,94vw)}.field-eyebrow{font:11px/1.4 var(--font-body);letter-spacing:.2em;color:#d9c68c}.training-status{display:flex;gap:20px;justify-content:center;background:#061b24bd;border:1px solid #a8966866;border-radius:7px;padding:13px;font:13px var(--font-body);margin:18px 0}.training-hand{display:flex;justify-content:center;gap:15px;min-height:265px;align-items:center;flex-wrap:wrap}.training-card{width:155px;min-height:245px;border:1px solid #d3bb80;background:#122e32;border-radius:8px;cursor:pointer;padding:0 0 12px;color:#eddfbd;overflow:hidden;box-shadow:0 7px 23px #0005}.training-card img{display:block;width:100%;height:145px;object-fit:cover}.training-card b{display:block;font-size:13px;margin:8px}.training-card span{display:block;font:11px/1.45 var(--font-body);padding:0 10px}.training-card:disabled{opacity:.4;cursor:default}.training-card:hover:enabled{transform:translateY(-6px);border-color:#fff0bd}.training-nav{display:flex;justify-content:center;gap:12px;margin-top:17px}.cx-round.officer-portrait{width:72px;height:72px;border-radius:50%;margin:auto}.title-buttons .hidden{display:none!important}
body[data-save-warning]::after{content:attr(data-save-warning);position:fixed;top:0;left:0;right:0;z-index:999;background:#8e3c27;color:#fff;padding:8px;text-align:center;font-size:12px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}#fx-canvas{display:none}}
@media(max-width:700px){#screen-title{padding:6vh 7vw;justify-content:center}.game-title.latin{font-size:clamp(64px,17vw,95px)!important}.title-buttons{grid-template-columns:repeat(2,minmax(122px,1fr));width:100%;max-width:380px;gap:9px}.title-buttons .btn-ink{padding:13px 12px!important;font-size:13px!important}.title-footer{max-width:82%;line-height:1.6}.title-version{margin:0}#screen-title::before{font-size:9px;letter-spacing:.18em}.overlay-panel{padding:22px 16px;max-height:94dvh}.overlay-panel h2,body.en .overlay-panel h2{font-size:24px}.hero-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hero-portrait{height:126px}.hero-info{padding:10px}.hero-name,body.en .hero-card .hero-name{font-size:16px}.hero-skill{font-size:10px}.hero-skill b{font-size:11px}.map-header{min-height:93px;padding:12px;gap:8px;flex-wrap:wrap;align-items:center}.map-header .gear-btn{position:static;width:40px!important;height:40px!important;padding:7px!important}.act-name,body.en .act-name{font-size:17px}.run-stats{font-size:12px}.map-node.story{width:44px;height:44px}.node-place{font-size:9px!important}.fighter-area.enemy{padding-top:10px}.fighter-area.enemy .fighter-card{width:120px}.fighter-card .portrait{height:75px}.fighter-area.player .fighter-card{width:109px}.fighter-area.player .portrait{height:65px}.fighter-area.player{left:12px;bottom:190px}.fighter-name,body.en .fighter-name{font-size:12px}.skill-btn{font-size:10px!important;min-height:28px;padding:5px}.fighter-area{gap:10px}#hand-area{height:185px;min-height:185px;padding:37px 12px 8px}.game-card{width:91px;height:136px;margin:0 -5px}.game-card .card-name.h-en,.game-card .card-name.h-en.long{font-size:10px;bottom:9px}.endturn{bottom:197px!important;right:12px!important;font-size:13px!important;padding:11px 15px!important}.battle-center{bottom:190px!important}#battle-log{display:none}.pile-row{display:none!important}.training-card{width:125px;min-height:220px}.training-card img{height:112px}.training-card span{font-size:10px}.training-status{font-size:11px;gap:12px;flex-wrap:wrap}.training-hand{gap:10px;min-height:235px}.training-nav{flex-wrap:wrap}.panel-desc{font-size:13px}.mode-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.mode-card{min-width:0!important;width:auto!important;min-height:220px!important}.mode-desc{font-size:11px!important}.mode-name{font-size:19px!important}.reward-option{min-width:140px}.story-text{font-size:14px}.intro-portrait{width:100px;height:100px}#prompt-bar{padding:10px;gap:8px;flex-wrap:wrap;justify-content:center;max-width:95vw}#prompt-text{font-size:12px}}
@media(max-height:650px) and (min-width:701px){.fighter-card .portrait{height:80px}.fighter-area.enemy .fighter-card{width:140px}.game-card{height:132px;width:94px}#hand-area{height:174px;min-height:174px}.fighter-area.player{bottom:177px}.endturn{bottom:185px!important}.battle-center{bottom:175px!important}}

.officer-portrait.opposition{background-image:url('../assets/original/opponents-atlas.webp');filter:none}

#battle-pressure{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:8;font:600 10px system-ui;letter-spacing:.08em;padding:5px 12px;border:1px solid #ba915a88;border-radius:2px;color:#e8d2a6;background:#131f24eb;pointer-events:none;white-space:nowrap}

#save-conflict-dialog{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:24px;padding:10vw;background:#10212df5;color:#eee4cd;text-align:center;font:20px/1.6 system-ui}#save-conflict-dialog p{max-width:680px}

/* Keep translated labels readable across the whole card width. */
.game-card .card-name,.game-card .card-name.h-en,.game-card .card-name.h-en.long{writing-mode:horizontal-tb;text-orientation:mixed;width:auto;max-height:none;height:auto;top:auto;left:8px;right:8px;bottom:10px;white-space:normal;text-align:center}

/* Active table choices must sit above the overlapping player panel and hand.
   Keep the container click-through; only the actual card buttons receive input. */
#resolve-cards.choosing-cards{position:relative;z-index:25}

/* Active order labels stay inside clipped card art, clear of suit/rank and name. */
#resolve-cards.choosing-cards .resolve-tag {
  top:6px; left:30px; right:5px; bottom:auto; z-index:3;
  padding:3px; border-radius:3px; background:#071e28f5; color:#f4ead3;
  font:600 10px/1.2 var(--font-body); letter-spacing:0; text-align:center;
  white-space:normal; pointer-events:none;
}

@media(max-width:700px) {
  /* Reset the old single-column 260px button width inside the two-column grid. */
  #screen-title .title-buttons .btn-ink {
    width:100%; min-width:0; max-width:100%; box-sizing:border-box;
  }
  /* Four-card Supply Drop must wrap rather than extend beyond a phone width.
     Keep overflow visible so keyboard focus rings and raised cards are not cut off. */
  #resolve-cards.choosing-cards {
    max-width:calc(100vw - 24px); flex-wrap:wrap; justify-content:center;
    column-gap:10px; row-gap:32px; overflow:visible;
  }
}

/* Known armor warning is informational; the card remains selectable. */
.fire-advice-badge{position:absolute;left:7px;right:7px;bottom:35px;z-index:3;padding:3px 2px;background:#4b271ff2;border:1px solid #e7ac79;border-radius:3px;color:#ffe4c3;font:700 10px/1.2 var(--font-body);text-align:center;pointer-events:none}
@media(max-width:700px){.fire-advice-badge{left:4px;right:4px;bottom:32px;font-size:9px}}

/* C12: a reserved toolbar keeps pacing controls clear of the fighters at narrow widths. */
#battle-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-shrink:0;min-height:60px;padding:6px 12px;position:relative;z-index:65;background:#091c22d9}
#battle-toolbar #battle-pressure{position:static;transform:none;flex:1;min-width:0;text-align:center;white-space:normal;line-height:1.45;letter-spacing:.02em;padding:5px 6px}
#battle-toolbar #btn-animation-speed{flex:0 0 auto;min-width:92px;min-height:44px;padding:8px 10px;letter-spacing:0}
#screen-battle #battle-toolbar .gear-btn{position:static;flex:0 0 48px;margin:0}
#battle-toolbar #btn-animation-speed[aria-pressed=true],.animation-settings button[aria-pressed=true]{border-color:#efd49b;background:#355351;color:#fff1c8}
#screen-battle .fighter-area.enemy{padding-top:8px}
.animation-settings{flex-wrap:wrap;gap:10px}.animation-speed-note{font-size:12px;text-align:left}
.card-readiness-badge{position:absolute;left:5px;right:5px;bottom:35px;z-index:3;padding:3px 2px;background:#142832f5;border:1px solid #9bb9ba;border-radius:3px;color:#e0eeeb;font:600 9px/1.2 var(--font-body);text-align:center;pointer-events:none}
.training-next-action{padding:10px 14px;border-left:3px solid #b9d7cb;background:#071e28c9;text-align:left;font:600 13px/1.5 var(--font-body);color:#dfeddc}
.training-summary{text-align:left;padding-left:20px;font:13px/1.65 var(--font-body);color:#e0ddc9}.training-summary li{margin:10px 0}.training-summary strong{color:#f0d49b}
.training-panel.training-complete .training-hand,.training-panel.training-complete .training-status{display:none}
@media(max-width:700px){#battle-toolbar{gap:6px;padding:6px 8px}#battle-toolbar #btn-animation-speed{min-width:78px;font-size:12px}#battle-toolbar #battle-pressure{font-size:9px}.card-readiness-badge{bottom:32px;font-size:8px}}
/* Match card/judge/banner presentation to the selected pace; decisions have no timer. */
html[data-animation-speed="2"] #turn-banner{animation-duration:.6s}
html[data-animation-speed="2"] .judge-layer::before{animation-duration:.15s}
html[data-animation-speed="2"] .judge-banner{animation-duration:.25s}
html[data-animation-speed="2"] .judge-card{animation-duration:.29s}
html[data-animation-speed="2"] .judge-result{animation-duration:.2s;animation-delay:.25s}
html[data-animation-speed="2"] .judge-layer.judge-out{animation-duration:.21s}

#battle-pace-status{flex:0 0 100%;font:11px/1.4 var(--font-body);color:#f2c4a0;text-align:center;padding:0 4px 3px}
