:root {
  --gm-bg: #08111a;
  --gm-panel: rgba(7, 13, 20, 0.75);
  --gm-border: rgba(255, 255, 255, 0.12);
  --gm-text: #f5efe3;
  --gm-muted: rgba(245, 239, 227, 0.75);
  --gm-accent: #f6b36c;
  --gm-accent-2: #89f1ff;
  --gm-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --gm-radius: 20px;
  --gm-font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gm-font-display: "Cormorant Garamond", Georgia, serif;
}

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

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--gm-bg);
  color: var(--gm-text);
  font-family: var(--gm-font-sans);
}

body {
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.gm-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(246, 179, 108, 0.2), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(137, 241, 255, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(6, 10, 15, 0.6), rgba(6, 10, 15, 0.92));
}

.gm-bg-video,
.gm-bg-overlay,
.gm-bg-grid {
  position: absolute;
  inset: 0;
}

.gm-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.75) contrast(1.05);
}

.gm-bg-overlay {
  background:
    linear-gradient(180deg, rgba(6, 10, 16, 0.2) 0%, rgba(6, 10, 16, 0.55) 50%, rgba(6, 10, 16, 0.88) 100%);
}

.gm-bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.95));
}

.gm-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gm-header {
  margin-bottom: 2.5rem;
}

.gm-kicker {
  margin: 0;
  font-family: var(--gm-font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(246, 179, 108, 0.88);
}

.gm-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 820px;
}

.gm-card {
  background: var(--gm-panel);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: var(--gm-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.gm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 179, 108, 0.35);
}

.gm-card-title {
  font-family: var(--gm-font-display);
  font-size: 1.65rem;
  margin: 0;
  line-height: 1.1;
}

.gm-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--gm-border);
  background: rgba(9, 15, 22, 0.6);
  color: var(--gm-text);
  text-decoration: none;
  transition: all 180ms ease;
}

.gm-card-btn:hover {
  background: rgba(246, 179, 108, 0.15);
  border-color: rgba(246, 179, 108, 0.5);
  color: var(--gm-text);
  transform: translateY(-1px);
}

.gm-card-btn.primary {
  background: rgba(36, 126, 66, 0.85);
  border-color: rgba(122, 234, 160, 0.4);
  color: #f2fff5;
}

.gm-card-btn.primary:hover {
  background: rgba(45, 151, 79, 0.95);
  border-color: rgba(163, 255, 193, 0.5);
}

.gm-footer {
  margin-top: 3rem;
}

.gm-chip-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  min-height: 36px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 141, 116, 0.4);
  background: rgba(255, 141, 116, 0.18);
  color: #ff9a8a;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.gm-chip-exit:hover {
  background: rgba(255, 141, 116, 0.3);
  border-color: rgba(255, 141, 116, 0.65);
  color: #ffcfc5;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .gm-shell {
    padding: 1.5rem 1rem;
  }

  .gm-games {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gm-card {
    padding: 1.6rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-bg-video {
    display: none;
  }

  .gm-card,
  .gm-card-btn,
  .gm-chip-exit {
    transition: none;
  }

  .gm-card:hover,
  .gm-card-btn:hover,
  .gm-chip-exit:hover {
    transform: none;
  }
}
