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

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0 auto;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  filter: blur(180px);
  z-index: -1;
  background: radial-gradient(circle, #00ff6a 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  animation: float 20s infinite alternate;
}

body::before {
  left: -300px;
  top: 10%;
}

body::after {
  right: -300px;
  bottom: 10%;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-60px) rotate(5deg); }
}

::-webkit-scrollbar {
  display: none;
}

.header {
  margin: 40px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f0f0f;
  border-radius: 20px;
  border: 1px solid #333;
  backdrop-filter: blur(10px);
  height: 80px;
  width: calc(100% - 80px);
  max-width: 1400px;
  padding: 0 3em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#contact-button {
  cursor: pointer;
  transition: all 0.4s ease;
}

#contact-button:hover {
  filter: brightness(1.4) drop-shadow(0 0 20px #00ff6a);
  transform: scale(1.05);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.game-thumb {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 100, 0.2);
}

.game-thumb.bigger {
  width: 360px;
  height: 360px;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 100, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.game-thumb:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 255, 100, 0.3);
  border-color: #00ff6a;
}

.game-thumb:hover img {
  transform: scale(1.12);
}

.game-thumb:hover::after {
  opacity: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.overlay.active {
  display: flex;
  opacity: 1;
}

.game-view {
  position: relative;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  width: round(up, min(80dvw, calc(80dvh * 9 / 16)), 1px) !important;
  height: round(up, min(80dvh, calc(80dvw * 16 / 9)), 1px) !important;
  box-shadow: 0 20px 60px rgba(0, 255, 100, 0.4);
  transform: scale(0.8);
  animation: popIn 0.5s ease forwards;
}

@keyframes popIn {
  to {
    transform: scale(1);
  }
}

.game-view iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background: #fff;
  transform: scale(1.1) rotate(90deg);
}