:root {
  color-scheme: dark;
  --bg: #111318;
  --bg-soft: #191d24;
  --panel: #20252e;
  --panel-strong: #282f3a;
  --text: #f7f3ea;
  --muted: #b8c0ca;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #48a9ff;
  --green: #57d978;
  --yellow: #ffd166;
  --pink: #ff6b9a;
  --orange: #ff985f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(72, 169, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 14%, rgba(87, 217, 120, 0.13), transparent 26rem),
    linear-gradient(180deg, #111318 0%, #151920 48%, #101216 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 19, 24, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.game-topline,
.contact-band,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #081017;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  gap: clamp(12px, 3vw, 28px);
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px) 48px;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 22px;
  font-size: clamp(4rem, 12vw, 9.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  border: 0;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button {
  padding: 0 18px;
}

.button:hover,
.store-link:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--text);
  color: #111318;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hero-stage {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.phone-shell {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 0.68;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 42px;
  background: linear-gradient(150deg, #353d49, #15181f 58%);
  box-shadow: var(--shadow);
}

.phone-shell::before {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 96px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: #111318;
  content: "";
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  display: grid;
  height: 100%;
  overflow: hidden;
  place-items: center;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(72, 169, 255, 0.18), transparent 32%),
    linear-gradient(315deg, rgba(255, 209, 102, 0.18), transparent 36%),
    #171b22;
}

.featured-stack {
  position: relative;
  display: grid;
  width: 76%;
  aspect-ratio: 1;
  place-items: center;
}

.featured-stack img {
  position: absolute;
  width: 46%;
  border-radius: 24%;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.featured-stack img:nth-child(1) {
  top: 5%;
  left: 8%;
  transform: rotate(-8deg);
}

.featured-stack img:nth-child(2) {
  right: 5%;
  transform: rotate(7deg);
}

.featured-stack img:nth-child(3) {
  bottom: 6%;
  left: 28%;
  transform: rotate(-2deg);
}

.phone-screen p {
  position: absolute;
  right: 24px;
  bottom: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.game-orbit {
  position: absolute;
  inset: 0;
}

.tile {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #101216;
  font-weight: 950;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
  animation: float 5s ease-in-out infinite;
}

.arrow-tile {
  top: 18%;
  right: 12%;
  background: var(--green);
}

.ghost-tile {
  top: 62%;
  left: 12%;
  background: var(--pink);
  animation-delay: -1.3s;
}

.coin-tile {
  top: 34%;
  left: 8%;
  background: var(--yellow);
  animation-delay: -2.2s;
}

.dice-tile {
  right: 10%;
  bottom: 22%;
  background: var(--orange);
  animation-delay: -0.6s;
}

.block-tile {
  top: 12%;
  left: 42%;
  background: var(--blue);
  animation-delay: -3.1s;
}

.section {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.intro-band,
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.66fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.intro-band > *,
.contact-band > *,
.support-section > *,
.section-heading > *,
.game-card > * {
  min-width: 0;
}

.intro-band p:not(.eyebrow),
.contact-band p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel), rgba(32, 37, 46, 0.74));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.game-topline {
  gap: 14px;
  min-height: 96px;
  margin-bottom: 22px;
}

.game-icon {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 22%;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.game-genre {
  margin-bottom: 7px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.game-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: auto 0 18px;
}

.game-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.store-link {
  width: 100%;
  padding: 0 14px;
  background: #050609;
  color: #fff;
}

.support-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.support-copy {
  position: sticky;
  top: 110px;
}

.support-copy p:not(.eyebrow) {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.support-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-strong), rgba(32, 37, 46, 0.78));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 11, 15, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  padding: 13px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(72, 169, 255, 0.18);
}

::placeholder {
  color: rgba(184, 192, 202, 0.72);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-status[data-state="success"] {
  color: var(--green);
}

.form-status[data-state="error"] {
  color: var(--pink);
}

.contact-band {
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 0;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.legal-page {
  width: min(100%, 960px);
  margin: 0 auto;
}

.legal-page h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.legal-page section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.legal-page section:first-of-type {
  margin-top: 42px;
}

.legal-page h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.legal-page p {
  max-width: 78ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.legal-updated {
  color: var(--yellow) !important;
  font-weight: 800;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

@media (max-width: 920px) {
  .hero,
  .intro-band,
  .support-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .support-copy {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 460px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: flex-start;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.5rem, 18vw, 4.7rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.5rem);
  }

  .button,
  .store-link {
    width: 100%;
  }

  .phone-shell {
    width: min(100%, 310px);
  }

  .hero-stage {
    min-height: 410px;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-topline {
    align-items: flex-start;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
