@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/Roboto-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/Roboto-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/Roboto-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Press Start 2P";
  src: url("assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-pixel: "Press Start 2P", monospace;
  --font-ui: "Roboto", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #0d0d0d;
  font-family: var(--font-ui);
}

.site-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
}

.menu-stage {
  position: relative;
  width: min(100vw, calc(100vh * 1365 / 768));
  aspect-ratio: 1365 / 768;
  overflow: hidden;
  isolation: isolate;
  background: #6f4b34;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.62), 0 28px 60px rgba(0, 0, 0, 0.45);
}

.menu-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18));
}

.terrain-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.title-wrap,
.splash-text,
.download-text,
.read-link,
.mc-button {
  position: absolute;
  z-index: 2;
}

.title-wrap {
  top: 10%;
  left: 50%;
  width: 80%;
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
}

.menu-title,
.download-text {
  -webkit-text-stroke: 8px #000;
  paint-order: stroke fill;
}

.menu-title {
  margin: 0;
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 900;
  text-transform: lowercase;
  color: #f02a06;
  text-align: center;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-shadow:
    6px 0 0 #000,
    -6px 0 0 #000,
    0 6px 0 #000,
    0 -6px 0 #000,
    5px 5px 0 #000,
    -5px 5px 0 #000,
    5px -5px 0 #000,
    -5px -5px 0 #000,
    0 0 24px rgba(255, 54, 0, 0.24);
  animation: title-spin 1.8s linear infinite;
  transform-origin: center;
}

.splash-text {
  top: 28%;
  font-family: var(--font-pixel);
  left: 50%;
  margin: 0;
  transform: translateX(-50%) rotate(-14deg);
  transform-origin: center;
  text-align: center;
  white-space: nowrap;
  color: #ffe728;
  font-size: clamp(1.15rem, 2.15vw, 2.45rem);
  line-height: 1.15;
  text-shadow:
    4px 0 0 #000,
    -4px 0 0 #000,
    0 4px 0 #000,
    0 -4px 0 #000,
    3px 3px 0 #000,
    -3px 3px 0 #000,
    3px -3px 0 #000,
    -3px -3px 0 #000;
  animation: splash-pulse 0.6s ease-in-out infinite;
}

.download-text {
  top: 41%;
  font-family: var(--font-ui);
  font-weight: 900;
  letter-spacing: 0.03em;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: #00efff;
  text-align: center;
  font-size: clamp(3rem, 5.7vw, 6.2rem);
  line-height: 1;
  text-shadow:
    6px 0 0 #000,
    -6px 0 0 #000,
    0 6px 0 #000,
    0 -6px 0 #000,
    5px 5px 0 #000,
    -5px 5px 0 #000,
    5px -5px 0 #000,
    -5px -5px 0 #000,
    0 0 26px rgba(0, 255, 255, 0.18);
}

.read-link {
  top: 40.7%;
  right: 2.7%;
  color: #69b8ff;
  font-family: var(--font-ui);
  font-size: clamp(0.55rem, 0.75vw, 0.9rem);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85);
  transition: transform 120ms ease, color 120ms ease;
}

.read-link:hover,
.read-link:focus-visible {
  color: #95cfff;
  transform: translateY(-1px);
  outline: none;
}

.read-link:active {
  transform: translateY(1px);
}

.mc-button {
  left: 50%;
  top: 67%;
  width: min(70%, 960px);
  padding: 2.25rem 1rem 1.7rem;
  transform: translateX(-50%);
  border: 6px solid #111;
  background: linear-gradient(180deg, #dadada 0%, #cfcfcf 48%, #b0b0b0 100%);
  color: #000;
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 4.15vw, 4.35rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
  user-select: none;
  box-shadow:
    inset 6px 6px 0 #f2f2f2,
    inset -6px -8px 0 #686868,
    0 10px 0 rgba(0, 0, 0, 0.46);
  transition: filter 120ms ease, transform 75ms linear, box-shadow 75ms linear, background 75ms linear;
}

.mc-button:hover {
  filter: brightness(1.04);
}

.mc-button:focus-visible {
  outline: 4px solid #fff05a;
  outline-offset: 10px;
}

.mc-button.is-pressed {
  transform: translateX(-50%) translateY(8px);
  background: linear-gradient(180deg, #bdbdbd 0%, #adadad 100%);
  box-shadow:
    inset 6px 6px 0 #999,
    inset -6px -6px 0 #efefef,
    0 2px 0 rgba(0, 0, 0, 0.42);
}

@keyframes splash-pulse {
  0% {
    transform: translateX(-50%) rotate(-14deg) scale(0.92);
  }
  50% {
    transform: translateX(-50%) rotate(-11deg) scale(1.08);
  }
  100% {
    transform: translateX(-50%) rotate(-14deg) scale(0.96);
  }
}

@keyframes title-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .menu-title,
  .download-text {
    -webkit-text-stroke-width: 5px;
  }

  .menu-title {
    text-shadow:
      4px 0 0 #000,
      -4px 0 0 #000,
      0 4px 0 #000,
      0 -4px 0 #000,
      3px 3px 0 #000,
      -3px 3px 0 #000,
      3px -3px 0 #000,
      -3px -3px 0 #000;
  }

  .download-text {
    text-shadow:
      4px 0 0 #000,
      -4px 0 0 #000,
      0 4px 0 #000,
      0 -4px 0 #000,
      3px 3px 0 #000,
      -3px 3px 0 #000,
      3px -3px 0 #000,
      -3px -3px 0 #000;
  }

  .mc-button {
    border-width: 4px;
    box-shadow:
      inset 4px 4px 0 #f2f2f2,
      inset -4px -6px 0 #686868,
      0 8px 0 rgba(0, 0, 0, 0.46);
  }

  .mc-button.is-pressed {
    box-shadow:
      inset 4px 4px 0 #999,
      inset -4px -4px 0 #efefef,
      0 2px 0 rgba(0, 0, 0, 0.42);
  }
}
