@font-face {
  font-family: Pixel;
  src: url("/fonts/silkscreen.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("/fonts/space-grotesk.ttf") format("truetype");
  font-display: swap;
}
:root {
  --ink: #263c36;
  --green: #446b3a;
  --paper: #f6f5df;
  --pixel: Pixel, monospace;
  --body: Space, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #bcdade;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #dd8244;
  outline-offset: 5px;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
[hidden] {
  display: none !important;
}
#world {
  position: fixed;
  inset: 0;
}
#world canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(204, 227, 223, 0.7), transparent 52%),
    linear-gradient(0deg, rgba(40, 71, 64, 0.18), transparent 20%);
}
.topbar {
  position: absolute;
  left: 44px;
  right: 44px;
  top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}
.brand {
  display: flex;
  gap: 15px;
  align-items: center;
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 19px;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.2px;
  margin-top: 8px;
}
.grass-icon {
  display: block;
  width: 34px;
  height: 34px;
  background: linear-gradient(#799b48 0 30%, #8b6240 30%);
  box-shadow:
    inset -8px 0 #0002,
    inset 4px 4px #fff2,
    4px 4px 0 #263c3620;
  transform: rotate(-8deg);
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.server-status {
  font-family: var(--pixel);
  font-size: 9px;
  margin-right: 12px;
}
.server-status i,
.location-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #54774b;
  margin-right: 8px;
}
.icon-button {
  position: relative;
  width: 39px;
  height: 39px;
  border: 1px solid #2f514528;
  background: #eef5e844;
  font-size: 21px;
}
.icon-button:hover,
.menu-button:hover {
  background: #f6f5df;
}
.sound-slash {
  position: absolute;
  width: 20px;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  top: 19px;
  left: 8px;
}
.menu-button {
  border: 1px solid #2f51453b;
  background: #eff5e87a;
  padding: 11px 17px;
  font-size: 12px;
}
.menu-button span {
  margin-left: 22px;
}
.welcome {
  position: absolute;
  left: 5.2vw;
  top: 24%;
  width: 390px;
  z-index: 2;
}
.eyebrow {
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}
.tiny-square {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #c27b46;
  margin-right: 7px;
}
.welcome h1 {
  font-family: var(--pixel);
  font-size: clamp(30px, 3.2vw, 51px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -2.8px;
  margin: 24px 0;
}
.welcome h1 span {
  color: #638249;
}
.welcome p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 330px;
  margin: 0 0 15px;
}
.welcome p strong {
  font-weight: 700;
}
.welcome .welcome-secondary {
  font-size: 13px;
  color: #506861;
  margin-bottom: 28px;
}
.pixel-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 2px solid #2f4b29;
  padding: 17px 22px;
  font-family: var(--pixel);
  font-size: 12px;
  text-decoration: none;
  box-shadow:
    inset 2px 2px #ffffff35,
    inset -2px -2px #0002,
    4px 4px 0 #34492f38;
}
.pixel-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.pixel-button:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.primary {
  background: #557b43;
  color: #ffffe9;
  min-width: 260px;
}
.text-link {
  display: block;
  margin-top: 21px;
  font-size: 12px;
  text-decoration: none;
  color: #50635b;
}
.text-link span {
  margin-left: 10px;
}
.text-link:hover {
  text-decoration: underline;
}
.welcome-meta {
  margin-top: 45px;
  font-size: 8px;
  letter-spacing: 1.1px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.welcome-meta .location-dot {
  width: 5px;
  height: 5px;
}
.meta-divider {
  margin: 0 10px;
  opacity: 0.35;
}
.world-info {
  position: absolute;
  right: 40px;
  bottom: 110px;
  width: 285px;
  padding: 20px 22px;
  background: #f4f3ddcf;
  border: 1px solid #fcfce8;
  box-shadow: 5px 5px 0 #334d3520;
  pointer-events: none;
}
.world-info .eyebrow {
  font-size: 8px;
  color: #728266;
}
.world-info strong {
  display: block;
  font-size: 16px;
  margin: 10px 0;
}
.world-info p {
  font-size: 11px;
  margin: 0;
  color: #647263;
}
.world-facts {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid #32463524;
  font-family: var(--pixel);
  font-size: 7px;
}
.overview-hint {
  position: absolute;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  color: #35584d;
}
.overview-hint span {
  font-size: 20px;
}
.overview-hint i {
  width: 3px;
  height: 3px;
  background: currentColor;
}
.world-footer {
  position: absolute;
  bottom: 25px;
  left: 44px;
  right: 44px;
  display: flex;
  align-items: center;
  gap: 25px;
  font-family: var(--pixel);
  font-size: 8px;
  z-index: 2;
}
.world-footer > span {
  flex: 1;
}
.world-footer a,
.world-footer button {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  padding: 5px 0;
}
.world-footer a:hover,
.world-footer button:hover {
  text-decoration: underline;
}
.landmark-label {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -100%);
  padding: 9px 12px;
  border: 1px solid #fff9;
  background: #f4f3ddea;
  box-shadow: 3px 3px 0 #18342a27;
  font-family: var(--pixel);
  font-size: 8px;
  white-space: nowrap;
  transition: background 0.15s;
  pointer-events: auto;
}
.landmark-label::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  background: #f4f3dd;
  transform: rotate(45deg);
}
.landmark-label:hover {
  background: #fffde9;
  scale: 1.06;
}
.landmark-label span {
  margin-right: 7px;
  color: #829756;
}
.landmark-label.visited span {
  color: #537b42;
}
.quest-card {
  position: absolute;
  top: 112px;
  left: 35px;
  width: 240px;
  padding: 16px 18px;
  background: #f6f5dfde;
  border: 1px solid #fff8;
  box-shadow: 4px 4px #263c3620;
}
.quest-card .eyebrow {
  font-size: 8px;
  color: #7b805e;
}
.quest-card strong {
  display: block;
  font-size: 13px;
  margin: 9px 0 15px;
}
.quest-card small {
  font-size: 10px;
}
.quest-progress {
  height: 5px;
  background: #a9b59466;
  margin-bottom: 7px;
}
.quest-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #6f9146;
  transition: width 0.4s;
}
#minimap-button {
  position: absolute;
  right: 35px;
  top: 110px;
  padding: 5px;
  background: #f6f5dfe6;
  border: 2px solid #5d704e66;
  box-shadow: 4px 4px #263c3620;
}
#minimap {
  display: block;
  width: 130px;
  height: 130px;
  image-rendering: pixelated;
}
#minimap-button > span {
  font-family: var(--pixel);
  font-size: 7px;
  display: block;
  margin: 8px 0;
}
#minimap-button kbd {
  margin-left: 7px;
}
#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: monospace;
  font-size: 25px;
  color: #fff9;
  text-shadow: 1px 1px #0008;
  pointer-events: none;
}
#interact {
  position: absolute;
  left: 50%;
  bottom: 190px;
  transform: translateX(-50%);
  background: #f6f5dfef;
  border: 1px solid #fff9;
  padding: 12px 18px;
  box-shadow: 3px 3px #263c3630;
  font-size: 13px;
}
kbd {
  font-family: var(--body);
  padding: 2px 5px;
  background: #ffffff35;
  border: 1px solid #61736044;
  font-size: 10px;
}
.player-info {
  position: absolute;
  left: 50%;
  bottom: 151px;
  transform: translateX(-50%);
  width: 385px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hearts {
  font-family: monospace;
  color: #de6851;
  font-size: 20px;
  text-shadow: 2px 2px #552b2433;
}
#coordinates {
  font-family: var(--pixel);
  font-size: 7px;
  color: #f7f6de;
  text-shadow: 1px 1px #34492f;
}
.hotbar {
  position: absolute;
  bottom: 91px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #383d31c9;
  border: 2px solid #f1edd29c;
  box-shadow: 3px 3px 0 #2733215c;
}
.hotbar button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #222a1d65;
  background: #a1a38b66;
  box-shadow:
    inset 2px 2px #ffffff25,
    inset -2px -2px #0002;
}
.hotbar button.selected,
.hotbar button[aria-pressed="true"] {
  border-color: #fff6d4;
  background: #d6d2a26b;
  outline: 1px solid #fff6d4;
}
.hotbar button kbd {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 8px;
  color: #eee9cd;
  border: 0;
  background: none;
  padding: 0;
}
.block-icon {
  width: 24px;
  height: 26px;
  box-shadow:
    inset -6px -5px #0002,
    inset 3px 3px #fff2;
  transform: rotate(-7deg);
}
.grass {
  background: linear-gradient(#71924b 35%, #886445 35%);
}
.wood {
  background: repeating-linear-gradient(0deg, #a47a4a 0 5px, #7f5b35 5px 6px);
}
.stone {
  background: repeating-linear-gradient(0deg, #9a9f93 0 7px, #7d857b 7px 8px);
}
.brick {
  background: #bb765b;
}
.glass {
  background: #7bc5cb;
  border: 2px solid #c6edf0;
}
.tool-icon {
  font-size: 27px;
  color: #f6edca;
}
.controls-caption {
  position: absolute;
  bottom: 63px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  font-size: 9px;
  white-space: nowrap;
  color: #f5f5dd;
  text-shadow: 1px 1px #273d32;
}
.controls-caption kbd {
  border-color: #eaf1cf55;
  font-size: 9px;
}
.playing .world-footer {
  font-size: 7px;
  color: #f1f4df;
}
.playing .vignette {
  background: linear-gradient(0deg, #183b3c70, transparent 25%);
}
.playing .topbar .brand {
  font-size: 15px;
}
.playing .topbar .brand small {
  font-size: 8px;
}
#build-hint {
  position: absolute;
  bottom: 185px;
  left: 50%;
  transform: translateX(-50%);
  background: #293d30db;
  color: #fbf2d2;
  padding: 10px 15px;
  font-size: 10px;
  white-space: nowrap;
}
#toast {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translate(-50%, -15px);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  background: #f4f2da;
  color: #263c36;
  padding: 14px 22px;
  border: 1px solid #fff9;
  box-shadow: 4px 4px #243a3429;
  font-size: 12px;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  width: min(660px, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
  border: 2px solid #43543b;
  padding: 38px;
  background: #f4f0da;
  color: #2e402f;
  box-shadow: 8px 8px 0 #192c2a55;
}
dialog::backdrop {
  background: #17353178;
  backdrop-filter: blur(5px);
}
#intro {
  position: fixed;
  z-index: 12;
  width: min(330px, calc(100% - 32px));
  padding: 17px 18px 0;
  border: 2px solid #43543b;
  background: #f4f0da;
  color: #2e402f;
  box-shadow: inset 3px 3px #fff8, inset -3px -3px #25392920, 6px 6px #192c2a40;
}
#intro::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #f4f0da;
  transform: rotate(45deg);
}
#intro[data-side="right"]::before {
  left: -11px;
  top: calc(var(--tail-y) - 9px);
  border-left: 2px solid #43543b;
  border-bottom: 2px solid #43543b;
}
#intro[data-side="left"]::before {
  right: -11px;
  top: calc(var(--tail-y) - 9px);
  border-right: 2px solid #43543b;
  border-top: 2px solid #43543b;
}
#intro[data-side="above"]::before {
  bottom: -11px;
  left: calc(var(--tail-x) - 9px);
  border-right: 2px solid #43543b;
  border-bottom: 2px solid #43543b;
}
#intro[data-side="below"]::before {
  top: -11px;
  left: calc(var(--tail-x) - 9px);
  border-left: 2px solid #43543b;
  border-top: 2px solid #43543b;
}
#intro h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0;
  color: #446b3a;
  margin: 0 0 9px;
}
#intro p {
  font-size: 14px;
  line-height: 1.55;
  color: #2e402f;
  margin: 0;
}
.intro-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 15px;
}
#intro-timing {
  font-size: 11px;
  color: #69735d;
}
#intro .pixel-button {
  min-width: 0;
  padding: 11px 14px;
  font-size: 9px;
}
.intro-progress {
  height: 4px;
  overflow: hidden;
  background: #a9b59455;
  margin: 0 -18px;
}
.intro-progress span {
  display: block;
  height: 100%;
  background: #6f9146;
  transform: scaleX(0);
  transform-origin: left;
}
@media (max-width: 760px) {
  #intro {
    width: min(310px, calc(100% - 32px));
    padding: 14px 16px 0;
  }
  #intro p {
    font-size: 13px;
  }
  .intro-actions {
    margin: 10px 0 12px;
    gap: 8px;
  }
  #intro .pixel-button {
    font-size: 8px;
    gap: 10px;
  }
  .intro-progress {
    margin: 0 -16px;
  }
  .introducing .quest-card,
  .introducing #minimap-button {
    visibility: hidden;
  }
}
#close-panel {
  position: absolute;
  right: 15px;
  top: 13px;
  width: 30px;
  height: 30px;
  background: #e7e3cd;
  border: 1px solid #b6bea3;
  font-size: 24px;
}
dialog h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -1px;
  margin: 14px 25px 20px 0;
}
dialog p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6653;
}
dialog h3 {
  font-size: 16px;
  margin: 24px 0 12px;
}
.panel-kicker {
  font-family: var(--pixel);
  font-size: 9px;
  color: #818761;
}
.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 0;
}
.panel-links a,
.panel-links button {
  background: #516c40;
  color: #fffbe1;
  padding: 12px 17px;
  border: 1px solid #3a512d;
  text-decoration: none;
  font-size: 12px;
}
.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.project-card {
  padding: 15px;
  background: #fffbee;
  border: 1px solid #bcc3a755;
  text-decoration: none;
}
.project-card h3 {
  font-size: 15px;
  margin: 0 0 7px;
}
.project-card p {
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}
.project-card span {
  display: block;
  font-family: var(--pixel);
  font-size: 7px;
  margin-top: 15px;
  color: #849258;
}
.project-card:hover {
  border-color: #698248;
  background: #fffef8;
}
.map-places {
  display: grid;
  gap: 9px;
}
.map-place {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 13px 16px;
  border: 1px solid #b4bba2;
  background: #fffbe9;
}
.map-place > span {
  font-family: var(--pixel);
  font-size: 16px;
  color: #79945c;
}
.map-place div {
  flex: 1;
}
.map-place strong {
  display: block;
  font-size: 14px;
}
.map-place small {
  display: block;
  font-size: 11px;
  color: #7b826c;
  margin-top: 4px;
}
.map-place:hover {
  background: #e5edce;
}
.help-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px 20px;
  font-size: 12px;
  align-items: center;
}
.help-grid kbd {
  background: #fff9;
  font-size: 11px;
  text-align: center;
  padding: 7px;
}
.pause-buttons {
  display: grid;
  gap: 10px;
}
.pause-buttons button {
  justify-content: center;
}
.touch-controls {
  display: none;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: #fff;
  padding: 15px;
}
.skip-link:focus {
  top: 10px;
}
.no-js {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 20;
  padding: 20px;
  background: #fff;
}
.night {
  --ink: #e5ead8;
}
.night .vignette {
  background: linear-gradient(90deg, #24394899, transparent 60%);
}
.night .welcome p,
.night .text-link,
.night .overview-hint {
  color: #dae3d2;
}
.night .welcome h1 span {
  color: #b3d787;
}
.night .world-info,
.night .quest-card,
.night #minimap-button,
.night .landmark-label {
  color: #263c36;
}
@media (min-width: 1600px) {
  .welcome {
    left: 7%;
    top: 27%;
    width: 470px;
  }
  .welcome h1 {
    font-size: 52px;
  }
  .welcome p {
    font-size: 18px;
    max-width: 380px;
  }
  .welcome .welcome-secondary {
    font-size: 15px;
  }
}
@media (max-height: 740px) and (min-width: 761px) {
  .welcome {
    top: 20%;
  }
  .welcome h1 {
    font-size: 35px;
    margin: 16px 0;
  }
  .welcome p {
    font-size: 14px;
  }
  .welcome .welcome-secondary {
    margin-bottom: 18px;
  }
  .welcome-meta {
    margin-top: 22px;
  }
  .world-info {
    bottom: 95px;
  }
  .topbar {
    top: 22px;
  }
}
@media (max-width: 1000px) {
  .server-status {
    display: none;
  }
  .welcome {
    left: 35px;
    width: 310px;
  }
  .welcome h1 {
    font-size: 34px;
  }
  .welcome p {
    font-size: 14px;
    max-width: 280px;
  }
  .world-info {
    width: 230px;
    right: 25px;
    bottom: 90px;
    padding: 15px;
  }
  .world-info strong {
    font-size: 13px;
  }
  .world-facts {
    font-size: 6px;
  }
  .overview-hint {
    left: 44%;
    bottom: 100px;
  }
  .world-footer {
    left: 30px;
    right: 30px;
    font-size: 7px;
  }
  .brand {
    font-size: 16px;
  }
  .topbar {
    left: 30px;
    right: 30px;
  }
}
@media (max-width: 760px) {
  .topbar {
    left: 20px;
    right: 20px;
    top: 22px;
  }
  .brand {
    font-size: 12px;
    gap: 10px;
    letter-spacing: -0.7px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.2px;
    margin-top: 5px;
  }
  .grass-icon {
    width: 25px;
    height: 25px;
  }
  .topbar nav {
    gap: 6px;
  }
  .icon-button {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .sound-slash {
    top: 14px;
    left: 5px;
  }
  .menu-button {
    font-size: 0;
    padding: 8px 10px;
  }
  .menu-button span {
    font-size: 15px;
    margin: 0;
  }
  .welcome {
    left: 25px;
    top: 105px;
    width: calc(100% - 50px);
  }
  .welcome .eyebrow {
    font-size: 8px;
  }
  .welcome h1 {
    font-size: 34px;
    margin: 16px 0 12px;
  }
  .welcome p {
    font-size: 13px;
    max-width: 280px;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  .welcome .welcome-secondary {
    display: none;
  }
  .welcome .pixel-button {
    margin-top: 20px;
    width: 230px;
    min-width: 0;
    padding: 13px 18px;
    font-size: 10px;
  }
  .text-link {
    margin-top: 16px;
    font-size: 10px;
  }
  .welcome-meta {
    display: none;
  }
  .world-info {
    display: none;
  }
  .overview-hint {
    bottom: 67px;
    left: 50%;
    font-size: 8px;
    gap: 7px;
  }
  .world-footer {
    left: 20px;
    right: 20px;
    bottom: 22px;
    font-size: 6px;
    gap: 12px;
  }
  .world-footer > span {
    font-size: 0;
  }
  .world-footer > span:after {
    content: "JASKIRAT SINGH © 2026";
    font-size: 6px;
  }
  .landmark-label {
    font-size: 6px;
    padding: 7px 8px;
  }
  .quest-card {
    top: 85px;
    left: 18px;
    width: 188px;
    padding: 12px;
  }
  .quest-card .eyebrow {
    font-size: 6px;
  }
  .quest-card strong {
    font-size: 11px;
    margin: 7px 0 10px;
  }
  .quest-card small {
    font-size: 8px;
  }
  #minimap-button {
    right: 18px;
    top: 85px;
  }
  #minimap {
    width: 80px;
    height: 80px;
  }
  #minimap-button > span {
    font-size: 5px;
    margin: 5px 0;
  }
  #minimap-button kbd {
    display: none;
  }
  .hotbar {
    bottom: 62px;
    gap: 2px;
    padding: 3px;
  }
  .hotbar button {
    width: 39px;
    height: 40px;
  }
  .player-info {
    bottom: 115px;
    width: 300px;
  }
  .hearts {
    font-size: 16px;
  }
  #coordinates {
    font-size: 6px;
  }
  .controls-caption {
    display: none;
  }
  .playing .world-footer {
    display: none;
  }
  .playing .topbar .brand {
    font-size: 12px;
  }
  .playing .topbar .brand small {
    font-size: 6px;
  }
  #interact {
    bottom: 240px;
    font-size: 11px;
    padding: 10px;
    max-width: 90%;
    white-space: nowrap;
  }
  #build-hint {
    bottom: 220px;
    font-size: 8px;
    width: 80%;
    white-space: normal;
    text-align: center;
  }
  dialog {
    padding: 28px 22px;
  }
  dialog h2 {
    font-size: 22px;
  }
  .project-list {
    grid-template-columns: 1fr;
  }
  #toast {
    top: 200px;
    width: max-content;
    max-width: 90%;
    font-size: 11px;
    text-align: center;
  }
  .vignette {
    background: linear-gradient(180deg, #cce4dfcc, transparent 68%);
  }
  .night .vignette {
    background: linear-gradient(180deg, #243948b0, transparent 70%);
  }
}
@media (pointer: coarse), (max-width: 760px) {
  .touch-controls {
    display: flex;
    position: absolute;
    bottom: 135px;
    left: 20px;
    right: 20px;
    justify-content: space-between;
    pointer-events: none;
  }
  .touch-controls button {
    pointer-events: auto;
    touch-action: none;
    background: #f4f3dc99;
    border: 1px solid #fff9;
    width: 42px;
    height: 42px;
    font-size: 17px;
    user-select: none;
  }
  .dpad {
    display: grid;
    grid-template-columns: repeat(3, 42px);
    gap: 3px;
  }
  .dpad button:first-child {
    grid-column: 2;
  }
  .dpad button:nth-child(2) {
    grid-column: 1;
  }
  .touch-actions {
    display: grid;
    grid-template-columns: repeat(2, 45px);
    gap: 3px;
  }
  .touch-actions button {
    font-size: 11px;
  }
  .controls-caption {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 761px) {
  .world-info {
    bottom: 75px;
    width: 260px;
    padding: 16px 19px;
  }
  .world-info strong {
    font-size: 14px;
  }
  .world-info p {
    line-height: 1.5;
  }
  .world-facts {
    margin-top: 13px;
    padding-top: 10px;
  }
  .overview-hint {
    bottom: 78px;
    left: 52%;
  }
}
.playing .topbar {
  background: #f3f2daaf;
  padding: 10px 14px;
  top: 18px;
  left: 24px;
  right: 24px;
  border: 1px solid #fff5;
}
.night.playing .topbar {
  background: #263e4be0;
}
.night .server-status i {
  background: #a7cf77;
}

/* Larger UI text while keeping the world visible. */
.brand small {
  font-size: 10px;
}
.eyebrow {
  font-size: 11px;
}
.landmark-label {
  font-size: 9px;
}
.menu-button {
  font-size: 13px;
}
.text-link {
  font-size: 13px;
}
.welcome-secondary {
  font-size: 14px;
}
.quest-card small {
  font-size: 11px;
}
.controls-caption {
  font-size: 11px;
}
.controls-caption kbd {
  font-size: 10px;
}
#coordinates {
  font-size: 8px;
}
@media (min-width: 1001px) {
  .welcome h1 {
    font-size: 48px;
  }
  .welcome {
    width: 405px;
  }
  .world-info {
    right: 30px;
    bottom: 70px;
  }
}
@media (max-width: 760px) {
  .menu-button {
    font-size: 0;
  }
  .brand small {
    font-size: 6px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .landmark-label {
    font-size: 7px;
  }
  .text-link {
    font-size: 11px;
  }
  .quest-card small {
    font-size: 9px;
  }
  #coordinates {
    font-size: 7px;
  }
}

.welcome .role-line {
  font-size: 14px;
  margin-bottom: 10px;
}
.role-line a {
  text-underline-offset: 4px;
}
.welcome-meta {
  font-size: 7px;
  letter-spacing: 0.6px;
}
.welcome .welcome-secondary {
  margin-bottom: 20px;
}
.welcome-meta {
  margin-top: 28px;
}
@media (max-width: 760px) {
  .welcome .role-line {
    font-size: 12px;
  }
  .welcome h1 {
    margin-bottom: 14px;
  }
}
