* {
  box-sizing: border-box;
}
:root {
  --ink: #1f1723;
  --panel: #3c2f52;
  --muted: #8c7f90;
  --paper: #e2e2e2;
  --orange: #f09548;
  --gold: #efd081;
  --red: #f5464c;
  --pink: #f79c88;
  --blue: #4995f3;
  --cyan: #72deeb;
  --green: #3ec54b;
  --lime: #b4e656;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink) url("/assets/img/background.svg") repeat;
  color: var(--ink);
  font:
    16px/1.45 Arial,
    Helvetica,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
}
[x-cloak] {
  display: none !important;
}
.game-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: auto;
  background: var(--paper);
  padding-bottom: 92px;
  box-shadow:
    0 0 0 4px var(--ink),
    0 0 40px #000a;
}
.game-header {
  position: relative;
  height: 146px;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
  background: var(--panel);
}
.game-header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.game-header__title {
  position: absolute;
  inset: auto 12px 10px;
  color: white;
  text-shadow: 3px 3px 0 var(--ink);
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
}
.game-header__title span {
  display: block;
  font-size: 14px;
}
.game-header__title strong {
  font-size: 29px;
  line-height: 1;
}
.resource-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--ink);
  border-bottom: 4px solid var(--ink);
}
.resource {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 5px;
  padding: 7px 5px;
  background: var(--gold);
}
.resource img {
  grid-row: span 2;
  image-rendering: pixelated;
}
.resource span {
  overflow: hidden;
  color: var(--panel);
  font:
    600 12px/1 "Pixelify Sans",
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resource strong {
  overflow: hidden;
  font:
    700 17px/1 "Pixelify Sans",
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-screen {
  min-height: calc(100vh - 270px);
  padding: 14px;
}
.screen-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}
.screen-head .icon {
  flex: none;
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}
.screen-head h1,
.screen-head p {
  margin: 0;
}
.screen-head h1,
h2,
h3,
.pixel {
  font-family: "Pixelify Sans", monospace;
}
.screen-head h1 {
  font-size: 28px;
  line-height: 1;
}
.screen-head p {
  color: #51465a;
  font-size: 14px;
}
.panel,
.offer-card {
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: #fff;
  margin: 0 0 14px;
  padding: 13px;
}
.panel--yellow {
  background: var(--gold);
}
.panel--quiet {
  background: #d8d0da;
}
.panel--tight {
  padding: 10px;
}
.panel h2,
.offer-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1;
}
.panel h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.panel p {
  margin: 0 0 10px;
}
.offer-card {
  background: #fffdf5;
}
.offer-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.badge {
  display: inline-block;
  border: 2px solid var(--ink);
  background: var(--cyan);
  padding: 3px 6px;
  font:
    700 12px/1 "Pixelify Sans",
    monospace;
  text-transform: uppercase;
}
.notice {
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin: 0 0 14px;
  padding: 10px;
  font-weight: 700;
}
.notice--good {
  background: var(--lime);
}
.notice--warning {
  background: var(--gold);
}
.notice--error {
  background: var(--pink);
}
.notice--quiet {
  background: var(--cyan);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  border-bottom: 1px dashed var(--muted);
  padding: 7px 0;
}
.stat-row:last-child {
  border: 0;
}
.stat-row strong,
.regular-row strong {
  font-family: "Pixelify Sans", monospace;
  font-size: 19px;
  text-align: right;
}
.regular-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px dashed var(--muted);
  padding: 7px 0;
}
.regular-row__label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.regular-row img {
  flex: none;
  image-rendering: pixelated;
}
.grid {
  display: grid;
  gap: 11px;
}
.meta {
  color: #51465a;
  font-size: 13px;
}
.numeric {
  text-align: right;
}
.number {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
}
.resource .number {
  font-family: "Silkscreen", monospace;
}
.meter {
  height: 13px;
  border: 2px solid var(--ink);
  background: #fff;
  margin-top: 7px;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--red);
}
.button,
button {
  min-height: 44px;
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font:
    700 18px/1 "Pixelify Sans",
    monospace;
  padding: 9px 12px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.button:hover,
button:hover {
  background: var(--gold);
}
.button:active,
button.htmx-request {
  box-shadow: 0 0 0 var(--ink);
  transform: translate(3px, 3px);
}
.button:disabled,
button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.75);
  opacity: 0.65;
}
.button.htmx-request::after {
  content: " …";
}
form {
  margin: 0;
}
fieldset {
  border: 2px solid var(--ink);
  margin: 0 0 12px;
  padding: 10px;
  background: #fffdf5;
}
legend {
  padding: 0 4px;
  font:
    700 17px "Pixelify Sans",
    monospace;
}
label {
  display: block;
  margin: 0 0 10px;
  font-weight: 700;
}
input,
select {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  margin-top: 4px;
  padding: 7px;
}
input:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.errors {
  border: 2px solid var(--ink);
  background: var(--pink);
  margin: 8px 0;
  padding: 8px 8px 8px 26px;
}
.errors li + li {
  margin-top: 3px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  border-bottom: 1px solid var(--muted);
  padding: 7px 4px;
  text-align: left;
}
th {
  font:
    600 13px "Pixelify Sans",
    monospace;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
.invite {
  overflow-wrap: anywhere;
}
.menu-tab-controls {
  position: relative;
}
.menu-tab__control {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.menu-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 10px;
}
.menu-tabs label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font:
    700 13px/1 "Pixelify Sans",
    monospace;
  padding: 8px 3px;
  text-align: center;
}
.menu-tab__panel {
  display: none;
}
.menu-tab__panel fieldset {
  margin-bottom: 12px;
}
#dish-tab-1:checked ~ .menu-tabs label[for="dish-tab-1"],
#dish-tab-2:checked ~ .menu-tabs label[for="dish-tab-2"],
#dish-tab-3:checked ~ .menu-tabs label[for="dish-tab-3"] {
  background: var(--orange);
}
#dish-tab-1:checked ~ .menu-tab__panels #dish-panel-1,
#dish-tab-2:checked ~ .menu-tab__panels #dish-panel-2,
#dish-tab-3:checked ~ .menu-tab__panels #dish-panel-3 {
  display: block;
}
.market-impact {
  border: 2px solid var(--ink);
  background: var(--paper);
  margin: 0 0 14px;
  padding: 10px;
}
.market-impact h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.market-impact__changes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.market-impact__change {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 2px solid var(--ink);
  background: #fffdf5;
  padding: 3px 6px 3px 3px;
  font:
    700 13px/1 "Pixelify Sans",
    monospace;
}
.market-impact__change > img:first-child {
  image-rendering: pixelated;
}
.market-impact__change .demographic-icon {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
}
.market-history__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  min-height: 44px;
  cursor: pointer;
  text-align: left;
}
.market-history__toggle::-webkit-details-marker {
  display: none;
}
.market-history__indicator::after {
  content: "+";
}
.market-history[open] .market-history__indicator::after {
  content: "−";
}
.market-donut-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.market-donut-card {
  border: 2px solid var(--ink);
  background: #fffdf5;
  padding: 10px;
}
.market-donut-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.market-donut {
  position: relative;
  width: min(100%, 180px);
  margin: 0 auto 8px;
}
.market-donut svg {
  display: block;
  width: 100%;
  transform: rotate(-90deg);
}
.market-donut__track,
.market-donut__slice {
  fill: none;
  stroke-width: 20;
}
.market-donut__track {
  stroke: var(--paper);
}
.market-donut__slice {
  stroke-linecap: butt;
}
.market-donut__center {
  fill: #fffdf5;
}
.market-donut__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.market-donut__icon img {
  image-rendering: pixelated;
}
.market-donut__legend {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.market-donut__legend li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.market-donut__legend strong {
  font-family: "Pixelify Sans", monospace;
}
.market-donut__swatch {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
}
.action-prompt {
  background: var(--lime);
}
.action-prompt .button {
  width: 100%;
}
.action-slot-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.action-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  border-top: 2px solid var(--ink);
  padding-top: 9px;
  line-height: 1.3;
}
.action-slot__title {
  min-width: 0;
}
.action-slot small {
  color: #51465a;
  font-size: 13px;
}
.action-slot--empty {
  color: #51465a;
}
.dish-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  border-top: 2px solid var(--ink);
  margin-top: 10px;
  padding-top: 8px;
}
.dish-result span,
.dish-result small {
  color: #51465a;
  font-size: 13px;
}
.dish-result strong {
  font-family: "Pixelify Sans", monospace;
  text-align: right;
}
.dish-result small {
  grid-column: 2;
  text-align: right;
}
.city-demographics__body {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
}
.city-donut {
  display: block;
  width: 100%;
  max-width: 170px;
  margin: auto;
  transform: rotate(-90deg);
}
.city-donut__track,
.city-donut__slice {
  fill: none;
  stroke-width: 22;
}
.city-donut__track {
  stroke: var(--paper);
}
.city-donut__slice {
  stroke-linecap: butt;
}
.city-demographics__legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.city-demographics__legend li {
  display: grid;
  grid-template-columns: 10px 32px auto;
  gap: 4px;
  align-items: center;
}
.city-demographics__legend img {
  image-rendering: pixelated;
}
.city-demographics__legend strong {
  font:
    700 13px/1 "Pixelify Sans",
    monospace;
}
.city-demographics__swatch {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
}
.profit-chart__rows {
  display: grid;
  gap: 7px;
}
.profit-chart__row {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) minmax(130px, 2fr) auto;
  gap: 6px;
  align-items: center;
}
.profit-chart__row--leader {
  background: var(--gold);
  border: 2px solid var(--ink);
  padding: 3px;
}
.profit-chart__name {
  overflow: hidden;
  font:
    700 13px/1 "Pixelify Sans",
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profit-chart svg {
  min-width: 0;
  width: 100%;
}
.profit-chart__zero {
  stroke: var(--ink);
  stroke-width: 2;
}
.profit-chart__row strong {
  font:
    700 13px/1 "Pixelify Sans",
    monospace;
  text-align: right;
}
.game-nav {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  width: min(100%, 760px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  padding: 4px;
  border-top: 4px solid var(--ink);
  background: var(--panel);
}
.game-nav__item {
  min-width: 0;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: white;
  font:
    600 11px/1 "Pixelify Sans",
    monospace;
  text-decoration: none;
}
.game-nav__item img {
  image-rendering: pixelated;
}
.game-nav__item.is-active,
.game-nav__item:hover {
  background: var(--orange);
  color: var(--ink);
}
.more-drawer {
  position: absolute;
  z-index: 11;
  right: 4px;
  bottom: 68px;
  width: 205px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--gold);
}
.more-drawer a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-bottom: 2px solid var(--ink);
  padding: 6px 9px;
  font:
    700 17px "Pixelify Sans",
    monospace;
  text-decoration: none;
}
.more-drawer a:last-child {
  border: 0;
}
.more-drawer img {
  image-rendering: pixelated;
}
.toast-region {
  position: fixed;
  z-index: 30;
  right: max(12px, calc((100vw - 760px) / 2 + 12px));
  bottom: 82px;
  pointer-events: none;
}
.toast {
  max-width: 280px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--lime);
  padding: 10px;
  font:
    700 17px/1.1 "Pixelify Sans",
    monospace;
  animation: toast-out 4s forwards;
}
.toast--error {
  background: var(--pink);
}
.toast--warning {
  background: var(--gold);
}
@keyframes toast-out {
  0%,
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes value-flash {
  0% {
    color: var(--red);
    transform: scale(1.18);
  }
  100% {
    color: inherit;
    transform: scale(1);
  }
}
[data-flash-value] {
  display: inline-block;
  animation: value-flash 0.8s ease-out;
}
.access-page {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: auto;
  padding: 18px 14px;
  background: var(--paper);
}
.access-page .game-header {
  margin: -18px -14px 18px;
}
@media (min-width: 580px) {
  .game-header {
    height: 190px;
  }
  .game-screen {
    padding: 20px;
  }
  .grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .market-donut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-nav__item {
    font-size: 12px;
  }
}
