:root {
  --bg: #030304;
  --panel: rgba(10, 10, 12, 0.9);
  --text: #f7f8fb;
  --muted: #b3b6c7;
  --accent: #ff5c8d;
  --accent-2: #4fd9ff;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 217, 255, 0.16), transparent 30%),
    radial-gradient(circle at 70% 15%, rgba(255, 92, 141, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(3, 3, 4, 0.92), rgba(3, 3, 4, 0.98));
  position: relative;
  overflow: hidden;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  pointer-events: none;
}

.layout {
  padding: 8vh 32px 48px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  justify-items: center;
  align-items: start;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.16);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 420px;
  width: 100%;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.game-card__image {
  height: 240px;
  background: #000 center/cover no-repeat;
  border-bottom: 1px solid var(--stroke);
}

.game-card__image--pop {
  background-image: url('../images/princ.png');
}

.game-card__image--tarzan {
  background: radial-gradient(circle at 30% 20%, rgba(255, 92, 141, 0.18), transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(79, 217, 255, 0.16), transparent 45%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
  display: grid;
  place-items: center;
}

.game-card__stamp {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.18em;
  color: var(--text);
  font-weight: 700;
}

.game-card__body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-card__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060a;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

@media (max-width: 860px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.75);
  backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  width: min(1100px, 92vw);
  height: min(75vh, 780px);
  background: #0c0d14;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal__content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .layout { padding: 12vh 18px 32px; }
  .game-card__image { height: 150px; }
}

