:root {
    --space-4xs: clamp(0.31rem, calc(0.21vw + 0.26rem), 0.44rem);
    --space-3xs: clamp(0.38rem, calc(0.38vw + 0.31rem), 0.62rem);
    --space-2xs: clamp(0.48rem, calc(0.65vw + 0.35rem), 0.88rem);
    --space-xs: clamp(0.6rem, calc(1.04vw + 0.39rem), 1.24rem);
    --space-s: clamp(0.75rem, calc(1.63vw + 0.42rem), 1.75rem);
    --space-m: clamp(0.94rem, calc(2.51vw + 0.44rem), 2.47rem);
    --space-l: clamp(1.17rem, calc(3.8vw + 0.41rem), 3.5rem);
    --space-xl: clamp(1.47rem, calc(5.69vw + 0.33rem), 4.95rem);
    --space-2xl: clamp(1.83rem, calc(8.43vw + 0.14rem), 7rem);
    --space-3xl: clamp(2.29rem, calc(12.41vw + -0.19rem), 9.89rem);
    --text-xs: clamp(0.48rem, calc(0.39vw + 0.4rem), 0.72rem);
    --text-s: clamp(0.6rem, calc(0.49vw + 0.5rem), 0.9rem);
    --text-m: clamp(0.75rem, calc(0.61vw + 0.63rem), 1.13rem);
    --text-l: clamp(0.94rem, calc(0.77vw + 0.78rem), 1.41rem);
    --text-xl: clamp(1.17rem, calc(0.96vw + 0.98rem), 1.76rem);
    --text-2xl: clamp(1.47rem, calc(1.2vw + 1.23rem), 2.2rem);
    --text-3xl: clamp(1.83rem, calc(1.49vw + 1.53rem), 2.75rem);
    --text-4xl: clamp(2.29rem, calc(1.87vw + 1.92rem), 3.43rem);
    --header-height: 4rem;
    --sidebar-width: 25rem;
    --content-max-width: 87.5rem;
    --bottom-nav-height: 4rem;
    --logo-height: 2rem;
    --menu-icon-size: 1.5rem;
    --promo-icon-size: 2.5rem;
    --hero-min-height: 20rem;
    --vip-width: 17.5rem;
    --play-card-height: 6.5rem;
    --scroll-card-width: 10rem;
    --provider-card-width: 11rem;
    --provider-logo-height: 3rem;
    --social-size: 2rem;
    --payment-logo-height: 3rem;
    --button-width: 8.25rem;
    --mobile-drawer-width: 21.5rem;
    --mobile-edge-zone: 1.5rem;
    --radius-s: 0.75rem;
    --radius-m: 1rem;
    --radius-l: 1.25rem;
    --radius-xl: 1.75rem;
    --border-width: 0.0625rem;
    --dot-size: 0.5rem;
    --dot-size-large: 0.75rem;
    --line-base: 1.6;
    --line-tight: 1.2;
    --shadow-panel: 0 var(--space-s) var(--space-l) var(--color-shadow);
    --shadow-sidebar: var(--space-2xs) 0 var(--space-l) var(--color-shadow);
    --shadow-button: 0 var(--space-xs) var(--space-m) var(--color-shadow-soft);
    --color-bg: #050505;
    --color-surface: #111111;
    --color-surface-soft: #141816;
    --color-surface-card: #1a1f1c;
    --color-text: #ffffff;
    --color-muted: #98a39d;
    --color-accent: #39c46f;
    --color-accent-soft: rgba(57, 196, 111, 0.12);
    --color-accent-deep: #26583a;
    --color-outline-soft: rgba(57, 196, 111, 0.14);
    --color-outline-faint: rgba(57, 196, 111, 0.04);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.16);
    --color-overlay-panel: rgba(255, 255, 255, 0.04);
    --color-overlay-hover: rgba(255, 255, 255, 0.03);
    --color-overlay-strong: rgba(0, 0, 0, 0.68);
    --color-overlay-soft: rgba(0, 0, 0, 0.35);
    --color-shadow: rgba(0, 0, 0, 0.72);
    --color-shadow-soft: rgba(0, 0, 0, 0.5);
    --color-panel-glow: rgba(57, 196, 111, 0.08);
    --gradient-header: linear-gradient(90deg, var(--color-surface) 0%, var(--color-bg) 55%, var(--color-bg) 100%);
    --gradient-mission: linear-gradient(257.27deg, #eb17bc -0.09%, rgba(15, 44, 14, 0) 74.07%), var(--color-surface-card);
    --gradient-cashback: linear-gradient(257.27deg, #17eb85 -0.09%, rgba(15, 44, 14, 0) 74.07%), var(--color-surface-card);
    --gradient-wheel: linear-gradient(257.27deg, #176beb -0.09%, rgba(15, 44, 14, 0) 74.07%), var(--color-surface-card);
    --gradient-sport: linear-gradient(252deg, #1ed760, rgba(23, 23, 23, 0) 85.31%), var(--color-surface-soft);
    --gradient-esports: linear-gradient(252deg, #2e7bd7, rgba(23, 23, 23, 0) 89.01%), var(--color-surface-soft);
    --gradient-aviator: linear-gradient(252deg, #e82375, rgba(23, 23, 23, 0) 92.97%), var(--color-surface-soft);
    --gradient-mines: linear-gradient(252deg, #df1818, rgba(23, 23, 23, 0) 93.08%), var(--color-surface-soft);
    --gradient-hero: linear-gradient(105deg, var(--color-overlay-strong) 0%, var(--color-overlay-soft) 45%, transparent 75%);
}

@font-face {
    font-family: "Roboto";
    src: url("/assets/fonts/Roboto-VariableFont_wdth,wght.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-image: radial-gradient(circle at top right, var(--color-panel-glow) 0%, var(--color-bg) 24%);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    overflow-x: hidden;
}

body.hero-slider-dragging {
    overflow: hidden;
}

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

a {
    color: inherit;
}

ul,
ol {
    padding-left: 1.5em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    background-color: var(--color-bg);
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-header);
    transform-origin: left top;
    transform: skewX(-8deg);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    padding-inline: var(--space-xs);
}

.logo-link,
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-image,
.footer-logo {
    width: auto;
    height: var(--logo-height);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3xs);
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--button-width);
    padding: var(--space-4xs) var(--space-xs);
    border: var(--border-width) solid var(--color-accent);
    border-radius: var(--radius-s);
    background-image: linear-gradient(135deg, var(--color-accent-soft), transparent);
    background-color: transparent;
    color: var(--color-accent);
    font-size: var(--text-m);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 0 var(--border-width) transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.button-link:hover,
.button-link:focus-visible {
    transform: translateY(calc(var(--space-4xs) * -0.2));
    box-shadow: var(--shadow-button), 0 0 0 var(--border-width) var(--color-accent-soft), 0 0 var(--space-s) var(--color-accent-soft);
    border-color: var(--color-accent);
}

.button-link:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 0 0 var(--border-width) var(--color-accent), 0 0 var(--space-xs) var(--color-accent-soft);
}

.button-link.primary {
    background-color: var(--color-accent);
    background-image: none;
    color: var(--color-bg);
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(var(--space-xs));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    width: min(100%, var(--sidebar-width));
    height: calc(100vh - var(--header-height));
    padding: var(--space-xs) var(--space-2xs);
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sidebar);
    overflow-y: auto;
}

.sidebar-top,
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
}

.sidebar-row {
    display: flex;
    gap: var(--space-2xs);
}

.sidebar-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-3xs);
    border-radius: var(--radius-l);
    color: var(--color-text);
    text-decoration: none;
}

.sidebar-card.mission {
    background: var(--gradient-mission);
}

.sidebar-card.cashback {
    background: var(--gradient-cashback);
}

.sidebar-card.wheel {
    background: var(--gradient-wheel);
}

.sidebar-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3xs);
}

.sidebar-card-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-4xs);
}

.sidebar-card-label {
    font-size: var(--text-xs);
    opacity: 0.85;
}

.sidebar-card-title {
    font-size: var(--text-m);
    font-weight: 700;
}

.sidebar-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--promo-icon-size);
    height: var(--promo-icon-size);
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-item {
    margin: var(--space-4xs) 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-3xs);
    padding: var(--space-2xs);
    border: var(--border-width) solid var(--color-panel-glow);
    border-radius: var(--radius-s);
    background: linear-gradient(180deg, var(--color-surface-card) 0%, var(--color-surface-soft) 100%);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--text-m);
    box-shadow: inset 0 0 0 var(--border-width) transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link.is-current {
    border-color: var(--color-accent-deep);
    background: linear-gradient(180deg, var(--color-surface-soft) 0%, var(--color-surface-card) 100%);
    box-shadow: 0 0 0 var(--border-width) var(--color-accent-soft), 0 0 var(--space-s) var(--color-accent-soft);
    transform: translateX(var(--space-4xs));
}

.sidebar-link:active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 var(--border-width) var(--color-accent), 0 0 var(--space-xs) var(--color-accent-soft);
    transform: translateX(var(--space-4xs)) scale(0.99);
}

.sidebar-icon-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--menu-icon-size);
    height: var(--menu-icon-size);
    color: var(--color-text);
    flex-shrink: 0;
}

.page-content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: var(--space-m);
    min-height: calc(100vh - var(--header-height));
}

.content-inner {
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: max(0rem, calc(50vw - var(--content-max-width) / 2 - var(--sidebar-width) - var(--space-m)));
    margin-right: auto;
}

.hero,
.play,
.top-games,
.providers,
.page-banner,
.article-page {
    margin-bottom: var(--space-l);
    animation: rise-in 0.65s ease both;
}

@supports (content-visibility: auto) {
    .play,
    .top-games,
    .providers,
    .page-banner,
    .article-page,
    .site-footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 960px;
    }
}

.hero {
    animation-delay: 0.02s;
}

.play {
    animation-delay: 0.08s;
}

.top-games,
.providers,
.page-banner,
.article-page,
.site-footer {
    animation-delay: 0.12s;
}

.hero-inner {
    display: flex;
    align-items: stretch;
    gap: var(--space-s);
}

.hero-slider {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: var(--hero-min-height);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    border: var(--border-width) solid var(--color-panel-glow);
    box-shadow: var(--shadow-panel);
}

.hero-slider-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    z-index: 1;
}

.hero-slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    min-height: var(--hero-min-height);
    transition: transform 0.35s ease-out;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 33.333333%;
    min-width: 0;
    min-height: var(--hero-min-height);
    background-color: var(--color-surface);
    overflow: hidden;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
    pointer-events: none;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
    padding: var(--space-m);
}

.hero-slide-label {
    margin-bottom: var(--space-2xs);
    color: var(--color-muted);
    font-size: var(--text-s);
}

.hero-slide-title {
    margin-bottom: var(--space-s);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: var(--line-tight);
}

.hero-slider-dots {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xs);
    padding-left: var(--space-s);
    padding-right: var(--space-2xs);
}

.hero-slider-dot {
    width: var(--dot-size-large);
    height: var(--dot-size-large);
    border: none;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    touch-action: manipulation;
}

.hero-slider-dot.is-active {
    background-color: var(--color-accent);
}

.hero-vip {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--vip-width);
    flex-shrink: 0;
    padding: var(--space-m);
    border-radius: var(--radius-xl);
    border: var(--border-width) solid var(--color-panel-glow);
    background: var(--color-surface) url("/assets/img/bg-vip.webp") center / cover no-repeat;
    box-shadow: var(--shadow-panel);
}

.hero-vip-image-wrap {
    aspect-ratio: 1;
    width: 100%;
    margin-bottom: var(--space-s);
}

.hero-vip-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-vip-title {
    margin-bottom: var(--space-s);
    font-size: var(--text-xl);
    font-weight: 700;
    text-align: center;
}

.hero-vip-btn {
    color: var(--color-text);
    border-color: var(--color-border-strong);
    background-color: var(--color-surface);
    background-image: none;
}

.hero-vip-btn:hover {
    border-color: var(--color-accent-deep);
}

.play-title,
.top-games-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: var(--line-tight);
}

.top-games-title {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
}

.top-games-title::after {
    content: "";
    width: var(--space-l);
    height: var(--border-width);
    background-color: var(--color-accent-deep);
}

.play-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-s);
}

.play-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--play-card-height);
    padding: var(--space-3xs);
    border-radius: var(--radius-m);
    color: var(--color-text);
    text-decoration: none;
    overflow: hidden;
    border: var(--border-width) solid var(--color-panel-glow);
}

.play-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.9;
}

.play-card-sport::before {
    background: var(--gradient-sport);
}

.play-card-esports::before {
    background: var(--gradient-esports);
}

.play-card-aviator::before {
    background: var(--gradient-aviator);
}

.play-card-mines::before {
    background: var(--gradient-mines);
}

.play-card-content,
.play-card-image-wrap {
    position: relative;
    z-index: 1;
}

.play-card-label {
    margin-bottom: var(--space-4xs);
    font-size: var(--text-m);
    color: var(--color-muted);
}

.play-card-name {
    font-size: var(--text-xl);
    font-weight: 700;
}

.play-card-image-wrap {
    position: absolute;
    top: calc(var(--space-xs) * -1);
    right: calc(var(--space-m) * -1);
    width: 50%;
    max-width: 9rem;
}

.play-card-image {
    width: 100%;
    height: auto;
    transition: transform 0.25s ease;
}

.play-card:hover .play-card-image {
    transform: scale(1.04);
}

.play-card:hover {
    box-shadow: var(--shadow-panel);
}

.top-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    margin-bottom: var(--space-s);
}

.top-games-controls {
    display: flex;
    align-items: center;
    gap: var(--space-3xs);
}

.top-games-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xs) var(--space-2xs);
    border-radius: 999rem;
    background-color: var(--color-surface);
    border: var(--border-width) solid var(--color-outline-soft);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--text-m);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.top-games-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--space-m) + var(--space-2xs));
    height: calc(var(--space-m) + var(--space-2xs));
    border: none;
    border-radius: 50%;
    background-color: var(--color-surface);
    border: var(--border-width) solid var(--color-outline-soft);
    color: var(--color-text);
    cursor: pointer;
    font-size: var(--text-s);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.top-games-view-all:hover,
.top-games-view-all:focus-visible,
.top-games-arrow:hover,
.top-games-arrow:focus-visible,
.hero-vip-btn:hover,
.hero-vip-btn:focus-visible,
.top-game-play:hover,
.top-game-play:focus-visible,
.footer-social-link:hover,
.footer-social-link:focus-visible {
    border-color: var(--color-accent-deep);
    box-shadow: 0 0 0 var(--border-width) var(--color-accent-soft), 0 0 var(--space-s) var(--color-accent-soft);
}

.top-games-view-all:hover,
.top-games-view-all:focus-visible,
.top-games-arrow:hover,
.top-games-arrow:focus-visible {
    transform: translateY(calc(var(--space-4xs) * -0.2));
}

.top-games-view-all:active,
.top-games-arrow:active,
.hero-vip-btn:active,
.top-game-play:active {
    transform: scale(0.99);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 var(--border-width) var(--color-accent), 0 0 var(--space-xs) var(--color-accent-soft);
}

.top-games-carousel {
    overflow: hidden;
}

.top-games-list {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.top-games-list::-webkit-scrollbar {
    display: none;
}

.top-game-card,
.provider-card {
    position: relative;
    overflow: hidden;
    flex: 0 0 var(--scroll-card-width);
    border-radius: var(--radius-m);
    text-decoration: none;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: var(--border-width) solid var(--color-panel-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.provider-card {
    flex-basis: var(--provider-card-width);
    padding: var(--space-2xs);
}

.top-game-card:hover,
.provider-card:hover {
    transform: translateY(calc(var(--space-4xs) * -0.35));
    box-shadow: var(--shadow-panel);
    border-color: var(--color-accent-deep);
}

.top-game-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 0.7;
}

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

.top-game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xs);
    padding: var(--space-s);
    background-color: var(--color-overlay-strong);
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.top-game-card:hover .top-game-overlay {
    opacity: 1;
}

.top-game-name {
    font-size: var(--text-m);
    font-weight: 700;
}

.top-game-play {
    min-width: calc(var(--button-width) - var(--space-s));
}

.top-game-demo {
    color: var(--color-accent);
    font-size: var(--text-s);
    text-decoration: none;
}

.provider-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(var(--provider-logo-height) + var(--space-s));
}

.provider-logo {
    width: auto;
    max-width: 100%;
    height: var(--provider-logo-height);
    object-fit: contain;
}

.page-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--space-s);
}

.page-banner-main,
.page-banner-side {
    display: flex;
    flex-direction: column;
    padding: var(--space-m);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-panel);
}

.page-banner-label {
    margin-bottom: var(--space-2xs);
    color: var(--color-accent);
    font-size: var(--text-s);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-banner-title {
    margin-bottom: var(--space-s);
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: var(--line-tight);
}

.page-banner-text,
.page-banner-side p,
.page-banner-side li {
    color: var(--color-muted);
    font-size: var(--text-m);
    line-height: var(--line-base);
}

.page-banner-side-title {
    margin-bottom: var(--space-2xs);
    font-size: var(--text-l);
    font-weight: 700;
}

.page-banner-side ul {
    display: grid;
    gap: var(--space-2xs);
}

.page-banner-media {
    width: 100%;
    margin-top: var(--space-s);
    overflow: hidden;
    border: var(--border-width) solid var(--color-panel-glow);
    border-radius: var(--radius-l);
    background-color: var(--color-surface-soft);
    box-shadow: var(--shadow-panel);
}

.page-banner-media.is-portrait {
    width: min(100%, 22rem);
    margin-left: auto;
    margin-right: auto;
}

.page-banner-media img {
    display: block;
    width: 100%;
    height: auto;
}

.article-page {
    padding: var(--space-m);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-panel);
}

.article-meta {
    margin-bottom: var(--space-s);
    color: var(--color-muted);
    font-size: var(--text-s);
}

.article-page h1 {
    margin-bottom: var(--space-s);
    font-size: var(--text-3xl);
    line-height: var(--line-tight);
}

.article-page h2 {
    margin: var(--space-l) 0 var(--space-s);
    font-size: var(--text-xl);
    line-height: var(--line-tight);
}

.article-page h3 {
    margin: var(--space-m) 0 var(--space-2xs);
    font-size: var(--text-l);
    line-height: var(--line-tight);
}

.article-media {
    margin: var(--space-m) 0 var(--space-s);
}

.article-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-l);
    border: var(--border-width) solid var(--color-panel-glow);
    box-shadow: var(--shadow-panel);
}

.article-page p,
.article-page li {
    color: var(--color-muted);
    font-size: var(--text-m);
    line-height: var(--line-base);
}

.article-page p + p,
.article-page ul + p,
.article-page ol + p,
.article-page .article-table-wrap + p,
.article-page .step-grid + p,
.article-page .faq-accordion + p {
    margin-top: var(--space-s);
}

.article-page a {
    color: var(--color-accent);
    text-decoration: none;
}

.article-page ul,
.article-page ol {
    display: grid;
    gap: var(--space-2xs);
    margin-top: var(--space-2xs);
}

.article-table-wrap {
    width: 100%;
    margin: var(--space-s) 0;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-l);
    overflow-x: auto;
    background-color: var(--color-surface-soft);
}

.article-page table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
}

.article-page th,
.article-page td {
    padding: var(--space-2xs) var(--space-s);
    text-align: left;
    border-bottom: var(--border-width) solid var(--color-border);
    font-size: var(--text-s);
}

.article-page th {
    color: var(--color-text);
    background-color: var(--color-overlay-panel);
}

.article-page tr:last-child td {
    border-bottom: none;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-s);
    margin: var(--space-s) 0;
}

.step-card {
    padding: var(--space-s);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-l);
    background-color: var(--color-surface-soft);
}

.step-card-title {
    margin-bottom: var(--space-2xs);
    color: var(--color-text);
    font-size: var(--text-m);
    font-weight: 700;
}

.step-card p {
    margin: 0;
}

.note-box {
    margin: var(--space-s) 0;
    padding: var(--space-s);
    border-left: calc(var(--border-width) * 4) solid var(--color-accent);
    border-radius: var(--radius-m);
    background-color: var(--color-accent-soft);
}

.note-box p {
    color: var(--color-text);
}

.faq-accordion {
    margin-top: var(--space-s);
}

.faq-accordion-item {
    margin-bottom: var(--space-2xs);
    border: var(--border-width) solid var(--color-accent-soft);
    border-radius: var(--radius-l);
    background-color: var(--color-surface-soft);
    overflow: hidden;
    box-shadow: inset 0 0 0 var(--border-width) var(--color-outline-faint);
}

.faq-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    width: 100%;
    padding: var(--space-s) var(--space-m);
    border: none;
    background: none;
    color: var(--color-text);
    font: inherit;
    font-size: var(--text-m);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.faq-accordion-trigger:hover,
.faq-accordion-trigger[aria-expanded="true"] {
    color: var(--color-accent);
    background-color: var(--color-overlay-panel);
}

.faq-accordion-icon {
    position: relative;
    width: calc(var(--space-s) + var(--space-2xs));
    height: calc(var(--space-s) + var(--space-2xs));
    flex-shrink: 0;
}

.faq-accordion-icon::before,
.faq-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: currentColor;
    transition: transform 0.25s ease;
}

.faq-accordion-icon::before {
    width: var(--space-xs);
    height: var(--border-width);
    margin-left: calc(var(--space-xs) / -2);
    margin-top: calc(var(--border-width) / -2);
}

.faq-accordion-icon::after {
    width: var(--border-width);
    height: var(--space-xs);
    margin-left: calc(var(--border-width) / -2);
    margin-top: calc(var(--space-xs) / -2);
}

.faq-accordion-trigger[aria-expanded="true"] .faq-accordion-icon::after {
    transform: scaleY(0);
}

.faq-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-accordion-panel.is-open {
    max-height: 120rem;
}

.faq-accordion-panel p {
    padding: 0 var(--space-m) var(--space-s);
}

.site-footer {
    background-image: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border-top: var(--border-width) solid var(--color-panel-glow);
}

.footer-inner {
    max-width: var(--content-max-width);
    margin-left: max(calc(var(--sidebar-width) + var(--space-m)), calc(50vw - var(--content-max-width) / 2));
    margin-right: auto;
    padding: var(--space-xl) var(--space-m);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 3fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-m);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    padding-right: var(--space-m);
}

.footer-brand-text {
    max-width: 20rem;
    color: var(--color-muted);
    font-size: var(--text-s);
    line-height: var(--line-base);
}

.footer-social {
    display: flex;
    gap: var(--space-2xs);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--social-size) + var(--space-2xs));
    height: calc(var(--social-size) + var(--space-2xs));
    border: var(--border-width) solid var(--color-panel-glow);
    border-radius: 50%;
    background-color: var(--color-surface-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-social-link:hover {
    transform: translateY(calc(var(--space-4xs) * -0.25));
    border-color: var(--color-accent-deep);
    box-shadow: var(--shadow-panel);
}

.footer-social-link img {
    width: var(--social-size);
    height: var(--social-size);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-l);
    width: 100%;
}

.footer-col-title {
    margin-bottom: var(--space-2xs);
    font-size: var(--text-m);
    font-weight: 700;
}

.footer-list {
    display: grid;
    gap: var(--space-3xs);
    list-style: none;
    padding: 0;
}

.footer-list a {
    color: var(--color-muted);
    font-size: var(--text-m);
    text-decoration: none;
}

.footer-list a:hover {
    color: var(--color-text);
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    padding-top: var(--space-m);
    margin-bottom: var(--space-s);
    border-top: var(--border-width) solid var(--color-border);
}

.footer-payment-logo {
    width: auto;
    height: var(--payment-logo-height);
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-s);
    padding-top: var(--space-s);
    border-top: var(--border-width) solid var(--color-border);
}

.footer-age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--space-xl) + var(--space-2xs));
    height: calc(var(--space-xl) + var(--space-2xs));
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-size: var(--text-m);
    font-weight: 700;
}

.footer-copy {
    width: min(100%, 42rem);
    color: var(--color-muted);
    font-size: var(--text-s);
    line-height: var(--line-base);
}

.bottom-nav {
    display: none;
}

.bottom-nav {
    align-items: center;
    justify-content: space-around;
    gap: var(--space-2xs);
    padding-inline: var(--space-2xs);
    background-color: var(--color-surface);
    border-top: var(--border-width) solid var(--color-border);
}

.bottom-nav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4xs);
    min-width: 0;
    padding: var(--space-3xs);
    border: none;
    background: none;
    color: var(--color-muted);
    text-decoration: none;
    font: inherit;
    font-size: var(--text-s);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
    width: var(--menu-icon-size);
    height: var(--menu-icon-size);
}

.bottom-nav-item:hover,
.bottom-nav-item:focus-visible {
    color: var(--color-text);
}

@media (max-width: 900px) {
    .page-layout {
        display: block;
    }

    body.is-menu-open {
        overflow: hidden;
    }

    .sidebar {
        z-index: 90;
        width: min(84vw, var(--mobile-drawer-width));
        height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
        border-top-right-radius: var(--radius-xl);
        border-bottom-right-radius: var(--radius-xl);
        transform: translateX(calc(-100% - var(--space-s)));
        transition: transform 0.28s ease;
        visibility: hidden;
        pointer-events: none;
        will-change: transform;
    }

    body.is-menu-open .sidebar,
    .sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .page-content {
        width: 100%;
        margin-left: 0;
    }

    .content-inner,
    .footer-inner {
        margin-left: auto;
        margin-right: auto;
    }

    .page-banner {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        flex-direction: column;
    }

    .hero-vip {
        width: 100%;
    }

    .play-grid,
    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-games-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        min-height: var(--bottom-nav-height);
        z-index: 85;
    }
}

@media (max-width: 640px) {
    .play-grid,
    .step-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
