@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-arrows-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+2190, U+2192;
}
@font-face {
  font-family: GamePixel;
  src: url("/assets/fonts/press-start-2p-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: GamePixel;
  src: url("/assets/fonts/press-start-2p-symbols.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+2190, U+2192, U+25B6, U+25C0, U+2605, U+2665;
}
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #173e43;
  background: #173e43;
  font-synthesis: none;
  --red: #e84531;
  --red-dark: #a32c24;
  --cloud: #fff9e7;
  --ink: #173e43;
  --gold: #ffd35e;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #c87c00;
  outline-offset: 4px;
}
::selection {
  background: #ffd35e;
  color: #173e43;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
kbd {
  font-family: inherit;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  padding: 4px 6px;
  font-weight: 400;
}
.hero {
  height: 100svh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: #173e43;
  color: var(--cloud);
}
.hero-picture {
  position: absolute;
  inset: 0;
  background: url("/assets/world.webp") center/cover no-repeat;
  animation: world-arrive 1.6s var(--ease) both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #102a35c2, transparent 78%),
    linear-gradient(0deg, #102a3570, transparent 32%);
}
.hero-copy {
  position: absolute;
  top: 24%;
  left: 6%;
  z-index: 4;
  pointer-events: none;
}
.hero-copy h1 {
  font-size: clamp(80px, 10.1vw, 164px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.075em;
  margin-left: -0.045em;
  animation: title-arrive 0.9s var(--ease) both;
}
.hero-invitation {
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.025em;
  margin-top: 25px;
  color: #fff9e7e6;
  animation: invitation-arrive 1.05s var(--ease) both;
}
.play-button {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 31px;
  min-width: 225px;
  padding: 19px 23px;
  border: 1px solid #ff8d70;
  border-radius: 10px;
  background: var(--red);
  color: var(--cloud);
  box-shadow:
    0 6px 0 var(--red-dark),
    0 14px 30px #112b3433,
    inset 0 1px #ffad8c;
  font-size: 16px;
  font-weight: 700;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  animation: invitation-arrive 1.2s var(--ease) both;
}
.play-triangle {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff9e7;
}
.start-key {
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid #ffb39780;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 400;
  color: #ffe6d2;
}
.play-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 var(--red-dark),
    0 18px 35px #112b3433,
    inset 0 1px #ffad8c;
}
.play-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--red-dark);
}
.hero-bottom {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: max(30px, env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: #fff9e7cf;
  font-size: 12px;
}
.desktop-start-help {
  display: flex;
  align-items: center;
  gap: 7px;
}
.desktop-start-help > span {
  width: 16px;
}
.phone-start-help {
  display: none;
}
.hero-resume {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  border-bottom: 1px solid #fff9e75c;
  padding: 9px 0;
}
.hero-resume:hover {
  border-color: #fff9e7;
}
.hero-resume span {
  font-size: 20px;
  line-height: 1;
}
.world-stage.hero-world {
  position: absolute;
  top: 24svh;
  right: 1%;
  width: 43%;
  height: 70svh;
  max-height: 800px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.world-stage.hero-world.loaded {
  opacity: 1;
}
.world-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.world-stage.game-world {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--play-top, 72px);
  bottom: 0;
  z-index: 10;
  width: 100%;
  pointer-events: auto;
  background: #b8deea;
}
.world-stage:not(.hero-world):not(.game-world) {
  display: none;
}
.loading-toast {
  position: fixed;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cloud);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
  padding: 15px 21px;
  border-radius: 8px;
  box-shadow: 0 5px 25px #173e4333;
}
.loading-toast > span {
  width: 14px;
  height: 14px;
  border: 2px solid #c6d4c4;
  border-top-color: #e84531;
  border-radius: 50%;
  animation: loading-turn 0.8s linear infinite;
}
.no-script {
  position: fixed;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: var(--cloud);
  padding: 16px;
  z-index: 100;
  font-size: 12px;
}
.no-script a {
  text-decoration: underline;
}
@keyframes title-arrive {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes invitation-arrive {
  0%,
  25% {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes world-arrive {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}
@keyframes loading-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  .hero-copy {
    left: 7%;
    top: 18%;
    right: 7%;
  }
  .hero-copy h1 {
    font-size: clamp(70px, 18vw, 120px);
  }
  .hero-picture {
    background-position: 59% center;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #102a35c2, #102a3522),
      linear-gradient(0deg, #102a3588, transparent 40%);
  }
  .hero-invitation {
    font-size: 20px;
    margin-top: 24px;
  }
  .play-button {
    margin-top: 27px;
    padding: 17px 20px;
    min-width: 195px;
    font-size: 15px;
  }
  .start-key {
    display: none;
  }
  .hero-bottom {
    left: 7%;
    right: 7%;
    font-size: 10px;
    bottom: max(22px, env(safe-area-inset-bottom));
  }
  .hero-resume {
    font-size: 12px;
  }
  .desktop-start-help {
    display: none;
  }
  .phone-start-help {
    display: block;
  }
  .world-stage.hero-world {
    top: 48svh;
    right: -3%;
    width: 63%;
    height: 45svh;
  }
}
@media (max-width: 370px) and (orientation: portrait) {
  .hero-copy {
    top: 15%;
  }
  .hero-copy h1 {
    font-size: 66px;
  }
  .hero-invitation {
    font-size: 18px;
    margin-top: 20px;
  }
  .play-button {
    margin-top: 23px;
  }
  .world-stage.hero-world {
    width: 66%;
    right: -5%;
    top: 48svh;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  .hero-copy {
    top: 15%;
    left: 7%;
  }
  .hero-copy h1 {
    font-size: clamp(56px, 8vw, 85px);
  }
  .hero-invitation {
    font-size: 17px;
    margin-top: 15px;
  }
  .play-button {
    margin-top: 19px;
    padding: 12px 18px;
    min-width: 195px;
    font-size: 14px;
  }
  .hero-bottom {
    bottom: 18px;
    font-size: 10px;
  }
  .world-stage.hero-world {
    top: 13svh;
    height: 80svh;
    width: 44%;
  }
}
@media (pointer: coarse) {
  .desktop-start-help {
    display: none;
  }
  .phone-start-help {
    display: block;
  }
  .start-key {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
