* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  color: #f6f1e8;
  background:
    linear-gradient(rgba(15, 15, 16, 0.78), rgba(15, 15, 16, 0.94)),
    radial-gradient(circle at 15% 10%, rgba(186, 139, 72, 0.38), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(57, 107, 91, 0.34), transparent 30%),
    #101010;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
}

.menu-header {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 10px;
  color: #d9b76c;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  margin-top: 18px;
  color: #cfc4b4;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

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

.game-card {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 183, 108, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.game-card img,
.game-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #231c17;
}

.game-art {
  position: relative;
  overflow: hidden;
}

.connect-four-art {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  background: linear-gradient(135deg, #225ea8, #0e3970);
}

.connect-four-art span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff0a1, #d8a51e 68%);
  box-shadow: inset 0 6px 8px rgba(255, 255, 255, 0.22), inset 0 -8px 14px rgba(0, 0, 0, 0.32);
}

.connect-four-art span:nth-child(2n),
.connect-four-art span:nth-child(7),
.connect-four-art span:nth-child(18) {
  background: radial-gradient(circle at 35% 28%, #ff9a8d, #c72626 68%);
}

.battleship-art {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #0a5b80, #072f4a);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

.ship {
  position: absolute;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #858c91, #303840);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

.ship-one {
  width: 44%;
  left: 14%;
  top: 35%;
}

.ship-two {
  width: 30%;
  right: 13%;
  bottom: 24%;
  transform: rotate(90deg);
}

.hit-dot,
.miss-ring {
  position: absolute;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.hit-dot {
  right: 24%;
  top: 22%;
  background: radial-gradient(circle, #ffd6c8, #d82d25 70%);
  box-shadow: 0 0 18px rgba(255, 65, 50, 0.78);
}

.miss-ring {
  left: 25%;
  bottom: 20%;
  border: 4px solid rgba(222, 242, 255, 0.88);
}

.reversi-art {
  padding: 18%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #188052, #0f4c30);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

.reversi-art span {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 8px 10px rgba(255, 255, 255, 0.18), inset 0 -10px 14px rgba(0, 0, 0, 0.34), 0 10px 12px rgba(0, 0, 0, 0.3);
}

.reversi-art .black {
  background: radial-gradient(circle at 35% 25%, #555, #080808 70%);
}

.reversi-art .white {
  background: radial-gradient(circle at 35% 25%, #fff, #c9c5b8 72%);
}

.memory-art {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: linear-gradient(135deg, #4a365f, #221a2d);
}

.memory-art span {
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #231828;
  background: linear-gradient(135deg, #f3d58a, #b98a34);
  font-size: clamp(1.3rem, 4vw, 2.5rem);
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.memory-art span:empty {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    #3a2e4d;
}

.game-meta {
  display: inline-flex;
  margin: 16px 16px 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #16120c;
  background: #d9b76c;
  font-size: 0.75rem;
  font-weight: 800;
}

h2 {
  margin: 0 16px 8px;
  color: #fff8ec;
  font-size: 1.45rem;
}

.game-card p {
  margin: 0 16px 20px;
  color: #cfc4b4;
  line-height: 1.55;
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .container {
    justify-content: start;
    padding: 22px;
  }

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