﻿:root {
  color-scheme: dark;
  --bg-start: #121212;
  --bg-end: #1f1f1f;
  --text-primary: #f5f5f5;
  --text-muted: #b7b7b7;
  --card-radius: 28px;
  --shadow-soft: 0 25px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(160deg, var(--bg-start), var(--bg-end));
  color: var(--text-primary);
  min-height: 100vh;
  padding: 32px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.noise {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.15), transparent 40%);
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

main,
header,
footer,
section,
.site-header,
.games-grid {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 0 32px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

.hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: #e4e4e4;
  margin: 0;
}

.games {
  margin-top: 56px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.game-card {
  border-radius: var(--card-radius);
  padding: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f7f7f7;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, background-position 320ms ease, filter 220ms ease;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
  background-size: 160% 160%;
  background-position: 0% 50%;
  will-change: transform;
}

.game-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.game-card:hover,
.game-card.is-hovered {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-soft);
  filter: brightness(1.08) saturate(1.1);
  background-position: 100% 0%;
}

.game-card h3 {
  font-size: 1.5rem;
  margin: 24px 0 12px;
}

.game-card p {
  margin: 0 0 20px;
  color: rgba(247, 247, 247, 0.75);
  font-weight: 500;
}

.card-icon {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.25);
}

.card-btn {
  align-self: flex-start;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  color: #121212;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.card-btn:hover,
.card-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.game-card.impostor {
  background: linear-gradient(135deg, #2d171e, #111014);
}

.game-card.asesino {
  background: linear-gradient(135deg, #242018, #101010);
}

.game-card.mafia {
  background: linear-gradient(135deg, #162118, #0d0f0d);
}

.contact {
  margin-top: 72px;
  padding: 36px 24px;
  border-radius: 24px;
  background: #202020;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
}

.contact a {
  color: #fff;
  font-weight: 600;
}

.site-footer {
  text-align: center;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer .logo {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #fff;
}

@media (max-width: 720px) {
  body {
    padding: 24px;
  }

  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  .game-card {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px;
  }

  .card-btn {
    width: 100%;
    text-align: center;
  }
}
