/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --bg-dark: #1C1A40;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  --card-hover-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --radius-md: 16px;
  --radius-sm: 12px;
  --success-color: #4caf50;
  --success-light: #6dbf6d;
  --active-color: #ff9f4a;
  --active-gradient: linear-gradient(135deg, #ff6b4a, #ff9f4a);
  --gray-color: rgba(255, 255, 255, 0.4);
}

/* ===== БАЗА ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  font-family: 'Bahnschrift', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
}

a {
  text-decoration: none;
}

/* ===== ЛОГОТИПЫ ===== */
.mobile-logo {
  display: none;
}

.bg-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  transition: opacity 0.3s ease;
}

.bg-logo__image {
  max-width: min(80%, 600px);
  width: auto;
  height: auto;
  filter: blur(2px);
}

/* ===== КОНТЕЙНЕРЫ ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== СЕТКА СОЦСЕТЕЙ ===== */
.links-grid {
  flex: 2;
  min-width: 280px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* ===== КАРТОЧКА ССЫЛКИ ===== */
.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--card-shadow);
}

.social-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 100, 50, 0.5);
  box-shadow: var(--card-hover-shadow);
}

.social-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.social-card__icon svg,
.social-card__icon img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.social-card:hover .social-card__icon {
  transform: scale(1.05);
}

.social-card--vk { color: #0077ff; }
.social-card--da { color: #f58d08; }
.social-card--yt { color: #ff0000; }
.social-card--rutube { color: #e84118; }
.social-card--vkvideo { color: #0077fe; }
.social-card--discord { color: #5865f2; }
.social-card--mattermost { color: #238636; }
.social-card--steam { color: #1b2838; }
.social-card--twitch { color: #9146ff; }
.social-card--vkplay { color: #020bb2; }
.social-card--boosty { color: #f1612c; }

.social-card__title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: normal;
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.info-panel {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-card,
.last-video-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-card__title,
.last-video-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  border-left: 3px solid #ff6b4a;
  padding-left: 0.75rem;
}

/* ===== ЧЕКПОИНТЫ ===== */
.checkpoints {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  transition: 0.2s;
  border-left: 3px solid transparent;
}

.checkpoint:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkpoint.active {
  background: rgba(255, 159, 74, 0.1);
  border-left-color: var(--active-color);
}

.checkpoint__icon-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.checkpoint__icon-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: height 0.3s;
  border-radius: 0 0 50% 50%;
}

.checkpoint.completed .checkpoint__icon-fill {
  height: 100% !important;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success-color), var(--success-light));
}

.checkpoint.active .checkpoint__icon-fill {
  background: var(--active-gradient);
}

.checkpoint__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.checkpoint__title {
  flex: 1;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

.checkpoint__progress-text {
  font-size: 0.8rem;
  min-width: 65px;
  text-align: right;
  font-weight: 600;
}

.checkpoint.completed .checkpoint__progress-text { color: var(--success-color); }
.checkpoint.active .checkpoint__progress-text { color: var(--active-color); }
.checkpoint:not(.completed):not(.active) .checkpoint__progress-text { color: var(--gray-color); }

@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 159, 74, 0); }
  50% { box-shadow: 0 0 0 3px rgba(255, 159, 74, 0.4); }
}

.checkpoint.active .checkpoint__icon-wrapper {
  animation: gentlePulse 2s infinite;
}

/* ===== ПОСЛЕДНЕЕ ВИДЕО ===== */
.last-video-card__link {
  position: relative;
  display: block;
  margin-top: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
}

.last-video-card__link:hover {
  transform: scale(0.98);
}

.last-video-card__link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 0.3s;
}

.last-video-card__link:hover img {
  filter: brightness(0.85);
}

.video-title-overlay {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: bottom 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border-radius: 0 0 10px 10px;
  z-index: 10;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.video-title-overlay::-webkit-scrollbar {
  height: 2px;
}
.video-title-overlay::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); }
.video-title-overlay::-webkit-scrollbar-thumb { background: #ff6b4a; border-radius: 2px; }

.last-video-card__link:hover .video-title-overlay {
  bottom: 0;
}

/* ===== БЛОКИ С ИГРАМИ ===== */
.games-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.games-wrapper .egs-free-games,
.games-wrapper .steam-free-games {
  flex: 1;
  min-width: 280px;
  margin-top: 0;
}

.egs-free-games,
.steam-free-games {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.egs-free-games__title,
.steam-free-games__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
  border-left: 3px solid #ff6b4a;
  padding-left: 0.75rem;
}

.egs-free-games__subtitle,
.steam-free-games__subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  margin-left: 0.75rem;
}

/* Контейнеры с играми */
.egs-games-container,
.steam-free-games-container {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  gap: 0.8rem;
  padding: 8px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: #ff6b4a rgba(255, 255, 255, 0.1);
}

.egs-games-container::-webkit-scrollbar,
.steam-free-games-container::-webkit-scrollbar {
  height: 6px;
}
.egs-games-container::-webkit-scrollbar-track,
.steam-free-games-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.egs-games-container::-webkit-scrollbar-thumb,
.steam-free-games-container::-webkit-scrollbar-thumb {
  background: #ff6b4a;
  border-radius: 10px;
}

/* ===== КАРТОЧКИ ИГР ===== */
.egs-game-card,
.steam-free-game-card {
  flex: 0 0 auto;
  width: 260px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: visible;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.egs-game-card:hover,
.steam-free-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 100, 50, 0.5);
  z-index: 10;
}

.egs-game-card-image-wrapper,
.steam-free-game-card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #1C1A40;
  aspect-ratio: 16 / 9;
}

.egs-game-card img,
.steam-free-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

.egs-game-card:hover img,
.steam-free-game-card:hover img {
  transform: scale(1.05);
}

.egs-game-card__content,
.steam-free-game-card__content {
  padding: 0.8rem;
  position: relative;
  flex: 1;
  padding-bottom: 2rem;
}

.egs-game-card__content h3,
.steam-free-game-card__content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #fff;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.egs-game-card__expiry,
.steam-free-game-card__expiry {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 0.7rem;
  color: #ff9f4a;
  font-weight: 500;
}

/* ===== ТУЛТИПЫ ===== */
.epic-game-tooltip,
.steam-free-tooltip {
  position: fixed;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  max-width: 320px;
  min-width: 280px;
  border: 1px solid rgba(255, 100, 50, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: auto;
}

.epic-game-tooltip.visible,
.steam-free-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

/* Общие стили для тултипов */
.epic-game-tooltip .tooltip-header,
.steam-free-tooltip .tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 100, 50, 0.2), rgba(0, 0, 0, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.epic-game-tooltip .tooltip-title,
.steam-free-tooltip .tooltip-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.epic-game-tooltip .tooltip-free,
.steam-free-tooltip .tooltip-free {
  background: #4caf50;
  color: #fff;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.epic-game-tooltip .tooltip-section,
.steam-free-tooltip .tooltip-section {
  padding: 6px 12px;
}
.epic-game-tooltip .tooltip-section-title,
.steam-free-tooltip .tooltip-section-title {
  font-size: 0.7rem;
  color: #ff9f4a;
  margin-bottom: 4px;
  font-weight: 600;
}
.epic-game-tooltip .tooltip-tags,
.steam-free-tooltip .tooltip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.epic-game-tooltip .tooltip-tag,
.steam-free-tooltip .tooltip-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}
.epic-game-tooltip .tooltip-description,
.steam-free-tooltip .tooltip-description {
  padding: 10px 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Карусель в тултипах */
.epic-game-tooltip .carousel-container,
.steam-free-tooltip .carousel-container {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #1C1A40;
}
.epic-game-tooltip .carousel-image,
.steam-free-tooltip .carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.epic-game-tooltip .carousel-dots,
.steam-free-tooltip .carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}
.epic-game-tooltip .carousel-dot,
.steam-free-tooltip .carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.epic-game-tooltip .carousel-dot.active,
.steam-free-tooltip .carousel-dot.active {
  width: 16px;
  border-radius: 3px;
  background: #ff6b4a;
}
.epic-game-tooltip .carousel-prev,
.epic-game-tooltip .carousel-next,
.steam-free-tooltip .carousel-prev,
.steam-free-tooltip .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 32px;
  height: 44px;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.epic-game-tooltip .carousel-prev,
.steam-free-tooltip .carousel-prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}
.epic-game-tooltip .carousel-next,
.steam-free-tooltip .carousel-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}
.epic-game-tooltip .carousel-prev:hover,
.epic-game-tooltip .carousel-next:hover,
.steam-free-tooltip .carousel-prev:hover,
.steam-free-tooltip .carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Специфичные стили для Steam тултипа */
.steam-free-tooltip .tooltip-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}
.steam-free-tooltip .rating-stars {
  color: #ffc107;
  font-size: 0.8rem;
  letter-spacing: 2px;
}
.steam-free-tooltip .rating-text {
  font-size: 0.75rem;
  color: #ff9f4a;
  font-weight: 500;
}
.steam-free-tooltip .rating-count {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== LIGHTBOX ДЛЯ СКРИНШОТОВ ===== */
.screenshot-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.screenshot-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}
.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.lightbox-close:hover {
  background: rgba(255, 100, 50, 0.8);
  transform: scale(1.1);
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  width: 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 8px;
  z-index: 10;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 100, 50, 0.8);
}
.lightbox-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90%;
  max-height: 70%;
  margin: 20px;
}
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.lightbox-counter {
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 12px;
  border-radius: 20px;
  margin: 10px 0;
}
.lightbox-thumbnails {
  display: flex;
  gap: 10px;
  padding: 15px;
  overflow-x: auto;
  max-width: 90%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  margin-bottom: 20px;
}
.lightbox-thumbnail {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.lightbox-thumbnail:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
}
.lightbox-thumbnail.active {
  border-color: #ff6b4a;
  transform: scale(1.05);
}

/* ===== ЗАГРУЗКА И ОШИБКИ ===== */
.loading-spinner,
.no-games,
.error-message {
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ===== УТИЛИТЫ ===== */
.free-game-block__last-updated {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 0.75rem;
  margin-top: -0.2rem;
  margin-bottom: 0.5rem;
}

/* ===== СТИЛИ ДЛЯ 404 СТРАНИЦЫ ===== */
body:has(.error-container) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.error-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  color: #ff6b4a;
  text-shadow: 0 0 20px rgba(255, 107, 74, 0.3);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.error-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.error-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  font-family: 'Bahnschrift', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.4;
}

.error-btn-primary {
  background: #2a2a4a;
  color: #fff;
  border: 1px solid rgba(255, 107, 74, 0.3);
}
.error-btn-primary:hover {
  transform: translateY(-2px);
  background: #3a3a5a;
  border-color: rgba(255, 107, 74, 0.6);
}

.error-btn-secondary {
  background: #2a2a4a;
  color: #fff;
  border: 1px solid rgba(255, 107, 74, 0.3);
}
.error-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 107, 74, 0.5);
}

.quote-container {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.quote-text {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-style: italic;
  border-left: 3px solid #ff6b4a;
  text-align: left;
}
.quote-author {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #ff9f4a;
  text-align: right;
}

/* ===== АДАПТИВ (ОБЪЕДИНЁННЫЕ МЕДИА-ЗАПРОСЫ) ===== */
@media (max-width: 860px) {
  body {
    padding: 1rem;
    display: block;
  }
  .epic-game-tooltip,
  .steam-free-tooltip {
    display: none !important;
  }
  .bg-logo,
  .free-game-block__last-updated {
    display: none;
  }
  .mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  .mobile-logo img {
    max-width: 120px;
    width: 100%;
    height: auto;
  }
  .layout {
    flex-direction: column;
  }
  .links-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .social-card {
    padding: 8px 12px;
  }
  .social-card__icon {
    width: 40px;
    height: 40px;
  }
  .social-card__icon svg,
  .social-card__icon img {
    width: 32px;
    height: 32px;
  }
  .social-card__title {
    font-size: 1rem;
  }
  .video-title-overlay {
    bottom: 0 !important;
    white-space: normal;
    word-break: break-word;
  }
  .games-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  .games-wrapper .egs-free-games,
  .games-wrapper .steam-free-games {
    width: 100%;
  }
  .egs-game-card,
  .steam-free-game-card {
    width: 220px;
  }
  .status-card__title,
  .last-video-card__title,
  .egs-free-games__title,
  .steam-free-games__title {
    font-size: 1rem;
  }
}

@media (max-width: 540px) {
  .mobile-logo {
    margin-bottom: 1rem;
  }
  .mobile-logo img {
    max-width: 90px;
  }
  .links-grid {
    grid-template-columns: 1fr;
  }
  .social-card {
    padding: 8px 12px;
  }
  .social-card__icon {
    width: 36px;
    height: 36px;
  }
  .social-card__icon svg,
  .social-card__icon img {
    width: 28px;
    height: 28px;
  }
  .social-card__title {
    font-size: 0.95rem;
  }
  .status-card__title,
  .last-video-card__title {
    font-size: 1rem;
  }
  .checkpoint {
    padding: 0.4rem 0.5rem;
  }
  .checkpoint__icon-wrapper {
    width: 28px;
    height: 28px;
  }
  .checkpoint__title {
    font-size: 0.9rem;
  }
  .checkpoint__progress-text {
    font-size: 0.7rem;
    min-width: 45px;
  }
  .checkpoint__icon {
    font-size: 12px;
  }
  .checkpoint.completed .checkpoint__icon {
    font-size: 13px;
  }
  .video-title-overlay {
    padding: 6px 8px;
    font-size: 0.7rem;
  }
  .egs-game-card,
  .steam-free-game-card {
    width: 180px;
  }
  .egs-game-card__content h3,
  .steam-free-game-card__content h3 {
    font-size: 0.8rem;
  }
  .status-card__title,
  .last-video-card__title,
  .egs-free-games__title,
  .steam-free-games__title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 60px;
    font-size: 30px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close {
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
  .lightbox-thumbnail {
    width: 60px;
    height: 34px;
  }
  .lightbox-content {
    max-height: 60%;
  }
}
