﻿/* ============================================================
   JAVAR — Дызайн-сістэма
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg:          #181824;
  --surface:     #1F1F2E;
  --surface-2:   #262638;
  --border:      #2E2E44;
  --text:        #FFFFFF;
  --text-body:   #E8E8F0;
  --text-muted:  #8A8AAE;
  --text-dim:    #444466;
  --accent:      #FF2626;
  --accent-glow: rgba(255, 38, 38, 0.15);
  --green:       #4ADE80;
  --yellow:      #FACC15;

  --font-logo:   'Jaro', 'Arial Black', Impact, sans-serif;
  --font-body:   'Manrope', 'Segoe UI', system-ui, -apple-system, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-head:   'Arial', 'Helvetica Neue', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono:   'IBM Plex Mono', 'Cascadia Code', 'Consolas', 'Noto Sans SC', 'Microsoft YaHei', monospace;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;

  --nav-h:       68px;
  --max-w:       1180px;
  --page-px:     48px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

/* ── Chinese language rendering ─────────────────────────── */
html[lang="zh"] body,
html[lang="zh"] button,
html[lang="zh"] input {
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; outline: none; border: none; background: none; }
img { display: block; max-width: 100%; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 999px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
* { scrollbar-width: thin; scrollbar-color: var(--border) var(--surface-2); }

/* --- Global Loading Overlay --- */
.page-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  transform: none; /* prevent ancestor transforms from affecting fixed positioning */
}
.page-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loading__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading__text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Hide main content until loaded */
html:not(.loaded) .page > *:not(.page-loading) {
  display: none !important;
}
html.loaded .page .page-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 var(--page-px);
  height: var(--nav-h);
  background: rgba(24, 24, 36, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.navbar__logo {
  font-family: var(--font-logo);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--accent);
  margin-right: 60px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.navbar__logo:hover {
  filter: drop-shadow(0 0 8px rgba(255, 38, 38, 0.6)) drop-shadow(0 0 20px rgba(255, 38, 38, 0.3));
  transform: scale(1.05);
}
.navbar__logo img {
  display: block;
  height: 28px;
  transition: filter 0.3s ease;
}
.navbar__logo:hover img {
  filter: brightness(1.2) saturate(1.3);
}

.navbar__menu {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  order: 1;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin-right: auto;
  min-width: 0;
}

.navbar__links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--text); }

.navbar__submit-item {
  display: flex;
  justify-content: center;
  margin-left: 24px;
}

.navbar__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 clamp(10px, 1.2vw, 14px);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 38, 38, 0.2), 0 8px 20px var(--accent-glow);
  transition: opacity 0.2s, transform 0.2s;
}
.navbar__submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.navbar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.navbar__search svg { flex-shrink: 0; }

.navbar__search input {
  flex: 1;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.navbar__search input::placeholder { color: var(--text-muted); }
.navbar__search input:focus { color: var(--text); }

.navbar__lang {
  display: flex;
  align-items: center;
  margin-left: 24px;
  order: 2;
  position: relative;
}
#lang-switcher::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -60px;
  right: -10px;
  bottom: -110px;
  z-index: 99;
}
#lang-switcher.no-hover-zone::after {
  display: none;
}

#lang-switcher.is-animating .lang-satellite {
  pointer-events: none !important;
  cursor: default !important;
}

.lang-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, border-color .2s, transform .2s, box-shadow .2s;
  z-index: 101;
}
.lang-btn:hover { border-color: var(--border); color: var(--text); background: var(--surface-2); box-shadow: 0 0 12px rgba(220, 50, 80, .3); transform: scale(1.15); }
.lang-btn:active { transform: scale(0.95); }
.lang-satellite {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(0, 0) scale(0);
  pointer-events: none;
  z-index: 100;
}
.lang-satellite--visible {
  opacity: 1;
  transform: translate(var(--sat-x, 0px), var(--sat-y, 0px)) scale(1);
  pointer-events: auto;
  transition: opacity .2s ease-out, transform .25s ease-out;
}
.lang-satellite--closing {
  opacity: 0 !important;
  transform: translate(0, 0) scale(0) !important;
  pointer-events: none !important;
  transition: opacity .2s ease-in, transform .25s ease-in;
}
.lang-satellite--selected {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  pointer-events: none;
  z-index: 103;
  transition: transform .3s ease-in-out !important;
}
.lang-satellite--landed {
  display: none;
}
.lang-satellite:not(.lang-satellite--selected):not(.lang-satellite--closing):not(.lang-satellite--landed):hover {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 0 12px rgba(220, 50, 80, .3);
  transform: translate(var(--sat-x, 0px), var(--sat-y, 0px)) scale(1.15);
  z-index: 102;
}
@media (hover: none) {
  .lang-satellite:not(.lang-satellite--selected):not(.lang-satellite--closing):not(.lang-satellite--landed):hover {
    box-shadow: none;
    transform: translate(var(--sat-x, 0px), var(--sat-y, 0px)) scale(1);
  }
  .lang-btn:hover { border-color: var(--border); color: var(--text-muted); transform: none; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: calc(var(--max-w) + var(--page-px) * 2);
  margin-inline: auto;
}

.main {
  flex: 1;
  padding: 48px var(--page-px) 0;
  max-width: calc(var(--max-w) + var(--page-px) * 2);
  width: 100%;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-heading--compact { margin-bottom: 16px; }

.section-heading h1,
.section-heading h2 {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  text-align: center;
}

.section-heading__bar {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  width: 100%;
  min-width: 60px;
}

/* ============================================================
   HOMEPAGE STATS
   ============================================================ */
.translation-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 37px;
}

.translation-stat {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 118px;
  padding: 24px 28px;
  min-width: 220px;
  max-width: 340px;
  flex: 1;
  background: linear-gradient(145deg, var(--surface), rgba(38, 38, 56, 0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.3s ease, box-shadow 0.6s ease;
}

.translation-stat:hover,
.translation-stat.js-hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 -4px 16px rgba(220, 50, 80, .25), 0 8px 24px rgba(220, 50, 80, .4) !important;
  z-index: 50;
}

.translation-stat::after {
  content: '';
  position: absolute;
  inset: auto -24px -36px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent-glow);
  opacity: .75;
}

.translation-stat__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.translation-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.translation-stat__value {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   GAME CARD
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}


@keyframes fadeSlideUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gameSlideUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: border-color 0.2s, transform 0.3s ease, box-shadow 0.6s ease;
}
.games-grid.grid--animate > .game-card:nth-child(-n+6) {
  animation: gameSlideUp 0.4s ease both;
}
.games-grid.grid--animate > .game-card:nth-child(1) { animation-delay: 0s; }
.games-grid.grid--animate > .game-card:nth-child(2) { animation-delay: 0.06s; }
.games-grid.grid--animate > .game-card:nth-child(3) { animation-delay: 0.12s; }
.games-grid.grid--animate > .game-card:nth-child(4) { animation-delay: 0.18s; }
.games-grid.grid--animate > .game-card:nth-child(5) { animation-delay: 0.24s; }
.games-grid.grid--animate > .game-card:nth-child(6) { animation-delay: 0.3s; }
.game-card:hover,
.game-card.js-hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 -4px 16px rgba(220, 50, 80, .25), 0 8px 24px rgba(220, 50, 80, .4) !important;
  z-index: 50;
}

.game-card__cover {
  aspect-ratio: 16/9;
  background: var(--surface-2) center/cover no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.game-card__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

.game-card__ai-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #2E2E44;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 2;
}
.game-card__ai-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255, 38, 38, 0.82);
  border-radius: 50%;
}
.game-card__official-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #2E2E44;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 2;
}
.game-card__official-badge-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #26C826;
}
.game-card__verified-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(24, 24, 36, 0.84);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 2;
}
.game-card__verified-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.18);
  color: #4ADE80;
  font-size: 9px;
}
.game-card__upcoming-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(24, 24, 36, 0.84);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 2;
}
.game-card__upcoming-badge-icon {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: rgba(251, 191, 36, 0.9);
}
.game-card__released-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(24, 24, 36, 0.84);
  color: #A78BFA;
  border: 1px solid rgba(167, 139, 250, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 2;
}
.game-card__released-badge::before {
  content: '🚀';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.18);
  font-size: 8px;
}

/* ── Badge tooltips ─────────────────────────────────────────────── */
.game-card__has-tooltip {
  cursor: help;
}
.js-tooltip {
  position: fixed;
  z-index: 9998;
  width: fit-content;
  max-width: min(400px, 90vw);
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
}
.js-tooltip.active {
  opacity: 1;
}

/* ── Skeleton shimmer ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Translator Cards ──────────────────────────────────── */
.translators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}
.translators-grid.grid--animate > .translator-card:nth-child(-n+6) {
  animation: crSlideUp 0.4s ease both;
}
.translators-grid.grid--animate > .translator-card:nth-child(1) { animation-delay: 0s; }
.translators-grid.grid--animate > .translator-card:nth-child(2) { animation-delay: 0.06s; }
.translators-grid.grid--animate > .translator-card:nth-child(3) { animation-delay: 0.12s; }
.translators-grid.grid--animate > .translator-card:nth-child(4) { animation-delay: 0.18s; }
.translators-grid.grid--animate > .translator-card:nth-child(5) { animation-delay: 0.24s; }
.translators-grid.grid--animate > .translator-card:nth-child(6) { animation-delay: 0.3s; }

.translator-card img {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.translator-card img.img-loaded {
  opacity: 1;
}
.translator-card__name,
.translator-card__count {
  animation: fadeIn 0.3s ease 0.1s both;
}

@keyframes crSlideUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Translator page skeleton animations */
.translator-banner.grid--animate {
  animation: fadeSlideUp 0.4s ease both;
  animation-delay: 0s;
}
.skeleton-card.grid--animate {
  animation: fadeSlideUp 0.4s ease both;
  animation-delay: 0.12s;
}

/* Home page skeleton animations */
.home-skeleton {
  animation: fadeSlideUp 0.4s ease both;
}
.home-skeleton:nth-child(1) { animation-delay: 0s; }
.home-skeleton:nth-child(2) { animation-delay: 0.08s; }
.home-skeleton:nth-child(3) { animation-delay: 0.16s; }

/* Global reveal animation */
.reveal {
  opacity: 0;
  transition: opacity .5s ease, box-shadow .5s ease, border-color .3s ease;
}
.reveal.revealed {
  opacity: 1;
}

/* Game card reveal (overrides generic .reveal) */
.game-card.reveal {
  opacity: 0;
  transform: none;
  transition: opacity .5s ease;
}
.game-card.reveal.revealed {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .3s ease, box-shadow 0.6s ease, border-color 0.2s;
}

/* Translator card reveal: opacity only, no movement */
.translator-card.reveal {
  opacity: 0;
  transform: none;
  transition: opacity .5s ease;
}
.translator-card.reveal.revealed {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .3s ease, box-shadow .6s ease;
}

/* Breadcrumb reveal animations */
.breadcrumb.reveal {
  transition-delay: .15s;
}

/* Translator page grid animations */
.translator-games.grid--animate > .translator-game-card {
  animation: fadeSlideUp 0.4s ease both;
}
.translator-games.grid--animate > .translator-game-card:nth-child(1) { animation-delay: 0s; }
.translator-games.grid--animate > .translator-game-card:nth-child(2) { animation-delay: 0.06s; }
.translator-games.grid--animate > .translator-game-card:nth-child(3) { animation-delay: 0.12s; }
.translator-games.grid--animate > .translator-game-card:nth-child(4) { animation-delay: 0.18s; }
.translator-games.grid--animate > .translator-game-card:nth-child(5) { animation-delay: 0.24s; }
.translator-games.grid--animate > .translator-translations__heading {
  animation: fadeSlideUp 0.4s ease both;
}

.translator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: transform .3s ease, box-shadow .6s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  z-index: 0;
}
.translator-card:hover,
.translator-card.js-hover,
.reveal.revealed.translator-card:hover,
.reveal.revealed.translator-card.js-hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 -4px 16px rgba(220, 50, 80, .25), 0 8px 24px rgba(220, 50, 80, .4) !important;
  z-index: 50;
}
.translator-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 8px;
}
.translator-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.translator-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--surface-2);
}
.translator-card__info {
  flex: 1;
  min-width: 0;
}
.translator-card__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.translator-card__count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 2px 9px;
  background: var(--surface-2);
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.translator-card__count-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ── Creator Game Tiles ─────────────────────────────────── */
.translator-card__games {
  display: grid;
  gap: 8px;
  padding: 6px 18px 18px;
}
.translator-card__games--1 { grid-template-columns: 1fr; }
.translator-card__games--2 { grid-template-columns: repeat(2, 1fr); }
.translator-card__games--3 { grid-template-columns: repeat(2, 1fr); }
.translator-card__games--4 { grid-template-columns: repeat(2, 1fr); }

.translator-card__tile {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.translator-card__tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color .15s ease;
  z-index: 2;
}
.translator-card__tile:hover::after {
  border-color: var(--accent);
}
.translator-card__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.translator-card__tile--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* ── Overflow Tile ──────────────────────────────────────── */
.translator-card__tile--overflow {
  position: relative;
  background: rgba(220, 50, 80, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.translator-card__tile--overflow img {
  filter: blur(4px) brightness(0.6);
}
.translator-card__tile-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  z-index: 2;
}

/* ── Creator Game Tooltip ───────────────────────────────── */
.translator-card__tooltip {
  position: fixed;
  z-index: 9998;
  width: 320px;
  max-width: min(320px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
.translator-card__tooltip.active {
  opacity: 1;
}
.translator-card__tooltip-top {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}
.translator-card__tooltip-info {
  flex: 1;
  min-width: 0;
}
.translator-card__tooltip-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.translator-card__tooltip-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.translator-card__tooltip-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.translator-card__tooltip-genre {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── Creators Controls (sort) ───────────────────────────── */

/* ── Creator Profile ────────────────────────────────────── */
.translator-profile {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px;
}
.translator-profile__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.translator-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.translator-profile__name {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}
.translator-profile__type {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.translator-profile__desc {
  font-size: 15px;
  line-height: 1.5;
  margin: 24px 0;
  color: var(--text);
}
.translator-profile__socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 32px;
}
.translator-profile__social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
}
.translator-profile__social-link:hover {
  background: var(--border);
}
.translator-profile__social-link img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}
.translator-profile__translations h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.game-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge--genre {
  background: var(--accent-glow);
  color: var(--accent);
}
.badge--manual {
  background: rgba(38, 194, 106, 0.12);
  color: #26C26A;
}
.badge--ai {
  background: rgba(122, 122, 154, 0.15);
  color: var(--text-muted);
}
.badge--verified {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--green);
}

.stars {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  line-height: 1;
}

.game-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-top: 4px;
}

.game-card__dev {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  height: 34px;
  margin-top: 8px;
}

.btn--primary-lg {
  padding: 15px 36px;
  background: var(--accent);
  color: #fff;
  height: 49px;
  border-radius: var(--radius-md);
}

.btn--download {
  padding: 12px 0;
  background: var(--accent);
  color: #fff;
  width: 100%;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.btn--outline {
  padding: 9px 18px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  gap: 6px;
}
.btn--outline::after { content: ' ▾'; font-size: 10px; }

/* ============================================================
   FILTER BAR & CATALOG COMPONENTS
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 100%;
}
.catalog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 160px;
  flex: 1 1 260px;
  max-width: 400px;
  transition: border-color .2s;
}
.catalog-search:focus-within { border-color: var(--accent); }
.catalog-search input {
  flex: 1; font-size: 14px; color: var(--text);
  background: none; border: none; outline: none;
  font-family: var(--font-body);
}
.catalog-search input::placeholder { color: var(--text-muted); }
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .3s, color .3s, background .3s;
  flex: 0 1 auto;
  flex-shrink: 0;
}
.filter-toggle-btn::after { content: '▾'; font-size: 10px; margin-left: auto; color: var(--text-muted); transition: color .2s; }
.filter-toggle-btn:hover { border-color: #4a4a6a; color: var(--text); }
.filter-toggle-btn:hover::after { color: var(--text); }
.filter-toggle-btn.has-value { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.filter-toggle-btn.has-value::after { color: var(--accent); }
.filter-btn-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.filter-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity .25s, transform .25s, width .25s, margin .25s;
  overflow: hidden;
}
.filter-clear-btn.visible { width: 22px; margin-left: 6px; opacity: 1; transform: scale(1); pointer-events: auto; }

/* ── Dropdown filter ──────────────────────────── */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
  user-select: none;
}
.dropdown__trigger:hover { border-color: #4a4a6a; color: var(--text); }
.dropdown__trigger.has-value { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.dropdown__trigger.has-value:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); filter: brightness(1.15); }
.dropdown__arrow { font-size: 10px; margin-left: 2px; transition: transform .2s; color: var(--text-muted); }
.dropdown.open .dropdown__arrow { transform: rotate(180deg); }
.dropdown__trigger.has-value .dropdown__arrow { color: var(--accent); }
.dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  max-width: calc(100vw - 32px);
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .2s, visibility .2s, transform .2s;
}
.dropdown.open .dropdown__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.dropdown__search { position: sticky; top: -6px; z-index: 1; padding: 6px 0 8px; background: var(--surface); }
.dropdown__search-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}
.dropdown__search-input:focus { border-color: var(--accent); }
.dropdown__search-input::placeholder { color: var(--text-dim); }
.dropdown__empty { display: none; padding: 9px 12px; color: var(--text-dim); font-size: 13px; }
.dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  min-width: 0;
}
.dropdown__item:hover { background: var(--surface-2); color: var(--text); }
.dropdown__item.selected { color: var(--accent); background: var(--accent-glow); }
.dropdown__item .check { width: 16px; font-size: 12px; color: var(--accent); flex-shrink: 0; text-align: center; }
.dropdown__divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Active filters chips ─────────────────────── */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; min-height: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.chip__remove { cursor: pointer; font-size: 14px; line-height: 1; opacity: .7; }
.chip__remove:hover { opacity: 1; }

/* ── Filter overlay ────────────────────────────── */
.filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s .3s;
}
.filter-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease, visibility 0s 0s; }

/* ── Filter panel (slide-out) ──────────────────── */
.filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 500;
  width: min(380px, 90vw);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s .3s;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.filter-panel.open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s 0s; }
.filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.filter-panel__title { font-size: 16px; font-weight: 700; color: var(--text); }
.filter-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.filter-panel__close:hover { border-color: var(--text); color: var(--text); }
.filter-panel__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.filter-panel__body .dropdown { width: 100%; }
.filter-panel__body .dropdown__trigger { width: 100%; justify-content: space-between; }
.filter-panel__body .dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 240px;
  margin-top: 0;
  z-index: 200;
  overflow-x: hidden;
}
.filter-panel__footer { padding: 16px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }
.filter-panel__footer .btn--outline.has-value { border-color: var(--accent) !important; color: var(--accent) !important; background: var(--accent-glow); opacity: 1 !important; transform: none !important; }
.filter-panel__footer .btn--outline.has-value:hover { filter: brightness(1.15); }
.filter-panel__footer .btn--outline:hover { border-color: #4a4a6a; color: var(--text); opacity: 1; transform: none; }

/* ── Empty / Error ────────────────────────────── */
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; padding: 60px 0; gap: 12px; color: var(--text-muted); }
.empty-state__icon { font-size: 48px; opacity: .4; }
.empty-state__title { font-size: 18px; font-weight: 700; color: var(--text); }

/* ── Pagination ───────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: border-color .2s, color .2s;
}
.page-btn:hover { border-color: #4a4a6a; color: var(--text); }
.page-btn.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.page-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.page-gap { color: var(--text-muted); padding: 0 2px; }
#dd-orth .dropdown__menu { left: auto; right: 0; }

/* ── Advanced filter modal ─────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  overflow: hidden;
}
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal__title { font-size: 16px; font-weight: 700; color: var(--text); }
.modal__body { padding: 14px 22px 18px; max-height: 60vh; overflow-y: auto; }
.af-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.af-group:last-child { margin-bottom: 0; }
.af-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s;
}
.af-option:hover { background: var(--surface-2); color: var(--text); }
.af-option.selected { color: var(--accent); background: var(--accent-glow); }
.af-option .check { width: 18px; font-size: 14px; color: var(--accent); flex-shrink: 0; text-align: center; }
.modal__footer { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 18px; }
.modal__footer .btn { margin-top: 0; }
.modal__footer .btn--outline::after { content: none; }
.modal__footer .btn--outline:hover { border-color: #4a4a6a; color: var(--text); }

/* ============================================================
   TRANSLATORS PAGE COMPONENTS
   ============================================================ */
.filter-bar--translators {
  flex-direction: column;
  position: relative;
  z-index: 10;
}
.translators-search {
  width: 100%;
  max-width: 480px;
}
.translators-search input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  box-sizing: border-box;
}
.translators-search input:focus { border-color: var(--accent); outline: none; }
.translators-search input::placeholder { color: var(--text-muted); }
.translators-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.translators-filter-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: max-width .5s cubic-bezier(.4,0,.2,1);
  position: relative;
  z-index: 500;
}
.translators-divider { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.translators-count-wrap {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  transition: max-width .5s cubic-bezier(.4,0,.2,1), opacity .3s ease .35s, margin-left .5s cubic-bezier(.4,0,.2,1);
}
.translators-controls-row.loaded .translators-count-wrap { max-width: 200px; opacity: 1; margin-left: 6px; }
.translators-count { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.translators-filter-box .filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
}
.translators-filter-box .filter-btn:hover { border-color: #4a4a6a; color: var(--text); }
.translators-filter-box .filter-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.translators-filter-box .sort-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  position: relative;
  flex-shrink: 0;
}
.translators-filter-box .sort-order-btn:hover { border-color: #4a4a6a; color: var(--text); }
.translators-filter-box .sort-order-btn svg { transition: transform .3s cubic-bezier(.4,0,.2,1); }
.sort-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}
.dd-filter { position: relative; display: inline-block; }
.dd-filter__trigger { position: relative; }
.dd-filter__trigger:hover .sort-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sort-order-btn:hover .sort-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-filter__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
  user-select: none;
}
.dd-filter__trigger:hover { border-color: #4a4a6a; color: var(--text); }
.dd-filter__trigger.has-value { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.dd-filter__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 999;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .2s, visibility .2s, transform .2s;
}
.dd-filter.open .dd-filter__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.dd-filter__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.dd-filter__item:hover { background: var(--surface-2); color: var(--text); }
.dd-filter__item.selected { color: var(--accent); background: var(--accent-glow); }
.dd-filter__item .check { width: 16px; font-size: 12px; color: var(--accent); flex-shrink: 0; text-align: center; opacity: 0; transition: opacity .15s; }
.dd-filter__item.selected .check { opacity: 1; }
.dd-filter__all {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dd-filter__all.selected { background: var(--accent-glow); color: var(--accent); }
.dd-filter__all .check { width: 16px; font-size: 12px; color: var(--accent); flex-shrink: 0; text-align: center; opacity: 0; transition: opacity .15s; }
.dd-filter__all.selected .check { opacity: 1; }
.dd-filter__all:hover { background: var(--surface-2); }
.dd-filter__divider { height: 1px; background: var(--border); margin: 4px 0; }
.translators-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 15px; }

/* ============================================================
   TRANSLATOR PROFILE PAGE
   ============================================================ */
.translator-loading, .translator-not-found {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}
.translator-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: none;
  padding: 24px;
}
.translator-banner__avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.translator-banner__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  font-size: 48px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}
.translator-banner__info { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.translator-banner__type {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
}
.translator-banner__name { font-size: 28px; font-weight: 700; color: var(--text); }
.translator-banner__desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }
.translator-banner__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; justify-content: center; }
.translator-banner__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  transition: border-color .2s, background .2s, transform .2s;
}
.translator-banner__social-link:hover { border-color: var(--accent); background: var(--accent-glow); transform: scale(1.15); }
.translator-banner__social-link img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.translator-banner__support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  text-decoration: none;
  margin-top: 8px;
}
.translator-banner__support:hover { opacity: .88; transform: translateY(-1px); }
.translator-banner__support-wrap {
  margin-top: 12px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.translator-banner__donation-row {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.translator-banner__donation-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  opacity: 0;
  transform: translate(var(--dx, 0px), var(--dy, -10px)) scale(0);
  pointer-events: none;
  transition: border-color .2s, background .2s, transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  transition-delay: var(--delay, 0s);
}
.translator-banner__donation-row.open .translator-banner__donation-link {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0) scale(1);
}
.translator-banner__donation-row.closing .translator-banner__donation-link {
  opacity: 0;
  transform: translate(var(--dx, 0px), var(--dy, -10px)) scale(0);
  pointer-events: none;
  transition: opacity .15s ease-in, transform .15s ease-in;
  transition-delay: var(--delay, 0s);
}
.translator-banner__donation-link:hover { border-color: var(--accent); background: var(--accent-glow); transform: scale(1.15) !important; z-index: 11; transition-delay: 0s !important; }
.translator-banner__donation-link img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.translator-banner__donation-link img { width: 18px; height: 18px; }
.translator-translations { margin-top: 32px; }
.translator-translations__heading { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.translator-translations__label { font-size: 13px; color: var(--text-muted); }
.translator-games { display: flex; flex-direction: column; gap: 16px; }
.translator-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(34, 197, 94, .15);
  border: 1px solid rgba(34, 197, 94, .4);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   GAME PAGE COMPONENTS
   ============================================================ */
.translation-cards { display: flex; flex-direction: column; gap: 16px; }
.translation-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: border-color .2s;
}
.translation-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 16px;
}
.translation-card__left { display: flex; flex-direction: column; gap: 6px; }
.translation-card__studio { font-size: 17px; font-weight: 700; color: var(--text); }
.translation-card__studio-tip {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  cursor: help;
  transition: color .15s ease, border-color .15s ease;
}
.translation-card__studio-tip:hover { color: var(--text); border-color: var(--text); }
.translation-card__studio-tip::after {
  content: attr(data-translators);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: min(340px, 80vw);
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}
.translation-card__studio-tip:hover::after { opacity: 1; visibility: visible; transform: translateY(0); }
.translation-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.translation-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.translation-card__body {
  border-top: 1px solid var(--border);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.translation-card__info-row { display: flex; gap: 32px; flex-wrap: wrap; }
.translation-card__info-item { display: flex; flex-direction: column; gap: 4px; }
.translation-card__info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.translation-card__info-value { font-size: 14px; font-weight: 600; color: var(--text); }
.translation-card__go { align-self: flex-start; }

/* ── Store buttons ─────────────────────────────── */
.store-buttons { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.store-btn {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface-2);
  cursor:pointer;
  transition:border-color .2s, background .2s, transform .15s;
  text-decoration:none;
}
.store-btn:hover { border-color:var(--accent); background:var(--accent-glow); transform:translateY(-2px); }
.store-btn svg { width:22px; height:22px; fill:currentColor; color:var(--text); transition:color .2s; }
.store-btn:hover svg { color:var(--accent); }
.store-btn__tip {
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%);
  z-index:20;
  padding:6px 10px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  color:var(--text);
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .12s ease, transform .12s ease, visibility .12s ease;
}
.store-btn:hover .store-btn__tip { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }

/* ── Site dialog ──────────────────────────────── */
.site-dialog {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-dialog__panel {
  width: min(420px, 100%);
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 38, 38, 0.08);
  overflow: hidden;
}
.site-dialog__body { padding: 24px 24px 18px; }
.site-dialog__eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.site-dialog__text { color: var(--text-body); font-size: 15px; font-weight: 600; line-height: 1.5; }
.site-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
}
.site-dialog__actions .btn { min-width: 92px; height: 38px; margin-top: 0; padding: 0 18px; }
.site-dialog__actions .btn:not(.btn--primary) {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-body);
}

/* ============================================================
   FEATURED / GAME OF THE DAY
   ============================================================ */
.featured {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 415px;
  margin: 0 auto;
  transition: border-color 0.2s, transform 0.3s ease, box-shadow 0.6s ease;
}
@media (min-width: 769px) {
  .featured {
    display: grid;
    grid-template-columns: minmax(360px, 420px) 1fr;
    gap: 40px;
    max-width: none;
    padding: 20px;
  }
}
.featured:hover,
.featured.js-hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 -4px 16px rgba(220, 50, 80, .25), 0 8px 24px rgba(220, 50, 80, .3) !important;
}

/* Выява: фіксаваны 16:9, абразаецца па межах блока */
.featured__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2) center/cover no-repeat;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
@media (min-width: 769px) {
  .featured {
    display: grid;
    grid-template-columns: minmax(360px, 420px) 1fr;
    gap: 40px;
    max-width: none;
    padding: 20px;
  }
  .featured__image {
    width: 100%;
    min-width: 360px;
    max-width: 420px;
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    align-self: start;
    margin-top: 45px;
  }
  .featured__header {
    align-self: start;
  }
}

.featured__image > .cover-img,
.game-card__cover > .cover-img,
.game-cover > .cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Калі выявы няма — паказваем плейсхолдар меншай вышыні */
.featured__image--placeholder {
  aspect-ratio: 16 / 5;
}
@media (min-width: 769px) {
  .featured__image--placeholder {
    width: 100%;
    min-width: 360px;
    max-width: 420px;
    aspect-ratio: 16/9;
    align-self: center;
    border-radius: var(--radius-lg);
  }
}

.featured__content {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  gap: 0;
  flex: 1;
  min-width: 0;
}
@media (min-width: 769px) {
  .featured__content {
    padding: 0;
  }
}

.featured__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.featured__label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.featured__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 8px;
}
@media (min-width: 769px) {
  .featured__title {
    font-size: 28px;
    margin-bottom: 12px;
  }
}

.featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.featured__tags .platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.featured__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 12px;
  max-width: 100%;
}
@media (min-width: 769px) {
  .featured__desc {
    font-size: 14px;
    margin-bottom: 16px;
  }
}

.featured__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.featured__meta-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.featured__meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.featured__meta-value {
  font-weight: 600;
  color: var(--text);
}

.featured__rating {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}

.featured__rating .stars { font-size: 20px; letter-spacing: 3px; }

.featured__rating .score {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.featured__actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: auto; padding-top: 16px; }

/* ── Platform / genre links ──────────────────────── */
.platform-links { display:flex; flex-wrap:wrap; gap:8px; }
.platform-link {
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text);
  background:var(--surface-2);
  font-size:13px;
  font-weight:700;
  transition:border-color .2s, color .2s, transform .15s;
}
.platform-link:hover { border-color:var(--text); color:var(--text); transform:translateY(-1px); }
.platform-link--genre { background:var(--accent-glow); border-color:transparent; color:var(--accent); }
.platform-link--genre:hover { border-color:var(--text); color:var(--text); background:var(--accent-glow); }

/* ============================================================
   ABOUT BLOCK
   ============================================================ */
.about-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.about-block p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ============================================================
   CATALOG FILTERS
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

/* ============================================================
   GAME PAGE
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -38px;
  margin-bottom: 24px;
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__sep { color: var(--text); font-weight: 600; }
.breadcrumb__current { color: var(--text); font-weight: 600; }

.game-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.game-title-block h1 {
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-align: center;
}
.game-title-block__bar {
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 52px;
}

.game-cover-col { display: flex; flex-direction: column; gap: 16px; }

.game-cover {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface) center/cover no-repeat;
}

.game-cover__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.download-count strong { color: #fff; font-weight: 700; }

.stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 10px;
}

.stat-card {
  flex: 1;
  min-width: 110px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-card__value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}
.stat-card__value--green { color: var(--green); }
.stat-card__value--yellow { color: var(--yellow); }
.stat-card__sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Info table */
.info-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }

.info-cell {
  padding: 14px 18px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.info-cell:last-child { border-right: none; }

.info-cell--full {
  grid-column: 1 / -1;
  border-right: none;
}

.info-cell__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.info-cell__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-sm {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag-sm--red { background: var(--accent-glow); color: var(--accent); }
.tag-sm--green { background: rgba(38,194,106,0.12); color: #26C26A; }
.tag-sm--neutral { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.tag-sm--accent { background: var(--accent-glow); border: 1px solid var(--accent); color: var(--accent); }
.tag-sm--accent:hover { background: var(--accent); color: #fff; }


/* Stats wide */
.stat-cards-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.stat-card-wide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card-wide__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-card-wide__value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
}
.stat-card-wide__sub { font-size: 11px; color: var(--text-muted); }

/* Description */
.section-h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.game-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

/* ============================================================
   SUBMISSION MODAL
   ============================================================ */
.submission-lock { overflow: hidden; }

.submission-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 8, 14, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}
.submission-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }

.submission-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}
.submission-modal.open .submission-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.submission-dialog h2 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}

.submission-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.submission-close:hover { background: var(--surface-2); color: var(--text); }

.submission-form,
.submission-field,
.submission-checks {
  display: flex;
  flex-direction: column;
}
.submission-field[hidden] { display: none !important; }

.submission-unofficial-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s;
}
.submission-unofficial-field.visible {
  max-height: 200px;
  opacity: 1;
}
.submission-form { gap: 14px; }
.submission-field { gap: 8px; }
fieldset.submission-field { border: 0; padding: 0; }
.submission-field label,
.submission-field legend {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  padding: 0;
  margin: 0;
}
.submission-field p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}
.submission-field input[type="text"],
.submission-field input[type="url"],
.submission-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.submission-field input[type="text"],
.submission-field input[type="url"] {
  height: 34px;
  padding: 0 12px;
}
.submission-field textarea {
  min-height: 80px;
  padding: 8px 12px;
  resize: vertical;
}
.submission-field input:focus,
.submission-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.submission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.submission-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.submission-checks { gap: 6px; align-items: flex-start; }
fieldset.submission-field .submission-checks { margin-top: 8px; }

.submission-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  cursor: pointer;
}
.submission-pill input { position: absolute; opacity: 0; pointer-events: none; }
.submission-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.submission-pill span::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.submission-pill input[type="checkbox"] + span::before { border-radius: 3px; }
.submission-pill input:checked + span {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}
.submission-pill input:checked + span::before {
  border-color: var(--accent);
  background: radial-gradient(circle at center, var(--accent) 0 42%, transparent 48%);
}
.submission-pill input[type="checkbox"]:checked + span::before {
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.submission-error {
  display: block;
  border-radius: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 38, 38, 0.35);
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0 11px;
  border-width: 0;
  transition: opacity 0.2s, max-height 0.2s, padding 0.2s, border-width 0.2s;
}
.submission-error.visible {
  opacity: 1;
  max-height: 80px;
  padding: 9px 11px;
  border-width: 1px;
}

.submission-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 18px;
  border: 1px solid var(--green);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s, transform 0.25s;
}
.submission-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.submission-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}
.submission-submit {
  min-width: 120px;
  height: 38px;
  padding: 0 22px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  transition: opacity 0.15s;
}
.submission-submit:hover { opacity: 0.9; }
.submission-submit:disabled { opacity: 0.65; cursor: wait; }

@media (max-width: 680px) {
  .submission-grid { grid-template-columns: 1fr; }
  .submission-dialog { padding: 18px; }
}

/* ============================================================
   ЧАПЫ
   ============================================================ */
.faq-page {
  max-width: 1120px;
  margin: 0 auto;
}

.faq-hero {
  margin-bottom: 28px;
}

.faq-hero .section-heading {
  margin-bottom: 12px;
}

.faq-hero h1 {
  font-family: var(--font-head);
  font-size: 40px;
  line-height: 1.15;
  color: var(--text);
  text-align: center;
}

.faq-hero p {
  margin-inline: auto;
  font-size: 16px;
  text-align: center;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(180deg, var(--surface), rgba(31,31,46,.72));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, background .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}

.faq-item.open {
  border-color: rgba(255, 51, 85, .42);
}

.faq-item:hover {
  border-color: rgba(255, 51, 85, .32);
}

.faq-question {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  transition: outline-color 0.15s, outline-offset 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.faq-question__index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(255, 51, 85, .24);
  border-radius: 999px;
  padding: 6px 9px;
}

.faq-question__icon {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-question__icon::before,
.faq-question__icon::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 2px;
  background: var(--text-muted);
  transform: translateY(-50%);
  border-radius: 2px;
}

.faq-question__icon::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform .2s, opacity .2s;
}

.faq-item.open .faq-question__icon::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.faq-answer {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
  margin: 0 24px 0 70px;
  border-left: 3px solid var(--accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text-body);
}
.faq-answer > div {
  overflow: hidden;
  padding: 0 0 0 18px;
  opacity: 0;
  transition: padding .3s ease, opacity .3s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-item.open .faq-answer > div {
  padding: 16px 0 24px 18px;
  border-top: 1px solid var(--border);
  opacity: 1;
}

@media (max-width: 640px) {
  .faq-page {
    max-width: none;
  }

  .faq-hero h1 {
    font-size: 28px;
    text-align: center;
  }

  .section-heading {
    width: fit-content;
  }

  .faq-question {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
  }

  .faq-question__index {
    display: none;
  }

  .faq-answer {
    margin: 0 18px 20px;
    padding-left: 14px;
  }
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.contacts-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px var(--page-px);
  border-top: 0.8px solid var(--border);
  margin-top: 37px;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__logo {
  font-family: var(--font-logo);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--accent);
  line-height: 1;
}
.footer__copy { font-size: 12px; color: var(--text-muted); }

.footer__nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer__nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--text); }

.footer__legal {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer__legal a {
  font-size: 11px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer__legal a:hover { color: var(--text-muted); }

/* ============================================================
   SECTION GAP
   ============================================================ */
.section { margin-bottom: 37px; }
.section:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-52 { margin-top: 52px; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

/* ── Navbar toggle (hamburger) ─────────────────────────── */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  transition: color 0.2s;
}
.navbar__toggle:hover { color: var(--text); }
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.navbar.open .navbar__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.open .navbar__toggle span:nth-child(2) { opacity: 0; }
.navbar.open .navbar__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Search autocomplete dropdown ─────────────── */
.navbar__menu { position: relative; }

/* ── Search expand animation ─────── */
.navbar__search-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 10;
  margin-left: 20px;
  transition: margin-left .4s cubic-bezier(.4,0,.2,1);
}

.navbar__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 200px;
  height: 40px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: width .4s cubic-bezier(.4,0,.2,1),
              background .3s ease,
              border-color .3s ease;
}

.navbar__search-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color .2s;
}
.navbar__search-icon:hover { color: var(--text); }

.navbar__search-icon svg { pointer-events: none; }

.navbar__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  opacity: 1;
  padding: 0 8px;
  transition: opacity .3s ease;
  outline: none;
}

.navbar__search-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: transparent; /* the visible × is drawn by the two bars below, not this glyph */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0;
  line-height: 1;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.navbar__search-close:hover { opacity: .85; transform: translateY(-50%) scale(1.1); }
.navbar__search-close::before,
.navbar__search-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.navbar__search-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.navbar__search-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ── Active state ─────── */
.navbar.search-active .navbar__search-wrap {
  margin-left: calc(20px - 220px);
}
.navbar.search-active .navbar__search {
  width: 420px;
  padding-right: 4px;
}
.navbar.search-active .navbar__search-close {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}
/* Submit button: stays in place, fades out as search field covers it */
.navbar__submit-item {
  transition: opacity .4s cubic-bezier(.4,0,.2,1);
}
.navbar.search-active .navbar__submit-item {
  opacity: 0;
  pointer-events: none;
}

/* ── Mobile toggle button ─────── */
.navbar__search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 16px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .2s, background .2s;
}
.navbar__search-toggle:hover { color: var(--text); background: var(--surface-2); }
.navbar__search-toggle svg { width: 18px; height: 18px; }

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  max-height: 420px;
  display: flex;
  flex-direction: column;
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.search-dropdown__scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.search-dropdown.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
}
.search-dropdown__item:hover,
.search-dropdown__item.active {
  background: var(--accent-glow);
}

.search-dropdown__cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--surface-2) center/cover no-repeat;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.search-dropdown__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.search-dropdown__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: .3;
}

.search-dropdown__info { flex: 1; min-width: 0; }

.search-dropdown__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__genres {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.search-dropdown__year {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.search-dropdown__all {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-top: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.search-dropdown__all:hover {
  background: var(--accent-glow);
}

@media (max-width: 820px) {
  :root {
    --page-px: 24px;
  }

  .navbar__menu {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    background: rgba(24, 24, 36, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  }

  .navbar__toggle { display: flex; }

  .navbar.open .navbar__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0;
    width: 100%;
  }

  .navbar__links li { text-align: center; }

  .navbar__links a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }
  .navbar__links li:last-child a { border-bottom: none; }

  .navbar__submit-item {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    margin-left: 0;
    order: 1;
  }

  .navbar__submit {
    text-align: center;
  }

  .navbar__toggle { display: flex; order: 3; margin-left: 0; }

  /* Mobile: search icon on the left */
  .navbar__search-toggle {
    display: flex !important;
    order: 1;
    margin-left: 0;
    margin-right: auto;
  }

  .navbar__logo {
    order: 2;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(1);
    transition: filter 0.3s ease, transform 0.3s ease;
  }
  .navbar__logo:hover {
    filter: drop-shadow(0 0 8px rgba(255, 38, 38, 0.6)) drop-shadow(0 0 20px rgba(255, 38, 38, 0.3));
    transform: translateX(-50%) scale(1.05);
  }

  .navbar__lang {
    margin: 0;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border);
    order: 2;
    position: relative;
  }
  .lang-btn { height: 36px; width: 36px; }
  .lang-satellite { width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: 12px; }

  /* The wrap itself carries no visual weight in the layout on mobile — it's an
     absolutely-positioned anchor for the popup panel that appears under the toggle. */
  .navbar__search-wrap {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: var(--page-px);
    right: var(--page-px);
    margin: 0;
    flex: none;
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px) scale(.96);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity .3s cubic-bezier(.4,0,.2,1),
                transform .3s cubic-bezier(.4,0,.2,1),
                visibility .3s;
  }

  .navbar.search-active .navbar__search-wrap {
    margin: 0;
    top: calc(100% + 10px);
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .navbar__search,
  .navbar.search-active .navbar__search {
    width: 100%;
    height: 48px;
    padding: 0 8px 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
    transition: none; /* the popup's appearance is animated on the wrap only — no width/size morphing here */
  }

  .navbar__search-icon { display: flex; }

  .navbar__search input {
    font-size: 14px;
    padding: 0 8px;
    opacity: 1;
  }

  .navbar__search-close,
  .navbar.search-active .navbar__search-close {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    margin-left: 4px;
  }

  /* Games grid: 2 columns */
  .games-grid { grid-template-columns: repeat(2, 1fr); }

  /* Featured body tighter padding on mobile */
  .featured-skeleton__body { padding: 24px 28px; }

  /* Game page: stack layout */
  .game-layout { grid-template-columns: 1fr; }
  .game-cover-col { order: -1; }

  /* Breadcrumb: reset negative margin on tablet */
  .breadcrumb { margin-top: 0; }

  /* Info table: single column */
  .info-row { grid-template-columns: 1fr; }
  .info-cell { border-right: none; }
  .info-cell:first-child { border-bottom: 1px solid var(--border); }

  /* Stat cards wide */
  .stat-cards-wide { grid-template-columns: 1fr; }

  /* Catalog filters */
  .catalog-search { min-width: 0; flex: 1 1 auto; max-width: none; width: calc(100% - 120px); }
  .filter-sep { display: none; }
  .filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }
  .filter-btn-group { flex-shrink: 0; }
  .catalog-search { min-width: 0; }
  .dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
    padding: 0 12px;
    height: 36px;
  }
  .dropdown.open .dropdown__menu {
    width: max-content !important;
    min-width: 100% !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 55vh !important;
    overflow-x: auto !important;
    z-index: 300 !important;
  }
}

@media (max-width: 580px) {
  :root {
    --page-px: 14px;
    --nav-h: 56px;
  }

  .navbar__logo { margin-right: auto; }
  .navbar__logo img { height: 22px !important; }

  /* Grid: 1 column */
  .games-grid { grid-template-columns: 1fr; }

  /* Breadcrumb: reset negative margin on mobile */
  .breadcrumb { margin-top: 0; }

  /* Font sizes */
  .section-heading h1,
  .section-heading h2 { font-size: 28px; }
  .featured__title { font-size: 24px; }
  .game-title-block h1 { font-size: 28px; }
  .translation-stat__value { font-size: 26px; }
  .section-h2 { font-size: 20px; }
  .stat-card__value { font-size: 22px; }

  /* Spacing */
  .main { padding-top: 28px; }
  .featured__content { padding: 20px; }
  .about-block { padding: 24px; }
  .about-block p { font-size: 14px; }
  .footer { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .footer__brand { align-items: center; }
  .footer__copy { word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; }
  .footer__nav { justify-content: center; flex-wrap: wrap; gap: 10px 20px; }

  /* Homepage stat cards */
  .translation-stat { min-width: 0; max-width: none; padding: 18px 20px; min-height: 100px; }

  /* Game page stat cards */
  .stat-card { min-width: calc(50% - 8px); padding: 12px 14px; }

  /* Translation cards */
  .translation-card__head { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .translation-card__right { align-items: flex-start; }
  .translation-card__body { padding: 14px 16px; }
  .translation-card__info-row { gap: 16px; }

  /* Contact form */
  .contacts-content > div { padding: 40px 20px !important; }

  /* Submission dialog */
  .submission-dialog { padding: 14px; }

  /* Featured skeleton */
  .featured-skeleton { min-height: auto; }

  /* Catalog search */
  .catalog-search { min-width: 0; flex: 1; }
}

@media (max-width: 400px) {
  .footer { padding: 24px 12px; gap: 12px; }
  .footer__nav { gap: 8px 14px; }
  .footer__nav a { font-size: 12px; }
}

@media (max-width: 420px) {
  .translation-stats { gap: 6px; }
  .translation-stat { padding: 12px 10px; min-height: 72px; }
  .translation-stat__value { font-size: 20px; }
  .translation-stat__label { font-size: 11px; gap: 6px; }
  .translation-stat__icon { width: 20px; height: 20px; font-size: 10px; }
  .stat-card { min-width: 100%; }
}

.translator-game-card > .featured__image {
  cursor: pointer;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(.22,.61,.36,1);
}
.translator-game-card > .featured__image:hover {
  border: 2px solid rgba(220, 50, 80, .7);
  box-shadow: inset 0 0 0 1px rgba(220, 50, 80, .7);
  transform: scale(0.98);
}
.translator-game-card {
  transition: border-color 0.2s ease, transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.5s ease;
  will-change: transform;
  overflow: visible;
}
.translator-game-card:hover,
.translator-game-card.js-hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 -4px 16px rgba(220,50,80,.25), 0 8px 24px rgba(220,50,80,.4) !important;
  z-index: 50;
}

/* Game of the Day — no red border */
.game-of-day .featured:hover,
.game-of-day .featured.js-hover {
  border-color: var(--border);
}

/* ── Creators page — mobile ─────────────────────────────── */
@media (max-width: 680px) {
  /* Creator cards: compact — no game tiles */
  .translator-card__games { display: none !important; }
.translator-card__header {
    padding: 14px 14px 10px;
    gap: 12px;
  }
  .translator-card__avatar {
    width: 48px;
    height: 48px;
  }
  .translator-card__avatar--placeholder {
    font-size: 22px;
  }
  .translator-card__name {
    font-size: 16px;
  }

  /* Filter bar: stack search + controls */
  .filter-bar { gap: 12px; }
  .translators-search { max-width: none; }
  .translators-controls-row {
    width: 100%;
  }
  .translators-divider { display: none; }
  .translators-filter-box {
    justify-content: center;
    flex-wrap: wrap;
  }
  .translators-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Creator profile page */
  .translator-banner { min-height: 200px; border-radius: var(--radius-md); }
  .translator-banner__content { padding: 20px 16px; min-height: 200px; }
  .translator-banner__avatar { width: 80px; height: 80px; border-radius: var(--radius-md); }
  .translator-banner__name { font-size: 22px; }
  .translator-banner__desc { font-size: 13px; margin-top: 8px; }
  .translator-banner__socials { gap: 6px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; }
  .translator-banner__support { padding: 8px 16px; font-size: 13px; margin-top: 12px; }
  .translator-translations { margin-top: 20px; }
  .translator-translations__heading { font-size: 18px; }

/* Featured cards on translator profile */
.translator-game-card.featured { flex-direction: column; }
  .translator-game-card > .featured__image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
  }
  .translator-game-card > .featured__content { padding: 16px; gap: 10px; }
  .translator-game-card > .featured__content > .featured__title { font-size: 18px; }
  .translator-game-card > .featured__content > .featured__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
  }
  .translator-game-card > .featured__content > .featured__tags { gap: 6px; }
  .translator-game-card > .featured__content > .featured__meta { gap: 8px; }

  /* Store buttons on mobile */
  .store-buttons { gap: 6px; }
  .store-btn { width: 36px; height: 36px; border-radius: 8px; }
  .store-btn svg { width: 18px; height: 18px; }
}

.scroll-to-top {
  width: 68px;
  height: 68px;
}
.scroll-to-top svg {
  width: 28px;
  height: 28px;
}
.scroll-to-top:hover {
  transform: scale(1.1);
}

@media (max-width: 680px) {
  .scroll-to-top { bottom: 80px !important; right: 16px !important; width: 64px !important; height: 64px !important; }
  .scroll-to-top svg { width: 28px; height: 28px; }
  .scroll-to-top:hover { transform: scale(1.1) !important; }
}

/* ============================================================
   MOBILE FONT SIZES — increase readability on small screens
   ============================================================ */
@media (max-width: 820px) {
  .game-card__ai-badge,
  .game-card__official-badge,
  .game-card__verified-badge,
  .game-card__upcoming-badge,
  .game-card__released-badge { font-size: 11px; padding: 5px 10px; }
  .game-card__verified-badge::before { font-size: 10px; }
  .game-card__released-badge::before { font-size: 9px; }
  .translation-card__info-label { font-size: 11px; }
  .featured__label { font-size: 11px; }
  .stat-card__label { font-size: 11px; }
  .stat-card-wide__label { font-size: 11px; }
}

/* ============================================================
   TOUCH TARGETS — minimum 44×44px for touch devices only
   ============================================================ */
@media (hover: none) {
  .lang-btn { width: 44px; height: 44px; }
  .lang-satellite { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .navbar__search-close { width: 44px; height: 44px; }
  .submission-close { width: 44px; height: 44px; font-size: 28px; }
  .page-btn { min-width: 44px; height: 44px; }
  .store-btn { width: 44px; height: 44px; }
  .filter-toggle-btn { height: 44px; }
  .navbar__search-toggle { width: 44px; height: 44px; }
  .navbar__toggle { width: 44px; height: 44px; }
  .filter-panel__close { width: 44px; height: 44px; }
  .translators-filter-box .sort-order-btn { width: 44px; height: 44px; }
  .translator-banner__social-link { width: 44px; height: 44px; }
  .translator-banner__donation-link { width: 44px; height: 44px; }
  .chip { padding: 10px 14px 10px 16px; min-height: 44px; }
  .chip__remove { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: -10px -8px -10px -4px; }
  .faq-question__icon { width: 44px; height: 44px; }
}

