:root {
  --paper: #f2f4ef;

  --ink: #111713;
  --muted: #6d776f;

  --mint: #72e6af;
  --mint-bright: #9af4cc;
  --mint-deep: #29ad73;

  --blue: #4d7dff;

  --road: #ccd4ce;
  --road-line: #b7c1ba;

  --building: #e4eae6;
}


/* --------------------------------------------------
   RESET
-------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;

  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;

  margin: 0;

  overflow: hidden;

  color: var(--ink);

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(255,255,255,1),
      rgba(255,255,255,0.54) 37%,
      transparent 62%
    ),
    linear-gradient(
      180deg,
      #fafbf8 0%,
      var(--paper) 100%
    );

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    Inter,
    "Segoe UI",
    system-ui,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}


/* --------------------------------------------------
   PAGE
-------------------------------------------------- */

.landing {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;
}

.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding:
    28px 22px 18px;
}


/* --------------------------------------------------
   HEADING
-------------------------------------------------- */

.hero-copy {
  position: relative;

  z-index: 30;

  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom:
    -12px;

  text-align: center;
}

.brand {
  margin-bottom:
    7px;

  color:
    rgba(17,23,19,0.40);

  font-size:
    10px;

  font-weight:
    780;

  letter-spacing:
    0.22em;

  text-transform:
    uppercase;
}

.hero-copy h1 {
  margin: 0;

  font-size:
    clamp(46px, 5vw, 78px);

  line-height:
    0.95;

  font-weight:
    710;

  letter-spacing:
    -0.058em;
}

.hero-copy p {
  margin:
    13px 0 0;

  color:
    rgba(17,23,19,0.40);

  font-size:
    11px;

  font-weight:
    620;

  letter-spacing:
    0.02em;
}


/* --------------------------------------------------
   PUBLIC NAVIGATION
-------------------------------------------------- */

.hero-public-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  margin-top:
    16px;
}

.hero-public-link {
  min-height:
    36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding:
    0 14px;

  border:
    1px solid rgba(17,23,19,0.10);

  border-radius:
    999px;

  color:
    rgba(17,23,19,0.72);

  background:
    rgba(255,255,255,0.72);

  box-shadow:
    0 8px 28px rgba(28,40,33,0.07);

  font-size:
    11px;

  font-weight:
    690;

  letter-spacing:
    -0.01em;

  text-decoration:
    none;

  -webkit-backdrop-filter:
    blur(14px);

  backdrop-filter:
    blur(14px);

  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.hero-public-link-primary {
  border-color:
    rgba(41,173,115,0.20);

  background:
    rgba(114,230,175,0.18);
}

.hero-public-link:hover,
.hero-public-link:focus-visible {
  transform:
    translateY(-1px);

  border-color:
    rgba(41,173,115,0.28);

  color:
    var(--ink);

  background:
    rgba(255,255,255,0.94);

  box-shadow:
    0 10px 32px rgba(28,40,33,0.10);
}

.hero-public-link:focus-visible {
  outline:
    3px solid rgba(77,125,255,0.18);

  outline-offset:
    3px;
}


/* --------------------------------------------------
   GAME STAGE
-------------------------------------------------- */

.game-stage {
  position: relative;

  width:
    min(1580px, 100vw);

  height:
    min(790px, 74vh);

  display: grid;
  place-items: center;

  perspective:
    1700px;

  touch-action:
    none;
}


/* --------------------------------------------------
   AMBIENT
-------------------------------------------------- */

.ambient {
  position: absolute;

  z-index: -1;

  border-radius:
    50%;

  pointer-events:
    none;

  filter:
    blur(105px);
}

.ambient-mint {
  width:
    560px;

  height:
    420px;

  left:
    7%;

  top:
    13%;

  background:
    rgba(114,230,175,0.17);
}

.ambient-blue {
  width:
    500px;

  height:
    390px;

  right:
    6%;

  bottom:
    7%;

  background:
    rgba(77,125,255,0.10);
}


/* --------------------------------------------------
   MAP SLAB
-------------------------------------------------- */

.map-shell {
  --rotate-x: 57deg;
  --rotate-y: 0deg;
  --rotate-z: -8deg;

  position: relative;

  width:
    min(1260px, 92vw);

  aspect-ratio:
    16 / 9;

  transform-style:
    preserve-3d;

  transform:
    perspective(1600px)
    rotateX(var(--rotate-x))
    rotateY(var(--rotate-y))
    rotateZ(var(--rotate-z));

  will-change:
    transform;
}

.map-shadow {
  position: absolute;

  left: 7%;
  right: 7%;

  bottom: -15%;

  height:
    30%;

  border-radius:
    50%;

  transform:
    translateZ(-100px);

  background:
    radial-gradient(
      ellipse at center,
      rgba(20,30,24,0.14),
      rgba(20,30,24,0.045) 48%,
      transparent 76%
    );

  filter:
    blur(31px);
}

.map-depth {
  position: absolute;

  inset: 1.5%;

  border:
    1px solid rgba(17,23,19,0.035);

  border-radius:
    46px;

  pointer-events:
    none;
}

.map-depth-back {
  transform:
    translateY(37px)
    translateZ(-72px);

  background:
    rgba(195,205,198,0.20);
}

.map-depth-mid {
  transform:
    translateY(19px)
    translateZ(-38px);

  background:
    rgba(226,233,228,0.48);
}


/* --------------------------------------------------
   MAP SCREEN
-------------------------------------------------- */

.map-screen {
  position: absolute;

  inset: 0;

  overflow: hidden;

  cursor:
    crosshair;

  border:
    1px solid rgba(17,23,19,0.075);

  border-radius:
    46px;

  background:
    #f5f8f5;

  box-shadow:
    0 34px 92px rgba(29,42,34,0.14),
    0 10px 28px rgba(29,42,34,0.065),
    inset 0 1px 0 rgba(255,255,255,0.98);
}

.city-map {
  display: block;

  width: 100%;
  height: 100%;

  background:
    #f5f8f5;
}

.screen-shine {
  position: absolute;

  inset: 0;

  z-index: 50;

  pointer-events:
    none;

  border-radius:
    inherit;

  background:
    linear-gradient(
      130deg,
      rgba(255,255,255,0.25),
      transparent 28%,
      transparent 73%,
      rgba(114,230,175,0.02)
    );
}


/* --------------------------------------------------
   CITY
-------------------------------------------------- */

.buildings rect {
  fill:
    url(#buildingSurface);

  stroke:
    rgba(17,23,19,0.06);

  stroke-width:
    2;

  filter:
    drop-shadow(
      0 2px 1px rgba(17,23,19,0.024)
    );
}

.road {
  fill:
    none;

  stroke:
    var(--road);

  stroke-width:
    72;

  stroke-linecap:
    square;

  stroke-linejoin:
    round;
}

.lane-markings {
  fill:
    none;

  stroke:
    var(--road-line);

  stroke-width:
    2;

  stroke-dasharray:
    18 23;

  opacity:
    0.52;
}


/* --------------------------------------------------
   PARKING
-------------------------------------------------- */

.bay {
  stroke:
    rgba(17,23,19,0.13);

  stroke-width:
    1.4;
}

.parking-slot.occupied
.bay {
  fill:
    #bec8c1;
}

.parking-slot.available
.bay {
  fill:
    url(#openSpot);

  stroke:
    rgba(41,173,115,0.38);

  filter:
    drop-shadow(
      0 0 8px rgba(114,230,175,0.48)
    );

  animation:
    openSpot 2.8s ease-in-out infinite;
}

.parked-car {
  fill:
    #8f9a93;

  opacity:
    0.78;
}

.parking-slot.available {
  cursor:
    default;
}


/* --------------------------------------------------
   PLAYER
-------------------------------------------------- */

.player {
  pointer-events:
    none;
}

.player-glow {
  fill:
    rgba(77,125,255,0.15);

  filter:
    url(#blueGlow);

  animation:
    playerGlow 2.6s ease-in-out infinite;
}

.player-ring {
  fill:
    rgba(77,125,255,0.065);

  stroke:
    rgba(77,125,255,0.22);

  stroke-width:
    2;

  animation:
    playerRing 2.6s ease-in-out infinite;
}

.player-arrow {
  fill:
    var(--blue);
}

.player-border {
  fill:
    #ffffff;
}

.player-dot {
  fill:
    var(--blue);

  filter:
    drop-shadow(
      0 4px 8px rgba(77,125,255,0.38)
    );
}

.map-label {
  fill:
    rgba(17,23,19,0.23);

  font-size:
    17px;

  font-weight:
    700;

  letter-spacing:
    0.16em;
}


/* --------------------------------------------------
   HINT
-------------------------------------------------- */

.game-hint {
  position: absolute;

  left: 50%;
  bottom: 3%;

  transform:
    translateX(-50%);

  color:
    rgba(17,23,19,0.32);

  font-size:
    10px;

  font-weight:
    680;

  letter-spacing:
    0.10em;

  text-transform:
    uppercase;

  white-space:
    nowrap;

  transition:
    opacity 250ms ease;
}

.game-hint.hidden {
  opacity:
    0;
}


.motion-control {
  position: absolute;

  left: 50%;
  bottom: 34px;

  z-index: 90;

  display: none;
  align-items: center;
  justify-content: center;

  min-height: 38px;

  padding:
    0 16px;

  transform:
    translateX(-50%);

  border:
    1px solid rgba(17,23,19,0.08);

  border-radius:
    999px;

  background:
    rgba(255,255,255,0.88);

  box-shadow:
    0 10px 30px rgba(28,40,33,0.09);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  color:
    var(--ink);

  font: inherit;

  font-size:
    10px;

  font-weight:
    720;

  letter-spacing:
    0.06em;

  text-transform:
    uppercase;

  touch-action:
    manipulation;

  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.motion-control.enabled {
  background:
    rgba(114,230,175,0.92);
}

.motion-control.fallback {
  color:
    var(--muted);
}

.motion-control.hidden {
  opacity:
    0;

  pointer-events:
    none;

  transform:
    translate(-50%, 6px);
}


/* --------------------------------------------------
   SUCCESS
-------------------------------------------------- */

.success-card {
  position: absolute;

  left: 50%;
  top: 50%;

  z-index: 80;

  width:
    min(380px, 88vw);

  padding:
    24px 26px 25px;

  transform:
    translate(-50%, -42%)
    scale(0.92);

  opacity:
    0;

  pointer-events:
    none;

  border:
    1px solid rgba(17,23,19,0.06);

  border-radius:
    28px;

  background:
    rgba(255,255,255,0.88);

  box-shadow:
    0 30px 90px rgba(28,40,33,0.16);

  backdrop-filter:
    blur(22px);

  -webkit-backdrop-filter:
    blur(22px);

  text-align:
    center;

  transition:
    opacity 350ms ease,
    transform 450ms cubic-bezier(
      0.2,
      0.8,
      0.2,
      1
    );
}

.success-card.visible {
  opacity:
    1;

  pointer-events:
    auto;

  transform:
    translate(-50%, -50%)
    scale(1);
}

.success-card span {
  display: block;

  margin-bottom:
    8px;

  color:
    var(--mint-deep);

  font-size:
    10px;

  font-weight:
    760;

  letter-spacing:
    0.15em;

  text-transform:
    uppercase;
}

.success-card strong {
  display: block;

  font-size:
    34px;

  line-height:
    0.98;

  font-weight:
    720;

  letter-spacing:
    -0.05em;
}

.success-card small {
  display: block;

  margin-top:
    13px;

  color:
    var(--muted);

  font-size:
    12px;

  font-weight:
    560;
}

.success-card em {
  display: block;

  margin-top:
    20px;

  color:
    rgba(17,23,19,0.30);

  font-size:
    9px;

  font-style:
    normal;

  font-weight:
    650;

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;
}


/* --------------------------------------------------
   ANIMATION
-------------------------------------------------- */

@keyframes openSpot {
  0%,
  100% {
    opacity:
      0.80;
  }

  50% {
    opacity:
      1;

    filter:
      drop-shadow(
        0 0 12px rgba(114,230,175,0.64)
      );
  }
}

@keyframes playerGlow {
  0%,
  100% {
    opacity:
      0.46;

    transform:
      scale(0.88);
  }

  50% {
    opacity:
      1;

    transform:
      scale(1.14);
  }
}

@keyframes playerRing {
  0%,
  100% {
    transform:
      scale(0.92);
  }

  50% {
    transform:
      scale(1.07);
  }
}


/* --------------------------------------------------
   TABLET
-------------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    padding:
      22px 14px
      max(
        10px,
        env(safe-area-inset-bottom)
      );
  }

  .hero-copy {
    flex:
      0 0 auto;

    margin-bottom:
      0;
  }

  .hero-copy h1 {
    font-size:
      clamp(38px, 8vw, 54px);
  }

  .game-stage {
    width:
      100vw;

    height:
      min(610px, 65dvh);
  }

  .map-shell {
    width:
      102vw;

    --rotate-x:
      56deg;

    --rotate-z:
      -5deg;
  }

  .motion-control {
    display:
      inline-flex;

    bottom:
      calc(
        30px
        + env(safe-area-inset-bottom)
      );
  }

  .game-hint {
    bottom:
      max(
        2px,
        env(safe-area-inset-bottom)
      );
  }
}


/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 560px) {
  .hero {
    justify-content:
      flex-start;

    padding:
      clamp(24px, 5dvh, 42px)
      10px
      max(
        8px,
        env(safe-area-inset-bottom)
      );
  }

  .hero-copy {
    margin-bottom:
      2px;
  }

  .brand {
    font-size:
      9px;
  }

  .hero-copy h1 {
    font-size:
      clamp(34px, 10vw, 44px);

    line-height:
      0.98;
  }

  .hero-copy p {
    margin-top:
      8px;

    font-size:
      10px;
  }

  .game-stage {
    flex:
      1 1 auto;

    width:
      100vw;

    height:
      auto;

    min-height:
      0;

    margin-top:
      0;
  }

  .map-shell {
    width:
      118vw;

    --rotate-x:
      55deg;

    --rotate-z:
      -4deg;

    transform-origin:
      center 44%;
  }

  .map-screen,
  .map-depth {
    border-radius:
      30px;
  }

  .motion-control {
    bottom:
      calc(
        34px
        + env(safe-area-inset-bottom)
      );

    min-height:
      40px;

    padding:
      0 15px;

    font-size:
      9px;
  }

  .game-hint {
    bottom:
      max(
        5px,
        env(safe-area-inset-bottom)
      );

    font-size:
      8px;
  }

  .success-card {
    width:
      min(330px, 86vw);

    padding:
      21px 22px 22px;
  }

  .success-card strong {
    font-size:
      29px;
  }
}


/* --------------------------------------------------
   PUBLIC INFORMATION
-------------------------------------------------- */

.site-footer {
  position: fixed;

  left:
    max(
      16px,
      env(safe-area-inset-left)
    );

  bottom:
    max(
      12px,
      env(safe-area-inset-bottom)
    );

  z-index: 110;

  display: flex;
  gap: 16px;

  font-size: 11px;
  font-weight: 650;
}

.site-footer a,
.document-page a {
  color:
    rgba(17,23,19,0.62);

  text-decoration:
    underline;

  text-decoration-color:
    rgba(17,23,19,0.18);

  text-underline-offset:
    3px;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.document-page a:hover,
.document-page a:focus-visible {
  color:
    var(--ink);

  text-decoration-color:
    var(--mint-deep);
}

.document-page {
  overflow:
    auto;
}

.document-shell {
  width:
    min(
      820px,
      calc(100% - 32px)
    );

  min-height:
    100vh;

  margin:
    0 auto;

  padding:
    32px 0 40px;
}

.document-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom:
    18px;

  color:
    var(--muted);

  font-size:
    12px;

  font-weight:
    680;
}

.document-card {
  padding:
    clamp(24px, 5vw, 52px);

  border:
    1px solid rgba(17,23,19,0.07);

  border-radius:
    30px;

  background:
    rgba(255,255,255,0.82);

  box-shadow:
    0 24px 80px rgba(28,40,33,0.08);
}

.document-header h1 {
  margin:
    0;

  font-size:
    clamp(38px, 7vw, 62px);

  line-height:
    0.98;

  letter-spacing:
    -0.05em;
}

.document-lead {
  max-width:
    650px;

  margin:
    20px 0 0;

  color:
    var(--muted);

  font-size:
    18px;

  line-height:
    1.6;
}

.document-meta {
  margin:
    14px 0 0;

  color:
    rgba(17,23,19,0.45);

  font-size:
    12px;
}

.document-section {
  padding-top:
    30px;

  margin-top:
    30px;

  border-top:
    1px solid rgba(17,23,19,0.08);
}

.document-section h2 {
  margin:
    0 0 12px;

  font-size:
    22px;

  letter-spacing:
    -0.025em;
}

.document-section p,
.document-list {
  color:
    #414a44;

  font-size:
    15px;

  line-height:
    1.7;
}

.document-list {
  padding-left:
    22px;
}

.document-list li + li {
  margin-top:
    10px;
}

.document-contact {
  display:
    inline-flex;

  margin:
    5px 0 8px;

  padding:
    11px 15px;

  border:
    1px solid rgba(41,173,115,0.20);

  border-radius:
    999px;

  background:
    rgba(114,230,175,0.16);

  font-weight:
    700;
}

.document-page .site-footer {
  position:
    static;

  justify-content:
    center;

  margin-top:
    22px;
}

@media (max-width: 560px) {
  .site-footer {
    gap:
      12px;

    font-size:
      10px;
  }

  .document-shell {
    width:
      min(
        100% - 20px,
        820px
      );

    padding:
      18px 0 28px;
  }

  .document-card {
    padding:
      24px 20px;

    border-radius:
      24px;
  }

  .document-lead {
    font-size:
      16px;
  }

  .hero-public-links {
    gap:
      7px;

    margin-top:
      11px;
  }

  .hero-public-link {
    min-height:
      32px;

    padding:
      0 11px;

    font-size:
      10px;
  }
}


/* --------------------------------------------------
   REDUCED MOTION
-------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .parking-slot.available .bay,
  .player-glow,
  .player-ring {
    animation:
      none !important;
  }
}
