/* ═══════════════════════════════════════════════════════════════
   UnlockHub — styles.css
   Dark glassmorphism theme with smooth animations
═══════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-0: #070b14;
  --bg-1: #0d1325;
  --bg-2: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-hl: rgba(79, 142, 247, 0.4);

  --blue: #4f8ef7;
  --blue-dark: #2563eb;
  --purple: #7c4dff;
  --teal: #06b6d4;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #fbbf24;
  --orange: #f97316;

  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #475569;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(79, 142, 247, 0.25);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hl);
  border-radius: 3px;
}

/* ── Particles canvas ──────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Utility ───────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.pill-blue {
  background: rgba(79, 142, 247, 0.15);
  color: var(--blue);
  border: 1px solid rgba(79, 142, 247, 0.3);
}

.pill-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pill-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pill-purple {
  background: rgba(124, 77, 255, 0.15);
  color: var(--purple);
  border: 1px solid rgba(124, 77, 255, 0.3);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(79, 142, 247, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(79, 142, 247, 0.6);
  }
}

@keyframes tabReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
    filter: blur(1.5px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.anim-fade-in {
  animation: fadeIn 0.4s ease both;
}

.anim-slide-up {
  animation: slideUp 0.5s ease both;
}

/* ── Skeleton loader ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, rgba(255, 255, 255, 0.07) 50%, var(--bg-2) 100%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-line {
  height: 12px;
  width: 100%;
}

.skeleton-line-lg {
  height: 16px;
  width: 78%;
}

.skeleton-line-md {
  width: 58%;
}

.skeleton-line-sm {
  width: 36%;
}

.skeleton-pill {
  width: 104px;
  height: 32px;
  border-radius: 999px;
}

.skeleton-card,
.library-skeleton-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  min-width: 0;
}

.skeleton-media {
  aspect-ratio: 3/4;
  border-radius: 0;
}

.skeleton-card-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.top-card-skeleton {
  width: 165px;
}

.top-card-skeleton .skeleton-media {
  aspect-ratio: 2/3;
}

.top-games-more-skeleton-item {
  pointer-events: none;
}

.profile-header-skeleton {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.profile-header-skeleton-main {
  flex: 1;
  display: grid;
  gap: 10px;
}

.profile-header-skeleton-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.skeleton-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.loading-skeleton-stack {
  display: grid;
  gap: 12px;
  width: 100%;
}

.review-skeleton-card,
.achievement-skeleton-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  padding: 14px;
}

.review-skeleton-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-skeleton-meta {
  flex: 1;
  display: grid;
  gap: 8px;
}

.skeleton-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.achievement-skeleton-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 6px;
}

.skeleton-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.achievement-skeleton-lines {
  flex: 1;
  display: grid;
  gap: 8px;
}

.achievement-skeleton-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-ach-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}

.achievement-skeleton-text {
  flex: 1;
  display: grid;
  gap: 8px;
}

.modal-skeleton {
  padding: 0;
}

.modal-skeleton-hero {
  height: 280px;
  border-radius: 0;
}

.modal-skeleton-tabs {
  display: flex;
  gap: 10px;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--border);
}

.modal-skeleton-body {
  padding: 18px 20px 24px;
  display: grid;
  gap: 12px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 142, 247, 0.5);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-2);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
  border-color: var(--border-hl);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
  border-color: var(--border-hl);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-1);
}

.logo-accent {
  color: var(--blue);
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

nav a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--text-1);
  background: var(--bg-glass);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(15, 26, 47, 0.85);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--text-1);
  border-color: var(--border-hl);
  background: rgba(19, 34, 63, 0.95);
}

.lang-btn .flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(79, 142, 247, 0.18);
  color: #d6e7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35px;
  line-height: 1;
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-2);
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-menu {
  position: absolute;
  right: 18px;
  top: calc(100% + 8px);
  min-width: 180px;
  background: rgba(13, 19, 37, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  padding: 8px;
  z-index: 30;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
}

.mobile-menu a:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: clamp(640px, 86vh, 920px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 34px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 142, 247, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 77, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  animation: slideDown 0.6s ease both;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
  animation: slideUp 0.6s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: slideUp 0.6s ease 0.2s both;
}

/* ── Search bar ─────────────────────────────────────────────── */
.search-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  animation: slideUp 0.6s ease 0.3s both;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  border-radius: var(--radius-xl);
  background: rgba(13, 19, 37, 0.9);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(79, 142, 247, 0.12);
}

.search-icon {
  flex-shrink: 0;
  color: var(--text-3);
  width: 20px;
  height: 20px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-1);
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-3);
}

.search-btn {
  flex-shrink: 0;
  padding: 11px 24px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.4);
}

.search-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(79, 142, 247, 0.55);
}

.search-btn:active {
  transform: scale(0.98);
}

.search-hints {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-hint {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.search-hint:hover {
  color: var(--text-1);
  border-color: var(--border-hl);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Section wrapper ────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ── Game cards grid ────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  animation: slideUp 0.4s ease both;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hl);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.game-card:active {
  transform: translateY(-3px);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: linear-gradient(180deg, #0f1a2f 0%, #0a1222 100%);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 0;
}

.section-subtitle {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 13px;
}

.top-games-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.top-live-section {
  padding-top: 22px;
}

.top-games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.top-games-grid .game-card {
  width: 165px;
}

.card-img-wrap.addon {
  background: linear-gradient(180deg, #0f1a2f 0%, #0a1222 100%);
}

.card-img-wrap.addon img {
  object-fit: contain;
  padding: 10px;
}

.game-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.game-card:hover .card-img-wrap.addon img {
  transform: scale(1.02);
}

.card-addon {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(10, 18, 34, 0.86);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 7px;
  border-radius: 6px;
}

.card-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-body {
  padding: 14px;
}

.card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.card-price .free {
  color: var(--green);
  font-weight: 700;
}

.card-price .price {
  color: var(--text-1);
  font-weight: 600;
}

.card-price .original {
  color: var(--text-3);
  font-size: 11px;
  text-decoration: line-through;
}

/* ── Profile section ────────────────────────────────────────── */
#profile-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
  animation: slideUp 0.4s ease both;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
    linear-gradient(135deg, var(--blue), var(--purple)) border-box;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}

.profile-stat-lbl {
  font-size: 12px;
  color: var(--text-2);
}

/* Profile input bar */
.profile-input-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  animation: slideDown 0.4s ease both;
}

.profile-input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
}

.profile-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.12);
}

.profile-saved {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: var(--bg-card);
}

.profile-saved-lbl {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 2px;
}

.profile-saved-url {
  font-size: 14px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Library grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.lib-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  animation: slideUp 0.3s ease both;
}

.lib-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hl);
  box-shadow: var(--shadow-sm);
}

.lib-card-img {
  aspect-ratio: 460/215;
  overflow: hidden;
}

.lib-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lib-card:hover .lib-card-img img {
  transform: scale(1.05);
}

.lib-card-body {
  padding: 10px 12px;
}

.lib-card-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.lib-card-hours {
  font-size: 11px;
  color: var(--text-2);
}

.lib-card-recent {
  color: var(--blue);
  font-weight: 600;
}

/* ── Modal (game detail) ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(10px, 2.2vw, 24px);
  animation: fadeIn 0.2s ease;
  overscroll-behavior: contain;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: min(1280px, 96vw);
  margin: auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: auto;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: var(--shadow-lg);
  max-height: 94vh;
  display: block;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal-box::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.modal-hero {
  position: relative;
  height: clamp(250px, 30vw, 390px);
  overflow: hidden;
  background: var(--bg-2);
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.88) 0%, rgba(7, 11, 20, 0.25) 48%, rgba(7, 11, 20, 0.1) 100%);
  pointer-events: none;
}

.modal-head {
  padding: clamp(16px, 2vw, 28px) clamp(16px, 2.2vw, 30px) 8px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(11, 20, 40, 0.92), rgba(11, 20, 40, 0.84));
}

.modal-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.15;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--transition);
}

.modal-close:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.1);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

/* Tabs */
.modal-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px clamp(16px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(11, 20, 40, 0.96), rgba(11, 20, 40, 0.86));
  backdrop-filter: blur(10px);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal-tabs::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.tab-btn {
  position: relative;
  padding: 10px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  margin-bottom: -1px;
}

.tab-btn::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.tab-btn:hover {
  color: var(--text-1);
  background: var(--bg-glass);
}

.tab-btn.active {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(79, 142, 247, 0.05);
  transform: translateY(-1px);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.modal-body {
  padding: clamp(18px, 2.2vw, 32px);
  overflow: visible;
}

.modal-body>.tab-panel {
  max-width: 1120px;
  margin: 0 auto;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabReveal 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab-panel.active.tab-enter {
  animation: tabReveal 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Overview tab */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width:720px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

.game-description {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  /* Prevent Steam's fixed-width HTML from overflowing */
  overflow: hidden;
  word-break: break-word;
}

.game-description h1,
.game-description h2,
.game-description h3,
.game-description h4 {
  margin: 12px 0 8px;
  line-height: 1.25;
  color: var(--text-1);
}

.game-description p {
  margin: 0 0 10px;
}

.game-description ul,
.game-description ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}

/* Clamp ALL children — Steam HTML has divs/imgs with hardcoded px widths */
.game-description * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.game-description img {
  height: auto !important;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.game-description a {
  color: var(--blue);
}

.overview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.info-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  color: var(--text-2);
}

.info-row .value {
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.review-score-box {
  text-align: center;
  overflow: hidden;
}

.review-score-big {
  font-size: clamp(22px, 1.75vw, 34px);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
  max-width: 100%;
  margin-inline: auto;
}

.review-score-pos {
  color: var(--green);
}

.review-score-mix {
  color: var(--yellow);
}

.review-score-neg {
  color: var(--red);
}

.review-score-label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

.review-bar-wrap {
  margin-top: 12px;
}

.review-bar-track {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-0);
  overflow: hidden;
  margin-bottom: 6px;
}

.review-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.review-num {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
}

.review-num span {
  min-width: 0;
  flex: 1 1 130px;
  overflow-wrap: anywhere;
}

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.screenshot-item {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.screenshot-item:hover {
  transform: scale(1.02);
  border-color: var(--border-hl);
  box-shadow: var(--shadow-sm);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Videos */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.video-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.video-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-hl);
  box-shadow: var(--shadow-md);
}

.video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.video-play-btn svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition);
}

.video-item:hover .video-play-btn svg {
  transform: scale(1.12);
}

.video-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  font-size: 12px;
  font-weight: 600;
}

/* Reviews */
.reviews-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.review-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: all var(--transition);
}

.lang-btn .lang-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card:hover {
  border-color: var(--border-hl);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-thumb.pos {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.review-thumb.neg {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.review-meta {
  flex: 1;
  min-width: 0;
}

.review-verdict {
  font-size: 13px;
  font-weight: 700;
}

.review-verdict.pos {
  color: var(--green);
}

.review-verdict.neg {
  color: var(--red);
}

.review-hours {
  font-size: 11px;
  color: var(--text-2);
}

.review-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

.review-text.expanded {
  -webkit-line-clamp: unset;
}

.reviews-more-skeleton {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

.review-expand {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 6px;
  cursor: pointer;
}

/* Achievements */
.ach-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ach-progress-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.ach-progress-ring svg {
  transform: rotate(-90deg);
}

.ach-progress-ring .ring-bg {
  stroke: var(--bg-2);
  fill: none;
}

.ach-progress-ring .ring-fill {
  stroke: url(#achGrad);
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.ach-pct-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.ach-counts {
  font-size: 13px;
  color: var(--text-2);
}

.ach-counts b {
  color: var(--text-1);
  font-size: 22px;
}

.ach-profile-bar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.ach-profile-input {
  flex: 1;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}

.ach-profile-input:focus {
  border-color: var(--blue);
}

.ach-profile-saved {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.ach-profile-saved-lbl {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 2px;
}

.ach-profile-saved-url {
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ach-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ach-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.ach-item:hover {
  border-color: var(--border-hl);
}

.ach-item.unlocked {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.ach-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}

.ach-icon.gray {
  filter: grayscale(1) opacity(0.4);
}

.ach-info {
  flex: 1;
  min-width: 0;
}

.ach-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ach-desc {
  font-size: 12px;
  color: var(--text-2);
}

.ach-item.unlocked .ach-name {
  color: var(--green);
}

.ach-right {
  text-align: right;
  flex-shrink: 0;
}

.ach-pct {
  font-size: 11px;
  color: var(--text-3);
}

.ach-unlock-date {
  font-size: 11px;
  color: var(--green);
  white-space: nowrap;
}

.ach-lock-icon {
  color: var(--text-3);
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.lightbox.hidden {
  display: none;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  animation: scaleIn 0.25s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
}

/* ── Video modal ────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.video-modal.hidden {
  display: none;
}

.video-modal video,
.video-modal iframe {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
  width: min(900px, 92vw);
}

.video-modal-title {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: all var(--transition);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Toast notification ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-1);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.3s ease both;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--red);
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--green);
}

/* ── Loading spinner ────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  animation: rotate 0.8s linear infinite;
  margin: 60px auto;
}

.loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px;
  width: 100%;
  justify-self: center;
}

.games-grid>.loading-center,
.library-grid>.loading-center,
.top-games-grid>.loading-center,
#reviews-body>.loading-center,
#ach-body>.loading-center {
  grid-column: 1 / -1;
}

.loading-center p {
  color: var(--text-2);
  font-size: 14px;
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--text-3);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
}

.empty-state p {
  font-size: 14px;
  color: var(--text-3);
  max-width: 320px;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-text {
  font-size: 13px;
  color: var(--text-3);
}

.tg-bot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(79, 142, 247, 0.12);
  color: #cfe3ff;
  text-decoration: none;
  transition: all var(--transition);
}

.tg-bot-link:hover {
  border-color: rgba(79, 142, 247, 0.5);
  background: rgba(79, 142, 247, 0.22);
  color: #fff;
}

.tg-bot-link svg {
  width: 20px;
  height: 20px;
}

.hero-bot-line {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
}

.hero-bot-line a,
.footer-bot-link {
  color: #7fb2ff;
  text-decoration: none;
  font-weight: 700;
}

.hero-bot-line a:hover,
.footer-bot-link:hover {
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .modal-box {
    border-radius: var(--radius-lg);
    max-width: 100%;
  }

  .modal-hero {
    height: 230px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-body {
    padding: 16px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-stats {
    justify-content: center;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 18px;
    transform: none;
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }

  .search-box {
    padding: 6px 6px 6px 14px;
  }

  .modal-tabs {
    justify-content: flex-start;
    padding: 12px 16px 0;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .ach-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .reviews-header {
    flex-direction: column;
    gap: 10px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .top-games-grid .game-card {
    width: 154px;
  }

  .top-card-skeleton {
    width: 154px;
  }

  .header-actions {
    gap: 8px;
  }

  .tg-bot-link {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .search-box {
    padding: 6px 6px 6px 14px;
  }

  .search-btn span {
    display: none;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .modal-hero {
    height: 240px;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal-box {
    border-radius: 0;
    min-height: 100dvh;
    max-height: 100dvh;
  }

  .profile-header-skeleton {
    align-items: flex-start;
  }

  .skeleton-avatar {
    width: 72px;
    height: 72px;
  }

  .modal-skeleton-hero {
    height: 220px;
  }

  .modal-skeleton-tabs {
    padding: 10px 12px 0;
    gap: 8px;
    overflow-x: auto;
  }

  .modal-skeleton-body {
    padding: 14px 12px 18px;
  }

  .modal-body {
    padding: 12px 12px 18px;
  }

  .modal-head {
    padding: 14px 12px 8px;
  }

  .modal-title {
    font-size: 32px;
    margin-bottom: 6px;
  }

  .modal-meta-row {
    gap: 10px;
    font-size: 13px;
  }

  .tab-panel.active {
    padding: 0;
  }

  .overview-grid {
    gap: 14px;
  }

  .info-box {
    padding: 14px;
  }

  .game-description {
    font-size: 13px;
    line-height: 1.65;
  }

  .game-description h1,
  .game-description h2,
  .game-description h3,
  .game-description h4 {
    margin: 10px 0 6px;
    font-size: 16px;
  }

  .game-description p {
    margin: 0 0 8px;
  }

  .game-description img,
  .game-description video {
    margin: 6px 0;
    border-radius: 8px;
  }

  .screenshots-grid {
    gap: 10px;
  }

  .videos-grid {
    gap: 10px;
  }

  .ach-profile-bar {
    padding: 12px;
  }

  .ach-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .ach-icon {
    width: 40px;
    height: 40px;
  }

  .video-modal video,
  .video-modal iframe {
    width: 100vw;
    max-width: 100vw;
    max-height: 60vh;
    border-radius: 0;
  }

  .video-modal-title {
    padding: 0 16px;
    text-align: center;
  }

  .tg-bot-link {
    display: none;
  }

  .lang-btn {
    width: auto;
    max-width: 170px;
    padding: 6px 10px;
    gap: 6px;
    flex-shrink: 0;
  }

  .lang-btn .lang-label {
    max-width: 88px;
  }

  .hero-bot-line {
    font-size: 13px;
    margin-top: 10px;
  }

  .profile-header {
    padding: 16px;
  }

  .ach-profile-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
