*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { 
    --bg: #0f1419; 
    --bg-alt: #161b22; 
    --card: rgba(255,255,255,0.06); 
    --fg: #fff; 
    --muted: #8b949e; 
    --gold: #f59e0b; 
    --gold2: #d97706; 
    --border: rgba(255,255,255,0.09); 
    --r: 14px; 
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    
    /* НАСТРОЙКИ ФОНА */
    background-image: url('/dk/images/creatives/bgimages/backdk.avif'); 
    background-color: var(--bg); /* Запасной цвет */
    
    /* Адаптивность фона */
    -webkit-background-size: cover;
    background-size: cover; /* Растягивает картинку, чтобы не было пустых полей. Пропорции сохраняются. */
    background-position: center center; /* Всегда держит центр картинки в центре экрана */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Фон фиксируется, контент скроллится */
    min-height: 100vh;
} /* <-- ЭТУ СКОБКУ ВЫ ПРОПУСТИЛИ */

/* Исправление бага для iOS и мобильных устройств (ДОЛЖНО БЫТЬ СНАРУЖИ BODY) */
@supports (-webkit-touch-callout: none) {
    body {
        /* На iOS отключаем fixed, так как он ломает отображение */
        background-attachment: scroll;
        /* Решаем проблему прыгающего экрана в Safari */
        min-height: -webkit-fill-available;
    }
} /* <-- И ЭТУ СКОБКУ ВЫ ПРОПУСТИЛИ */

/* Дополнительная страховка для всех мобильных экранов */
@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
    }
}
a { color: var(--gold); text-decoration: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; height: auto; }

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(15,20,25,.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.nav-links a {
    color: var(--fg);
    font-size: .9rem;
    font-weight: 500;
    transition: color .15s;
}
.nav-links a:hover { color: var(--gold); }
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: all .25s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.drawer {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-top: 1px solid var(--border);
    z-index: 199;
    overflow-y: auto;
}
.drawer.open { display: flex; }
.drawer a {
    display: block;
    color: var(--fg);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.drawer a:hover { color: var(--gold); }

/* HERO */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    background: transparent;
}
.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--gold), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1rem;
    color:#F5BD02;
    max-width: 520px;
    margin: 0 auto 1.5rem;
}
.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: var(--gold);
    color: #111;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.btn:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--fg);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--gold); color: #111; border-color: var(--gold); }
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: #111;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: background .2s, transform .15s;
}
.btn-cta:hover { background: var(--gold2); transform: translateY(-2px); }

/* SECTIONS & GRID */
.section { padding: 56px 0;background: transparent; }
.section-alt { padding: 56px 0; rgba(22, 27, 34, 0.4) }
.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
}
.section-title span { color: var(--gold); }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* CARDS */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.card-thumb {
  height: 185px; 
  background-size: contain !important; 
  background-position: center !important; 
  background-repeat: no-repeat !important; 
  background-color: #222 !important;
}

.card-thumb.slot-thumb {
  background-size: cover !important; 
  background-color: transparent !important; 
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-bottom: 1px solid var(--border); 
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Добавляем темный фон */
    background-color: #161b22; /* Это ваш цвет --bg-alt, темно-серый/почти черный */
    
    /* Или, если хотите эффект темного полупрозрачного стекла, используйте этот вариант: */
    /* background-color: rgba(22, 27, 34, 0.9); */
    /* backdrop-filter: blur(10px); */
}
.card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.card-bonus { font-size: .875rem; color: var(--muted); margin-bottom: 14px; flex: 1; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(245,158,11,.12);
    color: var(--gold);
}
.card-actions { display: flex; gap: 10px; }
.card-actions .btn, .card-actions .btn-outline { flex: 1; padding: 11px 8px; font-size: .9rem; }

/* REVIEWS */
.rhero {
    position: relative;
    height: 280px;
    
    /* Меняем cover на contain, чтобы логотип влез целиком */
    background-size: contain; 
    
    /* Центрируем логотип */
    background-position: center; 
    
    /* Запрещаем дублирование, если картинка меньше блока */
    background-repeat: no-repeat; 
    
    /* Темный цвет фона, если логотип узкий/квадратный */
    background-color: #0f1419; 
    
    display: flex;
    align-items: flex-end;
}
.rhero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,20,25,1) 0%, rgba(15,20,25,.15) 100%);
}
.rhero-inner { position: relative; z-index: 1; padding: 20px; width: 100%; }
.rhero-inner h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.2; }
.rhero-inner .score { color: var(--gold); font-size: 1.1rem; font-weight: 700; margin-top: 8px; }
.bonus-box {
    background: rgba(245,158,11,.08);
    border: 1.5px solid rgba(245,158,11,.4);
    border-radius: var(--r);
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}
.bonus-box h2 { font-size: 1.15rem; color: var(--gold); margin-bottom: 6px; line-height: 1.35; }
.bonus-box p { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.review-content { 
    max-width: 820px; 
    margin: 0 auto; 
    
    /* ДОБАВЛЯЕМ ЗАТЕМНЕНИЕ */
    background-color: rgba(15, 20, 25, 1); /* 85% непрозрачный темный фон */
    padding: 30px 40px; /* Отступы внутри, чтобы текст не прилипал к краям */
    border-radius: 16px; /* Закругляем углы для красоты */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Легкая тень, чтобы блок отделился от фона */
    backdrop-filter: blur(8px); /* Размывает флаг под текстом */
    margin-top: 40px; /* Отступ сверху от шапки */
}

/* Если на мобильных телефонах 40px padding слишком много: */
@media(max-width: 767px) {
    .review-content {
        padding: 20px 16px; /* Меньше отступов по бокам для телефонов */
    }
}

.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.pros, .cons { border-radius: 12px; padding: 16px; }
.pros { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25); }
.cons { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); }
.pros h4 { color: #10b981; margin-bottom: 12px; font-size: 1rem; }
.cons h4 { color: #ef4444; margin-bottom: 12px; font-size: 1rem; }
.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }
.pros li, .cons li { font-size: .875rem; color: #c9d1d9; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.pros li:last-child, .cons li:last-child { border-bottom: none; }
.pros li::before { content: '+ '; color: #10b981; font-weight: 700; }
.cons li::before { content: '- '; color: #ef4444; font-weight: 700; }
.rtable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.rtable { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; min-width: 380px; }
.rtable td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.rtable tr:last-child td { border-bottom: none; }
.rtable td:first-child { color: var(--muted); width: 42%; }
.rtable td:last-child { color: var(--fg); font-weight: 500; }
.stars { color: var(--gold); }
.breadcrumb { font-size: .8rem; color: var(--muted); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.scroll-strip { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.scroll-strip h3 { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.scroll-track { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.scroll-track::-webkit-scrollbar { display: none; }
.scard { flex: 0 0 180px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.scard:hover { transform: translateY(-3px); }
.scard-img {  height: 100px; background-size: contain; background-position: center;  background-repeat: no-repeat; background-color: #222; }
.scard-body { padding: 10px 12px; }
.scard-body h4 { font-size: .875rem; font-weight: 700; margin-bottom: 3px; color: var(--fg); }
.scard-body .sr { font-size: .8rem; color: var(--gold); }

/* FOOTER */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; margin-bottom: 40px; }
.fcol h4 { font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.fcol ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fcol a { color: var(--muted); font-size: .875rem; }
.fcol a:hover { color: var(--fg); }
.socials { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }
.socials a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--card); border: 1px solid var(--border); border-radius: 50%; transition: all .2s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); }
.socials img { width: 18px; height: 18px; filter: invert(1); }
.disclaimer { background: rgba(0,90,170,.08); border: 1px solid rgba(0,90,170,.25); border-radius: 12px; padding: 16px 20px; text-align: center; margin: 24px 0 16px; }
.disclaimer p { font-size: .8rem; color: #7cb4f5; line-height: 1.6; margin-bottom: 0; }
.disclaimer a { color: #fff; font-weight: 600; text-decoration: underline; }
.copy { text-align: center; font-size: .78rem; color: #6b7280; margin-top: 8px; }

/* MEDIA QUERIES */
@media(max-width: 767px) {
    .burger { display: flex; }
    .nav-links { display: none; }
    .hero { padding: 32px 0 24px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-btns { flex-direction: column; padding: 0; }
    .hero-btns .btn, .hero-btns .btn-outline { width: 100%; padding: 14px; font-size: 1rem; }
    .section, .section-alt { padding: 32px 0; }
    .grid { grid-template-columns: 1fr; gap: 14px; }
    .card-body { padding: 14px; }
    .card-actions { flex-direction: column; gap: 8px; }
    .card-actions .btn, .card-actions .btn-outline { width: 100%; padding: 13px; font-size: .95rem; }
    .rhero { height: 210px; }
    .rhero-inner { padding: 14px; }
    .rhero-inner h1 { font-size: 1.35rem; }
    .bonus-box { padding: 14px; margin: 12px 0; }
    .bonus-box h2 { font-size: 1rem; }
    .btn-cta { font-size: 1rem; padding: 15px; }
    .review-content h2 { font-size: 1.1rem; margin: 20px 0 10px; }
    .pc-grid { grid-template-columns: 1fr; gap: 10px; }
    .rtable-wrap { margin: 10px -16px; }
    .rtable { border-radius: 0; min-width: 360px; }
    .scard { flex: 0 0 72vw; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media(max-width: 400px) {
    .footer-grid { grid-template-columns: 1fr; }
    .scard { flex: 0 0 82vw; }
}
.game-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.game-modal--open {
  display: block;
}

.game-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

.game-modal__content {
  position: absolute;
  /* делаем окно меньше экрана */
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  height: 80%;
  
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* верхняя панель с кнопками */
.game-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(15,20,25,.95);
  z-index: 2;
}

.game-modal__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.game-modal__real {
  background: #f59e0b;
  border: none;
  color: #111;
  font-weight: 700;
  font-size: .9rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.game-modal__real:hover {
  background: #d97706;
  transform: translateY(-1px);
}

/* iframe занимает всё оставшееся место под шапкой */
#game-frame {
  width: 100%;
  height: 100%;
  border: none;
}
