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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #b3cdd1 0%, #a9c7d1 100%);
  min-height: 100vh;
  color: #333;
}

.header {
  background: #06bcb7;
  color: #fff;
  padding: 32px 0 20px 0;
  box-shadow: 0 3px 10px rgba(6,188,183,0.09);
  text-align: center;
  width: 100%;
}

.header h1 {
  letter-spacing: 1.5px;
  font-size: 2em;
  font-weight: 700;
  margin: 0;
}

.main {
  width: 100%;
  min-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.games-grid {
  display: flex;
  gap: 32px;
}

.game-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(80,130,255,0.13);
  width: 250px;
  height: 200px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.17s, box-shadow 0.16s, background 0.18s;
  cursor: pointer;
  border: 3px solid transparent;
}

.game-box:hover, .game-box:focus {
  transform: translateY(-8px) scale(1.042);
  box-shadow: 0 12px 36px #06bcb733, 0 2px 48px #7e57c2;
  border-color: #06bcb7;
  background: linear-gradient(90deg,#e0f7fa 45%, #ede7f6 100%);
  outline: none;
}

.box-content h2 {
  color: #06bcb7;
  font-size: 1.35em;
  margin-bottom: 14px;
  font-weight: 700;
}

.box-content p {
  color: #666;
  font-size: 1.05em;
  margin-top: 4px;
}

/* Custom colors per game */
.tic-tac-toe .box-content h2 { color: #06bcb7; }
.guess-number .box-content h2 { color: #7e57c2; }

.footer {
  width: 100%;
  background: #1e2c33;
  color: #e6eef3;
  text-align: center;
  padding: 20px 0 15px 0;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: auto;
  box-shadow: 0 -2px 12px rgba(30,44,51,0.07);
  position: fixed;
  left: 0;
  bottom: 0;
}

.footer-container {
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .games-grid {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .main {
    min-height: 60vh;
    padding-bottom: 80px;
  }
  .game-box {
    width: 90vw;
    max-width: 340px;
    height: 160px;
  }
}
