:root {
  --ink: #20242a;
  --muted: #667085;
  --paper: #fffdf8;
  --surface: #ffffff;
  --sky: #dff2ff;
  --mint: #c9f2d7;
  --coral: #ff8d86;
  --sun: #ffd66e;
  --blue: #3788d8;
  --shadow: 0 22px 60px rgba(39, 78, 113, 0.18);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.95) 0 7%, transparent 7.2%),
    linear-gradient(180deg, #dff2ff 0%, #f2faff 44%, #fffdf8 100%);
  overscroll-behavior: none;
  touch-action: pan-y;
}

.hub,
.hub * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.hub img {
  -webkit-user-drag: none;
}

.hub {
  width: min(100%, 1040px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(34px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 8px 14px;
  border: 2px solid rgba(32, 36, 42, 0.1);
  border-radius: 999px;
  color: #3377b7;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
}

.game-grid {
  width: min(100%, 820px);
  margin: clamp(28px, 6vh, 58px) auto 0;
}

.game-card {
  min-height: 390px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(270px, 0.92fr) minmax(280px, 1.08fr);
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  box-shadow: var(--shadow);
  touch-action: manipulation;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.game-card:active {
  transform: scale(0.985);
  box-shadow: 0 14px 36px rgba(39, 78, 113, 0.18);
}

.game-card:focus-visible {
  outline: 5px solid var(--sun);
  outline-offset: 6px;
}

.game-art {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.88) 0 12px, transparent 13px),
    linear-gradient(145deg, #c9efff, #dff2ff 58%, #c9f2d7);
}

.game-art picture {
  width: min(68%, 246px);
  position: relative;
  z-index: 2;
  display: block;
  transform: rotate(-2deg);
}

.game-art img {
  width: 100%;
  display: block;
  border: 7px solid #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 32px rgba(39, 78, 113, 0.2);
}

.bubble {
  position: absolute;
  border: 4px solid rgba(55, 136, 216, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.bubble-one {
  width: 54px;
  height: 54px;
  top: 38px;
  right: 32px;
}

.bubble-two {
  width: 30px;
  height: 30px;
  right: 70px;
  bottom: 48px;
}

.bubble-three {
  width: 19px;
  height: 19px;
  left: 38px;
  bottom: 78px;
}

.game-copy {
  align-self: center;
  padding: 42px clamp(28px, 5vw, 56px);
}

.game-number {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a4e49;
  background: #ffe3e0;
  font-size: 14px;
  font-weight: 900;
}

.game-copy h2 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.game-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 700;
  line-height: 1.55;
}

.play-button {
  min-height: 54px;
  margin-top: 28px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 7px 0 var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.play-button span {
  font-size: 25px;
  line-height: 1;
}

.hub-footer {
  margin-top: auto;
  padding-top: clamp(28px, 6vh, 54px);
  color: #7b8492;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.decor {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.decor-one {
  width: 220px;
  height: 220px;
  top: 24%;
  left: -100px;
  background: rgba(255, 214, 110, 0.34);
}

.decor-two {
  width: 260px;
  height: 260px;
  right: -130px;
  bottom: 5%;
  background: rgba(255, 141, 134, 0.22);
}

@media (max-width: 680px) {
  .hub {
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .game-grid {
    margin-top: 26px;
  }

  .game-card {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .game-art {
    min-height: 270px;
  }

  .game-art picture {
    width: min(50%, 180px);
  }

  .game-copy {
    padding: 26px 26px 34px;
    text-align: center;
  }

  .game-copy h2 {
    margin-top: 14px;
  }

  .play-button {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card {
    transition: none;
  }
}
