:root {
  --ink: #13262c;
  --ink-soft: #395259;
  --paper: #f5f0df;
  --paper-deep: #e8dfc5;
  --card: #fffdf3;
  --night: #112c3a;
  --night-deep: #071a22;
  --water: #1e8290;
  --water-bright: #57c4bf;
  --mint: #79c7a5;
  --lantern: #ffbf4a;
  --lantern-hot: #ff7043;
  --rose: #c95358;
  --danger: #b2383f;
  --line: rgba(19, 38, 44, 0.17);
  --shadow: 0 18px 50px rgba(10, 31, 38, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 191, 74, 0.15), transparent 25rem),
    linear-gradient(135deg, #f9f4e7 0%, #e9e4d4 100%);
  color: var(--ink);
  font-family: var(--sans);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible + label,
a:focus-visible {
  outline: 3px solid var(--lantern-hot);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  border-radius: 0.3rem;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1680px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 86px;
  padding: 1rem clamp(1rem, 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 236, 0.9);
  backdrop-filter: blur(16px);
}

.brand-lockup,
.topbar-actions,
.metric-heading,
.command-topline,
.map-heading,
.ledger-heading,
.start-row,
.recap-actions,
.ending-actions {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 0.9rem;
}

.brand-lockup h1 {
  margin: 0.14rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(19, 38, 44, 0.2);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 4px var(--paper);
}

.brand-mark i {
  position: absolute;
  bottom: 13px;
  width: 4px;
  border-radius: 4px 4px 1px 1px;
  background: var(--lantern);
  box-shadow: 0 0 8px var(--lantern);
}

.brand-mark i:nth-child(1) {
  left: 14px;
  height: 12px;
}

.brand-mark i:nth-child(2) {
  left: 22px;
  height: 20px;
}

.brand-mark i:nth-child(3) {
  left: 30px;
  height: 15px;
}

.topbar-actions {
  gap: 0.65rem;
}

.night-chip {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 105px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.55);
}

.night-chip span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.night-chip strong {
  font-family: var(--serif);
  font-size: 1rem;
}

.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: var(--ink);
  color: white;
}

.button-icon {
  font-size: 1rem;
}

main {
  padding: clamp(1rem, 2.5vw, 2.5rem) clamp(1rem, 3vw, 3.5rem) 3rem;
}

.splash {
  position: relative;
  display: grid;
  min-height: min(740px, calc(100vh - 150px));
  overflow: hidden;
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
  border: 1px solid rgba(19, 38, 44, 0.18);
  border-radius: 0.7rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.splash-art {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 65%, rgba(5, 25, 34, 0.75) 100%),
    linear-gradient(160deg, #1b5e6b 0%, #133746 52%, #071c26 100%);
}

.splash-art::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 220, 126, 0.14), transparent 12rem),
    repeating-linear-gradient(115deg, transparent 0 16px, rgba(255, 255, 255, 0.012) 17px 18px);
  content: "";
}

.splash-moon {
  position: absolute;
  top: 10%;
  right: 18%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #ffe5a1;
  box-shadow: 0 0 70px rgba(255, 205, 99, 0.35);
}

.splash-moon::after {
  position: absolute;
  inset: -8px 15px 8px -10px;
  border-radius: inherit;
  background: #194c5b;
  content: "";
}

.splash-cloud,
.cloud {
  position: absolute;
  width: 150px;
  height: 18px;
  border-radius: 100%;
  background: rgba(225, 236, 223, 0.1);
  filter: blur(2px);
}

.splash-cloud::before,
.splash-cloud::after,
.cloud::before,
.cloud::after {
  position: absolute;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.splash-cloud::before,
.cloud::before {
  width: 55px;
  height: 40px;
  left: 20px;
  bottom: 0;
}

.splash-cloud::after,
.cloud::after {
  width: 75px;
  height: 55px;
  right: 16px;
  bottom: -1px;
}

.cloud-one {
  top: 20%;
  left: 4%;
  animation: drift 18s ease-in-out infinite alternate;
}

.cloud-two {
  top: 34%;
  right: -2%;
  transform: scale(0.68);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.splash-island {
  position: absolute;
  right: -7%;
  bottom: 15%;
  width: 100%;
  height: 36%;
  transform: rotate(-3deg);
  border-radius: 65% 23% 45% 25%;
  background:
    linear-gradient(180deg, #43664f 0%, #294b3e 25%, #213b34 100%);
  box-shadow: inset 0 12px 0 rgba(151, 181, 118, 0.13), 0 28px 0 rgba(6, 24, 31, 0.45);
}

.splash-tent {
  position: absolute;
  bottom: 35%;
  width: 70px;
  height: 55px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(90deg, #f5d675 0 13px, #cc5b4f 14px 27px);
  filter: drop-shadow(0 0 18px rgba(255, 190, 74, 0.28));
}

.splash-tent::after {
  position: absolute;
  width: 16px;
  height: 25px;
  right: 27px;
  bottom: 0;
  background: #192b2f;
  content: "";
}

.tent-one {
  left: 20%;
}

.tent-two {
  left: 48%;
  bottom: 52%;
  transform: scale(0.72);
}

.tent-three {
  right: 14%;
  bottom: 22%;
  transform: scale(0.86);
}

.splash-lighthouse {
  position: absolute;
  top: -68%;
  right: 26%;
  width: 35px;
  height: 150px;
  background: repeating-linear-gradient(180deg, #eee5cf 0 28px, #b95048 29px 50px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.24);
}

.splash-lighthouse::before {
  position: absolute;
  top: -19px;
  left: -6px;
  width: 47px;
  height: 22px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #172e34;
  content: "";
}

.splash-lighthouse::after {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 23px;
  height: 16px;
  background: var(--lantern);
  box-shadow: 0 0 30px 10px rgba(255, 191, 74, 0.32);
  content: "";
}

.splash-water {
  position: absolute;
  inset: 76% 0 0;
  overflow: hidden;
  background: linear-gradient(#1b5e6b, #0d3946);
}

.splash-water span {
  position: absolute;
  width: 170px;
  height: 2px;
  border-radius: 50%;
  background: rgba(172, 226, 212, 0.34);
  animation: water-slide 7s linear infinite;
}

.splash-water span:nth-child(1) {
  top: 20%;
  left: 5%;
}

.splash-water span:nth-child(2) {
  top: 46%;
  left: 45%;
  width: 230px;
  animation-delay: -2s;
}

.splash-water span:nth-child(3) {
  top: 70%;
  left: 16%;
  width: 90px;
  animation-delay: -4s;
}

.splash-water span:nth-child(4) {
  top: 83%;
  right: 2%;
  width: 130px;
  animation-delay: -1s;
}

.splash-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5.5rem);
  background:
    linear-gradient(rgba(255, 253, 243, 0.93), rgba(255, 253, 243, 0.93)),
    repeating-linear-gradient(45deg, transparent 0 4px, rgba(19, 38, 44, 0.05) 5px);
}

.splash-copy h2 {
  max-width: 750px;
  margin: 0.6rem 0 1.35rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.intro-lede {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.4rem 0;
}

.briefing-grid article {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.briefing-grid span {
  color: var(--lantern-hot);
  font-size: 0.7rem;
  font-weight: 900;
}

.briefing-grid h3 {
  margin: 0.35rem 0;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.briefing-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.start-row {
  justify-content: space-between;
  gap: 1rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--ink);
  color: white;
  box-shadow: 5px 5px 0 var(--lantern);
}

.primary-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--lantern);
}

.secondary-button {
  background: transparent;
}

.secondary-button:hover {
  background: var(--paper-deep);
}

.large-button {
  min-width: 220px;
  min-height: 56px;
}

.full-button {
  width: 100%;
}

.seed-block {
  text-align: right;
}

.seed-block span,
.seed-block strong {
  display: block;
}

.seed-block span {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seed-block strong {
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.game-panel {
  animation: fade-in 500ms ease both;
}

.metric-ribbon {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(10, 31, 38, 0.07);
}

.metric-card {
  min-width: 0;
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--line);
}

.metric-card:last-child {
  border: 0;
}

.metric-cash {
  background: var(--ink);
  color: white;
}

.metric-heading {
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-cash .metric-heading,
.metric-cash small {
  color: rgba(255, 255, 255, 0.64);
}

.metric-glyph {
  color: var(--lantern-hot);
  font-family: var(--serif);
  font-size: 1rem;
}

.metric-card > strong {
  display: block;
  overflow: hidden;
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card small {
  display: block;
  overflow: hidden;
  margin-top: 0.12rem;
  color: var(--ink-soft);
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meter {
  width: 100%;
  height: 4px;
  overflow: hidden;
  margin-top: 0.35rem;
  border-radius: 1rem;
  background: rgba(19, 38, 44, 0.12);
}

.meter i {
  display: block;
  width: 65%;
  height: 100%;
  border-radius: inherit;
  background: var(--lantern-hot);
  transition: width 500ms ease, background 300ms ease;
}

.ecology-meter i {
  width: 72%;
  background: var(--mint);
}

.grid-meter i {
  width: 68%;
  background: var(--lantern);
}

.meter.warning i {
  background: var(--danger);
  animation: meter-pulse 800ms ease-in-out infinite alternate;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(500px, 1.3fr) minmax(380px, 0.7fr);
  gap: 1rem;
  align-items: stretch;
}

.harbor-card,
.command-card,
.ledger-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--card);
  box-shadow: 0 12px 35px rgba(10, 31, 38, 0.08);
}

.card-heading,
.command-topline {
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.card-heading h2,
.command-topline h2 {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.weather-chip,
.seed-pill {
  flex: 0 0 auto;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10rem;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 800;
}

.weather-icon {
  margin-right: 0.3rem;
  color: var(--lantern-hot);
}

.harbor-scene {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 12%, rgba(255, 197, 85, 0.36), transparent 11rem),
    linear-gradient(180deg, #164d5e 0%, #176879 45%, #207d87 46%, #12606e 100%);
  transition: filter 500ms ease;
}

.harbor-scene::before {
  position: absolute;
  z-index: -3;
  inset: 45% 0 0;
  background:
    repeating-radial-gradient(ellipse at 25% 80%, transparent 0 22px, rgba(154, 224, 211, 0.13) 23px 24px),
    linear-gradient(180deg, rgba(63, 162, 165, 0.28), rgba(7, 50, 62, 0.5));
  content: "";
}

.harbor-scene::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  mix-blend-mode: soft-light;
}

.sky-glow {
  position: absolute;
  z-index: -2;
  top: 4%;
  right: 9%;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: #ffe3a0;
  box-shadow: 0 0 60px rgba(255, 197, 85, 0.35);
}

.sky-glow::after {
  position: absolute;
  inset: -5px 13px 6px -8px;
  border-radius: inherit;
  background: #174f5f;
  content: "";
}

.map-cloud-one {
  z-index: -1;
  top: 12%;
  left: 6%;
  background: rgba(223, 238, 230, 0.13);
  animation: drift 15s ease-in-out infinite alternate;
}

.map-cloud-two {
  z-index: -1;
  top: 28%;
  right: 4%;
  transform: scale(0.72);
  background: rgba(223, 238, 230, 0.12);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.rain {
  position: absolute;
  z-index: 18;
  inset: 0;
  display: none;
  pointer-events: none;
  background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(210, 245, 240, 0.27) 19px 20px, transparent 21px 36px);
  background-size: 150px 110px;
  animation: rain-fall 450ms linear infinite;
}

.harbor-scene.storm .rain {
  display: block;
}

.harbor-scene.storm {
  filter: saturate(0.72) brightness(0.78);
}

.harbor-scene.blackout {
  filter: saturate(0.25) brightness(0.3);
}

.blackout-flash {
  position: absolute;
  z-index: 30;
  inset: 0;
  pointer-events: none;
}

.harbor-scene.incident .blackout-flash {
  animation: incident-flash 900ms ease;
}

.lantern-line {
  position: absolute;
  z-index: 5;
  height: 60px;
  border-top: 1px solid rgba(19, 28, 27, 0.8);
  transform: rotate(4deg);
}

.lantern-line-one {
  top: 38%;
  left: 17%;
  width: 46%;
}

.lantern-line-two {
  top: 57%;
  right: 10%;
  width: 32%;
  transform: rotate(-5deg);
}

.lantern-line i {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 13px;
  margin-left: 12%;
  transform: translateY(-4px);
  border-radius: 4px;
  background: var(--lantern);
  box-shadow: 0 0 14px 4px rgba(255, 181, 60, 0.52);
  animation: lantern-breathe 1.8s ease-in-out infinite alternate;
}

.lantern-line i:nth-child(even) {
  animation-delay: -0.8s;
}

.harbor-scene.blackout .lantern-line i {
  opacity: 0.05;
  box-shadow: none;
}

.island-shape {
  position: absolute;
  z-index: 1;
  top: 28%;
  left: 7%;
  width: 79%;
  height: 53%;
  transform: rotate(-3deg);
  border: 3px solid rgba(11, 48, 45, 0.45);
  border-radius: 44% 21% 37% 29% / 39% 35% 25% 45%;
  background:
    radial-gradient(circle at 30% 40%, rgba(237, 196, 112, 0.3) 0 3px, transparent 4px),
    linear-gradient(145deg, #507159 0%, #365d4b 55%, #234c42 100%);
  box-shadow:
    inset -20px -20px 0 rgba(17, 50, 43, 0.28),
    0 15px 0 rgba(8, 47, 53, 0.52),
    0 24px 30px rgba(5, 30, 37, 0.4);
}

.island-shape::before {
  position: absolute;
  inset: 9% 8%;
  border: 1px dashed rgba(237, 230, 190, 0.22);
  border-radius: 44% 25% 42% 30%;
  content: "";
}

.pier {
  position: absolute;
  z-index: 3;
  height: 18px;
  transform-origin: left center;
  background: repeating-linear-gradient(90deg, #886d4e 0 13px, #5a4b3c 14px 16px);
  box-shadow: 0 6px 0 rgba(8, 44, 48, 0.35);
}

.pier-one {
  top: 54%;
  right: 1%;
  width: 30%;
  transform: rotate(8deg);
}

.pier-two {
  bottom: 21%;
  left: 3%;
  width: 23%;
  transform: rotate(-14deg);
}

.water-lines i {
  position: absolute;
  z-index: 0;
  width: 80px;
  height: 2px;
  border-radius: 50%;
  background: rgba(163, 226, 212, 0.3);
  animation: water-slide 8s linear infinite;
}

.water-lines i:nth-child(1) { top: 52%; left: 2%; }
.water-lines i:nth-child(2) { top: 65%; right: 3%; width: 130px; animation-delay: -2s; }
.water-lines i:nth-child(3) { bottom: 12%; left: 18%; width: 115px; animation-delay: -5s; }
.water-lines i:nth-child(4) { bottom: 4%; right: 20%; width: 160px; animation-delay: -3s; }
.water-lines i:nth-child(5) { top: 48%; right: 20%; width: 60px; animation-delay: -1s; }
.water-lines i:nth-child(6) { bottom: 18%; right: 2%; width: 70px; animation-delay: -6s; }

.boat {
  position: absolute;
  z-index: 4;
  width: 45px;
  height: 18px;
  border-radius: 2px 2px 50% 50%;
  background: #d7c69d;
  box-shadow: 0 5px 8px rgba(8, 42, 50, 0.35);
  animation: boat-bob 3s ease-in-out infinite alternate;
}

.boat::before {
  position: absolute;
  bottom: 15px;
  left: 20px;
  width: 2px;
  height: 32px;
  background: #17323a;
  content: "";
}

.boat i {
  position: absolute;
  bottom: 21px;
  left: 22px;
  width: 24px;
  height: 25px;
  clip-path: polygon(0 100%, 0 0, 100% 100%);
  background: #cf5f4f;
}

.boat-one {
  top: 51%;
  right: 4%;
}

.boat-two {
  bottom: 8%;
  left: 7%;
  transform: scale(0.75);
  animation-delay: -1.2s;
}

.district {
  position: absolute;
  z-index: 8;
  display: block;
  width: 145px;
  height: 130px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.district:hover .district-building,
.district:focus-visible .district-building,
.district.active .district-building {
  transform: translateY(-6px) scale(1.04);
  filter: brightness(1.15) drop-shadow(0 10px 8px rgba(6, 26, 29, 0.35));
}

.district-building {
  position: absolute;
  z-index: 2;
  display: block;
  transition: transform 180ms ease, filter 180ms ease;
  filter: drop-shadow(0 8px 6px rgba(6, 26, 29, 0.33));
}

.district-label {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 142px;
  grid-template-columns: auto 1fr;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.25rem;
  background: rgba(6, 31, 38, 0.89);
  color: white;
  text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
}

.district-label small {
  grid-row: 1 / 3;
  margin-right: 0.45rem;
  color: var(--lantern);
  font-size: 0.57rem;
  font-weight: 900;
}

.district-label strong {
  font-family: var(--serif);
  font-size: 0.78rem;
  line-height: 1;
}

.district-label em {
  overflow: hidden;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.53rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.district.danger .district-label {
  background: rgba(135, 32, 37, 0.94);
  animation: meter-pulse 700ms ease-in-out infinite alternate;
}

.district-power {
  top: 19%;
  left: 15%;
}

.district-power .district-label {
  top: 85px;
  left: -20px;
}

.power-building {
  top: 30px;
  left: 26px;
  width: 70px;
  height: 58px;
  border: 3px solid #162f34;
  background: #d0b86e;
}

.power-building::before {
  position: absolute;
  top: -27px;
  left: 8px;
  width: 7px;
  height: 28px;
  background: #21393c;
  box-shadow: 34px 5px 0 #21393c;
  content: "";
}

.power-building::after {
  position: absolute;
  top: -9px;
  left: -4px;
  width: 74px;
  height: 14px;
  clip-path: polygon(0 100%, 15% 0, 85% 0, 100% 100%);
  background: #7f3d37;
  content: "";
}

.power-building i {
  position: absolute;
  bottom: 9px;
  width: 12px;
  height: 22px;
  background: #17333a;
}

.power-building i:nth-child(1) { left: 9px; }
.power-building i:nth-child(2) { left: 27px; background: var(--lantern); box-shadow: 0 0 12px var(--lantern); }
.power-building i:nth-child(3) { right: 9px; }

.district-market {
  top: 34%;
  right: 18%;
}

.district-market .district-label {
  top: 92px;
  left: 8px;
}

.market-building {
  top: 30px;
  left: 36px;
  width: 84px;
  height: 58px;
  background: #ead699;
}

.market-building::before {
  position: absolute;
  top: -22px;
  left: -7px;
  width: 98px;
  height: 29px;
  clip-path: polygon(8% 100%, 0 30%, 16% 0, 33% 30%, 50% 0, 67% 30%, 84% 0, 100% 30%, 92% 100%);
  background: #bd5149;
  content: "";
}

.market-building::after {
  position: absolute;
  inset: 13px 10px 8px;
  background: repeating-linear-gradient(90deg, #1c3a3e 0 13px, #ffc852 14px 21px);
  content: "";
}

.market-building i {
  position: absolute;
  z-index: 2;
  top: -8px;
  width: 8px;
  height: 11px;
  border-radius: 4px;
  background: var(--lantern);
  box-shadow: 0 0 10px var(--lantern);
}

.market-building i:nth-child(1) { left: 12px; }
.market-building i:nth-child(2) { left: 39px; }
.market-building i:nth-child(3) { right: 12px; }

.district-waste {
  bottom: 15%;
  right: 25%;
}

.district-waste .district-label {
  top: 89px;
  left: 2px;
}

.waste-building {
  top: 34px;
  left: 40px;
  width: 75px;
  height: 54px;
  border: 3px solid #163239;
  background: #6ba491;
}

.waste-building::before {
  position: absolute;
  top: -18px;
  left: -6px;
  width: 82px;
  height: 19px;
  transform: skewX(-18deg);
  background: #294940;
  content: "";
}

.waste-building i {
  position: absolute;
  top: 14px;
  width: 23px;
  height: 22px;
  border: 2px solid #17343a;
  border-radius: 50%;
  background: #8bc2ae;
}

.waste-building i:nth-child(1) { left: 8px; }
.waste-building i:nth-child(2) { right: 8px; }

.district-safety {
  bottom: 18%;
  left: 21%;
}

.district-safety .district-label {
  top: 91px;
  left: -11px;
}

.safety-building {
  top: 28px;
  left: 33px;
  width: 78px;
  height: 61px;
  border: 3px solid #183339;
  background: #e7e0bd;
}

.safety-building::before {
  position: absolute;
  top: -25px;
  left: -7px;
  width: 86px;
  height: 26px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #85443d;
  content: "";
}

.safety-building::after {
  position: absolute;
  bottom: 0;
  left: 28px;
  width: 18px;
  height: 31px;
  background: #204047;
  content: "";
}

.safety-building i {
  position: absolute;
  top: 12px;
  width: 13px;
  height: 15px;
  background: var(--lantern);
  box-shadow: 0 0 9px rgba(255, 191, 74, 0.65);
}

.safety-building i:nth-child(1) { left: 8px; }
.safety-building i:nth-child(2) { right: 8px; }

.tide-gauge {
  position: absolute;
  z-index: 9;
  top: 19px;
  right: 17px;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tide-gauge > i {
  position: relative;
  display: block;
  width: 10px;
  height: 74px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 1rem;
}

.tide-gauge b {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 35%;
  background: var(--lantern);
  transition: height 800ms ease;
}

.map-footer {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--line);
}

.map-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.64rem;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(121, 199, 165, 0.2);
}

.key-hint {
  text-align: right;
}

kbd {
  padding: 0.1rem 0.3rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 0.2rem;
  background: var(--paper);
  font: 700 0.6rem var(--sans);
}

.command-card {
  min-height: 794px;
}

.command-topline {
  position: sticky;
  z-index: 5;
  top: 0;
  background: rgba(255, 253, 243, 0.96);
  backdrop-filter: blur(12px);
}

.seed-pill strong {
  color: var(--ink);
}

.phase-panel {
  padding: 1.2rem;
  animation: phase-in 350ms ease both;
}

.phase-intro {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.93rem;
  line-height: 1.5;
}

.policy-block {
  min-width: 0;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.policy-block.active {
  border-color: var(--lantern-hot);
  box-shadow: 0 0 0 2px rgba(255, 112, 67, 0.13);
}

.policy-block legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem 0.2rem;
}

.policy-number {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lantern);
  font-size: 0.58rem;
  font-weight: 900;
}

.policy-block legend strong,
.policy-block legend small {
  display: block;
}

.policy-block legend strong {
  font-family: var(--serif);
  font-size: 0.86rem;
}

.policy-block legend small {
  margin-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.57rem;
}

.policy-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.5rem;
}

.policy-option {
  position: relative;
  min-width: 0;
}

.policy-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.policy-option label {
  display: block;
  min-height: 73px;
  padding: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background: var(--paper);
  cursor: pointer;
  transition: border 150ms ease, background 150ms ease, transform 150ms ease;
}

.policy-option label:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 38, 44, 0.28);
}

.policy-option input:checked + label {
  border-color: var(--ink);
  background: #ffedbd;
  box-shadow: inset 0 -3px 0 var(--lantern);
}

.policy-option strong,
.policy-option small {
  display: block;
}

.policy-option strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-option small {
  min-height: 25px;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.52rem;
  line-height: 1.25;
}

.policy-delta {
  display: block;
  margin-top: 0.25rem;
  color: var(--water);
  font-size: 0.49rem;
  font-style: normal;
  font-weight: 900;
}

.policy-delta.risk {
  color: var(--danger);
}

.forecast-panel {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0.9rem 0;
  padding: 0.75rem;
  border: 1px dashed rgba(19, 38, 44, 0.3);
  background: var(--paper);
}

.forecast-panel div {
  min-width: 88px;
  padding-right: 0.75rem;
  border-right: 1px solid var(--line);
}

.forecast-panel span,
.forecast-panel strong {
  display: block;
}

.forecast-panel span {
  color: var(--ink-soft);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.forecast-panel strong {
  margin-top: 0.13rem;
  font-family: var(--serif);
  font-size: 1rem;
}

.forecast-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.58rem;
  line-height: 1.35;
}

.forecast-panel p.warning {
  color: var(--danger);
  font-weight: 800;
}

.event-phase {
  min-height: 600px;
  text-align: center;
}

.event-visual {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 170px;
  overflow: hidden;
  place-items: center;
  margin-bottom: 1.2rem;
  background:
    linear-gradient(180deg, rgba(13, 68, 80, 0.1), rgba(13, 68, 80, 0.45)),
    repeating-linear-gradient(120deg, transparent 0 18px, rgba(255, 255, 255, 0.09) 19px 20px);
  color: white;
}

.event-visual::before {
  position: absolute;
  inset: 65% -10% -30%;
  border-radius: 50% 50% 0 0;
  background: var(--water);
  content: "";
}

.event-symbol {
  position: relative;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: var(--ink);
  color: var(--lantern);
  font-family: var(--serif);
  font-size: 2.7rem;
  box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.08);
}

.event-visual > i {
  position: absolute;
  z-index: 1;
  bottom: 19%;
  width: 100px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.33);
  animation: water-slide 5s linear infinite;
}

.event-visual > i:nth-of-type(1) { left: 5%; }
.event-visual > i:nth-of-type(2) { right: 4%; bottom: 10%; animation-delay: -2s; }
.event-visual > i:nth-of-type(3) { left: 41%; bottom: 5%; animation-delay: -4s; }

.event-tag,
.ending-label {
  margin: 0 0 0.4rem;
  color: var(--lantern-hot);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.event-phase h3,
.ending-phase h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.event-copy,
.ending-phase > p:not(.ending-label) {
  max-width: 520px;
  margin: 0.8rem auto 1rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.5;
}

.event-stakes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.event-stakes span {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10rem;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.55rem;
  font-weight: 800;
}

.choice-list {
  display: grid;
  gap: 0.55rem;
  text-align: left;
}

.choice-button {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-height: 75px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: var(--card);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border 150ms ease;
}

.choice-button:hover {
  transform: translateX(3px);
  border-color: var(--ink);
  background: #fff4d4;
}

.choice-letter {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lantern);
  font-size: 0.66rem;
  font-weight: 900;
}

.choice-copy strong,
.choice-copy small {
  display: block;
}

.choice-copy strong {
  font-family: var(--serif);
  font-size: 0.83rem;
}

.choice-copy small {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.56rem;
  line-height: 1.3;
}

.choice-cost {
  color: var(--danger);
  font-size: 0.57rem;
  font-weight: 900;
  text-align: right;
}

.newspaper {
  padding: 1rem;
  border: 1px solid rgba(19, 38, 44, 0.34);
  background:
    linear-gradient(rgba(245, 240, 223, 0.94), rgba(245, 240, 223, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(19, 38, 44, 0.05) 4px);
  box-shadow: 7px 7px 0 var(--paper-deep);
  transform: rotate(-0.35deg);
}

.newspaper-masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  padding: 0.45rem 0;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  font-family: var(--serif);
}

.newspaper-masthead span {
  font-size: 0.7rem;
  font-style: italic;
}

.newspaper-masthead strong {
  font-size: 1.45rem;
  text-align: center;
}

.newspaper-masthead small {
  font-size: 0.54rem;
  text-transform: uppercase;
}

.paper-kicker {
  margin: 0.8rem 0 0.3rem;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.newspaper h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-align: center;
}

.newspaper > p:not(.paper-kicker) {
  margin: 0.75rem auto;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.paper-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink);
}

.paper-note {
  position: relative;
  padding-left: 0.75rem;
  border-left: 3px solid var(--water);
}

.paper-note.negative {
  border-color: var(--rose);
}

.paper-note strong,
.paper-note span {
  display: block;
}

.paper-note strong {
  font-family: var(--serif);
  font-size: 0.7rem;
}

.paper-note span {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.54rem;
  line-height: 1.35;
}

.recap-actions {
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}

.score-preview span,
.score-preview strong {
  display: block;
}

.score-preview span {
  color: var(--ink-soft);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-preview strong {
  font-family: var(--serif);
  font-size: 1.8rem;
}

.ending-phase {
  min-height: 650px;
  padding-top: 2rem;
  text-align: center;
}

.ending-seal {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: 0 auto 1rem;
  border: 3px double var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--lantern-hot);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 0 0 7px var(--paper-deep);
}

.ending-phase.loss .ending-seal {
  color: var(--danger);
  transform: rotate(-8deg);
}

.final-score {
  margin: 1.4rem 0;
  padding: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.final-score span,
.final-score strong,
.final-score small {
  display: block;
}

.final-score span {
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.final-score strong {
  margin: 0.15rem 0;
  font-family: var(--serif);
  font-size: 3.4rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.final-score small {
  color: var(--water);
  font-size: 0.58rem;
  font-weight: 900;
}

.ending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.ending-stat {
  padding: 0.65rem 0.3rem;
  background: var(--paper);
}

.ending-stat span,
.ending-stat strong {
  display: block;
}

.ending-stat span {
  color: var(--ink-soft);
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ending-stat strong {
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.ending-actions {
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.ledger-card {
  margin-top: 1rem;
}

.ledger-count {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
}

.ledger-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ledger-list li {
  position: relative;
  min-height: 105px;
  padding: 0.85rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ledger-list li:nth-child(4n) {
  border-right: 0;
}

.ledger-list li::before {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--lantern-hot);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  content: attr(data-night);
  text-transform: uppercase;
}

.ledger-list strong,
.ledger-list span {
  display: block;
}

.ledger-list strong {
  font-family: var(--serif);
  font-size: 0.74rem;
}

.ledger-list span {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.55rem;
  line-height: 1.35;
}

.ledger-list .empty-ledger {
  grid-column: 1 / -1;
  min-height: 70px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-style: italic;
}

.ledger-list .empty-ledger::before {
  display: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 3.5rem) 2rem;
  color: var(--ink-soft);
  font-size: 0.61rem;
}

footer p {
  margin: 0;
}

footer button {
  padding: 0.35rem 0.55rem;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.61rem;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  max-width: min(360px, calc(100% - 2rem));
  padding: 0.8rem 1rem;
  transform: translateY(160%);
  border-radius: 0.35rem;
  background: var(--ink);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phase-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes drift {
  from { translate: -12px 0; }
  to { translate: 18px 4px; }
}

@keyframes water-slide {
  0% { transform: translateX(-16px) scaleX(0.85); opacity: 0.15; }
  50% { opacity: 0.58; }
  100% { transform: translateX(25px) scaleX(1.15); opacity: 0.12; }
}

@keyframes boat-bob {
  from { margin-top: -2px; rotate: -1deg; }
  to { margin-top: 4px; rotate: 2deg; }
}

@keyframes lantern-breathe {
  from { opacity: 0.62; transform: translateY(-4px) scale(0.92); }
  to { opacity: 1; transform: translateY(-4px) scale(1.08); }
}

@keyframes rain-fall {
  from { background-position: 0 -100px; }
  to { background-position: -35px 100px; }
}

@keyframes meter-pulse {
  from { opacity: 0.68; }
  to { opacity: 1; }
}

@keyframes incident-flash {
  0%, 100% { background: transparent; }
  14% { background: rgba(255, 255, 255, 0.8); }
  28% { background: transparent; }
  42% { background: rgba(255, 112, 67, 0.52); }
}

@media (max-width: 1180px) {
  .splash {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .splash-copy {
    padding: 2.5rem;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .harbor-scene {
    min-height: 600px;
  }

  .command-card {
    min-height: auto;
  }

  .policy-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .splash {
    grid-template-columns: 1fr;
  }

  .splash-art {
    min-height: 330px;
  }

  .splash-copy h2 {
    font-size: clamp(3rem, 11vw, 5rem);
  }

  .metric-ribbon {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-card {
    border-bottom: 1px solid var(--line);
  }

  .metric-card:nth-child(3) {
    border-right: 0;
  }

  .metric-card:nth-child(n + 4) {
    border-bottom: 0;
  }

  .metric-card:last-child {
    border-right: 0;
  }

  .ledger-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ledger-list li:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .ledger-list li:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 0.7rem;
    padding: 0.8rem 1rem;
  }

  .brand-lockup {
    gap: 0.55rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark i:nth-child(1) { left: 11px; bottom: 10px; }
  .brand-mark i:nth-child(2) { left: 18px; bottom: 10px; }
  .brand-mark i:nth-child(3) { left: 25px; bottom: 10px; }

  .eyebrow {
    display: none;
  }

  .brand-lockup h1 {
    max-width: 150px;
    font-size: 1.1rem;
    line-height: 1.05;
  }

  .night-chip {
    min-width: 80px;
  }

  .icon-button {
    width: 42px;
    padding: 0.5rem;
    justify-content: center;
  }

  .icon-button > span:last-child {
    display: none;
  }

  main {
    padding: 0.65rem;
  }

  .splash-art {
    min-height: 260px;
  }

  .splash-copy {
    padding: 1.5rem;
  }

  .splash-copy h2 {
    margin-top: 0.4rem;
    font-size: 3rem;
  }

  .briefing-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
  }

  .briefing-grid article {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 0.4rem;
  }

  .briefing-grid h3 {
    margin: 0;
  }

  .briefing-grid p {
    grid-column: 2;
  }

  .start-row {
    align-items: stretch;
    flex-direction: column;
  }

  .seed-block {
    text-align: left;
  }

  .metric-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card,
  .metric-card:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .metric-card:nth-child(2n) {
    border-right: 0;
  }

  .metric-card:last-child {
    grid-column: 1 / -1;
    border: 0;
  }

  .harbor-scene {
    min-height: 500px;
  }

  .district {
    transform: scale(0.78);
  }

  .district-power { top: 18%; left: 4%; }
  .district-market { top: 35%; right: 2%; }
  .district-waste { bottom: 12%; right: 12%; }
  .district-safety { bottom: 16%; left: 8%; }

  .map-footer,
  .command-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .key-hint {
    display: none;
  }

  .policy-options {
    grid-template-columns: 1fr;
  }

  .policy-option label {
    min-height: auto;
  }

  .forecast-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .forecast-panel p {
    grid-column: 1 / -1;
  }

  .choice-button {
    grid-template-columns: 32px 1fr;
  }

  .choice-cost {
    grid-column: 2;
    text-align: left;
  }

  .paper-columns {
    grid-template-columns: 1fr;
  }

  .recap-actions,
  .ending-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ending-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ledger-list {
    grid-template-columns: 1fr;
  }

  .ledger-list li,
  .ledger-list li:nth-child(4n),
  .ledger-list li:nth-child(2n) {
    border-right: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(0, 0, 0, 0.45);
  }

  .metric-card,
  .harbor-card,
  .command-card,
  .ledger-card,
  .policy-block {
    border-width: 2px;
  }
}
