@font-face {
  font-family: 'PricedownGTAV';
  src: url('../assets/fonts/PricedownGTAV.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080b10;
  --text: #f5f7fa;
  --muted: #b0b7c3;
  --orange: #ff7e36;
  --cyan: #39c8ff;
  --pink: #df6ef0;
  --red: #ff3b4e;
  --green: #38e07b;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* ================= ФОНОВАЯ СЦЕНА ================= */
.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #070a0f;
}

.bg-artwork {
  position: absolute;
  inset: -18px;
  background: url('../assets/images/gta-backdrop.jpg') center center / cover no-repeat;
  opacity: 0.72;
  filter: saturate(1.1) contrast(1.05);
  transform: translate3d(var(--bg-px, 0px), var(--bg-py, 0px), 0) scale(1.03);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.bg-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(8, 12, 18, 0.35) 0%, rgba(7, 10, 15, 0.78) 82%),
    linear-gradient(180deg, rgba(8, 11, 17, 0.75) 0%, rgba(8, 11, 17, 0.25) 45%, rgba(6, 9, 14, 0.85) 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 35%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 35%, transparent 95%);
}

#ambient-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ================= HUD-РАМКА ПО ПЕРИМЕТРУ ================= */
.hud-frame {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hud-top, .hud-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 54px;
}

.hud-top { top: 0; }
.hud-bottom { bottom: 0; }

.hud-side {
  position: absolute;
  top: 72px;
  bottom: 72px;
  width: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hud-left { left: 10px; }
.hud-right { right: 10px; }

.hud-bar {
  width: 3px;
  height: 130px;
  border-radius: 2px;
}

.hud-left .hud-bar {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 126, 54, 0.9);
}

.hud-right .hud-bar {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(57, 200, 255, 0.9);
}

.hud-ticks {
  position: absolute;
  top: 20px;
  height: 110px;
  width: 8px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0 1px,
    transparent 1px 7px
  );
}

.hud-left .hud-ticks { left: 14px; }
.hud-right .hud-ticks { right: 14px; }

@media (max-width: 900px) {
  .hud-side { display: none; }
  .hud-top, .hud-bottom { height: 34px; }
}

/* ================= ОСНОВНОЙ КОНТЕЙНЕР ================= */
.wrap {
  position: relative;
  z-index: 3;
  max-width: 1220px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ================= ШАПКА ================= */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.brand-home {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(57, 200, 255, 0.4));
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.06),
    0 0 22px rgba(130, 195, 255, 0.25);
  flex-shrink: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.brand-name {
  font-weight: 800;
  font-size: clamp(20px, 2.5vw, 27px);
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.brand-sub {
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 2px;
  color: #9ba7bc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
}

/* HUD-кнопка переключения языка RU/EN */
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 18, 28, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #c5cedb;
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  cursor: pointer;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.language-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #9fb0c7;
  stroke-width: 1.8;
}

.language-toggle b {
  font-weight: 700;
  color: #7c8799;
  transition: color 0.2s ease;
}

.language-toggle b.active {
  color: #ffffff;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: rgba(57, 200, 255, 0.65);
  background: rgba(20, 32, 48, 0.88);
  box-shadow: 0 0 16px rgba(57, 200, 255, 0.22);
  outline: none;
}

/* ================= HERO ЗАГОЛОВОК ================= */
.intro {
  text-align: center;
  padding: 22px 0 12px;
}

.intro h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.7vw, 44px);
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 28px rgba(255, 195, 145, 0.32),
    0 4px 18px rgba(0, 0, 0, 0.95);
}

.intro p {
  margin: 0 auto;
  max-width: 780px;
  color: #d3dae6;
  font-size: clamp(13px, 1.3vw, 15.5px);
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

/* Строка "ВЫБЕРИ ИГРУ • 4 ИГРЫ • 3 КАТАЛОГА ДОСТУПНЫ" */
.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.section-head .head-main {
  font-weight: 800;
  color: #ffffff;
}

.section-head .head-dot,
.section-head .head-sub {
  font-weight: 600;
  color: #c2cbd9;
}

/* ================= СЕТКА КАРТОЧЕК ИГР ================= */
.games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  perspective: 1200px;
}

.games > .game:first-child {
  transform: perspective(1100px) rotateY(7.5deg) translateZ(0);
  transform-origin: right center;
}

.games > .game:last-child {
  transform: perspective(1100px) rotateY(-7.5deg) translateZ(0);
  transform-origin: left center;
}

.game {
  --accent: #ff8b3d;
  --glow-rgb: 255, 139, 61;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  outline: none;
}

.game[data-game="vc"] {
  --accent: #e56df5;
  --glow-rgb: 229, 109, 245;
}

.game[data-game="sa"] {
  --accent: #8c96a6;
  --glow-rgb: 140, 150, 166;
}

.game[data-game="iv"] {
  --accent: #47b5ff;
  --glow-rgb: 71, 181, 255;
}

/* Внешняя рамка карточки со встроенным футером */
.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(14, 18, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.78),
    0 10px 28px -8px rgba(var(--glow-rgb), 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Свечение снизу карточки */
.poster::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px 2px rgba(var(--glow-rgb), 0.85);
  transition: left 0.28s ease, right 0.28s ease, height 0.28s ease, box-shadow 0.28s ease;
  pointer-events: none;
}

.game.ready:hover .poster::after,
.game.ready:focus-visible .poster::after,
.game.ready.selected .poster::after {
  left: 5%;
  right: 5%;
  height: 3px;
  box-shadow: 0 0 24px 4px rgba(var(--glow-rgb), 0.98);
}

/* Тонкий диагональный блик при наведении */
.poster-media::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -120%;
  width: 65%;
  height: 140%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.04) 62%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.game.ready:hover .poster-media::after,
.game.ready:focus-visible .poster-media::after {
  left: 145%;
  opacity: 1;
}

.poster-media {
  position: relative;
  aspect-ratio: 200 / 245;
  width: 100%;
  overflow: hidden;
  background: #141720;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(145deg, #252936, #0d0f14);
}

.cover-fallback[hidden] {
  display: none;
}

/* Нижняя плашка внутри карточки */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px 11px;
  background: linear-gradient(180deg, rgba(20, 25, 36, 0.95), rgba(11, 14, 21, 0.99));
}

.card-footer strong {
  font-size: 14px;
  font-weight: 700;
  color: #f4f6fa;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #d6dde8;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Индивидуальные стили бейджей статусов */
.game[data-game="iii"] .status-pill {
  background: rgba(35, 110, 62, 0.32);
  border-color: rgba(74, 222, 128, 0.55);
  color: #a7f3d0;
}
.game[data-game="iii"] .status-pill .dot {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.game[data-game="vc"] .status-pill {
  background: rgba(145, 52, 155, 0.34);
  border-color: rgba(232, 121, 249, 0.55);
  color: #f5d0fe;
}
.game[data-game="vc"] .status-pill .dot {
  background: #e879f9;
  box-shadow: 0 0 8px #e879f9;
}

.game[data-game="iv"] .status-pill {
  background: rgba(32, 108, 72, 0.34);
  border-color: rgba(52, 211, 153, 0.55);
  color: #a7f3d0;
}
.game[data-game="iv"] .status-pill .dot {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* Hover-эффекты для доступных игр */
.game.ready:hover .poster,
.game.ready:focus-visible .poster,
.game.ready.selected .poster {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(var(--glow-rgb), 0.85);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(var(--glow-rgb), 0.55),
    inset 0 0 18px rgba(var(--glow-rgb), 0.25);
}

.game.ready:hover .cover-image,
.game.ready:focus-visible .cover-image {
  transform: scale(1.03);
}

/* Заблокированная карточка San Andreas */
.game.locked {
  cursor: not-allowed;
}

.game.locked .cover-image {
  filter: grayscale(1) contrast(1.06) brightness(0.86);
}

.game.locked .status-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  color: #9aa3b2;
}

.game.locked:hover .cover-image,
.game.locked:focus-visible .cover-image {
  filter: grayscale(1) contrast(1.06) brightness(0.68);
}

.game.locked:hover .corner-ribbon,
.game.locked:focus-visible .corner-ribbon {
  filter: brightness(1.18);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.72);
}

.game.locked:hover .poster,
.game.locked:focus-visible .poster {
  border-color: rgba(185, 195, 210, 0.48);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.82),
    0 0 20px rgba(160, 175, 195, 0.22);
}

/* Диагональная лента "СКОРО" в левом верхнем углу */
.corner-ribbon {
  position: absolute;
  top: 22px;
  left: -34px;
  width: 132px;
  padding: 5px 0;
  transform: rotate(-42deg);
  background: linear-gradient(180deg, rgba(64, 70, 82, 0.95), rgba(34, 38, 46, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.corner-ribbon span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #f3f5f8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ================= БЛОК "ВНИМАНИЕ!" ================= */
@keyframes attentionBlink {
  0%, 100% {
    border-color: rgba(255, 65, 82, 0.95);
    box-shadow:
      0 0 32px rgba(255, 45, 65, 0.45),
      0 0 14px rgba(255, 68, 86, 0.35),
      inset 0 0 28px rgba(255, 45, 65, 0.24);
    transform: scale(1);
  }
  50% {
    border-color: rgba(255, 65, 82, 0.32);
    box-shadow:
      0 0 10px rgba(255, 45, 65, 0.08),
      inset 0 0 8px rgba(255, 45, 65, 0.05);
    transform: scale(0.994);
  }
}

@keyframes warningTextBlink {
  0%, 100% {
    opacity: 1;
    color: #ff5263;
    text-shadow: 0 0 16px rgba(255, 55, 75, 0.95);
  }
  50% {
    opacity: 0.45;
    color: #ff3b4e;
    text-shadow: 0 0 4px rgba(255, 55, 75, 0.25);
  }
}

.installation-notice {
  position: relative;
  max-width: 720px;
  width: 100%;
  margin: 26px auto 16px;
  padding: 13px 26px 15px;
  text-align: center;
  background: linear-gradient(180deg, rgba(48, 12, 18, 0.78), rgba(24, 9, 13, 0.88));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 65, 82, 0.78);
  clip-path: polygon(
    14px 0, calc(100% - 14px) 0,
    100% 14px, 100% calc(100% - 14px),
    calc(100% - 14px) 100%, 14px 100%,
    0 calc(100% - 14px), 0 14px
  );
  box-shadow:
    0 0 26px rgba(255, 45, 65, 0.25),
    inset 0 0 24px rgba(255, 45, 65, 0.14);
  animation: attentionBlink 1.5s ease-in-out infinite;
}

.installation-notice::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 14px rgba(255, 58, 76, 0.45);
}

.notice-ticks {
  position: absolute;
  width: 44px;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 75, 92, 0.75) 0 3px,
    transparent 3px 6px
  );
}

.notice-ticks.top-left {
  top: 4px;
  left: 26px;
}

.notice-ticks.bottom-right {
  bottom: 4px;
  right: 26px;
}

.notice-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
}

.notice-heading strong {
  color: #ff4456;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255, 55, 75, 0.85);
  animation: warningTextBlink 1.5s ease-in-out infinite;
}

.notice-line {
  width: clamp(32px, 6vw, 72px);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #ff4456, transparent);
  box-shadow: 0 0 8px rgba(255, 55, 75, 0.8);
}

.notice-copy {
  color: #e4e7ee;
  font-size: clamp(12px, 1.25vw, 14px);
  line-height: 1.45;
}

/* ================= ФУТЕР И СОЦСЕТИ ================= */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

.author-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.made-by {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #b4bcc9;
  user-select: none;
}

.made-by-small {
  font-family: 'PricedownGTAV', 'Caveat', Georgia, cursive;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: 0.6px;
  color: #b5becc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.made-by-name {
  font-family: 'PricedownGTAV', 'Caveat', 'Segoe Script', cursive;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 400;
  letter-spacing: 0.8px;
  color: #eef2f8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.author-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.26);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #c5cedb;
  background: rgba(12, 17, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link.boosty img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(0.8);
  transition: filter 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #ffffff;
  border-color: rgba(57, 200, 255, 0.6);
  background: rgba(57, 200, 255, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.social-link.boosty:hover img,
.social-link.boosty:focus-visible img {
  filter: grayscale(1) brightness(0) invert(1);
}

/* Нижний шестиугольный бейдж с дисклеймером */
.disclaimer-pill {
  position: relative;
  max-width: 820px;
  padding: 7px 26px;
  background: rgba(12, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}

.footer-disclaimer {
  margin: 0;
  text-align: center;
  color: #b4bdcc;
  font-size: 11px;
  line-height: 1.45;
}

.disclaimer-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* ================= TOAST УВЕДОМЛЕНИЕ ================= */
.toast {
  position: fixed;
  left: 50%;
  top: 26vh;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: rgba(16, 22, 34, 0.94);
  color: #f4f6fa;
  border: 1px solid rgba(57, 200, 255, 0.45);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================= АДАПТИВНОСТЬ ================= */
@media (max-width: 960px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    margin: 0 auto;
    perspective: 1000px;
  }
  .games > .game:nth-child(odd) {
    transform: perspective(1000px) rotateY(5deg) translateZ(0);
    transform-origin: right center;
  }
  .games > .game:nth-child(even) {
    transform: perspective(1000px) rotateY(-5deg) translateZ(0);
    transform-origin: left center;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 18px 16px 26px;
  }
  header {
    grid-template-columns: 1fr auto;
  }
  .header-spacer {
    display: none;
  }
  .brand-home {
    grid-column: 1;
    gap: 10px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .header-actions {
    grid-column: 2;
  }
  .games {
    gap: 14px;
  }
  .card-footer {
    padding: 8px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .disclaimer-pill {
    clip-path: none;
    border-radius: 10px;
    padding: 8px 14px;
  }
  .disclaimer-sep {
    display: none;
  }
  .footer-disclaimer span {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .bg-artwork {
    --bg-px: 0px;
    --bg-py: 0px;
    transform: none;
  }
  #ambient-particles {
    display: none;
  }
}
