/* 1mlnbet shell — dark / blaze accent. System fonts only for LCP. */
:root {
    --void: #060606;
    --carbon: #101010;
    --panel: #161616;
    --edge: #2c2c2c;
    --blaze: #ff6b14;
    --blaze-deep: #e4580c;
    --ink: #f6f6f6;
    --muted: #a9a9a9;
    --glow: rgba(255, 107, 20, 0.35);
    --radius-tight: 10px;
    --radius-loose: 16px;
    --space: clamp(12px, 2.5vw, 22px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    color: var(--ink);
    background: var(--void);
    -webkit-font-smoothing: antialiased;
}

body.drawer-locks-scroll {
    overflow: hidden;
    touch-action: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Shell header ---
   Обёртка без собственной коробки: иначе sticky-шапка ограничена низкой высотой родителя
   и «отлипает» сразу после прокрутки на пару экранов. */
.shell-root {
    display: contents;
}

.masthead-slab {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    top: env(safe-area-inset-top, 0px);
    z-index: 100;
    background: linear-gradient(180deg, var(--carbon) 0%, var(--void) 100%);
    border-bottom: 1px solid var(--edge);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.masthead-topline {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: var(--space) calc(var(--space) + 4px);
    max-width: 1280px;
    margin: 0 auto;
}

.brand-cluster {
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark__img {
    max-height: 42px;
    width: auto;
}

.brand-mark__text {
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.15rem;
}

.masthead-cta-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: var(--radius-tight);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.header-cta--ghost {
    color: var(--ink);
    border: 1px solid var(--edge);
    background: rgba(255, 255, 255, 0.04);
}

.header-cta--ghost:hover {
    border-color: var(--blaze);
    color: var(--blaze);
}

.header-cta--glow {
    background: linear-gradient(135deg, var(--blaze), var(--blaze-deep));
    color: #0a0a0a;
    box-shadow: 0 4px 18px var(--glow);
}

.header-cta--glow:hover {
    transform: translateY(-1px);
}

.header-cta--block {
    width: 100%;
    margin-bottom: 8px;
}

.drawer-trigger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--edge);
    border-radius: var(--radius-tight);
    background: var(--panel);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.drawer-trigger__layer {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--blaze);
    border-radius: 1px;
    box-shadow: 0 6px 0 var(--blaze), 0 -6px 0 var(--blaze);
}

/* Лента меню под хедером — в обычном потоке, прокручивается вместе со страницей */
.nav-band-wrap {
    background: rgba(22, 22, 22, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--edge);
}

.nav-ribbon {
    max-width: 1280px;
    margin: 0 auto;
}

.nav-ribbon__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 10px calc(var(--space) + 4px) 14px;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 20, 0.82) rgba(22, 22, 22, 0.92);
}

.nav-ribbon__cell {
    flex: 0 0 auto;
}

.nav-ribbon__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 76px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--edge);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.nav-ribbon__link:hover {
    border-color: var(--blaze);
    color: var(--blaze);
}

.nav-ribbon__link.is-current {
    border-color: var(--blaze);
    color: var(--blaze);
    background: rgba(255, 107, 20, 0.08);
}

.nav-ribbon__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.chrome-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.nav-ribbon__label {
    line-height: 1.15;
}

/* Mobile drawer */
.drawer-veil {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.drawer-veil.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.slide-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 130;
    height: 100%;
    width: min(90vw, 320px);
    max-width: 100%;
    background: var(--carbon);
    border-left: 1px solid var(--edge);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
}

.slide-drawer.is-open {
    transform: translateX(0);
}

.slide-drawer__surface {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.slide-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--edge);
}

.slide-drawer__title {
    font-weight: 700;
}

.drawer-dismiss {
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.slide-drawer__menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.slide-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--edge);
}

.slide-drawer__link:hover,
.slide-drawer__link.is-current {
    color: var(--blaze);
    background: rgba(255, 107, 20, 0.06);
}

.slide-drawer__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.slide-drawer__icon .chrome-icon {
    width: 1.45rem;
    height: 1.45rem;
}

.slide-drawer__cta {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--edge);
}

/* Page canvas */
.page-canvas.stack-flow {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space);
}

/* Breadcrumbs */
.trail-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: calc(var(--space) + 4px);
    font-size: 0.8rem;
}

.trail-crumbs__hop {
    color: var(--muted);
    text-decoration: none;
}

.trail-crumbs__hop:hover {
    color: var(--blaze);
}

.trail-crumbs__slash {
    color: #555;
    user-select: none;
}

/* Promotional banners (general JSON) */
.promotional-banners {
    display: grid;
    gap: 14px;
    margin-bottom: calc(var(--space) * 1.25);
}

@media (min-width: 720px) {
    .promotional-banners {
        grid-template-columns: repeat(2, 1fr);
    }
}

.promo-banner {
    position: relative;
    border-radius: var(--radius-loose);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--edge);
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .promo-banner {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.promo-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

/* Мобильный: без принудительной высоты и cover — картинка в натуральном соотношении сторон, как макет */
@media (max-width: 639px) {
    .promo-banner-image {
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center top;
    }
}

.promo-banner-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.promo-banner-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.promo-banner-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.promo-banner-btn {
    align-self: flex-start;
    padding: 12px 20px;
    border-radius: var(--radius-tight);
    background: linear-gradient(135deg, var(--blaze), var(--blaze-deep));
    color: #0a0a0a;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--glow);
}

@media (min-width: 960px) {
    .promo-banner {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        align-items: center;
    }

    .promo-banner-image {
        min-height: 0;
        height: auto;
        max-height: 172px;
        aspect-ratio: 21 / 9;
        object-fit: cover;
        object-position: center;
    }

    .promo-banner-content {
        padding: 16px 22px;
    }

    .promo-banner-title {
        font-size: 1.02rem;
    }

    .promo-banner-text {
        font-size: 0.88rem;
    }

    .promo-banner-btn {
        padding: 11px 18px;
        font-size: 0.85rem;
    }
}

/* Game lobby rows */
.game-section {
    margin-bottom: calc(var(--space) * 1.75);
}

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

.section-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    background: var(--blaze);
    border-radius: 2px;
}

.show-all-btn {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius-tight);
    border: 1px solid var(--edge);
    color: var(--muted);
    text-decoration: none;
}

.show-all-btn:hover {
    border-color: var(--blaze);
    color: var(--blaze);
}

.games-carousel {
    margin: 0 calc(-1 * var(--space));
    padding: 0 var(--space);
}

.games-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 20, 0.82) rgba(22, 22, 22, 0.92);
}

/* Горизонтальный скролл: тёмный трек и «blaze»-ползунок (WebKit) */
.games-grid::-webkit-scrollbar,
.nav-ribbon__list::-webkit-scrollbar {
    height: 7px;
}

.games-grid::-webkit-scrollbar-track,
.nav-ribbon__list::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.55) 0%, rgba(10, 10, 10, 0.95) 100%);
    border-radius: 100px;
    margin-inline: 8px;
    box-shadow: inset 0 0 0 1px rgba(44, 44, 44, 0.6);
}

.games-grid::-webkit-scrollbar-thumb,
.nav-ribbon__list::-webkit-scrollbar-thumb {
    border-radius: 100px;
    background: linear-gradient(90deg, var(--blaze-deep), var(--blaze));
    box-shadow: 0 0 10px rgba(255, 107, 20, 0.35);
    border: 2px solid rgba(6, 6, 6, 0.65);
    background-clip: padding-box;
}

.games-grid::-webkit-scrollbar-thumb:hover,
.nav-ribbon__list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--blaze), #ff8a4a);
    box-shadow: 0 0 14px var(--glow);
}

.game-card {
    flex: 0 0 42vw;
    max-width: 168px;
    scroll-snap-align: start;
    border-radius: var(--radius-loose);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--edge);
}

@media (min-width: 900px) {
    .game-card {
        flex: 0 0 150px;
    }
}

.game-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-play-btn {
    position: absolute;
    left: 50%;
    width: calc(100% - 16px);
    bottom: 10px;
    top: auto;
    margin: 0;
    padding: 8px;
    text-align: center;
    border-radius: var(--radius-tight);
    background: linear-gradient(135deg, var(--blaze), var(--blaze-deep));
    color: #0a0a0a;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition:
        opacity 0.22s ease,
        bottom 0.28s cubic-bezier(0.34, 1.15, 0.64, 1),
        top 0.28s cubic-bezier(0.34, 1.15, 0.64, 1),
        transform 0.28s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.game-image-wrapper:hover .game-play-btn,
.game-image-wrapper:focus-within .game-play-btn {
    opacity: 1;
    pointer-events: auto;
    bottom: auto;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.game-title {
    padding: 10px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    min-height: 2.8em;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
    margin-top: -2.8em;
    position: relative;
    z-index: 1;
}

/* Bonuses */
.bonuses-section {
    margin-bottom: calc(var(--space) * 1.5);
}

.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.bonus-card {
    border-radius: var(--radius-loose);
    overflow: hidden;
    border: 1px solid var(--edge);
    background: var(--panel);
}

.bonus-image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.bonus-content {
    padding: 14px;
}

.bonus-name {
    font-weight: 800;
    margin-bottom: 8px;
}

.bonus-description {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.bonus-value {
    font-size: 1rem;
    color: var(--blaze);
}

.bonus-category-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(255, 107, 20, 0.12);
    color: var(--blaze);
}

.bonus-terms {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--edge);
    font-size: 0.75rem;
    color: var(--muted);
}

/* Prose / text.json */
.text-content {
    padding: var(--space) 0;
}

.text-content h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.text-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 2rem 0 0.75rem;
}

.text-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}

.text-content p {
    margin: 0 0 1rem;
    color: #d8d8d8;
}

.text-content a {
    color: var(--blaze);
}

.text-content img {
    border-radius: var(--radius-tight);
}

/* Tables: horizontal scroll on narrow viewports */
.tabular-sleeve {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.25rem 0;
    max-width: 100%;
}

.text-content .table-wrapper table,
.table-wrapper table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.text-content th,
.text-content td,
.table-wrapper th,
.table-wrapper td {
    padding: 10px 12px;
    border: 1px solid var(--edge);
    text-align: left;
}

.text-content th,
.table-wrapper th {
    background: var(--panel);
    font-weight: 700;
}

.text-content caption,
.table-wrapper caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    margin-bottom: 8px;
}

/* FAQ / HowTo */
.faq-item-block {
    border: 1px solid var(--edge);
    border-radius: var(--radius-tight);
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--panel);
}

.faq-question-block {
    padding: 14px;
    background: rgba(255, 107, 20, 0.06);
}

.faq-answer-block {
    padding: 14px;
    color: #d0d0d0;
}

.howto-wrapper {
    border: 1px solid var(--edge);
    border-radius: var(--radius-loose);
    padding: 16px;
    background: var(--panel);
}

.howto-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.howto-step-item {
    counter-increment: step;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-tight);
    background: var(--carbon);
    border-left: 3px solid var(--blaze);
}

.howto-step-item::before {
    content: counter(step) ". ";
    font-weight: 800;
    color: var(--blaze);
}

/* Lists */
.list-container ul,
.list-container ol {
    padding-left: 1.25rem;
    color: #d8d8d8;
}

.text-content blockquote {
    margin: 1.25rem 0;
    padding: 14px 18px;
    border-left: 3px solid var(--blaze);
    background: var(--panel);
    color: #ccc;
}

/* Платежи в футере — миниатюрные прямоугольные чипы */
.footer-payment {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-payment__heading {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: #7a7a7a;
}

/* Компактные горизонтальные чипы под стиль нижней полосы футера */
.footer-payment__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin: 0 auto;
}

.footer-payment .payment-method-card {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    max-width: 5.25rem;
    min-height: 20px;
    height: 20px;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: none;
}

.footer-payment .payment-method-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.footer-payment .payment-method-image {
    max-height: 12px;
    max-width: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.2) opacity(0.9);
}

.footer-payment .payment-method-name {
    margin: 0;
    padding: 0;
    font-size: 0.5rem;
    font-weight: 600;
    line-height: 1;
    color: #8e8e8e;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 2.65rem;
}

/* Сетка карточек оплаты, если блок когда-либо используется вне футера */
.payment-methods-grid:not(.footer-payment__grid) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 10px;
}

.payment-method-card {
    border: 1px solid var(--edge);
    border-radius: var(--radius-tight);
    padding: 12px;
    text-align: center;
    background: var(--panel);
}

.payment-method-name {
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 8px;
}

/* App page table */
.app-info-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0 1.5rem;
}

.app-info-table-container {
    min-width: 320px;
}

.app-info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--edge);
    border-radius: var(--radius-tight);
    overflow: hidden;
}

.app-info-row {
    border-bottom: 1px solid var(--edge);
}

.app-info-label-cell {
    width: 56px;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    background: var(--carbon);
}

.app-info-value-cell {
    padding: 12px 14px;
    color: #e2e2e2;
}

.app-info-icon {
    width: 26px;
    height: 26px;
    color: var(--blaze);
}

.app-download-link {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: var(--radius-tight);
    background: var(--blaze);
    color: #0a0a0a;
    font-weight: 700;
    text-decoration: none;
}

/* Footer */
.site-footer {
    margin-top: calc(var(--space) * 2);
    padding: calc(var(--space) * 1.5) var(--space);
    background: var(--carbon);
    border-top: 1px solid var(--edge);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.footer-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--ink);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--blaze);
}

.footer-social-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
}

.footer-social-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #3d3d3d;
    border: 1px solid var(--edge);
    border-radius: var(--radius-tight);
    transition: background 0.15s ease;
}

.footer-social-anchor:hover .footer-social-icon-wrap {
    background: #4a4a4a;
}

.footer-social-image {
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

.footer-social-name {
    white-space: nowrap;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--edge);
    font-size: 0.72rem;
    color: #777;
}

.footer-bottom > p {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.footer-safe-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    margin: 0 0 12px;
}

.safe-image {
    max-height: 36px;
    width: auto;
}

/* 404 helpers */
.http-missing {
    text-align: center;
    padding: 48px var(--space);
}

.http-missing__code {
    font-size: clamp(3rem, 12vw, 4.5rem);
    font-weight: 900;
    color: var(--blaze);
    margin: 0 0 0.5rem;
}

.http-missing__title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.http-missing p {
    color: var(--muted);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* Legacy class used on some anchors */
.btn-primary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius-tight);
    background: var(--blaze);
    color: #0a0a0a !important;
    font-weight: 700;
    text-decoration: none;
}

/* Mobile: show burger right, tighten masthead */
@media (max-width: 768px) {
    .masthead-topline {
        grid-template-columns: 1fr auto auto;
    }

    .masthead-cta-cluster .header-cta {
        padding: 8px 10px;
        font-size: 0.72rem;
    }

    .drawer-trigger {
        display: inline-flex;
    }

    /* Слот: кнопка «Play» только после тапа по превью (класс задаёт JS) */
    .game-image-wrapper:hover .game-play-btn,
    .game-image-wrapper:focus-within .game-play-btn {
        opacity: 0;
        pointer-events: none;
        bottom: 10px;
        top: auto;
        transform: translateX(-50%) translateY(8px);
    }

    .game-card.slot-tile--active .game-play-btn {
        opacity: 1;
        pointer-events: auto;
        bottom: auto;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .masthead-topline {
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .masthead-cta-cluster {
        gap: 4px;
        flex-shrink: 0;
    }

    .masthead-cta-cluster .header-cta {
        padding: 7px 8px;
        font-size: 0.65rem;
    }

    .brand-mark__img {
        max-height: 36px;
    }
}

@media (min-width: 769px) {
    .slide-drawer,
    .drawer-veil {
        display: none !important;
    }
}
