:root {
  color-scheme: light;
  --paper: #f5efe7;
  --panel: rgba(255, 250, 244, 0.84);
  --ink: #241911;
  --muted: #736458;
  --line: rgba(88, 61, 39, 0.12);
  --hero: #d55d36;
  --hero-deep: #9f3f24;
  --accent: #1f7661;
  --accent-deep: #125445;
  --glow: rgba(213, 93, 54, 0.18);
  --shadow: 0 24px 70px rgba(83, 57, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at top left, rgba(213, 93, 54, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(31, 118, 97, 0.24), transparent 30%),
    linear-gradient(160deg, #fbf7f0 0%, #eee4d7 100%);
}

.hub-body {
  min-height: 100vh;
}

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

.hub-hero {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hub-kicker,
.section-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.96;
}

.hub-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.4rem);
}

.hub-copy {
  width: min(620px, 100%);
  margin: 14px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.45;
  color: var(--muted);
}

.games-section {
  margin-top: 18px;
}

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

.section-heading h2 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.game-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 42%);
}

.game-tile:hover,
.game-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(83, 57, 34, 0.22);
  border-color: rgba(213, 93, 54, 0.34);
}

.stack-blocks-tile {
  background:
    radial-gradient(circle at top right, rgba(255, 203, 92, 0.24), transparent 26%),
    linear-gradient(140deg, #1f1a17 0%, #2f241e 56%, #413127 100%);
  color: #fff8f1;
}

.dinger-invaders-tile {
  background:
    radial-gradient(circle at top right, rgba(115, 255, 179, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 82, 82, 0.16), transparent 28%),
    linear-gradient(145deg, #081317 0%, #0f2327 48%, #1b1020 100%);
  color: #f4fffb;
}

.brick-breaker-tile {
  background:
    radial-gradient(circle at top right, rgba(96, 174, 255, 0.22), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 165, 92, 0.18), transparent 28%),
    linear-gradient(145deg, #11192d 0%, #22365a 52%, #2c1d30 100%);
  color: #f8fbff;
}

.snake-surge-tile {
  background:
    radial-gradient(circle at top right, rgba(126, 255, 173, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(65, 240, 255, 0.16), transparent 28%),
    linear-gradient(145deg, #061914 0%, #13352b 56%, #18243a 100%);
  color: #effff8;
}

.astro-runner-tile {
  background:
    radial-gradient(circle at top right, rgba(255, 239, 120, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(122, 143, 255, 0.2), transparent 30%),
    linear-gradient(145deg, #0a1226 0%, #121d3e 52%, #1f284f 100%);
  color: #f4f7ff;
}

.neon-racer-tile {
  background:
    radial-gradient(circle at top right, rgba(255, 105, 180, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(125, 181, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #120f23 0%, #221637 46%, #112442 100%);
  color: #fff5fc;
}

.coming-soon-tile {
  background:
    radial-gradient(circle at top right, rgba(31, 118, 97, 0.16), transparent 28%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.72), rgba(246, 238, 230, 0.94));
}

.tile-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.coming-soon-tile .tile-logo {
  background: rgba(31, 118, 97, 0.12);
  color: var(--accent-deep);
}

.tile-meta {
  margin-top: 46px;
}

.tile-meta h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.tile-meta p {
  margin: 0;
  line-height: 1.45;
  color: inherit;
  opacity: 0.88;
}

.tile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.coming-soon-tile .tile-cta {
  background: rgba(31, 118, 97, 0.1);
}

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

@media (max-width: 720px) {
  .hub-shell {
    padding: 14px 12px 24px;
  }

  .hub-hero {
    padding: 18px;
    border-radius: 24px;
  }

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

  .section-note {
    max-width: none;
  }

  .game-tile {
    min-height: 240px;
    border-radius: 24px;
  }

  .tile-meta {
    margin-top: 28px;
  }

  .tile-meta h3 {
    font-size: 1.55rem;
  }
}
