/* GANGS – Copenhagen 1857 */

@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 900; font-display: swap; src: url('../fonts/playfair-display-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-display: swap; src: url('../fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-display: swap; src: url('../fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-display: swap; src: url('../fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

:root {
  --soot: #120d0a;
  --soot-2: #1c1511;
  --soot-3: #2a201a;
  --oak: #5a3a22;
  --oak-light: #8a5e3a;
  --parchment: #e9dcc0;
  --parchment-dim: #b9ab8e;
  --slate: #4e6a82;
  --slate-light: #8aa6bd;
  --blood: #9e1b14;
  --blood-bright: #d12a1e;
  --brass: #c9a227;
  --brass-light: #f0c64a;
  --move: #3b82d6;
  --head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tap: 44px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--soot); color: var(--parchment); font-family: var(--body); font-size: 16px; overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); margin: 0; }

#app { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; display: none; }
.screen.active { display: block; }

/* ---------- buttons ---------- */
.btn {
  min-height: var(--tap); padding: 10px 18px; border-radius: 10px;
  border: 1px solid rgba(233, 220, 192, 0.25); background: var(--soot-3);
  font-weight: 600; letter-spacing: 0.02em;
}
.btn.primary { background: linear-gradient(#b8231a, var(--blood)); border-color: #e0483a; box-shadow: 0 4px 0 #5e0f0b, 0 6px 18px rgba(0, 0, 0, 0.5); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #5e0f0b; }
.btn.big { min-height: 56px; font-size: 1.15rem; padding: 12px 28px; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: var(--blood-bright); color: #f0a49c; }

/* ---------- title ---------- */
#screen-title {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 162, 39, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(158, 27, 20, 0.35), transparent 60%),
    linear-gradient(#0d0a08, #1a1310);
}
.title-card { max-width: 440px; margin: 0 auto; height: 100%; padding: calc(40px + var(--safe-top)) 28px calc(28px + var(--safe-bottom)); display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
.kicker { font-family: var(--head); letter-spacing: 0.35em; text-transform: uppercase; color: var(--brass); margin: 0; font-size: 0.85rem; }
.logo { font-size: clamp(4rem, 22vw, 6.5rem); font-weight: 900; letter-spacing: 0.06em; line-height: 0.95; color: var(--parchment); text-shadow: 0 3px 0 var(--blood), 0 0 40px rgba(209, 42, 30, 0.35); }
.tagline { font-family: var(--head); font-size: 1.2rem; margin: 0; color: var(--parchment); }
.intro { color: var(--parchment-dim); line-height: 1.5; margin: 6px 0 12px; }
.intro em { color: var(--brass-light); font-style: normal; }
.small { color: var(--parchment-dim); font-size: 0.85rem; opacity: 0.8; }

/* ---------- battle ---------- */
.stage { position: absolute; inset: 0; }
#battle-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#float-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hud-top {
  position: absolute; top: 0; left: 0; right: 0; padding: calc(6px + var(--safe-top)) 8px 6px;
  background: linear-gradient(rgba(12, 9, 7, 0.95) 70%, rgba(12, 9, 7, 0));
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.turn-bar { display: flex; align-items: center; gap: 6px; }
.round { font-family: var(--head); font-weight: 700; color: var(--brass); font-size: 0.95rem; white-space: nowrap; }
.turn { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turn.enemy { color: var(--slate-light); }
.chip { min-width: var(--tap); min-height: var(--tap); padding: 0 10px; font-size: 0.85rem; white-space: nowrap; border-radius: 22px; background: var(--soot-3); border: 1px solid rgba(233, 220, 192, 0.2); font-weight: 700; }
.chip.on { background: var(--brass); color: var(--soot); border-color: var(--brass-light); }
.chip.icon { font-size: 1.2rem; }
.chip.icon .icon { width: 20px; height: 20px; vertical-align: middle; }
#btn-dice.off { opacity: 0.55; position: relative; }
#btn-dice.off::after { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; background: currentColor; transform: rotate(-45deg); }

.portrait-strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 2px; scrollbar-width: none; }
.portrait-strip::-webkit-scrollbar { display: none; }
.pcard {
  position: relative; flex: 0 0 auto; width: 62px; min-height: 80px; padding: 3px 3px 4px; border-radius: 10px;
  background: var(--soot-2); border: 2px solid rgba(233, 220, 192, 0.15);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.pcard img { width: 44px; height: 44px; border-radius: 8px; display: block; }
.pname { font-size: 0.72rem; font-weight: 700; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pips { display: flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); border: 1px solid #000; }
.pips i.on { background: var(--blood-bright); }
.pcard.active { border-color: var(--brass-light); box-shadow: 0 0 12px rgba(240, 198, 74, 0.6); }
.pcard.acted { opacity: 0.5; }
.pcard.alone { border-style: dashed; border-color: var(--slate-light); }
.pcard .alone-tag { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 4px; border-radius: 4px; background: var(--slate); }
.uc-cmd { font-size: 0.7rem; color: var(--brass-light); margin-top: 1px; }
.pcard.down { opacity: 0.4; filter: grayscale(1); }
.pcard .badge { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brass); color: var(--soot); font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; }
.pcard .badge.down { background: var(--blood); color: var(--parchment); }

.enemy-strip { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--slate-light); padding-top: 2px; }
.enemy-strip span { margin-right: 4px; font-weight: 700; }
.enemy-strip i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-light); }
.enemy-strip i.down { background: transparent; border: 1px solid var(--slate); }

.hud-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px calc(8px + var(--safe-bottom));
  background: linear-gradient(rgba(12, 9, 7, 0), rgba(12, 9, 7, 0.94) 22%);
  pointer-events: none;
}
.hud-bottom > * { pointer-events: auto; }
.hint { margin: 0 0 6px; text-align: center; font-size: 0.85rem; color: var(--brass-light); min-height: 1.2em; text-shadow: 0 1px 3px #000; pointer-events: none; }

.unit-card { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(28, 21, 17, 0.9); border: 1px solid rgba(201, 162, 39, 0.35); min-height: 58px; }
.unit-card.enemy { border-color: rgba(138, 166, 189, 0.4); }
.unit-card:empty { display: none; }
.unit-card img { width: 46px; height: 46px; border-radius: 8px; flex: 0 0 auto; }
.uc-main { min-width: 0; flex: 1; }
.uc-name { font-family: var(--head); font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-name b { font-family: var(--body); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 1px 5px; border-radius: 4px; vertical-align: 2px; }
.uc-name .boss { background: var(--brass); color: var(--soot); }
.uc-name .rival { background: var(--slate); }
.uc-sub { font-size: 0.75rem; color: var(--parchment-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-stats { display: flex; gap: 8px; margin-top: 2px; font-weight: 700; font-size: 0.9rem; }
.uc-stats small { font-size: 0.6rem; color: var(--parchment-dim); margin-right: 2px; font-weight: 600; }
.uc-traits { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.uc-traits em { font-style: normal; font-size: 0.68rem; padding: 0 5px; border-radius: 4px; background: var(--oak); }

.combat-log { margin-top: 6px; height: 36px; overflow-y: auto; font-size: 0.75rem; color: var(--parchment-dim); padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); cursor: pointer; transition: height 0.2s; }
.combat-log.expanded { height: 140px; }
.combat-log p { margin: 0 0 2px; }
.combat-log p:last-child { color: var(--parchment); }

.action-bar { display: grid; grid-template-columns: 1fr 1.15fr 1fr 1fr 1.15fr; gap: 5px; margin-top: 6px; }
.act { min-height: 54px; min-width: 0; padding: 0 2px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; background: var(--soot-3); border: 2px solid rgba(233, 220, 192, 0.18); line-height: 1.1; }
.act.on { border-color: var(--move); background: #1d3550; }
.act.attack { background: linear-gradient(#b8231a, var(--blood)); border-color: #e0483a; }
.act.attack.on { box-shadow: 0 0 0 2px var(--brass-light); }
#btn-automove { border-color: rgba(201, 162, 39, 0.6); color: var(--brass-light); }
.act.end { background: var(--oak); border-color: var(--oak-light); }
.act.end.pulse { animation: pulse 1.2s infinite; }
.act:disabled { opacity: 0.35; filter: grayscale(0.7); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 198, 74, 0.7); } 50% { box-shadow: 0 0 0 6px rgba(240, 198, 74, 0); } }

/* banner + toasts */
.banner { position: absolute; left: 0; right: 0; top: 36%; text-align: center; pointer-events: none; opacity: 0; }
.banner h2 { font-size: 2rem; font-weight: 900; text-shadow: 0 3px 0 var(--blood), 0 0 20px #000; }
.banner p { margin: 4px 0 0; color: var(--brass-light); font-weight: 600; text-shadow: 0 1px 4px #000; }
.banner.show { animation: banner 2.2s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: scale(1.15); } 12% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.toast { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); padding: 8px 16px; border-radius: 20px; background: rgba(12, 9, 7, 0.9); border: 1px solid var(--brass); font-weight: 700; animation: toast 1.6s ease-out forwards; }
@keyframes toast { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* floating combat text */
.float-text { position: absolute; left: 0; top: 0; font-family: var(--head); font-weight: 900; font-size: 1.8rem; text-shadow: 0 2px 0 #000, 0 0 8px #000; white-space: nowrap; will-change: transform; }
.float-text.dmg { color: #ff4a3a; }
.float-text.saved { color: var(--slate-light); font-size: 1.3rem; }
.float-text.miss { color: var(--parchment-dim); font-size: 1.2rem; }
.float-text.down { color: var(--brass-light); font-size: 2.2rem; letter-spacing: 0.1em; }

/* dice */
.dice-tray { position: absolute; left: 50%; top: calc(178px + var(--safe-top)); transform: translateX(-50%) translateY(-10px); padding: 8px 12px; border-radius: 12px; background: rgba(12, 9, 7, 0.88); border: 1px solid rgba(201, 162, 39, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; min-width: 200px; }
.dice-tray.show { opacity: 1; transform: translateX(-50%); }
.dice-row { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dice-row + .dice-row { margin-top: 6px; }
.dice-row span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--parchment-dim); }
.dice { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.die { width: 34px; height: 34px; border-radius: 7px; background: var(--parchment); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 4px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.die i { width: 6px; height: 6px; margin: auto; border-radius: 50%; }
.die i.on { background: var(--soot); }
.die.rolling { animation: wobble 0.12s infinite alternate; }
.die.hidden { visibility: hidden; }
.die.hit { background: var(--brass-light); transform: scale(1.1); }
.die.crit { background: #ff7a5a; box-shadow: 0 0 10px #ff4a3a; }
.die.miss { opacity: 0.45; }
.saves .die { background: var(--slate-light); }
.saves .die.saved { background: #cfe1ef; transform: scale(1.1); }
.saves .die.fail { opacity: 0.45; }
.die.ghost { width: 26px; height: 26px; padding: 3px; background: var(--brass-light); }
.die.ghost i { width: 5px; height: 5px; }
@keyframes wobble { from { transform: rotate(-12deg) translateY(-2px); } to { transform: rotate(12deg) translateY(2px); } }

/* sheets */
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; padding: 18px 16px calc(16px + var(--safe-bottom)); background: var(--soot-2); border-top: 2px solid var(--brass); border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform 0.22s ease-out; }
.sheet.open { transform: translateY(0); }
.sheet h2 { font-size: 1.4rem; margin-bottom: 10px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 14px; }
#menu-sheet .sheet-actions { grid-template-columns: 1fr; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 8px; }
.vs-side img { width: 56px; height: 56px; border-radius: 10px; display: block; margin: 0 auto 4px; }
.vs-side b { display: block; font-family: var(--head); font-size: 0.95rem; }
.vs-side small { color: var(--parchment-dim); }
.vs-mid { font-family: var(--head); font-weight: 900; color: var(--blood-bright); font-size: 1.1rem; }
.preview-dice { display: flex; justify-content: center; gap: 6px; margin: 12px 0 8px; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview-grid div { background: var(--soot); border-radius: 10px; padding: 8px 10px; }
.preview-grid span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--parchment-dim); }
.preview-grid b { font-family: var(--head); font-size: 1.6rem; color: var(--brass-light); }
.preview-grid small { display: block; font-size: 0.72rem; color: var(--parchment-dim); }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid rgba(233, 220, 192, 0.1); font-weight: 600; }
.toggle input { width: 26px; height: 26px; accent-color: var(--brass); }
.lang-select { font: inherit; font-weight: 600; color: inherit; background: rgba(233, 220, 192, 0.08); border: 1px solid rgba(233, 220, 192, 0.25); border-radius: 8px; padding: 8px 10px; min-height: 40px; }
.lang-select option { color: #1a1410; }
.title-account { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.9rem; color: var(--parchment-dim); }
.title-account:empty { display: none; }
.google-btn { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 16px; border-radius: 8px; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-family: Roboto, Arial, sans-serif; font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.google-btn:hover, .google-btn:focus-visible { background: #f2f2f2; }
.account-error { color: var(--blood-bright); }
.title-lang { margin-top: 14px; display: flex; justify-content: center; }
.title-footer { margin-top: 4px; }
.linkbtn { background: none; border: 0; color: var(--parchment-dim); font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; min-height: var(--tap); padding: 0 12px; cursor: pointer; }
.linkbtn:hover, .linkbtn:focus-visible { color: var(--brass); }
.about { max-width: 440px; margin: 24px auto 0; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.about-modal { margin: 8px auto 16px; }
.about-modal .about-logo { font-size: 2.6rem; }
.about-logo { font-family: 'Playfair Display', serif; font-size: 3.5rem; }
.about-made { font-size: 1.15rem; }
.about-mail { color: var(--brass); font-size: 1.1rem; font-weight: 700; word-break: break-all; }
.about-idea { color: var(--parchment-dim); }

/* ---------- result ---------- */
#screen-result { overflow-y: auto; background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.15), transparent 60%), var(--soot); }
.result-card { max-width: 520px; margin: 0 auto; padding: calc(28px + var(--safe-top)) 18px calc(24px + var(--safe-bottom)); }
.result-card h1 { font-size: 3.4rem; font-weight: 900; text-align: center; }
.result-card.won h1 { color: var(--brass-light); text-shadow: 0 3px 0 #6a4a08; }
.result-card.lost h1 { color: var(--blood-bright); text-shadow: 0 3px 0 #3a0806; }
.result-sub { text-align: center; color: var(--parchment-dim); margin: 4px 0 18px; }
.loot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 18px; }
.loot div { background: var(--soot-2); border: 1px solid rgba(201, 162, 39, 0.35); border-radius: 12px; padding: 10px 12px; }
.loot span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--parchment-dim); }
.loot b { font-family: var(--head); font-size: 1.3rem; color: var(--brass-light); }
.loot small { display: block; color: var(--parchment-dim); font-size: 0.75rem; }
.result-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--parchment); }
.result-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.result-list li { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--soot-2); }
.result-list li.dead { opacity: 0.6; filter: grayscale(0.8); }
.result-list img { width: 48px; height: 48px; border-radius: 8px; }
.result-list b { display: block; font-family: var(--head); }
.result-list span { font-size: 0.85rem; color: var(--parchment-dim); }
.result-list .bad { color: #ff6a5a; display: inline; font-family: var(--body); }
.result-list .warn { color: #e8a54a; display: inline; font-family: var(--body); }
.result-list .good { color: #8fd18a; display: inline; font-family: var(--body); }
.result-list .gold { color: var(--brass-light); display: inline; font-family: var(--body); }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.result-actions .primary { grid-column: 1 / -1; min-height: 56px; }

/* reduced motion */
.reduced-motion .banner.show { animation-duration: 1.6s; }
.reduced-motion .act.end.pulse { animation: none; box-shadow: 0 0 0 2px var(--brass-light); }
.reduced-motion .die.rolling { animation: none; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop, .dice-tray { transition: none; } }

/* wider screens: keep the HUD phone-sized */
@media (min-width: 700px) {
  .hud-bottom, .hud-top { max-width: 560px; margin: 0 auto; }
  .hud-top { border-radius: 0 0 14px 14px; }
}

/* =====================================================================
   Campaign screens
   ===================================================================== */
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -4px; }
.kicker.threat, .threat { color: var(--blood-bright); }
.gold { color: var(--brass-light); }
#btn-continue[hidden] { display: none; }
.title-card .btn + .btn { margin-top: -2px; }

/* city select */
.page { max-width: 560px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; padding: calc(10px + var(--safe-top)) 12px 0; }
.page-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; }
.page-head h2 { font-size: 1.6rem; }
#screen-cities { background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.15), transparent 60%), var(--soot); }
.city-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: calc(20px + var(--safe-bottom)); }
.city-card { flex: 0 0 auto; display: flex; gap: 12px; text-align: left; padding: 14px; border-radius: 14px; background: var(--soot-2); border: 1px solid rgba(201, 162, 39, 0.35); min-height: 88px; }
.city-card:active { background: var(--soot-3); }
.cc-year { font-family: var(--head); font-weight: 900; font-size: 1.4rem; color: var(--brass-light); writing-mode: vertical-rl; transform: rotate(180deg); }
.cc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-main b { font-family: var(--head); font-size: 1.35rem; }
.cc-main small { color: var(--parchment-dim); }
.cc-main em { font-style: normal; color: var(--parchment); font-size: 0.9rem; }
.cc-gangs { font-size: 0.75rem; color: var(--slate-light); }

/* resource bar */
#screen-city { background: var(--soot); }
.res-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 4px; padding: calc(4px + var(--safe-top)) 6px 4px; background: rgba(12, 9, 7, 0.96); border-bottom: 1px solid rgba(201, 162, 39, 0.3); }
.res-date { display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; min-width: 0; }
.res-date b { font-family: var(--head); color: var(--brass-light); font-size: 0.95rem; }
.res-date span { font-size: 0.72rem; color: var(--parchment-dim); white-space: nowrap; }
.res { display: flex; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 8px; background: var(--soot-2); font-size: 0.9rem; }
.res .icon { width: 16px; height: 16px; color: var(--brass); }
.res.hot { background: #4a1410; }
.res.hot .icon { color: #ff7a5a; }
.res.low { background: #3e2a10; }
.control-bar { position: absolute; top: calc(48px + var(--safe-top)); left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 3px 10px 5px; background: rgba(12, 9, 7, 0.9); font-size: 0.72rem; color: var(--parchment-dim); }
.control-track { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--soot-3); overflow: visible; }
.control-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blood), var(--brass)); width: 0; transition: width 0.4s; }
.control-goal { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--brass-light); }

.tab { position: absolute; top: calc(72px + var(--safe-top)); left: 0; right: 0; bottom: calc(62px + var(--safe-bottom)); display: none; }
.tab.active { display: block; }
.page-scroll { overflow-y: auto; padding: 10px 10px 20px; }
.page-scroll > * { max-width: 600px; margin-left: auto; margin-right: auto; }

/* tab bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr; gap: 4px; padding: 4px 6px calc(4px + var(--safe-bottom)); background: rgba(12, 9, 7, 0.97); border-top: 1px solid rgba(201, 162, 39, 0.3); }
.tabbtn { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; background: transparent; border: 0; color: var(--parchment-dim); font-size: 0.78rem; font-weight: 600; }
.tabbtn.active { color: var(--brass-light); background: var(--soot-2); }
.tabbtn.endweek { background: var(--oak); color: var(--parchment); font-size: 1rem; font-weight: 700; border: 2px solid var(--oak-light); }
.tabbtn.endweek.alert { background: var(--blood); border-color: var(--blood-bright); animation: pulse 1.2s infinite; }

/* map */
.map-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: #d9cba8; cursor: grab; }
.map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; --ms: 1; --lw: 1; }
.map-world img { display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; filter: sepia(0.25) contrast(1.05); }
.map-links { position: absolute; left: 0; top: 0; pointer-events: none; }
.map-links line { stroke: rgba(40, 24, 12, 0.35); stroke-width: calc(2px * var(--lw)); stroke-dasharray: calc(6px * var(--lw)) calc(5px * var(--lw)); }
.map-links line.own { stroke: rgba(201, 162, 39, 0.75); stroke-dasharray: none; stroke-width: calc(3px * var(--lw)); }
.map-links line.front { stroke: rgba(209, 42, 30, 0.7); stroke-width: calc(2.5px * var(--lw)); }
.map-markers { position: absolute; left: 0; top: 0; }
.bm { position: absolute; width: 0; height: 0; padding: 0; border: 0; background: none; --c: #8a8378; }
.bm > * { pointer-events: none; }
.bm::before { content: ''; position: absolute; left: 0; top: 0; width: 64px; height: 64px; transform: translate(-50%, -50%) scale(var(--ms)); border-radius: 50%; pointer-events: auto; }
.bm-dot { position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #f4ead2; border: 3px solid rgba(20, 12, 6, 0.85); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55); transform: translate(-50%, -50%) scale(var(--ms)); }
.bm-dot .icon { width: 22px; height: 22px; }
.bm.mine .bm-dot { border-color: var(--brass-light); box-shadow: 0 0 0 3px rgba(20, 12, 6, 0.85), 0 0 14px rgba(240, 198, 74, 0.7); }
.bm.hot .bm-dot { animation: hotpulse 1.3s ease-in-out infinite; }
.bm.raid .bm-dot { animation: raidpulse 0.8s ease-in-out infinite; }
@keyframes hotpulse { 0%, 100% { box-shadow: 0 0 0 2px #d12a1e, 0 3px 8px rgba(0, 0, 0, 0.55); } 50% { box-shadow: 0 0 0 7px rgba(209, 42, 30, 0.85), 0 3px 8px rgba(0, 0, 0, 0.55); } }
@keyframes raidpulse { 0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 16px #d12a1e; } 50% { box-shadow: 0 0 0 8px #d12a1e, 0 0 26px #d12a1e; } }
.bm-count { position: absolute; left: 0; top: 0; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: #120d0a; color: var(--parchment); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; transform: translate(-50%, -50%) scale(var(--ms)) translate(18px, -18px); }
.bm-count:empty { display: none; }
.bm-label { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 13px; font-weight: 700; color: #1a120a; background: rgba(240, 228, 200, 0.92); padding: 1px 6px; border-radius: 4px; transform: translate(-50%, -50%) scale(var(--ms)) translateY(33px); display: none; }
.show-labels .bm-label { display: block; }
.reduced-motion .bm.hot .bm-dot, .reduced-motion .bm.raid .bm-dot { animation: none; box-shadow: 0 0 0 4px #d12a1e; }
.map-legend { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.lg { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 10px; background: rgba(12, 9, 7, 0.85); font-size: 0.7rem; color: var(--parchment); --c: #888; }
.lg i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.lg.out { opacity: 0.4; text-decoration: line-through; }
.map-credit { position: absolute; right: 6px; top: 4px; margin: 0; max-width: 60%; font-size: 0.55rem; color: rgba(30, 20, 10, 0.7); text-align: right; pointer-events: none; }

/* sheets + modals (campaign) */
.sheet.tall { max-height: 86%; overflow-y: auto; z-index: 20; }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: rgba(233, 220, 192, 0.25); margin: -8px auto 10px; }
#city-backdrop { z-index: 19; }
.sheet-actions.col { grid-template-columns: 1fr; }
.sheet-actions.sticky { position: sticky; bottom: calc(-16px - var(--safe-bottom)); background: var(--soot-2); padding: 10px 0 4px; margin-bottom: -4px; }
.modal { position: absolute; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.7); }
.modal.open { display: flex; }
.modal-card { width: 100%; max-width: 480px; max-height: 92%; overflow-y: auto; padding: 18px 16px; border-radius: 16px; background: var(--soot-2); border: 1px solid rgba(201, 162, 39, 0.5); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.modal-card h2 { font-size: 1.5rem; margin: 2px 0 10px; }
.modal-card p { color: var(--parchment-dim); line-height: 1.45; }
.modal-card p b { color: var(--parchment); }
.modal-card .btn.big { width: 100%; margin-top: 12px; }
.modal-card .kicker { letter-spacing: 0.2em; font-size: 0.75rem; }
.event { padding: 8px 10px; border-radius: 10px; background: var(--soot); margin: 6px 0; border-left: 3px solid var(--parchment-dim); }
.event b { display: block; font-family: var(--head); }
.event p { margin: 2px 0 0; font-size: 0.9rem; }
.event.history { border-left-color: var(--brass); background: #241c10; }
.event.history b { color: var(--brass-light); }
.event.bad { border-left-color: var(--blood-bright); }
.event.good { border-left-color: #8fd18a; }
.event.threat { border-left-color: var(--blood-bright); background: #2a1210; }
.event.threat b { color: #ff7a5a; }
.rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.rep-grid div { background: var(--soot); border-radius: 10px; padding: 8px; }
.rep-grid span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--parchment-dim); }
.rep-grid b { font-family: var(--head); font-size: 1.15rem; color: var(--brass-light); }
.rep-grid small { display: block; font-size: 0.72rem; color: var(--parchment-dim); }
.empty { color: var(--parchment-dim); text-align: center; padding: 20px; }
.city-toast { top: 50%; z-index: 40; }

/* block card */
.bc-head { display: flex; gap: 12px; align-items: center; --c: #888; }
.bc-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c); border: 3px solid rgba(0, 0, 0, 0.6); }
.bc-icon .icon { width: 28px; height: 28px; color: #f4ead2; }
.bc-head h2 { font-size: 1.5rem; margin: 0; }
.bc-head p { margin: 2px 0 0; color: var(--parchment-dim); }
.bc-owner { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 12px 0 8px; --c: #888; }
.bc-owner i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.bc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border-radius: 10px; background: var(--soot); margin-bottom: 6px; }
.bc-row span { color: var(--parchment-dim); font-size: 0.85rem; display: flex; gap: 6px; align-items: center; }
.bc-row span .icon { width: 18px; height: 18px; color: var(--brass); }
.bc-row b { font-family: var(--head); font-size: 1.15rem; color: var(--parchment); text-align: right; }
.bc-row small { grid-column: 1 / -1; color: var(--parchment-dim); font-size: 0.75rem; }
.odds.easy { color: #8fd18a; }
.odds.even { color: #e8c45a; }
.odds.hard { color: #ff6a5a; }
.attack-btn { width: 100%; margin-top: 8px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 1.3rem; }
.attack-btn .icon { width: 24px; height: 24px; }
.bc-reason { color: var(--parchment-dim); text-align: center; margin: 10px 0 0; }
.bc-reason.small { font-size: 0.8rem; margin-top: 6px; }

/* fighter cards */
.card-list { display: flex; flex-direction: column; gap: 8px; }
.card-list.compact { gap: 6px; margin-top: 10px; }
.tab-head h2 { font-size: 1.4rem; }
.tab-head h2 small { font-family: var(--body); font-size: 0.85rem; color: var(--parchment-dim); }
.tab-head p { margin: 4px 0; color: var(--parchment-dim); font-size: 0.85rem; }
.tab-head p b { color: var(--parchment); }
.fcard { position: relative; display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; padding: 8px; border-radius: 12px; background: var(--soot-2); border: 2px solid transparent; min-height: 64px; }
.fcard img { width: 52px; height: 52px; border-radius: 9px; flex: 0 0 auto; }
.fc-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.fc-main > b { font-family: var(--head); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-main > small { color: var(--parchment-dim); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-stats { display: flex; gap: 7px; flex-wrap: wrap; font-size: 0.68rem; color: var(--parchment-dim); }
.fc-stats i { font-style: normal; }
.fc-stats b { color: var(--parchment); font-size: 0.82rem; }
.boss-ico { width: 16px; height: 16px; color: var(--brass-light); vertical-align: -2px; }
.fcard .status { font-style: normal; font-size: 0.7rem; padding: 2px 6px; border-radius: 6px; background: #4a1a14; color: #ffb0a0; white-space: nowrap; align-self: flex-start; }
.fcard .status.ready { background: #1e3a20; color: #a8e0a0; }
.fc-main .status { align-self: flex-start; margin-top: 2px; }
.loyal { display: block; height: 4px; border-radius: 2px; background: var(--soot-3); margin-top: 3px; --c: #8fd18a; }
.loyal i { display: block; height: 100%; border-radius: 2px; background: var(--c); }
.fcard.pick.on { border-color: var(--brass-light); background: #2a2214; }
.fcard.pick.off { opacity: 0.45; }
.fc-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--parchment-dim); display: grid; place-items: center; font-weight: 900; color: var(--soot); flex: 0 0 auto; }
.fcard.pick.on .fc-check { background: var(--brass-light); border-color: var(--brass-light); }
.fcard.recruit .hire { min-width: 74px; min-height: 52px; padding: 6px 10px; line-height: 1.1; }
.traits { font-size: 0.72rem; color: var(--parchment-dim); }
.traits em, .trait { font-style: normal; font-size: 0.7rem; padding: 0 5px; border-radius: 4px; background: var(--oak); color: var(--parchment); margin-right: 3px; }
.sq-sub { color: var(--parchment-dim); margin: 2px 0 8px; }
.sq-compare { background: var(--soot); border-radius: 10px; padding: 10px; }
.sq-bar { height: 10px; border-radius: 5px; background: var(--slate); overflow: hidden; }
.sq-you { height: 100%; background: linear-gradient(90deg, var(--blood), var(--blood-bright)); }
.sq-nums { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--parchment-dim); margin-top: 5px; gap: 6px; }
.sq-nums b { color: var(--parchment); }
.sq-nums .odds { font-family: var(--head); font-weight: 900; font-size: 0.95rem; }

/* fighter sheet */
.fs-head { display: flex; gap: 12px; align-items: flex-start; }
.fs-head img { width: 84px; height: 84px; border-radius: 12px; }
.fs-head h2 { font-size: 1.4rem; margin: 0; }
.fs-head p { margin: 2px 0; color: var(--parchment-dim); font-size: 0.85rem; }
.fs-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.fs-facts span { background: var(--soot); padding: 4px 8px; border-radius: 8px; font-size: 0.78rem; color: var(--parchment-dim); }
.fs-facts b { color: var(--parchment); }
#city-sheet h3 { font-size: 1.05rem; margin: 12px 0 6px; }
#city-sheet h3 small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.72rem; color: var(--parchment-dim); }
.stat-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 8px; padding: 3px 0; }
.stat-row > span:first-child { font-size: 0.85rem; }
.pipbar { display: flex; gap: 4px; }
.pipbar i { flex: 1; height: 10px; border-radius: 3px; background: var(--soot-3); }
.pipbar i.on { background: var(--brass); }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: 0.85rem; }
.weapons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wpn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; min-height: 64px; border-radius: 10px; background: var(--soot); border: 2px solid transparent; text-align: left; }
.wpn b { font-family: var(--head); }
.wpn small { font-size: 0.7rem; color: var(--parchment-dim); }
.wpn em { font-style: normal; font-size: 0.75rem; color: var(--brass-light); font-weight: 700; }
.wpn.on { border-color: var(--brass-light); }
.wpn:disabled:not(.on) { opacity: 0.4; }

/* ---- gang marks ---- */
.mark { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; color: var(--c, currentColor); }
.lg .lg-mark { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #f0e4c8; color: var(--c); }
.bc-owner .bc-mark { width: 22px; height: 22px; color: var(--c); }
.bm-mark { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f0e4c8; color: var(--c); border: 2px solid rgba(20, 12, 6, 0.9); transform: translate(-50%, -50%) scale(var(--ms)) translate(-19px, 17px); }
.bm-mark:empty { display: none; }
.bm-mark .mark { width: 15px; height: 15px; }
.enemy-strip .strip-mark { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #f0e4c8; vertical-align: -4px; margin-right: 5px; color: var(--rc, var(--slate)); }
.gang-id { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: var(--soot-2); border: 2px solid var(--c); text-align: left; --c: var(--blood); }
.gang-id .gang-id-mark { width: 46px; height: 46px; padding: 6px; border-radius: 50%; background: #f0e4c8; color: var(--c); }
.gang-id b { display: block; font-family: var(--head); font-size: 1.25rem; }
.gang-id small { color: var(--parchment-dim); font-size: 0.75rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brass-light); font-weight: 700; text-decoration: underline; min-height: 0; }

/* ---- gang setup form ---- */
.gs { padding: calc(8px + var(--safe-top)) 4px 24px; }
.gs h2 { font-size: 1.5rem; margin-bottom: 12px; }
.gs h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.gs h3 small { font-family: var(--body); font-size: 0.75rem; font-weight: 400; color: var(--parchment-dim); margin-left: 6px; }
.gs-preview { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--soot-2); }
.gs-badge { width: 76px; height: 76px; padding: 10px; border-radius: 50%; background: #f0e4c8; color: var(--c); border: 4px solid var(--c); flex: 0 0 auto; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.gs-badge .mark { width: 100%; height: 100%; }
.gs-preview b { display: block; font-family: var(--head); font-size: 1.4rem; }
.gs-preview small { color: var(--parchment-dim); }
.gs-field { display: block; margin-top: 14px; }
.gs-field > label { display: block; font-size: 0.8rem; color: var(--parchment-dim); margin-bottom: 4px; }
.gs-field input { width: 100%; min-height: var(--tap); padding: 8px 12px; border-radius: 10px; border: 2px solid var(--soot-3); background: var(--soot); color: var(--parchment); font: inherit; font-size: 1.05rem; }
.gs-field input:focus { outline: none; border-color: var(--brass); }
.gs-name-row { display: flex; gap: 8px; align-items: center; }
.gs-name-row input { flex: 1; min-width: 0; }
.gs-dice.roll .icon { animation: gs-roll 0.4s ease-out; }
@keyframes gs-roll { from { transform: rotate(-200deg) scale(0.7); } to { transform: none; } }
body.reduced-motion .gs-dice.roll .icon { animation: none; }
.gs-marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.gs-mark { aspect-ratio: 1; min-height: 48px; padding: 8px; border-radius: 12px; background: #e9dcc0; border: 3px solid transparent; color: var(--c); }
.gs-mark .mark { width: 100%; height: 100%; }
.gs-mark.on { border-color: var(--brass-light); box-shadow: 0 0 0 2px var(--soot), 0 0 12px rgba(240, 198, 74, 0.6); }
.gs-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-color { width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: 3px solid rgba(233, 220, 192, 0.25); }
.gs-color.on { border-color: var(--brass-light); box-shadow: 0 0 10px rgba(240, 198, 74, 0.7); }
#screen-gangsetup .page { overflow-y: auto; }

/* ---- weapon dealer ---- */
.arm-group { font-size: 1rem; margin: 14px 0 6px; color: var(--brass-light); }
.arm { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: var(--soot-2); border-left: 4px solid var(--oak-light); }
.arm.k-gun { border-left-color: var(--blood-bright); }
.arm.k-blade { border-left-color: var(--slate-light); }
.arm-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soot-3); color: var(--parchment); flex: 0 0 auto; }
.arm-ico .icon { width: 22px; height: 22px; }
.arm-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.arm-main b { font-family: var(--head); font-size: 1.05rem; }
.arm-main small { font-size: 0.75rem; color: var(--parchment-dim); }
.arm-main .arm-own b { font-family: var(--body); font-size: 0.8rem; color: var(--parchment); }
.hotx { color: #ff9a6a; }
.arm-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.arm-btns .btn { min-width: 62px; min-height: 48px; padding: 4px 8px; line-height: 1.1; font-size: 0.85rem; }
.arm-btns .btn small { font-size: 0.7rem; font-weight: 600; }
.wpn.k-gun b { color: #ffb0a0; }

/* ---- saved games, upgrades, teams, dynasty ---- */
.saves-sub { color: var(--parchment-dim); font-size: 0.9rem; margin: 0 0 10px; }
.save-list { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: calc(20px + var(--safe-bottom)); }
.save-row { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.save-row.blank .save-card { min-height: 46px; padding: 6px 12px; }
.save-card { flex: 1; display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--soot-2); border: 1px solid rgba(201, 162, 39, 0.35); min-height: 64px; }
.save-card:active { background: var(--soot-3); }
.save-card.off { border-style: dashed; border-color: rgba(233, 220, 192, 0.15); opacity: 0.6; }
.sv-slot { flex: 0 0 auto; width: 30px; font-family: var(--head); font-weight: 900; font-size: 1.3rem; color: var(--brass-light); text-align: center; }
.sv-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sv-main b { font-family: var(--head); font-size: 1.1rem; }
.sv-main small { color: var(--parchment-dim); font-size: 0.8rem; }
.sv-main em { font-style: normal; font-size: 0.72rem; color: var(--slate-light); }
.sv-del { align-self: center; }
.bm.lvl .bm-count { background: var(--brass-light); color: #120d0a; font-size: 10px; letter-spacing: -1px; }
.bc-row.upgrade b { color: var(--brass-light); letter-spacing: 2px; }
.attack-row { display: flex; flex-direction: column; gap: 8px; }
.team-head { margin: 14px 0 6px; font-family: var(--head); font-size: 1.15rem; }
.team-head small { display: block; font-family: inherit; font-size: 0.75rem; color: var(--parchment-dim); font-weight: 400; }
.dynasty { font-size: 0.8rem; color: var(--brass-light); margin: 4px 0; }
