@import url("https://fonts.googleapis.com/css2?family=Nico+Moji&display=swap");

:root {
    --orange: #ff9300;
    --blue: #2269b3;
    --bg-light: #f7f9fc;
    --border: #e2e5ee;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}
img {
    display: block;
    max-width: 100%;
}
.container {
    width: min(100% - 2rem, 950px);
    margin-inline: auto;
}

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo {
    width: 50%;
}
.site-title {
    font-family: "Nico Moji", monospace;
    font-size: 24px;
}

/* INTRO */
.intro {
    padding: 1.5rem 0;
}
.intro-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.intro-header h1 {
    font-size: clamp(1.5rem, 2vw+1rem, 2.25rem);
    font-weight: 700;
}
.highlight {
    color: var(--blue);
}
.promo-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.promo-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}
.promo-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.intro p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 60ch;
}

/* GAME LIST */
.game-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

/* CARD */
.game-card {
    position: relative;
    display: grid;
    grid-template-columns: 135px 1fr 1fr;
    gap: 1.5rem;
    padding: 0.3rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05), 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* RANK */
.game-rank {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 1px solid var(--blue);
    color: var(--blue);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 26px;
    text-align: center;
    border-radius: 4px;
}

/* LEFT BLOCK */
.cover-col {
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cover {
    width: 135px;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}
.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}
.star {
    color: var(--orange);
    font-size: 0.9rem;
}
.rating-text {
    font-size: 0.9rem;
}

/* PREVIEW (50%) */
.preview-col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.game-title {
    font-size: 1.25rem;
    font-weight: 600;
}
.slot-preview {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}
.payments-wrap {
    display: flex;
    gap: 0.5rem;
}
.payment {
    background: #f5f6fa;
    padding: 0.4rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
}
.payment img {
    height: 22px;
}

/* RIGHT COLUMN */
.detail-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.players-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 2px solid var(--orange);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: #fff;
}
.players-chip strong {
    color: var(--orange);
}
.arrow {
    width: 20px;
}

/* DETAIL ROWS */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

/* FEATURES with white check */
.features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
}
.features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.features li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    background: var(--orange);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 50%;
}

/* VOLATILITY */
.volatility {
    background: #1d2238;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.volatility .bar {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.volatility .bar span {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #2e334d; /* цвет “пустого” сегмента */
}

.volatility .bar span.filled {
    background: var(--orange); /* оранжевые сегменты */
}

.volatility .bar span.empty {
    /* по умолчанию уже #2e334d, можно переопределить, если надо */
}

.v-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
}
.v-head .label {
    color: #fff;
}
.v-head .value {
    color: var(--orange);
}
.bar {
    display: flex;
    gap: 0.22rem;
}
.bar span {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--orange);
}
.bar span:last-child {
    background: #2e334d;
}

/* BUTTONS */
.btn {
    width: 160px;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.btn.primary {
    background: var(--orange);
    color: #fff;
    border: none;
    text-decoration: none;
}
.btn.primary:hover {
    background: #ffac33;
}
.btn.secondary {
    background: #fff;
    color: var(--orange);
    border: 2px solid var(--orange);
    text-decoration: none;
}
.btn.secondary:hover {
    background: var(--orange);
    color: #fff;
}

.seen-in {
    text-align: center;
    padding: 3rem 0 1rem;
}
.seen-in h2 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.seen-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}
.seen-logos img {
    max-height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.seen-logos img:hover {
    opacity: 1;
}

/* ====== FOOTER.CSS ====== */
.footer-main {
    font-size: 15px;
    color: #666;
    text-align: center;

    background: #000a18;

    padding: 16px 0 22px;
}

.footer-main__logo {
    width: 150px;

    margin: 0 auto 8px;
}

.footer-main__disclaimer {
    line-height: 1.25;

    padding: 0 12px;
    margin: 8px 0;
}

.footer-main__age {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    margin-bottom: 8px;
}

.footer-main__cards {
    display: flex;
    justify-content: center;

    gap: 12px;

    margin-bottom: 8px;
}

.footer-main__copy {
    color: #333;
    font-size: 10px;
}

/* Лого + текст вертикально */
.brand-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.brand-logo {
    width: 150px;
    height: auto;
}
.brand-text {
    font-family: "Nico Moji", monospace;
    font-size: 1.3rem;
    text-align: center;
}

/* Промо-текст */
.promo {
    color: #d6deea;
    font-size: 0.75rem;
}
.promo a {
    color: var(--orange);
    text-decoration: underline;
}

/* Средняя строка */
.age-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap; /* чтобы всё в одну строку */
}
.age-icon {
    width: 32px;
    height: auto;
}
.cards {
    display: block;
    margin: 0 auto;
    align-items: center;
    gap: 0.75rem;
}
.cards img {
    height: 26px;
    object-fit: contain;
}

/* ---------- MOBILE (≤ 480 px) ---------- */
@media (max-width: 480px) {
    /* базовые отступы */
    .container {
        width: 100%;
        padding-inline: 0.75rem;
    }

    /* шапка */
    .header-inner {
        gap: 0.5rem;
    }
    .site-title {
        font-size: 1.25rem;
    }

    /* интро */
    .intro {
        padding: 1rem 0;
    }
    .intro-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .intro-header h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }
    .promo-card {
        margin-top: 0.5rem;
    }

    .game-card {
        display: grid;
        grid-template-columns: 110px 1fr; /* обложка | контент */
        grid-template-areas:
            "cover   features"
            "cover   preview"
            "cover   vol"
            "players players"
            "rating  rating"
            "play    play"
            "claim   claim";
        gap: 0.75rem;
        padding: 1rem;
    }

    /* ——— Левая колонка ——— */
    .cover-col {
        grid-area: cover;
        padding: 0;
        background: none;
    }
    .cover-col .cover {
        width: 100%;
        height: auto;
    }
    .cover-col figcaption {
        grid-area: rating; /* ★ 4.7 Rating ★ — отдельная строка */
        background: #f5f6fa;
        font-size: 0.9rem;
        text-align: center;
        padding: 0.4rem 0;
        border-radius: 6px;
        margin: 0;
    }

    /* ——— Правая колонка ——— */
    .game-title {
        grid-area: preview; /* убираем, не выводим */
        display: none;
    }
    .detail-col {
        display: contents;
    } /* «растворяем» враппер */

    /* список преимуществ */
    .features {
        grid-area: features;
        margin: 0;
        font-size: 0.9rem;
    }

    /* слот-превью */
    .preview-col {
        grid-area: preview;
    }
    .slot-preview {
        width: 100%;
        height: auto;
        margin: 0;
    }

    /* Volatility под превью */
    .volatility {
        grid-area: vol;
        margin: 0;
    }

    /* Active players на всю ширину */
    .players-chip {
        grid-area: players;
        width: 100%;
        margin: 0;
    }

    /* Кнопки полноразмерные */
    .btn.primary {
        grid-area: play;
        width: 100%;
    }
    .btn.secondary {
        grid-area: claim;
        width: 100%;
    }

    /* Убираем payments-wrap; на мобильном можно скрыть */
    .payments-wrap {
        display: none;
    }
    .detail-row {
        display: contents;
    } /* <— ключевое изменение */
    .preview-col {
        display: contents;
    } /* slot-preview станет прямым ребёнком .game-card */

    /* Кнопки во всю ширину внизу */
    .btn {
        width: 100%;
        max-width: none;
    } /* 100 % ширины карточки */

    /* Чуть плотнее сетка (визуально ближе к макету) */
    .game-card {
        row-gap: 0.6rem;
    }

    /* Подправляем волатильность, чтобы заняла всю строку */
    .volatility {
        width: 100%;
    }

    /* У списка фич убираем лишний margin-top,
     чтобы не «толкал» слот-превью вниз */
    .features {
        margin: 0;
    }

    /* Фикс: убираем верхний margin у players-chip,
     т.к. он теперь идёт сразу после volatility */
    .players-chip {
        margin: 0;
    }

    /* блок “As Seen In”  */
    .seen-in {
        padding: 2rem 0 0.5rem;
    }
    .seen-logos {
        gap: 1.25rem;
    }
    .seen-logos img {
        max-height: 30px;
    }

    /* футер */

    .brand-wrap {
        gap: 0.75rem;
    }
    .brand-logo {
        width: 150px;
    }
    .brand-text {
        font-size: 1.15rem;
    }

    .promo {
        order: 3;
    }

    .age-note {
        font-size: 0.75rem;
    }
    .age-icon {
        width: 28px;
    }
    .cards img {
        height: 22px;
    }
}
