.class-card .class-portrait { background: radial-gradient(ellipse at 50% 85%, rgba(227,213,179,0.22), transparent 70%) !important; }
/* 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: #e3d5b3 center / cover no-repeat; border-bottom: 3px solid #17110c; 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(23,17,12,.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 #17110c; margin-bottom: 10px; }
.event-modal .choice.pictured b, .event-modal .choice.pictured span { padding: 0 12px; }
.event-modal .result-box, .event-modal .event-text { 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 #e3d5b3) drop-shadow(0 0 1px #e3d5b3); }
.big-icon img.wi.wi-fig { height: 1.2em; }
.stage .portrait-wrap { width: 300px !important; height: 300px !important; }
@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; }
/* horizontal roads */
.map-scroll { overflow-x: auto !important; padding: 0 !important; }
.map { max-width: none !important; }
.map .road { fill: none; stroke: #6b5a44; stroke-width: 2.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.map .road.open { stroke: #17110c; stroke-width: 3; stroke-dasharray: 6 6; }
.map .road.traveled { stroke: #8a2a1f; stroke-width: 4.4; stroke-dasharray: none; }
.map-node { width: 50px !important; height: 50px !important; }
.map-node.boss { width: 86px !important; height: 86px !important; }
.modal.map-modal { width: min(1100px, 100%) !important; min-width: 0; max-width: 100%; }
.overlay > .modal { min-width: 0; }
.map-scroll { width: 100%; max-width: 100%; }
.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; border-radius: 999px; background: #2d241c; border: 1px solid var(--gold); color: var(--gold-2); }
.quest-line .q.done { border-color: #4f9a62; color: #a6f4c5; }
/* 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; }
/* paper doll */
.loot-wrap { display: flex; gap: 18px; align-items: center; justify-content: center; }
.loot-wrap > div:last-child { min-width: 0; flex: 1; }
.doll { position: relative; width: 210px; height: 280px; flex: 0 0 210px; border-radius: 12px; background: radial-gradient(ellipse at 50% 80%, #e3d5b3 0%, #cdbb94 60%, #b49e74 100%); border: 2px solid #17110c; overflow: hidden; }
.doll .sprite { position: absolute; left: 4%; right: 4%; top: 4%; bottom: 3%; }
.doll-gear { margin: 0 auto 14px; }
@media (max-width: 700px) { .loot-wrap { flex-direction: column; } }
/* map bubbles, road tags, scouting */
.map-node .bubble, .road-tag .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; border-radius: 10px;
  background: #e3d5b3; color: #17110c; border: 2px solid #17110c; box-shadow: 3px 3px 0 rgba(23,17,12,.35); text-align: left;
  opacity: 0; transition: opacity .12s, transform .12s; font-family: var(--font-body); }
.map-node .bubble::after, .road-tag .bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #17110c; }
.map-node .bubble::after { left: calc(50% - var(--bx, 0px)); }
.map-node .bubble.below, .road-tag .bubble.below { bottom: auto; top: calc(100% + 10px); transform: translateX(-50%) translateY(-4px); }
.map-node .bubble.below::after, .road-tag .bubble.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #17110c; }
.map-node:hover .bubble, .map-node:focus-visible .bubble, .road-tag:hover .bubble { opacity: 1; transform: translateX(-50%) translateY(0); }
.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: #8a2a1f; font-weight: 700; }
.bub-txt b { font-family: var(--font-display); font-size: 19px; line-height: 1.2; color: #17110c; }
.bub-txt i { font-style: normal; font-size: 11.5px; line-height: 1.35; color: #4a3c2c; }
img.bub-fig { height: 54px; width: auto; flex: 0 0 auto; filter: drop-shadow(0 0 1px #e3d5b3); }
.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; }
.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: #e3d5b3; background: #17110c; clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%); }
.road-tag .bubble { left: 0; transform: translateY(-4px) !important; }
.road-tag:hover .bubble { transform: translateY(0) !important; }
.road-tag .bubble::after { left: 30px; }

.map.scouting .road:not(.lit):not(.traveled) { opacity: .25; }
.map .road.lit { stroke: #b07a24; stroke-width: 3.2; stroke-dasharray: 7 5; opacity: 1; }
.map-scroll { overflow-y: hidden !important; }
.map { margin: 0 !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: #f3e6c4; background: rgba(0,0,0,.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; }
.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; }
.pack .mini-ring { position: absolute; left: 6%; right: 6%; bottom: -6px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%); }

.pack .mini-top { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 3; pointer-events: none; }
.pack .mini-plate { width: 100%; text-align: center; }

.pack .mini.target .mini-plate::before { content: "▼"; position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font-size: 12px; text-shadow: 0 1px 2px #000; }
.pack .mini-plate { position: relative; }
.pack .mini-plate b { display: block; font: 700 12px/1.25 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack .mini-hp { position: relative; margin-top: 3px; }
.pack .mini-hp i { position: absolute; inset: 0 auto 0 0; }
.pack .mini-hp span { position: relative; display: block; font: 700 10.5px/15px var(--font-body); }
.pack .mini-intent { min-height: 32px; }
.pack .mi { 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 .mi.def { background: #1d2b38; border-color: #8cc4ff; color: #dbe8ff; }
.pack .mi.buf { background: #3a2e1a; border-color: #e8c27a; color: #ffe7a6; }
.pack .mi img.wi { width: 1.25em; height: 1.25em; vertical-align: -0.32em; }

.pack .mini:disabled { cursor: default; }
.pack .mini.down .mini-top, .pack .mini.down .mini-ring { opacity: 0; transition: opacity .4s; }
.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 { padding: 2px 3px; }
  .pack .mini-plate b { font-size: 8.5px; letter-spacing: -.02em; }
  .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 { cursor: grab; }
.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: #b07a24; background: #2a2016; }
/* armour preview */
.gear-preview { position: fixed; z-index: 400; width: 200px; padding: 10px 10px 12px; border-radius: 12px; background: #e3d5b3; border: 2px solid #17110c; box-shadow: 4px 4px 0 rgba(23,17,12,.4);
  text-align: center; pointer-events: none; opacity: 0; transform: scale(.96); transition: opacity .12s, transform .12s; }
.gear-preview.show { opacity: 1; transform: none; }
.gear-preview .gp-doll { position: relative; height: 220px; border-radius: 8px; background: radial-gradient(ellipse at 50% 80%, #efe4c8, #cdbb94 75%); overflow: hidden; }
.gear-preview .gp-doll .sprite { position: absolute; left: 4%; right: 4%; top: 4%; bottom: 3%; }
.gear-preview b { display: block; margin-top: 6px; font: 700 15px/1.2 var(--font-display); color: #17110c; }
.gear-preview small { display: block; font-size: 11.5px; color: #4a3c2c; }
@media (hover: none) { .gear-preview { display: none; } }
.doll .try-cap { position: absolute; left: 6px; padding: 5px 6px; border-radius: 8px; background: rgba(23,17,12,.82); opacity: 0; pointer-events: none; z-index: 3; }
.doll.trying .try-cap { opacity: 1; }
.doll .try-cap b { display: block; font: 700 13px/1.2 var(--font-display); color: var(--gold-2); }
.doll .try-cap small { display: block; font-size: 11px; color: #e3d5b3; }
.doll.trying { box-shadow: 0 0 0 2px var(--gold-2), 0 0 18px rgba(243,213,140,.35); }
/* legendary cards dim like any other card you can't afford */
.card.r-legendary.unplayable { animation: none; box-shadow: 0 8px 18px rgba(0,0,0,0.5), 0 0 0 1px rgba(224,168,255,0.22); }
.card.r-legendary.unplayable.draw-in { animation: drawIn .32s ease-out backwards; }   /* still slides in when dealt, then rests dim without the glow */
/* warden variant chip on the map header */
.map-head .bv { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #3a1d22; border: 1px solid #ff7b6e; color: #ffd0c9; font-size: 12px; font-weight: 700; cursor: help; }
/* road beds: each road is paved in its own way */
.map svg.roadbeds { position: absolute; left: 0; top: 0; pointer-events: none; }
.map .rb, .map .rb2 { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .rb { stroke-width: 26; opacity: .32; }
.map .rb2 { stroke-width: 2; opacity: .55; }
.map .rb-kings { stroke: #c9962e; opacity: .3; } .map .rb2-kings { stroke: #7a5a20; stroke-width: 14; stroke-dasharray: 10 4; opacity: .28; }
.map .rb-blood { stroke: #8a2a1f; opacity: .26; } .map .rb2-blood { stroke: #8a2a1f; stroke-width: 7; stroke-dasharray: 1 18; opacity: .7; }
.map .rb-pilgrim { stroke: #f2e8cc; opacity: .7; } .map .rb2-pilgrim { stroke: #a89878; stroke-width: 3; stroke-dasharray: 2 9; }
.map .rb-smuggler { stroke: #5a4634; opacity: .2; } .map .rb2-smuggler { stroke: #3a2c20; stroke-width: 2; stroke-dasharray: 12 10; }
.map .rb-hunter { stroke: #6f6a3a; opacity: .26; } .map .rb2-hunter { stroke: #4a4628; 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: #a07c4a; opacity: .28; } .map .rb2-merc { stroke: #5e4422; stroke-width: 2.4; stroke-dasharray: 16 6; }
.map .rb-mine { stroke: #4a4038; opacity: .24; } .map .rb2-mine { stroke: #2a2420; 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; }
