/* Crownfall's enduring theme: the original Cinzel, gold and dark brown.
   This file owns shared materials, heading type and the centered title. Feature
   styles own layout and meaningful state colours. See docs/UI_THEME.md. */
/* This file's :root block moved to css/ui.css, whole and at the same values —
   it is now the game's only token declaration. The rules below are unchanged in
   what they do; they read the tokens instead of restating them. */
#ui {font-optical-sizing:auto}
#ui :is(h1,h2,.sp-name,.gov-section,.court-body h3,.field-heading,.field-site h3,.field-empty h3,.common-hero h3,.supply-name>b) {
  font-family:var(--font-head)!important; font-synthesis:none; font-weight:700; letter-spacing:.035em;
}
/* ONE MODAL HEADER. Three shapes were on screen at once — crown-icon + kicker +
   serif title + Close pill; kicker + title + grey subtitle + Close pill; crest +
   title + body and no Close — and .gov-header h2 alone carried FIVE competing
   sizes (30 / 29 / 27 / 25 / 24, whichever file's !important landed last).
   The eyebrow, the title and the subtitle are declared once each, here.

   ONE EXCEPTION, AND IT IS DELIBERATE: .founding-start h2 is NOT in this list. It is the hero
   line on an illustrated panel, not a modal title, and folding it in took it from 34px pale
   parchment to 25px in the same gold as the kicker, the card names, the selected rims and the
   primary button on that same screen - so the one line the page is built around stopped carrying
   it. css/founding.css keeps its own display treatment. Unifying chrome is right; flattening a
   hero into the body of its own page is not what unifying means. */
#ui :is(.gov-header h2,.ruler-header h2,.court-header h2,.menu-modal>h2,.big-modal>h2,.crisis-modal h2,
        .crown-start h2,.chronicles-modal>h2,.settings-modal>h2,.guide-modal>h2) {
  font:700 var(--fs-h1)/1.25 var(--font-head);letter-spacing:.025em;color:var(--gold);text-shadow:none;
}
#ui :is(.gov-eyebrow,.crown-overline,.founding-kicker,.score-eyebrow,.supply-intro>span,.landmark-portrait>span) {
  display:block;font:700 var(--fs-micro)/1.35 var(--font-body);
  letter-spacing:var(--tr-eyebrow);text-transform:uppercase;color:var(--gold-quiet);
}
/* the one line of quiet copy a header is allowed under its title */
#ui :is(.workshop-subtitle,.crown-heading p,.founding-intro,.menu-caption) {
  font:var(--fs-small)/1.5 var(--font-body);color:var(--muted);
}
#ui :is(.res,.chip,.sp-row,.res-val,.res span,.chip b,.gov-instrument-label b,.workforce-tally strong,.workforce-reading strong,.supply-entry-stock>strong,.workshop-site-figures strong) {
  font-family:var(--font-body)!important; font-variant-numeric:tabular-nums; letter-spacing:0; text-transform:none;
}
#ui :is(.btab,.bcard-name) {font:700 var(--fs-small)/1.25 var(--font-head);letter-spacing:0}
#ui .sp-name {font-size:var(--fs-h3)}
/* ONE PLATE. Three files used to skin these — governance.css picked a cool
   slate, identity.css a warm brown with a doubled top rule, this file a third
   gradient — and which one you saw depended on which selector happened to be
   the most specific for that one property. The losing declarations are deleted
   from those files; this rule is now the only description of a Crownfall panel,
   and it wins on specificity alone, so the !important is gone too. */
#ui :is(.gov-modal,.workshop-modal,.workforce-modal,.dy-modal.ruler-modal,.founding-start,.crisis-modal,.menu-modal,.big-modal,.council-modal,.lb-panel):not(.title-screen) {
  background:var(--surf-plate); border:1px solid var(--border-lt); border-top-color:var(--gold-dim);
  border-radius:var(--r-panel); box-shadow:var(--sh-plate);
}
/* ONE HEADER BAND, ONE FOOTER BAND. */
#ui :is(.gov-header,.court-header,.workshop-modal .gov-header,.workforce-modal .gov-header) {
  background:var(--surf-header);border-bottom:1px solid #b9954b55;gap:var(--sp-3);
}
#ui :is(.gov-footer,.ruler-footer,.founding-footer,.court-nav) {background:var(--surf-footer);border-color:#9d793e66}

/* ONE RHYTHM. Header, tab strip, body and footer used to carry three different
   horizontal paddings (24 from governance.css, 20 from identity.css, 16 from
   workforce.css), so a modal's eyebrow, its content and its buttons each began
   at a different left edge. They share --modal-pad-x now. Declared at ZERO
   specificity through :where() on purpose: it is the default rhythm, and every
   existing compact media query in governance/supply/workshops still overrides
   it, so nothing reflows on a short or narrow screen. */
:where(#ui) :where(.gov-header,.court-header,.ruler-header) {padding:var(--modal-pad-y) var(--modal-pad-x) var(--sp-3)}
:where(#ui) :where(.gov-body,.workshop-body,.court-body,.ruler-body) {padding:var(--sp-4) var(--modal-pad-x) var(--sp-5)}
:where(#ui) :where(.gov-footer,.ruler-footer,.court-nav) {padding:var(--sp-3) var(--modal-pad-x)}
:where(#ui) :where(.gov-tabs,.workshop-tabs) {padding-inline:var(--modal-pad-x)}
#ui .gov-header-mark {background:#573d1c;color:var(--gold);border-color:var(--gold-dim)}
/* ONE BUTTON FAMILY: secondary (this rule), primary (the gold one below),
   ghost and icon. .form-btn, .crisis-btn, .diff-btn, .gd-tab and the two
   coronation buttons each carried their own gradient, border width and corner —
   four more families for the same four ranks — and those declarations are gone
   from their files. Only the ranks differ now; nothing differs by feature. */
#ui :is(.hud-btn,.sbtn,.icon-btn,.title-btn,.form-btn,.crisis-btn,.diff-btn,.gd-tab,
        .crown-history-toggle,.crown-return):not(.danger):not(.primary):not(.gold) {
  color:var(--parch);border:1px solid var(--border-lt);border-radius:var(--r-ctl);
  background:var(--surf-ctl);box-shadow:var(--sh-ctl);
}
#ui :is(.hud-btn,.sbtn,.icon-btn,.title-btn,.form-btn,.crisis-btn,.diff-btn,.gd-tab,
        .crown-history-toggle,.crown-return):hover:not(:disabled) {
  border-color:var(--gold-dim);color:#fff0bf;background:linear-gradient(#5b4526,#352617);
}
#ui .crown-return {background:transparent;border-color:transparent;color:var(--gold-quiet)}
/* ONE WAY OUT of a docked panel. The inspector's close was a 60%-opacity glyph,
   the interior's a bordered brown pill, the workforce review's a bare 22px x —
   three shapes for "shut this". (The full-screen modals keep their labelled
   Close/Back button; that is a different affordance, not a fourth style.) */
#ui :is(.sp-close,.int-close,.workforce-review-close,.tut-c-x) {
  background:transparent;border:1px solid transparent;border-radius:var(--r-ctl);
  color:var(--muted);opacity:1;font:var(--fs-lead)/1 var(--font-body);cursor:pointer;
  transition:color .12s,background .12s,border-color .12s;
}
#ui :is(.sp-close,.int-close,.workforce-review-close,.tut-c-x):hover {
  color:var(--gold);background:var(--wash-hi);border-color:var(--border);
}
#ui :is(.hud-btn.gold,.hud-btn.primary,.title-btn.primary,.founding-footer #kn-go) {
  background:var(--surf-gold);border:1px solid #e4bd68;border-radius:var(--r-ctl);color:#fff1ca;box-shadow:var(--sh-ctl-gold);
}
#ui :is(.hud-btn.gold,.hud-btn.primary,.title-btn.primary,.founding-footer #kn-go):hover:not(:disabled) {background:linear-gradient(#dcad54,#a17530 52%,#513418);border-color:#ffe4a0}
#ui :is(button,summary,input,select):focus-visible {outline:var(--focus-ring);outline-offset:var(--focus-off)}
#ui :is(.gov-tabs,.workshop-tabs,.court-nav) {background:#21180e;border-color:#9c7b4155}
#ui :is(.gov-tabs,.workshop-tabs,.court-nav) button.active {background:#6d4e232e;color:var(--gold);border-bottom-color:var(--gold)}
#ui :is(.supply-index,.workforce-register) {background:#281e13;border-color:var(--border-lt);box-shadow:inset 0 1px #cba34b24,var(--sh-2)}
#ui .supply-overview .workshop-body {background:#21180f}
#ui :is(.supply-entry,.workforce-row) {background:linear-gradient(90deg,#b68d3810,transparent 70%);border-color:#896b3d66;color:var(--parch)}
#ui .supply-entry:hover {background:#3b2c19}
#ui :is(.supply-name,.supply-name>b,.workforce-site,.workshop-site h3,.field-site h3) {color:#f0d88c!important}
#ui .supply-name>b {font-size:var(--fs-h2)}
#ui :is(.supply-use,.supply-status,.workforce-site small,.workforce-reading small) {color:var(--muted)}
/* ONE CARD. The founding screen, the patron screen, the first-deed screen and
   the build tray each grew their own — four radii, four borders, four selected
   states, two of which grew a 2px border and then shrank their own padding by
   1px to stop the card jumping. One card, and a selected card is the same box
   with a gold rim and an inner hairline, so nothing moves when you pick it. */
#ui :is(.workshop-site,.field-site,.court-body .ruler-card,.court-body .ruler-candidate,
        .gov-tax,.gov-matter,.ruler-card,.ruler-candidate,.common-home,.crown-project,
        .founding-choice,.score-option,.rm-card) {
  background:var(--surf-card);border:1px solid #92703f88;border-radius:var(--r-card);box-shadow:var(--sh-card);
}
#ui :is(.gov-tax.selected,.ruler-candidate.selected,.crown-project[aria-checked="true"],
        .score-option.is-playing,.bcard.selected,.rm-card.on) {
  border-color:var(--gold-dim);background:var(--surf-card-sel);box-shadow:var(--sel-ring),var(--sh-card);
}
/* ...and the SECOND deliberate exception. .founding-choice[aria-checked="true"] keeps the warm
   red it had, in css/founding.css. --surf-card-sel is a faint luminance step plus a hairline,
   which is right on a settings row and wrong here: this is the first choice the game asks anyone
   to make, four cards sit side by side, and "did that register" has to be answerable at a glance.
   A/B'd live at the same viewport - the red reads instantly and the token does not. Consistency
   is not worth buying with clarity on the one screen where clarity is the whole job. */
/* a TAB that is on wears a gold underline, never a rim — that is how the two
   kinds of "chosen" stay tellable apart at a glance */
#ui :is(.gov-tabs,.workshop-tabs,.court-nav) button.active,
#ui :is(.workforce-priority,.workforce-filter) button[aria-pressed="true"] {
  box-shadow:inset 0 -2px var(--gold-dim);
}
#ui .workshop-site h3 {font-size:var(--fs-h3)!important;line-height:1.35}
#ui .workforce-site strong {font:700 var(--fs-copy)/1.4 var(--font-head)}
#ui .workforce-priority button[aria-pressed="true"] {background:#735225;color:#fff0c4;box-shadow:inset 0 -2px var(--gold-dim)}
#ui :is(.founding-choice b,.court-body h3) {font-family:var(--font-head)!important}
#ui .founding-choice b {font-size:var(--fs-body);line-height:1.4}
#ui .crisis-choice {background:linear-gradient(#493921,#2b2014);border-color:#a58648;box-shadow:inset 0 1px #ebc97325,var(--sh-1)}
#ui .crisis-choice:hover:not(:disabled) {background:linear-gradient(#5d4727,#392916);border-color:#e7c369}
#ui .crisis-choice strong {color:#f0dfb1}
/* The dock is gated to its EARNED doors (hud.js), so a fixed column count paints the columns
   that are not there - measured at 407px of lit box holding 101px of button. css/atelier.css
   sizes it to its children instead, and this sheet must not put the count back. */
#ui #command-dock {background:#251b10;border-color:#a28346}
.pause-books{margin:8px 0;text-align:left;border-top:1px solid #a2834666;border-bottom:1px solid #a2834666}
.pause-books summary{padding:12px 4px;color:#e8d6a6;cursor:pointer;font:700 13px/1.3 var(--font-head)}
.pause-book-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 0 12px}
.pause-book-links .hud-btn{white-space:normal;text-align:left}
#ui #resbar{gap:1px}
#ui #topbar #popchip{padding-block:5px}
#ui #topbar .stores-primary .res{padding:1px 4px}
#ui .stores-goods{padding-top:1px}
#ui .stores-good{min-height:20px}
#ui .stores-good .ware-icon{width:18px;height:18px}
#ui.uiw-lt700 #governance-action .gov-priority-detail{display:none}
#ui.uiw-lt700.governance-ready #chronicle{max-width:max(100px,calc(100% - var(--governance-w,234px) - 12px))}
#ui #command-dock button {font:700 var(--fs-small)/1.3 var(--font-head);color:#e8d6a6}
#ui #command-dock button:hover {background:#77552655;color:#ffe6a0}
#ui #governance-action {background:linear-gradient(110deg,#3d2c17f5,#23190ffa);border-color:#a7894a;border-top-color:#d5b363}
#ui .gov-instrument-label {font:700 var(--fs-copy)/1.4 var(--font-head)}
#ui #governance-action .gov-priority strong {font:700 var(--fs-body)/1.4 var(--font-head)}
#ui .gov-realm-instruments .gov-instrument-label {font-size:var(--fs-lead)}
#ui .rm-town-preview {background:#241d12}
#ui .rm-town-preview>span {background:linear-gradient(transparent,#1b150de6)}
/* The original centered presentation, without continuous full-screen filters. */
#ui #modal-box:has(.title-screen) {width:100vw;height:100vh;height:100dvh;max-height:100dvh;overflow:hidden}
#ui .title-screen {
  width:100vw;height:100vh;height:100dvh;min-width:0;min-height:0;max-width:none;
  padding:clamp(24px,4vh,42px) 32px clamp(30px,5vh,54px);align-items:center;justify-content:center;gap:0;
  background:#110d09;border:0;border-radius:0;box-shadow:none;
}
#ui .title-screen>.title-bg {
  display:block;inset:0;transform:none;filter:none;animation:none;background-position:center;background-size:cover;
  background-image:linear-gradient(#130e0c44,#17100830 22%,#110c08a8 68%,#090705f2),url('../assets/title-kingdom-hd.webp?v=98');
}
#ui .title-screen::before {display:block;inset:0;margin:18px;border:1px solid #d3ad573d;background:none;box-shadow:inset 0 0 0 1px #0009,inset 0 0 110px #0007}
#ui .title-screen::after {display:none}
#ui .title-screen>.title-rays,#ui .title-screen>.title-clouds,#ui .title-screen>.title-mist,#ui .title-screen>.title-aura,#ui .title-screen>.title-kingdom-vfx,#ui .title-screen>.title-foreground,#ui .title-screen>.title-vignette,#ui .title-screen>.title-stars {display:none}
#ui .title-screen>.title-stack {width:100%;flex:0 0 auto;align-items:center;gap:9px;transform-origin:top center;will-change:auto}
#ui .title-crest {width:auto;margin:0 0 4px;padding:0;border:0;line-height:1;filter:none}
#ui .title-crest svg {display:block;width:clamp(66px,8vh,84px);height:auto;filter:drop-shadow(0 3px 3px #000a)}
#ui .title-logo {
  position:relative;font-family:var(--font-head)!important;font-weight:900!important;font-size:clamp(48px,9.8vw,148px);
  line-height:1.04;letter-spacing:.035em!important;margin:0;white-space:nowrap;animation:none;
  background:linear-gradient(#fff7d1 4%,#f2c94c 48%,#b77b29 87%,#825020);background-clip:text;-webkit-background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;text-shadow:none;filter:drop-shadow(0 3px 0 #241507b0) drop-shadow(0 3px 16px #000a);
}
#ui .title-logo::after {display:none}
#ui .title-sub {display:flex;align-items:center;justify-content:center;gap:clamp(10px,1.8vw,24px);margin:0;font:400 clamp(14px,1.55vw,21px)/1.5 var(--font-head);font-style:normal;color:#f1e3bf;letter-spacing:.065em;text-align:center;text-shadow:0 2px 7px #000}
#ui .title-sub::before,#ui .title-sub::after {content:'';width:clamp(16px,5vw,68px);height:1px;background:linear-gradient(90deg,transparent,#ddbd6f99);flex:none}
#ui .title-sub::after {transform:rotate(180deg)}
#ui .title-stats {min-height:0;margin:1px 0 0;padding:4px 15px;border:0;border-radius:0;background:#160e0755;box-shadow:none;color:#d2bb7b;font:var(--fs-small)/1.4 var(--font-body)}
#ui .title-menu {
  position:relative;width:min(700px,75%);margin:clamp(24px,3.8vh,42px) 0 0;padding:13px;gap:11px;border:1px solid #b398565e;border-radius:var(--r-card);
  background:linear-gradient(#392b186b,#140d07c9);box-shadow:inset 0 1px #eacc8026,inset 0 0 0 3px #08050233,var(--sh-3);
}
#ui .title-screen .title-btn {
  display:flex;align-items:center;justify-content:center;gap:12px;position:relative;min-height:54px;padding:13px 20px;
  border:1px solid #bd9c5866;border-radius:var(--r-ctl);background:var(--heritage-control);color:#eee0bb;
  font:700 var(--fs-lead)/1.35 var(--font-head);letter-spacing:.025em;text-transform:uppercase;text-align:center;
  box-shadow:inset 0 1px #f2d58b24,inset 0 -1px #080603a0,var(--sh-2);animation:none;transition:background .15s,border-color .15s,box-shadow .15s;
}
#ui .title-screen .title-btn::before {display:none}
#ui .title-screen .title-btn>svg {display:none}
#ui .title-screen .title-btn:hover:not(:disabled) {background:linear-gradient(#66502c,#3d2c18);border-color:#efd38a;transform:none;filter:none;box-shadow:inset 0 1px #ffe4a333,var(--sh-2)}
#ui .title-screen .title-btn.primary {min-height:73px;font-size:var(--fs-h1);background:linear-gradient(#cc9c45,#916329 48%,#4e3115);border:1px solid #ffe0a0;color:#fff3d1;box-shadow:inset 0 0 0 2px #301d164d,inset 0 2px #ffeac958,var(--sh-2)}
#ui .title-screen .title-btn.primary:hover:not(:disabled) {background:linear-gradient(#e1b558,#a4772f 48%,#614019);border-color:#fff0be;box-shadow:inset 0 0 0 2px #301d164d,0 0 18px #dba44422,var(--sh-2)}
#ui .title-screen .title-resume {display:flex;flex-direction:column;gap:3px;padding-block:11px}
#ui .title-resume small {font:400 var(--fs-copy)/1.4 var(--font-body);color:#ecdab2;text-transform:none;letter-spacing:.02em;max-width:100%;overflow-wrap:anywhere}
#ui .title-multiplayer {grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;gap:11px}
#ui .title-utilities {grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:row;gap:9px;border:0;margin:0;padding:0}
#ui .title-screen .title-utilities .title-btn {min-height:46px;padding:10px 4px;font-size:var(--fs-copy);letter-spacing:0}
#ui .title-screen .tut-row {display:block}
#ui .title-screen #t-guided {width:100%;justify-content:center;min-height:32px;padding:5px;font:600 11px var(--font-head);color:#d9c593;background:#20170ec9;border-color:#8f73464d;box-shadow:inset 0 1px #cba54d1a}
#ui .title-key {margin:4px 0 0;color:#b6a375;font:var(--fs-micro)/1.5 var(--font-body);letter-spacing:.025em}
#ui .title-key kbd {font:600 var(--fs-micro)/1 var(--font-body);padding:2px 5px;border:1px solid #8e754b66;border-radius:var(--r-xs);color:#e8d09a}
#ui .title-key>span {padding:0 6px;color: var(--muted)}
#ui .title-listen {display:flex;align-items:center;gap:7px;margin-top:1px;padding:6px 12px;border:1px solid transparent;background:none;color:#bdab81;cursor:pointer;font:12px var(--font-body);border-radius:var(--r-xs)}
#ui .title-listen svg {width:16px;height:16px}#ui .title-listen:hover {color:#f5d886;border-color:#987c4255;background:#2c201466}
#ui .title-screen>.ember-fx {display:block;opacity:.28;z-index:1;pointer-events:none}
#ui .title-screen .ember-fx span {box-shadow:none;filter:none}
@media(max-width:760px) {
  #ui .title-screen {padding-inline:22px}#ui .title-screen::before {margin:11px}
  #ui .title-logo {font-size:10.8vw;letter-spacing:.02em!important}
  #ui .title-menu {width:min(580px,100%);margin-top:25px;padding:11px;gap:9px}
  #ui .title-screen .title-btn.primary {font-size:var(--fs-h2);min-height:64px}
  #ui .title-screen .title-btn {font-size:var(--fs-body);min-height:49px}
  #ui .title-utilities {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  #ui .title-screen .title-utilities .title-btn {font-size:var(--fs-micro);min-height:39px}
  #ui .title-screen .title-utilities .title-btn:nth-child(4) {grid-column:1/3}
  #ui .title-sub {font-size:clamp(11px,2.55vw,18px);letter-spacing:.035em}
  #ui .supply-name>b {font-size:var(--fs-lead)}#ui .workforce-site strong {font-size:var(--fs-small)}
  #ui #command-dock button {font-size:var(--fs-nano);gap:4px}
}
@media(max-height:660px) {
  #ui .title-screen {padding-block:18px}#ui .title-crest svg {width:48px}#ui .title-screen>.title-stack {gap:6px}
  #ui .title-logo {font-size:min(9.1vw,112px)}#ui .title-menu {margin-top:17px;gap:7px;padding:10px}
  #ui .title-screen .title-btn {min-height:43px;padding-block:9px}#ui .title-screen .title-btn.primary {min-height:57px;font-size:var(--fs-h2)}
  #ui .title-screen .title-utilities .title-btn {min-height:37px;padding-block:7px}
}
@media(prefers-reduced-motion:reduce) {#ui .title-screen>.ember-fx{display:none}#ui .title-screen .title-btn{transition:none}}
body.reduce-motion #ui .title-screen>.ember-fx,body.low-fx #ui .title-screen>.ember-fx {display:none}

/* The normal modal layer counter-zooms the HUD. Match that behavior when CSS zoom is unavailable. */
@supports not (zoom:1.2) {
  #ui #modal-layer:has(.title-screen) {width:100vw;height:100vh;height:100dvh;transform:scale(calc(1 / var(--ui-scale,1)));transform-origin:top left}
}

/* Reclaimed places use the same inspector materials and existing semantic states. */
#ui .landmark-body {display:flex;flex-direction:column;gap:11px;min-height:0;overflow-y:auto;padding:13px 15px 16px;scrollbar-color:var(--border-lt) var(--cf-ink);scrollbar-width:thin}
#ui .landmark-body>* {flex-shrink:0}
#ui .landmark-portrait {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:134px;padding:4px 0 11px;border-bottom:1px solid #a0834844;background:radial-gradient(ellipse,#c39c3822,transparent 70%)}
#ui .landmark-portrait>img {width:auto!important;max-width:112px;max-height:112px;object-fit:contain}
#ui .landmark-portrait>span {font:600 var(--fs-nano)/1.4 var(--font-body);letter-spacing:.11em;color:var(--gold-dim)}
#ui .landmark-body :is(.landmark-story,.landmark-benefit) {margin:0;font:var(--fs-copy)/1.5 var(--font-body);color:var(--cf-muted)}
#ui .landmark-body .landmark-benefit {color:var(--parch);padding:9px 0;border-bottom:1px solid #a0834844}
#ui .landmark-progress {display:flex;flex-direction:column;gap:6px}
#ui .landmark-progress progress {display:block;appearance:none;width:100%;height:8px;border:1px solid var(--border-lt);border-radius:var(--r-xs);background:var(--cf-ink);overflow:hidden;color:var(--gold-dim)}
#ui .landmark-progress progress::-webkit-progress-bar {background:var(--cf-ink)}
#ui .landmark-progress progress::-webkit-progress-value {background:var(--heritage-gold)}
#ui .landmark-progress progress::-moz-progress-bar {background:var(--gold-dim)}
#ui .landmark-progress strong {font:600 var(--fs-small)/1.4 var(--font-body);color:var(--parch)}
#ui .landmark-choices {display:flex;flex-direction:column;gap:5px}
#ui .landmark-choices>.hud-btn {display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:10px 8px;white-space:normal}
#ui .landmark-choices>.hud-btn>b {font:700 var(--fs-small)/1.4 var(--font-head)}
#ui .landmark-choices>.hud-btn:disabled {opacity:1;background:var(--panel);color:var(--cf-muted);border-color:var(--border)}
#ui .landmark-choices [data-landmark-cost],#ui .landmark-choices [data-landmark-reward] {display:flex;flex-wrap:wrap;justify-content:center;gap:5px 12px;font:600 var(--fs-small)/1.25 var(--font-body);font-variant-numeric:tabular-nums}
#ui .landmark-choices [data-landmark-cost]>span,#ui .landmark-choices [data-landmark-reward]>span {display:flex;align-items:center;gap:3px;white-space:nowrap}
#ui .landmark-choices svg {width:18px;height:18px;flex-shrink:0}
#ui .landmark-choices>small {font:var(--fs-micro)/1.4 var(--font-body);color:var(--cf-muted);padding:0 3px 6px}
#ui .landmark-choices>small:empty {display:none}
#ui .landmark-body details {border-top:1px solid #a0834844;padding-top:9px}
#ui .landmark-body summary {cursor:pointer;font:var(--fs-small)/1.4 var(--font-body);color:var(--gold-dim)}
#ui .landmark-body details p {font:var(--fs-small)/1.5 var(--font-body);color:var(--cf-muted);margin:8px 0 0}
#ui .landmark-body>[data-landmark-expeditions] {font-size:var(--fs-small)}
#ui .landmark-destinations .field-target>img {width:64px!important;height:auto!important;max-height:74px;object-fit:contain;flex:0 0 64px}

/* Compact HUDs have no spare side column for notices. A single transient strip
   cannot collapse to the width left between the inspector and realm instrument. */
#ui.uiw-lt900 #toasts {left:12px;right:12px;max-width:none;align-items:center}
#ui.uiw-lt900.in-game:not(.modal-up) #toasts {top:var(--hud-top);bottom:auto}
#ui.uiw-lt900 #toasts .toast {box-sizing:border-box;width:100%;min-width:0;max-width:520px;padding:10px 14px;font:600 var(--fs-copy)/1.45 var(--font-body);overflow-wrap:anywhere}
#ui.uiw-lt900 #toasts .toast:not(:last-child) {display:none}
