/* Conquest world map (2026-11-16). Lobby rules: gold primary (#releasePanel button.primary), slate secondary, slate chips,
   panel #1E2933/#26333F, lines #3E4F5C, text #ECE6D6/#A9B3BA, min 11px. Colour-blind safe states
   (docs/CONQUEST_REFERENCES_20261116.md 2-9): owned #0072B2 + gold border, attackable #E69F00, invasion #D55E00,
   selected pale gold. Motion is opacity/transform only and stops under prefers-reduced-motion. */
#releasePanel .story-map185.conquest20261116{grid-template-rows:auto minmax(0,1fr)}
/* header count: "5 / 30 점령" (the word stays on phones too) */
#releasePanel .story-map185.conquest20261116 .story-map-progress185 small{display:inline;font-size:11px;color:#A9B3BA}
#releasePanel .story-map185.conquest20261116 .conquest-layout20261116{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:6px;min-width:0;min-height:0}
#releasePanel .story-map185.conquest20261116 .conquest-layout20261116[data-sheet=open]{grid-template-columns:minmax(0,1fr) 360px}

/* map viewport: one transformed stage; the browser never pans it (pointer gestures do) */
#releasePanel .cm-view20261116{position:relative;overflow:hidden;min-width:0;min-height:0;box-sizing:border-box;border:1px solid #3E4F5C;border-radius:8px;background:#0e1d24;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;contain:layout paint}
#releasePanel .cm-view20261116.cm-dragging{cursor:grabbing}
#releasePanel .cm-stage20261116{position:absolute;left:0;top:0;transform-origin:0 0}
#releasePanel .cm-view20261116.cm-dragging .cm-stage20261116{will-change:transform}
#releasePanel .cm-svg20261116{display:block;width:100%;height:100%;overflow:hidden;--cmpx:2px;font-family:system-ui,-apple-system,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif}

/* provinces: borders stay ~2 screen px at every zoom through --cmpx (1 screen px in map units) */
/* unclaimed wastes: dimmed like locked land, no label */
#releasePanel .cm-wilds{pointer-events:none}
#releasePanel .cm-wild-fog{fill:#7f7f7f;mix-blend-mode:saturation;opacity:.8}
#releasePanel .cm-wild{fill:rgba(7,11,17,.46);stroke:#0b0f14;stroke-opacity:.8;stroke-width:calc(var(--cmpx)*2)}
#releasePanel .cm-region{cursor:pointer;outline:none}
#releasePanel .cm-region path{stroke-linejoin:round}
#releasePanel .cm-fill{fill:transparent;pointer-events:all}
#releasePanel .cm-pattern,#releasePanel .cm-fog{fill:none;pointer-events:none}
#releasePanel .cm-edge{fill:none;stroke:#0b0f14;stroke-opacity:.82;stroke-width:calc(var(--cmpx)*4.4);pointer-events:none}
#releasePanel .cm-line{fill:none;stroke:#6f7c86;stroke-width:calc(var(--cmpx)*1.3);pointer-events:none}
/* locked / other legions: dim and desaturated, so only the frontier and my land stay bright */
#releasePanel .cm-region[data-state=locked] .cm-fill{fill:rgba(7,11,17,.36)}
#releasePanel .cm-region[data-state=locked] .cm-fog{fill:#7f7f7f;mix-blend-mode:saturation;opacity:.72}
/* attackable: art left bright, orange dashed border that breathes (opacity only) */
#releasePanel .cm-region[data-state=attackable] .cm-fill{fill:rgba(230,159,0,.1)}
#releasePanel .cm-region[data-state=attackable] .cm-line{stroke:#E69F00;stroke-width:calc(var(--cmpx)*2.6);stroke-dasharray:calc(var(--cmpx)*8) calc(var(--cmpx)*4);animation:cm-breathe20261116 1.8s ease-in-out infinite}
/* one of two battles won: blue stripes, solid orange border */
#releasePanel .cm-region[data-state=attacking] .cm-pattern{fill:url(#cmHatchOwned20261116)}
#releasePanel .cm-region[data-state=attacking] .cm-line{stroke:#E69F00;stroke-width:calc(var(--cmpx)*2.6)}
/* owned: blue fill, bold gold border */
#releasePanel .cm-region:is([data-state=owned],[data-state=invaded]) .cm-fill{fill:rgba(0,114,178,.42)}
#releasePanel .cm-region[data-state=owned] .cm-line{stroke:#F0C060;stroke-width:calc(var(--cmpx)*2.6)}
/* invaded: my blue + vermilion stripes and a thick vermilion border (no blinking) */
#releasePanel .cm-region[data-state=invaded] .cm-pattern{fill:url(#cmHatchInvasion20261116)}
#releasePanel .cm-region[data-state=invaded] .cm-line{stroke:#D55E00;stroke-width:calc(var(--cmpx)*3.4)}
#releasePanel .cm-region:focus-visible .cm-line{stroke:#ffffff;stroke-dasharray:none}
/* selected: pale gold outline over any state */
#releasePanel .cm-selected path{fill:none;pointer-events:none;stroke-linejoin:round}
#releasePanel .cm-sel-edge{stroke:#0b0f14;stroke-opacity:.9;stroke-width:calc(var(--cmpx)*7.5)}
#releasePanel .cm-sel-line{stroke:#FFE7A0;stroke-width:calc(var(--cmpx)*3.4)}

/* routes of my legion: gold when one end is mine, a faint dashed road otherwise */
#releasePanel .cm-routes line{pointer-events:none;stroke-linecap:round}
#releasePanel .cm-route-edge{stroke:#0b0f14;stroke-opacity:.72;stroke-width:calc(var(--cmpx)*4.6)}
#releasePanel .cm-route-edge[data-style=locked]{stroke-opacity:.5;stroke-width:calc(var(--cmpx)*3.4)}
#releasePanel .cm-route[data-style=owned]{stroke:#F0C060;stroke-width:calc(var(--cmpx)*2.4)}
#releasePanel .cm-route[data-style=locked]{stroke:#E8DDBF;stroke-opacity:.7;stroke-width:calc(var(--cmpx)*1.5);stroke-dasharray:calc(var(--cmpx)*5) calc(var(--cmpx)*5)}

/* conquest effect: colour spreads from the border, gold flash, flag drop */
#releasePanel .cm-fx{pointer-events:none}
#releasePanel .cm-spread{fill:#0072B2;fill-opacity:.5}
#releasePanel .cm-region.cm-conquering .cm-fill{fill-opacity:0}
#releasePanel .cm-region.cm-flash .cm-line{animation:cm-flash20261116 .9s ease-out 1}
#releasePanel .cm-region.cm-fade .cm-fill{animation:cm-fade20261116 .3s ease-out 1}
#releasePanel .cm-label.cm-flag-new .cm-flag-drop{animation:cm-flag20261116 .45s cubic-bezier(.2,.9,.3,1.3) 1}

/* labels: constant screen size chips (drawn in px inside a 1/k scaled group) */
#releasePanel .cm-label{cursor:pointer}
#releasePanel .cm-label[data-mode=none]{display:none}
#releasePanel .cm-hit{fill:transparent;pointer-events:all}
#releasePanel .cm-pill{fill:rgba(12,17,23,.88);stroke:#3E4F5C;stroke-width:1}
#releasePanel .cm-label text{fill:#ECE6D6;font-weight:700;letter-spacing:0;pointer-events:none;font-variant-numeric:tabular-nums}
#releasePanel .cm-label[data-state=locked] text{fill:#A9B3BA;font-weight:600}
#releasePanel .cm-label[data-state=owned] .cm-pill{stroke:#F0C060;stroke-width:1.5}
#releasePanel .cm-label[data-state=owned] .cm-name{fill:#FFE7A0}
#releasePanel .cm-label:is([data-state=attackable],[data-state=attacking]) .cm-pill{stroke:#E69F00;stroke-width:1.5}
#releasePanel .cm-label[data-state=invaded] .cm-pill{stroke:#D55E00;stroke-width:2}
#releasePanel .cm-label :is(.cm-income,.cm-lv,.cm-half){fill:#F4D27A}
#releasePanel .cm-label .cm-time{fill:#FFC3A6}
#releasePanel .cm-i-swords path{fill:none;stroke:#FFC24D;stroke-width:1.8;stroke-linecap:round}
#releasePanel .cm-i-lock rect{fill:#8d979e}
#releasePanel .cm-i-lock path{fill:none;stroke:#8d979e;stroke-width:1.4}
#releasePanel .cm-i-flag .cm-flag-pole{stroke:#E8DFC8;stroke-width:1.4}
#releasePanel .cm-i-flag .cm-flag-cloth{fill:#F0C060}
#releasePanel .cm-i-alert>path:first-child{fill:#D55E00;stroke:#FFD2B8;stroke-width:1}
#releasePanel .cm-i-alert .cm-i-alert-mark{fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round}
#releasePanel .cm-label[data-state=invaded] .cm-i-alert{animation:cm-soft20261116 2s ease-in-out infinite}
#releasePanel .cm-i-coin{fill:#F0C060;stroke:#6b4c16;stroke-width:1}
#releasePanel .cm-i-crest{stroke:#0b0f14;stroke-width:1}
#releasePanel .cm-pip{fill:none;stroke:#E69F00;stroke-width:1.2}
#releasePanel .cm-pip.on{fill:#E69F00}
#releasePanel .cm-i-spec :is(path,ellipse){stroke-width:1.5;stroke-linecap:round}
#releasePanel .cm-i-spec[data-track=farm] path{fill:none;stroke:#E9C46A}
#releasePanel .cm-i-spec[data-track=market] ellipse{fill:#5a4416;stroke:#F0C060}
#releasePanel .cm-i-spec[data-track=fort] path{fill:#3b4650;stroke:#B8C2CC}

/* overlay controls inside the map frame: chips top-left, zoom bottom-right (44px targets) */
#releasePanel .cm-hud20261116{position:absolute;left:6px;top:6px;z-index:2;display:flex;flex-wrap:wrap;gap:6px;max-width:calc(100% - 64px);pointer-events:none}
#releasePanel .cm-hud20261116:empty{display:none}
html body #releasePanel .cm-hud20261116 button.cm-hud-chip{pointer-events:auto;display:inline-flex;align-items:center;gap:5px;width:auto;min-width:0;min-height:34px;margin:0;padding:4px 10px;box-sizing:border-box;border-radius:8px;border:1px solid #E69F00;background:#1E2933;color:#FFD58A;font:700 12px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;box-shadow:inset 0 1px 0 rgba(255,240,200,.12);cursor:pointer}
html body #releasePanel .cm-hud20261116 button.cm-hud-chip[data-kind=invasion]{border-color:#D55E00;color:#FFC3A6}
#releasePanel .cm-hud20261116 .cm-icon{width:14px;height:14px;flex:0 0 14px}
#releasePanel .cm-zoom20261116{position:absolute;right:6px;bottom:6px;z-index:2;display:flex;flex-direction:column;gap:6px}
html body #releasePanel .cm-zoom20261116>button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;font:700 22px/1 system-ui,sans-serif}
#releasePanel .cm-zoom20261116 .cm-icon{width:18px;height:18px}

/* slate secondary, same as the lobby's (buttons-unify-20261018.css) */
html body #releasePanel .story-map185.conquest20261116 button.secondary{border:1px solid #5B7385!important;border-image:none!important;border-radius:8px!important;background:linear-gradient(180deg,#3A4E5E,#26343F)!important;color:#ECE6D6!important;text-shadow:0 1px 0 #000!important;box-shadow:inset 0 1px 0 rgba(255,240,200,.12),0 2px 0 #0a1018!important;font-weight:700!important;cursor:pointer}
html body #releasePanel .story-map185.conquest20261116 button:is(.secondary,.primary):not(:disabled):active{transform:translateY(2px)}
html body #releasePanel .story-map185.conquest20261116 button.secondary:disabled{filter:saturate(.35) brightness(.75)!important;box-shadow:none!important;cursor:default}
/* invasion defence: vermilion primary */
html body #releasePanel#releasePanel .story-map185.conquest20261116 button.primary.cm-defend{border-color:#FFC3A6!important;background:linear-gradient(180deg,#E8722A,#C24E0A)!important;color:#FFF7F0!important;text-shadow:0 1px 0 #5a1d00!important;box-shadow:inset 0 1px 0 rgba(255,230,210,.5),0 3px 0 #6a2500!important}

/* province sheet (right side; the map stays visible) */
#releasePanel .cm-sheet20261116{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;padding:10px;background:#1E2933;border:1px solid #3E4F5C;border-radius:8px;color:#ECE6D6;font:13px/1.35 system-ui,sans-serif;scrollbar-width:thin;scrollbar-color:#5B7385 #1E2933;overscroll-behavior:contain}
#releasePanel .cm-sheet20261116[hidden]{display:none!important}
#releasePanel .cm-sheet20261116>*{flex-shrink:0;margin:0}
#releasePanel .cm-sheet20261116 .cm-icon{flex:0 0 auto}
#releasePanel .cm-sheet-head{display:flex;align-items:center;gap:8px}
#releasePanel .cm-sheet-title{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
#releasePanel .cm-sheet-title>.cm-icon{width:22px;height:22px}
#releasePanel .cm-sheet-title>div{min-width:0}
#releasePanel .cm-sheet-title h3{margin:0;font-size:17px;line-height:1.2;color:#F4D27A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#releasePanel .cm-sheet-title .cm-loc{display:block;font-size:11px;line-height:1.3;color:#A9B3BA;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #releasePanel .story-map185.conquest20261116 button.cm-sheet-close{flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0;font-size:15px;line-height:1}
#releasePanel .cm-tags{display:flex;flex-wrap:wrap;gap:6px}
#releasePanel :is(.cm-state-tag,.cm-spec-tag){display:inline-flex;align-items:center;gap:4px;box-sizing:border-box;height:22px;padding:0 8px;border:1px solid #3E4F5C;border-radius:11px;background:#26333F;color:#A9B3BA;font-size:11px;font-weight:700;white-space:nowrap}
#releasePanel .cm-state-tag[data-state=owned]{border-color:#0072B2;background:rgba(0,114,178,.28);color:#CFE8FF}
#releasePanel .cm-state-tag:is([data-state=attackable],[data-state=attacking]){border-color:#E69F00;color:#FFD58A}
#releasePanel .cm-state-tag[data-state=invaded]{border-color:#D55E00;background:rgba(213,94,0,.2);color:#FFC3A6}
#releasePanel .cm-spec-tag{border-color:#8a7442;background:#2a2416;color:#F4D27A}
#releasePanel .cm-spec-tag .cm-icon{width:13px;height:13px}
#releasePanel .cm-income{display:flex;flex-direction:column;gap:2px;padding:8px 10px;background:#26333F;border:1px solid #3E4F5C;border-radius:8px}
#releasePanel .cm-income strong{font-size:20px;line-height:1.15;color:#F4D27A;font-variant-numeric:tabular-nums}
#releasePanel .cm-income small{font-size:11px;color:#A9B3BA;font-variant-numeric:tabular-nums}
#releasePanel .cm-spec-line{display:block;font-size:11px;line-height:1.35;color:#C9B98F}
#releasePanel .cm-note{font-size:12px;line-height:1.4;color:#A9B3BA}
#releasePanel .cm-threat{display:flex;align-items:center;gap:6px;font-size:12px;color:#ECE6D6}
#releasePanel .cm-threat .cm-pips{width:24px;height:10px;flex:0 0 24px}
#releasePanel .cm-neighbours{display:flex;flex-wrap:wrap;gap:6px}
html body #releasePanel .story-map185.conquest20261116 .cm-neighbours button{width:auto;min-width:0;min-height:36px;margin:0;padding:4px 12px;font-size:12px}
#releasePanel .cm-reward{display:flex;flex-direction:column;gap:3px;font-size:12px}
#releasePanel .cm-reward>small{font-size:11px;color:#A9B3BA}
#releasePanel .cm-reward>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;color:#ECE6D6;font-variant-numeric:tabular-nums}
#releasePanel .cm-reward .cm-gold{display:inline-flex;align-items:center;gap:3px;color:#F4D27A}
#releasePanel .cm-reward .reward-icon254{width:14px;height:14px}
#releasePanel .cm-reward .cm-card{display:inline-flex;align-items:center;gap:4px}
#releasePanel .cm-reward .cm-card img{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}
#releasePanel .cm-invasion{display:flex;flex-direction:column;gap:3px;padding:8px 10px;border:1px solid #D55E00;border-radius:8px;background:rgba(213,94,0,.16)}
#releasePanel .cm-invasion strong{display:flex;align-items:center;gap:6px;font-size:14px;color:#FFC3A6}
#releasePanel .cm-invasion .cm-icon{width:16px;height:16px}
#releasePanel .cm-invasion small{font-size:11px;line-height:1.4;color:#F2D9CC;font-variant-numeric:tabular-nums}
#releasePanel .cm-battles{display:flex;flex-direction:column;gap:6px}
#releasePanel .cm-battle{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:48px;padding:5px 5px 5px 10px;background:#22303C;border:1px solid #3E4F5C;border-radius:8px}
#releasePanel .cm-battle>div{display:flex;flex-direction:column;flex:1;min-width:0}
#releasePanel .cm-battle small{font-size:11px;color:#A9B3BA;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#releasePanel .cm-battle strong{font-size:12px;color:#ECE6D6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#releasePanel .cm-battle[data-state=done] small{color:#9fc2d8}
html body #releasePanel .story-map185.conquest20261116 .cm-battle>button{flex:0 0 auto;width:auto;min-width:68px;min-height:38px;margin:0;padding:4px 10px;font-size:12px;white-space:nowrap}
#releasePanel .cm-dev{display:flex;flex-direction:column;gap:6px}
#releasePanel .cm-dev h4{margin:0;font-size:12px;color:#F4D27A}
#releasePanel .cm-dev-row{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:48px;padding:5px 5px 5px 8px;background:#22303C;border:1px solid #3E4F5C;border-radius:8px}
#releasePanel .cm-dev-row[data-spec]{border-color:#8a7442}
#releasePanel .cm-dev-row>.cm-icon{width:18px;height:18px}
#releasePanel .cm-dev-text{display:flex;flex-direction:column;flex:1;min-width:0}
#releasePanel .cm-dev-text strong{display:flex;align-items:center;gap:6px;font-size:12px;color:#ECE6D6;white-space:nowrap}
#releasePanel .cm-dev-pips{display:inline-flex;gap:2px}
#releasePanel .cm-dev-pips i{display:block;width:6px;height:6px;border-radius:50%;border:1px solid #F0C060;box-sizing:border-box}
#releasePanel .cm-dev-pips i.on{background:#F0C060}
#releasePanel .cm-dev-text small{font-size:11px;color:#C9D2D8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
html body #releasePanel .story-map185.conquest20261116 button.cm-dev-btn{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:0 0 auto;width:auto;min-width:98px;min-height:38px;margin:0;padding:4px 9px;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
#releasePanel .cm-dev-btn .reward-icon254{width:14px;height:14px;flex:0 0 14px}

@media (max-height:500px),(max-width:900px){
 #releasePanel .story-map185.conquest20261116 .conquest-layout20261116{gap:4px}
 #releasePanel .story-map185.conquest20261116 .conquest-layout20261116[data-sheet=open]{grid-template-columns:minmax(0,1fr) 260px}
 #releasePanel .cm-sheet20261116{padding:8px;gap:6px}
 #releasePanel .cm-sheet-title h3{font-size:15px}
 #releasePanel .cm-income{padding:6px 8px}
 #releasePanel .cm-income strong{font-size:17px}
}
@media (max-width:560px) and (orientation:portrait){
 #releasePanel .story-map185.conquest20261116 .conquest-layout20261116[data-sheet=open]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,46%)}
}

/* lobby: red dot on the story sign while an invasion is active (corner; nothing moves) */
#releaseLobby .story-entry068>.cm-alert20261116{position:absolute;top:-4px;right:-4px;z-index:3;box-sizing:border-box;width:12px;height:12px;border-radius:50%;background:#D55E00;border:2px solid #FFE1CC;box-shadow:0 1px 0 #3a1400;pointer-events:none;animation:cm-soft20261116 2s ease-in-out infinite}
#releaseLobby .story-entry068>.cm-alert20261116[hidden]{display:none}

@keyframes cm-breathe20261116{0%,100%{stroke-opacity:1}50%{stroke-opacity:.35}}
@keyframes cm-soft20261116{0%,100%{opacity:1}50%{opacity:.5}}
@keyframes cm-flash20261116{0%{stroke:#FFF6D0;stroke-opacity:1}35%{stroke-opacity:.35}70%{stroke-opacity:1}100%{stroke:#F0C060}}
@keyframes cm-fade20261116{from{fill-opacity:0}}
@keyframes cm-flag20261116{from{transform:translateY(-9px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){
 #releasePanel .cm-region .cm-line,#releasePanel .cm-label .cm-i-alert,#releasePanel .cm-label .cm-flag-drop,#releaseLobby .cm-alert20261116{animation:none!important}
}
