@font-face {
  font-family: 'DM Sans';
  src: url('./assets/fonts/dm-sans.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Text';
  src: url('./assets/fonts/dm-serif.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Text';
  src: url('./assets/fonts/dm-serif-italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --ink: #293e37;
  --teal: #285a52;
  --teal-deep: #234944;
  --muted: #707766;
  --paper: #f5efdb;
  --paper2: #ede5cd;
  --rule: #cfc9ae;
  --gold: #b88a4a;
  --serif: 'DM Serif Text', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --header: 67px;
  --dock-gap: 28px;
}
* {
  box-sizing: border-box;
}
html,
body,
#game {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #477f83;
  user-select: none;
  -webkit-user-select: none;
  font-size: 14px;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #c18d43;
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
img {
  user-select: none;
  -webkit-user-drag: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
}
.icon {
  display: inline-block;
  object-fit: contain;
  flex: none;
  vertical-align: middle;
  pointer-events: none;
}
.paper {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      100deg,
      rgba(144, 132, 85, 0.018) 0px,
      rgba(144, 132, 85, 0.018) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(125deg, #f8f3e2, #f1ead5);
  border: 1px solid rgba(96, 94, 66, 0.52);
  box-shadow:
    0 4px 0 -2px rgba(37, 64, 54, 0.19),
    0 7px 17px #193f412c;
}
#topbar {
  position: relative;
  z-index: 5;
  height: var(--header);
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, #233f3d, #2a4440 56%, #243f3d);
  border-bottom: 3px solid #b9ab7d;
  color: #f1ead1;
  padding: 0 clamp(14px, 2vw, 36px);
  box-shadow: 0 2px 9px #1e46454d;
  gap: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 182px;
  margin-right: clamp(10px, 2.45vw, 48px);
}
#brand-seal {
  border: 1px solid #91a38b;
  outline: 1px solid #a49466;
  outline-offset: 2px;
  background: #2e5750;
  border-radius: 5px 5px 10px 10px;
  width: 35px;
  height: 37px;
  display: grid;
  place-items: center;
}
.brand h1 {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -1.4px;
  color: #fbf0d3;
}
.brand-sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2.1px;
  line-height: 1.4;
  font-weight: 650;
  color: #cecfaf;
  margin-top: 3px;
}
#resources {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
}
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(10px, 1.38vw, 26px);
  height: 34px;
  border-left: 1px solid #81958144;
  text-align: left;
  position: relative;
}
.stat:hover .stat-number {
  color: #fff7c9;
}
.stat .icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 1px #122e2e66);
}
.stat .stat-copy {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 20px;
  line-height: 1.07;
  font-weight: 680;
  color: #fff1d0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.65px;
}
.stat-name {
  margin-top: 3px;
  text-transform: uppercase;
  font-size: 8.8px;
  letter-spacing: 1.32px;
  color: #d0d2b9;
  font-weight: 640;
}
.stat-flash .stat-number {
  animation: statflash 0.6s;
}
@keyframes statflash {
  35% {
    color: #ffce75;
  }
}
#clock-area {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
}
.day-readout {
  display: grid;
  grid-template-columns: 25px auto;
  column-gap: 6px;
  align-items: center;
  text-align: left;
}
.day-readout img {
  grid-row: span 2;
}
.day-main {
  font-size: 12.5px;
  font-weight: 700;
  color: #f5eacb;
  white-space: nowrap;
  line-height: 1.3;
}
.day-tide {
  font-size: 10.4px;
  line-height: 1.32;
  color: #c1cdb6;
}
.time-controls {
  height: 28px;
  display: flex;
  align-items: center;
  border: 1px solid #83917a77;
  background: #17363266;
  border-radius: 5px;
  padding: 0 2px;
}
.time-controls button {
  width: 24px;
  height: 23px;
  font-size: 12px;
  font-weight: 650;
  display: grid;
  place-items: center;
  color: #f3e9c8;
  border-radius: 3px;
}
.time-controls #speed {
  width: 27px;
}
.time-controls #step {
  width: 23px;
}
.time-controls button:hover,
.header-icon:hover {
  background: #6d86704d;
}
.time-controls .paused {
  background: #a38d5b6b;
}
.header-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-left: 1px solid #81958144;
  padding-left: 7px;
}
#sea-window {
  position: relative;
  height: calc(100% - var(--header));
  overflow: hidden;
  background: #4e8789;
  isolation: isolate;
}
#sea {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  outline: none !important;
}
#mission-stack {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 223px;
  z-index: 2;
}
#charter {
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.charter-core {
  padding: 14px 15px 11px;
}
.eyebrow {
  font: 700 9px/1.3 var(--sans);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #697364;
}
.charter-meta,
.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.charter-meta {
  width: 100%;
  text-align: left;
}
.charter-meta > span:first-child {
  display: flex;
  gap: 5px;
  align-items: center;
}
.chapter-n {
  font-size: 9px;
  color: #808574;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 1px;
}
#charter h2 {
  font-size: 24px;
  line-height: 1.13;
  margin: 6px 0 11px;
  letter-spacing: -0.6px;
}
.checklist {
  display: grid;
  gap: 7px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.18;
  color: #444f42;
}
.checkmark {
  width: 11px;
  height: 11px;
  border: 1px solid #a9ac90;
  border-radius: 3px;
  display: grid;
  place-items: center;
  flex: none;
  background: #f7f2de;
}
.checkline .count {
  margin-left: auto;
  white-space: nowrap;
  color: #7c826f;
  font-size: 10.5px;
  font-weight: 600;
}
.checkline.met {
  color: #587461;
}
.checkline.met .checkmark {
  background: #527b63;
  border-color: #527b63;
}
.reward-row {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 10px;
  border-top: 1px solid #d6d0b8;
  background: #eae5ce9c;
  padding: 6px 15px;
  font-size: 11px;
  font-weight: 600;
}
.reward-row > span:first-child {
  font-size: 10px;
  color: #737968;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.money {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}
.claim-btn {
  border-radius: 0;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #37634f;
  color: #fff0cd;
  font-size: 12px;
  font-weight: 700;
}
.claim-btn:hover {
  background: #275740;
}
#orders-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #264d49f3;
  color: #f3ebcc;
  border: 1px solid #b6c3a58c;
  border-radius: 5px;
  box-shadow: 0 3px 7px #224b4e33;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}
#orders-link:hover {
  background: #315e53;
}
.order-count {
  margin-left: auto;
  padding: 1px 7px;
  border: 1px solid #b3be9d64;
  background: #6f886b50;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.4;
  color: #f6e9bf;
}
#navigation {
  position: absolute;
  right: 19px;
  top: 12px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
#compass {
  width: 64px;
  height: 66px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
#compass:hover {
  opacity: 1;
}
#rose-art {
  width: 100%;
  height: 100%;
  display: block;
}
.map-buttons {
  display: flex;
  flex-direction: column;
  background: #f1ecd8ef;
  border: 1px solid #6d7e6b;
  border-radius: 5px;
  box-shadow: 0 3px 6px #234b4630;
  padding: 2px;
}
.map-buttons button {
  width: 28px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 2px;
}
.map-buttons button + button {
  border-top: 1px solid #bec4a9;
}
.map-buttons button:hover,
.map-buttons button.active {
  background: #d6dfc2;
}
#inspector {
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 3;
  width: 250px;
  border-radius: 7px;
  overflow: auto;
  max-height: calc(100% - 193px);
  scrollbar-width: thin;
  scrollbar-color: #9baf95 transparent;
}
.inspect-head {
  position: relative;
  display: flex;
  align-items: center;
  padding: 13px 12px 9px;
  gap: 6px;
  background: linear-gradient(112deg, #e8e8c9, #f5efd9);
  border-bottom: 1px solid var(--rule);
}
.inspect-head .inspect-mini {
  width: 66px;
  height: 48px;
  object-fit: contain;
}
.inspect-head h2 {
  font-size: 22px;
  line-height: 1.06;
  letter-spacing: -0.5px;
  margin-top: 3px;
}
.inspect-head .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.inspect-x {
  position: absolute;
  right: 4px;
  top: 4px;
}
.icon-btn {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.icon-btn:hover {
  background: #7e967024;
}
.inspect-body {
  padding: 12px 14px 14px;
  font-size: 12px;
  line-height: 1.46;
}
.inspect-body > p {
  margin-bottom: 9px;
  color: #626c5d;
}
.inspect-body .callout {
  background: #e9e7d0;
  border-left: 2px solid #8ea27a;
  padding: 7px 8px;
  font-size: 11.5px;
}
.yields {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}
.yield {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #dce6c9;
  border: 1px solid #c6d2b1;
  padding: 2px 7px 2px 4px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
  color: #416143;
}
.yield.low {
  background: #eaddc6;
  color: #82634c;
  border-color: #d8c8a8;
}
.linked {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 7px 0;
  color: #55785b;
  font-size: 11px;
  font-weight: 600;
}
.linked.no {
  color: #9b714d;
}
#notices {
  position: absolute;
  top: 13px;
  left: 51%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 4;
  pointer-events: none;
  width: max-content;
  max-width: 45vw;
}
.notice {
  padding: 8px 13px;
  background: #284e47ef;
  color: #f9efd3;
  border: 1px solid #adc09a99;
  border-radius: 5px;
  box-shadow: 0 3px 10px #2444412b;
  font-size: 12px;
  text-align: center;
  animation: noticein 0.18s ease-out;
}
.notice.warm {
  background: #745b42ef;
}
@keyframes noticein {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#map-tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
  background: #253f3bef;
  border: 1px solid #ced4b17d;
  color: #f8eed2;
  font-size: 11.5px;
  line-height: 1.3;
  border-radius: 4px;
  padding: 5px 8px;
  box-shadow: 0 2px 5px #233e3b20;
}
#map-tip span {
  color: #d7d7b9;
  font-size: 10px;
  display: block;
  margin-top: 2px;
}
#map-tip.bad {
  background: #795539ee;
}
#dock {
  position: absolute;
  z-index: 3;
  bottom: var(--dock-gap);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 68px);
  max-width: 1100px;
  border-radius: 8px;
  padding: 0 10px 9px;
  box-shadow:
    0 4px 0 -1px #425f58a1,
    0 9px 22px #2243444d;
}
.dock-head {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 45px;
}
#build-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.45px;
  margin-left: 4px;
}
#build-title:after {
  content: '';
  height: 19px;
  border-right: 1px solid #c8c6a9;
  margin-left: 9px;
}
#build-tabs {
  display: flex;
  gap: 4px;
}
#build-tabs button {
  font-size: 11.5px;
  font-weight: 650;
  padding: 4px 11px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
  color: #64715d;
}
#build-tabs button.active {
  background: #365c4f;
  color: #faf0d4;
  box-shadow: inset 0 1px 1px #25413944;
}
#build-tabs button:hover:not(.active),
.dock-options button:hover {
  background: #dfdfc5;
}
.dock-options {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.dock-options button {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 650;
  padding: 3px 6px;
  border-radius: 3px;
  color: #65735f;
}
.dock-options #dock-toggle {
  border-left: 1px solid #c8c5ab;
  border-radius: 0;
  padding: 1px 2px 1px 9px;
}
#build-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.build-card {
  height: 88px;
  border: 1px solid #c5c6a6;
  border-radius: 5px;
  background: linear-gradient(143deg, #f7f4e3, #eae9d1);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.1s,
    background 0.12s,
    transform 0.12s;
  box-shadow: 0 1px 1px #414b2f0d;
}
.build-card:hover {
  border-color: #889f78;
  background: linear-gradient(143deg, #fbf5db, #dfe7c9);
  transform: translateY(-2px);
}
.build-card.selected {
  border: 2px solid #53755c;
  background: linear-gradient(140deg, #edf2d6, #dbe7c3);
  box-shadow: inset 0 0 0 1px #f8f5d9;
}
.card-key {
  position: absolute;
  left: 7px;
  top: 6px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
  font-weight: 650;
  color: #81856b;
  border: 1px solid #c8ccb1;
  border-radius: 3px;
  background: #f4f1dbbf;
}
.build-card .mini {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  height: 58px;
  width: 105px;
  object-fit: contain;
  pointer-events: none;
}
.card-label {
  position: absolute;
  bottom: 22px;
  left: 10px;
  right: 5px;
  line-height: 1.1;
  font-size: 13.2px;
  font-weight: 720;
  letter-spacing: -0.27px;
}
.card-cost {
  position: absolute;
  left: 8px;
  bottom: 4px;
  display: flex;
  align-items: center;
  height: 16px;
  gap: 8px;
  font-size: 10.8px;
  font-weight: 600;
  color: #737760;
}
.card-cost .icon {
  width: 16px;
  height: 16px;
}
.build-card.locked .mini {
  filter: grayscale(0.74);
  opacity: 0.67;
}
.build-card.locked .card-label {
  color: #7a806d;
}
.lock-note {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #898a73;
}
.build-card .need {
  color: #a26048;
}
#dock.folded {
  padding-bottom: 0;
}
#dock.folded #build-cards {
  display: none;
}
#tool-strip {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #274b45f5;
  border: 1px solid #adbc98aa;
  border-radius: 5px;
  padding: 5px 8px 5px 10px;
  color: #f0e9cf;
  box-shadow: 0 3px 6px #294e463b;
  font-size: 11px;
  white-space: nowrap;
}
#tool-strip strong {
  font-weight: 700;
}
#tool-strip .sep {
  width: 1px;
  height: 14px;
  background: #8da48a73;
  margin: 0 2px;
}
#tool-strip button {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: #ebe1c1;
  border-radius: 3px;
  padding: 2px 4px;
}
#tool-strip button:hover {
  background: #77957355;
}
.map-footer {
  position: absolute;
  bottom: 4px;
  left: 21px;
  right: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  color: #dfebd6;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12px;
  text-shadow: 0 1px 2px #24505288;
}
#saved,
#map-keys {
  display: flex;
  align-items: center;
  gap: 4px;
}
#map-keys {
  gap: 6px;
}
.footer-divider {
  width: 1px;
  height: 9px;
  background: #b8d0bc77;
  margin: 0 3px;
}
#tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 12;
  max-width: 248px;
  background: #263f39f8;
  border: 1px solid #adbc988c;
  box-shadow: 0 4px 14px #203e3344;
  padding: 9px 12px;
  border-radius: 5px;
  color: #f8f0d3;
  font-size: 11.5px;
  line-height: 1.45;
}
#tooltip b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff0c9;
  margin-bottom: 2px;
}
#tooltip em {
  display: block;
  color: #c6d5b6;
  margin-top: 4px;
  font-size: 10.5px;
  font-style: normal;
}
#overlay {
  position: absolute;
  inset: 0;
  background: #183b39a1;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}
#dialog {
  max-height: calc(100dvh - 32px);
  width: min(638px, 95vw);
  border-radius: 9px;
  box-shadow: 0 12px 65px #13323066;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#dialog.small {
  width: min(422px, 95vw);
}
.dialog-top {
  padding: 17px 22px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  background: linear-gradient(108deg, #294e47, #386054);
  color: #f6ebca;
  border-bottom: 2px solid #b9aa78;
  flex: none;
}
.dialog-top .dialog-seal {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 1px solid #b9bd9470;
  border-radius: 50%;
  background: #57796340;
}
.dialog-top .eyebrow {
  color: #c9d3b1;
  font-size: 8.5px;
}
.dialog-top h2 {
  font-size: 29px;
  letter-spacing: -0.7px;
  line-height: 1.17;
  margin-top: 1px;
}
.dialog-top .close-dialog {
  align-self: flex-start;
  margin-left: auto;
  background: #ecedc90b;
  border: 1px solid #b8c6a455;
  color: #e9e8c8;
}
.modal-tabs {
  display: flex;
  gap: 6px;
  align-items: stretch;
  padding: 0 19px;
  border-bottom: 1px solid var(--rule);
  background: #eae6ce;
  min-height: 38px;
  flex: none;
}
.modal-tabs button {
  padding: 7px 10px 6px;
  font-size: 12px;
  color: #747d69;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}
.modal-tabs button.active {
  border-color: #48735a;
  color: #2f5142;
}
.dialog-body {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a6af92 transparent;
  padding: 18px 22px 21px;
  line-height: 1.45;
}
.dialog-body h3 {
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: -0.45px;
}
.dialog-body h4 {
  font-size: 17px;
  line-height: 1.22;
}
.dialog-body p {
  font-size: 12px;
  color: #65705e;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.row-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.section-gap {
  margin-top: 16px;
}
.rule {
  height: 1px;
  background: var(--rule);
  margin: 13px 0;
}
.primary,
.secondary,
.soft-btn,
.danger-btn,
.switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 31px;
  padding: 5px 11px;
  border: 1px solid #8ea180;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}
.primary {
  background: #39644f;
  color: #f8f0d2;
  border-color: #2e5545;
  box-shadow: inset 0 1px #ffffff15;
}
.primary:hover:not(:disabled) {
  background: #2e5945;
}
.secondary,
.switch-btn {
  background: #eeecd5;
  color: #42634f;
  border-color: #bdc3a5;
}
.secondary:hover:not(:disabled),
.switch-btn:hover {
  background: #e3e7c9;
}
.soft-btn {
  border-color: transparent;
  background: transparent;
  color: #65735d;
}
.soft-btn:hover {
  background: #dddcc24f;
}
.danger-btn {
  border-color: #c7a68c;
  color: #8f5d45;
  background: #f0e2cc;
}
.full {
  width: 100%;
}
.sub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
}
.small-note {
  font-size: 10.5px !important;
  color: #76806b !important;
}
.order-list {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}
.order-card {
  display: grid;
  grid-template-columns: 49px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #c5c8aa;
  border-radius: 6px;
  background: linear-gradient(110deg, #faf5e1, #efe9d1);
}
.port-seal {
  --port: #517d68;
  position: relative;
  width: 45px;
  height: 45px;
  border: 1.5px solid var(--port);
  border-radius: 50%;
  outline: 1px dashed var(--port);
  outline-offset: 2px;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
  background: #eeead0;
}
.port-seal:after {
  position: absolute;
  content: '';
  inset: 3px;
  border: 1px solid var(--port);
  border-radius: 50%;
  opacity: 0.45;
}
.port-seal.missing {
  opacity: 0.34;
  filter: grayscale(1);
}
.order-card h4 {
  font-size: 19px;
}
.order-card p {
  font-size: 11px;
}
.order-cargo,
.order-pay {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}
.order-pay {
  justify-content: flex-end;
  margin: 0 0 4px;
  gap: 4px;
  color: #6b745d;
  font-size: 10.8px;
}
.daily-tag {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9a7442;
  font-family: var(--sans);
  font-weight: 700;
}
.missing-funds {
  color: #a16448;
}
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}
.market-item,
.entry-card {
  padding: 13px;
  border: 1px solid #c9cbb0;
  border-radius: 5px;
  background: #f9f4e2;
}
.market-item .secondary {
  width: 100%;
  margin-top: 10px;
}
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 14px 0;
}
.stamp-item {
  padding: 14px 3px 8px;
  border: 1px solid #ccceb1;
  border-radius: 4px;
  background: #f1ecd7;
  text-align: center;
}
.stamp-item .port-seal {
  margin: 0 auto 7px;
  width: 43px;
  height: 43px;
}
.stamp-item h4 {
  font-size: 15.5px;
}
.stamp-item small {
  font-size: 9px;
  color: #78836b;
}
.econ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 12px 0;
}
.econ-tile {
  background: #e8e8ce;
  border: 1px solid #c9cfb0;
  border-radius: 5px;
  padding: 8px;
}
.econ-tile strong {
  display: block;
  font-size: 19px;
  color: #385644;
  font-weight: 670;
  line-height: 1.2;
}
.econ-tile small {
  font-size: 10px;
  color: #6b7863;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.policy-choice {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #c4c9a9;
  text-align: left;
  background: #f7f1dc;
}
.policy-choice b {
  font-size: 12px;
  display: block;
}
.policy-choice small {
  font-size: 10.6px;
  color: #707c66;
}
.policy-choice.active {
  background: #e1e8ca;
  border: 1px solid #6f8d69;
}
.log-lines {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  font-size: 11.5px;
}
.log-lines .log-day {
  display: inline-block;
  color: #7b846d;
  min-width: 46px;
  font-variant-numeric: tabular-nums;
}
.charter-entry {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #d4d4ba;
}
.charter-entry:last-child {
  border: 0;
}
.charter-stamp {
  height: 27px;
  width: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #aeb99a;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 650;
  color: #77836a;
}
.charter-entry.current .charter-stamp {
  background: #4b7159;
  color: #f5eac6;
  border-color: #4b7159;
}
.charter-entry > div:nth-child(2) {
  flex: 1;
}
.charter-entry .checklist {
  margin: 8px 0;
}
.charter-entry .secondary {
  margin-top: 8px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 10px 0;
}
.guide-grid .entry-card {
  padding: 10px 12px;
}
.key-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin-top: 9px;
  font-size: 11.5px;
  color: #57654f;
}
kbd {
  display: inline-block;
  font: 600 10px/1.3 var(--sans);
  border: 1px solid #bfc5a8;
  background: #f5efda;
  padding: 1px 4px;
  border-radius: 3px;
  color: #5b6d55;
}
.settings-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #d1d1b7;
  padding: 10px 0;
}
.settings-line:first-child {
  padding-top: 0;
}
.settings-line b {
  font-size: 13px;
}
.settings-line small {
  font-size: 11px;
  display: block;
  color: #6e7965;
}
.switch-btn {
  min-width: 52px;
}
.switch-btn.on {
  background: #436b53;
  color: #f3efcd;
  border-color: #436b53;
}
.chart-map {
  width: 100%;
  height: 142px;
  display: block;
  border: 1px solid #aab99b;
  border-radius: 5px;
  margin: 10px 0 8px;
  background: #548d8b;
}
.chart-sites {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.voyage {
  padding: 9px 0;
  border-bottom: 1px solid #d2d2b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.voyage:last-child {
  border: 0;
}
#pad-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  border: 2px solid #fff4bc;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px #385c49,
    0 1px 4px #24402f77;
  z-index: 14;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
#loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #284d48;
  color: #f3eaca;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
#loading span {
  font-family: var(--serif);
  font-size: 44px;
}
#loading small {
  color: #c2cdae;
}
@media (min-width: 1550px) {
  :root {
    --header: 75px;
    --dock-gap: 34px;
  }
  #dock {
    max-width: 1200px;
  }
  .build-card {
    height: 97px;
  }
  .build-card .mini {
    height: 65px;
    width: 120px;
  }
  .dock-head {
    height: 49px;
  }
  #mission-stack {
    left: 26px;
    top: 22px;
    width: 241px;
  }
  .charter-core {
    padding: 16px 17px 13px;
  }
  .checkline {
    font-size: 13px;
  }
  .charter-meta .eyebrow {
    font-size: 10px;
  }
  .reward-row {
    min-height: 37px;
  }
  .map-footer {
    bottom: 8px;
  }
}
@media (max-width: 1100px) {
  :root {
    --header: 60px;
    --dock-gap: 23px;
  }
  .brand {
    min-width: 158px;
    margin-right: 7px;
    gap: 9px;
  }
  .brand h1 {
    font-size: 29px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .stat {
    padding: 0 11px;
    gap: 5px;
  }
  .stat-name {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .stat .icon {
    width: 28px;
    height: 28px;
  }
  .stat-number {
    font-size: 18px;
  }
  #clock-area {
    gap: 8px;
  }
  #mission-stack {
    width: 202px;
    left: 13px;
    top: 13px;
  }
  .charter-core {
    padding: 11px 12px 10px;
  }
  #charter h2 {
    font-size: 22px;
  }
  .checkline {
    font-size: 11.3px;
  }
  #navigation {
    right: 11px;
    top: 8px;
  }
  #dock {
    width: calc(100% - 38px);
  }
  .dock-head {
    gap: 12px;
  }
  .build-card {
    height: 79px;
  }
  .build-card .mini {
    height: 53px;
  }
  .card-label {
    font-size: 12.5px;
  }
  .map-footer {
    left: 14px;
    right: 14px;
    bottom: 3px;
  }
}
@media (max-height: 620px) {
  :root {
    --header: 54px;
    --dock-gap: 20px;
  }
  #mission-stack {
    top: 10px;
    left: 12px;
    width: 195px;
  }
  .charter-core {
    padding: 9px 11px;
  }
  .charter-meta .eyebrow,
  .chapter-n {
    font-size: 8px;
  }
  #charter h2 {
    font-size: 20px;
    margin: 3px 0 7px;
  }
  .checklist {
    gap: 5px;
  }
  .checkline {
    font-size: 11px;
  }
  .reward-row {
    min-height: 27px;
    padding: 3px 10px;
  }
  #orders-link {
    margin-top: 5px;
    padding: 4px 10px;
    font-size: 11px;
  }
  #dock {
    padding: 0 7px 6px;
  }
  .dock-head {
    height: 33px;
  }
  .build-card {
    height: 65px;
  }
  .build-card .mini {
    height: 46px;
    width: 84px;
    left: auto;
    right: 0;
    transform: none;
    top: -2px;
  }
  .card-key {
    left: 5px;
    top: 4px;
    width: 14px;
    height: 14px;
    font-size: 8px;
  }
  .card-label {
    left: 6px;
    bottom: 19px;
    font-size: 12px;
  }
  .card-cost {
    left: 5px;
    bottom: 2px;
    font-size: 10px;
  }
  .card-cost .icon {
    width: 14px;
    height: 14px;
  }
  #build-title {
    font-size: 18px;
  }
  #build-tabs button {
    font-size: 10.5px;
    padding: 3px 9px;
  }
  #build-title .icon {
    width: 18px;
    height: 18px;
  }
  .dock-options button {
    font-size: 10px;
  }
  #navigation {
    top: 6px;
    gap: 5px;
  }
  #compass {
    height: 51px;
    width: 49px;
  }
  .map-buttons button {
    width: 25px;
    height: 23px;
  }
  #inspector {
    top: 9px;
    right: 10px;
    max-height: calc(100% - 138px);
    width: 232px;
  }
  .inspect-head {
    padding: 7px 11px;
  }
  .inspect-body {
    padding: 8px 11px 10px;
  }
  .inspect-body > p {
    margin-bottom: 6px;
  }
  .map-footer {
    font-size: 9px;
    bottom: 2px;
  }
  .map-footer img {
    width: 12px;
    height: 12px;
  }
  .dialog-top {
    padding: 10px 16px;
  }
  .dialog-top h2 {
    font-size: 24px;
  }
  .dialog-top .dialog-seal {
    height: 34px;
    width: 34px;
  }
  .dialog-body {
    padding: 12px 18px 15px;
  }
  .modal-tabs {
    min-height: 32px;
  }
  .order-card {
    padding: 7px 10px;
  }
  .order-list {
    gap: 6px;
    margin: 8px 0;
  }
  .brand h1 {
    font-size: 27px;
  }
  #brand-seal {
    width: 31px;
    height: 31px;
  }
  #brand-seal .icon {
    width: 29px;
    height: 29px;
  }
  #notices {
    top: 8px;
  }
}
@media (max-width: 850px) {
  .brand {
    min-width: 124px;
  }
  .stat {
    padding: 0 7px;
  }
  .stat .icon {
    width: 23px;
    height: 23px;
  }
  .stat-name {
    font-size: 7.5px;
  }
  .day-readout {
    grid-template-columns: auto;
  }
  .day-readout > img {
    display: none;
  }
  #topbar {
    padding: 0 10px;
  }
  .time-controls #step {
    display: none;
  }
  .dock-head {
    gap: 7px;
  }
  .card-cost {
    gap: 3px;
  }
  #build-title {
    font-size: 17px;
  }
  #build-tabs {
    gap: 1px;
  }
  .dock-options {
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition: none !important;
  }
}
#step {
  position: relative;
}
#step i {
  position: absolute;
  width: 1px;
  height: 8px;
  background: #e4d9b4;
  right: 5px;
  top: 8px;
}
.modal-feedback {
  background: #416850;
  color: #fff0cb;
  display: block;
  padding: 7px 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  border-top: 1px solid #94a681;
}
.dialog-top .eyebrow,
.inspect-head .eyebrow {
  display: block;
}
#resources {
  max-width: 690px;
  justify-content: space-evenly;
}
.stat {
  flex: 1;
  justify-content: center;
}
.grant-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.grant-choice {
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 1px solid #bcc5a4;
  background: linear-gradient(150deg, #f9f4df, #e7e7cc);
  padding: 9px 14px 12px;
  border-radius: 6px;
  text-align: center;
}
.grant-choice:hover {
  border-color: #71906b;
  background: #e2e8cb;
}
.grant-choice > img {
  width: 140px;
  height: 80px;
  object-fit: contain;
}
.grant-choice h4 {
  font-size: 21px;
  margin-bottom: 5px;
}
.grant-choice p {
  flex: 1;
}
.grant-choice > span {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #3e694f;
  font-size: 12px;
  font-weight: 700;
}
.custom-line {
  margin-top: 5px;
}
.quarter-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.quarter-card {
  border: 1px solid #c7cbae;
  background: linear-gradient(145deg, #faf4df, #e9e7ce);
  border-radius: 5px;
  position: relative;
  padding: 9px 11px;
  overflow: hidden;
}
.quarter-card > img:first-child {
  height: 44px;
  width: 75px;
  object-fit: contain;
  position: absolute;
  right: 0;
  top: -1px;
}
.quarter-card > .icon {
  position: absolute;
  right: 8px;
  bottom: 9px;
}
.quarter-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.quarter-card h4 {
  font-size: 18px;
  margin: 2px 0 7px;
}
.quarter-card p {
  font-size: 11.4px;
}
.quarter-card strong {
  display: inline-block;
  font-size: 10.5px;
  color: #607d54;
  margin-top: 5px;
}
.quarter-link {
  font-size: 10.7px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #5a7459;
  text-align: left;
  margin: 6px 0;
}
.quarter-link:hover {
  text-decoration: underline;
}
.pennant-list {
  display: grid;
  gap: 7px;
  margin: 9px 0;
}
.pennant-list .row-inline {
  font-size: 12px;
}
.pennant {
  display: inline-block;
  width: 36px;
  height: 18px;
  background: linear-gradient(
    to right,
    var(--base) 24%,
    var(--band) 24%,
    var(--band) 42%,
    var(--base) 42%
  );
  clip-path: polygon(0 0, 100% 10%, 70% 48%, 100% 91%, 0 100%);
}
@media (min-width: 1200px) {
  .stat-number {
    font-size: 21px;
  }
  .stat-name {
    font-size: 9px;
  }
  .checkline {
    font-size: 12px;
  }
}
#build-cards {
  grid-template-columns: repeat(var(--count, 6), minmax(0, 1fr));
}
.rename-link {
  font: 600 10px var(--sans);
  color: #6c7d62;
  border-bottom: 1px dashed #a2ae91;
  vertical-align: middle;
  margin-left: 5px;
}
.store-note {
  display: flex;
  gap: 18px;
  margin: 7px 0 3px;
  font-size: 11px;
  font-weight: 650;
  color: #586d52;
}
.weather-note {
  margin-top: 7px !important;
  color: #7b795f !important;
  font-size: 11px !important;
}
.roof-paint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0;
}
.roof-paint > span {
  font-size: 10.5px;
  margin-right: auto;
  color: #69765f;
}
.swatch {
  height: 13px;
  width: 13px;
  border-radius: 50%;
  border: 1px solid #827d62;
  background: var(--swatch);
}
.swatch.chosen {
  outline: 1px solid #566d54;
  outline-offset: 2px;
}
#name-form {
  display: grid;
  gap: 9px;
}
#name-form label {
  font-size: 12px;
  font-weight: 650;
}
#town-input {
  padding: 8px 10px;
  border: 1px solid #a6b394;
  border-radius: 4px;
  font: 17px var(--serif);
  color: #2c503f;
  background: #fff8e3;
  user-select: text;
}
.brand {
  flex-shrink: 0;
}
.brand-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 158px;
}
.checkline.actionable {
  width: 100%;
  text-align: left;
  border-radius: 3px;
  cursor: pointer;
}
.checkline.actionable:hover {
  color: #365e47;
}
.checkline.actionable:hover > span:nth-child(2) {
  text-decoration: underline;
  text-decoration-color: #9cae85;
  text-underline-offset: 2px;
}
.hold-strip,
.grant-unlock {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  font-weight: 600;
  color: #647158;
  background: #e9e9d1;
  border: 1px solid #cbd0b1;
  border-radius: 4px;
  padding: 5px 10px;
  margin-bottom: 12px;
}
.hold-strip > span:first-child {
  font-size: 10px;
  font-weight: 550;
  margin-right: auto;
}
.grant-unlock {
  justify-content: space-between;
  margin: 10px 0 0;
  gap: 8px;
  font-size: 10.6px;
}
.grant-unlock > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
@media (max-height: 620px) {
  .checkline {
    font-size: 11.5px;
  }
  .card-label {
    font-size: 12.6px;
  }
  .hold-strip {
    margin-bottom: 7px;
    padding: 3px 9px;
  }
}
.postcard {
  margin: 0;
  padding: 6px 6px 0;
  background: #fcf7e5;
  border: 1px solid #c9c6a8;
  box-shadow: 0 2px 4px #6c765322;
  border-radius: 2px;
}
.postcard-image {
  width: 100%;
  display: block;
  max-height: 260px;
  object-fit: cover;
  background: #4d888b;
}
.postcard figcaption {
  padding: 7px 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.postcard figcaption b {
  font: italic 21px/1.15 var(--serif);
  color: #3c6451;
  display: block;
}
.postcard figcaption small {
  display: block;
  font-size: 10.5px;
  color: #6e7a62;
}
.postcard figcaption > span:last-child {
  font-size: 10.5px;
  color: #788168;
}
.print-nav {
  margin-top: 12px;
}
.ending-title {
  margin-top: 14px !important;
  margin-bottom: 5px !important;
}
@media (max-height: 620px) {
  .postcard-image {
    max-height: 170px;
  }
}

/* Passenger tickets and the waterfront guest book. */
.passenger-face {
  display: block;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: #d8c9a6 url('./assets/passengers.webp') var(--px) var(--py) / 300% 200% no-repeat;
  box-shadow: inset 0 0 0 1px #6a654a55;
}
#ferry-link {
  margin-top: 9px;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 7px 10px 7px 7px;
  border-radius: 5px;
  background: linear-gradient(115deg, #f1deb3, #f8edcf 63%, #e9d8b0);
  border: 1px solid #a29476;
  box-shadow: 0 3px 8px #193f413a;
  position: relative;
  color: #364c40;
}
#ferry-link:hover {
  background: #fff0cd;
  outline: 1px solid #dbba7d;
}
#ferry-link .passenger-face {
  width: 52px;
  height: 52px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #8d9371;
}
.ferry-invite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.ferry-invite small,
.passenger-id small,
.guest-identity small,
.daily-letter small,
.spoken small {
  font: 750 9px/1.25 var(--sans);
  text-transform: uppercase;
  letter-spacing: 1.24px;
  color: #837146;
}
.ferry-invite strong {
  font: 400 18px/1.05 var(--serif);
  letter-spacing: -0.35px;
}
.ferry-invite > span {
  font: 650 10px/1.4 var(--sans);
  color: #52715c;
  margin-top: 2px;
}
.stat .stat-copy {
  display: grid;
  grid-template-columns: max-content auto;
  justify-content: start;
  align-items: baseline;
  column-gap: 4px;
}
.stat-name {
  grid-column: 1 / -1;
}
.stat-rate {
  font: 650 9px/1.1 var(--sans);
  color: #b8ceaa;
  white-space: nowrap;
}
.stat-rate.low {
  color: #ffbc8a;
}
.ferry-open #mission-stack {
  width: 246px;
}
#ferry-desk {
  border-radius: 7px;
  overflow: auto;
  max-height: calc(100vh - var(--header) - 215px);
  scrollbar-width: thin;
}
.ticket-head {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(100deg, #8f563f, #a86a4f);
  color: #fff0cf;
  padding: 9px 12px;
  border-bottom: 2px solid #d2ac75;
}
.ticket-head > span {
  font: 700 10px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 1.8px;
}
.ticket-head b {
  margin: 0 3px 0 auto;
  font: 650 10px var(--sans);
  letter-spacing: 1.4px;
  color: #f7dcb2;
}
.ticket-head button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-left: 1px solid #ecd4ac5c;
}
.ticket-head button:hover {
  background: #f4d9a92c;
}
.ticket-body {
  padding: 13px 14px 12px;
}
.passenger-id {
  display: flex;
  align-items: center;
  gap: 11px;
}
.passenger-id .passenger-face {
  width: 63px;
  height: 63px;
  border: 2px solid #fff4d5;
  box-shadow: 0 0 0 1px #aaa989;
  border-radius: 4px;
}
.passenger-id h2 {
  font-size: 23px;
  letter-spacing: -0.65px;
  line-height: 1.12;
  margin: 2px 0;
}
.passenger-id small {
  color: #7d8269;
  font-size: 8px;
}
.passenger-id div > span {
  font-size: 11px;
  color: #67745f;
}
.sailing-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  border: 1px solid #c9c4a6;
  background: #e4e0c8;
  border-radius: 5px;
  margin: 12px 0 0;
}
.sailing-switch button {
  font-size: 11px;
  font-weight: 650;
  padding: 4px 3px;
  color: #727b65;
  border-radius: 3px;
}
.sailing-switch .current {
  background: #fcf4dc;
  color: #40614f;
  box-shadow: 0 1px 3px #5f634833;
}
.ticket-body blockquote {
  font: italic 16px/1.32 var(--serif);
  color: #536451;
  margin: 12px 0 10px;
}
.wish-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.wish {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 650 10px/1.15 var(--sans);
  padding: 3px 6px 3px 4px;
  color: #6b735c;
  border: 1px solid #c7c5a6;
  border-radius: 4px;
  background: #f4efd9;
}
.wish.stamped {
  background: #dce7c7;
  color: #355f46;
  border-color: #8ea67e;
}
.return-request {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 9px 0 2px;
  font-size: 10.5px;
  color: #8e6449;
}
.walk-stops:not(:empty),
.tour-segments,
.ticket-receipt {
  border-top: 1px dashed #aaa887;
  padding-top: 8px;
  margin-top: 11px;
}
.walk-stops,
.tour-segments {
  display: grid;
  gap: 3px;
}
.walk-stops button,
.tour-segments span {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 650 11px/1.3 var(--sans);
  color: #516955;
  text-align: left;
}
.walk-stops b,
.tour-segments b {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dde1c7;
  font-size: 9px;
}
.walk-stops i {
  margin-left: auto;
  font-size: 14px;
  font-style: normal;
  color: #8f8267;
}
.walk-stops button:hover {
  color: #ac6345;
}
.tour-segments .here {
  color: #995a3f;
}
.tour-segments .here b {
  color: #fff1ce;
  background: #aa6548;
}
.tour-segments .past {
  opacity: 0.71;
}
.ticket-plain,
.visit-inspect,
.guide-finish {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 650;
  color: #516e57;
}
.ticket-plain:hover,
.guide-finish:hover,
.visit-inspect:hover {
  text-decoration: underline;
}
.ticket-body > .ticket-plain {
  margin-top: 8px;
}
#dock.ferry-dock {
  padding: 0;
  background: linear-gradient(124deg, #faf3de, #efe5ca);
  overflow: hidden;
}
.ferry-dock > .dock-head,
.ferry-dock > #build-cards {
  display: none;
}
.route-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 11px 16px 8px;
}
.route-bar h2,
.spoken h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  line-height: 1.09;
}
.route-bar p {
  font-size: 11.5px;
  line-height: 1.42;
  color: #62705d;
  margin-top: 3px;
}
.route-tally {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.route-tally b {
  font-size: 11px;
  white-space: nowrap;
  color: #5f715b;
}
.ticket-punches {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ticket-punches i {
  width: 11px;
  height: 11px;
  display: block;
  border: 1px dashed #a39670;
  border-radius: 50%;
  background: #e5dfc0;
}
.ticket-punches .inked {
  background: #a96447;
  border-style: solid;
  border-color: #8e543d;
  box-shadow: inset 0 0 0 2px #cd9768;
}
.ticket-action,
.ticket-outline,
.festival-btn,
.reward-plan {
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font: 680 12px/1.2 var(--sans);
  padding: 9px 13px;
}
.ticket-action,
.festival-btn {
  color: #fff1ce;
  background: #385f4c;
  border: 1px solid #345743;
  box-shadow: inset 0 1px 0 #7490746b;
}
.ticket-action:hover:not(:disabled) {
  background: #274d3d;
}
.ticket-outline {
  background: #f7efd8;
  border: 1px solid #b4b998;
  color: #4a6550;
  padding: 7px 10px;
}
.ticket-outline:hover:not(:disabled),
.reward-plan:hover {
  background: #e4e4c9;
}
.festival-btn {
  background: #a86444;
  border-color: #9c6747;
}
.stop-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0 12px;
}
.stop-card {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #c6c5a6;
  background: linear-gradient(140deg, #f7f4e4, #e9e7cb);
  border-radius: 5px;
  padding: 2px 4px 5px;
}
.stop-card:hover:not(:disabled),
.stop-card.chosen {
  border-color: #788d68;
  background: #e4e9cc;
}
.stop-card.chosen {
  box-shadow: inset 0 0 0 1px #84976f;
}
.stop-kind {
  position: absolute;
  left: 5px;
  top: 4px;
  border-left: 3px solid var(--theme);
  padding-left: 4px;
  font-size: 9px;
  line-height: 1.15;
  color: #657760;
  font-weight: 750;
}
.stop-card.chosen .stop-kind {
  color: #975d3f;
  border-color: #ad7046;
}
.venue-mini {
  object-fit: contain;
  pointer-events: none;
}
.stop-card .venue-mini {
  width: 95px;
  height: 49px;
  margin-top: 6px;
}
.stop-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.stop-text b {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 680;
}
.stop-text small {
  font-size: 9.5px;
  color: #65775e;
}
.route-foot {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 5px 15px 6px;
}
.route-foot > span {
  margin-left: auto;
  font-size: 10.5px;
  color: #6a7760;
  text-align: right;
}
.arrival-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 11px 18px 11px 12px;
}
.arrival-strip .conversation {
  height: 91px;
  width: 91px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px #afad8d;
}
.spoken {
  flex: 1;
  min-width: 0;
}
.spoken small {
  color: #9c684a;
  font-size: 9.5px;
}
.spoken h2 {
  font-size: 25px;
  margin: 4px 0;
}
.spoken p {
  font: italic 17px/1.3 var(--serif);
  color: #4b6050;
}
.spoken > span {
  font-size: 10.7px;
  color: #73806b;
  display: block;
  margin-top: 4px;
}
.trip-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
}
.trip-buttons .guide-finish {
  align-self: center;
  font-size: 10px;
  font-weight: 550;
  color: #6b785f;
}
.trip-meter {
  height: 4px;
  background: #d9d6b9;
  border-radius: 3px;
  overflow: hidden;
  max-width: 240px;
  margin-top: 9px;
}
.trip-meter i {
  display: block;
  background: #ad855a;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
}
.receipt-strip .spoken p {
  font-size: 16px;
}
.reward-plan {
  background: #eee5c6;
  padding: 2px 8px;
  border: 1px solid #c5ac81;
  color: #805f42;
}
.reward-plan img {
  width: 41px;
  height: 25px;
}
.ticket-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 650;
  color: #82704c;
}
.fare-total {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  margin: 9px 0;
  font-size: 12px;
}
.fare-total b {
  display: flex;
  align-items: center;
  gap: 2px;
}
.renown-track {
  margin: 9px 0 2px;
  border-top: 1px dashed #b7b291;
  padding-top: 8px;
}
.renown-track > span {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 650;
}
.renown-track progress {
  display: block;
  width: 100%;
  height: 6px;
  accent-color: #799669;
  margin: 4px 0;
}
.renown-track small,
.book-lead span,
.plan-catalog b,
.festival-note b {
  font-size: 10.5px;
  color: #6d7f60;
}
.guestbook-body p {
  line-height: 1.44;
}
.book-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.book-lead > span {
  padding: 3px 8px;
  background: #e5e7ce;
  border: 1px solid #c7d0b1;
  border-radius: 12px;
  font-weight: 700;
}
.guest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 13px;
}
.guest-entry {
  border: 1px solid #c7c5a7;
  background: #fbf4e0;
  border-radius: 5px;
  padding: 11px;
  display: flex;
  flex-direction: column;
}
.guest-entry.signed {
  background: linear-gradient(135deg, #fff7df, #eee7cb);
  border-color: #b6b89a;
}
.guest-identity,
.daily-letter {
  display: flex;
  gap: 11px;
  align-items: center;
}
.guest-identity .passenger-face {
  height: 57px;
  width: 57px;
}
.guest-identity h4 {
  font-size: 20px;
  line-height: 1.12;
  margin: 2px 0;
}
.guest-identity small {
  font-size: 8px;
}
.guest-identity div > span {
  font-size: 10.5px;
  color: #6b745e;
}
.guest-entry .wish-list {
  margin: 8px 0 6px;
}
.guest-entry > p {
  font: italic 14px/1.35 var(--serif);
  color: #56664f;
}
.guest-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 9px;
}
.guest-sign em {
  font: italic 18px var(--serif);
  color: #8c654f;
  transform: rotate(-3deg);
}
.guest-sign small {
  font-size: 10px;
  color: #86866c;
}
.guest-sign button,
.plan-catalog button {
  font-size: 10px;
}
.guest-gift,
.festival-note {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #e9e6ca;
  margin-top: 8px;
  padding: 6px;
  border-radius: 4px;
  color: #617057;
}
.guest-gift span {
  font-size: 11px;
  line-height: 1.45;
}
.guest-gift b {
  display: block;
  color: #8a6447;
}
.plan-catalog {
  margin-top: 9px;
}
.plan-catalog article {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px dashed #c1be9d;
}
.plan-catalog .venue-mini {
  width: 78px;
  height: 52px;
}
.plan-catalog article > div {
  flex: 1;
}
.plan-catalog h4,
.festival-note h4 {
  font-size: 19px;
}
.plan-catalog p,
.festival-note p {
  font-size: 12px;
}
.plan-catalog small {
  font-size: 10px;
  min-width: 57px;
  text-align: right;
}
.festival-note {
  padding: 12px;
}
.festival-note b {
  display: inline-block;
  margin-top: 3px;
}
.daily-letter {
  margin: 2px 0 13px;
}
.daily-letter .passenger-face {
  width: 90px;
  height: 90px;
}
.daily-letter .wish-list {
  margin-top: 7px;
}
.guestbook-body > .ticket-action {
  margin-top: 10px;
}
.daily-history-title {
  margin: 18px 0 7px;
}
.daily-history {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #c2c4a5;
  font-size: 11px;
  padding: 7px 0;
}
.shelf-detail {
  padding: 7px 8px;
  border: 1px solid #c5c8a8;
  border-radius: 5px;
  margin: 7px 0;
  background: #ecebd1;
}
.shelf-detail > div:first-child {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
}
.shelf-detail > div > b {
  margin-left: auto;
}
.shelf-detail p {
  font-size: 10.5px !important;
  margin: 4px 0 !important;
}
.shelf-detail button {
  font-size: 10px;
  padding: 4px 6px;
}
.visit-inspect {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  color: #926548;
  font-size: 10.5px;
}
@media (min-width: 1550px) and (min-height: 800px) {
  .ferry-open #mission-stack {
    width: 270px;
  }
  .passenger-id .passenger-face {
    width: 73px;
    height: 73px;
  }
  .ticket-body blockquote {
    font-size: 18px;
  }
  .stop-card .venue-mini {
    height: 57px;
    width: 108px;
  }
}
@media (max-width: 1100px) {
  .ferry-open #mission-stack {
    width: 220px;
  }
  .route-bar {
    gap: 11px;
  }
  .route-tally {
    gap: 6px;
  }
  .arrival-strip {
    gap: 12px;
  }
  .ferry-invite strong {
    font-size: 16px;
  }
  .route-foot > span {
    font-size: 9.5px;
  }
}
@media (max-height: 650px) {
  #ferry-link {
    gap: 8px;
    padding: 5px 7px;
    margin-top: 6px;
  }
  #ferry-link .passenger-face {
    width: 40px;
    height: 40px;
  }
  .ferry-invite small {
    font-size: 7.7px;
  }
  .ferry-invite strong {
    font-size: 16px;
  }
  .ferry-invite > span {
    font-size: 9px;
    margin: 0;
  }
  .ferry-open #mission-stack {
    width: 212px;
  }
  #ferry-desk {
    max-height: calc(100vh - var(--header) - 164px);
  }
  .ticket-body {
    padding: 8px 10px;
  }
  .ticket-head {
    padding: 4px 8px;
  }
  .passenger-id {
    gap: 8px;
  }
  .passenger-id .passenger-face {
    width: 47px;
    height: 47px;
  }
  .passenger-id h2 {
    font-size: 20px;
    margin: 1px 0;
  }
  .passenger-id div > span {
    font-size: 10px;
  }
  .sailing-switch {
    margin-top: 7px;
  }
  .sailing-switch button {
    padding: 3px 2px;
    font-size: 10px;
  }
  .ticket-body blockquote {
    font-size: 14px;
    line-height: 1.27;
    margin: 7px 0;
  }
  .walk-stops:not(:empty),
  .tour-segments {
    margin-top: 6px;
    padding-top: 5px;
  }
  .wish {
    padding: 2px 4px 2px 2px;
    font-size: 9px;
  }
  .route-bar {
    padding: 6px 10px 5px;
  }
  .route-bar h2,
  .spoken h2 {
    font-size: 20px;
  }
  .route-bar p {
    font-size: 10.2px;
    margin-top: 1px;
  }
  .stop-card {
    padding-bottom: 3px;
  }
  .stop-card .venue-mini {
    height: 32px;
    width: 66px;
    margin-top: 5px;
  }
  .stop-cards {
    margin: 0 8px;
    gap: 5px;
  }
  .stop-kind {
    font-size: 8px;
    top: 3px;
  }
  .stop-text b {
    font-size: 10.5px;
  }
  .stop-text small {
    font-size: 8.7px;
  }
  .route-foot {
    padding: 4px 10px;
  }
  .arrival-strip {
    padding: 8px 12px 8px 9px;
  }
  .arrival-strip .conversation {
    width: 69px;
    height: 69px;
  }
  .spoken p,
  .receipt-strip .spoken p {
    font-size: 15px;
  }
  .trip-buttons {
    gap: 3px;
  }
  .trip-buttons .ticket-action,
  .trip-buttons .ticket-outline {
    padding: 6px 8px;
    font-size: 11px;
  }
  .spoken > span {
    font-size: 9.8px;
  }
  .trip-meter {
    margin-top: 5px;
  }
  .ferry-open #navigation {
    top: 6px;
  }
}
.street-wish,
.first-build {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 600 10.5px/1.3 var(--sans);
  color: #827451;
  margin-top: 8px;
}
.street-wish.met {
  color: #467252;
}
.first-build {
  padding-top: 8px;
  border-top: 1px dashed #c7c4a6;
  color: #57765b;
  width: 100%;
  text-align: left;
}
.first-build:hover {
  text-decoration: underline;
}
@media (max-height: 620px) {
  .street-wish,
  .first-build {
    font-size: 9px;
    margin-top: 5px;
  }
  .first-build {
    padding-top: 5px;
  }
}
.festival-print {
  margin: 2px 3px 15px;
  background: #f9f0d8;
  border: 1px solid #c8bfa1;
  box-shadow: 0 3px 6px #5f665332;
  padding: 9px;
  transform: rotate(-0.8deg);
}
.festival-print > img {
  display: block;
  width: 100%;
  aspect-ratio: 824/362;
  object-fit: cover;
}
.festival-print figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 4px 1px;
}
.festival-print span {
  font-size: 10px;
  color: #737962;
}
.festival-print em {
  font: italic 19px var(--serif);
  color: #8b6549;
}
#build-cards[data-group='4'] .mini {
  width: 41%;
  height: 90%;
  left: 1%;
  top: 3%;
  transform: none;
}
#build-cards[data-group='4'] .card-label {
  left: 42%;
  bottom: 56%;
}
#build-cards[data-group='4'] .card-cost {
  left: 42%;
  bottom: 8%;
}
.street-rule {
  display: block;
  position: absolute;
  left: 42%;
  right: 4px;
  top: 47%;
  font: 550 10.5px/1.18 var(--sans);
  color: #6a795d;
}
.arrival-options {
  display: flex;
  gap: 10px;
  margin: 13px 0 4px;
}
.arrival-options button {
  flex: 1;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  padding: 13px;
  background: #eae6c9;
  border: 1px solid #bfc3a2;
  border-radius: 5px;
}
.arrival-options button:hover {
  background: #dbe3c7;
}
.arrival-options button b {
  font: 400 19px var(--serif);
}
.arrival-options button span {
  font-size: 11.5px;
  color: #69755f;
}
.next-visit {
  display: flex !important;
  align-items: center;
  gap: 3px;
  font-weight: 650;
}
.ticket-head > span {
  white-space: nowrap;
}
@media (max-height: 650px) {
  .ticket-head {
    gap: 5px;
  }
  .ticket-head > span {
    font-size: 9px;
    letter-spacing: 1.25px;
  }
  .ticket-head b {
    font-size: 9px;
  }
}
