@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Baloo+2:wght@600;700;800&display=swap');

:root {
  --bg: #07111f;
  --bg-top: #102346;
  --panel: rgba(8, 15, 33, 0.76);
  --panel-strong: rgba(10, 19, 40, 0.92);
  --line: rgba(149, 204, 255, 0.2);
  --text: #f5fbff;
  --muted: #a8bfd7;
  --accent: #67f3ff;
  --accent-strong: #2dd4ff;
  --hot: #ff6b9d;
  --sun: #ffd166;
  --shadow: 0 26px 60px rgba(1, 7, 18, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Fredoka', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 157, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(103, 243, 255, 0.16), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 55%, #040914 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

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

button {
  font: inherit;
}

.page {
  position: relative;
  opacity: 1;
  transition: opacity 220ms ease;
}

.page.is-fading {
  opacity: 0;
}

.arcade-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px);
  background-size: 22px 22px, 28px 28px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.brand,
.toplink {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(9, 15, 30, 0.52);
  padding: 10px 16px;
  backdrop-filter: blur(12px);
}

.brand {
  font-family: 'Baloo 2', cursive;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.toplink {
  color: var(--muted);
}

.hero {
  padding-bottom: 54px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 28px 0 24px;
}

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

.eyebrow,
.feature-kicker,
.meta-label,
.card-rank {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--accent);
}

.hero-title,
.section-heading h2,
.cta-card h2,
.feature-heading h2 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  line-height: 0.94;
}

.hero-title {
  font-size: clamp(3.7rem, 10vw, 7rem);
  max-width: 10ch;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.hero-subtitle,
.section-copy,
.value-card p,
.feature-tagline,
.card-tagline {
  color: var(--muted);
  line-height: 1.6;
}

.hero-subtitle {
  max-width: 38rem;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.arcade-button,
.mini-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 14px 22px;
  min-height: 52px;
  font-weight: 700;
  color: var(--text);
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease, background 220ms ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.arcade-button:hover,
.mini-launch:hover,
.arcade-button:focus-visible,
.mini-launch:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
}

.arcade-button:active,
.mini-launch:active,
.game-card:active {
  transform: translateY(3px) scale(0.985);
}

.arcade-button-primary {
  background: linear-gradient(135deg, #ff7a3c 0%, #ff4fa2 100%);
}

.arcade-button-secondary,
.mini-launch {
  background: linear-gradient(135deg, rgba(23, 39, 72, 0.92), rgba(14, 26, 53, 0.92));
  border: 1px solid rgba(103, 243, 255, 0.24);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(7, 14, 29, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.hero-feature {
  position: relative;
  min-height: 540px;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  animation: bob 5.2s ease-in-out infinite;
}

.hero-orb-a {
  width: 132px;
  height: 132px;
  top: 28px;
  right: 12px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.9) 0%, rgba(255, 209, 102, 0.12) 65%, transparent 72%);
}

.hero-orb-b {
  width: 88px;
  height: 88px;
  left: 10px;
  bottom: 90px;
  background: radial-gradient(circle, rgba(103, 243, 255, 0.85) 0%, rgba(103, 243, 255, 0.12) 66%, transparent 73%);
  animation-duration: 6.6s;
}

.feature-card,
.game-card,
.value-card,
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 28px;
  transform: rotate(-1.25deg);
}

.feature-card::before,
.game-card::before,
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.12) 48%, transparent 52%);
  transform: translateX(-110%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.feature-card:hover::before,
.game-card:hover::before,
.cta-card:hover::before {
  transform: translateX(110%);
}

.feature-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.feature-heading h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.feature-tagline {
  margin: 14px 0 20px;
  max-width: 34ch;
}

.feature-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 243, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(16, 29, 58, 0.96), rgba(6, 12, 24, 0.96));
  min-height: 300px;
}

.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.feature-media-logo {
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), transparent 48%),
    linear-gradient(145deg, rgba(103, 243, 255, 0.16), rgba(255, 107, 157, 0.12)),
    #080f20;
}

.feature-media-logo img {
  width: min(100%, 260px);
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.34));
}

.feature-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.feature-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.games-section,
.value-section,
.cta-strip {
  padding: 36px 0 20px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.cta-card h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.section-copy {
  max-width: 38rem;
  margin: 10px 0 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 260ms ease, border-color 220ms ease;
  min-height: 100%;
}

.game-card:nth-child(1) {
  grid-column: span 7;
}

.game-card:nth-child(2) {
  grid-column: span 5;
}

.game-card:nth-child(3),
.game-card:nth-child(4),
.game-card:nth-child(5) {
  grid-column: span 4;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-8px) rotate(-0.8deg);
  border-color: rgba(103, 243, 255, 0.52);
  box-shadow: 0 28px 52px rgba(2, 7, 19, 0.58), 0 0 0 1px rgba(103, 243, 255, 0.22);
  outline: none;
}

.card-media {
  padding: 16px 16px 0;
}

.thumb-wrap {
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(103, 243, 255, 0.14), transparent 35%),
    #050913;
}

.thumb-wrap img,
.thumb-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.game-card[data-game-id="tidal-tiles"] .thumb-wrap {
  padding: 30px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14), transparent 48%),
    linear-gradient(145deg, rgba(103, 243, 255, 0.15), rgba(255, 107, 157, 0.11)),
    #080f20;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 20px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.card-title,
.value-card h3 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: 1.95rem;
  line-height: 1;
}

.card-tagline {
  margin: 8px 0 0;
  max-width: 30ch;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 4px;
}

.card-stat {
  color: var(--accent);
  font-weight: 600;
}

.card-cta {
  color: var(--sun);
  font-weight: 700;
}

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

.value-card {
  padding: 24px;
  background: var(--panel-strong);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #c8fff4);
  font-weight: 800;
}

.value-card h3 {
  font-size: 1.55rem;
}

.value-card p {
  margin: 10px 0 0;
}

.cta-strip {
  padding-bottom: 64px;
}

.cta-card {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 157, 0.24), transparent 34%),
    radial-gradient(circle at right, rgba(103, 243, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(15, 28, 53, 0.96), rgba(10, 17, 32, 0.96));
}

.cta-card h2 {
  max-width: 12ch;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .value-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-feature {
    min-height: auto;
  }

  .feature-card {
    transform: none;
  }

  .game-card:nth-child(1),
  .game-card:nth-child(2),
  .game-card:nth-child(3),
  .game-card:nth-child(4),
  .game-card:nth-child(5) {
    grid-column: span 6;
  }

  .value-grid {
    display: grid;
  }

  .cta-card {
    display: grid;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    padding-top: 16px;
  }

  .hero-title {
    max-width: none;
  }

  .hero-actions,
  .feature-meta,
  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-meta strong,
  .card-rank {
    text-align: left;
  }

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

  .game-card:nth-child(1),
  .game-card:nth-child(2),
  .game-card:nth-child(3),
  .game-card:nth-child(4),
  .game-card:nth-child(5) {
    grid-column: auto;
  }

  .thumb-wrap {
    height: 200px;
  }

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

  .cta-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }

  .page {
    transition: none;
  }
}
