:root {
  --background: #070914;
  --foreground: #ffffff;
  --card: #0d1126;
  --card-foreground: #ffffff;
  --popover: #0d1126;
  --popover-foreground: #ffffff;
  --primary: #fbba01;
  --primary-foreground: #08080c;
  --secondary: #171a35;
  --secondary-foreground: #ffffff;
  --muted: #171a35;
  --muted-foreground: #bfc7df;
  --accent: #242b56;
  --accent-foreground: #ffffff;
  --destructive: #e60303;
  --border: #fbba01;
  --input: #59617d;
  --ring: #ffffff;
  --radius: 0.75rem;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --font-sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  min-height: 100%;
  background: #070914;
}

body {
  margin: 0;
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a { -webkit-tap-highlight-color: transparent; }

.site-shell {
  isolation: isolate;
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow-x: hidden;
  background: #070914;
}

.sky,
.colour-wash {
  position: fixed;
  inset: -3rem;
  z-index: -3;
  pointer-events: none;
}

.sky {
  background: url("background-dusk.png") center / cover no-repeat;
  filter: blur(11px) saturate(1.22) contrast(1.04);
  transform: scale(1.1);
}

.colour-wash {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 35%, rgba(24, 72, 188, 0.02) 0 23%, rgba(4, 7, 22, 0.38) 62%, rgba(1, 2, 10, 0.84) 100%),
    linear-gradient(180deg, rgba(5, 10, 46, 0.08), rgba(4, 5, 19, 0.5) 72%, rgba(2, 3, 10, 0.9));
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100svh - 4.2rem);
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 2vh, 1.4rem) 1rem clamp(3rem, 6vh, 4.5rem);
}

.banner-window {
  position: relative;
  display: grid;
  width: min(100vw, 82rem);
  place-items: center;
  overflow: visible;
}

.banner-composition {
  position: relative;
  width: min(100vw, 78rem);
  aspect-ratio: 1024 / 500;
  filter: drop-shadow(0 12px 3px rgba(0, 0, 0, 0.42));
  user-select: none;
}

.banner-character,
.banner-logo {
  position: absolute;
}

.banner-character img,
.banner-logo {
  display: block;
  width: 100%;
  height: auto;
}

.banner-red { z-index: 2; top: 2%; left: 22%; width: 23%; }
.banner-purple { z-index: 2; top: 3%; left: 58%; width: 23%; }
.banner-yellow { z-index: 3; top: 26%; left: 17%; width: 23%; }
.banner-blue { z-index: 3; top: 25%; left: 63%; width: 23%; }
.banner-light-blue { z-index: 4; top: 48%; left: 12%; width: 23%; }
.banner-green { z-index: 4; top: 50%; left: 67%; width: 23%; }
.banner-hero { z-index: 4; top: 3%; left: 33.5%; width: 34%; }

.banner-logo {
  z-index: 6;
  top: 47%;
  left: 30.5%;
  width: 39%;
}

.float-one { animation: float-one 5.8s ease-in-out infinite; }
.float-two { animation: float-two 6.4s ease-in-out -2.1s infinite; }
.float-three { animation: float-one 6.8s ease-in-out -3.4s infinite; }
.float-four { animation: float-two 5.5s ease-in-out -1.1s infinite; }

.tagline,
.store-heading,
.dialog-title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: 0.055em;
}

.tagline {
  position: relative;
  z-index: 2;
  margin: clamp(-1rem, -1.6vw, -0.35rem) 0 0;
  color: #fbdf02;
  font-size: clamp(1.45rem, 3vw, 2.65rem);
  line-height: 1;
  text-align: center;
  text-shadow:
    0 4px 0 #740000,
    -2px -2px 0 #070911,
    2px -2px 0 #070911,
    -2px 2px 0 #070911,
    2px 2px 0 #070911,
    0 0 15px rgba(251, 186, 1, 0.4);
}

.trailer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.34rem;
  margin-top: clamp(1rem, 2.2vh, 1.4rem);
  padding: 0.42rem 0.8rem 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.7rem;
  background: rgba(5, 7, 20, 0.76);
  color: #ffffff;
  font-size: clamp(0.78rem, 1.2vw, 0.98rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.youtube-logo {
  display: block;
  width: clamp(5.8rem, 9vw, 7rem);
  height: auto;
}

.trailer-link:hover,
.trailer-link:focus-visible {
  border-color: #ffffff;
  background: rgba(16, 19, 43, 0.95);
  transform: translateY(-2px);
}

.store-panel {
  width: min(100%, 31rem);
  margin-top: clamp(1rem, 2.5vh, 1.6rem);
}

.store-heading {
  margin: 0 0 0.62rem;
  color: #ffffff;
  font-size: clamp(0.92rem, 1.55vw, 1.18rem);
  text-align: center;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.8);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 1vw, 0.85rem);
}

.store-button {
  position: relative;
  display: grid;
  min-width: 0;
  width: 9rem;
  min-height: 3.45rem;
  place-items: center;
  justify-self: center;
  padding: 0 0 0.82rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  box-shadow: none;
  transition: filter 140ms ease, transform 140ms ease;
}

.store-button img {
  display: block;
  width: 9rem;
  height: 2.65rem;
  object-fit: contain;
}

.soon-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.2rem;
  border-radius: 0 0 0.4rem 0.4rem;
  background: linear-gradient(90deg, #a90000, #e60303, #a90000);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1;
  text-align: center;
}

.store-button:hover,
.store-button:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.store-button:active,
.trailer-link:active { transform: translateY(1px); }

.game-copy {
  width: min(100%, 43rem);
  margin-top: clamp(1.4rem, 3.5vh, 2.4rem);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9);
}

.game-copy p { margin: 0; }
.game-copy p + p { margin-top: 0.7rem; }

.game-copy .copy-signoff {
  color: #fbdf02;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  font-size: 1.3em;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 4.2rem;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(2, 3, 12, 0.74);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 2px 1px #000000;
  text-transform: uppercase;
}

.developer-logo-link img {
  display: block;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.25rem;
  object-fit: cover;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.34rem;
  text-align: left;
}

.developer-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.developer-link:hover,
.developer-link:focus-visible { color: #fbdf02; }
.footer-copy p { margin: 0; }

.coming-soon-dialog {
  width: min(28rem, calc(100% - 2rem));
  padding: 1.5rem;
  border: 4px solid #fbba01;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(24, 30, 67, 0.99), rgba(7, 9, 27, 0.99));
  color: #ffffff;
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.72), 0 0 24px rgba(251, 186, 1, 0.22);
}

.coming-soon-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.dialog-close:hover,
.dialog-close:focus-visible { color: #fbdf02; }

.coming-soon-dialog button[data-slot="dialog-close"] { color: #ffffff; }

.dialog-title {
  color: #fbdf02;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1;
  text-align: center;
  text-shadow: 0 4px 0 #740000, -2px -2px 0 #05060c, 2px 2px 0 #05060c;
}

.dialog-copy {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

@keyframes float-one {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -7px, 0) scale(1.012); }
}

@keyframes float-two {
  0%, 100% { transform: translate3d(0, -3px, 0) scale(1.006); }
  50% { transform: translate3d(0, 5px, 0) scale(0.994); }
}

@media (max-width: 820px) and (orientation: portrait) {
  .hero {
    justify-content: flex-start;
    min-height: calc(100svh - 4.2rem);
    padding-top: max(0.35rem, env(safe-area-inset-top));
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
  }

  .banner-window {
    width: 100vw;
    height: min(72vw, 29.5rem);
  }

  .banner-composition {
    position: absolute;
    left: 50%;
    width: min(132vw, 60.5rem);
    transform: translateX(-50%);
  }

  .banner-red { left: 23%; }
  .banner-purple { left: 58%; }
  .banner-yellow { left: 17%; }
  .banner-blue { left: 63%; }
  .banner-light-blue { left: 12%; }
  .banner-green { left: 65%; }

  .tagline { margin-top: -0.2rem; }

  .trailer-link { margin-top: 0.7rem; }
  .store-panel { margin-top: 0.75rem; }

  .store-grid {
    width: min(100%, 22rem);
    margin-inline: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .store-button {
    width: 100%;
    min-height: 2.75rem;
    padding-bottom: 0.72rem;
  }

  .store-button img { width: 100%; height: 2.1rem; }

  .game-copy {
    margin-top: 1rem;
    line-height: 1.45;
  }

  .game-copy p + p { margin-top: 0.5rem; }

  footer {
    min-height: 3.75rem;
    padding-block: 0.38rem;
  }

  .developer-logo-link img {
    width: 2.85rem;
    height: 2.85rem;
  }
}

@media (max-height: 740px) and (orientation: landscape) {
  .hero {
    padding-top: 0.45rem;
    padding-bottom: 2.4rem;
  }

  .banner-composition { width: min(64vw, 56rem); }
  .tagline { font-size: clamp(1.25rem, 3.5vh, 1.8rem); }
  .trailer-link { margin-top: 0.55rem; padding-block: 0.4rem 0.5rem; }
  .youtube-logo { width: 5.9rem; }
  .store-panel { width: min(100%, 27rem); margin-top: 0.55rem; }
  .store-heading { margin-bottom: 0.38rem; }
  .store-button { width: 8rem; min-height: 3.1rem; }
  .store-button img { width: 8rem; height: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
