:root {
  --ink: #172033;
  --muted: #607089;
  --paper: #fffaf2;
  --line: rgba(23, 32, 51, 0.12);
  --shadow: 0 20px 50px rgba(35, 45, 74, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 216, 96, 0.56), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(93, 201, 159, 0.42), transparent 26%),
    linear-gradient(135deg, #f7fbff 0%, #fff7e9 54%, #eef8ed 100%);
}

.page {
  width: min(1180px, calc(100vw - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 156px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, #ff7e52, #7357ff);
  box-shadow: var(--shadow);
  font-size: 32px;
  font-weight: 900;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.game-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(35, 45, 74, 0.19);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.92;
}

.fruit::before {
  background:
    radial-gradient(circle at 26% 20%, #ffe064 0 9%, transparent 10%),
    radial-gradient(circle at 72% 24%, #ff6e91 0 12%, transparent 13%),
    linear-gradient(160deg, #fff2b8 0%, #ff9b75 100%);
}

.snake::before {
  background:
    radial-gradient(circle at 24% 18%, #d8ff7b 0 11%, transparent 12%),
    radial-gradient(circle at 78% 20%, #65e0a3 0 14%, transparent 15%),
    linear-gradient(160deg, #eefdd4 0%, #5fbf7f 100%);
}

.mario::before {
  background:
    radial-gradient(circle at 28% 22%, #ffffff 0 10%, transparent 11%),
    radial-gradient(circle at 76% 24%, #ffd35d 0 13%, transparent 14%),
    linear-gradient(160deg, #a9ddff 0%, #fa7164 100%);
}

.game-art {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  font-size: 86px;
  filter: drop-shadow(0 14px 20px rgba(30, 35, 50, 0.18));
}

.game-type,
.game-card strong,
.game-card small,
.game-card em {
  position: relative;
  z-index: 1;
}

.game-type {
  width: max-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: rgba(23, 32, 51, 0.72);
  background: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
}

.game-card strong {
  margin-top: 14px;
  font-size: 28px;
}

.game-card small {
  max-width: 260px;
  margin-top: 10px;
  color: rgba(23, 32, 51, 0.74);
  font-size: 14px;
  line-height: 1.55;
}

.game-card em {
  width: max-content;
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: 12px;
  color: white;
  background: rgba(23, 32, 51, 0.9);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 860px) {
  .page {
    padding: 28px 0;
  }

  .hero {
    min-height: 128px;
  }

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

  .game-card {
    min-height: 250px;
  }
}
