
/* events */
.modal.event-modal { width: min(880px, 100%); }
.event-scene { position: relative; aspect-ratio: 1600 / 700; width: calc(100% + 48px); margin: -28px -24px 14px; background: var(--paper) center / cover no-repeat; border-bottom: 3px solid var(--ink); border-radius: 18px 18px 0 0; }
.event-scene h1 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 40px 16px 12px; background: linear-gradient(180deg, transparent, rgba(30,27,22,.88)); font-size: clamp(24px, calc(3.4 * var(--hvw)), 36px) !important; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.event-modal .choices { flex-direction: row; flex-wrap: nowrap; max-width: 760px; gap: 14px; justify-content: center; }
.event-modal .choice.pictured { flex: 1 1 0; min-width: 0; max-width: 360px; padding: 0 0 12px; overflow: hidden; align-items: stretch; text-align: center; }
.event-modal .choice.pictured:hover:not(:disabled) { transform: translateY(-4px); }
.choice-pic { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 70%; border-bottom: 2px solid var(--ink); margin-bottom: 10px; }
.event-modal .choice.pictured b, .event-modal .choice.pictured span { padding: 0 12px; }
.event-modal .result-box { max-width: 640px; }
@media (max-width: 600px) { .event-scene { width: calc(100% + 32px); margin: -20px -16px 12px; } .event-modal .choices { gap: 8px; } .event-modal .choice.pictured b { font-size: 14px; } .event-modal .choice.pictured span { font-size: 11.5px; } .event-modal .choice.pictured b, .event-modal .choice.pictured span { padding: 0 6px; } .choice-pic { aspect-ratio: 4 / 3; } }
/* emoji swapped for woodcut icons */
img.wi { width: 1.25em; height: 1.25em; vertical-align: -0.28em; display: inline-block; margin: 0 .04em; }
.intent img.wi { width: 1.5em; height: 1.5em; vertical-align: -0.4em; }
.floater img.wi { width: 1.1em; height: 1.1em; }
img.wi.wi-fig { width: auto; height: 1.6em; vertical-align: -0.45em; filter: drop-shadow(0 0 1px var(--paper)) drop-shadow(0 0 1px var(--paper)); }
.big-icon img.wi.wi-fig { height: 1.2em; }
@media (max-width: 860px) { .stage .portrait-wrap { width: 170px !important; height: 190px !important; } }
.brand img.wi { width: 1.6em; height: 1.6em; vertical-align: -0.45em; }
.big-icon img.wi, .event-art img.wi, .option-card .ico img.wi { width: 1em; height: 1em; vertical-align: 0; }
.map .road {
  fill: none; stroke-width: 2.4; stroke-dasharray: 2 7; stroke-linecap: round; transition: opacity .2s, stroke .15s; stroke: #6b7aa6 !important;
}
.map .road.open { stroke-width: 3; stroke-dasharray: 6 6; stroke: var(--royal) !important; }
.map .road.traveled { stroke: var(--claw) !important; stroke-dasharray: 7 5 !important; stroke-width: 4 !important; }
.modal.map-modal { width: min(1100px, 100%) !important; min-width: 0; max-width: 100%; }
.overlay > .modal { min-width: 0; }
.quest-line { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 10px; }
.quest-line .q {
  font-size: 13px; padding: 4px 10px; background: var(--paper) !important; color: var(--ink) !important; border: 1px solid var(--paper-edge) !important;
  border-radius: 0 !important;
}
.quest-line .q.done { color: #a6f4c5; border-color: var(--moss) !important; }
/* quest board */
.quest-choice { flex: 1 1 0; min-width: 0; max-width: 340px; align-items: center !important; text-align: center; padding: 16px 14px !important; gap: 6px; }
.quest-choice .q-ico { font-size: 40px; line-height: 1; }
.quest-choice .q-ico img.wi { width: 1.2em; height: 1.2em; }
.quest-choice em { font-style: normal; font-weight: 700; color: var(--gold-2); font-size: 13px; }
.doll { position: relative; width: 210px; height: 280px; flex: 0 0 210px; border-radius: 12px; background: radial-gradient(ellipse at 50% 80%, var(--paper) 0%, #9ea5c3 60%, #7a85ae 100%); border: 2px solid var(--ink); overflow: hidden; }
.doll .sprite { position: absolute; left: 4%; right: 4%; top: 4%; bottom: 3%; }
/* map bubbles, road tags, scouting */
.map-node .bubble {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); z-index: 30; pointer-events: none;
  display: flex; gap: 8px; align-items: center; width: max-content; max-width: 260px; padding: 8px 12px; text-align: left; opacity: 0;
  transition: opacity .12s, transform .12s; font-family: var(--font-body); background: var(--ivory) !important; color: var(--ink) !important;
  border: 1px solid var(--royal) !important; border-radius: 0 !important; box-shadow: 0 6px 14px var(--night-35) !important;
}
.road-tag .bubble {
  position: absolute; bottom: calc(100% + 10px); z-index: 30; pointer-events: none; display: flex; gap: 8px; align-items: center; width: max-content;
  max-width: 260px; padding: 8px 12px; text-align: left; opacity: 0; transition: opacity .12s, transform .12s; font-family: var(--font-body); left: 0;
  transform: translateY(-4px) !important; background: var(--ivory) !important; color: var(--ink) !important; border: 1px solid var(--royal) !important;
  border-radius: 0 !important; box-shadow: 0 6px 14px var(--night-35) !important;
}
.road-tag .bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--ink); }
.map-node .bubble::after {
  content: ""; position: absolute; top: 100%; transform: translateX(-50%); border: 7px solid transparent; left: calc(50% - var(--bx, 0px));
  border-top-color: var(--royal) !important;
}
.map-node .bubble.below, .road-tag .bubble.below { bottom: auto; top: calc(100% + 10px); transform: translateX(-50%) translateY(-4px); }
.road-tag .bubble.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }
.map-node .bubble.below::after {
  top: auto; bottom: 100%; border-top-color: transparent !important; border-bottom-color: var(--royal) !important;
}
.map-node:hover .bubble, .map-node:focus-visible .bubble { opacity: 1; transform: translateX(-50%) translateY(0); }
.road-tag:hover .bubble { opacity: 1; transform: translateY(0) !important; }
.map-node:hover, .map-node:focus-visible { z-index: 25; }
.bub-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bub-txt small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--claw); font-weight: 700; }
.bub-txt b { font-family: var(--font-display); font-size: 19px; line-height: 1.2; color: var(--ink); }
.bub-txt i { font-style: normal; font-size: 11.5px; line-height: 1.35; color: #3a4c8c; }
img.bub-fig { height: 54px; width: auto; flex: 0 0 auto; filter: drop-shadow(0 0 1px var(--paper)); }
.map-node.has-seal .bubble img.bub-fig { width: auto !important; height: 54px !important; }
.map[data-tip]:hover::after, .map-node[data-tip]:hover::after { display: none; }
.road-tag {
  position: absolute; left: 10px; transform: translateY(-50%); width: 122px; z-index: 5; cursor: help;
}
.road-tag:hover, .road-tag:focus-within { z-index: 30; }   /* the hovered road's description sits above the other road names and the map stops */
.road-tag > b { display: block; padding: 5px 8px 5px 10px; font: 700 12px/1.2 var(--font-display); color: var(--paper); background: var(--ink); clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%); }
.road-tag .bubble::after { left: 30px; }
.map.scouting .road:not(.lit):not(.traveled) { opacity: .25; }
.map .road.lit {
  stroke-width: 3.2; stroke-dasharray: 7 5; stroke: var(--claw) !important; opacity: .75 !important;
}
/* gangs: every foe stands in its own slot at true size */
#enemyPanel { position: relative; }
.arena.stage.gang #enemyPanel .portrait-wrap, .arena.stage.gang #enemyPanel .plate, .arena.stage.gang #enemyIntent, .arena.stage.gang #enemyPanel .role { visibility: hidden; }
.pack .mini-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 2px; }
.pack .mini-status:empty { display: none; }
.pack .ms { font: 700 10px/1 var(--font-body); color: var(--ivory); background: var(--shade-35); border-radius: 6px; padding: 2px 4px; pointer-events: auto; cursor: help; }
.pack .ms img.wi { width: 1.15em; height: 1.15em; vertical-align: -0.28em; }
.pack .mi { pointer-events: auto; cursor: help; display: inline-block; font: 700 17px/1 var(--font-body); padding: 7px 12px; border-radius: 999px; background: #3a1d22; border: 1px solid #ff7b6e; color: #ffd0c9; white-space: nowrap; }
.pack { position: absolute; right: 0; bottom: 14px; display: flex; gap: 12px; align-items: flex-end; z-index: 2; pointer-events: none; }
.pack .mini { position: relative; flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; display: block; pointer-events: auto; }
.pack .mini .sprite { position: absolute !important; top: auto !important; right: auto !important; bottom: 0 !important; display: block; pointer-events: none; }
.pack .mini-ring { position: absolute; left: 6%; right: 6%; bottom: -6px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, var(--shade-45), transparent 70%); }
.pack .mini.target .mini-ring { background: radial-gradient(ellipse, rgba(200,40,30,.55), transparent 70%) !important; box-shadow: 0 0 0 3px rgba(214,48,36,.95) !important; }
.pack .mini.target .sprite canvas { filter: drop-shadow(0 0 2px #d63024) drop-shadow(0 0 8px rgba(214,48,36,.75)) !important; }
.pack .mini-top { position: absolute; left: 50%; transform: translateX(-50%); width: max(100%, 104px); display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 3; pointer-events: none; }
.pack .mini-plate {
  width: 100%; max-width: 150px; padding: 3px 6px 4px; text-align: center; position: relative; backdrop-filter: none !important;
  background: var(--ivory) !important; background-image: none !important; border: 2px solid var(--ink) !important; border-radius: 0 !important;
  border-color: var(--royal) !important; box-shadow: 3px 3px 0 rgba(36, 52, 107, .3) !important;
}
.pack .mini.target .mini-plate { border-color: #d63024 !important; box-shadow: 0 0 0 3px var(--claw) !important; }
.pack .mini.target .mini-plate::before {
  content: "▼"; position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font-size: 12px; color: var(--claw) !important;
  text-shadow: none !important;
}
.pack .mini-plate b { display: block; font: 700 12px/1.25 var(--font-display); color: var(--gold-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack .mini-hp {
  position: relative; height: 15px; margin-top: 3px; overflow: hidden; background: #3a342b !important; border: 0 !important;
  border-radius: 0 !important; box-shadow: none !important;
}
.pack .mini-hp i {
  position: absolute; inset: 0 auto 0 0; border-radius: 0 !important; background: var(--claw) !important;
  background-image: repeating-linear-gradient(-55deg, var(--ink-35) 0 2px, transparent 2px 6px), linear-gradient(180deg, #b8352b, var(--claw-dark)) !important;
  border-right: 2px solid var(--ink);
}
.pack .mini-hp span {
  position: relative; display: block; font: 700 10.5px/15px var(--font-body); color: var(--ivory) !important;
  text-shadow: 1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink); font-family: var(--font-display) !important;
}
.pack .mini-intent { min-height: 32px; }
.pack .mi.def { background: #1d2b38; border-color: #8cc4ff; color: #dbe8ff; }
.pack .mi.buf { background: #17224c; border-color: #ddc485; color: #e9dbbc; }
.pack .mi img.wi { width: 1.25em; height: 1.25em; vertical-align: -0.32em; }
.pack .mini:hover:not(:disabled):not(.target) .mini-plate { border-color: rgba(214,48,36,.7) !important; }
.pack .mini:hover:not(:disabled):not(.target) .sprite canvas { filter: drop-shadow(0 0 4px rgba(214,48,36,.6)) !important; }
.pack .mini:disabled { cursor: default; }
.pack .mini.down .mini-top, .pack .mini.down .mini-ring { opacity: 0; transition: opacity .4s; }
/* a big foe's raised blade (or horns, wings) reaching into its plate: the plate and intent turn see-through, solid again on hover */
#enemyPanel .over-figure { opacity: .55; transition: opacity .2s; }
#enemyPanel .over-figure:hover { opacity: 1; }
.pack .mini-fx { position: absolute; left: 50%; z-index: 4; }
.pack .mini-fx .floater { position: absolute; left: -24px; white-space: nowrap; }
@media (max-width: 860px) {
  .pack { gap: 3px; right: 2px; bottom: 10px; }
  .pack .mini-top { width: max(100%, 50px); }
  .pack .mini-plate b { letter-spacing: -.02em; }
  .pack .mini-plate { padding: 2px 3px; }
  .pack .mini-plate b { font-size: 8.5px; }
  .pack .mini-hp { height: 12px; } .pack .mini-hp span { font-size: 9px; line-height: 12px; }
  .pack .mi { font-size: 12px; padding: 3px 7px; }
}
.map-scroll.dragging { cursor: grabbing; user-select: none; }
.map-scroll.dragging .map-node { pointer-events: none; }
#enemyPanel.has-pack .role::after { content: " · target"; }
@media (max-width: 860px) { .arena.stage.gang { grid-template-columns: .7fr 1.3fr; } }

/* gang bubble */
.bub-figs { display: flex; align-items: flex-end; gap: 0; }
.map-node.has-seal .bubble .bub-figs img.bub-fig.sm, .map-node .bubble .bub-figs img.bub-fig.sm { height: 40px !important; width: auto !important; max-width: 70px; object-fit: contain; margin-left: -8px; }
.bub-figs img.bub-fig.sm:first-child { margin-left: 0; }
/* oath */
.oath-row .oath-choice { max-width: 240px; }
.quest-line .q.oath { border-color: #a8832c; background: #151c38; }
.doll.trying { box-shadow: 0 0 0 2px var(--gold-2), 0 0 18px rgba(233,198,106,.35); }
/* legendary cards dim like any other card you can't afford */
.card.r-legendary.unplayable { animation: none; box-shadow: 0 8px 18px var(--shade-50), 0 0 0 1px rgba(224,168,255,0.22); }
/* boss variant chip on the map header */
.map-head .bv {
  display: inline-block; margin-left: 4px; padding: 1px 8px; font-size: 12px; font-weight: 700; cursor: help; background: var(--ivory) !important;
  color: var(--claw-dark) !important; border: 1px solid var(--claw) !important; border-radius: 0 !important;
}
/* road beds: each road is paved in its own way */
.map svg.roadbeds { position: absolute; left: 0; top: 0; pointer-events: none; }
.map .rb2 {
  fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; opacity: .3 !important;
}
.map .rb {
  fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 26; opacity: .14 !important;
}
.map .rb-kings { stroke: #c29a35; opacity: .3; } .map .rb2-kings { stroke: #24398e; stroke-width: 14; stroke-dasharray: 10 4; opacity: .28; }
.map .rb-blood { stroke: var(--claw); opacity: .26; } .map .rb2-blood { stroke: var(--claw); stroke-width: 7; stroke-dasharray: 1 18; opacity: .7; }
.map .rb-pilgrim { stroke: #efe5cf; opacity: .7; } .map .rb2-pilgrim { stroke: #7580ab; stroke-width: 3; stroke-dasharray: 2 9; }
.map .rb-smuggler { stroke: #303e74; opacity: .2; } .map .rb2-smuggler { stroke: #1e274c; stroke-width: 2; stroke-dasharray: 12 10; }
.map .rb-hunter { stroke: #3b456e; opacity: .26; } .map .rb2-hunter { stroke: #253160; stroke-width: 5; stroke-dasharray: 3 12; opacity: .5; }
.map .rb-ruin { stroke: #8c8a80; opacity: .34; } .map .rb2-ruin { stroke: #5a5850; stroke-width: 12; stroke-dasharray: 18 9 6 12; opacity: .3; }
.map .rb-witch { stroke: #5a3a5a; opacity: .2; } .map .rb2-witch { stroke: #7ab05a; stroke-width: 4; stroke-dasharray: 1 14; opacity: .6; }
.map .rb-merc { stroke: #526098; opacity: .28; } .map .rb2-merc { stroke: #1e3077; stroke-width: 2.4; stroke-dasharray: 16 6; }
.map .rb-mine { stroke: #333d63; opacity: .24; } .map .rb2-mine { stroke: #1e243a; stroke-width: 12; stroke-dasharray: 2 6; opacity: .45; }
.map .rb-ferry { stroke: #5d7a86; opacity: .3; } .map .rb2-ferry { stroke: #2f4a56; stroke-width: 2; stroke-dasharray: 8 6; }
.map .road-motif { position: absolute; width: 58px; height: 44px; transform: translate(-50%, -50%); pointer-events: none; opacity: .92; z-index: 1; }
