* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 15%, #48615a, #182925 76%);
  color: #253d35;
  font:
    15px/1.45 "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible {
  outline: 3px solid #b67836;
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
.machine {
  height: 100dvh;
  max-width: 510px;
  min-height: 515px;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f3eeda;
  box-shadow: 0 0 100px #07161070;
}
#head {
  padding: 12px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(120deg, #2c4840, #1c3633);
  border-bottom: 3px double #bd9f6e;
  color: #f9efd7;
  flex: none;
}
.kicker {
  font:
    600 11px/1.5 "PingFang SC",
    sans-serif;
  letter-spacing: 0.13em;
  color: #cecead;
}
h1,
h2,
h3,
.serif {
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
}
h1 {
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: 0.045em;
}
.tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #244039;
  color: #e6e4cb;
  border: 1px solid #6a8072;
  padding: 6px 9px;
  border-radius: 3px;
  font-size: 12px;
}
.ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
#view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#nav {
  display: flex;
  flex: none;
  gap: 4px;
  padding: 3px 12px max(7px, env(safe-area-inset-bottom));
  background: #243d36;
  border-top: 2px solid #ae966e;
}
#nav button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #c4cebf;
  background: transparent;
  border: 0;
  border-top: 2px solid transparent;
  min-height: 45px;
  font-size: 14px;
  font-weight: 650;
}
#nav button[aria-current="true"] {
  border-color: #e1bc78;
  background: #354d40;
  color: #ffe6b0;
}
.art {
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}
.myst {
  filter: brightness(0) saturate(100%);
  opacity: 0.26;
}
.studio {
  background: #f4eedf;
}
.stage {
  position: relative;
  flex: 1;
  min-height: 140px;
  overflow: hidden;
  background: #30564e;
  container-type: size;
}
.world {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 69cqh);
  aspect-ratio: 1122/1402;
  transform: translate(-50%, -50%);
}
.world > .roomimg {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.metal {
  position: absolute;
  top: 10px;
  left: 11px;
  background: #243d37e8;
  color: #f3eacb;
  border: 1px solid #929680;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.resident,
.ghost,
.spot,
.deco {
  position: absolute;
  transform: translate(-50%, -50%);
}
.resident,
.ghost,
.deco {
  pointer-events: none;
  object-fit: contain;
  image-rendering: pixelated;
}
.resident.moving {
  opacity: 0.3;
}
.ghost {
  opacity: 0.86;
  filter: drop-shadow(0 1px 2px #f5ffd4);
}
.spot {
  width: 50px;
  height: 46px;
  border: 0;
  background: transparent;
  color: white;
  padding: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}
.spot:before {
  content: "";
  position: absolute;
  width: 43px;
  height: 28px;
  background: #24473ac7;
  border: 2px dashed #ffdf92;
  border-radius: 50%;
  box-shadow: 0 1px 4px #243c3377;
}
.spot.water:before {
  height: 36px;
  width: 38px;
}
.spot.kelp:before {
  border-radius: 9px;
  transform: rotate(-8deg);
  height: 32px;
  width: 31px;
}
.spot b {
  position: relative;
  font: 500 21px/1 monospace;
  color: #ffe8a7;
}
.spot.picked:before {
  background: #ffe5a02c;
  border-style: solid;
  box-shadow: 0 0 0 3px #38544990;
}
.spot.picked b {
  position: absolute;
  left: 36px;
  top: 0;
  background: #ffe2a3;
  color: #254539;
  font-size: 13px;
  border-radius: 50%;
  padding: 2px;
}
.layerwash {
  position: absolute;
  pointer-events: none;
  background: #d9eab80e;
  border-block: 1px dashed #f9df984a;
}
.tray {
  flex: none;
  background: linear-gradient(105deg, #f6f1e2, #ebe6d5);
  border-top: 3px double #a99b78;
  padding: 10px 15px 12px;
}
.trayhead,
.row,
.bookheading,
.actionrow,
.topline,
.detailtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.trayhead h2 {
  font-size: 21px;
}
.capacity {
  display: flex;
  align-items: center;
  gap: 6px;
  font:
    600 13px/1.2 Menlo,
    monospace;
  color: #44604f;
}
.slots {
  display: flex;
  gap: 2px;
}
.slots i {
  width: 6px;
  height: 11px;
  border: 1px solid #718b76;
}
.slots .full {
  background: #4e7767;
}
.slots .incoming {
  background: #edc57c;
  border-color: #a37d3d;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #c4c0a9;
  margin-bottom: 7px;
  gap: 8px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  min-height: 44px;
  padding: 4px 3px 0;
  font-size: 13px;
  color: #57695a;
}
.tabs button.on {
  color: #21564d;
  border-color: #376b59;
  font-weight: 700;
}
.traygrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.item {
  position: relative;
  display: grid;
  grid-template-columns: 43px 1fr;
  align-items: center;
  text-align: left;
  gap: 6px;
  min-height: 58px;
  border: 1px solid #c8c4ad;
  border-radius: 4px;
  background: #fbf7e9;
  padding: 3px 6px;
}
.item img,
.item .decosample {
  width: 43px;
  height: 40px;
}
.item b {
  font-size: 13px;
  display: block;
  white-space: nowrap;
}
.item small {
  font-size: 11px;
  color: #58685b;
}
.item.on {
  background: #e1ead9;
  border-color: #386f5c;
  box-shadow: inset 0 0 0 1px #386f5c;
}
.item.on:after {
  content: "✓";
  position: absolute;
  right: 4px;
  top: 1px;
  color: #2c6654;
  font-size: 11px;
}
.status {
  font-size: 13px;
  color: #42594c;
  line-height: 1.4;
  min-height: 19px;
  margin: 8px 0;
}
.actionrow button,
.details button,
.returnslot {
  min-height: 44px;
  border-radius: 4px;
  border: 1px solid #b7af94;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 630;
}
.plain {
  background: #f5efdf;
}
.gold {
  background: linear-gradient(#f6d58d, #eabd76);
  border-color: #a8884e !important;
  color: #333e31;
}
.actionrow button {
  flex: 1;
}
.actionrow button.main {
  flex: 1.7;
}
.actionrow button:disabled {
  background: #e5e1d1;
  border-color: #c6c3b0 !important;
  color: #787f71;
  box-shadow: none;
}
.empty {
  padding: 12px;
  color: #586b60;
  font-size: 13px;
}
.decosample {
  display: grid;
  place-items: center;
}
.decosample svg {
  width: 80%;
  height: 80%;
}
.deco svg {
  width: 100%;
  height: 100%;
}
.library {
  background: repeating-linear-gradient(
    96deg,
    #334b40 0px,
    #334b40 2px,
    #394e42 3px,
    #344c40 4px
  );
  padding: 12px 11px 10px;
}
.binding {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 5px 4px 6px 7px;
  border: 1px solid #697764;
  border-radius: 4px 8px 7px 4px;
  background: #415a4c;
  box-shadow: 2px 3px 0 #233a32;
}
.leaf {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  flex-direction: column;
  padding: 19px 14px 7px 21px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #c0b597 0,
    #e5dcc3 2.2%,
    #fbf5e6 6%,
    #f7f0df 50%,
    #f4ecd7 98%,
    #c5ba9c
  );
  border-radius: 2px 5px 5px 2px;
  box-shadow:
    1px 2px 0 #c8c0a7,
    2px 3px 0 #eee4cb,
    3px 4px 0 #857e68;
  touch-action: pan-y;
}
.leaf:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 4px;
  border-left: 1px dashed #b8ab8f;
  pointer-events: none;
}
.bookheading {
  align-items: flex-end;
  border-bottom: 1px solid #a2a890;
  padding-bottom: 8px;
}
.bookheading small {
  font:
    10px/1.4 Menlo,
    monospace;
  letter-spacing: 0.1em;
  color: #677366;
}
.bookheading h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.bookheading em {
  font:
    italic 13px Georgia,
    serif;
  color: #697766;
}
.ribbon {
  position: absolute;
  right: 19px;
  top: 0;
  width: 14px;
  height: 19px;
  background: #96513b;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 77%, 0 100%);
}
.specimens {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}
.entry {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 6px 8px;
  border: 1px solid #d1c9b1;
  border-radius: 2px;
  background: linear-gradient(135deg, #faf5e9ad, #ede7d357);
  text-align: center;
}
.entry:hover,
.entry:focus-visible {
  background: #fff9e8;
  border-color: #8a9778;
}
.number {
  align-self: start;
  font:
    10px/1 Menlo,
    monospace;
  letter-spacing: 0.1em;
  color: #737a68;
}
.specart {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.specart .art {
  width: 89%;
  height: 80%;
  max-height: 124px;
}
.entry b {
  font:
    700 16px/1.35 "Songti SC",
    "SimSun",
    serif;
}
.entry small {
  color: #657060;
  font-size: 11px;
  margin-top: 2px;
}
.entry.unknown {
  border-style: dashed;
}
.entry.unknown b {
  color: #677161;
}
.folio {
  border-top: 1px solid #bac1a9;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  min-height: 46px;
}
.folio button {
  min-width: 46px;
  min-height: 44px;
  border: 0;
  background: none;
  font: 22px Georgia;
  color: #3c5247;
}
.folio button:disabled {
  color: #bcbdaa;
}
.folio span {
  font-size: 12px;
  color: #5d695a;
}
.folio i {
  font: italic 14px Georgia;
  margin-left: 7px;
}
.spread .leaf:nth-child(2) {
  margin-left: 2px;
}
.turn-next {
  animation: paperNext 0.24s ease-out;
}
.turn-prev {
  animation: paperPrev 0.24s ease-out;
}
@keyframes paperNext {
  from {
    transform: perspective(700px) rotateY(-7deg);
    filter: brightness(0.94);
  }
  to {
    transform: none;
  }
}
@keyframes paperPrev {
  from {
    transform: perspective(700px) rotateY(7deg);
    filter: brightness(0.94);
  }
  to {
    transform: none;
  }
}
dialog {
  color: #263e34;
  border: 1px solid #847c60;
  border-radius: 5px;
  background: #f6efdc;
  width: min(360px, 91vw);
  padding: 0;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 20px 70px #142e2b66;
}
dialog::backdrop {
  background: #192f2ae3;
}
.details {
  padding: 15px 18px 17px;
}
.topline {
  font-size: 11px;
  color: #586c59;
  letter-spacing: 0.07em;
}
.topline button {
  min-width: 44px;
  border: 0;
  background: transparent;
  font-size: 22px;
}
.herofish {
  display: grid;
  place-items: center;
  height: clamp(125px, 27dvh, 210px);
  background: radial-gradient(ellipse, #ece2c6, #f5efdc 75%);
  border-block: 1px solid #d3cab0;
  margin: 4px 0 11px;
}
.herofish img {
  height: 87%;
  width: 85%;
}
.detailtitle h2 {
  font-size: 26px;
}
.detailtitle small {
  border: 1px solid #a7b9a1;
  color: #53715d;
  padding: 2px 6px;
}
.details p {
  font-size: 14px;
  line-height: 1.7;
  margin: 7px 0;
  color: #43574a;
}
.facts {
  margin: 9px 0 12px;
}
.facts div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #d6cfb8;
  padding: 6px 0;
  font-size: 13px;
}
.facts dt {
  color: #63715e;
}
.facts dd {
  margin: 0;
  font-weight: 600;
}
.detailbuttons {
  display: flex;
  gap: 6px;
}
.detailbuttons button {
  flex: 1;
}
.notice {
  font: 12px/1.4 system-ui;
  color: #52695a;
}
@media (max-height: 730px) {
  #head {
    padding-block: 6px;
  }
  .tray {
    padding-block: 6px;
  }
  .trayhead h2 {
    font-size: 19px;
  }
  .item {
    min-height: 48px;
  }
  .item img {
    height: 34px;
  }
  .tabs {
    margin-bottom: 4px;
  }
  .status {
    margin: 4px 0;
  }
  .library {
    padding-block: 7px;
  }
  .leaf {
    padding-top: 14px;
  }
  .specimens {
    margin-top: 7px;
    gap: 5px;
  }
  .entry .art {
    max-height: 97px;
  }
}
@media (min-width: 780px) {
  .machine:has(.library) {
    max-width: 900px;
  }
  .spread .leaf {
    padding: 26px 24px 10px 29px;
  }
  .spread .folio {
    justify-content: center;
  }
  .specart .art {
    max-height: 155px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

html,
body {
  height: 100%;
  overscroll-behavior: none;
}
.machine {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-top: env(safe-area-inset-top);
}
#head {
  gap: 10px;
}
.arcade-home,
.shareTrigger {
  background: #29473d;
  color: #f5ecd9;
  border: 1px solid #6d8270;
  text-decoration: none;
  display: grid;
  place-items: center;
  border-radius: 5px;
  width: 44px;
  height: 44px;
  flex: none;
}
.arcade-home { padding: 0; }
#leave-game { background: var(--stock), var(--paper); }
#leave-game .details { padding: 20px; }
#leave-game h2 { margin: 0 0 18px; line-height: 1.25; }
.home-confirm {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid #a59775;
  border-radius: 4px;
  color: #31483e;
  background: #f5efdf;
  font-size: 14px;
  font-weight: 630;
  text-align: center;
  text-decoration: none;
}
.identity {
  flex: 1;
}
.wallet,
.metric {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.wallet {
  color: #f0d49b;
}
.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  image-rendering: pixelated;
}
.overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.overlays button {
  pointer-events: auto;
}
.plaque {
  position: absolute;
  transform: translate(-50%, -50%);
  min-height: 44px;
  min-width: 100px;
  border: 3px double #ad986c;
  background: #243c32ee;
  color: #f4dfaf;
  font-weight: 650;
  border-radius: 3px;
}
.arrival {
  flex: 1;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(
      0deg,
      #112b29 0%,
      #19322edd 20%,
      #182e2722 53%,
      transparent 72%
    ),
    url(art/cover.jpg) center 43% / cover;
  color: #fbf2d9;
}
.arrivalcopy {
  padding: clamp(20px, 6vw, 34px);
  width: 100%;
}
.arrival small,
.metric,
.number {
  font-variant-numeric: tabular-nums;
}
.arrival small {
  font: 600 10px/1.5 system-ui;
  letter-spacing: 0.22em;
  color: #f1d6a0;
}
.arrival h2 {
  font-size: clamp(38px, 8.5vw, 56px);
  line-height: 1.15;
  margin: 10px 0;
}
.arrival p {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.65;
  color: #e3e9d9;
}
.start {
  margin-top: 20px;
  min-height: 48px;
  width: 100%;
  font-weight: 700;
  border: 1px solid;
  border-radius: 4px;
}
.standpick,
.forms {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.standpick button,
.forms button {
  min-height: 44px;
  padding: 4px 6px;
  background: #f6f1e4;
  border: 1px solid #bdb89f;
  border-radius: 4px;
  font-size: 12px;
}
.standpick .on,
.forms .on {
  background: #355a4c;
  color: #fff2ce;
  border-color: #355a4c;
}
.goods small,
.shoprow small {
  display: block;
}
.traygrid {
  overflow: auto;
  max-height: clamp(50px, 17dvh, 148px);
  scrollbar-width: thin;
}
.shoplist {
  overflow: auto;
  max-height: clamp(100px, 31dvh, 290px);
  scrollbar-width: thin;
}
.goods,
.shoprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid #c9c3ab;
}
.goods small,
.shoprow small {
  font-size: 12px;
  color: #576859;
}
.goods b,
.shoprow b {
  font-size: 14px;
}
.buy {
  min-width: 72px;
  min-height: 44px;
  border: 1px solid #ac9666;
  border-radius: 4px;
  background: #f1d397;
}
.buy:disabled {
  background: #e6e3d2;
  border-color: #c5c2af;
  color: #757a67;
}
.shoprow {
  width: 100%;
  justify-content: flex-start;
  text-align: start;
  background: none;
  border: 0;
  border-bottom: 1px solid #c6bea5;
}
.shoprow .art {
  width: 52px;
  height: 44px;
}
.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid #c1b99e;
}
.ledger span {
  text-align: center;
  font-size: 12px;
}
.ledger b {
  display: block;
  font: 700 30px Georgia;
  color: #365c47;
}
#nav:empty {
  display: none;
}
#nav i {
  font: normal 20px Georgia;
  color: #e2d3ac;
}
.saveNotice {
  background: #fff0b5;
  padding: 4px 10px;
  font-size: 12px;
}
.refs a {
  color: #3c6558;
  font-size: 12px;
}
.forms button {
  flex: 1;
}
.legend {
  padding: 7px;
  background: #e7ead9;
}
.refs {
  margin: 8px 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.tray .status:empty {
  display: none;
}
.item b {
  white-space: normal;
  line-height: 1.2;
}
#details .forms button {
  font-size: 11px;
}
.shoplist .standpick button {
  flex: 1;
}
.actionrow button[data-game-share] {
  background: #e9ead9;
}
.stage {
  min-height: 90px;
}
@media (min-width: 780px) {
  .machine {
    max-width: 550px;
  }
  .arrivalcopy {
    padding-bottom: 38px;
  }
}
@media (max-height: 550px) {
  .tray {
    max-height: 55dvh;
    overflow: auto;
  }
  .shoplist {
    max-height: 120px;
  }
  .machine h1 {
    font-size: 19px;
  }
  .library {
    overflow: auto;
  }
}

.loading {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  background: #203e35ed;
  color: #f6ebce;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
}

/* The chart and the aquarium share the same painted brass and sea-green trim. */
.chart-trigger {
  display: grid;
  place-content: center;
  justify-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 4px;
  background: #29473d;
  color: #f5ecd9;
  border: 1px solid #6d8270;
  border-radius: 5px;
  font: 600 11px/1.1 system-ui;
  gap: 2px;
}
.chart-trigger i {
  font: normal 20px/0.8 Georgia;
}
.chart-trigger:disabled {
  color: #dfc48f;
}
.chart-trigger[hidden],
.goal-strip[hidden] {
  display: none;
}
.goal-strip {
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 7px 16px;
  background: #e8e5cb;
  color: #284537;
  border: 0;
  border-bottom: 1px solid #aaa783;
  min-height: 48px;
}
.goal-strip > span {
  min-width: 0;
  flex: 1;
}
.goal-strip small {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: #53644d;
}
.goal-strip b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}
.goal-strip em {
  white-space: nowrap;
  font: 600 12px/1.2 monospace;
  color: #51624e;
}
.goal-seal {
  font: normal 23px/1 Georgia;
  color: #776135;
}
.goal-strip:active {
  background: #f3ecd1;
}
#view.chart {
  background: #183d3c;
}
.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 17px 8px;
  color: #fbedd0;
  background: #26483e;
  flex: none;
  border-bottom: 1px solid #7b8469;
}
.map-head h2 {
  font-size: 22px;
  line-height: 1.15;
}
.map-head small {
  font: 600 9px/1.2 system-ui;
  letter-spacing: 0.17em;
  color: #d5bd8f;
}
.map-count {
  font-size: 12px;
  color: #e6d6ab;
}
.map-surround {
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  container-type: size;
  background: repeating-linear-gradient(0deg, #204747 0 2px, #224a49 2px 4px);
}
.map-square {
  position: relative;
  width: min(100cqw, 100cqh);
  aspect-ratio: 1;
  isolation: isolate;
  box-shadow: 0 0 0 1px #7c8a6c;
}
.map-square canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.north {
  position: absolute;
  right: 4%;
  top: 4%;
  font: 700 11px/1.1 Georgia;
  color: #ffeac1;
  text-align: center;
  text-shadow: 0 1px 3px #102c29;
}
.north span {
  display: block;
  font-size: 8px;
}
.port {
  position: absolute;
  transform: translate(-50%, -14px);
  min-height: 44px;
  min-width: 48px;
  display: flex;
  align-items: center;
  flex-direction: column;
  background: none;
  border: 0;
  padding: 2px 0;
  color: #fdf4df;
  font: 650 clamp(10px, 3cqw, 13px) / 1.2 system-ui;
  filter: drop-shadow(0 2px 1px #17392a99);
  white-space: nowrap;
}
.port span {
  padding: 3px 6px;
  border: 1px solid #a8ad8a;
  background: #203f35f5;
  border-radius: 3px;
}
.port i {
  height: 18px;
  width: 18px;
  display: grid;
  place-items: center;
  font: normal 10px/1 Georgia;
  background: #294f40;
  border: 2px solid #dbd4a4;
  border-radius: 50%;
}
.port.here i {
  background: #be823c;
  color: white;
}
.port small {
  color: #203b32;
  background: #eae3bf;
  border-radius: 0 0 2px 2px;
  font-size: 9px;
  padding: 1px 4px;
}
.port.sealed span,
.port.sealed i {
  background: #495b57;
  border-color: #b8c2ab;
  color: #eeeede;
}
.port.chosen span,
.port.chosen i {
  background: #ffe1a0;
  border-color: #533f25;
  color: #2a3e30;
}
.port.chosen {
  z-index: 2;
}
.dest {
  flex: none;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(110deg, #faf4e4, #e9e4cf);
  border-top: 3px double #aa9871;
  display: grid;
  gap: 10px;
}
.dest small {
  font-size: 11px;
  color: #56634d;
}
.dest h2 {
  font-size: 22px;
  line-height: 1.3;
}
.dest p {
  font-size: 13px;
  line-height: 1.5;
  color: #41594c;
  margin-top: 2px;
}
.depart {
  min-height: 44px;
  border: 1px solid #aa8851;
  border-radius: 4px;
  font-weight: 700;
}
.task-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.task-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #cfc6a9;
  font-size: 14px;
}
.task-list i {
  font-style: normal;
  color: #8a7954;
}
.task-list .checked {
  color: #496951;
}
.task-list .checked i {
  font-weight: 700;
  color: #36765b;
}
.task-list li span {
  flex: 1;
}
.task-list small {
  white-space: nowrap;
  color: #586957;
}
.details .unlock {
  margin: 10px 0 14px;
  font-size: 13px;
}
.unlock b {
  color: #775c2c;
  margin-right: 8px;
}
@media (max-width: 360px) {
  #head {
    gap: 5px;
    padding-inline: 8px;
  }
  #head h1 {
    font-size: 20px;
  }
  .goal-strip {
    padding-inline: 9px;
  }
  .map-head {
    padding: 6px 12px;
  }
  .dest {
    padding: 8px 10px;
    gap: 5px;
  }
  .goal-strip b {
    font-size: 13px;
  }
  .wallet {
    font-size: 11px;
  }
}
@media (max-height: 650px) {
  .map-head small {
    display: none;
  }
  .map-head {
    padding-block: 5px;
  }
  .map-head h2 {
    font-size: 19px;
  }
  .dest {
    padding-block: 6px;
    gap: 4px;
  }
  .dest p {
    font-size: 12px;
  }
}
@media (min-width: 800px) and (min-height: 530px) {
  .machine:has(#view.chart) {
    max-width: 720px;
  }
  .chart .map-head,
  .chart .dest {
    padding-inline: 22px;
  }
  .chart .dest {
    grid-template-columns: 1fr minmax(112px, auto);
    align-items: center;
  }
  .chart .depart {
    padding: 0 18px;
  }
}

.net-find {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(78%, 245px);
  max-height: 94%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  padding: 9px 14px 14px;
  background: radial-gradient(ellipse at 50% 30%, #40675af5, #172f2bf7 82%);
  border: 1px solid #d6bd87;
  outline: 1px solid #18372f;
  box-shadow:
    inset 0 0 0 4px #294a40,
    0 8px 26px #192c2666;
  color: #fff1d5;
  animation: net-reveal 0.3s ease-out;
}
.net-find .art {
  width: min(104px, 24cqh);
  height: min(104px, 24cqh);
  object-fit: contain;
}
.net-find small {
  color: #f0cd86;
  font-size: 12px;
}
.net-find strong {
  font-size: clamp(17px, 4.8vw, 23px);
  line-height: 1.2;
  text-align: center;
}
.net-find span {
  font-size: 13px;
  color: #e4e4cf;
}
@keyframes net-reveal {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .net-find {
    animation: none;
  }
}

.hunt .tray {
  min-height: 136px;
}
.net-cancel {
  position: absolute;
  right: 10px;
  top: 6px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #b3b092;
  color: #f4ecd4;
  background: #203d35e6;
  border-radius: 4px;
  font-size: 12px;
}

.shore-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  min-height: 49px;
}
.shore-hint {
  margin: 0;
  flex: 1;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1.45;
  color: #40584b;
}
.shore-action,
.field-tag {
  min-height: 44px;
  border-radius: 4px;
  font-weight: 650;
}
.shore-action {
  flex: none;
  min-width: 68px;
  background: #24493d;
  color: #fff0ce;
  border: 2px solid #527360;
  box-shadow: inset 0 1px #73907a;
}
.shore-action:disabled {
  opacity: 0.62;
}
.net-find {
  pointer-events: auto;
}
.field-tag {
  color: #f8daa0;
  background: transparent;
  border: 0;
  border-top: 1px dashed #91a18b;
  margin-top: 5px;
  padding-inline: 14px;
}
.tank-drops {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tank-drops i {
  position: absolute;
  width: 35px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed #ffde87;
  background: #1a514f80;
}
.tank-drops .over {
  background: #b9e6bead;
  border: 3px solid #fff1a7;
}
.resident-in-hand {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  object-fit: contain;
  z-index: 8;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px #173e3ad9);
}
.studio .item[data-act="select"] .art {
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.weighing,
.dock-slip,
.admit-ticket {
  position: absolute;
  pointer-events: auto;
}
.weighing {
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(84%, 240px);
  display: grid;
  justify-items: center;
}
.scale-pan {
  width: 68%;
  height: clamp(26px, 12cqh, 58px);
  position: relative;
  display: grid;
  justify-items: center;
  align-items: end;
}
.scale-pan:before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  border: 2px solid #d4ba82;
  border-bottom: 5px solid #654e37;
  background: radial-gradient(ellipse, #a59a6b, #625f50);
  border-radius: 50%;
}
.scale-pan img {
  position: absolute;
  bottom: 12%;
  left: 13%;
  width: 74%;
  height: 118%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #20392c);
}
.sale-tag,
.dock-slip,
.admit-ticket {
  background: #f1e2bc;
  color: #29443a;
  border: 1px solid #a38b62;
  box-shadow: 0 4px 10px #162d2966;
  text-align: center;
}
.sale-tag {
  width: 100%;
  padding: 5px 9px 7px;
  border-top: 3px double #987746;
  display: grid;
  gap: 1px;
}
.sale-tag small {
  font-size: 11px;
}
.sale-tag > div {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  justify-content: center;
}
.sale-tag button {
  min-height: 44px;
  font-size: 12px;
  flex: 1;
  padding: 3px 5px;
}
.shoprow.on {
  outline: 2px solid #a78347;
  outline-offset: -2px;
}
.dock-slip,
.admit-ticket {
  bottom: 8%;
  right: 5%;
  padding: 9px 14px;
  display: grid;
  gap: 3px;
  transform: rotate(-3deg);
  animation: dock-slip-in 0.28s ease-out;
}
.dock-slip span {
  font-family: monospace;
  font-weight: bold;
  color: #295443;
}
.admit-ticket {
  left: 7%;
  right: auto;
  bottom: 8%;
  border-block: 3px double #a58955;
  transform: rotate(-5deg);
}
.admit-ticket span,
.admit-ticket small {
  font: 9px/1.5 monospace;
  letter-spacing: 0.1em;
}
.admit-ticket b {
  font:
    700 21px Georgia,
    serif;
  letter-spacing: 0.12em;
}
@keyframes dock-slip-in {
  from {
    opacity: 0;
    translate: 0 7px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dock-slip,
  .admit-ticket {
    animation: none;
  }
}

/* Harbour joinery, field-paper fibres and the small objects on the curator's desk. */
:root {
  --pier-wood: url(art/pier-oak.png);
  --stock: url(art/paper-fibre.png);
  --hardware: linear-gradient(
    158deg,
    #729086 0%,
    #466a60 12%,
    #34584f 55%,
    #284c43 82%,
    #25443e 100%
  );
  --brass: linear-gradient(
    168deg,
    #ffe1a2 0%,
    #f2cd88 24%,
    #e8bb72 64%,
    #c59052 100%
  );
  --paper: linear-gradient(108deg, #f8efd9, #f0e5cc 72%, #e8d9ba);
  --bolt: radial-gradient(
    circle at 1.5px 1.5px,
    #f7d59c 0 1px,
    #96744f 1.5px 2px,
    #433f35 2.5px,
    transparent 3px
  );
}
body {
  background:
    radial-gradient(ellipse at 50% 30%, #385b526b, #112523be), var(--pier-wood),
    #253c34;
}
.machine {
  border-inline: 1px solid #594b3a;
  box-shadow:
    0 0 0 2px #252d27,
    0 10px 80px #081c1bbb;
}
#head,
#nav,
.map-head {
  background:
    linear-gradient(98deg, #113e36a1, #2a42364f 58%, #392c2266),
    var(--pier-wood), #473b2f;
}
#head {
  position: relative;
  border-bottom: 3px solid #a28253;
  box-shadow:
    inset 0 1px #a89d7780,
    inset 0 -3px #282d24;
}
#head:before,
#head:after {
  content: "";
  position: absolute;
  top: 5px;
  width: 5px;
  height: 5px;
  background: var(--bolt);
  pointer-events: none;
}
#head:before {
  left: 5px;
}
#head:after {
  right: 4px;
}
.identity h1 {
  color: #fff2cf;
  text-shadow: 0 2px #262b22;
}
.kicker {
  color: #f2d8a6;
}
.arcade-home,
.chart-trigger,
.shareTrigger,
.shore-action {
  color: #fff1ce;
  border: 1px solid #a49870;
  border-radius: 5px 4px 5px 3px;
  background:
    linear-gradient(150deg, #b7ad7940, transparent 23%), var(--hardware);
  box-shadow:
    inset 0 1px #cfcea274,
    inset 0 -2px #153b35,
    0 2px 0 #292d24,
    0 3px 4px #1b2b263b;
}
.chart-trigger i,
.wallet:before,
.goal-seal,
.bookheading:after {
  background-image: url(art/dock-emblems.png);
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.chart-trigger i {
  display: block;
  width: 23px;
  height: 23px;
  background-size: 69px 23px;
  background-position: -23px 0;
  font-size: 0;
}
.wallet {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #ffe1a4;
  text-shadow: 0 1px #322d26;
}
.wallet:before {
  content: "";
  width: 18px;
  height: 18px;
  background-size: 54px 18px;
  background-position: -36px 0;
}
.goal-strip {
  background:
    var(--stock), linear-gradient(90deg, #ddcfad, #ede3c8 12%, #ded6b7 98%);
  box-shadow:
    inset 0 1px #fff2db,
    inset 0 -3px #95886430;
}
.goal-seal {
  width: 30px;
  height: 30px;
  flex: none;
  background-size: 90px 30px;
  color: transparent;
  transform: rotate(-11deg);
}
.goal-strip b {
  color: #27483b;
}
#view > .tray,
.dest {
  position: relative;
  background: var(--stock), var(--paper);
  border-top: 5px solid #69513c;
  box-shadow:
    inset 0 1px #e3c392,
    inset 0 3px #b89b70,
    inset 0 5px #e7d4ad;
}
#view > .tray:before,
.dest:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5px;
  height: 4px;
  background: linear-gradient(#977a4b5c, #302d2522), var(--pier-wood);
  pointer-events: none;
}
.trayhead {
  padding-block: 2px;
  border-bottom: 1px solid #99896d65;
}
.trayhead h2,
.dest h2 {
  color: #283f35;
}
.metric {
  color: #455446;
}
#nav {
  border-top: 2px solid #8c744e;
  box-shadow: inset 0 1px #c3ac7640;
}
#nav button[aria-current="true"] {
  background: linear-gradient(0deg, #25483f, #3a5e4d);
  box-shadow: inset 0 0 0 1px #a78d5f66;
}
.gold,
.shore-action,
.actionrow .gold,
.details .gold,
.sale-tag .gold,
.depart,
.buy:not(:disabled) {
  border: 1px solid #966f42;
  color: #352e21;
  background: var(--stock), var(--brass);
  box-shadow:
    inset 0 1px #ffeabd,
    inset 0 -2px #b4864b,
    0 2px 0 #785b3c59;
}
.plain,
.returnslot,
.actionrow > button:not(.gold):not([data-game-share]),
.sale-tag .plain {
  background: var(--stock), linear-gradient(155deg, #fcf5df, #ece0c6);
  border: 1px solid #ad9a78;
  color: #354d3d;
  box-shadow:
    inset 0 1px #fffae8,
    inset 0 -1px #cab995,
    0 1px 0 #b8a28066;
}
button:not(:disabled):is(.gold, .shore-action, .plain, .buy, .depart):active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px #6d532d66;
}
.metal,
.plaque,
.net-cancel {
  background: linear-gradient(155deg, #516656ec, #2b443eea);
  border: 1px solid #b6a078;
  box-shadow:
    inset 0 1px #d8be914a,
    0 2px 2px #162f2880;
  color: #f9ecd1;
}
.metal {
  border-radius: 2px 3px 2px 2px;
}
.map-surround,
.library {
  background: linear-gradient(15deg, #183f39b0, #32594d55), var(--pier-wood);
}
.map-square {
  box-shadow:
    0 0 0 2px #8c7859,
    0 0 0 4px #513e2d,
    0 5px 12px #1f2825aa;
}
.port span {
  box-shadow:
    inset 0 1px #ccbea647,
    0 2px 2px #11291e66;
}
.leaf,
.details,
.sale-tag,
.dock-slip,
.admit-ticket {
  background-image: var(--stock), var(--paper);
}
.leaf {
  box-shadow:
    inset 9px 0 13px -9px #866943,
    inset -2px 0 2px #b9a384,
    1px 2px 0 #a58c65;
}
.bookheading {
  position: relative;
}
.bookheading:after {
  content: "";
  width: 23px;
  height: 23px;
  background-size: 69px 23px;
  position: absolute;
  right: 45px;
  top: 0;
  opacity: 0.75;
  transform: rotate(31deg);
  pointer-events: none;
}
.herofish {
  background: var(--stock), radial-gradient(ellipse, #f9efd6, #e4d6b7);
  box-shadow: inset 0 1px 3px #8f7d592a;
}
.item,
.shoprow,
.goods {
  background: var(--stock), linear-gradient(115deg, #f8f0da, #eee2ca);
  border-color: #baaa8a;
}
.item.on,
.shoprow.on {
  box-shadow: inset 0 0 0 1px #94733d;
  background: var(--stock), linear-gradient(110deg, #f7e6bb, #eed6aa);
}
.scale-pan:after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 18%;
  height: 4px;
  background: #514836;
  border-top: 1px solid #c3aa6f;
}
.dock-slip,
.admit-ticket {
  border-radius: 1px 4px 2px 1px;
}
.net-find {
  background: linear-gradient(155deg, #243f35b9, #193b33ef), var(--pier-wood);
  border: 1px solid #c0a473;
  box-shadow:
    inset 0 0 0 3px #685c43,
    inset 0 0 0 4px #9c926866,
    0 6px 13px #172e267d;
}
.field-tag {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

#goal .sun-label,
#goal .sun-agenda {
  flex: none;
}
#goal .sun-label {
  min-width: 3.6em;
}
#goal .sun-label small {
  font:
    600 11px/1.25 ui-monospace,
    monospace;
}
.sun-agenda {
  font-size: 12px;
  font-weight: 650;
}
.sun-track {
  height: 9px;
  margin: 0 10px;
  position: relative;
  border-radius: 2px;
  border: 1px solid #7f8068;
  box-shadow: inset 0 1px #ffffff60;
  background: linear-gradient(
    90deg,
    #f2dea4,
    #e8bb71 46%,
    #d19574 72%,
    #697a88 91%,
    #546571
  );
}
.sun-track i {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font:
    normal 16px/21px Georgia,
    serif;
  color: #513720;
  background: #ffe5a7;
  border: 1px solid #94713e;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  text-align: center;
  box-shadow: 0 1px 3px #544b3266;
}
#nav,
.kit-tab {
  touch-action: manipulation;
}
#nav button.kit-tab,
#field-kit .kit-tab {
  display: flex;
  gap: 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 45px;
  padding: 3px 2px;
  color: #f4e8ca;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
}
#nav .kit-tab i,
#field-kit .kit-tab i {
  font: normal 20px/1 Georgia;
  color: #edcf91;
}
#field-kit .kit-tab[aria-pressed="true"] {
  border-color: #aa9161;
  background: #4b6150;
}
.agenda-art {
  position: relative;
  flex: 1;
  min-height: 44px;
  background-position: 50% 47%;
  background-size: cover;
  box-shadow: inset 0 -10px 18px #172b2740;
}
.early-light {
  background-image: url(art/cover.jpg);
  background-position: 50% 53%;
}
.end-tide {
  background-image:
    linear-gradient(0deg, #41342670, #e9b0721a), url(art/pool.jpg);
}
.after-hours {
  background-image:
    linear-gradient(0deg, #182e3394, #755a2520), url(art/hall.jpg);
}
.admit-ticket {
  position: absolute;
  bottom: 14px;
  left: 18px;
  transform: rotate(-4deg);
  display: grid;
  text-align: center;
  gap: 4px;
  padding: 8px 15px;
  background: var(--stock), #f8e1ac;
  border: 3px double #806739;
  color: #534b35;
  box-shadow: 1px 3px 4px #1d2f2aa8;
}
.admit-ticket small {
  font: 650 9px/1 system-ui;
  letter-spacing: 0.12em;
}
.day-paper,
.story-leaf {
  background: var(--stock), var(--paper);
  border-top: 3px double #a1895a;
  box-shadow:
    0 -3px 0 #4b4534,
    0 -7px 13px #172d2b55;
  padding: clamp(12px, 3.2vw, 19px);
  color: #243e34;
}
.day-paper {
  max-height: 78%;
  overflow: auto;
  overscroll-behavior: contain;
}
.day-paper > p,
.kit-body > p {
  font-size: 14px;
  line-height: 1.55;
  color: #4f5b4e;
  margin: 6px 0;
}
.agenda-rows {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.agenda-row {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  min-height: 52px;
  padding: 7px 12px;
  border: 1px solid #b8a783;
  border-radius: 4px;
  background: linear-gradient(105deg, #faf3e3, #ecdfc2);
  box-shadow:
    inset 0 1px #fff9,
    0 1px #75674840;
}
.agenda-row > i,
.award-list i {
  flex: none;
  width: 30px;
  text-align: center;
  font: normal 23px/1 Georgia;
  color: #87602c;
}
.agenda-row > span,
.catch-list div > span,
.award-list span {
  min-width: 0;
  flex: 1;
  display: grid;
}
.agenda-row b,
.catch-list b,
.award-list b {
  font-size: 15px;
}
.agenda-row small,
.catch-list small,
.award-list small {
  font-size: 12px;
  color: #516153;
}
.agenda-row em {
  font: normal 21px/1 Georgia;
  color: #76623c;
}
.agenda-row:first-child {
  background: var(--hardware);
  color: #fff0cf;
  border-color: #335849;
}
.agenda-row:first-child :is(i, small, em) {
  color: #f0ddb0;
}
.day-primary,
.story-prev,
.story-skip,
.kit-goals {
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 4px;
  border: 1px solid #ac8b51;
  font-weight: 700;
}
.day-primary {
  width: 100%;
  margin-top: 10px;
}
.day-totals {
  display: flex;
  gap: 6px;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-block: 1px solid #beaf8b;
}
.day-totals span {
  font-size: 12px;
}
.catch-list > div,
.award-list > div {
  padding: 6px 2px;
  border-bottom: 1px solid #b2a58480;
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 48px;
}
.catch-list .art {
  width: 42px;
  height: 40px;
  object-fit: contain;
}
.catch-list > p {
  font-size: 14px;
  padding: 9px 0;
}
.takings-value {
  font:
    700 clamp(32px, 6vw, 47px) / 1.25 Georgia,
    serif;
  color: #3c654b;
  padding: 10px 0 2px;
}
#field-kit {
  width: min(480px, 96vw);
  height: min(730px, 86dvh);
  background: var(--stock), var(--paper);
  overflow: hidden;
}
#field-kit[open] {
  display: flex;
  flex-direction: column;
}
#field-kit > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 13px;
  border-bottom: 1px solid #a19370;
}
#field-kit > header h2 {
  font-size: 21px;
}
#field-kit > header button {
  min-height: 44px;
  padding: 4px 13px;
}
#field-kit > nav {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 3px 6px;
  background: var(--pier-wood), #3d4639;
  border-top: 2px solid #a68d58;
}
.kit-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 15px;
  overscroll-behavior: contain;
}
.kit-body h3 {
  margin: 11px 0 4px;
  font-size: 17px;
}
.kit-chart,
.kit-book {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.kit-book {
  padding: 6px;
  touch-action: pan-y;
}
.kit-chart .map-surround {
  min-height: 145px;
}
.kit-chart .dest {
  flex: none;
}
.kit-body .agenda-rows {
  margin: 0;
}
.kit-goals {
  background: transparent;
}
.award-list > div {
  padding-block: 12px;
}
.award-list .earned i {
  color: #9b651c;
}
.award-list .earned {
  background: #f4dfa775;
}
.postcard {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
  flex-direction: column;
  isolation: isolate;
  touch-action: pan-y;
  background: #213e38;
}
.story-picture {
  position: relative;
  flex: 1;
  min-height: 24px;
  background-size: cover;
  background-position: 50% 43%;
  box-shadow: inset 0 -5px 15px #1e342a66;
}
.story-0 .story-picture {
  background-position: center 28%;
}
.story-0 .story-picture:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #102134bf, #2134586b 62%, #3459583b);
}
.story-0 .story-picture:after {
  content: "";
  position: absolute;
  left: 49%;
  top: 24%;
  width: 27%;
  height: 3px;
  transform: rotate(33deg);
  background: linear-gradient(90deg, transparent, #d7e6d6 88%, #fff6c9);
  box-shadow: 8px 2px 7px #dfd59c82;
}
.story-1 .story-picture {
  background-position: center 58%;
}
.story-2 .story-picture {
  background-position: center 61%;
}
.postmark {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.postmark > span {
  padding: 5px 9px;
  color: #f5e4ba;
  background: #18362fea;
  border: 1px solid #a38e63;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 2px;
}
.story-skip {
  color: #f7efd8;
  border-color: #aa9e7a;
  background: #253a33ed;
  min-width: 48px;
}
.story-leaf {
  position: relative;
  flex: none;
  padding: clamp(14px, 4vw, 24px);
  border-top-width: 4px;
}
.folio-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.folio-dots i {
  display: block;
  width: 8px;
  height: 4px;
  background: #b8ae97;
  border-radius: 1px;
}
.folio-dots .current {
  background: #47705a;
  width: 22px;
}
.story-leaf :is(h1,h2) {
  font-size: clamp(23px, 6vw, 32px);
  line-height: 1.2;
  text-wrap: balance;
  outline: none;
}
.story-leaf p {
  margin: 9px 0 12px;
  line-height: 1.65;
  max-width: 53ch;
  font-size: 15px;
}
.story-controls {
  display: flex;
  gap: 9px;
  align-items: stretch;
}
.story-controls .day-primary {
  flex: 1;
  margin: 0;
}
.story-prev {
  background: #f3ead4;
  color: #3c5244;
}
.shore-action {
  touch-action: manipulation;
}
@media (min-width: 780px) {
  #field-kit:has(.kit-book) {
    width: min(800px, 90vw);
  }
}
@media (max-height: 640px) {
  .day-paper {
    max-height: 80%;
    padding: 10px 12px;
  }
  .agenda-row {
    min-height: 45px;
    padding-block: 4px;
  }
  .agenda-rows {
    gap: 4px;
  }
  .story-leaf {
    padding: 12px 14px;
  }
  .story-leaf p {
    font-size: 14px;
    margin: 7px 0 10px;
  }
  #field-kit {
    height: 89dvh;
  }
  .kit-book .binding {
    min-height: 270px;
  }
}

.kit-story {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.award-list + .kit-goals {
  width: 100%;
  margin-top: 12px;
}

.reset-link {
  display: block;
  min-height: 44px;
  margin: 14px 0 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #7b4136;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#reset-progress {
  background: var(--stock), var(--paper);
}
#reset-progress .details {
  padding: 19px;
}
#reset-progress h2 {
  margin: 4px 0 9px;
  font-size: 23px;
}
#reset-progress p {
  margin: 0 0 16px;
  line-height: 1.65;
}
#reset-progress small {
  color: #586858;
}
#reset-progress .reset-confirm {
  background: #834431;
  color: #fff8ec;
  border-color: #773b29;
}
#reset-progress .reset-error {
  color: #853b28;
}

.tide-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 9px;
  color: #284f42;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.departure > .tide-guide {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 10px;
  border-radius: 4px;
  background: #f8eed7;
  box-shadow: 0 1px 5px #1b322c60;
}
.tide-guide:focus-visible { outline: 3px solid #a87011; outline-offset: 2px; }

#viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  isolation: isolate;
  overflow: hidden;
}
#scene-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.scene-wipe {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#243f3114, #112b2880),
    var(--from) center/cover;
  animation: leave-room 0.45s ease-in-out both;
}
@keyframes leave-room {
  0% {
    opacity: 0.93;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.065);
  }
}
.scene-wipe.dawn-wipe {
  animation: wake-up 0.85s ease-out both;
}
@keyframes wake-up {
  0% {
    opacity: 1;
    filter: brightness(0.48);
  }
  32% {
    opacity: 0.92;
    filter: brightness(0.24);
  }
  100% {
    opacity: 0;
    filter: brightness(0.84);
  }
}
.scene-wipe.reveal-chart {
  display: grid;
  place-items: center;
  background:
    linear-gradient(0deg, #322f20ae, #20362f38),
    var(--from) center/cover;
  animation: leave-chart 0.82s ease both;
}
@keyframes leave-chart {
  0%,
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.fold-chart {
  width: min(88%, 52dvh);
  aspect-ratio: 1;
  display: flex;
  perspective: 780px;
  filter: drop-shadow(2px 9px 5px #24251877);
}
.fold-chart i {
  width: 50%;
  height: 100%;
  background-image: url(art/coast-chart.jpg);
  background-size: 200% 100%;
  border: 2px solid #e8d7a6;
  transform-origin: 100% 50%;
  animation: unfold-left 0.65s cubic-bezier(0.2, 0.74, 0.28, 1) both;
}
.fold-chart i + i {
  background-position: right;
  transform-origin: 0% 50%;
  animation-name: unfold-right;
}
@keyframes unfold-left {
  from {
    transform: rotateY(87deg) scale(0.7);
    filter: brightness(0.43);
  }
  to {
    transform: rotateY(0) scale(1);
    filter: brightness(1);
  }
}
@keyframes unfold-right {
  from {
    transform: rotateY(-85deg) scale(0.7);
    filter: brightness(0.6);
  }
  to {
    transform: rotateY(0) scale(1);
    filter: brightness(1);
  }
}
.postcard .story-picture {
  position: relative;
  overflow: hidden;
  background: var(--pier-wood), #273f39;
  container-type: size;
  background-size: cover;
  background-position: center;
}
.postcard .story-picture:before,
.postcard .story-picture:after {
  content: none;
}
.story-picture i {
  position: absolute;
  inset: 0;
  background: var(--plate) center/contain no-repeat;
  filter: drop-shadow(0 0 5px #182d29a6);
}
.early-light {
  background-image: url(art/morning-coffee.jpg);
  background-position: 50% 54%;
}
.period-tag {
  font: 650 11px/1.5 system-ui;
  color: #65553b;
}
.evening-label {
  margin: 12px 0 3px;
  font-size: 17px;
}
.ledger .day-paper {
  max-height: 86%;
}
.chart-back,
.land-now {
  border: 1px solid #b19a74;
  border-radius: 4px;
  background: #28483f;
  color: #fff0cc;
  padding: 7px 13px;
  min-height: 44px;
  font-weight: 650;
}
.chart .map-count {
  margin-left: auto;
}
.chart .map-head h2 {
  font-size: clamp(16px, 4vw, 22px);
}
#crossing {
  box-sizing: border-box;
  width: min(100vw, 510px);
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: auto;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: #243d34;
  border: 0;
  border-inline: 1px solid #605942;
  border-radius: 0;
  overflow: hidden;
  color: #253e36;
}
#crossing[open] {
  display: flex;
  flex-direction: column;
}
#crossing::backdrop {
  background: transparent;
}
#crossing header,
#crossing footer {
  padding: 12px 17px;
}
#crossing header {
  flex: none;
  background: var(--pier-wood), #31483d;
  color: #fff0c9;
  border-bottom: 2px solid #baa174;
}
#crossing header small {
  font: 600 10px/1.3 system-ui;
  letter-spacing: 0.13em;
  color: #e6cf9d;
}
#crossing h2 {
  font-size: 23px;
}
#crossing footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--stock), var(--paper);
  border-top: 3px double #a48a5d;
}
#crossing footer small,
#crossing footer b {
  display: block;
}
#crossing footer small {
  color: #516254;
}
.channel {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #447679 url(art/channel.jpg) center/cover;
}
.sea-plate {
  position: absolute;
  inset: 0 -10%;
  background: url(art/channel.jpg) center/cover;
}
#crossing[data-home="true"] .sea-plate {
  filter: sepia(0.4) brightness(0.78);
  background-blend-mode: soft-light;
  background-color: #e7a664;
}
.boat-track {
  position: absolute;
  left: 50%;
  top: 64%;
  width: 46%;
  transform: translate(-50%, -70%) scaleX(var(--bearing, 1));
}
.voyage-boat {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  image-rendering: pixelated;
  transform-origin: 50% 80%;
  animation: boat-bob 0.78s infinite ease-in-out alternate;
}
@keyframes boat-bob {
  from {
    transform: translateY(-2px) rotate(-1.7deg);
  }
  to {
    transform: translateY(2px) rotate(1.4deg);
  }
}
.wake {
  position: absolute;
  right: 70%;
  bottom: 9%;
  width: 54%;
  height: 9%;
  border-radius: 60%;
  background: repeating-linear-gradient(
    172deg,
    transparent 0 4px,
    #e3f4daaa 5px 6px,
    transparent 7px 10px
  );
  box-shadow: inset 0 -2px #c9e6d2b0;
  animation: wake-drift 0.48s linear infinite;
}
@keyframes wake-drift {
  from {
    transform: scale(0.88) translateX(4%);
    opacity: 0.88;
  }
  to {
    transform: scale(1.07) translateX(-4%);
    opacity: 0.54;
  }
}
.cross-map {
  position: absolute;
  width: clamp(88px, 27%, 125px);
  bottom: 12px;
  right: 12px;
  aspect-ratio: 1;
  border: 3px double #d1b887;
  background: #295554 url(art/coast-chart.jpg) center/cover;
  box-shadow: 2px 3px 0 #15332f8a;
  transform: rotate(2deg);
}
.cross-map canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.land-now {
  background: var(--brass);
  color: #383a29;
  white-space: nowrap;
}
@media (max-height: 640px) {
  .ledger .day-paper {
    max-height: 90%;
  }
  .ledger .agenda-row {
    min-height: 44px;
  }
  .ledger .takings-value {
    font-size: 28px;
    padding-top: 3px;
  }
  .ledger .evening-label {
    margin-top: 5px;
  }
  .ledger .admit-ticket {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-wipe,
  .fold-chart i {
    animation: none;
  }
}

@container (min-aspect-ratio: 2/3) and (max-aspect-ratio: 1/1) {
  .story-picture i {
    background-size: cover;
  }
}

.scene-wipe.shop-door {
  transform-origin: left center;
  animation: shop-door 0.52s ease-out both;
}
@keyframes shop-door {
  0% {
    opacity: 0.98;
    transform: perspective(720px) rotateY(0deg);
  }
  100% {
    opacity: 0;
    transform: perspective(720px) rotateY(-52deg);
  }
}
.scene-wipe.tank-glass:after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    108deg,
    transparent 26%,
    #b0e5de66 40%,
    transparent 55%
  );
  animation: glass-light 0.42s ease-out both;
}
@keyframes glass-light {
  from {
    transform: translateX(-55%);
  }
  to {
    transform: translateX(65%);
  }
}
.scene-wipe.gallery-lamp {
  animation: gallery-lamp 0.5s ease-out both;
}
@keyframes gallery-lamp {
  0% {
    opacity: 1;
    filter: brightness(0.65);
  }
  65% {
    filter: brightness(1.15);
  }
  100% {
    opacity: 0;
  }
}
.kit-goals + .kit-goals {
  width: 100%;
  margin-top: 6px;
}
.market .tray {
  max-height: calc(100% - 90px);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.market .tray > * {
  flex: none;
}
.market .tray .shoplist {
  flex: 0 1 auto;
  min-height: 46px;
  overscroll-behavior: contain;
}
@media (min-width: 780px) {
  #crossing {
    width: min(100vw, 550px);
  }
}

/* Brass tools, a loose-leaf day planner and the glassmaker's bench. */
.harbour-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  vertical-align: middle;
  flex: none;
}
#nav .kit-tab i,
#field-kit .kit-tab i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
}
#nav .kit-tab,
#field-kit .kit-tab {
  border: 0;
  background: transparent;
  box-shadow: none;
}
#field-kit .kit-tab[aria-pressed="true"] {
  color: #ffdf96;
  background: radial-gradient(ellipse at center, #687d54 0%, transparent 73%);
}
.agenda-rows {
  gap: 0;
}
.agenda-row,
.agenda-row:first-child {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #a18f644a;
  background: transparent;
  box-shadow: none;
  padding-inline: 2px;
}
.agenda-row:last-child {
  border-bottom: 0;
}
.agenda-row > i {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #c5b68365, transparent 73%);
}
.agenda-row .harbour-icon {
  width: 34px;
  height: 34px;
}
.agenda-row:focus-visible,
.agenda-row:hover {
  background: #e6d8b059;
}
.award-list div:not(.earned) > i {
  opacity: 0.55;
  filter: grayscale(1);
}
.shareTrigger .harbour-icon {
  width: 21px;
  height: 21px;
}
.fishing-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #596655;
  font-size: 12px;
}
.fishing-steps span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fishing-steps span + span:before {
  content: "";
  display: block;
  width: 10px;
  height: 1px;
  background: #a99e80;
}
.fishing-steps i {
  font: 600 12px Georgia;
  text-align: center;
  border: 1px solid #958b71;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  line-height: 15px;
}
.fishing-steps [aria-current] {
  color: #1e594e;
  font-weight: 750;
}
.fishing-steps [aria-current] i {
  color: #fff4cb;
  background: #326956;
  border-color: #326956;
}
.shore-action[data-cue="pull"] {
  background: #367257;
  color: #fff5c9;
  border-radius: 24px;
  box-shadow: 0 0 0 3px #c9be8059;
}
.shore-action[data-cue="wait"] {
  background: #e1d8bf;
  color: #47574d;
  border: 1px dashed #9a967e;
  box-shadow: none;
}
.water-prompt {
  position: absolute;
  transform: translate(-50%, -150%);
  color: #fffae8;
  font-weight: 700;
  font-size: 13px;
  background: #173d38ea;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.water-prompt.active {
  background: #267052;
  color: white;
}
#crossing[data-home="true"] .channel,
#crossing[data-home="true"] .sea-plate {
  background: #77b5ae url(art/sunset.jpg) center center/cover;
  filter: none;
  background-blend-mode: normal;
}
.dock-passage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #284740;
}
.dock-view {
  flex: 1;
  background: url(art/dock-walk.jpg) 50% 48% / cover;
  animation: harbour-walk 2.2s ease-out both;
}
@keyframes harbour-walk {
  from {
    transform: scale(1.01);
  }
  to {
    transform: scale(1.1);
  }
}
.dock-passage footer {
  position: relative;
}
#view.studio > .tray {
  padding: 8px 14px 6px;
  border-top: 3px solid #916e46;
}
.glass-label {
  position: absolute;
  top: 8px;
  left: 10px;
  display: flex;
  gap: 9px;
  align-items: center;
  background: #194136e8;
  color: #fff2d3;
  padding: 4px 11px;
  border-radius: 2px 14px 14px 2px;
  font-size: 12px;
}
.glass-label span {
  color: #e9c07e;
  font-variant-numeric: tabular-nums;
}
.studio .stage {
  isolation: isolate;
}
.bench-head,
.bench-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bench-head h2 {
  margin: 0 auto 0 0;
  color: #244e41;
  font-size: 21px;
}
.bench-tool,
.bench-done {
  border: 0;
  min-height: 44px;
  font-weight: 650;
  background: none;
  color: #365444;
}
.bench-tool {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.bench-tool:disabled {
  opacity: 0.42;
}
.bench-done {
  padding: 0 16px;
  background: #335e4f;
  border-radius: 26px;
  color: #fff3cf;
}
.bench-foot .status {
  flex: 1;
  margin: 5px 0;
  min-height: 18px;
}
.studio .tabs {
  margin: 0;
  border-color: #aa976577;
}
.palette {
  display: flex;
  align-items: stretch;
  gap: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 3px;
  max-height: none;
  min-height: 64px;
  scrollbar-width: thin;
}
.palette .item,
.palette .item.on {
  flex: none;
  display: flex;
  min-width: 55px;
  max-width: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 2px 4px;
}
.palette .item.on {
  background: radial-gradient(ellipse at 50% 45%, #b7d2bc 0%, transparent 74%);
  color: #1d594d;
}
.palette .item.on:after {
  right: 0;
  color: #315e50;
}
.palette .item small {
  display: none;
}
.palette .item > img,
.palette .item .harbour-icon {
  width: 50px;
  height: 40px;
  touch-action: none;
}
.palette .empty {
  min-height: 44px;
  align-self: center;
}
.glass-piece,
.glass-anchor {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: transparent;
  touch-action: none;
}
.glass-piece:focus-visible,
.glass-anchor:focus-visible {
  outline: 2px solid #fff0a1;
}
.glass-anchor > span:first-child {
  display: block;
  width: 15px;
  height: 8px;
  border: 1px solid #fff0a1;
  border-radius: 50%;
  margin: auto;
  background: #27634c77;
}
.habitat-light {
  position: absolute;
  background: linear-gradient(0deg, #e4da8730, #b6ffce30);
  border-block: 1px dashed #e2ffbd99;
  border-radius: 50%;
}
.aquascape-ghost {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -65%);
  width: 52px;
  filter: drop-shadow(0 2px 3px #dbffb9);
}
.aquascape-ghost > * {
  width: 100%;
  height: 46px;
  object-fit: contain;
}
@media (max-height: 620px) {
  .studio .tabs button,
  .bench-head button {
    min-height: 44px;
  }
  .bench-foot .status {
    font-size: 12px;
  }
  .palette {
    min-height: 50px;
  }
  .palette .item > img,
  .palette .item .harbour-icon {
    height: 32px;
  }
  .bench-head h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dock-view {
    animation: none;
  }
}
.ripple-invite {
  position: absolute;
  pointer-events: auto;
  border: 0;
  transform: translate(-50%, -185%);
  padding: 4px 9px;
  background: #153f39e8;
  color: #fff2c4;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
}
.ripple-invite::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 5px solid transparent;
  border-top-color: #153f39e8;
  transform: translateX(-50%);
}

.ripple-invite::before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}
.library-icon {
  display: inline-block;
  flex: none;
  background-image: url(art/harbour-tools.png);
  background-size: 600% 300%;
  background-repeat: no-repeat;
  aspect-ratio: 1;
  image-rendering: auto;
  font-size: 0;
}
.harbour-icon {
  object-fit: contain;
  vertical-align: middle;
}
#nav .kit-tab > i,
#field-kit .kit-tab > i,
.agenda-row > i,
.award-list > div > i {
  font-style: normal;
}
.agenda-row:first-child,
.agenda-row:first-child b {
  color: #23473d;
}
.agenda-row:first-child :is(small, em) {
  color: #445e50;
}
.agenda-row:first-child {
  border-left: 3px solid #a5834a;
  padding-left: 7px;
}
.agenda-art.after-hours {
  background: #193a41 url(art/evening.webp) 50% 49% / cover;
}
.after-hours:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 65%, #ffd08720, transparent 63%);
  animation: harbour-lamplight 5s ease-in-out infinite alternate;
}
@keyframes harbour-lamplight {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 0.94;
  }
}
.stand-sign {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  min-width: 52px;
  min-height: 44px;
  border: 0;
  background: none;
  color: #ffefd1;
  padding: 0 3px;
}
.stand-sign b {
  padding: 3px 7px;
  background: #163d38f2;
  border-radius: 8px;
  font-weight: 650;
  font-size: 12px;
  box-shadow: 0 1px 2px #25383099;
}
.stand-sign.available b {
  background: #ffdfa0;
  color: #3e4735;
}
.stand-sign.future b {
  color: #f8ecd7;
  background: #4f5149eb;
}
.stand-sign .harbour-icon {
  width: 14px;
  height: 14px;
}
.goods {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 9px;
  align-items: center;
}
.goods-art {
  display: grid;
  place-items: center;
  min-width: 40px;
}
.goods-art .harbour-icon {
  width: 35px;
  height: 35px;
}
.goods-art .piece-small {
  width: 29px;
}
.goods-art .piece-medium {
  width: 38px;
}
.goods-art .piece-large {
  width: 42px;
  transform: scaleX(1.09);
}
.locker-rack h3,
.market-source {
  margin: 12px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.locker-rack h3 small {
  font: 600 12px/1.2 system-ui;
  color: #426458;
}
.crate-grid,
.sale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  align-items: stretch;
}
.crate-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
  min-height: 68px;
  border: 1px solid #b8ab89;
  border-radius: 4px;
  background: linear-gradient(155deg, #fff9e6, #e9dfbd);
  box-shadow: inset 0 1px 2px #81785230;
  color: #294737;
  padding: 4px 2px;
  overflow-wrap: anywhere;
}
.crate-cell.vacant {
  opacity: 0.6;
  background: #d9d0b5;
  box-shadow: inset 0 2px 4px #7d6c4b32;
}
.crate-cell .art {
  width: 40px;
  height: 35px;
}
.crate-cell b {
  font-size: 11px;
  line-height: 1.2;
}
.crate-cell small {
  font-size: 10px;
  line-height: 1.2;
  color: #4c6255;
}
.crate-cell.selected {
  outline: 2px solid #326855;
  outline-offset: -2px;
  background: #dcebd1;
}
.cargo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  margin: 9px 0;
  color: #ffefd1;
  background: #316052;
  border: 1px solid #29493f;
  border-radius: 7px;
  font-weight: 700;
}
.cargo-decision {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #234e49;
}
.cargo-decision .day-paper {
  min-height: 0;
  max-height: 74%;
  overflow: auto;
}
.catch-basin {
  flex: 1;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff3d3;
  background:
    linear-gradient(#163e4099, #225155cc),
    url(art/pool.jpg) center/cover;
}
.catch-basin img {
  height: clamp(46px, 14dvh, 112px);
  width: 28%;
  object-fit: contain;
}
.catch-basin h2,
.catch-basin p {
  margin: 3px 0;
}
.cargo-decision .actionrow {
  margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .after-hours:before {
    animation: none;
  }
}
.art-credit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  color: #506553;
}
.stand-sign::before {
  content: "";
  position: absolute;
  inset: -65% 0 15%;
  pointer-events: auto;
}

/* The report, gallery and exchange each keep one visual focus. */
.agenda-art.visitor-report {
  background: #345756 url(art/report.webp) center/cover;
}
.agenda-art.unopened-report {
  background: #163e45 url(art/sea-window.jpg) center 22% / cover;
}
.visit-totals {
  display: flex;
  gap: clamp(24px, 10vw, 65px);
  margin: 12px 0 10px;
}
.visit-totals div {
  border-inline-start: 2px solid #aa8755;
  padding-inline-start: 9px;
  display: grid;
  color: #254a42;
}
.visit-totals small {
  color: #526659;
}
.visit-totals b {
  font:
    700 clamp(19px, 5vw, 27px) Georgia,
    "Songti SC",
    serif;
}
.ledger .day-paper h3 {
  margin: 8px 0 2px;
  color: #234e43;
}
.studio .stage {
  margin: 8px 9px 0;
  border: 4px ridge #a38859;
  border-radius: 7px;
  background: #163e43;
  box-shadow: 0 6px 14px #13333235;
}
#view.studio {
  background: linear-gradient(#203e40, #2c534e);
  overflow: hidden;
}
#view.studio:not(.admiring)[data-capacity="3"] .stage {
  max-height: min(47dvh, 425px);
  margin-block: auto;
}
#view.studio:not(.admiring)[data-capacity="5"] .stage {
  max-height: min(54dvh, 510px);
  margin-block: auto;
}
.studio .view-glass {
  position: absolute;
  top: 5px;
  right: 7px;
  min-width: 48px;
  min-height: 43px;
  border: 1px solid #c8b687;
  border-radius: 8px;
  background: #173a36e8;
  color: #fff2cc;
  font-weight: 650;
}
.studio .glass-label {
  top: 10px;
  pointer-events: none;
}
.studio .palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  min-height: 0;
  padding: 5px 0;
}
.studio .palette .item {
  min-width: 0;
  max-width: none;
  width: 100%;
  background: #fff6df82;
  border: 1px solid #a292694d;
  border-radius: 5px;
  touch-action: none;
  font-size: 12px;
}
.studio .palette .item.on {
  border-color: #3c7c6b;
  background: #dae7cc;
}
.studio .palette .empty {
  grid-column: 1/-1;
}
.studio .palette-pages {
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-left: auto;
}
.studio .palette-pages button {
  min-width: 44px;
  min-height: 44px;
}
.studio .reef-camera,
.dock-sources {
  display: flex;
  gap: 5px;
}
.studio .camera-step,
.dock-sources button {
  min-height: 42px;
  color: #2c5046;
  background: #f5e6c7;
  border: 1px solid #ae9872;
  border-radius: 5px;
  flex: 1;
}
.studio .camera-step[aria-pressed="true"],
.dock-sources button.on {
  background: #335e4f;
  color: #fff0cd;
}
.studio .habitat-light {
  border-radius: 0;
  pointer-events: none;
}
.studio .glass-piece {
  height: 50px;
  width: 50px;
}
.studio .overlays .glass-anchor {
  pointer-events: none;
}
.studio .aquascape-ghost {
  z-index: 5;
  pointer-events: none;
}
.studio .aquascape-ghost:after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 62%;
  height: 7px;
  border: 2px solid #c6ffb0;
  border-radius: 50%;
}
.studio .aquascape-ghost.unavailable:after {
  border-color: #ffab7c;
}
.studio .aquascape-ghost.unavailable {
  filter: grayscale(0.7);
  opacity: 0.7;
}
.dock-stalls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dock-stalls button {
  position: absolute;
  transform: translate(-50%, -50%);
  min-height: 44px;
  padding: 4px 11px;
  border-radius: 16px;
  border: 1px solid #d3b37a;
  color: #fff0bd;
  background: #183d38eb;
  font-weight: 650;
  box-shadow: 0 3px 6px #172d2e60;
}
.dock-scale {
  left: 39%;
  top: 71%;
}
.dock-shelf {
  left: 76%;
  top: 37%;
}
.market-source {
  margin: 6px 0;
}
@media (max-height: 660px) {
  #view.studio > .tray {
    padding: 4px 10px;
  }
  .studio .bench-head,
  .studio .bench-foot {
    gap: 4px;
  }
  .studio .bench-head h2 {
    font-size: 16px;
  }
  .studio .palette .item img {
    height: 30px;
  }
  .studio .palette {
    padding: 2px 0;
  }
  .studio .reef-camera button {
    min-height: 34px;
  }
  .market .tray .shoplist {
    max-height: 24dvh;
  }
}

.dock-stalls button {
  white-space: nowrap;
  width: max-content;
  max-width: 45%;
  line-height: 1.2;
}
.studio .overlays .glass-piece[data-act="prop"] {
  height: clamp(52px, 19cqw, 86px);
  width: clamp(50px, 17cqw, 80px);
  transform: translate(-50%, -84%);
}
.studio .overlays .glass-piece[data-val="stone"] {
  height: clamp(44px, 11cqw, 55px);
}
