:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(13, 18, 24, 0.82);
  --panel-strong: rgba(18, 24, 32, 0.95);
  --line: rgba(115, 226, 232, 0.22);
  --line-strong: rgba(255, 181, 71, 0.46);
  --text: #f3f7f8;
  --muted: #a8b7bf;
  --gold: #ffb547;
  --cyan: #4de8f3;
  --rose: #ff5370;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 14%, rgba(77, 232, 243, 0.12), transparent 26rem),
    radial-gradient(circle at 78% 8%, rgba(255, 181, 71, 0.13), transparent 24rem),
    linear-gradient(135deg, #08090d 0%, #0c1118 48%, #08090d 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(77, 232, 243, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 232, 243, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255, 181, 71, 0.08) 46.2% 46.6%, transparent 46.8%),
    linear-gradient(65deg, transparent 0 58%, rgba(77, 232, 243, 0.07) 58.2% 58.5%, transparent 58.8%);
  opacity: 0.85;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.site-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 12, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(255, 181, 71, 0.18), rgba(77, 232, 243, 0.06));
  color: #ffd885;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 12px 16px;
  border: 1px solid transparent;
  color: #d9e5ea;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  background: rgba(77, 232, 243, 0.07);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 52px;
  min-height: calc(100vh - 110px);
  padding: 76px 0 72px;
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.1;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  border-color: rgba(255, 181, 71, 0.7);
  background: linear-gradient(135deg, #ffb547, #ffcf78 52%, #4de8f3);
  color: #081016;
  box-shadow: 0 16px 40px rgba(255, 181, 71, 0.22);
}

.btn-secondary,
.btn-ghost {
  background: rgba(9, 16, 22, 0.78);
  color: #eaf5f7;
}

.btn-secondary:hover,
.btn-ghost:hover,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible {
  border-color: rgba(77, 232, 243, 0.62);
  background: rgba(77, 232, 243, 0.1);
}

.hero-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(to bottom, rgba(5, 8, 12, 0.05), rgba(5, 8, 12, 0.54) 68%, rgba(5, 8, 12, 0.94)),
    linear-gradient(135deg, rgba(255, 181, 71, 0.28), transparent 42%);
}

.hero-card img,
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-card img {
  position: absolute;
  inset: 0;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.05);
}

.hero-card-glow {
  position: absolute;
  right: 10%;
  bottom: 18%;
  z-index: 2;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(77, 232, 243, 0.48);
  box-shadow: 0 0 42px rgba(77, 232, 243, 0.22), inset 0 0 36px rgba(255, 181, 71, 0.12);
  transform: rotate(45deg);
}

.hero-card-info {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card-info strong,
.hero-card-info small {
  display: block;
}

.hero-card-info strong {
  font-size: 1.28rem;
}

.hero-card-info small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.games-section {
  padding: 28px 0 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.game-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 260px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.game-thumb {
  position: relative;
  min-height: 260px;
  background: #0b1016;
}

.game-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, rgba(255, 181, 71, 0.2), transparent 44%, rgba(77, 232, 243, 0.18));
}

.game-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(77, 232, 243, 0.8);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.game-content p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 840px) {
  .site-shell {
    width: 100%;
    padding: 0 14px;
  }

  .topbar {
    top: 10px;
    min-height: 64px;
    margin-top: 10px;
  }

  .nav-links a {
    padding: 11px 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 54px 0 46px;
    text-align: center;
  }

  .hero-copy,
  .hero-text {
    max-width: none;
  }

  .hero-text {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .game-actions {
    justify-content: center;
  }

  .hero-card {
    min-height: 300px;
  }

  .game-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: 100%;
    padding: 0 10px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nav-links a,
  .btn {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.65rem, 17vw, 4.2rem);
  }

  .hero-text {
    max-width: 29ch;
  }

  .hero-actions,
  .game-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 240px;
  }

  .hero-card-info {
    align-items: start;
    flex-direction: column;
  }

  .game-thumb {
    min-height: 210px;
  }

  .game-content {
    padding: 22px;
  }
}
