@font-face {
  font-family: Barlow;
  src: url(fonts/barlow-400.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(fonts/barlow-600.woff2) format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(fonts/barlow-700.woff2) format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url(fonts/barlow-condensed-600.woff2) format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url(fonts/barlow-condensed-700.woff2) format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url(fonts/barlow-condensed-800-italic.woff2) format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
:root {
  --bg: #08151b;
  --panel: #101f27;
  --panel2: #122730;
  --line: #2b4149;
  --line-bright: #45656b;
  --text: #ecf4f0;
  --muted: #9cb2b6;
  --faint: #82a0a5;
  --mint: #83e6c6;
  --gold: #f5cb77;
  --red: #ff8f87;
  --blue: #84d2ed;
  --heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(ellipse at 14% -70%, #1d4045 0%, transparent 72%),
    linear-gradient(120deg, #0a191f, #071218 80%);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
canvas:focus-visible {
  outline: 2px solid #f6dea2;
  outline-offset: 3px;
}
button {
  border: 0;
}
button,
.phase,
.icon-button {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
.icon {
  display: block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.shell {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 2100px;
  margin: auto;
  padding: 0 clamp(13px, 1.85vw, 40px);
  display: grid;
  grid-template-rows: clamp(61px, 10.25vh, 104px) minmax(0, 1fr) clamp(34px, 6.4vh, 62px);
}
.command {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 40px);
}
.brand {
  display: flex;
  align-items: center;
  gap: clamp(7px, 0.75vw, 14px);
  min-width: 0;
  flex: 1;
  white-space: nowrap;
}
#crest {
  display: flex;
  align-items: center;
}
.crest {
  height: clamp(42px, 7vh, 67px);
  width: auto;
  filter: drop-shadow(0 0 10px #5fddc112);
}
.brand h1 {
  font-family: var(--heading);
  font-size: clamp(32px, 3.15vw, 53px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.026em;
  line-height: 0.94;
  color: #f2f7ef;
}
.brand-sub {
  font: 600 clamp(8px, 0.68vw, 11px)/1.2 var(--body);
  letter-spacing: 0.33em;
  color: #88adae;
  margin: 6px 0 0 3px;
}
.hud {
  display: flex;
  height: 53%;
  align-items: center;
  gap: clamp(18px, 2.6vw, 56px);
}
.stat {
  display: flex;
  align-items: center;
  gap: clamp(7px, 0.8vw, 15px);
  min-width: clamp(74px, 7.4vw, 132px);
}
.stat + .stat {
  position: relative;
  padding-left: clamp(15px, 1.8vw, 36px);
}
.stat + .stat:before {
  content: '';
  width: 1px;
  height: 72%;
  position: absolute;
  top: 14%;
  left: 0;
  background: #2b444b;
}
.stat-icon {
  display: grid;
  place-items: center;
  color: var(--mint);
}
.stat-icon .icon {
  width: clamp(22px, 2.05vw, 36px);
  height: auto;
  filter: drop-shadow(0 0 8px #82d4bc10);
}
.hp .stat-icon {
  color: var(--red);
}
.funds .stat-icon,
.funds strong {
  color: var(--gold);
}
.stat .micro {
  font-size: clamp(8px, 0.66vw, 11px);
  letter-spacing: 0.15em;
}
.stat strong {
  display: block;
  font: 700 clamp(24px, 2.27vw, 36px)/1 var(--heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
  margin-top: 2px;
}
.stat strong small {
  font-size: 0.56em;
  color: #8ca3a9;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.micro {
  display: block;
  font: 600 10px/1.25 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--muted);
}
.tools {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.56vw, 10px);
  margin-left: clamp(8px, 2.6vw, 60px);
}
.icon-button,
.close-btn {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1b2d34, #112127);
  border: 1px solid #344951;
  color: #b9cccb;
  border-radius: 6px;
  width: clamp(33px, 3vw, 48px);
  height: clamp(32px, 4.6vh, 45px);
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s;
}
.icon-button .icon {
  width: clamp(16px, 1.4vw, 23px);
  height: auto;
}
.icon-button:hover,
.close-btn:hover {
  background: #214047;
  color: #c0f5df;
  border-color: #63948a;
}
.console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(225px, 23.3vw, 380px);
  gap: clamp(10px, 1.15vw, 21px);
  min-height: 0;
}
.theater,
.dock {
  min-width: 0;
  min-height: 0;
  border: 1px solid #354d54;
  border-radius: 11px;
  box-shadow: 0 9px 30px #01080d42;
}
.theater {
  display: grid;
  grid-template-rows: minmax(0, 1fr) clamp(54px, 8.75vh, 85px);
  overflow: hidden;
  background: #102129;
}
.map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #104451;
}
.terrain,
.seafloor-light,
.vignette,
#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.terrain {
  object-fit: fill;
  pointer-events: none;
  filter: brightness(0.88) saturate(0.93);
  -webkit-user-drag: none;
}
.seafloor-light {
  background: linear-gradient(165deg, #13687616, transparent 38%, #010e232e);
  pointer-events: none;
}
#field {
  display: block;
  outline-offset: -3px;
  touch-action: none;
}
#field:focus:not(:focus-visible) {
  outline: none;
}
.vignette {
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 53%, transparent 49%, #04182028 100%),
    linear-gradient(180deg, #03111ba6 0, transparent 20%, transparent 81%, #04131c50 100%);
}
.location {
  position: absolute;
  top: clamp(13px, 2.25vh, 27px);
  left: clamp(15px, 1.65vw, 31px);
  pointer-events: none;
  text-shadow: 0 2px 12px #03101bba;
}
.sector-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font: 700 clamp(9px, 0.7vw, 12px)/1 var(--body);
  color: #a0e7d8;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.locator {
  width: 7px;
  height: 7px;
  background: #6fe5bb;
  transform: rotate(45deg);
  box-shadow: 0 0 8px #65eac050;
}
.location h2 {
  font: 700 clamp(29px, 3vw, 52px)/1.04 var(--heading);
  letter-spacing: 0.006em;
  margin-top: 5px;
}
.phase {
  position: absolute;
  top: clamp(14px, 2.35vh, 27px);
  right: clamp(13px, 1.4vw, 26px);
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #749e9568;
  background: #0a2428dc;
  padding: 7px 10px;
  border-radius: 4px;
  color: #baeed9;
  font: 700 clamp(8px, 0.68vw, 11px)/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.phase i,
.save i {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #80e9b8;
  border-radius: 50%;
  box-shadow: 0 0 8px #88eac480;
}
.phase.live {
  border-color: #e9b27970;
  color: #ffe2b3;
  background: #32241ddb;
}
.phase.live i {
  background: #ffbd76;
  box-shadow: 0 0 8px #ffbd7677;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.5;
  }
}
.corner {
  position: absolute;
  pointer-events: none;
  width: 16px;
  height: 16px;
  border: solid #a4d9cd75;
  border-width: 0;
}
.corner.tl {
  left: 7px;
  top: 7px;
  border-left-width: 1px;
  border-top-width: 1px;
  border-radius: 3px 0 0 0;
}
.corner.tr {
  right: 7px;
  top: 7px;
  border-right-width: 1px;
  border-top-width: 1px;
  border-radius: 0 3px 0 0;
}
.corner.bl {
  left: 7px;
  bottom: 7px;
  border-left-width: 1px;
  border-bottom-width: 1px;
  border-radius: 0 0 0 3px;
}
.corner.br {
  right: 7px;
  bottom: 7px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-radius: 0 0 3px 0;
}
.stage-hint {
  position: absolute;
  bottom: clamp(13px, 2.05vh, 24px);
  left: clamp(15px, 1.6vw, 30px);
  max-width: calc(100% - 40px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #092329ed;
  color: #d2e7e2;
  border: 1px solid #5b88846e;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: clamp(11px, 0.92vw, 15px);
  font-weight: 600;
  line-height: 1.15;
  pointer-events: none;
}
.stage-hint:empty {
  display: none;
}
.stage-hint .icon {
  color: #85e5c7;
  width: 16px;
  height: 16px;
}
.stage-hint b {
  color: var(--mint);
  font-weight: 700;
}
.stage-hint.aim {
  color: #bbfbf9;
  border-color: #88ecdfaa;
}
.announcement,
.toast {
  position: absolute;
  pointer-events: none;
  left: 50%;
  text-align: center;
  opacity: 0;
  z-index: 3;
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}
.announcement {
  top: 20%;
  transform: translate(-50%, -8px);
  padding: 9px 32px 12px;
  background: linear-gradient(100deg, #0a1d26ee, #112e39f3, #0a1d26ee);
  border: 1px solid #6c98977a;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0 5px 25px #05131c66;
}
.announcement.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.announcement small {
  font: 700 10px var(--body);
  text-transform: uppercase;
  color: var(--mint);
  letter-spacing: 0.2em;
  display: block;
}
.announcement strong {
  display: block;
  font: 700 clamp(21px, 2.2vw, 35px)/1.1 var(--heading);
  margin-top: 3px;
}
.toast {
  bottom: clamp(16px, 3.2vh, 36px);
  transform: translate(-50%, 6px);
  font: 600 clamp(12px, 0.96vw, 16px)/1.2 var(--body);
  padding: 9px 16px;
  border: 1px solid #79b5a785;
  border-radius: 5px;
  background: #091f26f5;
  box-shadow: 0 3px 18px #00131f80;
  white-space: nowrap;
  color: #d3f2e5;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.forecast {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(9px, 1vw, 18px);
  border-top: 1px solid #466370;
  background: linear-gradient(110deg, #162c32, #11232c 70%);
  padding: 0 clamp(13px, 1.5vw, 28px);
  text-align: left;
  min-width: 0;
  overflow: hidden;
}
.forecast:hover {
  background: linear-gradient(110deg, #1c383e, #142b33 80%);
}
.forecast-symbol {
  color: #8ccbbf;
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(32px, 3.15vw, 54px);
  height: clamp(32px, 3.15vw, 54px);
  border: 1px solid #375951;
  border-radius: 7px;
  background: #112a2b;
}
.forecast-symbol .icon {
  width: 58%;
  height: 58%;
}
.forecast-name {
  flex: 1;
  min-width: 0;
}
.forecast-name .micro {
  font-size: clamp(8px, 0.67vw, 11px);
  color: #9eb5b7;
  white-space: nowrap;
}
.forecast-name strong {
  display: block;
  margin-top: 2px;
  font: 600 clamp(19px, 1.68vw, 31px)/1.06 var(--heading);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.contacts {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 19px);
  height: 100%;
  color: #c6d9d9;
  font-size: clamp(12px, 1vw, 17px);
  font-weight: 600;
}
.contact {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.contact img {
  width: clamp(30px, 3.7vw, 61px);
  max-height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px #0007);
}
.contacts.crowded .contact {
  gap: 2px;
}
.contacts.crowded .contact img {
  width: clamp(25px, 2.5vw, 44px);
}
.forecast-more {
  color: #8ea7ac;
  display: flex;
  align-items: center;
  margin-left: 2px;
}
.forecast-more .icon {
  width: 14px;
}
.wave-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--mint);
  transition: width 0.25s;
  box-shadow: 0 0 6px #6ae6c5;
}
.dock {
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 1.31vw, 24px);
  background:
    radial-gradient(ellipse at 30% -20%, #263f43 0%, transparent 56%),
    linear-gradient(140deg, #15282e, #101e26 73%);
  overflow: hidden;
}
.bay-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.bay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 clamp(4px, 0.65vh, 9px);
}
.bay-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 clamp(24px, 2.05vw, 35px)/1.1 var(--heading);
}
.bay-head h2 .icon {
  color: var(--mint);
  width: 0.76em;
  height: 0.76em;
}
.bay-head .key-range {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #7d989d;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.bay-help {
  color: var(--muted);
  font-size: clamp(11px, 0.96vw, 16px);
  margin-bottom: clamp(9px, 2vh, 21px);
  line-height: 1.2;
}
.deck {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 1.2vh, 13px);
}
.tower-card {
  --accent: var(--mint);
  --tint: #163e38;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 clamp(8px, 0.65vw, 13px) 0 clamp(3px, 0.25vw, 7px);
  gap: clamp(5px, 0.72vw, 16px);
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(ellipse at 0% 50%, var(--tint), transparent 72%),
    linear-gradient(105deg, #172931, #17252e);
  border: 1px solid #384b53;
  border-radius: 7px;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}
.tower-card:before {
  content: '';
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 31%,
    #c1f5e205 31.3%,
    transparent 31.6%,
    transparent 34%,
    #c1f5e207 34.2%,
    transparent 34.5%
  );
}
.tower-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.tower-card.active {
  border-color: var(--accent);
  box-shadow:
    inset 3px 0 var(--accent),
    inset 0 0 24px #76e2af06;
  background: radial-gradient(ellipse at 6% 40%, var(--tint), transparent 86%), #192f32;
}
.tower-card.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  border: 4px solid transparent;
  border-bottom-color: var(--accent);
  border-right-color: var(--accent);
}
.tower-art {
  display: block;
  object-fit: contain;
  height: 86%;
  max-height: 100px;
  min-height: 0;
  width: 29%;
  flex: none;
  margin: 0 0 0 3px;
  filter: drop-shadow(0 4px 4px #020b1266);
  transition: transform 0.16s;
}
.tower-card:hover .tower-art {
  transform: translateY(-1px) scale(1.035);
}
.tower-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1px, 0.34vh, 5px);
  min-width: 0;
}
.tower-copy strong {
  white-space: nowrap;
  font: 600 clamp(18px, 1.59vw, 27px)/1.06 var(--heading);
  letter-spacing: 0.01em;
}
.tower-role {
  font-size: clamp(10px, 0.85vw, 15px);
  line-height: 1.13;
  color: #b3c4c8;
}
.cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font: 700 clamp(13px, 1.04vw, 18px)/1.05 var(--body);
  font-variant-numeric: tabular-nums;
}
.cost .icon {
  height: 0.94em;
  width: 0.94em;
}
.tower-copy .cost {
  margin-top: clamp(1px, 0.5vh, 6px);
}
kbd {
  font: 500 clamp(9px, 0.68vw, 12px)/1.18 var(--mono);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 0.3em;
  color: #b1c1c2;
  border: 1px solid #4b6167;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #0b1b22a3;
  text-transform: uppercase;
}
.tower-card > kbd {
  position: absolute;
  top: clamp(4px, 0.72vh, 9px);
  right: clamp(4px, 0.52vw, 9px);
  font-size: clamp(8px, 0.64vw, 11px);
  color: #82999d;
  border-color: #3f5359;
  background: #10212875;
}
.tower-card.active > kbd {
  color: #a8e5cf;
  border-color: #658c7d;
}
.tower-card.poor .cost {
  color: #a99b82;
}
.command-bottom {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 1.45vh, 17px);
  margin-top: clamp(9px, 2.15vh, 24px);
  padding-top: clamp(8px, 1.62vh, 18px);
  border-top: 1px solid #34474d;
}
.ability {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(7px, 0.8vw, 13px);
  min-height: clamp(39px, 6.55vh, 68px);
  padding: 4px clamp(7px, 0.75vw, 14px);
  border: 1px solid #3a5860;
  border-radius: 6px;
  background: linear-gradient(110deg, #18353c, #172b33);
  overflow: hidden;
  text-align: left;
}
.ability:hover,
.ability.armed {
  border-color: #8dd8ce;
  background: #1b3b41;
}
.ability-orb {
  width: clamp(26px, 2.95vw, 47px);
  height: clamp(26px, 2.95vw, 47px);
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #78c8bc63;
  border-radius: 50%;
  background: radial-gradient(circle at center, #27797630, #123e431a);
  color: #8cddcf;
}
.ability-orb .icon {
  width: 70%;
  height: 70%;
}
.ability-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.ability-copy strong {
  font: 600 clamp(17px, 1.43vw, 24px)/1 var(--heading);
}
.ability-copy > span {
  font-size: clamp(10px, 0.79vw, 13px);
  line-height: 1.2;
  color: #a7c5c8;
}
.ability kbd {
  color: #9eb5b9;
}
.charge {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #75d9cf;
  transition: width 0.16s;
}
.launch,
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  font: 700 clamp(18px, 1.6vw, 28px)/1 var(--heading);
  letter-spacing: 0.025em;
  color: #092e2b;
  background: linear-gradient(105deg, #78e3c2, #a7efc8);
  border-radius: 6px;
  border: 1px solid #afe9d0;
  box-shadow:
    inset 0 1px #deffe34d,
    0 2px 10px #72e3b212;
  min-height: clamp(39px, 6.2vh, 65px);
  padding: 6px 10px;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.launch:not(:disabled):hover,
.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.launch .icon {
  width: 0.86em;
  height: 0.86em;
}
.launch kbd {
  font-size: clamp(8px, 0.65vw, 11px);
  border-color: #2d756354;
  background: #84cfb247;
  color: #315d52;
  margin-left: auto;
  min-width: 0;
  height: auto;
  padding: 3px 5px;
}
.launch > span:first-child {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.launch.rush {
  background: linear-gradient(105deg, #f3bf78, #f5d397);
  border-color: #eacf9d;
  color: #3b2a17;
}
.launch:disabled {
  background: linear-gradient(100deg, #283b40, #28373c);
  border-color: #43555a;
  box-shadow: none;
  color: #aec3c4;
}
.launch:disabled > span:first-child {
  margin: 0;
}
.foot {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  color: #8fa5a9;
  font-size: clamp(11px, 0.86vw, 15px);
  min-width: 0;
}
.foot-tools {
  display: flex;
  gap: clamp(10px, 1.05vw, 18px);
  align-items: center;
}
.foot button {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: inherit;
  font-weight: 600;
  background: none;
  color: #b6cbca;
}
.foot button:hover {
  color: #9cf3d4;
}
.foot button .icon {
  color: #8bb7b0;
  width: 1.2em;
  height: 1.2em;
}
.divider {
  height: 14px;
  width: 1px;
  background: #3b4d52;
}
.key-guide {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 22px);
}
.key-guide > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.key-guide kbd {
  font-size: clamp(8px, 0.65vw, 11px);
  line-height: 1.2;
  color: #94acaf;
  border-color: #394f56;
}
.save {
  display: flex;
  align-items: center;
  gap: 7px;
  border-left: 1px solid #31454b;
  padding-left: clamp(12px, 1.7vw, 28px);
  font-size: clamp(9px, 0.72vw, 12px);
}
.save i {
  height: 4px;
  width: 4px;
}
.save.offline i {
  background: #cbb17e;
}
.map.notifying .stage-hint {
  opacity: 0;
}
.graft-count {
  display: flex;
  gap: 4px;
  align-items: center;
  border: 1px solid #51766a;
  border-radius: 5px;
  background: #204034;
  color: #abebca;
  padding: 3px 6px;
}
.inspector {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #44665f transparent;
  min-height: 0;
  flex: 1;
  padding-right: 2px;
}
.return {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: clamp(11px, 0.87vw, 15px);
  font-weight: 600;
  border: 0;
  background: none;
  padding: 0;
}
.return .icon {
  width: 12px;
  height: 12px;
}
.return:hover {
  color: var(--mint);
}
.inspect-id {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 16px);
  padding: clamp(7px, 1.6vh, 20px) 0;
  background: radial-gradient(ellipse at 16% 60%, #43736238, transparent 73%);
}
.inspect-id img {
  width: 29%;
  height: clamp(50px, 11vh, 115px);
  object-fit: contain;
}
.inspect-id h2 {
  font: 700 clamp(23px, 2.03vw, 34px)/1.05 var(--heading);
  margin: 4px 0;
}
.inspect-id .micro {
  font-size: clamp(8px, 0.69vw, 11px);
  color: var(--accent);
}
.inspect-id small {
  font-size: clamp(11px, 0.9vw, 15px);
  color: var(--muted);
}
.inspect-stats,
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: clamp(8px, 1.4vh, 16px) 0;
  border-block: 1px solid var(--line);
}
.inspect-stats > span,
.result-stats > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
}
.inspect-stats > span + span,
.result-stats > span + span {
  border-left: 1px solid var(--line);
}
.inspect-stats small,
.result-stats small {
  font-size: clamp(9px, 0.67vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 600;
}
.inspect-stats b {
  font: 600 clamp(18px, 1.57vw, 28px)/1 var(--heading);
}
.inspect-stats i {
  font: 400 0.65em var(--body);
  color: var(--muted);
}
.upgrade-box,
.branch-box {
  margin: clamp(9px, 2vh, 22px) 0;
}
.upgrade-box .micro,
.branch-box .micro {
  color: #a9d6c9;
  font-size: clamp(8px, 0.68vw, 11px);
}
.upgrade-box p {
  font-size: clamp(10px, 0.86vw, 14px);
  color: var(--muted);
  margin: 6px 0 10px;
}
.upgrade-box p b {
  font-weight: 600;
  color: #d7e6df;
}
.upgrade-btn,
.branch {
  border: 1px solid #547f70;
  background: linear-gradient(110deg, #24483e, #1c3734);
  border-radius: 5px;
  color: #ceefdb;
}
.upgrade-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  font: 600 clamp(17px, 1.4vw, 25px) var(--heading);
  padding: clamp(5px, 0.78vh, 10px) 8px;
}
.upgrade-btn .cost {
  margin-left: auto;
}
.upgrade-btn:disabled,
.branch:disabled {
  opacity: 0.57;
}
.upgrade-btn:not(:disabled):hover,
.branch:not(:disabled):hover {
  border-color: var(--mint);
  background: #284e41;
}
.branch {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 3px;
  width: 100%;
  padding: clamp(5px, 0.85vh, 11px) 9px;
  margin-top: 6px;
}
.branch strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font: 600 clamp(16px, 1.29vw, 23px) var(--heading);
}
.branch > span,
.evolved p {
  font: 400 clamp(10px, 0.83vw, 14px)/1.25 var(--body);
  color: #bbcdc6;
}
.evolved {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #233930;
  border: 1px solid #3b6354;
  border-radius: 5px;
  padding: 10px;
  margin: 12px 0;
}
.evolved > .icon {
  color: var(--mint);
}
.evolved b {
  font: 600 22px var(--heading);
}
.evolved p {
  margin-top: 3px;
}
.target-row {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: clamp(7px, 1.3vh, 16px) 0;
}
.target-row button,
.sell {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(10px, 0.86vw, 14px);
  font-weight: 600;
  color: #c2d2d0;
  border: 1px solid #3d545a;
  background: #172c32;
  border-radius: 5px;
  padding: 5px 7px;
}
.target-row button .icon:last-child {
  width: 9px;
}
.target-row small {
  font-size: clamp(9px, 0.79vw, 13px);
  color: var(--muted);
}
.sell {
  color: #e5bca6;
  background: transparent;
  border-color: #5a504b;
}
.sell .cost {
  font-size: 1em;
}
.sell:hover {
  border-color: #c28e70;
}
.modal-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: clamp(15px, 3.5vh, 40px);
  background: rgba(3, 12, 17, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dialog {
  position: relative;
  max-height: 100%;
  width: min(100%, 740px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 2.5vw, 38px);
  border: 1px solid #4d706f;
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 8% -20%, #32534e 0%, transparent 65%),
    linear-gradient(135deg, #172d33, #101f28 67%);
  box-shadow:
    0 26px 110px #0009,
    0 0 0 4px #96d0b808;
  scrollbar-width: thin;
  scrollbar-color: #45635e #182a30;
  animation: surface 0.18s ease-out;
}
@keyframes surface {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.993);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.close-btn {
  position: absolute;
  z-index: 2;
  right: clamp(15px, 1.6vw, 26px);
  top: clamp(15px, 1.6vw, 26px);
  height: 31px;
  width: 32px;
}
.close-btn .icon {
  width: 15px;
  height: 15px;
}
.dialog-heading {
  margin-bottom: clamp(16px, 2.7vh, 27px);
  padding-right: 24px;
}
.eyebrow {
  display: block;
  color: var(--mint);
  font: 700 clamp(9px, 0.72vw, 12px)/1.25 var(--body);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.dialog-heading h2 {
  font: 700 clamp(32px, 3.2vw, 49px)/1.05 var(--heading);
  margin: 5px 0;
}
.dialog-heading p,
.guide-note p,
.manual-foot,
.daily p,
.lesson p,
.manual-tower p,
.creature-row p,
.graft-card p,
.result-actions p,
.installed p {
  font: 400 clamp(12px, 1vw, 16px)/1.42 var(--body);
  color: #b5c9c9;
}
.dialog h3 {
  font-family: var(--heading);
  font-weight: 600;
}
.secondary,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #425f64;
  border-radius: 6px;
  background: linear-gradient(125deg, #233a3e, #1b3037);
  color: #d0e2de;
  padding: 9px 14px;
  font: 600 clamp(15px, 1.15vw, 20px)/1.15 var(--body);
}
.secondary:hover {
  border-color: #7ca89e;
  background: #284447;
}
.secondary .icon,
.text-button .icon {
  color: #9ecbc1;
  width: 1.07em;
  height: 1.07em;
}
.text-button {
  border: none;
  background: transparent;
  color: #a2bcba;
  font-size: 13px;
}
.primary {
  font-size: clamp(20px, 1.65vw, 28px);
  min-height: 43px;
}
.primary .icon {
  width: 18px;
  height: 18px;
}
.two-buttons {
  display: flex;
  gap: 9px;
}
.two-buttons > button {
  flex: 1;
}
.dialog-pause,
.dialog-restart,
.dialog-won,
.dialog-lost,
.dialog-grafts {
  width: min(100%, 450px);
}
.pause-buttons,
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.settings {
  margin: clamp(12px, 2.5vh, 23px) 0;
  border-top: 1px solid var(--line);
}
.settings button {
  background: none;
  border-bottom: 1px solid var(--line);
  width: 100%;
  padding: 10px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c2d2d1;
  font-size: 14px;
}
.settings button span,
.restart-link,
.local-record {
  display: flex;
  gap: 8px;
  align-items: center;
}
.settings .icon,
.restart-link .icon {
  color: #90b4ad;
  width: 16px;
  height: 16px;
}
.settings b {
  color: var(--mint);
  font: 600 13px var(--body);
}
.restart-link {
  border: 0;
  background: none;
  color: #aaaead;
  font-size: 13px;
  padding: 0;
}
.restart-link:hover {
  color: #e2c2b0;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #3c555c;
  gap: 5px;
  margin-bottom: 17px;
}
.tabs button {
  padding: 8px 13px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: 600 14px var(--body);
}
.tabs button:hover {
  color: #e3f3e9;
}
.tabs button.chosen {
  color: var(--mint);
  border-bottom-color: var(--mint);
}
.lesson-grid,
.manual-grid,
.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lesson,
.manual-tower,
.creature-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  background: #0e20277d;
  border: 1px solid #304a50;
  border-radius: 7px;
}
.lesson > .icon {
  width: 24px;
  height: 24px;
  color: var(--mint);
  margin-top: 2px;
}
.lesson h3,
.manual-tower h3,
.controls-grid h3,
.installed h3 {
  font: 600 clamp(19px, 1.5vw, 25px)/1.1 var(--heading);
  margin-bottom: 5px;
}
.guide-note {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #436159;
  background: #213a3355;
  border-radius: 6px;
  margin-top: 16px;
  padding: 12px 14px;
}
.guide-note > .icon {
  color: var(--mint);
  width: 22px;
  height: 22px;
}
.guide-note b {
  font-weight: 600;
  color: #d9ede3;
}
.manual-tower,
.creature-row {
  align-items: center;
  gap: 9px;
}
.manual-tower img {
  width: 25%;
  max-height: 93px;
  object-fit: contain;
}
.manual-tower h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.manual-tower h3 .cost {
  font-size: 12px;
}
.manual-tower small {
  font-size: 11px;
  color: var(--accent);
}
.manual-tower p,
.creature-row p {
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.36;
  margin-top: 4px;
}
.manual-foot {
  margin-top: 13px;
  font-size: 12px;
}
.creature-row img {
  width: 25%;
  height: clamp(40px, 7.8vh, 70px);
  object-fit: contain;
  filter: drop-shadow(0 3px 3px #0004);
}
.creature-row strong {
  font: 600 clamp(18px, 1.5vw, 25px)/1.1 var(--heading);
  color: #e2ebe8;
}
.creature-row em {
  font: 600 13px var(--body);
  color: var(--accent);
  margin-left: 4px;
}
.controls-grid {
  gap: 22px;
}
.controls-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #daeae2;
}
.controls-grid h3 .icon {
  width: 19px;
  height: 19px;
  color: var(--mint);
}
.control-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid #2a3e45;
  font-size: clamp(11px, 0.88vw, 14px);
  color: #b9c9c9;
}
.control-line kbd {
  text-transform: none;
  white-space: nowrap;
}
.dialog-chart {
  width: min(100%, 900px);
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 16px);
}
.sector-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  background: #142831;
  padding: 0;
  border: 1px solid #405761;
  border-radius: 7px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.sector-card:hover,
.sector-card.here {
  border-color: var(--accent);
}
.sector-card:hover {
  transform: translateY(-2px);
}
.sector-photo {
  height: clamp(73px, 14vh, 137px);
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid #3c5458;
}
.sector-photo > span {
  position: absolute;
  bottom: 7px;
  right: 7px;
  border-radius: 3px;
  background: #061a22bd;
  color: #e0f2e9;
  padding: 3px 5px;
  font: 600 10px var(--mono);
}
.sector-content {
  padding: clamp(10px, 1.1vw, 19px);
  display: flex;
  flex-direction: column;
  width: 100%;
}
.sector-content > .micro {
  font-size: 9px;
  color: var(--accent);
}
.sector-content > strong {
  font: 700 clamp(23px, 2vw, 31px)/1.13 var(--heading);
  margin: 3px 0;
}
.sector-content > small {
  font-size: 12px;
  color: var(--muted);
}
.sector-record,
.sector-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sector-record {
  margin: 12px 0;
  color: #a1b8bb;
  font-size: 11px;
  gap: 4px;
}
.stars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.stars i {
  color: #597073;
}
.stars .icon {
  width: 15px;
  height: 15px;
}
.stars i.lit {
  color: var(--gold);
}
.stars i.lit .icon {
  fill: #e6bb6a;
}
.sector-enter {
  margin-top: 2px;
  border-top: 1px solid #304a51;
  padding-top: 9px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.sector-enter .icon {
  width: 15px;
  height: 15px;
}
.daily {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 20px);
  padding: clamp(11px, 1.2vw, 21px);
  margin-top: 15px;
  border: 1px solid #796944;
  border-radius: 7px;
  background: linear-gradient(105deg, #46402d60, #253033);
}
.daily-icon {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #8872488c;
  color: var(--gold);
  background: #574b2a47;
}
.daily-icon .icon {
  width: 25px;
  height: 25px;
}
.daily .eyebrow {
  color: var(--gold);
}
.daily h3 {
  font-size: clamp(19px, 1.55vw, 26px);
  margin: 2px 0;
}
.daily h3 small {
  font: 400 0.72em var(--body);
  color: #bed0cf;
}
.daily p {
  font-size: clamp(11px, 0.9vw, 14px);
}
.daily button {
  margin-left: auto;
  white-space: nowrap;
  border-color: #806e4f;
}
.dialog-intel {
  width: min(100%, 570px);
}
.intel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 8px;
  border-block: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 14px;
}
.intel-head h3 {
  font: 700 clamp(25px, 2.2vw, 35px)/1.1 var(--heading);
  margin-top: 3px;
}
.intel-head button:disabled {
  opacity: 0.27;
}
.intel-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.intel-list .creature-row {
  padding: 7px 11px;
}
.intel-list img {
  width: 17%;
  height: 44px;
}
.graft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.graft-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(12px, 1.5vw, 25px);
  border: 1px solid #47645f;
  border-radius: 8px;
  text-align: left;
  background: radial-gradient(ellipse at 30% 0%, #2c4544, #172b32 80%);
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.graft-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.graft-jewel {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 13px 5px;
  background: #102a32;
  box-shadow: 0 0 17px #71b9a50f;
}
.graft-jewel .icon {
  width: 27px;
  height: 27px;
}
.graft-card strong {
  font: 600 clamp(22px, 1.75vw, 29px)/1.03 var(--heading);
  margin: 15px 0 7px;
}
.graft-card p {
  font-size: clamp(12px, 0.94vw, 15px);
  flex: 1;
}
.graft-pick {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #3c5557;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.graft-pick .icon {
  width: 13px;
  height: 13px;
}
.installed {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.installed > div {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.installed .icon {
  color: var(--accent);
  width: 27px;
  height: 27px;
}
.dialog-won,
.dialog-lost {
  text-align: center;
  padding-top: 0;
  overflow-x: hidden;
}
.dialog-won .dialog-heading,
.dialog-lost .dialog-heading {
  padding-right: 0;
  margin-bottom: 11px;
}
.result-hero {
  position: relative;
  margin: 0 -40px 12px;
  height: clamp(66px, 15vh, 138px);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(0deg, #1b3339 0, transparent 90%),
    linear-gradient(#0d202971, #0d2029a1),
    var(--art) center 43% / cover;
}
.result-hero img {
  width: 36%;
  min-height: 0;
  height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px #c8cc8b37);
}
.dialog-won > .stars {
  margin: 3px 0 13px;
}
.dialog-won > .stars .icon {
  width: 25px;
  height: 25px;
}
.result-stats {
  margin: 7px 0 15px;
}
.result-stats b {
  font: 700 26px var(--heading);
}
.result-actions p {
  font-size: 12px;
  margin: 0 0 5px;
}
.local-record {
  justify-content: center;
  font-size: 12px;
  color: var(--gold);
  margin-top: 14px;
}
.local-record .icon {
  width: 15px;
  height: 15px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-height: 610px) {
  .shell {
    grid-template-rows: 58px minmax(0, 1fr) 32px;
  }
  .brand-sub {
    margin-top: 3px;
  }
  .dock {
    padding: 11px;
  }
  .bay-help {
    margin-bottom: 8px;
  }
  .bay-head {
    margin-bottom: 2px;
  }
  .deck {
    gap: 6px;
  }
  .tower-art {
    height: 87%;
  }
  .tower-copy {
    gap: 1px;
  }
  .tower-copy .cost {
    margin-top: 2px;
  }
  .command-bottom {
    margin-top: 8px;
    padding-top: 8px;
    gap: 6px;
  }
  .ability {
    min-height: 36px;
  }
  .ability-orb {
    width: 26px;
    height: 26px;
  }
  .launch {
    min-height: 36px;
  }
  .theater {
    grid-template-rows: minmax(0, 1fr) 49px;
  }
  .location {
    top: 13px;
  }
  .phase {
    top: 14px;
    padding: 6px 8px;
  }
  .stage-hint {
    bottom: 13px;
    padding: 5px 8px;
  }
  .dialog {
    padding: 17px 22px;
  }
  .dialog-heading {
    margin-bottom: 13px;
  }
  .dialog-heading h2 {
    font-size: 31px;
  }
  .dialog-won,
  .dialog-lost {
    padding-top: 0;
  }
  .controls-grid {
    gap: 16px;
  }
  .control-line {
    padding: 3px 0;
  }
  .tabs {
    margin-bottom: 10px;
  }
  .lesson,
  .manual-tower,
  .creature-row {
    padding: 9px;
  }
  .chart-grid {
    gap: 10px;
  }
  .sector-photo {
    height: 75px;
  }
  .sector-content {
    padding: 9px 13px;
  }
  .sector-record {
    margin: 6px 0;
  }
  .daily {
    padding: 10px 12px;
    margin-top: 9px;
  }
  .inspect-id {
    padding: 5px 0;
  }
  .inspect-id img {
    height: 45px;
  }
  .inspect-stats {
    padding: 5px 0;
  }
  .upgrade-box,
  .branch-box {
    margin: 7px 0;
  }
  .target-row {
    padding: 6px 0;
  }
  .branch {
    margin-top: 4px;
    padding: 4px 7px;
  }
  .inspect-stats b {
    font-size: 17px;
  }
  .result-hero {
    height: 60px;
  }
  .result-actions {
    gap: 6px;
  }
  .result-stats {
    padding: 6px 0;
    margin: 5px 0 8px;
  }
  .result-stats b {
    font-size: 22px;
  }
}
@media (min-width: 1650px) {
  .tower-copy {
    gap: 5px;
  }
  .tower-art {
    width: 31%;
  }
  .bay-help {
    font-size: 16px;
  }
}
@media (max-width: 1050px) {
  .hud {
    gap: 13px;
  }
  .stat + .stat {
    padding-left: 15px;
  }
  .tools {
    margin-left: 7px;
  }
  .command {
    gap: 12px;
  }
  .tower-card {
    gap: 5px;
  }
  .brand h1 {
    font-size: 33px;
  }
  .brand-sub {
    letter-spacing: 0.26em;
  }
  .bay-head h2 {
    font-size: 24px;
  }
  .graft-grid {
    gap: 8px;
  }
  .key-guide {
    gap: 9px;
  }
  .save {
    padding-left: 12px;
  }
}
@media (max-width: 760px) {
  .shell {
    padding-inline: 7px;
  }
  .console {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 195px;
  }
  .brand-sub,
  .key-guide,
  .tools #guide {
    display: none;
  }
  .command {
    gap: 6px;
  }
  .brand h1 {
    font-size: 27px;
  }
  .crest {
    height: 35px;
  }
  .stat {
    min-width: 45px;
    gap: 4px;
  }
  .hud {
    gap: 6px;
  }
  .stat + .stat {
    padding-left: 7px;
  }
  .stat-icon .icon {
    width: 19px;
  }
  .tools {
    margin-left: 0;
  }
  .tower-copy strong {
    font-size: 17px;
  }
  .save {
    margin-left: auto;
  }
  .forecast-symbol {
    display: none;
  }
  .forecast {
    padding-inline: 8px;
  }
  .forecast-name strong {
    font-size: 17px;
  }
  .contact {
    font-size: 10px;
  }
  .stage-hint {
    font-size: 10px;
  }
  .phase {
    font-size: 7px;
    gap: 4px;
  }
  .lesson-grid,
  .manual-grid {
    gap: 6px;
  }
  .modal-screen {
    padding: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.command {
  display: grid;
  grid-template-columns: minmax(185px, 1fr) auto minmax(106px, 0.58fr);
}
.tools {
  justify-content: flex-end;
  margin-left: 0;
}
.terrain {
  filter: brightness(0.94) saturate(0.96);
}
.boss-meter {
  z-index: 2;
  position: absolute;
  top: clamp(13px, 2.2vh, 24px);
  left: 52%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  width: clamp(155px, 15vw, 236px);
  padding: 6px 10px;
  background: #15232af2;
  border: 1px solid #b88e62a1;
  border-radius: 5px;
  color: #f4c48e;
  text-align: left;
}
.boss-meter > span {
  flex: 1;
}
.boss-meter > .icon {
  width: 19px;
  height: 19px;
}
.boss-meter b {
  display: block;
  font: 600 clamp(13px, 1.05vw, 18px)/1.1 var(--heading);
}
.boss-meter i {
  display: block;
  height: 4px;
  margin: 4px 0;
  background: #473d38;
  border-radius: 1px;
  overflow: hidden;
}
.boss-meter u {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e58e6a, #f8d385);
}
.boss-meter small {
  display: block;
  font: 400 clamp(8px, 0.68vw, 11px)/1.1 var(--body);
  color: #ddc7aa;
}
.boss-meter:hover {
  border-color: #ffe2a7;
}
.boss-meter.jammed {
  border-color: #65aaa0;
}
.boss-meter.jammed small {
  color: var(--mint);
}
@media (max-width: 760px) {
  .command {
    grid-template-columns: minmax(125px, 1fr) auto auto;
  }
  .boss-meter {
    top: 50px;
    left: 55%;
    width: 133px;
  }
}
.branch {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.branch > img {
  width: 23%;
  height: clamp(32px, 6.8vh, 67px);
  object-fit: contain;
}
.branch-copy {
  flex: 1;
  display: block;
  min-width: 0;
}
.branch-copy > span {
  display: block;
  margin-top: 3px;
}
.branch-copy .cost {
  font-size: 0.79em;
}
.branch:disabled > img {
  filter: saturate(0.7);
}
.chart-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: #94afb0;
  font-size: clamp(10px, 0.83vw, 14px);
}
.chart-links button {
  display: flex;
  gap: 6px;
  align-items: center;
  background: none;
  padding: 0;
  color: #bfd5ce;
  font-weight: 600;
  font-size: inherit;
}
.chart-links button:hover {
  color: var(--mint);
}
.chart-links button .icon {
  width: 15px;
  height: 15px;
  color: var(--mint);
}
.chart-links button b {
  color: #8daaa4;
  font-weight: 400;
  font-size: 0.9em;
}
.chart-links > span {
  margin-left: auto;
}
.log-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #abc7c0;
  font-size: 13px;
  margin-bottom: 12px;
}
.log-progress b {
  color: var(--mint);
}
.log-progress > i {
  height: 3px;
  background: #314a4e;
  flex: 1;
}
.log-progress u {
  display: block;
  height: 100%;
  background: var(--mint);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.form-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #10232a9e;
  border: 1px solid #32484e;
  border-radius: 6px;
  padding: 8px 10px;
  position: relative;
}
.form-entry img {
  width: clamp(39px, 4vw, 67px);
  height: clamp(40px, 6.5vh, 68px);
  object-fit: contain;
  filter: saturate(0.23);
  opacity: 0.65;
}
.form-entry.recorded {
  border-color: #4b7067;
}
.form-entry.recorded img {
  opacity: 1;
  filter: none;
}
.form-entry h3 {
  font: 600 clamp(18px, 1.4vw, 23px)/1.1 var(--heading);
  color: #d9e5df;
  margin: 2px 0;
}
.form-entry p {
  font: 400 clamp(11px, 0.87vw, 14px)/1.24 var(--body);
  color: #a6bbba;
}
.form-entry .micro {
  font-size: 8px;
}
.form-entry.recorded .micro {
  color: var(--accent);
}
.form-entry > .icon {
  width: 13px;
  height: 13px;
  align-self: flex-start;
  color: var(--mint);
  margin-left: auto;
}
.dialog-history {
  width: min(100%, 640px);
}
.history {
  border-collapse: collapse;
  width: 100%;
  font-size: clamp(12px, 0.95vw, 15px);
  text-align: left;
}
.history th {
  font-size: 10px;
  color: #9bb4b4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.history td,
.history th {
  padding: 9px 5px;
  border-bottom: 1px solid #30454c;
}
.history td:not(:first-child) {
  font-variant-numeric: tabular-nums;
}
@media (max-height: 610px) {
  .form-entry {
    padding: 5px 8px;
    gap: 7px;
  }
  .chart-links {
    padding-top: 8px;
    margin-top: 8px;
  }
  .branch-copy > span {
    margin-top: 1px;
  }
  .branch {
    gap: 5px;
  }
}

/* Warden controls and the lower reef rail */
.reef-rail {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(158px, 17.4vw, 280px);
}
.reef-rail .forecast {
  height: 100%;
  padding-inline: clamp(10px, 1.15vw, 21px);
  gap: clamp(6px, 0.85vw, 14px);
}
.reef-rail .contacts {
  gap: clamp(4px, 0.6vw, 11px);
}
.reef-rail .contacts.crowded {
  gap: clamp(4px, 0.45vw, 9px);
}
.nursery-link {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(7px, 0.7vw, 14px);
  padding: 0 clamp(9px, 1.12vw, 18px);
  border-left: 1px solid #686650;
  border-top: 1px solid #767558;
  background:
    radial-gradient(ellipse at 10% 95%, #79624566, transparent 65%),
    linear-gradient(125deg, #323e39, #253438);
  text-align: left;
  color: #f4eee0;
}
.nursery-link:hover {
  background: linear-gradient(120deg, #3d4d40, #354442);
}
.nursery-link strong,
.nursery-link small {
  display: block;
}
.nursery-link strong {
  font: 600 clamp(18px, 1.6vw, 27px)/1 var(--heading);
}
.nursery-link small {
  font: 600 clamp(10px, 0.79vw, 13px)/1.3 var(--body);
  margin-top: 3px;
  color: #ddcfac;
}
.nursery-link > span:last-child {
  margin-left: auto;
  color: #dbc89a;
}
.nursery-link > span:last-child .icon {
  width: 13px;
}
.egg-thumb {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(31px, 3.3vw, 60px);
  height: 83%;
}
.egg-thumb img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 5px #050e12a3);
}
.nursery-link.hatch-ready {
  background:
    radial-gradient(ellipse at 12% 80%, #9b653c, transparent 60%),
    linear-gradient(120deg, #595133, #38493c);
  border-color: #d9ba76;
}
.hatch-ready small {
  color: #ffedb6;
}
.hatch-ready .egg-thumb {
  animation: egg-rock 2.3s ease-in-out infinite;
  transform-origin: 50% 85%;
}
@keyframes egg-rock {
  0%,
  36%,
  62%,
  100% {
    transform: rotate(0);
  }
  43% {
    transform: rotate(-6deg);
  }
  53% {
    transform: rotate(5deg);
  }
}
.ability {
  isolation: isolate;
  --species: #9af5cc;
  background: radial-gradient(ellipse at 0% 50%, #345148 0%, transparent 70%), #182e34;
  border-color: #49665d;
  gap: 9px;
  padding-left: 4px;
}
.ability.armed,
.ability:hover {
  border-color: var(--species);
}
.ability-portrait {
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
  width: clamp(47px, 4.4vw, 83px);
  height: clamp(33px, 5.8vh, 57px);
}
.ability-portrait img {
  width: 100%;
  height: 111%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px #00171b98);
}
.ability-copy strong {
  color: #e8f5de;
  font: 600 clamp(17px, 1.35vw, 24px)/1.06 var(--heading);
}
.charge {
  background: var(--species);
}
.pearl-tally {
  position: absolute;
  bottom: clamp(13px, 2.05vh, 24px);
  right: clamp(15px, 1.5vw, 28px);
  height: 27px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #13292ee0;
  border: 1px solid #b3a77e84;
  padding: 4px 9px;
  border-radius: 20px;
  color: #eee3c9;
  pointer-events: none;
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 600;
}
.pearl-tally b {
  display: flex;
  gap: 4px;
}
.pearl-tally i,
.pearl-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #bbaa85;
  background: #304451;
}
.pearl-tally i.lit,
.pearl-dot {
  border-color: #fff0bb;
  background: radial-gradient(circle at 30% 25%, white, #ffe7a5 36%, #c7b5c9 65%, #8f9ea2);
  box-shadow: 0 0 7px #ecc97d80;
}
.chart-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dialog-chart {
  width: min(100%, 1020px);
}
.chart-grid .sector-content > strong {
  font-size: clamp(21px, 1.9vw, 30px);
}
.chart-links {
  flex-wrap: wrap;
}
.dialog-passage {
  width: min(100%, 510px);
  padding-top: 0;
}
.passage-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(100px, 21vh, 197px);
  margin: 0 calc(-1 * clamp(20px, 2.5vw, 38px)) 18px;
  overflow: hidden;
  background:
    linear-gradient(0deg, #152b32 0, transparent 45%, #111f3150 100%),
    var(--art) center/cover;
}
.passage-hero img {
  height: 87%;
  width: 48%;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px #052236);
}
.passage-rule {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid #526879;
  border-radius: 6px;
  background: #273947;
  color: #c0d7f4;
}
.passage-rule h3 {
  font-size: 22px;
  color: #e0e5fb;
}
.passage-rule p,
.passage-note {
  font-size: 14px;
  line-height: 1.38;
}
.passage-rule p {
  color: #c8d5df;
}
.passage-note {
  margin: 14px 0;
  color: #bbcfcb;
}
.passage-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}
.passage-cta .primary,
.nursery-action .primary {
  padding: 0.55em 1.15em;
  min-height: 36px;
}
.passage-cta small {
  font-size: 12px;
  color: #aec4c2;
}

/* The nursery uses one continuous, illustrated aquarium. */
.dialog-nursery {
  width: min(100%, 890px);
  padding: 0;
  overflow: hidden auto;
  background: linear-gradient(136deg, #192f35, #13242e);
}
.dialog-nursery .close-btn {
  background: #0e222ddc;
}
.habitat {
  position: relative;
  isolation: isolate;
  height: clamp(200px, 42vh, 396px);
  overflow: hidden;
  background:
    linear-gradient(0deg, #122a32 0%, transparent 15%, transparent 72%, #081c3480 100%),
    url('art/nursery.webp') center 62% / cover;
}
.hab-title {
  position: absolute;
  top: clamp(17px, 2.8vh, 34px);
  left: clamp(18px, 2.5vw, 40px);
  z-index: 3;
  text-shadow: 0 2px 9px #061622;
}
.hab-title .eyebrow {
  color: #afead8;
}
.hab-title h2 {
  font: 700 clamp(32px, 3.7vw, 60px)/1.05 var(--heading);
  margin-top: 4px;
  color: #f3f4e8;
}
.hab-bank {
  position: absolute;
  right: clamp(69px, 6vw, 90px);
  top: clamp(17px, 2.8vh, 34px);
  display: flex;
  gap: 7px;
  align-items: center;
  background: #12252ecd;
  border: 1px solid #d6ca9f88;
  border-radius: 25px;
  padding: 5px 11px;
  font: 600 13px var(--body);
  color: #f4ebc9;
  z-index: 3;
}
.hab-bank .pearl-dot {
  width: 12px;
  height: 12px;
}
.specimen {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 38%;
  height: 63%;
  display: grid;
  place-items: center;
}
.specimen-glow {
  position: absolute;
  inset: -8%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--species) 35%, transparent),
    transparent 65%
  );
}
.large-creature,
.hatch-shell {
  position: absolute;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  z-index: 1;
  filter: drop-shadow(0 8px 7px #06212a55);
}
.specimen.egg {
  top: 60%;
  height: 47%;
}
.egg .large-creature {
  animation: egg-float 4s ease-in-out infinite;
}
.free .large-creature {
  animation: creature-float 5s ease-in-out infinite;
}
@keyframes egg-float {
  0%,
  100% {
    transform: translateY(3px) rotate(-2deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}
@keyframes creature-float {
  0%,
  100% {
    transform: translate(-8px, 1px) rotate(-2deg);
  }
  48% {
    transform: translate(9px, -5px) rotate(2deg);
  }
}
.resident {
  position: absolute;
  height: 19%;
  width: 14%;
  top: 48%;
  left: 14%;
  opacity: 0.88;
  animation: resident-swim 12s ease-in-out infinite alternate;
}
.resident img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: creature-float 3.9s ease-in-out infinite;
}
.resident-1 {
  left: 76%;
  top: 51%;
  height: 24%;
  animation-delay: -6s;
}
.resident-2 {
  left: 65%;
  top: 26%;
  height: 15%;
  animation-delay: -9s;
}
@keyframes resident-swim {
  to {
    transform: translate(20%, -15%) rotate(5deg);
  }
}
.bubbles {
  position: absolute;
  pointer-events: none;
  inset: 0;
  overflow: hidden;
}
.bubbles i {
  position: absolute;
  left: 25%;
  bottom: -6px;
  width: 7px;
  height: 7px;
  border: 1px solid #ceffffaa;
  border-radius: 50%;
  box-shadow: inset 1px 2px 2px #e7fffc66;
  animation: rise 7s linear infinite;
}
.bubbles i:nth-child(2) {
  left: 70%;
  animation-delay: -2.1s;
}
.bubbles i:nth-child(3) {
  left: 39%;
  animation-delay: -4s;
  width: 4px;
  height: 4px;
}
.bubbles i:nth-child(4) {
  left: 65%;
  animation-delay: -1s;
}
.bubbles i:nth-child(5) {
  left: 17%;
  animation-delay: -5.6s;
}
@keyframes rise {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  18% {
    opacity: 0.8;
  }
  88% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translate(14px, -260px);
  }
}
.hatch-shell {
  height: 76%;
  animation: hatch-shell 0.8s ease-out both;
}
.reveal .large-creature {
  animation:
    hatch-rise 1.45s ease-out both,
    creature-float 5s 1.45s ease-in-out infinite;
}
.reveal .specimen-glow {
  animation: hatch-glow 1.8s ease-out both;
}
@keyframes hatch-shell {
  0%,
  28% {
    opacity: 1;
    transform: rotate(-5deg);
  }
  15%,
  42% {
    transform: rotate(8deg);
  }
  52% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    transform: scale(1.36);
    filter: blur(5px);
  }
}
@keyframes hatch-rise {
  0%,
  30% {
    opacity: 0;
    transform: scale(0.35);
  }
  55% {
    opacity: 1;
    transform: scale(0.86) rotate(-9deg);
  }
  76% {
    transform: scale(1.06) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes hatch-glow {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  38% {
    opacity: 1;
    transform: scale(1.9);
    background: radial-gradient(ellipse, #fff4caf0, #fff3ae50 40%, transparent 70%);
  }
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
}
.nursery-inner {
  padding: clamp(12px, 1.6vw, 24px) clamp(16px, 2vw, 29px) clamp(16px, 2vw, 27px);
}
.species-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 0.7vw, 12px);
}
.species {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.7vw, 11px);
  min-width: 0;
  text-align: left;
  background: #1a3038;
  border: 1px solid #3f5960;
  border-radius: 6px;
  padding: 6px 7px;
  color: #e4ede6;
}
.species:hover,
.species.selected {
  border-color: var(--species);
  background: linear-gradient(115deg, #304447, #23333f);
}
.species img {
  flex: none;
  width: clamp(28px, 3.2vw, 50px);
  height: clamp(32px, 5.5vh, 54px);
  object-fit: contain;
}
.species b,
.species small {
  display: block;
}
.species b {
  font: 600 clamp(15px, 1.35vw, 22px)/1.1 var(--heading);
}
.species small {
  color: #b4c8c6;
  font: 600 clamp(10px, 0.78vw, 13px)/1.2 var(--body);
  margin-top: 3px;
}
.species.selected small {
  color: var(--species);
}
.warden-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 27%);
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  margin-top: clamp(15px, 2.5vh, 24px);
}
.warden-details .eyebrow {
  color: var(--species);
  font-size: 10px;
}
.warden-details h3 {
  font: 700 clamp(24px, 2.2vw, 36px)/1.1 var(--heading);
  margin: 4px 0 5px;
}
.warden-details p {
  color: #c0d0d3;
  font: 400 clamp(12px, 1vw, 15px)/1.4 var(--body);
}
.warden-details .first-words {
  color: #ebd7ad;
  margin-top: 6px;
  font-style: italic;
}
.nursery-action {
  text-align: center;
}
.nursery-action button {
  width: 100%;
}
.incubation {
  text-align: left;
  color: #edd5a1;
}
.incubation strong {
  font: 600 clamp(17px, 1.5vw, 24px) var(--heading);
}
.incubation div {
  height: 5px;
  background: #0c1d23;
  border-radius: 4px;
  margin: 6px 0;
  overflow: hidden;
}
.incubation i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #dfa36b, #ffe1a6);
  border-radius: 4px;
}
.incubation small {
  color: #abbfc1;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .reef-rail .contacts.crowded .contact:nth-child(n + 4) {
    display: none;
  }
  .reef-rail .contacts.crowded > span:last-child:not(.contact) {
    display: none;
  }
  .reef-rail .forecast-symbol {
    width: 29px;
    height: 29px;
  }
  .reef-rail .forecast-more {
    display: none;
  }
  .pearl-tally {
    font-size: 10px;
  }
  .warden-details .eyebrow {
    font-size: 9px;
  }
  .key-guide {
    gap: 7px;
  }
}
@media (max-height: 610px) {
  .ability-portrait {
    height: 30px;
  }
  .ability {
    min-height: 38px;
  }
  .dialog-nursery {
    padding: 0;
  }
  .habitat {
    height: clamp(168px, 40vh, 228px);
  }
  .dialog-passage {
    padding-top: 0;
  }
  .passage-hero {
    margin-left: -22px;
    margin-right: -22px;
    margin-bottom: 8px;
  }
  .pearl-tally {
    bottom: 12px;
    height: 25px;
  }
  .stage-hint {
    max-width: calc(100% - 145px);
  }
  .egg-thumb {
    height: 80%;
  }
  .warden-details {
    margin-top: 12px;
  }
  .nursery-inner {
    padding: 10px 16px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .egg-thumb,
  .large-creature,
  .resident,
  .resident img,
  .bubbles i,
  .specimen-glow {
    animation: none !important;
  }
  .hatch-shell {
    display: none;
  }
  .bubbles {
    display: none;
  }
}
.rift-button {
  position: absolute;
  top: clamp(57px, 8vh, 86px);
  right: clamp(14px, 1.6vw, 28px);
  padding: 4px 8px 4px 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(110deg, #4a3932f2, #1c2e33f5);
  border: 1px solid #aa8e66;
  border-radius: 6px;
  text-align: left;
  color: #f5deb8;
}
.rift-button:hover {
  border-color: #ffe2a4;
}
.rift-button img {
  width: clamp(27px, 2.6vw, 43px);
  height: 30px;
  object-fit: contain;
}
.rift-button small,
.rift-button strong {
  display: block;
}
.rift-button small {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font: 700 9px var(--body);
  color: #dcc7a0;
}
.rift-button strong {
  font: 600 17px/1.02 var(--heading);
}
.rift-button .icon {
  width: 13px;
}
.dialog-rift {
  width: min(100%, 500px);
  padding-top: 0;
}
.rift-scene {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8%;
  height: clamp(100px, 17vh, 174px);
  margin: 0 calc(-1 * clamp(20px, 2.5vw, 38px)) 14px;
  background:
    linear-gradient(0deg, #233239, transparent 70%),
    linear-gradient(90deg, #1f292968, #09233188),
    var(--terrain) center/cover;
}
.rift-scene img:first-child {
  height: 90%;
}
.rift-scene img:last-child {
  height: 57%;
}
.salvage-prize,
.graft-relic {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 13px;
  background: linear-gradient(110deg, #454139, #23343b);
  border: 1px solid #8f815d;
  border-radius: 7px;
}
.salvage-prize img,
.graft-relic img {
  height: 48px;
  width: 49px;
  object-fit: contain;
}
.salvage-prize .eyebrow,
.graft-relic .eyebrow {
  color: #f2d59a;
}
.salvage-prize h3,
.graft-relic b {
  font: 600 23px/1.14 var(--heading);
  color: #f9efe0;
}
.salvage-prize p {
  font-size: 13px;
  color: #d9c9aa;
}
.graft-relic {
  margin: 0 0 12px;
}
.relic-link {
  position: absolute;
  bottom: 13px;
  left: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 8px 5px 9px;
  border: 1px solid #9ba68c89;
  border-radius: 4px;
  background: #122d31df;
  color: #ebdfc6;
  font: 600 clamp(10px, 0.85vw, 13px) var(--body);
}
.relic-link b {
  color: #ebd28e;
}
.relic-link .icon {
  width: 14px;
}
.relic-link .icon:last-child {
  width: 9px;
}
.hab-relic {
  position: absolute;
  z-index: 2;
  bottom: 11%;
  left: 14%;
  width: 8%;
  height: 17%;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 2px 2px #04252c);
}
.hab-relic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.artifact-1 {
  left: 31%;
  bottom: 9%;
}
.artifact-2 {
  left: 65%;
  bottom: 7%;
}
.artifact-3 {
  left: 82%;
  bottom: 12%;
}
.dialog-relics {
  width: min(100%, 820px);
}
.relic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.relic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(150deg, #24353c, #142931);
  border: 1px solid #455c61;
  border-radius: 6px;
  padding: 12px;
}
.relic-card.found {
  border-color: #a39169;
}
.relic-portrait {
  width: 100%;
  height: clamp(64px, 12vh, 130px);
  margin-bottom: 14px;
}
.relic-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.68);
}
.relic-card.found img {
  filter: none;
}
.relic-card .eyebrow {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #bccdcb;
}
.relic-card h3 {
  font-size: clamp(19px, 1.65vw, 26px);
  margin: 4px 0;
}
.relic-card p {
  font-size: 12px;
  color: #b8c9c8;
  line-height: 1.38;
  flex: 1;
}
.relic-card b {
  font-size: 11px;
  color: #ceb98f;
  border-top: 1px solid #53605e;
  padding-top: 7px;
  margin-top: 10px;
  width: 100%;
}
@media (max-height: 610px) {
  .dialog-rift {
    padding-top: 0;
  }
  .rift-scene {
    margin-left: -22px;
    margin-right: -22px;
  }
  .graft-relic img {
    height: 31px;
  }
  .graft-relic {
    padding: 5px 12px;
  }
  .dialog-rift .dialog-heading {
    margin-bottom: 7px;
  }
  .salvage-prize img {
    height: 37px;
  }
}
.wake-record {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: clamp(11px, 0.9vw, 14px);
  color: #d0d9c9;
  margin: 7px 0 10px;
}
.wake-record .icon {
  color: #9ee1c4;
  width: 15px;
}

/* Song gardens and the illustrated field recording book. */
.command {
  grid-template-columns: minmax(170px, 1fr) auto auto auto;
}
.songbook-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #65877d80;
  border-radius: 5px;
  background: linear-gradient(120deg, #213c39, #172e32);
  color: #d7eee0;
}
.songbook-link .icon {
  width: 18px;
  height: 18px;
  color: #a8dbc3;
}
.songbook-link strong {
  font: 600 clamp(14px, 1.1vw, 19px) var(--heading);
}
.songbook-link small {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #afd6c7;
}
.songbook-link:hover,
.garden-status:hover,
.fan-tool:hover,
.undo-tool:hover:not(:disabled) {
  border-color: #bae7c8;
}
.garden-status {
  position: absolute;
  right: clamp(14px, 1.6vw, 28px);
  top: clamp(50px, 7.55vh, 78px);
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 3px 9px 3px 3px;
  border: 1px solid #acb99b94;
  border-radius: 6px;
  background: linear-gradient(120deg, #18383aeb, #122c33ed);
  text-align: left;
  color: #f6e3ba;
}
.garden-status img {
  width: clamp(33px, 3.3vw, 52px);
  height: clamp(29px, 3.6vh, 42px);
  object-fit: contain;
}
.garden-status b,
.garden-status small {
  display: block;
}
.garden-status small {
  font-size: clamp(9px, 0.74vw, 12px);
  font-weight: 600;
  color: #cfdfd4;
}
.garden-status b {
  font: 650 clamp(15px, 1.2vw, 21px)/1.05 var(--heading);
}
.garden-status[hidden],
.songbook-link[hidden] {
  display: none;
}
.garden-edit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: clamp(5px, 0.9vh, 10px);
}
.garden-edit button,
.transplant-btn {
  display: flex;
  align-items: center;
  border: 1px solid #45605b;
  background: #192e32;
  border-radius: 5px;
}
.fan-tool {
  gap: 5px;
  text-align: left;
  min-width: 0;
  padding: 1px 6px 1px 2px;
}
.fan-tool img {
  width: clamp(30px, 3.6vw, 50px);
  height: clamp(31px, 4.4vh, 52px);
  object-fit: contain;
}
.fan-tool b,
.fan-tool small {
  display: block;
}
.fan-tool b {
  font: 650 clamp(16px, 1.3vw, 22px)/1 var(--heading);
  color: #f6d5ba;
}
.fan-tool small {
  font-size: clamp(9px, 0.78vw, 13px);
  color: #b4cabc;
  line-height: 1.2;
}
.fan-tool kbd,
.transplant-btn kbd {
  margin-left: auto;
}
.fan-tool.active {
  border-color: #f4cfaa;
  background: #493d35;
}
.undo-tool,
.transplant-btn {
  gap: 5px;
  padding: 4px 8px;
  color: #c6d9cf;
  font-size: clamp(11px, 0.9vw, 15px);
}
.undo-tool .icon,
.transplant-btn .icon {
  width: 15px;
  height: 15px;
}
.undo-tool:disabled {
  opacity: 0.43;
}
.transplant-btn {
  width: 100%;
  justify-content: center;
  margin-block: 6px;
  padding: 7px 9px;
}
.transplant-btn kbd {
  margin-left: 2px;
}
.in-garden .tower-card {
  min-height: 0;
}
.in-garden .map .pearl-tally {
  bottom: clamp(10px, 1.75vh, 20px);
}
.boss-meter.calling {
  border-color: #ffbbdd;
  background: #402a41f0;
}
.boss-meter.calling u {
  background: #efb9d3;
}
.dialog-songbook {
  width: min(100%, 770px);
  padding: clamp(16px, 2.3vw, 32px);
  background: radial-gradient(ellipse at top left, #27453e 0%, #142c32 52%, #0e2029 100%);
}
.song-heading {
  position: relative;
  margin: 0 0 15px;
}
.song-heading h2 {
  font: 700 clamp(32px, 3.5vw, 55px)/1.02 var(--heading);
  margin-top: 3px;
}
.shelf-count {
  position: absolute;
  right: 40px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bdd5c7;
  font-weight: 600;
  font-size: 12px;
}
.shelf-count .icon {
  width: 18px;
}
.song-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 11px;
}
.song-leaf {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
  background: #0e252bd9;
  border: 1px solid #385356;
  border-radius: 6px;
  padding: 3px 8px;
  color: #d7e6df;
}
.song-leaf img {
  width: clamp(42px, 5vw, 75px);
  height: 44px;
  object-fit: contain;
}
.song-leaf b,
.song-leaf small {
  display: block;
}
.song-leaf b {
  font: 650 21px/1 var(--heading);
}
.song-leaf small {
  font-size: 11px;
  color: #b4c9c4;
}
.song-leaf.selected,
.song-leaf:hover {
  border-color: var(--accent);
  background: linear-gradient(110deg, #314945, #1d3338);
}
.song-leaf.selected b {
  color: var(--accent);
}
.song-scene,
.garden-finale,
.song-reward {
  background-image: var(--painting);
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.song-scene {
  border-radius: 7px;
  min-height: clamp(176px, 29.5vh, 320px);
  display: flex;
  align-items: end;
  border: 1px solid #78918b66;
}
.song-scene:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #071923ee, #10262aa1 18%, transparent 60%);
}
.song-scene > div {
  padding: 16px 21px 15px;
  max-width: 96%;
  text-shadow: 0 2px 7px #061d22;
}
.song-scene small,
.song-reward small {
  font-size: clamp(10px, 0.85vw, 14px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2e5cc;
}
.song-scene h3 {
  font: 700 clamp(28px, 3vw, 46px)/1.04 var(--heading);
  margin: 4px 0;
  color: #fff2d4;
}
.song-scene p,
.song-tools p,
.migration-card p {
  font: 400 clamp(12px, 0.94vw, 16px)/1.35 var(--body);
  color: #e8f1e9;
  margin: 0;
}
.song-scene.undiscovered {
  background-position: center 46%;
}
.song-scene.undiscovered:before {
  background:
    linear-gradient(90deg, #0c242fd9, transparent 87%),
    linear-gradient(0deg, #0e232d, transparent 68%);
}
.song-scene.undiscovered > div {
  max-width: 65%;
}
.waiting-whale {
  position: absolute;
  z-index: -1;
  right: 6%;
  top: 4%;
  height: 80%;
  width: 37%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px #183c41);
}
.song-tools,
.garden-enter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.song-tools {
  padding: 12px 0;
  min-height: 52px;
}
.song-tools > div {
  flex: 1;
}
.song-tools p,
.migration-card p {
  color: #b9cbc6;
}
.song-tools .secondary {
  font-size: 14px;
  padding: 6px 8px;
}
.favorite.selected {
  border-color: #b6ddbd;
  color: #b6edca;
}
.garden-enter .primary {
  flex: 1;
}
.song-tools .secondary:disabled {
  opacity: 0.7;
}
.migration-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #49706c8c;
  margin-top: 17px;
  padding-top: 13px;
}
.migration-card > img {
  width: 64px;
  height: 49px;
  object-fit: contain;
}
.migration-card > div {
  flex: 1;
}
.migration-card strong {
  font: 650 21px/1.2 var(--heading);
  display: block;
  color: #e6e8d6;
}
.migration-card .eyebrow {
  color: #e4cd95;
}
.stamp-archive {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.stamp-archive > span:not(.micro) {
  font-size: 11px;
  padding: 3px 6px;
  border: 1px solid #766e528c;
  border-radius: 4px;
  color: #ecd696;
}
.stamp-archive b {
  font-weight: 400;
}
.chart-gardens {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid #65877c;
  box-shadow: inset 0 0 25px #26443f;
  background: #1f3838;
  border-radius: 6px;
  padding: 2px 12px;
  color: #e2ecde;
  text-align: left;
}
.chart-gardens img {
  width: 65px;
  height: 42px;
  object-fit: contain;
}
.chart-gardens b,
.chart-gardens small {
  display: block;
}
.chart-gardens b {
  font: 650 21px/1 var(--heading);
}
.chart-gardens small {
  color: #c8d6cc;
  font-size: 12px;
}
.chart-gardens .icon {
  margin-left: auto;
}
.garden-lessons {
  display: grid;
  gap: 7px;
}
.garden-lessons > div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 10px;
  background: #142d32;
  border: 1px solid #354b50;
  border-radius: 5px;
}
.garden-lessons img {
  width: 58px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.garden-lessons p {
  font-size: clamp(12px, 1vw, 15px);
  color: #b9cfc8;
  line-height: 1.4;
  margin: 3px 0 0;
}
.song-reward {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  min-height: clamp(95px, 17vh, 160px);
  text-align: left;
  border-radius: 6px;
  border: 1px solid #bbab7a96;
  margin: 0 0 12px;
  padding: 12px 15px;
  color: #ffebc0;
  background-position: 50% 46%;
}
.song-reward:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #091e2beb, transparent 90%);
}
.song-reward small,
.song-reward strong {
  display: block;
}
.song-reward strong {
  font: 650 clamp(23px, 2.4vw, 35px)/1.1 var(--heading);
}
.song-reward i {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 600 13px var(--body);
}
.song-reward i .icon {
  width: 16px;
}
.garden-finale {
  height: clamp(104px, 20vh, 200px);
  margin: 0 calc(-1 * clamp(16px, 2.4vw, 34px)) 14px;
  background-position: center 44%;
}
@media (max-height: 610px) {
  .song-heading {
    margin-bottom: 8px;
  }
  .song-shelf {
    margin-bottom: 7px;
  }
  .song-leaf img {
    height: 34px;
  }
  .song-scene {
    min-height: 145px;
  }
  .song-tools {
    padding: 7px 0;
    min-height: 40px;
  }
  .migration-card {
    margin-top: 9px;
    padding-top: 7px;
  }
  .song-scene > div {
    padding: 10px 14px;
  }
  .garden-edit {
    margin-top: 5px;
  }
  .garden-status {
    top: 44px;
  }
  .garden-lessons {
    gap: 5px;
  }
  .garden-lessons > div {
    padding: 6px;
  }
  .in-garden .bay-help {
    margin-bottom: 6px;
  }
  .in-garden .tower-copy strong {
    font-size: 20px;
  }
  .in-garden .tower-card .cost {
    font-size: 12px;
  }
}
@media (max-width: 1050px) {
  .command {
    gap: 14px;
    grid-template-columns: minmax(156px, 1fr) auto auto auto;
  }
  .songbook-link {
    gap: 5px;
    padding: 5px 7px;
  }
  .garden-status {
    right: 12px;
  }
  .song-tools .secondary {
    min-height: 30px;
  }
  .songbook-link small {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .command {
    grid-template-columns: minmax(104px, 1fr) auto auto auto;
    gap: 5px;
  }
  .songbook-link strong,
  .songbook-link small {
    display: none;
  }
  .garden-status img {
    width: 28px;
  }
  .garden-status {
    right: 5px;
  }
  .garden-status b {
    font-size: 12px;
  }
  .song-shelf {
    gap: 3px;
  }
  .song-leaf {
    gap: 3px;
  }
  .song-leaf img {
    width: 36px;
  }
}
.planted-deck {
  display: grid;
  grid-auto-rows: clamp(48px, 9.2vh, 94px);
  align-content: start;
  gap: clamp(5px, 1vh, 10px);
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #4f6c69 transparent;
}
.planted-deck .tower-card > .icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #a4c0b6;
}
.roster-price {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #bed1c7;
  font-size: clamp(10px, 0.82vw, 14px);
}
.roster-price .cost {
  margin-top: 0;
}
.roster-price.poor {
  opacity: 0.69;
}
.portrait-link {
  position: absolute;
  right: 9px;
  top: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ace6c18c;
  background: #0e262dd9;
  border-radius: 4px;
  padding: 5px 8px;
  color: #f3f3e1;
  font: 600 12px var(--body);
}
.portrait-link .icon {
  width: 14px;
  height: 14px;
}
.dialog-portrait {
  width: min(100%, 940px, 125vh);
  padding: 0;
  background: #12272f;
}
.portrait-image img {
  display: block;
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  background: #0b2029;
}
.portrait-caption {
  padding: clamp(12px, 2vw, 24px);
}
.portrait-caption h2 {
  font: 700 clamp(23px, 2.75vw, 41px)/1.1 var(--heading);
  color: #ffedca;
  margin: 4px 0;
}
.portrait-caption p {
  font-size: clamp(12px, 1vw, 16px);
  color: #c6d7d1;
  margin: 0 0 9px;
}
.portrait-caption > div {
  display: flex;
  gap: 7px;
}
@media (max-height: 610px) {
  .planted-deck {
    grid-auto-rows: 48px;
  }
  .portrait-caption {
    padding: 10px 15px;
  }
  .portrait-image img {
    max-height: 62vh;
  }
}

/* Lantern fleet */
.harbor-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}
.shipyard-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: linear-gradient(130deg, #393a2e, #26322e);
  border: 1px solid #b89e667d;
  border-radius: 5px;
  color: #f0d89f;
}
.shipyard-link strong {
  font: 600 clamp(14px, 1.1vw, 19px) var(--heading);
}
.shipyard-link .icon {
  width: 18px;
  height: 18px;
}
.shipyard-link:hover,
.fleet-status:hover {
  border-color: #e7ca8c;
}
.fleet-status {
  color: #f7dda0;
  border-color: #cfaf738c;
  background: linear-gradient(120deg, #33443feb, #172d30f2);
}
.fleet-status .icon {
  width: 12px;
}
.fleet-status:disabled {
  opacity: 1;
  cursor: default;
}
.fleet-status[hidden] {
  display: none;
}
.in-fleet .boss-meter {
  top: clamp(100px, 14vh, 138px);
}
.empty-mount {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed #627e7c82;
  border-radius: 6px;
  color: #b8d5ca;
  background: #162c30;
  text-align: left;
  padding: 8px 11px;
  min-height: 34px;
}
.empty-mount:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.empty-mount small {
  margin-left: auto;
  color: var(--faint);
}
.empty-mount .icon {
  width: 18px;
}
.chart-fleet {
  margin-bottom: 7px;
  background: linear-gradient(110deg, #233936, #162b30);
  border-color: #b4975a85;
}
.chart-fleet img {
  width: 72px;
  object-fit: contain;
}
.dialog-shipyard,
.dialog-charting {
  width: min(710px, 94vw);
}
.dialog-shipyard {
  overflow-x: hidden;
}
.fleet-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 0 38px 14px 0;
}
.fleet-title .eyebrow {
  grid-column: 1/-1;
  color: var(--gold);
}
.fleet-title h2 {
  font: 700 clamp(32px, 3vw, 46px)/1.05 var(--heading);
  margin: 2px 0;
}
.fleet-title > b,
.arrival-line {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #f7d79e;
}
.fleet-title > b img {
  width: 34px;
  height: 32px;
  object-fit: contain;
}
.carrier-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.carrier-tab {
  display: flex;
  gap: 6px;
  align-items: center;
  text-align: left;
  min-height: 51px;
  border: 1px solid #42585b;
  border-radius: 6px;
  background: #14292e;
  color: #d6e2dd;
  padding: 3px 8px;
}
.carrier-tab img {
  width: clamp(46px, 5vw, 72px);
  height: 44px;
  object-fit: contain;
}
.carrier-tab.chosen {
  background: linear-gradient(130deg, #34433e, #203034);
  border-color: var(--accent);
}
.carrier-tab b,
.carrier-tab small {
  display: block;
}
.carrier-tab b {
  font: 600 20px/1.1 var(--heading);
}
.carrier-tab small {
  color: var(--muted);
  font-size: 11px;
}
.carrier-hero {
  display: grid;
  grid-template-columns: 48% 1fr;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  border: 1px solid #405e60;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(102deg, #0d2b3687, #112b31 57%),
    url(art/lantern-reach.webp) center/cover;
}
.carrier-hero > div:last-child {
  padding: 14px 19px 14px 2px;
}
.carrier-water {
  height: clamp(124px, 19vh, 178px);
  display: grid;
  place-items: center;
}
.carrier-water img {
  width: 98%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(1px 6px 5px #0a2638b3);
  transform: rotate(-7deg);
}
.carrier-hero small,
.waypoint-art small {
  font: 600 10px/1.1 var(--body);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}
.carrier-hero h3 {
  font: 700 clamp(28px, 2.8vw, 40px)/1 var(--heading);
  margin: 1px 0 7px;
}
.carrier-hero strong {
  font: 600 18px/1.1 var(--heading);
  color: var(--accent);
}
.carrier-hero p,
.harbor-order p {
  font: 400 13px/1.35 var(--body);
  color: #c7d8d6;
  margin: 3px 0 0;
}
.tide-picker {
  display: flex;
  gap: 6px;
  margin: 10px 0 0;
}
.tide-picker button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 4px;
  border: 1px solid #41575a;
  border-radius: 4px;
  background: #14272c;
  font: 600 15px var(--heading);
}
.tide-picker .selected {
  border-color: #b2c4a0;
  color: #dfebce;
  background: #2b4037;
}
.tide-picker button:disabled {
  opacity: 0.6;
}
.tide-picker .icon,
.hull-lock .icon,
.order-filled .icon {
  width: 16px;
  height: 16px;
}
.fleet-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.fleet-cta .primary {
  flex: 1;
}
.fleet-cta .text-button {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 600 15px var(--heading);
  padding: 7px;
}
.fleet-cta .text-button .icon {
  width: 16px;
}
.hull-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: var(--gold);
  font-size: 13px;
}
.hull-lock span {
  color: var(--muted);
}
.harbor-order {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #4f615d;
  border-radius: 7px;
  background: linear-gradient(115deg, #283c38, #192d31);
  padding: 11px 13px;
  margin-top: 12px;
}
.harbor-order > .icon {
  color: var(--gold);
  width: 23px;
  flex: none;
}
.harbor-order .eyebrow {
  font-size: 9px;
  color: #dfca90;
}
.harbor-order b,
.harbor-order .eyebrow {
  display: block;
}
.harbor-order b {
  font: 600 21px/1.15 var(--heading);
}
.harbor-order > strong {
  margin-left: auto;
  font: 600 12px var(--body);
  color: #dddcac;
}
.harbor-order p {
  font-size: 12px;
}
.harbor-record,
.order-filled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #b7d8c3;
  font-size: 12px;
  margin-top: 8px;
}
.harbor-record .icon {
  width: 14px;
}
.sailing-route {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 15px 0 12px;
}
.sailing-route li {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font: 600 11px var(--body);
  color: #91acae;
  text-align: center;
}
.sailing-route li:before {
  content: '';
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: #455f63;
}
.sailing-route li:first-child:before {
  display: none;
}
.sailing-route i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  z-index: 1;
  background: #1a3035;
  border: 1px solid #4e6264;
  border-radius: 100%;
}
.sailing-route i .icon {
  width: 13px;
  height: 13px;
}
.sailing-route .current {
  color: #f2d594;
}
.sailing-route .current i {
  background: #3d3e30;
  border-color: #e1c17e;
}
.sailing-route .visited {
  color: #adcfc0;
}
.sailing-route .visited i {
  border-color: #85b39e;
}
.fitted {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}
.fitted span {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #526660;
  border-radius: 5px;
  color: #cfe9d6;
  font: 600 11px var(--body);
}
.fitted .icon {
  width: 13px;
  height: 13px;
}
.arrival-line {
  padding: 6px 12px;
  border: 1px solid #675f42;
  border-radius: 6px;
  background: linear-gradient(110deg, #33392d, #172b2c);
  font-size: 13px;
  margin: 5px 0;
}
.arrival-line img {
  width: 35px;
  height: 30px;
  object-fit: contain;
}
.arrival-line span {
  margin-left: auto;
  color: #d5e4dc;
}
.waypoint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.waypoint-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #62716a;
  background: #162c31;
  border-radius: 8px;
  color: var(--text);
}
.waypoint-card:hover,
.waypoint-card:focus-visible {
  border-color: var(--accent);
  background: #1e3639;
}
.waypoint-art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 13px 14px;
  min-height: clamp(94px, 15vh, 144px);
  background:
    linear-gradient(0deg, #0c282e 0%, #13303926 93%),
    var(--sea) center/cover;
}
.waypoint-art small {
  color: #f4e5b6;
  text-shadow: 0 1px 3px #193437;
}
.waypoint-art b {
  font: 700 clamp(25px, 2.15vw, 34px)/1 var(--heading);
  margin-top: 4px;
}
.waypoint-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  flex: 1;
  width: 100%;
  padding: 10px 13px 12px;
}
.waypoint-copy > span,
.waypoint-copy em {
  font: 400 13px/1.3 var(--body);
  color: #c9d9d9;
}
.waypoint-copy > span {
  min-height: 34px;
}
.waypoint-copy strong,
.waypoint-copy i {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font: 600 18px var(--heading);
  margin: 8px 0 3px;
}
.waypoint-copy .icon {
  width: 17px;
  height: 17px;
}
.waypoint-copy em {
  font-size: 12px;
  color: #b8d3d2;
  flex: 1;
}
.waypoint-copy i {
  align-self: flex-end;
  margin-top: 13px;
  font-size: 15px;
}
.fleet-finale {
  height: clamp(116px, 22vh, 220px);
  border-radius: 8px;
  background:
    linear-gradient(0deg, #10252e70, transparent 32%),
    var(--art) 50% 55% / cover;
  margin: 0 0 15px;
}
@media (max-height: 610px) {
  .carrier-water {
    height: 105px;
  }
  .carrier-tab {
    min-height: 43px;
  }
  .carrier-tab img {
    height: 35px;
  }
  .fleet-title {
    margin-bottom: 8px;
  }
  .carrier-hero {
    margin-top: 7px;
  }
  .fleet-cta {
    margin: 8px 0;
  }
  .harbor-order {
    padding: 8px;
    margin-top: 7px;
  }
  .sailing-route {
    margin: 9px 0;
  }
  .waypoint-art {
    min-height: 83px;
  }
  .waypoint-grid {
    margin-top: 9px;
  }
  .in-fleet .boss-meter {
    top: 88px;
  }
}
@media (max-width: 1050px) {
  .harbor-nav {
    gap: 5px;
  }
  .shipyard-link {
    padding: 5px 7px;
    gap: 4px;
  }
  .shipyard-link .icon {
    width: 15px;
  }
  .command {
    gap: clamp(5px, 1vw, 12px);
  }
  .fleet-status .icon {
    display: none;
  }
}
@media (max-width: 760px) {
  .shipyard-link strong {
    display: none;
  }
  .waypoint-grid {
    gap: 6px;
  }
  .carrier-tab {
    padding: 2px;
  }
  .carrier-tab img {
    width: 37px;
  }
  .carrier-tab b {
    font-size: 16px;
  }
}
.carrier-water {
  position: relative;
}
.carrier-water img {
  position: absolute;
  inset: 2% 3%;
  width: 94%;
  height: 96%;
}
.in-fleet .boss-meter {
  top: clamp(12px, 2.2vh, 24px);
}
.port-log,
.harbor-colors {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c6dbd1;
  font-size: 12px;
}
.port-log {
  border-top: 1px solid #3d5356;
  padding: 7px 0 0;
  margin-top: 12px;
}
.port-log small {
  margin-left: auto;
  color: #cdbf99;
}
.port-log > img {
  width: 44px;
  height: 26px;
  object-fit: contain;
}
.port-log > .icon {
  width: 15px;
  height: 15px;
}
.settlement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}
.settlement:empty {
  display: none;
}
.settlement button,
.settlement small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #d8dfb2;
  font: 600 12px var(--body);
}
.settlement button {
  background: #223932;
  border: 1px solid #526d5d;
  border-radius: 4px;
  padding: 4px 7px;
}
.settlement .icon {
  width: 13px;
  height: 13px;
}
.harbor-colors {
  width: 100%;
  padding: 7px 9px;
  margin-top: 8px;
  text-align: left;
  border: 1px solid #476062;
  border-radius: 5px;
  background: #14292f;
}
.harbor-colors > span:nth-child(2) {
  font: 600 17px var(--heading);
}
.harbor-colors small {
  margin-left: auto;
  color: #b9c9c7;
}
.harbor-colors > .icon {
  width: 13px;
}
.pennant-swatch {
  width: 51px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(115deg, #ffffff1e, transparent 47%, #0919292b), var(--cloth);
  color: var(--thread);
  border-left: 3px solid var(--thread);
  clip-path: polygon(0% 0%, 100% 5%, 79% 49%, 100% 94%, 0% 100%);
}
.pennant-swatch .icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.harbor-colors .pennant-swatch {
  width: 34px;
  height: 19px;
}
.harbor-colors .pennant-swatch .icon {
  height: 11px;
  width: 11px;
}
.dialog-flagroom {
  width: min(540px, 94vw);
}
.flag-rack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.flag-card {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  background: #1c3337;
  border: 1px solid #4a6061;
  border-radius: 6px;
  min-height: 75px;
  padding: 10px;
}
.flag-card:disabled {
  opacity: 0.65;
}
.flag-card.worn {
  border-color: #bda368;
}
.flag-card b,
.flag-card small {
  display: block;
}
.flag-card b {
  font: 600 20px/1.1 var(--heading);
}
.flag-card small {
  color: var(--muted);
  font-size: 11px;
}
.flag-card > .icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
}
@media (max-height: 610px) {
  .dialog:has(.fleet-finale) {
    width: min(560px, 94vw);
  }
  .fleet-finale {
    height: 95px;
    margin-bottom: 8px;
  }
  .settlement {
    margin: 4px 0 7px;
  }
  .port-log {
    margin-top: 7px;
    padding-top: 4px;
  }
}
.waypoint-art {
  position: relative;
  isolation: isolate;
  background-position: 50% 29%;
  overflow: hidden;
}
.waypoint-art img {
  position: absolute;
  z-index: -1;
  right: 5px;
  top: 4%;
  width: 31%;
  height: 89%;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px #052730);
  transform: rotate(-6deg);
}
.waypoint-art small,
.waypoint-art b {
  max-width: 77%;
  text-shadow:
    0 1px 5px #071d28,
    0 2px 9px #08222c;
}
.tower-service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9fbfc2;
  border-top: 1px solid #334d53;
  padding: 7px 0;
  margin-top: 4px;
  font-size: clamp(10px, 0.8vw, 13px);
}
.tower-service b {
  color: #dbeee5;
}
.tide-note {
  margin: 6px 0 0;
  text-align: center;
  color: #b5caca;
  font: 400 12px/1.3 var(--body);
}
