:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --ink: #233d37;
  --muted: #656e62;
  --orange: #df572d;
  --line: rgba(35, 61, 55, 0.17);
  --heading: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
button {
  color: inherit;
}
button:hover {
  filter: brightness(0.94);
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: var(--paper);
}
.home-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.home-link span {
  padding-left: 24px;
  color: #93978a;
}
.wordmark {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
}
.edition {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
#game-shell {
  position: relative;
  height: calc(100dvh - 118px);
  min-height: 340px;
  isolation: isolate;
  overflow: hidden;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}
.vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px #b6b59c26;
  pointer-events: none;
}
.menu {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.start-screen {
  background: linear-gradient(
    90deg,
    #f4f1e8 0%,
    #f4f1e8f5 22%,
    #f4f1e8c9 35%,
    #f4f1e826 57%,
    transparent 72%
  );
  display: flex;
  align-items: center;
  pointer-events: none;
}
.intro {
  pointer-events: auto;
  margin-left: 7%;
  width: 450px;
  padding: 26px 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 600;
  line-height: 1.5;
}
.level-label {
  color: var(--muted);
  display: flex;
  gap: 18px;
  margin: 0 0 22px;
  letter-spacing: 0.12em;
}
.level-label span {
  color: var(--orange);
}
h1 {
  position: relative;
  font-family: var(--heading);
  font-size: clamp(76px, 8.7vw, 134px);
  line-height: 0.83;
  letter-spacing: -0.075em;
  font-weight: 700;
  margin: 0 0 25px;
}
h1 > span {
  color: var(--orange);
}
h1 i {
  position: absolute;
  font-style: normal;
  font-size: 70px;
  left: 240px;
  top: 1px;
  color: var(--ink);
  font-weight: 400;
}
.neighborhood {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.35em;
  margin: 0 0 18px;
}
.tagline {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 29px;
}
.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  min-height: 57px;
  padding: 16px 23px;
  background: var(--ink);
  border: 0;
  border-radius: 3px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  width: 292px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #31534a;
  transform: translateY(-1px);
}
.primary > span:last-child:not(:first-child) {
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}
.start-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0 28px;
}
kbd {
  font-family: var(--body);
  font-size: 12px;
  border: 1px solid #7c857348;
  border-bottom-width: 2px;
  padding: 5px 7px;
  border-radius: 3px;
  background: #faf8f166;
  letter-spacing: 0.1em;
}
.pickup-guide {
  display: flex;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  width: 392px;
}
.pickup-guide > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pickup-icon {
  font-size: 24px;
  filter: saturate(0.72);
  margin-bottom: 4px;
}
.pickup-guide strong {
  font-size: 13px;
  font-weight: 600;
}
.pickup-guide div > span:last-child {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.prototype-note {
  margin: 24px 0 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.prototype-note span {
  margin: 0 7px;
}
.scene-caption {
  position: absolute;
  right: 4%;
  bottom: 36px;
  text-align: right;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.07em;
}
.scene-caption small {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.caption-line {
  display: block;
  width: 34px;
  height: 2px;
  background: var(--orange);
  margin: 0 0 12px auto;
}
.game-footer {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 36px;
  font-size: 10px;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 5;
}
.game-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-controls {
  font-size: 11px;
  word-spacing: 3px;
}
.footer-controls i {
  font-size: 10px;
  font-style: normal;
  color: var(--muted);
  margin-left: 4px;
}
.footer-controls > span {
  margin: 0 13px;
}
.game-footer > div {
  display: flex;
  gap: 25px;
}
.game-footer button {
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 12px;
  color: var(--ink);
}
.hud {
  position: absolute;
  inset: 22px 32px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.hud-stat {
  min-width: 126px;
  padding: 13px 20px 12px;
  background: #f4f1e8ee;
  border: 1px solid #fff9;
  box-shadow: 0 5px 20px #233d3708;
  border-radius: 5px;
  backdrop-filter: blur(10px);
}
.hud-stat > .eyebrow {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}
.hud-stat strong {
  font-family: var(--heading);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.pizza-stat {
  text-align: center;
  min-width: 170px;
}
.pizza-stat small {
  font-size: 16px;
  color: var(--muted);
}
.pizza-mark {
  color: var(--orange);
}
.progress-track {
  width: 100%;
  height: 3px;
  background: #233d371c;
  margin-top: 7px;
  border-radius: 10px;
  overflow: hidden;
}
.progress-track > div {
  background: var(--orange);
  height: 100%;
  width: 0;
  transition: width 0.15s;
}
.lives-stat {
  text-align: right;
}
.lives-stat strong {
  color: var(--orange);
  font-size: 25px;
  letter-spacing: 0.04em;
}
.lost-heart {
  color: #c8c8b9;
}
.caffeine {
  position: absolute;
  top: 138px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 13px 18px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 15px #233d3733;
}
.caffeine strong {
  font-variant-numeric: tabular-nums;
  color: #ecd271;
}
.caffeine > div {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #ecd271;
  width: 100%;
}
.street-name {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 0.12em;
  background: #f4f1e8e6;
  border-radius: 3px;
  padding: 11px 20px;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
  text-align: center;
}
.street-name.visible {
  opacity: 1;
}
.notice {
  position: absolute;
  top: 190px;
  left: 50%;
  transform: translateX(-50%);
  background: #f4f1e8f5;
  padding: 11px 18px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.notice.visible {
  opacity: 1;
}
.run-tools {
  position: absolute;
  bottom: 28px;
  left: 32px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.tool-button {
  background: #f4f1e8ed;
  border: 1px solid #fff9;
  padding: 11px 15px;
  font-size: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
}
.tool-button span {
  font-size: 12px;
}
.mini-wrap {
  position: absolute;
  bottom: 26px;
  right: 30px;
  z-index: 2;
  background: #f4f1e8ed;
  padding: 12px;
  border: 1px solid #fff9;
  border-radius: 5px;
  width: 172px;
  pointer-events: none;
}
.mini-heading {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
#minimap {
  display: block;
  width: 146px;
  height: 158px;
}
.mini-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  letter-spacing: 0.05em;
}
.mini-legend i,
.mini-legend b,
.mini-legend em {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: 3px;
}
.mini-legend b {
  background: #c4a037;
}
.mini-legend em {
  background: #6e98b0;
}
.centered-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: #233d3766;
  backdrop-filter: blur(7px);
  padding: 24px;
  overflow-y: auto;
}
.modal-card {
  background: var(--paper);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 90px #152c3640;
  text-align: center;
}
.modal-card .eyebrow {
  color: var(--orange);
  margin: 0 0 16px;
}
.modal-card h2,
dialog h2 {
  font-family: var(--heading);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 0 20px;
}
.modal-card > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 26px;
}
.modal-card .primary {
  width: 100%;
}
.text-button {
  font-size: 13px;
  background: none;
  border: 0;
  padding: 18px 12px 0;
  color: var(--muted);
  display: inline-block;
}
.final-score {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.final-score strong {
  display: block;
  font-size: 54px;
  font-family: var(--heading);
  letter-spacing: -0.05em;
  font-weight: 500;
}
.final-score > .eyebrow {
  color: var(--muted);
}
.run-stats {
  margin: 16px 0 27px;
  text-align: left;
}
.run-stats > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.run-stats dt {
  color: var(--muted);
}
.run-stats dd {
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-weight: 600;
}
.hit-flash {
  position: absolute;
  inset: 0;
  background: #e37b5738;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s;
}
.hit-flash.active {
  opacity: 1;
}
.no-script {
  position: absolute;
  inset: 0;
  background: var(--paper);
  padding: 15%;
  z-index: 10;
}
dialog {
  max-width: 560px;
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 38px;
  box-shadow: 0 30px 90px #152c3640;
}
dialog::backdrop {
  background: #233d3766;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font-size: 32px;
  line-height: 1.1;
}
dialog p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
dialog a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.dialog-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: 0;
}
.credits {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px !important;
}
@media (min-width: 1500px) {
  .intro {
    margin-left: 9%;
  }
  .start-screen {
    background: linear-gradient(
      90deg,
      #f4f1e8 0%,
      #f4f1e8e6 28%,
      #f4f1e826 60%,
      transparent 74%
    );
  }
}
@media (max-height: 780px) and (min-width: 801px) {
  .intro {
    padding: 18px 0;
  }
  h1 {
    font-size: 90px;
    margin-bottom: 20px;
  }
  h1 i {
    left: 193px;
    font-size: 60px;
  }
  .level-label {
    margin-bottom: 18px;
  }
  .tagline {
    margin-bottom: 20px;
  }
  .start-controls {
    margin-bottom: 20px;
  }
  .pickup-guide {
    padding-top: 14px;
  }
  .prototype-note {
    margin-top: 16px;
  }
  .modal-card {
    padding: 26px;
  }
  .modal-card h2 {
    font-size: 34px;
  }
  .final-score strong {
    font-size: 44px;
  }
  .run-stats {
    margin: 12px 0 20px;
  }
}
@media (max-width: 800px) {
  .site-header {
    padding: 0 20px;
    height: 58px;
    gap: 15px;
  }
  .home-link span {
    padding-left: 12px;
  }
  .edition {
    font-size: 10px;
  }
  .wordmark {
    font-size: 12px;
  }
  #game-shell {
    height: calc(100dvh - 102px);
  }
  .intro {
    margin-left: 6%;
    width: 360px;
  }
  h1 {
    font-size: 92px;
  }
  h1 i {
    left: 192px;
    font-size: 52px;
  }
  .pickup-guide {
    gap: 20px;
    width: 360px;
  }
  .scene-caption {
    display: none;
  }
  .game-footer {
    height: 44px;
    padding: 0 20px;
  }
  .footer-controls {
    display: none;
  }
  .start-screen {
    background: linear-gradient(90deg, #f4f1e8f5, #f4f1e8e0 40%, #f4f1e850);
  }
  .hud {
    inset: 16px 16px auto;
  }
  .hud-stat {
    min-width: 96px;
    padding: 10px 12px;
  }
  .pizza-stat {
    min-width: 130px;
  }
  .hud-stat strong {
    font-size: 23px;
  }
  .run-tools {
    left: 16px;
    bottom: 18px;
  }
  .mini-wrap {
    right: 16px;
    bottom: 18px;
    width: 143px;
  }
  #minimap {
    width: 117px;
    height: 127px;
  }
  .mini-heading {
    font-size: 7px;
  }
  .mini-legend {
    font-size: 7px;
    gap: 3px;
  }
  .street-name {
    bottom: 82px;
    font-size: 12px;
    max-width: 180px;
  }
  .caffeine {
    top: 116px;
  }
  .notice {
    top: 165px;
  }
}
@media (max-width: 480px) {
  .edition {
    display: none;
  }
  .wordmark {
    margin-left: auto;
  }
  .intro {
    margin: 0 25px;
    padding: 20px 0;
  }
  .level-label {
    font-size: 10px;
    gap: 12px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 85px;
  }
  h1 i {
    left: 180px;
  }
  .neighborhood {
    font-size: 14px;
  }
  .tagline {
    font-size: 16px;
  }
  .pickup-guide {
    width: 100%;
    gap: 17px;
  }
  .pickup-guide div > span:last-child {
    font-size: 10px;
  }
  .prototype-note {
    font-size: 9px;
  }
  .game-footer > span:first-child {
    font-size: 8px;
  }
  .game-footer > div {
    gap: 16px;
  }
  .hud-stat {
    min-width: 78px;
  }
  .hud-stat strong {
    font-size: 20px;
  }
  .pizza-stat {
    min-width: 116px;
  }
  .lives-stat strong {
    font-size: 18px;
  }
  .tool-button span {
    display: none;
  }
  .mini-heading {
    font-size: 7px;
  }
  .modal-card {
    padding: 26px;
  }
  .modal-card h2 {
    font-size: 34px;
  }
}
@media (max-height: 650px) {
  .start-screen {
    overflow-y: auto;
    align-items: flex-start;
  }
  .intro {
    padding: 25px 0;
  }
  .pickup-guide {
    display: none;
  }
  .prototype-note {
    margin-top: 18px;
  }
  .mini-wrap {
    width: 124px;
  }
  #minimap {
    width: 98px;
    height: 106px;
  }
  .mini-heading {
    font-size: 6px;
  }
  .mini-legend {
    font-size: 6px;
    gap: 3px;
  }
  .modal-card {
    margin: auto;
  }
  .centered-screen {
    align-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.turn-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: -15px 0 23px;
}
.bonus-icon {
  color: #b78235;
}
.prototype-note {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.025em;
}
.mini-heading,
.mini-legend {
  font-size: 10px;
  line-height: 1.3;
}
.mini-wrap {
  width: 192px;
}
.mini-wrap #minimap {
  width: 166px;
  height: 180px;
}
.game-footer > span:first-child {
  font-size: 12px;
  letter-spacing: 0.045em;
}
@media (max-width: 800px) {
  .mini-wrap {
    width: 162px;
  }
  .mini-wrap #minimap {
    width: 136px;
    height: 147px;
  }
  .mini-heading,
  .mini-legend {
    font-size: 8px;
  }
  .game-footer > span:first-child {
    font-size: 10px;
  }
  .prototype-note {
    font-size: 10px;
  }
  .turn-hint {
    margin-top: -10px;
  }
}
@media (max-height: 650px) {
  .pickup-guide {
    display: flex;
    margin-top: 15px;
    padding-top: 10px;
  }
  .pickup-guide .pickup-icon {
    display: none;
  }
  .intro {
    padding-top: 20px;
  }
  .prototype-note {
    margin-top: 14px;
  }
  .start-controls {
    margin-bottom: 19px;
  }
  .turn-hint {
    margin-bottom: 12px;
  }
  .mini-wrap {
    width: 145px;
  }
  .mini-wrap #minimap {
    width: 119px;
    height: 129px;
  }
  .mini-heading,
  .mini-legend {
    font-size: 8px;
  }
}

/* Brief discovery treatment; no permanent map labels or gameplay interruption. */
.poi-discovery { position:absolute;left:50%;bottom:90px;transform:translateX(-50%);z-index:2;pointer-events:none;text-align:center;padding:10px 18px;background:#f4f1e8e8;border-left:3px solid var(--orange);border-radius:3px;max-width:calc(100% - 380px);box-shadow:0 3px 14px #233d3718; }
.poi-discovery strong {display:block;font-family:var(--heading);font-size:14px;letter-spacing:.07em;line-height:1.3;}
.poi-discovery span {display:block;font-size:10px;letter-spacing:.1em;color:var(--muted);margin-top:4px;}
@media(max-width:800px){.poi-discovery{bottom:132px;max-width:calc(100% - 32px);width:max-content;}.poi-discovery strong{font-size:12px;}}
