@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600;650;700&display=swap');
:root {
  color-scheme: light;
  --paper: #f0eee7;
  --ink: #314a40;
  --muted: #7b897d;
  --green: #496d5c;
  --line: #d5d9cc;
  --orange: #c5884f;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --sans: 'DM Sans', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
a,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: var(--green);
}
[hidden] {
  display: none !important;
}
canvas {
  position: fixed;
  outline: 0;
  touch-action: none;
  transition: opacity 0.8s;
}
canvas:focus-visible {
  outline: none;
}
.world-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    transparent 15%,
    transparent 78%,
    var(--paper) 99%
  );
  opacity: 0.85;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 34px;
  justify-content: space-between;
  padding: 30px 42px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
  color: inherit;
  text-decoration: none;
}
.showcase-credit {
  position: fixed;
  top: 100px;
  left: 42px;
  right: 42px;
  z-index: 20;
  width: fit-content;
  max-width: calc(100% - 84px);
  padding: 5px 8px;
  border-radius: 4px;
  background: #f8f7eff2;
  color: #52664e;
  font: 11px/1.5 var(--mono);
}
.showcase-credit a { color: inherit; text-underline-offset: 3px; }
.brand-mark,
.loader-mark {
  display: grid;
  place-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--green);
  border-radius: 12px;
  font-family: Georgia, serif;
  font-size: 29px;
  letter-spacing: -7px;
  padding-right: 7px;
  font-weight: bold;
  transform: rotate(-7deg);
}
.brand-mark span,
.loader-mark span {
  display: inline;
  position: absolute;
  right: 8px;
  top: 7px;
  font-size: 23px;
}
.brand-copy {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.brand-copy small {
  display: block;
  margin-top: 3px;
  font: 8px var(--mono);
  letter-spacing: 1.5px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 27px;
  margin-left: auto;
}
nav button {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
}
nav button span {
  font: 8px var(--mono);
  color: #9aa38f;
  vertical-align: super;
  margin-left: 5px;
}
nav button::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.2s;
}
nav button:hover::after {
  width: 100%;
}
.icon-button {
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  background: #f5f4edde;
  transition:
    background 0.2s,
    transform 0.2s;
}
.icon-button:hover {
  background: #e4e8db;
  transform: rotate(-6deg);
}
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro {
  position: fixed;
  left: 7%;
  top: 22%;
  max-width: 470px;
  z-index: 5;
  transition:
    opacity 0.6s,
    transform 0.6s;
  pointer-events: none;
}
.intro > * {
  pointer-events: auto;
}
.eyebrow {
  font: 9px var(--mono);
  letter-spacing: 1.7px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 25px;
}
.live-dot {
  height: 6px;
  width: 6px;
  background: #71977e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #789a7810;
}
h1 {
  font-size: clamp(62px, 6.5vw, 100px);
  line-height: 0.99;
  font-weight: 600;
  letter-spacing: -6px;
  margin: 0 0 28px;
  color: #344f42;
}
h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -6px;
  color: #73937c;
}
.intro-copy {
  font-size: 15px;
  line-height: 1.9;
  color: #728073;
  margin: 0 0 28px;
  max-width: 310px;
}
.primary-button {
  background: var(--green);
  border-radius: 4px;
  color: #f7f3e8;
  font-size: 12px;
  font-weight: 500;
  padding: 16px 19px;
  display: inline-flex;
  align-items: center;
  gap: 35px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary-button:hover {
  background: #345545;
  transform: translateY(-2px);
}
.primary-button span {
  font-size: 20px;
  line-height: 0.8;
}
.intro-hint {
  font: 9px var(--mono);
  color: #88917f;
  margin: 17px 0 33px;
}
kbd {
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 17px;
  padding: 1px 4px;
  border: 1px solid #cfd5c5;
  border-radius: 3px;
  color: #75846f;
  background: #f4f3eb99;
}
.intro-hint kbd {
  margin-left: 5px;
}
.exploring .intro {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}
.exploring .intro * {
  pointer-events: none;
}
.hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 37px 25px;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}
.hud > *,
.hud button {
  pointer-events: auto;
}
.instructions {
  font: 9px var(--mono);
  color: #84917d;
  line-height: 1.8;
}
.instructions > div {
  display: flex;
  gap: 6px;
  align-items: center;
}
.instructions > div span {
  margin-right: 8px;
}
.instructions p {
  margin: 6px 0 0;
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.instructions p kbd {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 8px;
}
.dashboard {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 18px;
  border: 1px solid #d6dbcc;
  border-radius: 8px;
  background: #f8f7efed;
  padding: 0 14px;
  box-shadow: 0 4px 18px #43583f08;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 25px;
}
.paint-button {
  width: 27px;
  height: 30px;
  padding: 4px;
  display: grid;
  place-items: center;
}
.paint-button span {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #d78b4d;
  border: 4px solid #f8f5e8;
  box-shadow: 0 0 0 1px #c4cab9;
  transition: transform 0.2s;
}
.paint-button:hover span {
  transform: scale(1.2);
}
.speed {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.speed strong {
  font: 24px var(--mono);
  color: #51684f;
  font-variant-numeric: tabular-nums;
}
.speed small {
  font: 7px var(--mono);
  color: #909b86;
}
.dashboard-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}
.reset-button {
  font-size: 24px;
  line-height: 1;
  color: #83907b;
  transition: transform 0.4s;
}
.reset-button:hover {
  transform: rotate(-40deg);
}
.mini-map {
  width: 166px;
  border: 1px solid #d1d8c7;
  border-radius: 7px;
  padding: 12px 12px 9px;
  background: #f8f6eeea;
  box-shadow: 0 6px 20px #485c4206;
  text-align: left;
  transition: transform 0.25s;
}
.mini-map:hover {
  transform: translateY(-3px);
}
.map-top,
.map-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  color: #8c9882;
}
.map-top > span:last-child {
  font-size: 13px;
}
.mini-map svg {
  width: 100%;
  height: 118px;
  display: block;
  margin: 5px 0;
}
.map-bottom {
  border-top: 1px solid #e0e3d4;
  padding-top: 9px;
  font-size: 6px;
  letter-spacing: 0.3px;
}
.map-bottom > span:first-child {
  font-size: 10px;
  color: #667a5a;
}
.map-road {
  fill: #dce1d2;
}
.map-landmark {
  fill: #9bac93;
}
.map-landmark.visited {
  fill: #b99468;
}
.map-car {
  fill: #c27f49;
  stroke: #faf6e9;
  stroke-width: 0.6;
}
.map-large {
  width: 100%;
  height: 300px;
  background: #e9eddf;
  border-radius: 8px;
  display: block;
  margin: 25px 0 18px;
}
.map-large text {
  font: 3px var(--mono);
  fill: #6e8166;
}
.map-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.map-place {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  border-radius: 5px;
}
.map-place:hover {
  background: #e9eddf;
}
.map-place small {
  font: 8px var(--mono);
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.map-place strong {
  font-size: 14px;
  font-weight: 500;
}
.poi-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.poi {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  background: #f8f6eee8;
  border: 1px solid #cbd4bf;
  border-radius: 4px;
  box-shadow: 0 3px 10px #46593d06;
  font: 8px var(--mono);
  letter-spacing: 0.4px;
  pointer-events: auto;
  white-space: nowrap;
  transition: opacity 0.25s;
  will-change: transform;
  opacity: 0;
}
.poi i {
  width: 5px;
  height: 5px;
  display: block;
  border-radius: 50%;
  background: #95aa86;
}
.poi:hover {
  background: #fffdf5;
}
.poi.is-visible {
  opacity: 1;
}
.poi.is-visited i {
  background: #c39660;
}
.nearby {
  position: fixed;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #faf8efef;
  border: 1px solid #d0d8c3;
  border-radius: 7px;
  padding: 12px 17px;
  box-shadow: 0 5px 20px #485c4310;
  text-align: left;
  animation: appear 0.3s ease;
}
.nearby-key {
  width: 27px;
  height: 29px;
  display: grid;
  place-content: center;
  font: 13px var(--mono);
  border: 1px solid #cad4be;
  border-bottom-width: 3px;
  border-radius: 4px;
  color: #5c7854;
}
.nearby small {
  display: block;
  font: 7px var(--mono);
  letter-spacing: 1px;
  color: #9aab8e;
  margin-bottom: 5px;
}
.nearby strong {
  font-size: 12px;
  font-weight: 500;
}
.nearby-arrow {
  color: #99a587;
  font-size: 22px;
  margin-left: 10px;
}
.toast {
  position: fixed;
  top: 105px;
  left: 50%;
  transform: translate(-50%, -8px);
  padding: 12px 20px;
  z-index: 80;
  background: #faf8efed;
  border: 1px solid #d3d9c8;
  border-radius: 5px;
  box-shadow: 0 8px 25px #31472f09;
  font: 10px var(--mono);
  color: #67815e;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.travel-mask {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.22s;
}
.travel-mask.active {
  opacity: 1;
}
dialog {
  position: fixed;
  inset: 24px 24px 24px auto;
  width: min(610px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  height: calc(100% - 48px);
  margin: 0;
  border: 1px solid #d8ddcf;
  border-radius: 13px;
  background: #f8f7ef;
  color: var(--ink);
  padding: 28px 38px 40px;
  overflow: auto;
  box-shadow: -15px 0 80px #223a2820;
  overscroll-behavior: contain;
  animation: panel-in 0.3s ease;
}
dialog::backdrop {
  background: #46533d25;
  backdrop-filter: blur(3px);
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.panel-top .eyebrow {
  margin: 0;
  font-size: 8px;
}
.panel-top .icon-button {
  width: 32px;
  height: 32px;
  font-size: 25px;
}
dialog h2 {
  font-weight: 500;
  font-size: 49px;
  letter-spacing: -2.8px;
  line-height: 1.03;
  margin: 0 0 25px;
  max-width: 460px;
}
.panel-lead {
  font-size: 17px;
  line-height: 1.7;
  color: #718070;
  margin: 0 0 26px;
}
.panel-note {
  font: 10px var(--mono);
  line-height: 1.8;
  color: #91a087;
}
.section-label {
  font: 8px var(--mono);
  letter-spacing: 1.3px;
  color: #8f9d84;
  margin: 27px 0 12px;
}
.case-card {
  width: 100%;
  text-align: left;
  display: block;
  margin: 0 0 16px;
  border: 1px solid #d5ddcc;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px #4563400c;
}
.case-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: #e2e9db;
  display: grid;
  place-content: center;
}
.case-visual pre {
  margin: 0;
  font: 8px/1.05 var(--mono);
  letter-spacing: 1px;
  white-space: pre;
  opacity: 0.9;
  transform: rotate(-7deg);
}
.case-visual.code {
  background: #dfe8dc;
}
.case-visual.orbit {
  background: #eee3cc;
}
.case-visual.blocks {
  background: #d8e5de;
}
.case-meta {
  display: flex;
  justify-content: space-between;
  padding: 17px 19px 19px;
  background: #f8f7ee;
}
.case-meta h3 {
  margin: 0 0 6px;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.6px;
}
.case-meta p {
  margin: 0;
  font: 8px var(--mono);
  color: #87947d;
  letter-spacing: 0.3px;
}
.case-meta > span {
  font-size: 22px;
  color: #97a489;
}
.case-detail-visual {
  height: 240px;
  border-radius: 8px;
  margin-bottom: 27px;
}
.case-detail-visual pre {
  font-size: 11px;
}
.case-year {
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: #8e9a80;
  margin-bottom: 17px;
}
.detail-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.detail-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #70836a;
  display: flex;
  gap: 15px;
  align-items: center;
}
.detail-list li::before {
  content: '+';
  font: 13px var(--mono);
  color: #a5b092;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 25px;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #ccd5bf;
  border-radius: 4px;
  padding: 13px 16px;
  font-size: 11px;
  color: #6b805f;
  background: #f8f8ee;
  transition: background 0.2s;
}
.secondary-button:hover {
  background: #e6ecdc;
}
.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.capabilities span {
  border: 1px solid #d0dac2;
  font: 9px var(--mono);
  padding: 9px 12px;
  border-radius: 4px;
  color: #7b8d6a;
}
.play-task {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.play-task > b {
  font: 22px var(--mono);
  color: #b39870;
  min-width: 27px;
}
.play-task h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
}
.play-task p {
  color: #87977b;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.stamp-progress {
  display: flex;
  gap: 12px;
  margin: 25px 0;
}
.stamp-progress span {
  width: 41px;
  height: 41px;
  border: 1px dashed #c7d3b8;
  display: grid;
  place-content: center;
  border-radius: 50%;
  font-size: 25px;
  color: #ccd6bf;
}
.stamp-progress span.collected {
  border-style: solid;
  color: #bd945c;
  background: #eee4c9;
}
.paint-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.paint-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 9px var(--mono);
  color: #8b9a7c;
  padding: 5px;
}
.paint-option i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: block;
  border: 7px solid #f8f6e9;
  box-shadow: 0 0 0 1px #d0d9c3;
  transition: transform 0.2s;
}
.paint-option[aria-pressed='true'] i {
  box-shadow: 0 0 0 2px #6d895e;
  transform: scale(1.06);
}
.garage-car {
  font: 12px/1.15 var(--mono);
  color: #b99361;
  white-space: pre;
  text-align: center;
  margin: 30px 0 20px;
}
.guestbook-form {
  margin-top: 25px;
  display: grid;
  gap: 14px;
}
.guestbook-form label {
  font: 9px var(--mono);
  color: #819273;
  display: grid;
  gap: 8px;
}
.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 12px;
  background: #f1f3e7;
  border: 1px solid #d1dbc4;
  border-radius: 4px;
  font: 13px var(--sans);
  color: var(--ink);
  resize: vertical;
}
.guestbook-form .primary-button {
  justify-self: start;
}
.guestbook-note {
  padding: 14px 15px;
  background: #eef1e3;
  border-radius: 5px;
  border: 1px solid #dbe2ce;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #748467;
}
.guestbook-note small {
  display: block;
  font: 8px var(--mono);
  color: #9ca88a;
  margin-bottom: 6px;
}
.form-error {
  font-size: 11px;
  color: #a4684b;
  margin: 0;
}
.touch-controls {
  display: none;
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 19px;
  right: 19px;
  z-index: 20;
  justify-content: space-between;
  pointer-events: none;
}
.touch-controls > div {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  pointer-events: auto;
}
.touch-controls button {
  touch-action: none;
  user-select: none;
  width: 47px;
  height: 47px;
  border: 1px solid #cbd5be;
  border-radius: 50%;
  background: #f9f7eede;
  font-size: 21px;
  display: grid;
  place-content: center;
}
.touch-controls button:active,
.touch-controls button.held {
  background: #e1e8d3;
  transform: translateY(2px);
}
.touch-controls .accelerate {
  height: 59px;
  width: 51px;
  border-radius: 22px;
  background: #dfebd6;
  color: #5b784e;
}
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition:
    opacity 0.6s,
    visibility 0.6s;
}
.loader-mark {
  height: 54px;
  width: 54px;
  font-size: 37px;
  padding-right: 9px;
  border-radius: 16px;
}
.loader-mark span {
  font-size: 33px;
  right: 11px;
  top: 9px;
}
.loader p {
  font: 11px var(--mono);
  color: #879575;
  margin: 25px 0;
}
.loader-track {
  width: 160px;
  height: 2px;
  background: #dde2d2;
  overflow: hidden;
}
.loader-track span {
  display: block;
  width: 10%;
  height: 100%;
  background: #819b71;
  transition: width 0.3s;
}
.loader small {
  font: 7px var(--mono);
  letter-spacing: 1.5px;
  color: #b0b8a1;
  margin-top: 26px;
}
.loader.complete {
  opacity: 0;
  visibility: hidden;
}
.loader button {
  font-size: 12px;
  color: var(--green);
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 4px;
  margin-top: 20px;
}
.is-loading canvas,
.is-loading .site-header,
.is-loading .intro,
.is-loading .hud {
  opacity: 0;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    margin-bottom: -7px;
  }
  to {
    opacity: 1;
    margin-bottom: 0;
  }
}
@media (min-width: 1600px) {
  .intro {
    left: 9%;
    top: 25%;
  }
  .site-header {
    padding: 35px 55px;
  }
  .hud {
    padding: 0 48px 32px;
  }
  .dashboard {
    bottom: 32px;
  }
}
@media (max-height: 780px) and (min-width: 701px) {
  .intro {
    top: 19%;
    left: 6%;
  }
  h1 {
    font-size: 70px;
  }
  .intro-copy {
    font-size: 13px;
    line-height: 1.65;
  }
  .eyebrow {
    margin-bottom: 18px;
  }
  .intro-hint {
    margin-bottom: 0;
  }
  .mini-map {
    width: 138px;
  }
  .mini-map svg {
    height: 86px;
  }
}
@media (max-width: 900px) {
  .site-header {
    padding: 24px;
    gap: 18px;
  }
  nav {
    gap: 18px;
  }
  .intro {
    left: 5%;
    top: 22%;
    max-width: 330px;
  }
  h1 {
    font-size: 75px;
  }
  .intro-copy {
    font-size: 14px;
  }
  .hud {
    padding: 0 22px 22px;
  }
  .instructions {
    max-width: 215px;
  }
  .instructions p {
    font-size: 7px;
    gap: 4px;
  }
  .mini-map {
    width: 138px;
  }
  .mini-map svg {
    height: 95px;
  }
  .dashboard {
    bottom: 22px;
    gap: 12px;
    padding: 0 10px;
  }
}
@media (max-width: 700px) {
  .brand-copy .release-badge {
    display: table;
    margin-top: 3px;
    padding: 2px 4px;
    font-size: 8px;
  }
  .site-header {
    padding: 20px 18px;
    gap: 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 22px;
    letter-spacing: -5px;
    padding-right: 6px;
  }
  .brand-mark span {
    font-size: 18px;
    right: 6px;
    top: 5px;
  }
  .brand-copy {
    font-size: 16px;
  }
  .brand-copy small {
    display: none;
  }
  nav {
    gap: 15px;
  }
  nav button {
    font-size: 10px;
  }
  nav button span {
    display: none;
  }
  .site-header > .icon-button {
    width: 28px;
    height: 28px;
  }
  .showcase-credit {
    top: 84px;
    left: 18px;
    right: 18px;
    max-width: calc(100% - 36px);
    font-size: 10px;
  }
  .icon-button svg {
    width: 15px;
    height: 15px;
  }
  .intro {
    left: 25px;
    right: 20px;
    top: 144px;
    max-width: none;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 59px;
    letter-spacing: -3.6px;
    line-height: 1.01;
    margin-bottom: 18px;
  }
  h1 em {
    letter-spacing: -3.5px;
  }
  .intro-copy {
    font-size: 12px;
    line-height: 1.8;
    max-width: 250px;
    margin-bottom: 19px;
  }
  .desktop-break {
    display: none;
  }
  .intro .primary-button {
    padding: 13px 17px;
    font-size: 11px;
    gap: 25px;
  }
  .intro-hint {
    display: none;
  }
  .intro .eyebrow {
    margin-bottom: 15px;
  }
  .hud {
    bottom: 100px;
    left: 0;
    right: 0;
    padding: 0 20px 0;
    align-items: flex-end;
  }
  .instructions {
    display: none;
  }
  .dashboard {
    left: 20px;
    transform: none;
    bottom: 0;
    height: 42px;
    gap: 11px;
    background: #faf8eee8;
    padding: 0 11px;
  }
  .speed strong {
    font-size: 19px;
  }
  .speed small {
    font-size: 6px;
  }
  .paint-button {
    width: 20px;
  }
  .paint-button span {
    height: 16px;
    width: 16px;
    border-width: 3px;
  }
  .reset-button {
    font-size: 22px;
  }
  .dashboard-divider {
    height: 16px;
  }
  .mini-map {
    margin-left: auto;
    width: 111px;
    padding: 8px;
    border-radius: 5px;
  }
  .mini-map svg {
    height: 73px;
    margin: 3px 0;
  }
  .map-top {
    font-size: 5px;
    letter-spacing: 0.4px;
  }
  .map-top > span:last-child {
    font-size: 11px;
  }
  .map-bottom {
    padding-top: 6px;
    font-size: 4.5px;
  }
  .map-bottom > span:first-child {
    font-size: 8px;
  }
  .touch-controls {
    display: flex;
  }
  .poi {
    font-size: 6px;
    padding: 5px 6px;
    gap: 4px;
  }
  .poi i {
    width: 4px;
    height: 4px;
  }
  .nearby {
    bottom: 245px;
    max-width: 85%;
    padding: 9px 12px;
    gap: 9px;
  }
  .nearby strong {
    font-size: 10px;
  }
  .nearby small {
    font-size: 6px;
  }
  .nearby-key {
    width: 23px;
    height: 25px;
    font-size: 11px;
  }
  .nearby-arrow {
    font-size: 17px;
  }
  .toast {
    top: 76px;
    font-size: 9px;
    padding: 10px 14px;
    max-width: 90%;
    white-space: normal;
  }
  .world-vignette {
    background: linear-gradient(
      180deg,
      var(--paper) 0%,
      transparent 19%,
      transparent 76%,
      var(--paper) 98%
    );
  }
  dialog {
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 10px;
    padding: 22px 23px 30px;
  }
  dialog h2 {
    font-size: 39px;
    letter-spacing: -2px;
  }
  .panel-top {
    margin-bottom: 25px;
  }
  .panel-lead {
    font-size: 14px;
    line-height: 1.8;
  }
  .case-visual {
    height: 140px;
  }
  .case-meta h3 {
    font-size: 17px;
  }
  .case-meta p {
    font-size: 7px;
  }
  .case-meta {
    padding: 15px;
  }
  .case-detail-visual {
    height: 210px;
  }
  .case-detail-visual pre {
    font-size: 9px;
  }
  .map-large {
    height: 250px;
  }
  .intro-hidden-mobile .intro {
    opacity: 0;
    pointer-events: none;
  }
}
.intro {
  max-width: 620px;
}
.world-vignette {
  opacity: 1;
}
h1 em {
  margin-right: 0.08em;
}
.world-vignette::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--paper) 0%,
    #f0eee7f5 25%,
    #f0eee7d9 37%,
    transparent 65%
  );
  opacity: 1;
  transition: opacity 0.65s;
}
.exploring .world-vignette::before {
  opacity: 0;
}
@media (max-width: 900px) and (min-width: 701px) {
  .intro {
    max-width: 490px;
  }
}
@media (max-width: 700px) {
  .intro {
    max-width: none;
  }
  .world-vignette::before {
    background: linear-gradient(
      180deg,
      var(--paper) 0%,
      #f0eee7f5 32%,
      #f0eee7c9 45%,
      transparent 70%
    );
  }
  nav {
    gap: 10px;
  }
  nav button {
    font-size: 11px;
    min-width: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 1000px) and (max-height: 500px) {
  .site-header {
    padding: 13px 20px;
  }
  .brand-copy small {
    display: none;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }
  .brand-mark span {
    font-size: 18px;
    right: 6px;
    top: 5px;
  }
  .intro {
    left: 24px;
    top: 100px;
    max-width: 390px;
  }
  .showcase-credit { top: 68px; left: 18px; right: 18px; font-size: 9px; }
  .intro .eyebrow {
    font-size: 7px;
    margin-bottom: 12px;
  }
  h1 {
    font-size: 47px;
    letter-spacing: -3px;
    margin-bottom: 20px;
  }
  h1 em {
    letter-spacing: -3px;
  }
  .intro-copy,
  .intro-hint {
    display: none;
  }
  .intro .primary-button {
    padding: 11px 15px;
    font-size: 10px;
  }
  .instructions {
    display: none;
  }
  .hud {
    bottom: 80px;
    padding: 0 18px;
  }
  .dashboard {
    left: 18px;
    transform: none;
    bottom: 0;
    height: 40px;
    gap: 12px;
  }
  .speed strong {
    font-size: 18px;
  }
  .mini-map {
    width: 90px;
    padding: 6px;
    margin-left: auto;
  }
  .mini-map svg {
    height: 52px;
  }
  .map-top {
    font-size: 5px;
    letter-spacing: 0;
  }
  .map-bottom {
    font-size: 4px;
    letter-spacing: 0;
    padding-top: 5px;
  }
  .map-bottom > span:first-child {
    font-size: 7px;
  }
  .touch-controls {
    display: flex;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 18px;
    right: 18px;
  }
  .touch-controls button {
    width: 44px;
    height: 44px;
  }
  .touch-controls .accelerate {
    width: 48px;
    height: 46px;
  }
  .nearby {
    bottom: 90px;
    padding: 8px 12px;
  }
  .toast {
    top: 64px;
    font-size: 8px;
  }
  dialog {
    inset: 10px 10px 10px auto;
    height: calc(100% - 20px);
    padding: 18px 24px;
    width: min(540px, calc(100% - 20px));
  }
}
