.commander-art-pending{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%;min-height:80px;color:#756756;text-align:center;border:1px dashed #c4b79e;border-radius:30%}.commander-art-pending b{font-size:14px}.commander-art-pending small{font-size:11px}.life-scope-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f6edd8;border-radius:16px;padding:16px;grid-column:1/-1}.life-scope-notice p{margin:0}.life-scope-notice button{flex-shrink:0}.level-check.life-scope{grid-column:1/-1}.word-context{display:block;font-size:12px;line-height:1.4;color:#765635;background:#fff3cd;padding:3px 8px;border-radius:8px;max-width:100%;white-space:normal}@media(max-width:650px){.expansion-country-map{grid-template-columns:1fr}.expansion-country{padding:8px 14px}.expansion-island{height:165px;flex-basis:42%}.expansion-country-copy strong{font-size:21px}.expansion-country-heading{flex-direction:column;gap:2px}.life-scope-notice{align-items:flex-start;flex-direction:column}}

.gate-arena{height:420px;position:relative;overflow:hidden;background:linear-gradient(#dceaea 0%,#eaf0e8 66%,#bac498 67%,#d8cfad);border-radius:24px}.gate-castle{position:absolute;right:1%;bottom:12%;width:50%;height:90%;opacity:.65}.gate-castle .castle-sprite,.gate-castle img{width:100%;height:100%;object-fit:contain}.gate-hero{position:absolute;left:12%;bottom:8%;width:25%;height:49%}.gate-foe{position:absolute;right:14%;bottom:8%;width:29%;height:57%}.gate-hero .hero-sprite,.gate-foe>.kana-farmer{width:100%;height:100%}.gate-vital{position:absolute;left:0;top:-35px;width:100%;display:grid;gap:5px;font-size:13px}.gate-vital progress{width:100%;height:10px;accent-color:#b75f50}.gate-question{position:absolute;left:5%;top:5%;width:47%;display:grid;justify-items:center;gap:3px;padding:12px;border-radius:18px;background:#fffcf0ee}.gate-question>b{font-size:30px}.gate-question>span{font-size:20px}.gate-question strong{font-size:13px;color:#af563b}.gate-hud{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:15px}.gate-hud label{display:grid;gap:4px;min-width:45%;font-size:14px}.gate-hud progress{width:100%;accent-color:#849b66}.gate-cover{position:absolute;inset:0;background:#f4eee5ec;display:grid;place-content:center;gap:16px}.gate-cover[hidden]{display:none}.gate-hurt{animation:gateHurt .65s ease}.gate-strike{animation:gateStrike .45s ease}.gate-foe.gate-strike{animation-direction:reverse}@keyframes gateHurt{20%{filter:brightness(2);translate:20px 0;rotate:8deg}50%{translate:-8px 0}100%{translate:0 0}}@keyframes gateStrike{50%{translate:25px 0;rotate:-7deg}}@media(max-width:650px){.gate-arena{height:300px}.gate-question{left:3%;width:59%;padding:8px;top:3%}.gate-question>b{font-size:24px}.gate-question>span{font-size:18px}.gate-question .word-context{font-size:11px}.gate-hero{left:8%;height:42%;width:30%}.gate-foe{right:5%;height:43%;width:32%}.gate-vital{top:-36px;font-size:11px}.gate-battle .battle-header h2{font-size:20px}.gate-battle .battle-header .eyebrow{font-size:10px}body[data-combat=gate]{overflow:hidden}body[data-combat=gate] .topbar,body[data-combat=gate] footer,body[data-combat=gate] #saveWarning{display:none}body[data-combat=gate] main{padding:0}body[data-combat=gate] #gate{position:fixed;inset:var(--combat-top,0px) 0 auto;height:min(var(--combat-height,100dvh),100dvh);overflow:auto;padding:8px 12px;background:#f7f4ec}body[data-combat=gate] .gate-arena{height:clamp(145px,calc(var(--combat-height,100dvh) - 320px),300px)}body[data-combat=gate] .small-note{font-size:10px;margin:5px 0}body[data-combat=gate] .answer-form{margin:6px 0}body[data-combat=gate] #gateFeedback{font-size:12px;margin:5px 0}}@media(prefers-reduced-motion:reduce){.gate-hurt,.gate-strike{animation:none}}

.gate-vital{top:auto;bottom:calc(100% + 6px);left:-5%;width:110%;z-index:3;background:#fff9eced;padding:7px 9px;border-radius:10px;box-shadow:0 2px 8px #705c2d17}.gate-vital b{font-size:12px;white-space:nowrap}.gate-vital progress{display:block;height:10px}.gate-hero .guardian-sprite,.gate-foe>.kana-farmer{transform:scaleX(var(--gate-facing,1))}@media(max-width:650px){.gate-question{width:55%}.gate-vital{padding:6px;bottom:calc(100% + 3px)}.gate-vital b{font-size:10px}.gate-battle .answer-choices button{overflow-wrap:anywhere}.gate-battle .battle-header{margin-bottom:8px}.gate-battle .gate-hud{padding:5px 0 9px}}

#gateChoices[hidden]{display:none!important}@media(max-width:650px){body[data-combat=gate] #gate{display:flex;flex-direction:column;gap:5px;overflow:hidden;margin:0;padding:8px 10px}body[data-combat=gate] .battle-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin:0;gap:8px;flex:none;min-height:36px}body[data-combat=gate] .battle-header h2{font-size:15px;line-height:1.2;margin:2px 0}body[data-combat=gate] .battle-header .eyebrow{display:block;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;letter-spacing:0}body[data-combat=gate] .battle-actions{display:flex;gap:4px;width:auto;margin:0}body[data-combat=gate] .battle-actions button{padding:7px;font-size:10px;min-height:30px;white-space:nowrap}body[data-combat=gate] .gate-hud{flex:none;margin:0;padding:3px 0;min-height:35px;font-size:11px}body[data-combat=gate] .gate-hud label{font-size:10px;gap:3px;grid-template-columns:auto auto;align-items:center}body[data-combat=gate] .gate-hud label progress{grid-column:1/-1;height:6px}body[data-combat=gate] .gate-arena{height:auto;min-height:135px;flex:1 1 0;margin:0}body[data-combat=gate] .small-note{flex:none;margin:0;font-size:9px;line-height:1.4}body[data-combat=gate] #gateForm{flex:none;padding:7px;margin:0;border-radius:12px}body[data-combat=gate] #gateForm label{font-size:11px;margin:0 0 3px}body[data-combat=gate] #gateForm input{font-size:18px;min-height:40px;padding:7px;line-height:1.2}body[data-combat=gate] #gateForm button{padding:7px 11px;font-size:13px;min-height:40px}body[data-combat=gate] #gateChoices{flex:none;gap:5px}body[data-combat=gate] #gateChoices button{font-size:14px;padding:7px;min-height:43px}body[data-combat=gate] #gateFeedback{flex:none;height:28px;line-height:1.25;overflow:auto;margin:0;font-size:11px}}
@media(max-width:650px) and (max-height:520px){body[data-combat=gate] #gateForm label,body[data-combat=gate] .small-note{display:none}body[data-combat=gate] #gate{padding:5px 8px;gap:4px}body[data-combat=gate] .gate-question{padding:5px;gap:0}body[data-combat=gate] .gate-question>b{font-size:23px}body[data-combat=gate] .gate-question>span{font-size:16px}body[data-combat=gate] .gate-question>small{font-size:10px}body[data-combat=gate] .gate-question>strong{font-size:11px}}

.single-portrait-sprite{display:block;position:relative;width:100%;height:100%}.single-portrait{display:block;width:100%;height:100%;object-fit:contain}.marching.duel .boss-actor .kana-farmer[data-source-facing=right]{transform:scaleX(-1)}.gate-foe>.kana-farmer[data-source-facing=right]{transform:scaleX(-1)}.expansion-defender{display:flex!important;align-items:center;gap:7px}.expansion-defender>.kana-farmer{width:48px;height:62px;flex:none}.expansion-defender small{font-size:11px}.event-preview-portrait{width:100%;height:300px;object-fit:contain}.event-preview-card{height:85px;width:100%;object-fit:contain}.event-preview-note{background:#f2eadb;padding:12px;border-radius:12px;font-size:13px}

/* Match actor bounds to visible full-body art. */
.gate-castle .castle-sprite img{object-position:center bottom}.gate-castle{bottom:8%;height:75%}.gate-hero,.gate-foe{height:230px;width:30%}
@media(max-width:650px){.gate-hero,.gate-foe{height:min(56%,215px);width:36%}.gate-hero{left:5%}.gate-foe{right:4%}.gate-castle{bottom:8%;height:min(75%,360px);width:58%}.gate-castle .castle-sprite{display:flex;align-items:flex-end}.gate-castle img{object-position:center bottom}}

.single-portrait-sprite>.sprite-frame{position:absolute;inset:0;width:100%;height:100%}.single-portrait-sprite>.attack-frame{display:none;overflow:visible}.gate-strike .single-portrait-sprite>.idle-frame{display:none!important}.gate-strike .single-portrait-sprite>.attack-frame{display:block!important}

/* The nine domains are contiguous partitions of the original three islands. */
.nine-kuni-map .country-area{fill-opacity:.26;stroke:#fff4db;stroke-width:2.2}
.nine-kuni-map .country-area-edge{stroke:#50665a;stroke-width:2.7;opacity:.62}
.nine-kuni-map .territory.selected .illustrated-hit-land{stroke:#f9edd0;stroke-width:2.5}
.nine-kuni-map .illustrated-label{filter:drop-shadow(0 2px 3px #31483944)}
.nine-kuni-map .territory-name{font-size:17px}
.nine-kuni-map .territory-status{font-size:11px}

.nine-kuni-map .coast-halo{fill:#75baa8;stroke:#a7d1bc;stroke-width:7;opacity:.88;pointer-events:none}
.nine-kuni-map .painted-islands,.nine-kuni-map .shore-wash{pointer-events:none}
/* The gate uses the same separated question strip as other boss battles. */
body[data-combat=gate] .gate-castle{right:10%;bottom:12%;width:64%;height:86%;opacity:1}
@media(max-width:650px){body[data-combat=gate] #gateQuestionDock{position:relative;inset:auto;width:100%;margin:0;min-height:0;flex:none}body[data-combat=gate] .gate-arena{min-height:90px}body[data-combat=gate] .gate-castle{top:0;bottom:auto;height:75%}}
.sky-guardian-arena{background-size:cover;background-position:center;background-repeat:no-repeat}
.guardian-cue{margin:8px 0;padding:8px 12px;border:1px solid #c3c9b4;border-radius:10px;background:#f1f5e7;color:#526747;font-size:13px;font-weight:700;line-height:1.3}
.guardian-cue.is-danger{border-color:#c88f76;background:#fff0d9;color:#944728}
.sky-guardian-path{padding:9px 11px;border:1px solid #dfd3bf;border-radius:10px;background:#f7f1e4;font-size:12px!important;line-height:1.6}
@media(max-width:650px){body[data-combat=gate] .guardian-cue{flex:none;margin:0;padding:5px 7px;font-size:11px;line-height:1.2}}
