html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #07030f;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: 'Archivo', system-ui, sans-serif;
  color: #ffc22e;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 34%, rgba(110, 34, 180, 0.30) 0%, rgba(20, 6, 38, 0) 70%),
    radial-gradient(90% 40% at 50% 100%, rgba(255, 46, 76, 0.10) 0%, rgba(7, 3, 15, 0) 65%),
    #07030f;
}

#app canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 90px rgba(120, 42, 220, 0.38), 0 0 26px rgba(255, 46, 76, 0.12);
}

@media (min-width: 720px) and (min-height: 620px) {
  #app {
    background:
      radial-gradient(70% 55% at 50% 34%, rgba(110, 34, 180, 0.30) 0%, rgba(20, 6, 38, 0) 70%),
      radial-gradient(90% 40% at 50% 100%, rgba(255, 46, 76, 0.12) 0%, rgba(7, 3, 15, 0) 65%),
      linear-gradient(180deg, rgba(7, 3, 15, 0.64) 0%, rgba(7, 3, 15, 0.84) 58%, rgba(7, 3, 15, 0.95) 100%),
      url('../assets/skyline_hero.webp') center center / cover no-repeat,
      #07030f;
  }
  #app canvas {
    border-radius: 22px;
    outline: 1px solid rgba(255, 194, 46, 0.30);
    box-shadow:
      0 0 0 6px #0d0718,
      0 0 0 8px rgba(255, 194, 46, 0.20),
      0 0 0 12px rgba(255, 46, 76, 0.10),
      0 30px 120px rgba(0, 0, 0, 0.78),
      0 0 160px rgba(130, 40, 220, 0.40);
  }
}

#app::before,
#app::after {
  display: none;
}

@media (min-width: 1040px) {
  #app::before {
    display: block;
    content: '334';
    position: fixed;
    left: 5vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-family: 'Alfa Slab One', serif;
    font-size: clamp(90px, 14vw, 220px);
    line-height: 1;
    color: rgba(255, 194, 46, 0.08);
    text-shadow: 0 0 70px rgba(47, 184, 255, 0.22);
    pointer-events: none;
    -webkit-text-stroke: 1px rgba(255, 194, 46, 0.10);
  }
  #app::after {
    display: block;
    content: 'QUICK CLASH\A SOUTHERN\A STREET ARCADE';
    white-space: pre;
    position: fixed;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-family: 'Alfa Slab One', serif;
    font-size: clamp(11px, 1.15vw, 17px);
    line-height: 2.1;
    letter-spacing: 2px;
    text-align: right;
    color: rgba(255, 194, 46, 0.42);
    text-shadow: 0 0 24px rgba(255, 46, 76, 0.25);
    pointer-events: none;
  }
}

#scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0px,
    rgba(0, 0, 0, 0.10) 1px,
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0.16;
  mix-blend-mode: normal;
}

#boot {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(60% 45% at 50% 44%, #2a0b4a 0%, #07030f 72%);
  transition: opacity 0.45s ease;
}

#boot.gone {
  opacity: 0;
  pointer-events: none;
}

#boot img {
  width: min(58vw, 300px);
  filter: drop-shadow(0 0 30px rgba(47, 184, 255, 0.45));
  animation: bootpulse 1.6s ease-in-out infinite;
}

#boot p {
  margin: 0;
  font-family: 'Alfa Slab One', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: #ffc22e;
  opacity: 0.8;
}

.boot-bar {
  width: min(46vw, 210px);
  height: 3px;
  background: #241032;
  border-radius: 2px;
  overflow: hidden;
}

.boot-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff2e4c, #ffc22e);
  animation: bootslide 1.1s ease-in-out infinite;
}

.nojs {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #ffc22e;
  background: #07030f;
  font-family: 'Alfa Slab One', serif;
}

@keyframes bootpulse {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.035); opacity: 1; }
}

@keyframes bootslide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}
