:root {
  --background: 236, 241, 252;
  --bg-main: 255, 255, 255;
  --bg-secondary: 244, 247, 255;
  --bg-secondary-hover: 228, 234, 248;
  --bg-light: 226, 234, 252;
  --text-main: 18, 28, 54;
  --text-primary: 31, 106, 237;
  --text-secondary: 78, 90, 118;
  --border-main: 210, 220, 240;
  --border-secondary: 208, 218, 242;
  --shadow-main: 0 12px 36px rgba(28, 58, 128, 0.12);
  --shadow-soft: 0 4px 18px rgba(28, 58, 128, 0.08);
  --sidebar-w: 228px;
  --radius: 16px;
  --orange: linear-gradient(135deg, #ffc53d 0%, #ff8a1f 45%, #e85a2a 100%);
  --blue: #1f6aed;
  --navy: #0f1c45;
  --ink: #121c36;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Sora", "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  color: rgb(var(--text-main));
  background-color: rgb(var(--background));
  background-image:
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(31, 106, 237, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 138, 31, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(31, 106, 237, 0.08), transparent 55%),
    linear-gradient(180deg, #e8eefc 0%, #f4f7fd 40%, #eef2fb 100%);
  background-attachment: fixed;
  line-height: 1.45;
  font-size-adjust: 0.52;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.banner__title,
.page-hero h1,
.hero-game h1,
.sidebar__logo span {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-12px, 10px) scale(1.06);
  }
}

@keyframes shine-sweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background:
    linear-gradient(180deg, rgba(15, 28, 69, 0.98) 0%, rgba(18, 36, 92, 0.96) 55%, #152a6a 100%);
  border-right: 1px solid rgba(120, 160, 255, 0.18);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 40;
  transform: translateX(0);
  transition: transform 0.25s ease;
  color: #e8eeff;
  box-shadow: 8px 0 40px rgba(10, 24, 70, 0.18);
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  color: #fff;
}

.sidebar__logo img {
  display: block;
  filter: drop-shadow(0 4px 10px rgba(74, 163, 255, 0.45));
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(220, 230, 255, 0.72);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(31, 106, 237, 0.45), rgba(74, 163, 255, 0.18));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(120, 180, 255, 0.25);
}

.nav-item__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: 0.9;
}

.sidebar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 28px rgba(232, 90, 42, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sidebar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(232, 90, 42, 0.5);
}

/* Main */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  padding: 0 22px 40px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 68px;
  height: 68px;
  background: rgba(236, 241, 252, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  margin: 0 -22px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(180, 200, 240, 0.35);
  contain: layout;
}

.header__brand {
  display: none;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: 18px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  margin-left: 8px;
}

.header__nav a {
  font-size: 13px;
  font-weight: 700;
  color: rgb(var(--text-primary));
  white-space: nowrap;
}

.header__nav a:hover {
  color: #1f6aed;
}

.header__actions {
  display: flex;
  gap: 8px;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgb(var(--bg-main));
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-main);
}

.burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: rgb(var(--text-main));
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: rgb(var(--text-primary));
  border: 1px solid rgb(var(--border-secondary));
  backdrop-filter: blur(6px);
}

.btn--primary {
  background: linear-gradient(135deg, #2b6bed, #1a4fd6);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 106, 237, 0.32);
}

.btn--orange {
  background: var(--orange);
  background-size: 160% 160%;
  color: #fff;
  height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(232, 90, 42, 0.35);
  animation: shine-sweep 4s ease infinite alternate;
}

.btn--load {
  display: none;
  margin: 28px auto 0;
  background: rgb(var(--bg-main));
  border: 1px solid rgb(var(--border-secondary));
  color: rgb(var(--text-primary));
  min-width: 180px;
}

.btn--load.is-visible {
  display: flex;
}

/* Banner */
.banner {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 24px;
  min-height: 300px;
  padding: 36px 40px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 197, 61, 0.42), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(74, 163, 255, 0.35), transparent 36%),
    linear-gradient(125deg, #0c1738 0%, #1a3f9c 42%, #2b6bed 72%, #4aa3ff 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(20, 48, 120, 0.28);
  contain: layout;
  animation: rise-in 0.55s ease both;
}

.banner__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.banner__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  animation: orb-float 9s ease-in-out infinite;
}

.banner__orb--a {
  width: 180px;
  height: 180px;
  right: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(255, 197, 61, 0.7), transparent 70%);
}

.banner__orb--b {
  width: 140px;
  height: 140px;
  right: 22%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.55), transparent 70%);
  animation-delay: -3s;
}

.banner__orb--c {
  width: 90px;
  height: 90px;
  right: 36%;
  top: 42%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  animation-delay: -5s;
}

.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.banner__ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.banner__inline {
  color: #fff !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.banner__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.92;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.banner__title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin-bottom: 14px;
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  text-wrap: balance;
}

.banner__text {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.94;
  margin-bottom: 22px;
  max-width: 520px;
}

.banner__glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%);
  pointer-events: none;
}

/* Catalog */
.legal-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(31, 106, 237, 0.08);
  border: 1px solid rgb(var(--border-secondary));
  color: rgb(var(--text-secondary));
  font-size: 13px;
  font-weight: 600;
}

.hub-links {
  margin-top: 16px;
}

.hub-links__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: rgb(var(--text-primary));
}

.hub-links__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hub-links__grid--brand {
  margin-bottom: 10px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.92));
  border: 1px solid rgba(180, 200, 240, 0.55);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  min-height: 88px;
  contain: layout;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: rise-in 0.5s ease both;
}

.hub-card--brand {
  min-height: 100px;
  border-color: rgba(31, 106, 237, 0.28);
  background:
    linear-gradient(145deg, rgba(31, 106, 237, 0.08), transparent 55%),
    linear-gradient(180deg, #fff, #f5f8ff);
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(28, 58, 128, 0.14);
  border-color: rgba(31, 106, 237, 0.45);
}

.hub-card strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.hub-card span {
  font-size: 12px;
  line-height: 1.4;
  color: rgb(var(--text-secondary));
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 700;
  color: rgb(var(--text-primary));
}

@media (max-width: 900px) {
  .hub-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hub-links__grid {
    grid-template-columns: 1fr;
  }
}

.catalog {
  margin-top: 22px;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgb(var(--bg-main));
  border: 1px solid rgb(var(--border-secondary));
  box-shadow: var(--shadow-main);
}

.tab {
  border: 0;
  background: transparent;
  color: rgb(var(--text-secondary));
  font-weight: 700;
  font-size: 14px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--bg-light));
}

.tab.is-active {
  background: rgb(var(--text-primary));
  color: #fff;
}

.catalog__panel[hidden] {
  display: none !important;
}

.catalog__hint {
  margin: 0 0 14px;
  color: rgb(var(--text-secondary));
  font-size: 14px;
}

.catalog__toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.game-card__rank {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(15deg, #ffb700, #e57143);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.providers {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  min-height: 46px;
}

.provider-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-width: 72px;
  padding: 0 14px 0 8px;
  border-radius: 12px;
  background: rgb(var(--bg-main));
  border: 1px solid rgb(var(--border-secondary));
  color: rgb(var(--text-secondary));
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.provider-chip img {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: rgb(var(--bg-secondary));
}

.provider-chip.is-active,
.provider-chip:hover {
  border-color: rgb(var(--text-primary));
  color: rgb(var(--text-primary));
  background: #eef4ff;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgb(var(--bg-main));
  border: 1px solid rgb(var(--border-secondary));
  color: rgb(var(--text-secondary));
  max-width: 360px;
  margin-left: auto;
  width: 100%;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgb(var(--text-main));
}

/* Games grid */
.games {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  min-height: 640px;
  content-visibility: auto;
}

.catalog__panel {
  min-height: 680px;
}

.game-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: rgb(var(--bg-main));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(180, 200, 240, 0.5);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  contain: layout paint;
  min-height: 0;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 18px 40px rgba(28, 58, 128, 0.16);
  border-color: rgba(31, 106, 237, 0.35);
}

.game-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #e8eefc, #c5d4f4);
  overflow: hidden;
  contain-intrinsic-size: 280px 280px;
}

.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 18, 40, 0.45));
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.game-card:hover .game-card__media::after {
  opacity: 1;
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

.hub-links__grid {
  min-height: 1px;
}

.promo-coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}

.promo-coupon {
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(31, 106, 237, 0.35);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(31, 106, 237, 0.06), transparent 40%),
    linear-gradient(180deg, #fff, #f5f8ff);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.promo-coupon::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(var(--background));
  box-shadow: 0 120px 0 0 rgb(var(--background));
}

.promo-coupon:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(28, 58, 128, 0.12);
  border-color: rgba(31, 106, 237, 0.55);
}

.promo-coupon__code code {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.promo-coupon__bonus {
  font-size: 13px;
  color: rgb(var(--text-secondary));
  flex: 1;
}

.promo-coupon__limit {
  font-size: 12px;
  font-weight: 700;
  color: rgb(var(--accent));
}

.btn--sm {
  padding: 8px 12px;
  font-size: 13px;
  align-self: flex-start;
}

.game-card__body {
  padding: 10px 10px 12px;
  min-height: 58px;
}

.game-card--skeleton {
  pointer-events: none;
}

.game-card--skeleton .game-card__media {
  background: linear-gradient(90deg, #dfe6f5 25%, #eef2fb 50%, #dfe6f5 75%);
  background-size: 200% 100%;
}

.skel-line {
  height: 12px;
  border-radius: 6px;
  background: #d7deef;
  margin-bottom: 8px;
}

.skel-line--short {
  width: 55%;
  margin-bottom: 0;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(18, 28, 55, 0.55);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.game-card:hover .game-card__overlay {
  opacity: 1;
}

.game-card__demo {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}

.game-card__provider-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: rgb(var(--text-secondary));
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__body {
  padding: 10px 10px 12px;
  min-height: 58px;
}

.game-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.game-card__meta {
  margin-top: 4px;
  font-size: 11px;
  color: rgb(var(--text-secondary));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-block {
  margin-top: 36px;
  display: grid;
  gap: 14px;
}

.seo-text {
  padding: 22px 24px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
  border: 1px solid rgba(180, 200, 240, 0.55);
  box-shadow: var(--shadow-soft);
}

.seo-text h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.seo-text p {
  color: rgb(var(--text-secondary));
  font-size: 14px;
  line-height: 1.55;
}

.seo-text p + p,
.seo-text .seo-list + p {
  margin-top: 10px;
}

.seo-text a {
  color: rgb(var(--text-primary));
  font-weight: 700;
}

.seo-text a.btn,
.seo-text a.btn--primary,
.seo-text a.btn--orange {
  color: #fff;
}

.seo-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgb(var(--text-secondary));
  font-size: 14px;
  line-height: 1.55;
}

.seo-list li + li {
  margin-top: 6px;
}

.seo-list--ordered {
  list-style: decimal;
}

.faq details {
  border-top: 1px solid rgb(var(--border-secondary));
  padding: 12px 0 4px;
}

.faq details:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: rgb(var(--text-main));
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin-top: 8px;
}

.footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgb(var(--border-secondary));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: rgb(var(--text-secondary));
  font-size: 13px;
}

.footer--disclaimer {
  align-items: flex-start;
}

.footer--disclaimer > div p + p {
  margin-top: 6px;
}

.footer__links {
  margin-top: 8px;
  font-size: 12px;
}

.footer__links a {
  font-weight: 600;
  color: rgb(var(--accent));
}

.footer a {
  color: rgb(var(--text-primary));
  font-weight: 700;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 40, 0.45);
  z-index: 35;
}

.overlay.is-open {
  display: block;
}

@media (max-width: 1400px) {
  .games {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .games {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .sidebar {
    transform: translateX(-105%);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 0 14px 32px;
  }

  .header {
    justify-content: flex-start;
    margin: 0 -14px;
    padding: 10px 14px;
  }

  .burger,
  .header__brand {
    display: flex;
  }

  .header__nav {
    display: none;
  }

  .games {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .search {
    max-width: none;
    margin-left: 0;
  }

  .banner {
    padding: 22px 18px;
  }
}

@media (max-width: 720px) {
  .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .game-card__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(18, 28, 55, 0.7), transparent 55%);
    justify-content: flex-end;
    padding-bottom: 10px;
  }

  .header__actions .btn--ghost {
    display: none;
  }
}

@media (max-width: 480px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === audit: cookie + age bar === */
.age-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #0f1c45;
  color: #eef3ff;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 16px;
  text-align: center;
}
.age-bar a { color: #ffc53d; }
.age-bar p { margin: 0; }
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgb(var(--border-main));
  border-radius: 14px;
  padding: 16px 18px;
}
.cookie-banner.is-hidden { display: none; }
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner__inner p {
  margin: 0;
  flex: 1 1 280px;
  color: rgb(var(--text-secondary));
  font-size: 14px;
}
.cookie-banner__inner a { color: var(--blue); }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
