:root {
  --mist: #a5ccca;
  --ink: #263b32;
  --pine: #1e332b;
  --cream: #efe9d9;
  --paper: #f3eedf;
  --muted: #889483;
  --gold: #c6aa71;
  --line: #cfcdbc;
  --orange: #c77d49;
  --shadow: 0 8px 35px #071b2638;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #203a2a;
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 13px;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 0;
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #d6a86b;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:hover {
  filter: brightness(1.07);
}
[hidden] {
  display: none !important;
}
canvas#world {
  position: absolute;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: none;
  cursor: crosshair;
}
h1,
h2,
h3,
p {
  margin: 0;
}
#title-screen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0b231bdd 0%, #122c248d 39%, #14302513 74%),
    linear-gradient(
      0deg,
      #0c241cc2,
      transparent 26%,
      transparent 80%,
      #0b251c5c
    );
  color: var(--cream);
}
.title-top {
  position: absolute;
  top: 38px;
  left: 52px;
  right: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tiny-brand {
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 600;
}
.tiny-brand i {
  font-style: normal;
  color: var(--gold);
  margin: 0 16px;
}
.quiet {
  background: #21372d90;
  border: 1px solid #b9c8aa3b;
  color: var(--cream);
  padding: 11px 18px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 1px;
}
.title-copy {
  position: absolute;
  left: 10.5%;
  top: 50%;
  transform: translateY(-48%);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  letter-spacing: 2.5px;
  font-size: 9px;
  color: #c6cba9;
}
.line {
  width: 29px;
  height: 1px;
  background: #c6aa71;
}
h1 {
  font-family: Georgia, "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(68px, 7.6vw, 128px);
  font-weight: 400;
  letter-spacing: -6px;
  line-height: 1.2;
  margin: 19px 0 22px;
  text-shadow: 0 5px 20px #0b221733;
}
.title-star {
  font-size: 25px;
  position: absolute;
  margin: 6px 0 0 12px;
  color: var(--gold);
  letter-spacing: 0;
}
.title-jp {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 19px;
  letter-spacing: 3px;
}
.title-description {
  line-height: 2.2;
  font-size: 12px;
  color: #c0cbb9;
  margin-top: 25px;
  letter-spacing: 1px;
}
.enter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  width: 280px;
  padding: 19px 24px;
  background: var(--cream);
  color: #253b30;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: 3px;
  box-shadow: 0 5px 25px #07191033;
}
.arrow {
  font-size: 22px;
  font-family: serif;
  line-height: 15px;
}
.continue {
  margin-top: 12px;
  background: none;
  color: #d0d6bf;
  font-size: 11px;
  text-align: left;
  padding: 4px 0;
  letter-spacing: 1px;
}
.title-music {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #b6bda0;
  margin-top: 24px;
}
.sound-wave {
  color: #c3aa7b;
  margin-right: 10px;
}
.title-bottom {
  position: absolute;
  bottom: 35px;
  left: 52px;
  right: 52px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 2px;
  color: #c5ceaf;
}
.title-bottom b {
  color: var(--cream);
  margin-left: 13px;
}
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#hud button,
#hud select,
#hud input,
#hud #panel,
#inspector,
#dialog-backdrop {
  pointer-events: auto;
}
.topbar {
  height: 72px;
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  border: 1px solid #d9e3c323;
  background: #1b302bf2;
  color: var(--cream);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  border-radius: 5px;
  backdrop-filter: blur(12px);
}
.brand {
  font-family: Georgia, serif;
  font-size: 24px;
  background: none;
  color: var(--cream);
  text-align: left;
  padding: 0 26px;
  border-right: 1px solid #7d957747;
  white-space: nowrap;
}
.brand span {
  display: block;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 3px;
  color: #b7c6a6;
}
.day-info {
  padding: 0 23px;
  min-width: 152px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  max-width: 170px;
  align-items: center;
}
.day-info b {
  font-size: 11px;
  letter-spacing: 1.4px;
}
.day-info span {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #cdd7bd;
}
.day-info small {
  width: 100%;
  font-size: 9px;
  color: #a8bea0;
  margin-top: -4px;
}
#resource-bar {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(15px, 2.2vw, 37px);
  margin-right: 10px;
}
.resource {
  display: flex;
  align-items: center;
  gap: 10px;
}
.resource canvas {
  image-rendering: pixelated;
  width: 25px;
  height: 25px;
}
.resource span {
  display: flex;
  flex-direction: column;
}
.resource b {
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.resource small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #a4b69b;
  margin-top: 4px;
}
.utilities {
  display: flex;
  margin: 0 15px 0 6px;
  gap: 5px;
}
.utilities button {
  background: transparent;
  color: #d4dcc6;
  width: 35px;
  height: 36px;
  border: 1px solid #6d887752;
  border-radius: 3px;
  font-size: 13px;
}
.map-card {
  position: absolute;
  right: 22px;
  top: 106px;
  width: 190px;
  background: #1a302be8;
  padding: 7px;
  border: 1px solid #c3d1ae26;
  border-radius: 4px;
  color: #cbd5bf;
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 7px;
  font-size: 8px;
  letter-spacing: 2px;
}
.map-caption button {
  background: none;
  color: #bcc7ad;
  padding: 0;
  font-size: 14px;
}
#minimap {
  display: block;
  width: 174px;
  height: 130px;
  image-rendering: pixelated;
  cursor: crosshair;
}
.map-foot {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #9bb092;
  padding: 8px 3px 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
#weather-banner {
  position: absolute;
  top: 106px;
  left: 24px;
  color: #e5eddb;
  text-shadow: 0 2px 5px #102824;
  font-size: 10px;
  letter-spacing: 1px;
}
#weather-banner span {
  margin-right: 11px;
  font-size: 8px;
  color: #b6c5c4;
  letter-spacing: 2px;
}
.dock {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  height: 81px;
  background: #f0ebddf5;
  border: 1px solid #ffffff48;
  border-radius: 5px;
  box-shadow: var(--shadow);
  display: flex;
  padding: 7px 10px;
  align-items: center;
}
.tools,
.menus {
  display: flex;
  gap: 3px;
  align-items: center;
}
.tools button {
  position: relative;
  width: 57px;
  height: 65px;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64715e;
}
.tools canvas {
  width: 31px;
  height: 31px;
  image-rendering: pixelated;
}
.tools small {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 8px;
  color: #90947d;
}
.tools span {
  font-size: 9px;
}
.tools button.active {
  background: #d8dec7;
  border-color: #b5c2a1;
  color: #2f4e32;
}
.dock-separator {
  height: 42px;
  width: 1px;
  background: #c9ccbb;
  margin: 0 12px;
}
.menus button {
  height: 62px;
  background: none;
  display: flex;
  position: relative;
  min-width: 72px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-radius: 3px;
  font-size: 10px;
}
.menu-icon {
  font-size: 26px;
  font-family: Georgia, serif;
  line-height: 28px;
  font-weight: 400;
  color: #53694c;
}
.menus kbd {
  font-size: 7px;
  color: #8c947b;
  position: absolute;
  right: 4px;
  top: 4px;
}
.menus button.active {
  background: #d8dec7;
}
.life-card {
  position: absolute;
  bottom: 44px;
  left: 23px;
  width: 203px;
  padding: 13px 14px;
  background: #1c322beb;
  border: 1px solid #b7c6a629;
  border-radius: 4px;
  color: #dfe5cd;
  box-shadow: var(--shadow);
}
.life-heading {
  display: flex;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.7px;
  gap: 7px;
  margin-bottom: 12px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: #afc286;
  border-radius: 50%;
}
.life-heading b {
  font-weight: 400;
}
.life-heading button {
  background: #ffffff0c;
  border: 1px solid #7e987951;
  color: #c4d0af;
  margin-left: auto;
  padding: 2px 5px;
  font-size: 8px;
  border-radius: 2px;
}
.vital {
  display: flex;
  align-items: center;
  font-size: 8px;
  gap: 8px;
  margin: 7px 0;
}
.vital label {
  width: 26px;
  color: #a8bd9b;
}
.meter {
  height: 4px;
  flex: 1;
  background: #071f1a;
  border-radius: 2px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: #a6b67b;
}
.vital:nth-child(2) .meter i {
  background: #c4a46b;
}
.vital:nth-child(3) .meter i {
  background: #94afb0;
}
.vital small {
  min-width: 23px;
  text-align: right;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
.life-card > small {
  display: block;
  border-top: 1px solid #54735945;
  padding-top: 10px;
  margin-top: 10px;
  color: #a0b393;
  font-size: 8px;
  letter-spacing: 0.5px;
}
.view-controls {
  position: absolute;
  bottom: 54px;
  right: 25px;
  display: flex;
  align-items: center;
  border: 1px solid #c3d1ae26;
  border-radius: 4px;
  background: #1b302bee;
  color: #c7d3b7;
}
.view-controls button {
  background: none;
  color: #c7d3b7;
  width: 30px;
  height: 30px;
  font-size: 15px;
}
.view-controls span {
  font-size: 9px;
  width: 37px;
  text-align: center;
}
.view-controls button:last-child {
  border-left: 1px solid #6d88634a;
  margin-left: 4px;
  width: 35px;
}
.control-note {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: #e7eddbb0;
  text-shadow: 0 1px 3px #10251f;
}
.control-note i {
  font-style: normal;
  margin: 0 7px;
  color: #aebe95;
}
#panel {
  position: absolute;
  top: 108px;
  bottom: 141px;
  left: 23px;
  width: 338px;
  background: #f3eedffb;
  border: 1px solid #fff7;
  border-radius: 5px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 20px 17px;
  border-bottom: 1px solid #d2d0bd;
}
.panel-heading small {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #879176;
}
.panel-heading h2 {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-top: 4px;
}
.panel-heading button {
  background: none;
  font-size: 24px;
  color: #7f8a72;
}
.panel-tabs {
  display: flex;
  padding: 13px 16px 9px;
  gap: 5px;
  flex-wrap: wrap;
}
.panel-tabs button {
  font-size: 9px;
  background: #e6e4d4;
  color: #7b8571;
  border-radius: 3px;
  padding: 7px 11px;
}
.panel-tabs button.active {
  background: #344e3a;
  color: #eee9d6;
}
#panel-content {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #b2bba1 transparent;
  padding-bottom: 14px;
}
.build-list {
  padding: 0 14px;
}
.build-card {
  width: 100%;
  display: flex;
  text-align: left;
  background: none;
  border: 1px solid #d2d0bc;
  border-radius: 3px;
  margin-bottom: 7px;
  padding: 10px;
  align-items: center;
  gap: 13px;
  position: relative;
}
.build-card.selected {
  border-color: #4e704b;
  background: #e2e7d2;
}
.build-card canvas {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  flex-shrink: 0;
  background: #dce2c9;
  border-radius: 3px;
}
.build-card .copy {
  flex: 1;
}
.build-card b {
  font-size: 11px;
  font-weight: 600;
}
.build-card .size {
  font-size: 8px;
  color: #8b9680;
  margin-left: 8px;
}
.build-card p {
  font-size: 9px;
  line-height: 1.65;
  color: #7c8873;
  margin-top: 4px;
}
.cost {
  display: flex;
  gap: 9px;
  margin-top: 6px;
  flex-wrap: wrap;
  font-size: 8px;
  color: #537144;
}
.cost .missing {
  color: #ae6454;
}
.panel-note {
  margin: 5px 17px 13px;
  color: #839072;
  font-size: 9px;
  line-height: 1.8;
}
.section-caption {
  font-size: 9px;
  letter-spacing: 1px;
  margin: 16px 19px 9px;
  color: #8a9379;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 3px 17px;
}
.inventory-item {
  border: 1px solid #d6d4c1;
  border-radius: 3px;
  padding: 12px 8px;
  background: #edead9;
  text-align: center;
}
.inventory-item canvas {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}
.inventory-item strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  margin: 5px 0 3px;
}
.inventory-item small {
  font-size: 9px;
  color: #879071;
}
.recipe {
  border: 1px solid #d4d3c0;
  margin: 7px 17px;
  padding: 12px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.recipe b {
  font-size: 11px;
}
.recipe p {
  font-size: 8px;
  color: #869077;
  margin-top: 5px;
  line-height: 1.5;
}
.small-button {
  background: #354f39;
  color: #f0eddc;
  padding: 8px 11px;
  border-radius: 3px;
  font-size: 10px;
}
.secondary-button {
  background: #e2e4d1;
  color: #56704a;
  padding: 8px 11px;
  border: 1px solid #bac5a6;
  border-radius: 3px;
  font-size: 9px;
}
.town-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 17px;
  gap: 6px;
}
.town-summary span {
  padding: 12px 8px;
  text-align: center;
  background: #e4e6d2;
  border-radius: 3px;
}
.town-summary b {
  display: block;
  font-family: Georgia, serif;
  font-size: 21px;
}
.town-summary small {
  font-size: 8px;
  color: #879175;
}
.hire-banner {
  margin: 0 17px 13px;
  padding: 13px;
  background: #dde3cd;
  border: 1px solid #bdc9a9;
  border-radius: 3px;
}
.hire-banner strong {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 13px;
  font-weight: 500;
}
.hire-banner p {
  font-size: 9px;
  color: #728468;
  line-height: 1.9;
  margin: 6px 0 10px;
}
.resident-card {
  margin: 8px 17px;
  border: 1px solid #d0d3bc;
  border-radius: 3px;
  padding: 12px;
}
.resident-heading {
  display: flex;
  gap: 9px;
  align-items: center;
}
.resident-avatar {
  width: 27px;
  height: 30px;
  image-rendering: pixelated;
  background: #d7dfc7;
  border-radius: 3px;
}
.resident-heading strong {
  font-size: 11px;
}
.resident-heading small {
  display: block;
  font-size: 8px;
  color: #7f8e71;
  margin-top: 4px;
}
.resident-heading button {
  margin-left: auto;
  background: none;
  color: #859376;
  font-size: 16px;
}
.resident-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 13px;
}
.resident-fields label {
  font-size: 8px;
  color: #889377;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.resident-fields select {
  width: 100%;
  font-size: 9px;
  padding: 6px 4px;
  border: 1px solid #c3cbb3;
  background: #eeecde;
  border-radius: 2px;
  color: #465e3e;
}
.resident-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #8c977c;
  margin-top: 9px;
  gap: 5px;
}
.resident-zone input {
  width: 65px;
}
.empty-state {
  padding: 30px 25px;
  font-size: 11px;
  text-align: center;
  color: #8a957b;
  line-height: 2.1;
}
.chronicle {
  border-left: 1px solid #b9c4a6;
  padding: 0 0 12px 13px;
  margin: 0 21px;
  color: #6e7e60;
  font-size: 10px;
  line-height: 1.7;
}
.chronicle small {
  display: block;
  font-size: 8px;
  color: #929b84;
}
.stat-row {
  margin: 10px 18px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid #d4d6c4;
}
.milestone {
  margin: 9px 18px;
  padding: 12px;
  border: 1px solid #d1d4be;
  border-radius: 3px;
  font-size: 10px;
  color: #8b957c;
}
.milestone.done {
  color: #47673d;
  background: #e0e6d0;
}
.milestone small {
  display: block;
  font-size: 8px;
  line-height: 1.7;
  margin-top: 5px;
}
#inspector {
  position: absolute;
  right: 23px;
  bottom: 110px;
  width: 244px;
  background: #f1eddeef;
  border-radius: 4px;
  border: 1px solid #fff7;
  box-shadow: var(--shadow);
  padding: 17px;
}
#inspector .eyebrow {
  font-size: 7px;
  color: #919c7b;
  letter-spacing: 1px;
}
#inspector h3 {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-weight: 500;
  font-size: 20px;
  margin: 7px 0;
}
#inspector p {
  font-size: 10px;
  color: #7c8b6e;
  line-height: 1.8;
}
#inspector .inspect-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
#inspector .inspect-close {
  position: absolute;
  right: 9px;
  top: 8px;
  background: none;
  font-size: 19px;
  color: #8a967a;
}
#placement-bar {
  position: absolute;
  bottom: 133px;
  left: 50%;
  transform: translateX(-50%);
  background: #223b2ced;
  color: #f0efda;
  border: 1px solid #c5d2ab50;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 11px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
#placement-bar small {
  font-size: 8px;
  color: #adbf95;
  margin-left: 14px;
}
#placement-bar button {
  font-size: 15px;
  background: none;
  color: #dbdfc8;
  margin-left: 13px;
}
#paused-label {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #20382ceb;
  padding: 20px 35px;
  border: 1px solid #a7b99478;
  color: #e5ead8;
  border-radius: 4px;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 18px;
  letter-spacing: 2px;
  text-align: center;
}
#paused-label small {
  display: block;
  font-family: sans-serif;
  font-size: 8px;
  letter-spacing: 1px;
  margin-top: 10px;
  color: #b5c7a2;
}
#hover-label {
  position: absolute;
  background: #152d24e6;
  color: #dfe8cd;
  border: 1px solid #aec19840;
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 9px;
  white-space: nowrap;
  pointer-events: none;
}
#toast-stack {
  position: absolute;
  right: 234px;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 350px;
}
.toast {
  background: #1f372cef;
  border: 1px solid #abbc9250;
  color: #e4e9d5;
  border-radius: 4px;
  padding: 12px 17px;
  font-size: 10px;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
}
.toast.bad {
  border-color: #c397686e;
  color: #f0d5ac;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
#dialog-backdrop {
  position: absolute;
  inset: 0;
  background: #0d201cb5;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
#dialog {
  width: min(440px, 92vw);
  padding: 30px;
  background: #f3eedf;
  color: #334c36;
  border: 1px solid #fffa;
  border-radius: 5px;
  box-shadow: 0 20px 70px #08171370;
  max-height: 85vh;
  overflow: auto;
}
#dialog.wide {
  width: min(840px, 92vw);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 23px;
}
.dialog-head small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #8d967d;
}
.dialog-head h2 {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 25px;
  font-weight: 500;
  margin-top: 6px;
}
.dialog-head button {
  background: none;
  font-size: 25px;
  color: #8a987e;
}
.setting-row {
  padding: 12px 0;
  border-top: 1px solid #d4d6c2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.setting-row input[type="range"] {
  width: 148px;
  accent-color: #4b6941;
}
.setting-row input[type="checkbox"] {
  accent-color: #4b6941;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.danger-button {
  background: none;
  color: #ab6c52;
  border: 1px solid #caa48d;
  padding: 8px 11px;
  border-radius: 3px;
  font-size: 9px;
}
.dialog-note {
  color: #8b987d;
  font-size: 9px;
  line-height: 1.9;
  margin-top: 15px;
}
#full-map {
  width: 100%;
  image-rendering: pixelated;
  border: 6px solid #dedfcb;
  cursor: crosshair;
}
.map-legend {
  display: flex;
  gap: 15px;
  color: #7a886d;
  font-size: 9px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.map-legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
}
.reset-copy {
  font-size: 12px;
  line-height: 2;
  color: #7d8c70;
  margin-bottom: 20px;
}
.error-screen {
  position: absolute;
  inset: 20%;
  background: #efeadb;
  padding: 30px;
  z-index: 99;
  line-height: 2;
}
.mobile-interact {
  display: none;
}
@media (max-width: 1150px) {
  .brand {
    font-size: 21px;
    padding: 0 18px;
  }
  .day-info {
    padding: 0 13px;
    min-width: 126px;
    max-width: 126px;
    gap: 7px;
  }
  .resource {
    gap: 7px;
  }
  #resource-bar {
    gap: 17px;
  }
  .resource b {
    font-size: 14px;
  }
  .resource canvas {
    width: 21px;
    height: 21px;
  }
  .life-card {
    width: 173px;
  }
  .dock {
    padding: 7px;
  }
  .tools button {
    width: 46px;
  }
  .menus button {
    min-width: 60px;
  }
  .dock-separator {
    margin: 0 8px;
  }
}
@media (max-width: 850px) {
  .topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    height: 64px;
  }
  .brand {
    font-size: 19px;
    padding: 0 12px;
  }
  .brand span {
    font-size: 6px;
  }
  .day-info {
    min-width: 104px;
    max-width: 104px;
    padding: 0 10px;
    gap: 5px;
  }
  .day-info b,
  .day-info span {
    font-size: 9px;
  }
  .day-info small {
    font-size: 7px;
  }
  #resource-bar {
    gap: 9px;
  }
  .resource {
    gap: 4px;
  }
  .resource b {
    font-size: 12px;
  }
  .resource small {
    font-size: 6px;
  }
  .resource canvas {
    width: 17px;
    height: 17px;
  }
  .utilities {
    margin: 0 7px;
    gap: 3px;
  }
  .utilities button {
    width: 26px;
    height: 30px;
  }
  .map-card {
    top: 87px;
    right: 10px;
    width: 146px;
  }
  .map-caption {
    font-size: 7px;
  }
  .map-card #minimap {
    width: 130px;
    height: 97px;
  }
  .life-card {
    left: 11px;
    bottom: 129px;
    width: 148px;
    padding: 10px;
  }
  .life-card > small {
    font-size: 7px;
  }
  .life-heading {
    font-size: 8px;
  }
  .dock {
    bottom: 28px;
  }
  .view-controls {
    right: 11px;
    bottom: 131px;
  }
  .control-note {
    font-size: 7px;
    bottom: 10px;
  }
  #panel {
    top: 87px;
    left: 11px;
    bottom: 130px;
    width: 300px;
  }
  #inspector {
    right: 11px;
    bottom: 175px;
    width: 210px;
  }
  #toast-stack {
    right: 166px;
    top: 88px;
    max-width: 260px;
  }
  #placement-bar {
    bottom: 119px;
    font-size: 9px;
    padding: 10px 12px;
  }
  #placement-bar small {
    font-size: 7px;
    margin-left: 8px;
  }
  .title-top {
    left: 25px;
    right: 25px;
    top: 25px;
  }
  .title-copy {
    left: 8%;
  }
  h1 {
    letter-spacing: -4px;
  }
  .title-bottom {
    left: 25px;
    right: 25px;
    bottom: 25px;
    font-size: 7px;
  }
  .title-jp {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .brand {
    font-size: 16px;
  }
  .brand span {
    display: none;
  }
  .day-info {
    min-width: 85px;
    max-width: 85px;
  }
  .day-info small {
    font-size: 6px;
  }
  .resource:nth-child(n + 4) {
    display: none;
  }
  .topbar {
    height: 57px;
  }
  .resource b {
    font-size: 12px;
  }
  .resource canvas {
    width: 16px;
    height: 16px;
  }
  .utilities button {
    width: 23px;
    height: 28px;
    font-size: 11px;
  }
  .utilities {
    margin-left: 0;
  }
  .map-card {
    top: 78px;
    width: 112px;
  }
  .map-card #minimap {
    width: 96px;
    height: 72px;
  }
  .map-caption {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .map-foot {
    font-size: 6px;
  }
  .tools button {
    width: 36px;
    height: 56px;
  }
  .tools canvas {
    width: 26px;
    height: 26px;
  }
  .tools small {
    font-size: 6px;
  }
  .tools span {
    font-size: 7px;
  }
  .dock {
    height: 68px;
    padding: 5px 4px;
    bottom: 28px;
  }
  .menus button {
    min-width: 43px;
    font-size: 8px;
    height: 55px;
  }
  .menu-icon {
    font-size: 21px;
  }
  .dock-separator {
    margin: 0 5px;
    height: 33px;
  }
  .menus kbd {
    font-size: 6px;
  }
  .life-card {
    bottom: 105px;
    width: 135px;
  }
  .view-controls {
    bottom: 109px;
  }
  #panel {
    top: 78px;
    bottom: 106px;
    width: calc(100vw - 140px);
    min-width: 220px;
  }
  .panel-heading {
    padding: 14px;
  }
  .panel-heading h2 {
    font-size: 19px;
  }
  .panel-heading small {
    font-size: 6px;
  }
  .build-list {
    padding: 0 10px;
  }
  .build-card {
    padding: 7px;
    gap: 8px;
  }
  .build-card canvas {
    width: 36px;
    height: 36px;
  }
  .build-card b {
    font-size: 10px;
  }
  .build-card p {
    font-size: 8px;
  }
  .build-card .size {
    font-size: 6px;
    margin-left: 4px;
  }
  .panel-tabs {
    padding: 10px;
    gap: 4px;
  }
  .panel-tabs button {
    padding: 6px 7px;
    font-size: 8px;
  }
  #inspector {
    bottom: 152px;
    width: 190px;
  }
  #toast-stack {
    top: 78px;
    left: 11px;
    right: 133px;
    max-width: none;
  }
  .toast {
    font-size: 9px;
    padding: 10px;
  }
  .title-description {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 6px;
    letter-spacing: 1.7px;
  }
  h1 {
    font-size: 69px;
  }
  .title-star {
    font-size: 16px;
    margin: 3px 0 0 7px;
  }
  .title-jp {
    font-size: 13px;
    letter-spacing: 1.5px;
  }
  .enter {
    width: 230px;
    font-size: 11px;
    padding: 17px 21px;
  }
  .title-bottom > span:first-child {
    display: none;
  }
  .title-bottom {
    justify-content: flex-end;
  }
  .tiny-brand {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .tiny-brand i {
    margin: 0 8px;
  }
  .quiet {
    font-size: 8px;
    padding: 8px 10px;
  }
  .title-music {
    font-size: 6px;
  }
  .control-note {
    font-size: 6px;
  }
  .control-note i {
    margin: 0 3px;
  }
  .inventory-grid {
    padding: 0 10px;
    gap: 5px;
  }
  .inventory-item {
    padding: 8px 4px;
  }
  .inventory-item canvas {
    width: 25px;
    height: 25px;
  }
  .resident-card,
  .hire-banner,
  .town-summary {
    margin-left: 10px;
    margin-right: 10px;
  }
  #placement-bar {
    bottom: 100px;
    font-size: 8px;
    max-width: 95vw;
    white-space: normal;
    text-align: center;
  }
  #placement-bar small {
    display: block;
    margin: 5px 0 0;
  }
  #weather-banner {
    top: 79px;
    left: 13px;
    font-size: 8px;
  }
}

#hud:has(#panel:not([hidden])) .life-card {
  display: none;
}
#placement-bar small {
  max-width: 400px;
  white-space: normal;
}

.item-eat {
  font-size: 8px;
  display: block;
  margin: 7px auto 0;
  background: #dce3cc;
  color: #657d50;
  padding: 4px 8px;
  border-radius: 2px;
}
