:root {
  --bg: #05070f;
  --panel: rgba(12, 18, 38, 0.78);
  --line: rgba(125, 239, 255, 0.24);
  --text: #f2f7ff;
  --muted: #93a5c7;
  --cyan: #7df0ff;
  --gold: #ffd166;
  --pink: #ff5c9a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(125, 240, 255, 0.22), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(255, 92, 154, 0.18), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(255, 209, 102, 0.12), transparent 32%),
    linear-gradient(145deg, #03040a 0%, #08132b 54%, #02030a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.site-header {
  position: fixed;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.site-header__brand,
.language-switch {
  pointer-events: auto;
}

.site-header__brand {
  border: 1px solid rgba(125, 240, 255, 0.22);
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(5, 9, 22, 0.74);
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.1);
}

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 104px 0 56px;
}

.language-switch {
  position: relative;
  width: 236px;
}

.language-switch summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(125, 240, 255, 0.28);
  border-radius: 999px;
  padding: 11px 16px 11px 20px;
  background: rgba(5, 9, 22, 0.84);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  cursor: pointer;
  list-style: none;
}

.language-switch summary::-webkit-details-marker {
  display: none;
}

.language-switch summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.8;
}

.language-switch[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.language-switch span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.language-switch strong {
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.language-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 150px;
  overflow: hidden;
  border: 1px solid rgba(125, 240, 255, 0.26);
  border-radius: 18px;
  background: rgba(6, 11, 27, 0.96);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46), 0 0 28px rgba(125, 240, 255, 0.08);
  backdrop-filter: blur(14px);
}

.language-switch__menu a {
  padding: 12px 16px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.language-switch__menu a:hover,
.language-switch__menu a.is-active {
  background: linear-gradient(135deg, rgba(125, 240, 255, 0.22), rgba(255, 209, 102, 0.14));
  color: var(--gold);
}

.site-footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.hero {
  max-width: 780px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(125, 240, 255, 0.2);
}

.hero__text {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

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

.game-card {
  position: relative;
  display: grid;
  grid-template-rows: 240px 1fr;
  overflow: hidden;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 240, 255, 0.58);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), 0 0 36px rgba(125, 240, 255, 0.12);
}

.game-card__thumb {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(125, 240, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(255, 92, 154, 0.08));
}

.game-card__thumb img {
  width: min(58%, 190px);
  filter: drop-shadow(0 0 28px rgba(125, 240, 255, 0.34));
}

.game-card__thumb--soon {
  background:
    linear-gradient(135deg, rgba(125, 240, 255, 0.08), rgba(255, 92, 154, 0.12)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 18px);
}

.game-card__body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
}

.game-card__tag {
  width: fit-content;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-card h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.game-card__cta {
  width: fit-content;
  margin-top: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--cyan), #a9f5c6);
  color: #03111a;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card--soon {
  opacity: 0.72;
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    top: 12px;
    right: 10px;
    left: 10px;
  }

  .site-header__brand {
    padding: 11px 13px;
    font-size: 0.74rem;
  }

  .language-switch {
    width: 92px;
  }

  .language-switch span {
    display: none;
  }

  .language-switch__menu {
    width: 92px;
  }

  .page {
    width: min(100vw - 20px, 1180px);
    padding: 78px 0 34px;
  }

  .site-footer {
    width: min(100vw - 20px, 1180px);
    flex-direction: column;
    align-items: flex-start;
  }

  .game-card {
    grid-template-rows: 190px 1fr;
    min-height: 420px;
  }
}
