body {
  margin: 0;
  font-family: 'Press Start 2P', cursive, monospace;
  background-color: #fff8dc;
  background-image: url('bg.png');
  background-repeat: repeat;
  background-size: auto;
  image-rendering: pixelated;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 30px;
}

.header, .about, .works {
  border: 4px solid #000;
  margin: 30px 0;
  padding: 30px;
  background-color: #fefbe9;
  box-shadow: 6px 6px #aaa;
  position: relative;
  animation: pixelPop 0.6s ease-out forwards;
  opacity: 0;
}

.about { animation-delay: 0.2s; }
.works { animation-delay: 0.4s; }

@keyframes pixelPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.avatar {
  width: 120px;
  height: 120px;
  image-rendering: pixelated;
  display: block;
  margin: -70px auto 10px;
  border: 4px solid #000;
  box-shadow: 2px 2px #444;
  background-color: #fff;
}

h1 {
  text-align: center;
  font-size: 24px;
  margin: 10px 0 5px;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  margin-top: 5px;
}

.about h2, .works h2 {
  font-size: 20px;
  border-bottom: 2px dashed #666;
  padding-bottom: 10px;
}

.about p {
  font-size: 14px;
  line-height: 2;
  margin-top: 15px;
}

.game-list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.game-card {
  flex: 1;
  border: 3px solid #000;
  padding: 20px;
  background-color: #fff;
  min-width: 280px;
  transition: transform 0.2s ease;
}

.game-card:hover {
  transform: scale(1.03);
  box-shadow: 4px 4px #000;
}

.game-card h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

.game-card p {
  font-size: 13px;
  margin-bottom: 15px;
}

.play-btn {
  display: inline-block;
  padding: 10px 15px;
  font-size: 13px;
  color: #000;
  text-decoration: none;
  border: 2px solid #000;
  text-align: center;
  background-color: #ccc;
  transition: background-color 0.2s ease;
}

.play-btn.green { background-color: #8fd19e; }
.play-btn.green:hover { background-color: #6fa57f; }

.play-btn.red { background-color: #f4a1a1; }
.play-btn.red:hover { background-color: #c77676; }

.play-btn.blue { background-color: #9ec6f7; }
.play-btn.blue:hover { background-color: #6c9cd1; }

.footer {
  margin-top: 50px;
  text-align: center;
  font-size: 12px;
}

.footer a {
  margin: 0 10px;
  color: #000;
  text-decoration: none;
  border-bottom: 2px dotted #000;
}

.footer a:hover {
  color: #555;
}
