@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080d12;
  --panel: #101c23;
  --panel-raised: #15262a;
  --line: #354847;
  --line-warm: #624938;
  --ink: #fff0dc;
  --muted: #c0c9c2;
  --subtle: #adbcb7;
  --faint: #8c9f98;
  --gold: #e8ad78;
  --gold-bright: #ffd39d;
  --teal: #97d7c3;
  --danger: #f0ad9d;
  --display: "Barlow Condensed", "Bahnschrift SemiCondensed", "Arial Narrow", "Segoe UI", sans-serif;
  --literary: Georgia, "Times New Roman", serif;
  --ui: system-ui, "Segoe UI", sans-serif;
  --page: min(100% - 3.8rem, 1540px);
  --sheet: linear-gradient(145deg, #1a312f 0, #131f27 33%, #0e171f 70%, #0e171c 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(122deg, transparent 0 65%, #53796c19 65.03%, transparent 65.13%),
    radial-gradient(ellipse 55rem 30rem at 12% 0%, #183033 0%, transparent 92%),
    radial-gradient(ellipse 42rem 36rem at 99% 25%, #37271f69, transparent 88%),
    var(--bg);
  font: 400 16px/1.5 var(--ui);
}

button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, progress { min-width: 0; }
a { color: var(--gold); }
img, svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:where(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

h1, h2, h3, p { margin-block: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, .dossier h2, .status-card h2, .modal h2, .view-head h1, .report-entry h2, .hero-card h2 {
  font-family: var(--display);
  font-weight: 780;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
  padding: .75rem 1rem;
  color: #18130c;
  background: var(--gold-bright);
  border-radius: .4rem;
}
.skip-link:focus { transform: translateY(0); }

.icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.18em;
  height: 1.18em;
  vertical-align: -.1em;
}

.topbar {
  position: relative;
  z-index: 2;
  background: linear-gradient(102deg, #0d181b, #0b1218 58%, #151715);
  border-bottom: 1px solid #80563f;
  box-shadow: 0 7px 22px #05081080;
}
.topbar::after {
  position: absolute;
  inset: auto 0 -2px;
  height: 3px;
  background: linear-gradient(90deg, #be8b63 0 12%, transparent 12% 87%, #84624b 87%);
  pointer-events: none;
  content: "";
}
.topbar-inner {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  width: var(--page);
  min-height: 4.2rem;
  margin: 0 auto;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  gap: .85rem;
  padding: 0;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  text-align: left;
}
.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.25rem;
  height: 2.62rem;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 .3rem #d6a07755);
}
.brand-mark::before, .brand-mark::after, .brand-mark > span::before, .brand-mark > span::after {
  position: absolute;
  inset: 50% auto auto 50%;
  content: "";
  transform: translate(-50%, -50%);
}
.brand-mark::before {
  width: 1.72rem;
  height: 1.72rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .58;
}
.brand-mark::after {
  width: 2.2rem;
  height: 2.55rem;
  background: currentColor;
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
}
.brand-mark > span::before {
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: .62;
}
.brand-mark > span::after {
  z-index: 1;
  width: .34rem;
  height: .34rem;
  background: #263637;
  transform: translate(-50%, -50%) rotate(45deg);
}
.brand-type {
  color: #f1e5d1;
  font: 650 clamp(1.36rem, 2.2vw, 1.97rem)/1 var(--literary);
  letter-spacing: -.06em;
  white-space: nowrap;
}
.brand-type > small {
  margin-left: .2rem;
  color: var(--gold);
  font: 700 .75rem/1 var(--ui);
  letter-spacing: .13em;
}
.main-nav {
  display: flex;
  align-self: stretch;
  gap: .44rem;
}
.main-nav > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.8rem;
  margin-block: .6rem;
  padding: 0 clamp(.8rem, 1.45vw, 1.25rem);
  border: 1px solid transparent;
  isolation: isolate;
  color: var(--muted);
  background: transparent;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 750;
}
.main-nav > button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  clip-path: polygon(.65rem 0, 100% 0, calc(100% - .65rem) 100%, 0 100%);
  content: "";
}
.main-nav > button:is(:hover, [aria-current="page"], [aria-pressed="true"], .active) {
  color: #f7ead9;
}
.main-nav > button:is(:hover, [aria-current="page"], [aria-pressed="true"], .active)::before {
  background: linear-gradient(90deg, #3f2a22, #253333);
}
.main-nav > button:is([aria-current="page"], [aria-pressed="true"], .active)::after {
  position: absolute;
  inset: auto 13% 0 8%;
  height: .15rem;
  background: linear-gradient(90deg, #e6a86f, #ffdc9e 55%, #b95646);
  transform: skewX(-36deg);
  content: "";
}
.main-nav .icon { color: var(--gold); }
.book-indicator {
  display: inline-grid;
  min-width: 1.38rem;
  min-height: 1.38rem;
  align-items: center;
  padding-inline: .23rem;
  color: #23170b;
  background: var(--gold-bright);
  border-radius: 1rem;
  box-shadow: 0 0 .55rem #e9b97c8e;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.top-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  min-width: 0;
}
.current-seed {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  color: var(--teal);
  font-size: .9rem;
  font-weight: 650;
}
.current-seed .icon { color: var(--teal); }
.vigor-status {
  display: grid;
  gap: .28rem;
  min-width: 4.6rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
}
#vigor-meter {
  width: 100%;
  height: .26rem;
  overflow: hidden;
  border: 0;
  border-radius: 10rem;
  accent-color: var(--gold);
  background: #314048;
}
#vigor-meter::-webkit-progress-bar { background: #314048; }
#vigor-meter::-webkit-progress-value {
  border-radius: 10rem;
  background: linear-gradient(90deg, #b9824d, #f3c68e);
}
#vigor-meter::-moz-progress-bar { background: #e5b579; }

.shell {
  width: var(--page);
  margin: 0 auto;
  padding-block: 1.75rem 2.35rem;
  min-height: calc(100vh - 9.6rem);
}
.shell:focus { outline: 0; }
.shell.is-entering > :not(.skeleton) { animation: page-enter 275ms cubic-bezier(.22,.73,.31,1) both; }
@keyframes page-enter {
  from { opacity: .66; transform: translateY(.34rem); }
  to { opacity: 1; transform: translateY(0); }
}
.atlas-head, .view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .95rem 1.25rem;
  margin-bottom: 1.3rem;
}
.eyebrow, .section-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.34;
}
.eyebrow { margin-bottom: .36rem; }
.atlas-head h1, .view-head h1 {
  font-size: clamp(2.45rem, 3.8vw, 3.68rem);
  letter-spacing: -.06em;
}
.intro, .view-head p:not(.eyebrow) {
  max-width: 65ch;
  margin-top: .46rem;
  color: var(--muted);
  font-size: 1rem;
}
.atlas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, .54fr);
  reading-flow: grid-rows;
  align-items: start;
  gap: 1.28rem;
}
.atlas-pane, .command-panel { display: grid; min-width: 0; gap: .87rem; }

.map-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid #aa8662;
  border-radius: .16rem .92rem .16rem .43rem;
  background: #193039;
  box-shadow: 0 .9rem 2.6rem #04090ca1, 0 0 0 4px #76644920;
}
.map-frame::after {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  inset: .37rem;
  border: 1px solid #f7dbad64;
  border-radius: .14rem .6rem .16rem .23rem;
  content: "";
}
.map-art, .map-shade, .map-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-art { z-index: -3; object-fit: cover; }
.map-shade {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(0deg, #080e17b8, transparent 21%),
    radial-gradient(ellipse at 9% 8%, #0a1721e6 0%, #08142172 22%, transparent 47%);
}
.map-routes { z-index: -1; overflow: visible; pointer-events: none; }
.map-routes path, .map-routes polyline { vector-effect: non-scaling-stroke; }
.map-route {
  fill: none;
  stroke: #b8d5ccbb;
  stroke-width: 2;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px #1b2829cc);
}
.map-route.is-selected {
  stroke: #ffd8a2;
  stroke-width: 3;
  stroke-dasharray: 2 8;
  filter: drop-shadow(0 0 3px #fca363);
}
.map-traveler {
  fill: #ffd098;
  stroke: #fff4da;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px #ffb570) drop-shadow(0 0 6px #d6533d);
}
.map-title.atlas-head {
  position: absolute;
  z-index: 1;
  inset: clamp(1rem, 3.1vw, 2.85rem) auto auto clamp(1rem, 3.1vw, 2.85rem);
  display: block;
  max-width: 65%;
  margin: 0;
  padding: .25rem 0 .3rem;
  pointer-events: none;
  text-shadow: 0 2px 2px #081421, 0 1px 1.15rem #091821;
}
.map-title .eyebrow {
  margin-bottom: .28rem;
  color: #ffe4b8;
  font-weight: 770;
  letter-spacing: .13em;
}
.map-title h1 {
  color: #fff3df;
  font: 880 italic clamp(2.8rem, 6.3vw, 6.15rem)/.93 var(--display);
  letter-spacing: -.063em;
  text-transform: uppercase;
  overflow-wrap: normal;
}
.map-title::after {
  display: block;
  width: 52%;
  min-width: 4.1rem;
  height: 3px;
  margin-top: .6rem;
  transform-origin: left center;
  transform: skewX(-29deg);
  background: linear-gradient(90deg, #e78d58 0 15%, #e8ba84 15% 80%, #cc995e4c 80%);
  box-shadow: 0 1px 8px #0a171cce;
  content: "";
}
.map-legend .icon { display: inline-grid; }
.map-legend {
  position: absolute;
  z-index: 1;
  inset: auto .85rem .83rem  auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .27rem .7rem;
  max-width: calc(100% - 1.7rem);
  padding: .33rem .74rem;
  border: 1px solid #987c59a8;
  border-radius: .05rem .47rem;
  color: #f6e9d7;
  background: #0c1720ee;
  font-size: .875rem;
}
.map-legend > span { display: inline-flex; align-items: center; gap: .32rem; }
.map-legend .icon { color: var(--gold); }
.map-pin {
  position: absolute;
  z-index: 2;
  left: var(--x, 50%);
  top: var(--y, 50%);
  display: grid;
  place-items: center;
  width: max-content;
  min-width: 3rem;
  min-height: 3rem;
  padding: .26rem .42rem;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: .4rem;
  color: #ebefeb;
  background: transparent;
  text-shadow: 0 1px 1px #080705;
}
.map-pin .pin-icon {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid #b4d4c5;
  border-radius: .32rem;
  color: #e3f3e6;
  background: #152d2fec;
  box-shadow: 0 0 0 .15rem #0a1a1dc9, 0 4px 12px #070f15bd;
  font-size: 1.12rem;
  transform: rotate(45deg);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.map-pin .pin-icon .icon { transform: rotate(-45deg); }
.map-pin:active .pin-icon { transform: rotate(45deg) scale(.89); }
.map-pin .pin-label {
  position: absolute;
  inset: auto auto -.55rem 50%;
  display: block;
  padding: .27rem .56rem;
  transform: translate(-50%, 60%);
  max-width: 11rem;
  border: 1px solid #65837a;
  border-radius: .06rem .28rem;
  color: var(--ink);
  background: #0d181ef2;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.16;
  white-space: nowrap;
}
.map-pin:is(:hover, [aria-pressed="true"], [aria-current]:not([aria-current="false"]), .selected, .active, .is-selected) .pin-icon {
  border-color: var(--gold-bright);
  color: #2c1d0c;
  background: #ffc892;
  box-shadow: 0 0 0 .15rem #35271ccc, 0 0 1rem #f7b274b8;
  text-shadow: none;
}
.map-pin:is(:hover, [aria-pressed="true"], [aria-current]:not([aria-current="false"]), .selected, .active, .is-selected) .pin-label {
  border-color: #aa835b;
  color: #ffe8c6;
  background: #302316f5;
}
.map-pin:is(.locked, .is-locked, [aria-disabled="true"]) .pin-icon { color: #c6cdc9; background: #283036; }

.party-strip, .surface {
  padding: .85rem;
  border: 1px solid #36474b;
  border-radius: .62rem;
  background: linear-gradient(165deg, #1a2b34, #111d27 66%);
}
.party-strip {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.party-strip .section-label {
  justify-content: space-between;
  margin: 0 0 .37rem .02rem;
  color: #f6d4aa;
}
.party-strip .section-label strong { display: inline-flex; align-items: center; gap: .42rem; }
.party-strip .section-label .btn {
  min-height: 2.4rem;
  padding: .24rem .4rem;
  color: #f0d2ae;
  font-size: .875rem;
}
.party-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .57rem;
}
.party-mini {
  --tone: #d9a479;
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: 7rem;
  align-content: end;
  padding: .63rem .52rem .58rem;
  border: 1px solid var(--tone);
  border-radius: .11rem .75rem .12rem .12rem;
  overflow: hidden;
  color: var(--ink);
  background: #101b22;
  text-align: left;
  box-shadow: inset 0 -2px 0 var(--tone), 0 .45rem .85rem #060a0f80;
  transition: transform .16s ease, box-shadow .16s ease;
}
.party-mini[data-tone="lia"], .hero-card[data-tone="lia"] { --tone: #e9a876; }
.party-mini[data-tone="ivo"], .hero-card[data-tone="ivo"] { --tone: #91b8dc; }
.party-mini[data-tone="nara"], .hero-card[data-tone="nara"] { --tone: #96cca6; }
.party-mini[data-tone="fagulha"], .hero-card[data-tone="fagulha"] { --tone: #e4c7a1; }
.party-mini::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(22deg, #070f18f2 11%, #0b131aaf 38%, transparent 72%);
  pointer-events: none;
  content: "";
}
.party-mini:is(:hover, :focus-visible) {
  z-index: 1;
  transform: translateY(-.22rem);
  box-shadow: inset 0 -2px 0 var(--tone), 0 .6rem 1.1rem #060a0fda, 0 0 .65rem color-mix(in srgb, var(--tone), transparent 65%);
}
.party-mini:active { transform: translateY(.06rem) scale(.985); }
.party-mini > :is(img, picture) {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}
.party-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 30%;
  transition: scale .3s ease;
}
.party-mini[data-tone="ivo"] img { object-position: 55% 19%; }
.party-mini[data-tone="fagulha"] img { object-position: 54% 40%; }
.party-mini:hover img { scale: 1.045; }
.party-mini-data { min-width: 0; }
.party-mini strong, .party-mini small { display: block; line-height: 1.21; }
.party-mini strong {
  font: 850 italic clamp(1.27rem, 2.1vw, 1.7rem)/.94 var(--display);
  letter-spacing: -.035em;
  text-shadow: 0 1px 3px #0b1218;
}
.party-mini small { margin-top: .2rem; color: #fff0db; font-size: .875rem; overflow-wrap: anywhere; }
.party-mini .role-mark {
  position: absolute;
  top: .38rem;
  right: .41rem;
  display: grid;
  width: 1.58rem;
  height: 1.58rem;
  place-items: center;
  border: 1px solid var(--tone);
  border-radius: .12rem .42rem;
  color: var(--tone);
  background: #111a21c9;
  font-size: .875rem;
}

.dossier, .status-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #947254;
  border-radius: .12rem .88rem .12rem .52rem;
  background: var(--sheet);
  box-shadow: 0 .75rem 1.8rem #050a10a1;
}
.dossier::before, .status-card::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: min(28%, 7rem);
  height: 3px;
  background: linear-gradient(90deg, #ffdbab, #a9644a 79%, transparent 80%);
  pointer-events: none;
  content: "";
}
.dossier-art {
  position: relative;
  display: block;
  height: clamp(10.2rem, 15.3vw, 14.3rem);
  overflow: hidden;
  background: #20383f;
}
.dossier-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}
.dossier-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #101b23 0, #101b2391 41%, transparent 79%),
    linear-gradient(90deg, #101b2380, transparent 76%);
  pointer-events: none;
  content: "";
}
.dossier-art-title {
  position: absolute;
  z-index: 1;
  inset: auto 1.1rem .68rem;
  padding-left: .66rem;
  border-left: 2px solid #d99161;
  text-shadow: 0 2px 2px #0b1119, 0 1px 12px #080e15;
}
.dossier-art-title .eyebrow { margin: 0 0 .16rem; }
.dossier-content { position: relative; padding: .97rem 1.12rem 1.06rem; }
.dossier:has(.dossier-art-title) .dossier-content { padding-top: .18rem; }
.dossier h2, .status-card h2, .status-hero h2 {
  margin-bottom: .27rem;
  color: #fff1da;
  font-size: clamp(2.3rem, 3.72vw, 3.55rem);
  letter-spacing: -.031em;
  line-height: .9;
  text-wrap: balance;
  text-transform: uppercase;
}
.dossier .description, .status-card .description {
  margin-bottom: .72rem;
  color: var(--muted);
  font-size: .95rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-block: .72rem;
  padding: .38rem .15rem;
  border-block: 1px solid #9c7c5e67;
  background: #0b151c65;
}
.stat {
  display: flex;
  min-width: 0;
  min-height: 2.9rem;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: .09rem .36rem;
  padding: .34rem .37rem .31rem .53rem;
  background: transparent;
}
.stat + .stat { border-left: 1px solid #b58a5b50; }
.stat .icon { color: var(--gold); }
.stat > div { min-width: 0; }
.stat small, .stat strong { display: block; font-size: .875rem; line-height: 1.23; }
.stat small { color: var(--muted); }
.stat strong { margin-top: .12rem; color: #fff0d5; }
.reward-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .52rem;
  margin-bottom: .74rem;
  color: var(--muted);
  font-size: .925rem;
}
.reward-line .icon { color: var(--gold-bright); }
.reward-line img { width: 1.7rem; height: 1.7rem; object-fit: contain; }
.reward-line strong { color: var(--ink); }
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 2.75rem;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  padding: .67rem .94rem;
  border: 1px solid #516569;
  border-radius: .1rem .36rem;
  color: var(--ink);
  background: #1d2c34;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  transition: background-color .16s ease, filter .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover:not(:disabled) { border-color: #b89771; background: #283840; }
.btn:active:not(:disabled) { transform: translateY(2px) scale(.986); }
.btn.primary {
  min-height: 3.02rem;
  padding: .58rem .95rem;
  border-color: transparent;
  color: #1c100b;
  background: transparent;
  font: 700 1.36rem/1.03 var(--display);
  letter-spacing: .016em;
  text-transform: uppercase;
  filter: drop-shadow(0 .27rem .45rem #b854403b);
}
.btn.primary::before, .btn.primary::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  clip-path: polygon(.92rem 0, 100% 0, 100% calc(100% - .91rem), calc(100% - .92rem) 100%, 0 100%, 0 .91rem);
  content: "";
}
.btn.primary::before { background: linear-gradient(120deg, #ffd8a7, #e59764 52%, #ba644d); }
.btn.primary::after {
  inset: 2px;
  background: linear-gradient(126deg, #f0ac72 0%, #ffcf94 25%, #eea76b 74%, #d28060 100%);
}
.btn.primary:hover:not(:disabled) {
  border-color: transparent;
  background: transparent;
  filter: brightness(1.12) drop-shadow(0 .3rem .58rem #f58b4f63);
}
.btn.primary .icon { width: 1.08em; height: 1.08em; }
.btn.secondary { background: #1c3039; }
.btn.ghost { border-color: transparent; color: var(--muted); background: transparent; }
.btn:disabled { opacity: .49; }
.dossier .btn, .status-card .btn { width: 100%; }

.route-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .47rem;
  margin-top: .61rem;
}
.route-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  min-height: 2.8rem;
  padding: .42rem;
  border: 1px solid #5b6a5e;
  border-radius: 0 .47rem 0 .32rem;
  color: var(--muted);
  background: #15272b;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.23;
  text-align: center;
}
.route-option:is(:hover, [aria-pressed="true"], .selected, .active) {
  color: #f5ddb9;
  background: linear-gradient(130deg, #493022, #2e2a26);
  border-color: #bc875d;
  box-shadow: inset 2px 0 #ce8d5f;
}
.route-option > span { overflow-wrap: anywhere; }
.locked-card, .book-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 3.52rem;
  min-width: 0;
  align-items: center;
  gap: .67rem;
  padding: .56rem .74rem;
  overflow: hidden;
  border: 1px solid #4f6563;
  border-left: 2px solid #76978a;
  border-radius: .08rem .48rem .08rem .28rem;
  color: var(--ink);
  background: linear-gradient(110deg, #1b302f, #111d25);
  text-align: left;
}
.locked-card .icon, .book-card .icon { color: var(--teal); }
.book-card .icon { color: var(--gold); }
.book-card { border-left-color: #a67453; }
.card-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.26rem;
  height: 2.26rem;
  border: 1px solid #4e6164;
  border-radius: .35rem;
  color: var(--teal);
  background: #12222a;
}
.card-icon .icon { width: 1.2rem; height: 1.2rem; }
.locked-card > .icon:last-child, .book-card > .icon:last-child { margin-left: auto; }
.locked-card.is-open { border-color: #6e9c85; }
.locked-card strong, .book-card strong { display: block; font-weight: 720; }
.locked-card small, .book-card small { display: block; color: var(--muted); font-size: .875rem; }
.locked-card > div, .book-card > div { min-width: 0; }
.locked-card img, .book-card img {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: .29rem;
}
button:is(.book-card, .locked-card):hover { border-color: #ca9d70; }
.status-card { padding: 1.04rem; }
.status-card:has(.status-content) { padding: 0; }
.status-content { position: relative; padding: 1rem 1.12rem 1.12rem; }
.status-card.is-running { border-color: #659b8a; }
.status-card.is-running::before { background: linear-gradient(90deg, #b3ecd5, #548d7a 79%, transparent 80%); }
.status-card.is-decision::before { background: linear-gradient(90deg, #ffd2ae, #ae6655 79%, transparent 80%); }
.status-card.is-returned { border-color: #bf9661; }
.status-hero {
  position: relative;
  min-height: clamp(7.65rem, 11.8vw, 11.2rem);
  overflow: hidden;
  background: #1f312f;
}
.status-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.status-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #111e26 0%, #0c141b25 63%, transparent),
    linear-gradient(117deg, #0b161879, transparent 70%);
  pointer-events: none;
  content: "";
}
.turn-seal {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid #c9a580;
  border-radius: .1rem .49rem;
  color: #ffda9f;
  background: linear-gradient(140deg, #43322b, #17292b);
}
.turn-seal > .icon { width: 1.34rem; height: 1.34rem; }
.status-hero .turn-seal {
  position: absolute;
  z-index: 1;
  top: .8rem;
  right: .87rem;
  transform: rotate(4deg);
}
.status-card > p { color: var(--muted); }
.status-card > p.eyebrow { color: var(--teal); }
.status-card > p + .btn, .status-card .btn + .btn { margin-top: .74rem; }
.step-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .43rem;
  margin-block: .72rem .38rem;
  color: var(--teal);
  font-size: .875rem;
  font-weight: 650;
}
.turn-timer {
  display: block;
  margin-block: .43rem;
  color: #ffd5a5;
  font: 700 clamp(2.03rem, 4.1vw, 3.12rem)/1 var(--display);
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}
.track {
  height: .48rem;
  margin-block: .66rem;
  overflow: hidden;
  border-radius: .08rem;
  background: #344844;
}
.track > span {
  display: block;
  width: var(--pct, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5a9c89, #9ee4c2 67%, #dfbd86);
  transition: width .2s linear;
}
.decision-list {
  display: grid;
  gap: .5rem;
  margin-top: .76rem;
}
.decision-button {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  gap: .64rem;
  padding: .62rem;
  border: 1px solid #4d6b62;
  border-left: 2px solid #638878;
  border-radius: 0 .55rem 0 .3rem;
  color: var(--ink);
  background: linear-gradient(113deg, #1a3432, #121f26 62%);
  text-align: left;
  transition: transform .15s ease, border-color .15s ease;
}
.decision-button:active:not(:disabled) { transform: translateY(2px) scale(.99); }
.decision-button:is(:hover, :focus-visible):not(:disabled) {
  color: #faebd4;
  background: #3c322a;
  border-color: #bb946b;
}
.decision-button .icon { color: var(--gold); }
.decision-button > div, .decision-button > span:not(.icon) { min-width: 0; }
.decision-button strong, .decision-button small { display: block; }
.decision-button strong { line-height: 1.22; }
.decision-button small { margin-top: .2rem; color: var(--muted); font-size: .875rem; }
.decision-button:disabled { opacity: .55; }
.decision-button .action-time {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--gold);
  font-size: .875rem;
  white-space: nowrap;
}
.decision-button.is-advance {
  border-color: #aa7d58;
  border-left-color: #ebaa72;
  background: linear-gradient(115deg, #483023, #1e292a 67%);
}

.action-film {
  position: fixed;
  z-index: 9;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(112deg, #15192325, #070f22a9 55%, #42252340);
  animation: film-veil 675ms linear both;
}
.film-band {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: clamp(.85rem, 2.7vw, 2.7rem);
  width: 109%;
  padding: clamp(1.15rem, 3.45vw, 3.35rem) 5vw;
  border-block: 2px solid #ffd09c;
  transform-origin: center;
  color: #fff1dc;
  background:
    linear-gradient(97deg, transparent 72%, #f2bd8757 72% 74%, transparent 74%),
    linear-gradient(109deg, #52332c 0%, #1b3334 37%, #101820 57%, #382820 100%);
  box-shadow: 0 0 2rem #ce936889, 0 0 0 7px #162b31b7;
  text-align: left;
}
.film-band::after {
  position: absolute;
  z-index: -1;
  inset: .4rem 0;
  border-block: 1px solid #ffc58d56;
  content: "";
}
.film-title {
  display: block;
  max-width: 94vw;
  color: #ffe9cf;
  font: 700 italic clamp(2rem, 7vw, 6rem)/.95 var(--display);
  letter-spacing: -.022em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 2px #071318, -3px 3px #9f674e;
}
.film-kicker {
  display: block;
  margin-bottom: .15rem;
  color: #ffd4a7;
  font-size: clamp(.875rem, 2vw, 1.1rem);
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.film-seal, .film-band > div { transform: skewX(7deg); }
.film-seal {
  display: grid;
  align-items: center;
  justify-items: center;
  width: clamp(3.1rem, 8.4vw, 8rem);
  aspect-ratio: 1;
  border: 1px solid #ffd0a3;
  border-radius: .2rem 1.35rem .2rem 1.35rem;
  color: #ffd6ab;
  background: linear-gradient(146deg, #572f2a, #1d3738);
  box-shadow: 0 0 0 4px #c5784f40;
}
.film-seal .icon { width: 54%; height: 54%; }
.action-film[data-kind="seed"] .film-band {
  background: linear-gradient(109deg, #442c24 0%, #213c36 45%, #15272e 74%, #4a3128 100%);
}
.action-film[data-kind="arrival"] .film-band {
  background: linear-gradient(109deg, #143332 0%, #1e3e3c 42%, #111e28 75%, #41342b 100%);
}
.action-film[data-kind="return"] .film-band {
  background: linear-gradient(109deg, #512d28 0%, #65432c 42%, #172c2e 78%, #4d3428 100%);
}
@keyframes film-veil {
  0%, 100% { opacity: 0; }
  20%, 70% { opacity: 1; }
}

.view-head { margin-bottom: 1.45rem; }
.view-head h1 {
  font-size: clamp(2.6rem, 5.6vw, 5.45rem);
  font-style: italic;
  line-height: .94;
  text-transform: uppercase;
}
.surface > h2 { margin-bottom: .7rem; }
.surface + .surface { margin-top: 1rem; }
.history-list, .report-events { display: grid; gap: .78rem; }
.report-entry {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid #6b6f5b;
  border-left: 3px solid #c58f68;
  border-radius: .1rem .68rem .1rem .4rem;
  background: var(--sheet);
}
.report-entry h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -.035em;
}
.report-entry h3 { margin-top: 1.2rem; }
.report-entry p, .event-row p { color: var(--muted); }
.report-entry > header { margin-bottom: 1rem; }
.report-entry > header p { margin-top: .45rem; }
.history-list > .report-entry { margin-top: 0; }
.report-entry > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem 1rem;
  min-height: 2.75rem;
  padding-right: .25rem;
  cursor: pointer;
  list-style: none;
}
.report-entry > summary::-webkit-details-marker { display: none; }
.report-entry > summary::after {
  align-self: center;
  flex: 0 0 auto;
  width: .52rem;
  height: .52rem;
  transform: rotate(45deg);
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  content: "";
}
.report-entry[open] > summary::after { transform: rotate(225deg); }
.report-summary { display: grid; gap: .21rem; }
.report-summary > strong {
  color: #fff0d9;
  font: 700 clamp(1.7rem, 2.56vw, 2.45rem)/1.02 var(--display);
  text-transform: uppercase;
}
.report-result {
  display: grid;
  justify-items: end;
  gap: .21rem;
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--subtle);
  font-size: .875rem;
  text-align: right;
}
.report-result .eyebrow { color: var(--teal); }
.report-entry > .description { margin-top: 1rem; }
.report-entry > h2 { margin-top: 1.15rem; font-size: 1.55rem; }
.report-events { margin-block: .95rem; }
.event-row {
  display: flex;
  align-items: flex-start;
  gap: .72rem;
  padding: .72rem .82rem;
  border: 1px solid #496059;
  border-left-color: #a9845d;
  border-radius: .04rem .45rem .04rem .23rem;
  background: #13242d;
}
.event-row .icon { margin-top: .19rem; color: var(--gold); }
.event-row strong { color: var(--ink); }
.loot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.4rem), 1fr));
  gap: .59rem;
  margin-top: .73rem;
}
.loot-card {
  display: flex;
  min-width: 0;
  min-height: 4rem;
  align-items: center;
  gap: .57rem;
  padding: .54rem;
  border: 1px solid #896f54;
  border-bottom: 2px solid #c99064;
  border-radius: .12rem .62rem .12rem .38rem;
  background: linear-gradient(140deg, #3d2d23, #171d23 68%);
}
.loot-card img {
  width: 2.78rem;
  height: 2.78rem;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: .23rem;
}
.loot-card div { min-width: 0; }
.loot-card strong, .loot-card small { display: block; overflow-wrap: anywhere; }
.loot-card small { color: var(--gold); font-size: .875rem; }
.formation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .88rem;
}
.hero-card {
  --tone: #cba273;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--tone);
  border-bottom: 3px solid var(--tone);
  border-radius: .12rem .93rem .12rem .6rem;
  background: var(--sheet);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 .5rem .9rem #06080c69;
  transition: transform .17s ease, box-shadow .17s ease;
}
.hero-card:is(:hover, :focus-visible) { transform: translateY(-.21rem); box-shadow: 0 .78rem 1.15rem #04090cc2; }
.hero-card:active { transform: translateY(.05rem) scale(.989); }
.hero-card img {
  width: 100%;
  height: clamp(12rem, 26vw, 27rem);
  object-fit: cover;
  object-position: center 40%;
}
.hero-card-data {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: .38rem;
  padding: 3.35rem .92rem .7rem;
  background: linear-gradient(0deg, #081219 3%, #081219ef 39%, #0812199e 67%, transparent);
}
.hero-card-data > strong {
  color: #fff1dc;
  font: 700 italic clamp(1.86rem, 4vw, 3.6rem)/.91 var(--display);
  text-transform: uppercase;
}
.hero-card-data > .eyebrow { margin: 0; color: var(--tone); }
.hero-card-data > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  color: #f5dfc8;
  font-size: .875rem;
  font-weight: 700;
}
.hero-card .role-mark {
  position: absolute;
  inset: .68rem .64rem auto auto;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--tone);
  border-radius: .13rem .58rem;
  color: var(--tone);
  background: #0b1921e5;
}
.formation-grid + .surface { margin-top: 1.05rem; }
.hero-inspector {
  display: grid;
  grid-template-columns: minmax(5rem, 12rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.7rem, 2.7vw, 1.8rem);
}
.hero-inspector img {
  width: 100%;
  height: auto;
  border: 1px solid #bd916c;
  border-radius: .1rem .61rem;
}
.hero-inspector h2 { margin-bottom: clamp(.52rem, 1.4vw, 1.2rem); }
.empty-state {
  display: grid;
  justify-items: start;
  gap: .5rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px dashed #4c6064;
  border-radius: .5rem;
  color: var(--muted);
  background: #111c24;
}
.empty-state > :is(h2, h3) { color: var(--ink); }
.empty-state .icon { color: var(--gold); }
.empty-state .btn { margin-top: .3rem; }
.skeleton {
  background: linear-gradient(100deg, #17272e 10%, #21343a 43%, #17272e 76%);
  background-size: 230% 100%;
  animation: skeleton-progress 1.8s linear infinite;
}
.skeleton-dossier {
  min-height: 20rem;
  border: 1px solid #33454b;
  border-radius: .62rem;
}
@keyframes skeleton-progress { to { background-position: -180% 0; } }

.modal {
  position: fixed;
  width: min(55rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(calc(100vh - 2rem), calc(100dvh - 2rem));
  padding: 0;
  overflow: auto;
  border: 1px solid #9d805c;
  border-radius: .13rem 1rem .15rem .58rem;
  color: var(--ink);
  background:
    linear-gradient(121deg, transparent 0 78%, #b6765226 78.1%, transparent 80%),
    radial-gradient(ellipse 95% 14rem at 0 0, #243d3b, transparent 90%),
    #0e1a22;
  box-shadow: 0 1.5rem 5rem #03080bd9, inset 0 0 0 3px #bd8b562e;
}
.modal::backdrop { background: #02080dcb; }
.modal-content {
  min-width: 0;
  padding: clamp(1rem, 4vw, 2.2rem);
}
.modal-content > :first-child { margin-right: 2.75rem; }
.modal h2 {
  font-size: clamp(2.15rem, 4.65vw, 3.75rem);
  font-style: italic;
  letter-spacing: -.03em;
  line-height: .96;
  text-transform: uppercase;
}
.modal h2 + p, .modal-content > p, .modal-content > header p {
  margin-top: .56rem;
  color: var(--muted);
}
.modal-content > .eyebrow { color: var(--gold); }
.modal-close {
  position: absolute;
  z-index: 1;
  inset: .65rem .65rem auto auto;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid #506060;
  border-radius: .4rem;
  color: var(--muted);
  background: #111d25;
  font: 400 1.45rem/1 var(--ui);
}
.modal-close:hover { border-color: var(--gold); color: var(--ink); }
.seed-grid, .posture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .68rem;
  margin-block: 1.15rem;
}
.seed-card, .posture-option {
  --seed-copper: #9dbcb0;
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: start;
  gap: .46rem;
  padding: .8rem;
  border: 1px solid #62847a;
  border-left: 2px solid var(--seed-copper);
  border-radius: .08rem .66rem .08rem .42rem;
  color: var(--ink);
  background: linear-gradient(150deg, #1f383b, #111d25 75%);
  text-align: left;
  transition: transform .15s ease, border-color .15s ease;
}
.seed-card.farol { --seed-copper: #e7a071; }
.seed-card.mare { --seed-copper: #8ecfc4; }
.seed-card.eco { --seed-copper: #c6a8ce; }
.seed-card:active:not(:disabled), .posture-option:active:not(:disabled) { transform: translateY(2px); }
.seed-card:is(:hover, [aria-pressed="true"], .selected, .active),
.posture-option:is(:hover, [aria-pressed="true"], .selected, .active) {
  border-color: var(--seed-copper);
  background: linear-gradient(155deg, #422f28, #203336);
}
.seed-card:disabled, .posture-option:disabled { opacity: .5; }
.seed-card strong, .posture-option strong {
  color: #fff0d8;
  font: 700 1.48rem/.98 var(--display);
  text-transform: uppercase;
}
.seed-card .eyebrow { color: var(--seed-copper); }
.seed-card p, .posture-option p, .seed-card small, .posture-option small {
  color: var(--muted);
  font-size: .875rem;
}
.seed-icon {
  display: grid;
  place-items: center;
  width: 4.24rem;
  height: 4.24rem;
  border: 1px solid var(--seed-copper);
  border-radius: .08rem .43rem .08rem .28rem;
  color: var(--gold);
  background: #101e29;
}
.seed-icon img { width: 100%; height: 100%; object-fit: contain; }
.seed-icon > .icon { width: 2rem; height: 2rem; }
.choice-detail {
  display: grid;
  gap: .3rem;
  padding: .72rem .8rem;
  border: 1px solid #556363;
  border-left-color: #cf9f68;
  border-radius: .06rem .42rem;
  color: var(--ink);
  background: #1c2d36;
}
.choice-detail p, .choice-detail small { color: var(--muted); }
.choice-detail small { font-size: .875rem; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .54rem;
  margin-top: .97rem;
}
.posture-grid .icon { color: var(--gold); }

.toast {
  position: fixed;
  z-index: 4;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: min(29rem, calc(100vw - 2rem));
  padding: .84rem .98rem;
  border: 1px solid #6ca59b;
  border-radius: .46rem;
  color: #e7f3ec;
  background: #192e35;
  box-shadow: 0 8px 28px #03080e9c;
  transform: translateY(.4rem);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast:is(.error, .is-error, [data-kind="error"], [data-tone="error"]) {
  border-color: #aa695d;
  color: #fff0ec;
  background: #392624;
}
.footer {
  display: flex;
  width: var(--page);
  min-height: 4.35rem;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin: 0 auto;
  border-top: 1px solid #33434a;
  color: var(--subtle);
  font-size: .875rem;
}
.footer span:first-child { color: #c9b698; }
noscript { display: block; width: var(--page); margin: 0 auto 2rem; color: var(--danger); }

@media (max-width: 1150px) {
  :root { --page: calc(100% - 2.9rem); }
  .topbar-inner { gap: 1rem; }
  .top-status { gap: .78rem; }
  .atlas-grid { grid-template-columns: minmax(0, 1fr) minmax(20rem, .56fr); gap: .8rem; }
  .atlas-pane, .command-panel { gap: .65rem; }
}
@media (max-width: 930px) {
  :root { --page: calc(100% - 2.4rem); }
  .topbar-inner { gap: .75rem; }
  .brand { gap: .45rem; }
  .top-status { gap: .5rem; }
  .party-mini { min-height: 6.2rem; }
  .party-mini small { font-size: .875rem; }
  .formation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-pin .pin-label { font-size: .875rem; white-space: normal; max-width: 8rem; text-align: center; width: max-content; }
  .map-pin.crypt .pin-label { bottom: -.2rem; transform: translate(-50%, 52%); }
  .map-pin.forest .pin-icon { width: 2.2rem; height: 2.2rem; }
  .map-pin.echo .pin-label {
    inset: 50% 2.58rem auto auto;
    max-width: none;
    transform: translateY(-48%);
    white-space: nowrap;
  }
}
@media (max-width: 720px) {
  :root { --page: calc(100% - 1.5rem); }
  .topbar-inner {
    grid-template-columns: 1fr auto;
    gap: .35rem .65rem;
    padding-block: .43rem .48rem;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-mark { width: 1.8rem; height: 2.16rem; transform: scale(.81); }
  .top-status { grid-column: 2; grid-row: 1; }
  .current-seed { max-width: 6.6rem; text-align: right; line-height: 1.2; overflow-wrap: anywhere; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: .46rem; }
  .main-nav > button { flex: 1 1 0; min-height: 2.75rem; margin: 0; padding-inline: .32rem; font-size: 1.02rem; }
  .atlas-grid { grid-template-columns: minmax(0, 1fr); gap: .95rem; }
  .command-panel { grid-row: 1; }
  .command-panel > :is(.locked-card, .book-card) { display: none; }
  .shell { padding-block: 1.2rem 1.8rem; min-height: calc(100vh - 10rem); }
  .atlas-head, .view-head { align-items: flex-start; margin-bottom: .91rem; }
  .map-title.atlas-head { max-width: 83%; }
  .map-title h1 { font-size: clamp(2.32rem, 8.9vw, 4.3rem); }
  .map-title::after { height: 2px; margin-top: .42rem; }
  .map-title .eyebrow { letter-spacing: .08em; }
  .atlas-head .intro, .view-head .intro { font-size: .94rem; }
  .dossier-art { height: 8.65rem; }
  .dossier-art-title { right: .83rem; left: .83rem; bottom: .48rem; }
  .dossier-content { padding: .85rem; }
  .map-pin .pin-icon { width: 1.85rem; height: 1.85rem; font-size: 1rem; }
  .map-pin .pin-label { padding: .19rem .36rem; transform: translate(-50%, 34%); }
  .map-pin.crypt .pin-label { bottom: -.46rem; transform: translate(-50%, 34%); }
  .map-pin.forest .pin-icon { width: 1.67rem; height: 1.67rem; }
  .map-legend { bottom: .59rem; right: .56rem; gap: .2rem .4rem; padding: .21rem .36rem; }
  .party-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .party-mini { min-height: 6.65rem; }
}
@media (max-width: 550px) {
  .seed-grid, .posture-grid { grid-template-columns: minmax(0, 1fr); }
  .seed-card { grid-template-columns: auto 1fr; align-items: center; }
  .seed-card .seed-icon { grid-row: span 3; width: 3.35rem; height: 3.35rem; }
  .seed-card > :not(.seed-icon) { grid-column: 2; }
  .seed-card .eyebrow { margin: 0; }
  .seed-card strong { align-self: end; }
  .seed-card .seed-icon + div { grid-column: 2; }
  .posture-option { display: flex; align-items: center; }
  .modal-actions .btn { flex: 1 1 10rem; }
  .modal-close { inset: .44rem .44rem auto auto; }
  .stats-grid { margin-block: .68rem; }
  .stat { min-height: 3.3rem; }
  .dossier .description { margin-bottom: .65rem; }
  .view-head { flex-wrap: wrap; }
  .hero-inspector { grid-template-columns: minmax(4.5rem, 35%) minmax(0, 1fr); }
  .decision-button .card-icon { width: 1.9rem; height: 1.9rem; }
  .report-entry > summary { display: grid; grid-template-columns: 1fr auto; }
  .report-result { grid-row: 2; justify-items: start; margin-left: 0; text-align: left; }
  .report-entry > summary::after { grid-row: 1 / span 2; grid-column: 2; }
}
@media (max-width: 375px) {
  .top-status { gap: .37rem; }
  .current-seed { max-width: 5.25rem; font-size: .875rem; }
  .vigor-status { font-size: .875rem; min-width: 3.65rem; }
  .brand-type { font-size: 1.24rem; }
  .main-nav > button > .icon { display: none; }
  .map-pin .pin-label { max-width: 6.4rem; }
  .map-legend { gap: .16rem .4rem; }
}
@media (max-width: 345px) {
  .brand-type > small { display: none; }
  .current-seed { max-width: 4.7rem; }
  .atlas-head:not(.map-title) h1 { font-size: clamp(1.86rem, 11vw, 2.25rem); }
  .map-title h1 { font-size: 2.08rem; }
  .map-pin.forest .pin-icon { width: 1.52rem; height: 1.52rem; }
  .map-pin.crypt .pin-label {
    bottom: -.16rem;
    max-width: none;
    white-space: nowrap;
    transform: translate(-50%, 10%);
  }
  .dossier-art { height: 7.15rem; }
  .dossier-content { padding: .72rem; }
  .stat > .icon { display: none; }
  .reward-line > span { line-height: 1.32; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
