body {
  font-family: 'Arial Black', Gadget, sans-serif;
  text-align: center;
  background: #111;
  color: #fff;
  margin: 0;
  padding: 50px;
}

h1 {
  font-size: 3em;
  margin-bottom: 50px;
  color: #ffcc00;
  text-shadow: 2px 2px #000;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
}

.game-card {
  perspective: 1000px;
}

.game-square {
  width: 220px;
  height: 220px;
  background: linear-gradient(145deg, #ff3c3c, #ff6666);
  border-radius: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-square:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 0 30px #ff3c3c;
}

.game-title {
  background: rgba(0,0,0,0.7);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  position: absolute;
  bottom: 10px;
}

.game-buttons {
  margin-top: 20px;
}

button {
  padding: 12px 25px;
  margin: 10px;
  font-size: 1em;
  border-radius: 8px;
  background: #ffcc00;
  color: #111;
  font-weight: bold;
  border: 2px solid #fff;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #fff;
  color: #ff3c3c;
}

#game-container:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
}

#game-container:fullscreen canvas {
  width: 100vw !important;
  height: 100vh !important;
}

ruffle-player:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
}

ruffle-player:fullscreen canvas,
ruffle-player:fullscreen .ruffle-container {
  width: 100vw !important;
  height: 100vh !important;
}
