*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0d10;
  --bg-elevated: #13151a;
  --bg-card: #16181f;
  --bg-card-hover: #1c1f28;
  --border: rgba(240, 235, 227, 0.07);
  --border-strong: rgba(240, 235, 227, 0.14);
  --text: #f0ebe3;
  --text-muted: #8a8680;
  --gold: #e8a838;
  --gold-dim: rgba(232, 168, 56, 0.15);
  --red: #ff3b5c;
  --red-dim: rgba(255, 59, 92, 0.12);
  --cream: #f0ebe3;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 68px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container { width: min(1200px, 92%); margin-inline: auto; }

/* Background */
.noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb--gold {
  width: 500px; height: 500px;
  background: rgba(232, 168, 56, 0.08);
  top: -120px; right: -80px;
}

.orb--red {
  width: 400px; height: 400px;
  background: rgba(255, 59, 92, 0.06);
  bottom: 200px; left: -100px;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.brand__name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand__name span { color: var(--gold); }

.nav { display: flex; gap: 1.75rem; }

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__link:hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--accent {
  background: var(--gold);
  color: var(--bg);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 168, 56, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.825rem; }
.btn--full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2.5rem) 0 1.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.live-dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero__btns { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 520px;
}

.hero__stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__stat strong {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
}

.hero__stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero__showcase {
  position: relative;
  min-width: 0;
  perspective: 1600px;
  perspective-origin: 55% 45%;
}

.hero__showcase::before {
  content: '';
  position: absolute;
  inset: 12% -10% -14% 18%;
  background: radial-gradient(circle at 40% 45%, rgba(232, 168, 56, 0.2), transparent 62%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.ml-app {
  --ml-bg: #0c0d10;
  --ml-panel: #13151a;
  --ml-border: rgba(240, 235, 227, 0.08);
  --ml-muted: #8a8680;
  --ml-gold: #e8a838;
  --ml-green: #3dd68c;
  position: relative;
  z-index: 1;
  background: var(--ml-bg);
  border: 1px solid rgba(240, 235, 227, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    -18px 28px 50px rgba(0, 0, 0, 0.45),
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(232, 168, 56, 0.07);
  font-family: var(--font);
  color: #f0ebe3;
  -webkit-font-smoothing: antialiased;
  transform-style: preserve-3d;
  /* Static mild tilt — no rotating animation (that blurs text). */
  transform: rotateY(-9deg) rotateX(3deg) translateZ(0);
  transition: transform 0.45s ease;
  will-change: transform;
}

.ml-app:hover {
  transform: rotateY(-5deg) rotateX(1.5deg) translateZ(8px);
}

.ml-app::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 5;
}

.ml-topbar {
  display: flex;
  align-items: center;
  min-height: 48px;
  background: var(--ml-panel);
  border-bottom: 1px solid var(--ml-border);
}

.ml-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.9rem;
  min-width: 0;
}

.ml-topbar__logo { flex-shrink: 0; border-radius: 7px; }

.ml-topbar__brand strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
}

.ml-topbar__brand strong span { color: var(--ml-gold); }

.ml-topbar__brand small {
  display: block;
  font-size: 0.62rem;
  color: var(--ml-muted);
}

.ml-topbar__status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  font-size: 0.72rem;
  color: var(--ml-muted);
  border-right: 1px solid var(--ml-border);
  white-space: nowrap;
}

.ml-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ml-green);
  box-shadow: 0 0 8px rgba(61, 214, 140, 0.55);
}

.ml-topbar__controls {
  display: flex;
  align-self: stretch;
}

.ml-win {
  width: 42px;
  position: relative;
}

.ml-win--min::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--ml-muted);
  transform: translate(-50%, -50%);
}

.ml-win--close::before,
.ml-win--close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: #ff6b84;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ml-win--close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ml-shell {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  min-height: 420px;
  height: clamp(420px, 46vw, 520px);
}

.ml-side {
  position: relative;
  padding: 1.35rem 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(19, 21, 26, 0.72);
  border-right: 1px solid var(--ml-border);
  overflow: hidden;
}

.ml-side__glow {
  position: absolute;
  inset: auto -30% 45% -30%;
  height: 140px;
  background: radial-gradient(ellipse at center, rgba(232, 168, 56, 0.14), transparent 70%);
  pointer-events: none;
}

.ml-eyebrow {
  position: relative;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ml-gold);
}

.ml-title {
  position: relative;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ml-sub {
  position: relative;
  font-size: 0.8rem;
  color: var(--ml-muted);
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.ml-inject {
  position: relative;
  margin-top: auto;
  width: 100%;
  border: none;
  border-radius: 11px;
  padding: 0.85rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, #f0b84a 0%, #d49120 100%);
  color: #1a1408;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(255, 220, 140, 0.35) inset,
    0 10px 24px rgba(232, 168, 56, 0.28);
  pointer-events: none;
}

.ml-inject__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.ml-pills {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.ml-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ml-border);
  border-radius: 8px;
  padding: 0.4rem 0.3rem;
  text-align: center;
}

.ml-pill span {
  display: block;
  font-size: 0.52rem;
  color: var(--ml-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}

.ml-pill strong {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
}

.ml-games {
  padding: 0.95rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--ml-bg);
}

.ml-games__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ml-games__title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ml-games__sub {
  font-size: 0.68rem;
  color: var(--ml-muted);
  margin-top: 0.12rem;
}

.ml-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 9px;
  border: 1px solid var(--ml-border);
  background: rgba(12, 13, 16, 0.55);
  color: var(--ml-muted);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.ml-search svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.ml-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.ml-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--ml-border);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--game-color, #e8a838) 55%, #0c0d10), #12141a 70%);
}

.ml-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0.1px);
}

.ml-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.12) 42%, transparent 68%);
  pointer-events: none;
}

.ml-card__name {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* Sections */
.section-header { margin-bottom: 2rem; }
.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.section-title--center { text-align: center; margin-bottom: 2.5rem; }
.section-sub { color: var(--text-muted); font-size: 0.9rem; }

/* Search */
.search-box {
  position: relative;
  flex: 1;
  max-width: 360px;
  min-width: 220px;
}

.search-box svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.7rem 4.5rem 0.7rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus { border-color: var(--gold); }

.search-box kbd {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.15rem 0.45rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Filters */
.filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.filter {
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter:hover { border-color: var(--border-strong); color: var(--text); }

.filter--active {
  background: var(--gold-dim);
  border-color: rgba(232, 168, 56, 0.35);
  color: var(--gold);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag--cheat { background: var(--red-dim); color: #ff8fa3; }
.tag--script { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }
.tag--skinchanger { background: rgba(168, 85, 247, 0.12); color: #d8b4fe; }
.tag--tool { background: rgba(232, 168, 56, 0.12); color: var(--gold); }

/* Catalog */
.catalog {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 5rem;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.game-select {
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8680' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  min-width: 180px;
}

.game-select:focus { border-color: var(--gold); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--game-color, var(--gold)) 45%, var(--border));
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--game-color, var(--gold)) 20%, transparent);
}

.product-card__cover {
  position: relative;
  height: 148px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--game-color, #333) 50%, #0a0a0c),
    var(--bg-elevated)
  );
}

.product-card__cover--fallback {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--game-color, #333) 65%, #000),
    color-mix(in srgb, var(--game-color, #333) 25%, var(--bg-elevated))
  );
}

.product-card__cover--fallback .product-card__cover-bg {
  object-fit: cover;
  object-position: center;
}

.product-card__cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
}

.product-card__cover-bg[data-cover-type="skinchanger"] {
  object-position: center 12%;
}

.product-card__cover-bg[data-cover-type="cheat"] {
  object-position: center 40%;
}

.product-card__cover-bg[data-cover-type="script"],
.product-card__cover-bg[data-cover-type="tool"] {
  object-position: center 35%;
}

.product-card:hover .product-card__cover-bg {
  transform: scale(1.06);
}

/* Hide logo overlay when real cover art is loaded */
.product-card__cover:not(.product-card__cover--fallback) .product-card__cover-watermark {
  display: none;
}

.product-card__cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(12, 13, 16, 0.88) 100%
  );
  pointer-events: none;
}

.product-card__cover--fallback .product-card__cover-fade {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.product-card__cover-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

.product-card__cover-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.product-card__cover-meta {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.product-card__cover-meta .tag {
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-card__status {
  font-size: 0.65rem;
  color: #4ade80;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 5px;
}

.product-card__body {
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-card__cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}

/* Game page */
.game-hero {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  margin-bottom: 2rem;
}

.game-hero__banner {
  height: 220px;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black 30%, transparent);
}

.game-hero__content {
  margin-top: -100px;
  position: relative;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--gold); }

.game-hero__head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.game-hero__logo-wrap {
  width: 88px; height: 88px;
  border-radius: 16px;
  background: #f0ebe3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.game-hero__logo {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}

.game-hero__title {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.game-hero__tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.game-hero__count {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.game-catalog { padding-top: 0; }

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.feature:hover { border-color: var(--border-strong); }

.feature__num {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.35;
  margin-bottom: 0.75rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FAQ */
.faq {
  position: relative;
  z-index: 1;
  padding: 3rem 0 5rem;
}

.faq__wrap { max-width: 680px; }

.faq__list { display: flex; flex-direction: column; gap: 0.6rem; }

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__item summary {
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
}

.faq__item[open] summary::after { content: '−'; }

.faq__item p {
  padding: 0 1.2rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy { font-size: 0.8rem; color: var(--text-muted); }

.footer__nav { display: flex; gap: 1.25rem; }

.footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.825rem;
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--text); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: min(780px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.25s ease;
  outline: none;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color 0.2s, border-color 0.2s;
}

.modal__close:hover { color: var(--text); border-color: var(--border-strong); }

.modal__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.modal__cover {
  width: 112px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.modal__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__head-info {
  min-width: 0;
  padding-right: 2rem;
}

.modal__title {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0.45rem;
  line-height: 1.25;
}

.modal__tabs {
  display: flex;
  gap: 0.35rem;
  padding: 1.15rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.modal__tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 0.95rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.modal__tab:hover { color: var(--text); }

.modal__tab--active {
  color: var(--gold);
  background: var(--bg-card);
}

.modal__body {
  padding: 1.5rem;
}

.modal__panel[hidden] { display: none; }

.modal__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.modal__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.modal__stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 0.75rem;
  text-align: center;
}

.modal__stat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.modal__stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.modal__password {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.modal__password-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.modal__password code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.modal__guide-title {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.install-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.install-step__num {
  width: 28px; height: 28px;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.install-step strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.install-step p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .ml-app {
    max-width: 760px;
    transform: none;
  }
  .ml-app:hover { transform: none; }
  .ml-shell { grid-template-columns: minmax(200px, 34%) 1fr; min-height: 380px; height: auto; }
  .ml-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .modal__stats { grid-template-columns: 1fr; }
  .modal__head { flex-direction: column; align-items: flex-start; }
  .modal__cover { width: 100%; height: 140px; }
  .modal__head-info { padding-right: 0; }
}

@media (max-width: 640px) {
  .ml-shell { grid-template-columns: 1fr; max-height: none; }
  .ml-side { border-right: none; border-bottom: 1px solid var(--ml-border); }
  .ml-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); mask-image: none; max-height: 220px; overflow: hidden; }
}

@media (max-width: 768px) {
  .nav, .header .btn { display: none; }
  .burger { display: flex; }

  .nav.nav--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(12, 13, 16, 0.97);
    backdrop-filter: blur(16px);
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

  .section-header--row { flex-direction: column; align-items: stretch; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .game-select { width: 100%; }
  .search-box { max-width: 100%; }
  .search-box kbd { display: none; }
  .game-hero__head { flex-direction: column; align-items: flex-start; }
}
