@font-face {
  font-family: WorldPixel;
  src: url("assets/fonts/DotGothic16-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: WorldTitle;
  src: url("assets/fonts/Cinzel.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --game-font: WorldPixel, "Yu Gothic", sans-serif;
  --paper: #e7ddc2;
  --cream: #f0e6c9;
}
body,
button,
input,
select,
.brand span,
.title-jp,
.panel-heading h2,
#inspector h3,
.dialog-head h2,
.journal-intro h3,
.journal-card h3 {
  font-family: var(--game-font);
  font-weight: 400;
}
body {
  font-size: 15px;
}
.title-copy h1,
.brand {
  font-family: WorldTitle, serif;
  font-weight: 500;
}
.title-copy h1 {
  font-size: clamp(68px, 7vw, 116px);
  letter-spacing: -3px;
  text-shadow:
    0 4px 0 #10251e55,
    0 0 45px #bad4b229;
}
.title-jp {
  font-size: 23px;
  letter-spacing: 4px;
}
.title-description {
  font-size: 15px;
  line-height: 2;
}
.title-top,
.title-bottom,
.eyebrow {
  font-family: WorldTitle, var(--game-font);
}
.topbar {
  top: 16px;
  left: 18px;
  right: 18px;
  border-radius: 2px;
  border: 1px solid #b49d6155;
  box-shadow:
    inset 0 0 0 3px #14231da0,
    0 4px 0 #091d2150,
    0 9px 28px #07191f40;
  background: #172d28f5;
}
.brand {
  font-size: 25px;
  padding: 0 24px;
}
.brand span {
  font-size: 11px;
  letter-spacing: 1px;
}
.day-info {
  padding: 0 20px;
  min-width: 147px;
}
.day-info b,
.day-info span {
  font-size: 14px;
}
.day-info small {
  font-size: 12px;
}
#resource-bar {
  gap: clamp(10px, 1.5vw, 27px);
}
.resource {
  background: transparent;
  padding: 7px 6px;
  text-align: left;
  border: 1px solid transparent;
  gap: 6px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button.resource:hover {
  background: #ddcc9910;
  border-color: #d0b66e55;
}
.resource b {
  font-size: 20px;
  display: inline-block;
}
.resource small {
  font-size: 12px;
  letter-spacing: 0;
  color: #bdc9ab;
}
.resource canvas {
  width: 32px;
  height: 32px;
}
.utilities button {
  font-size: 16px;
}
#panel {
  width: 390px;
  top: 106px;
  bottom: 150px;
  left: 18px;
  background: linear-gradient(105deg, #eee5ce, #e0d5b9);
  border: 1px solid #bc9e63;
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 3px #f4eed34d,
    0 8px 28px #061e2955;
}
.panel-heading {
  padding: 17px 20px 13px;
  border-color: #9e946a66;
}
.panel-heading small {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #626f53;
}
.panel-heading h2 {
  font-size: 26px;
}
.panel-tabs {
  padding: 12px;
  gap: 6px;
}
.panel-tabs button {
  font-size: 14px;
  padding: 8px 10px;
  background: #d2ccb4;
  color: #4e5d47;
  border-radius: 1px;
  border-bottom: 2px solid #ada57f;
}
.panel-tabs button.active {
  background: #344e3a;
  color: #fff0ca;
  border-color: #a88e4c;
}
.panel-note {
  font-size: 13px;
  line-height: 1.85;
  color: #5a644d;
  margin: 9px 16px 15px;
}
.build-list {
  padding: 0 12px;
}
.build-card {
  display: block;
  padding: 0;
  border-radius: 1px;
  border-color: #c1b492;
  background: #f3ead15e;
  overflow: hidden;
  margin-bottom: 10px;
}
.build-card.selected {
  border-color: #557045;
  box-shadow: inset 3px 0 #587a4d;
  background: #dce0bd;
}
.build-main {
  display: flex;
  width: 100%;
  gap: 13px;
  padding: 13px 12px 7px;
  text-align: left;
  background: transparent;
  align-items: center;
}
.build-main:hover {
  background: #fff4da60;
}
.build-card canvas {
  width: 58px;
  height: 58px;
  background: #c9d2b2;
  border-radius: 0;
}
.build-card b,
.recipe b {
  font-size: 16px;
  font-weight: 400;
}
.build-card .size {
  font-size: 12px;
  color: #627151;
}
.build-card p {
  font-size: 13px;
  color: #5c674f;
  line-height: 1.7;
  margin-bottom: 3px;
}
.build-card > .cost {
  padding: 7px 12px 12px;
  margin: 0;
}
.cost {
  font-size: 13px;
  gap: 5px;
}
.material-cost {
  background: #e4ddc2;
  border: 1px solid #bfb698;
  padding: 4px 7px;
  line-height: 1.4;
  color: #405e3c;
  white-space: nowrap;
  border-radius: 1px;
}
.material-cost:hover {
  border-color: #587e52;
  background: #faf0d1;
}
.cost .missing {
  color: #963d2c;
  background: #e5cdb2;
  border-color: #c69677;
}
.recipe {
  align-items: start;
  padding: 14px 0;
  gap: 12px;
  margin: 0 16px;
  border-color: #b3ab895c;
}
.recipe > div:first-child {
  flex: 1;
  min-width: 0;
}
.recipe p {
  font-size: 13px;
  line-height: 1.75;
  color: #58664d;
}
.craft-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 98px;
  flex-shrink: 0;
}
.craft-action small {
  font-size: 12px;
  line-height: 1.7;
}
.small-button,
.secondary-button,
.danger-button {
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 1px;
}
.small-button {
  background: #34543f;
  color: #fff0ca;
  border-bottom: 2px solid #a68e54;
}
.recipe-ready {
  color: #3e704c;
}
.recipe-blocked {
  color: #875037;
}
.craft-batch {
  font-size: 13px;
}
.craft-batch button {
  font-size: 14px;
  min-width: 38px;
  padding: 8px;
}
.inventory-item small {
  font-size: 13px;
}
.inventory-item strong {
  font-size: 18px;
}
.inventory-grid {
  gap: 7px;
}
#material-sheet {
  pointer-events: auto;
  position: absolute;
  top: 106px;
  right: 18px;
  width: 360px;
  max-height: calc(100vh - 252px);
  overflow: auto;
  background: linear-gradient(130deg, #f0e7ce, #ded1ae);
  border: 1px solid #bd9d5d;
  box-shadow:
    inset 0 0 0 3px #f8ebc555,
    0 8px 35px #071c2970;
  padding: 22px;
  z-index: 12;
  color: #314535;
}
.material-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 10px;
  margin-bottom: 18px;
}
.material-heading canvas {
  image-rendering: pixelated;
  width: 56px;
  height: 56px;
  background: #c9d1b2;
}
.material-heading h3 {
  font-size: 24px;
  margin: 2px 0;
}
.material-heading small {
  display: block;
  font-size: 12px;
  color: #647150;
}
.material-heading strong {
  font-size: 25px;
  margin-left: auto;
  font-weight: 400;
  text-align: center;
}
#material-sheet > p {
  font-size: 15px;
  line-height: 1.95;
  margin: 14px 0;
}
.material-required {
  background: #d4c8a5;
  padding: 12px;
  font-size: 14px;
  line-height: 1.8;
}
.material-required b {
  display: block;
  font-weight: 400;
  color: #805234;
}
.material-recipe {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid #b5a982;
}
.material-recipe > b {
  font-size: 17px;
  font-weight: 400;
}
.material-recipe p {
  font-size: 12px;
  margin: 7px 0;
  color: #63704e;
}
.material-equation {
  padding: 12px 0;
  font-size: 16px;
}
.material-equation i {
  color: #85733e;
  margin: 0 7px;
  font-style: normal;
}
.material-batch {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.material-batch button {
  background: #34553f;
  border: 1px solid #b6a369;
  padding: 9px 11px;
  color: #f6e8be;
}
.material-batch button:hover {
  background: #46664b;
}
.material-recipe > small {
  display: block;
  font-size: 13px;
  line-height: 1.75;
}
.material-tip {
  color: #667252;
}
.dock {
  border-radius: 2px;
  border-color: #b69c6455;
  background: #192f29f5;
  box-shadow:
    inset 0 0 0 3px #12251d99,
    0 7px 24px #09212f55;
}
.dock button {
  color: #d3dcbc;
}
.dock .menu-icon {
  color: #bdcba4;
}
.dock button:hover {
  background: #64745744;
}
.dock button.active {
  color: #284335;
}
.dock button.active .menu-icon {
  color: #436645;
}
.tools button {
  width: 62px;
}
.tools button > span {
  white-space: nowrap;
}
.menus button {
  padding: 0 10px;
}
.tools small {
  color: #b5bd9a;
}
#material-sheet > .inspect-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: none;
  color: #5b725c;
  font-size: 23px;
  width: 28px;
  height: 28px;
}
.tools button > span,
.menus button > span:not(.menu-icon) {
  font-size: 13px;
}
.menus button {
  min-width: 79px;
}
.tools button {
  min-width: 55px;
}
.menus kbd,
.tools small {
  font-size: 11px;
}
.control-note {
  font-size: 12px;
  letter-spacing: 0;
}
.control-note i {
  margin: 0 5px;
}
.map-card {
  border-radius: 1px;
  border-color: #bca26b50;
}
.map-caption span,
.map-foot {
  font-size: 11px;
}
.life-card {
  border-radius: 1px;
}
.life-heading b {
  font-size: 13px;
}
.life-card > small,
#activity-label {
  font-size: 11px;
}
.vital-label {
  font-size: 12px;
}
#inspector {
  width: 342px;
  border-radius: 1px;
}
#inspector p {
  font-size: 14px;
  line-height: 1.8;
}
#inspector h3 {
  font-size: 24px;
}
.toast {
  font-size: 14px;
  line-height: 1.7;
  border-radius: 1px;
}
.setting-row {
  font-size: 16px;
}
.dialog-note {
  font-size: 14px;
  line-height: 1.9;
}
#dialog {
  border-radius: 2px;
  background: #eae0c4;
}
#hover-label {
  font-family: var(--game-font);
  font-size: 14px;
  padding: 9px 13px;
  border-radius: 1px;
  background: #162b25ee;
  border: 1px solid #b5a16580;
  line-height: 1.65;
}
#placement-bar {
  font-size: 15px;
}
#placement-bar small {
  font-size: 12px;
}
#law-overlay {
  font-size: 13px;
}
.build-tools button,
.build-tools select {
  font-size: 12px;
}
@media (max-width: 1300px) {
  .brand {
    padding: 0 15px;
    font-size: 22px;
  }
  .day-info {
    min-width: 130px;
    padding: 0 14px;
  }
  #resource-bar {
    gap: 5px;
  }
  .resource {
    padding: 6px 3px;
  }
  .resource small {
    font-size: 11px;
  }
  #panel {
    width: 360px;
  }
  #material-sheet {
    width: 330px;
  }
  .menus button {
    min-width: 68px;
  }
  .control-note {
    font-size: 11px;
  }
}
@media (max-height: 800px) {
  #panel,
  #material-sheet {
    top: 100px;
    bottom: 132px;
    max-height: calc(100vh - 235px);
  }
  .panel-heading {
    padding: 10px 17px;
  }
  .map-card {
    top: 102px;
  }
  .dock {
    bottom: 37px;
  }
  .control-note {
    bottom: 12px;
  }
}

.inventory-material{background:transparent;color:#415e3e;font-size:13px;display:block;padding:5px 0;width:100%}
