/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark · genre: modern-minimal · theme: custom-dark-casino */

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-wrap: break-word;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--dock-height) + var(--space-4));
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
    color: var(--color-accent-light);
}

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

/* Headings: roman only, never italic */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--space-4);
}

/* Containers */
.wrap {
    width: 100%;
    max-width: var(--wrap-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -999px;
    left: var(--space-4);
    background: var(--color-accent);
    color: var(--color-text-inverse);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-weight: 700;
    z-index: 999;
}

.skip-link:focus {
    top: var(--space-4);
}

/* Grid Children Constraint (Zero out min-width) */
.layout__main,
.layout__side,
.app-layout > *,
.hero-split > *,
.hero-tiles > *,
.games-grid > *,
.article-grid > *,
.footer-grid > * {
    min-width: 0;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn--primary,
.btn--register {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #090a0d;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.btn--primary:hover,
.btn--register:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #090a0d;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5);
}

.btn--login {
    background-color: var(--color-surface-2);
    color: var(--color-text-main);
    border-color: var(--color-border-default);
}

.btn--login:hover {
    background-color: var(--color-surface-3);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn--bonus {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.35);
    padding: 12px 24px;
    font-size: 1rem;
}

.btn--bonus:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
}

.btn--cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #090a0d;
    padding: 14px 28px;
    font-size: 1.0625rem;
    box-shadow: var(--shadow-accent);
}

.btn--cta:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #090a0d;
}

.btn--secondary {
    background-color: var(--color-surface-2);
    color: var(--color-text-main);
    border: 1px solid var(--color-border-default);
}

.btn--secondary:hover {
    background-color: var(--color-surface-3);
    color: #ffffff;
}

.btn--copy {
    background-color: var(--color-surface-3);
    color: var(--color-text-main);
    border: 1px solid var(--color-border-default);
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn--copy:hover {
    background-color: var(--color-surface-elevated);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn--full {
    width: 100%;
}

/* ==========================================================================
   Top Bar (Header)
   ========================================================================== */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: #0b0d10;
    border-bottom: 1px solid var(--color-border-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-4);
}

.top-bar__left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-tag {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.top-bar__center {
    flex: 1;
    max-width: 480px;
    margin: 0 var(--space-4);
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--color-text-subtle);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.search-form input[type="search"] {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 38px;
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.search-form input[type="search"]:focus {
    border-color: var(--color-accent);
    background-color: var(--color-surface-2);
}

.search-submit {
    position: absolute;
    right: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-text-subtle);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
}

.search-submit:hover {
    color: var(--color-accent);
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.auth-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.burger-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-text-main);
}

.burger-box {
    width: 22px;
    height: 16px;
    display: block;
    position: relative;
}

.burger-inner,
.burger-inner::before,
.burger-inner::after {
    width: 22px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.15s ease, top 0.15s ease;
}

.burger-inner {
    top: 7px;
}

.burger-inner::before {
    content: "";
    top: -7px;
}

.burger-inner::after {
    content: "";
    top: 7px;
}

/* ==========================================================================
   App Layout (Sidebar + Main)
   ========================================================================== */
.app-layout {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-6);
    margin-bottom: var(--space-8);
}

.side-panel {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
}

.side-menu__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 14px;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.side-menu__item:hover {
    background-color: var(--color-surface-2);
    color: #ffffff;
}

.side-menu__item.is-active {
    background-color: var(--color-surface-2);
    color: var(--color-accent);
    font-weight: 700;
}

.side-menu__icon {
    display: flex;
    align-items: center;
    color: var(--color-accent);
    opacity: 0.9;
}

.side-menu__label {
    flex: 1;
}

.side-menu__badge {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.side-menu__dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-green);
}

.side-panel__section {
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.side-panel__heading {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.side-geo-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 12px;
    background-color: var(--color-surface-2);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.875rem;
}

.side-geo-link:hover,
.side-geo-link.is-active {
    color: var(--color-accent);
}

.ru-flag {
    width: 18px;
    height: 12px;
    background: linear-gradient(to bottom, #ffffff 33.3%, #0039a6 33.3%, #0039a6 66.6%, #d52b1e 66.6%);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

.side-panel__card {
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.side-card-top {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    color: var(--color-text-main);
}

.badge-age {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.side-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
    font-weight: 600;
    font-size: 0.8125rem;
}

/* Main Region */
.main-region {
    flex: 1;
    min-width: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: var(--space-5);
    font-size: 0.875rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: var(--space-2);
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs .sep {
    color: var(--color-text-subtle);
}

.breadcrumbs span[aria-current="page"] {
    color: var(--color-text-main);
    font-weight: 600;
}

/* ==========================================================================
   Hero Section (Home Page)
   ========================================================================== */
.hero-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.hero-banner {
    position: relative;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 70%),
                linear-gradient(145deg, #13171d 0%, #0d1014 100%);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-banner__glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tag-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.hero-chip {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-3);
    color: #ffffff;
}

.hero-text {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin-bottom: var(--space-6);
}

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

.hero-subinfo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    font-size: 0.8125rem;
    color: var(--color-text-subtle);
}

/* Hero Side Column */
.hero-side-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.hero-side-card {
    flex: 1;
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.hero-side-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-default);
}

.hero-side-card--accent {
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.1) 0%, var(--color-surface-1) 100%);
    border-color: rgba(245, 158, 11, 0.25);
}

.hero-side-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.hero-side-card__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background-color: var(--color-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.hero-side-card h2 {
    font-size: 1.125rem;
    margin-bottom: var(--space-1);
    color: #ffffff;
}

.hero-side-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.hero-side-card__action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* Fast Links Bar */
.fast-links-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-5);
    margin-bottom: var(--space-6);
    font-size: 0.875rem;
}

.fast-links-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    color: var(--color-text-main);
}

.fast-links-bar a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
}

.fast-links-bar a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Games Section
   ========================================================================== */
.games-section {
    margin-bottom: var(--space-8);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    gap: var(--space-4);
}

.section-header h2 {
    font-size: 1.5rem;
    color: #ffffff;
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
    scrollbar-width: thin;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 16px;
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.category-tab:hover {
    background-color: var(--color-surface-2);
    color: #ffffff;
    border-color: var(--color-border-default);
}

.category-tab.is-active {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border-color: var(--color-accent);
    font-weight: 700;
}

.category-tab.is-active svg {
    color: var(--color-text-inverse);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.game-card {
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.game-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background-color: var(--color-surface-2);
    overflow: hidden;
}

.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card__media img {
    transform: scale(1.05);
}

.game-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(9, 10, 13, 0.8);
    backdrop-filter: blur(6px);
    color: var(--color-accent);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.game-card__info {
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.game-card__desc {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
}

.game-card__arrow {
    color: var(--color-text-subtle);
    transition: color 0.15s ease, transform 0.15s ease;
}

.game-card:hover .game-card__arrow {
    color: var(--color-accent);
    transform: translateX(2px);
}

/* ==========================================================================
   Interactive Promo Widget
   ========================================================================== */
.promo-widget {
    position: relative;
    background-color: var(--color-surface-1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-8) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.promo-widget__glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #10b981, #f59e0b);
}

.promo-widget__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-widget__icon svg {
    width: 28px;
    height: 28px;
}

.promo-widget__content {
    flex: 1;
}

.promo-badge {
    display: inline-block;
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--color-accent-light);
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.promo-widget__content h2 {
    font-size: 1.375rem;
    color: #ffffff;
    margin-bottom: var(--space-1);
}

.promo-widget__content p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
    max-width: 580px;
}

.promo-meta-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
}

.promo-meta-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-accent);
    font-weight: 600;
}

.promo-widget__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
    flex-shrink: 0;
}

.promo-code-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background-color: var(--color-surface-2);
    border: 1px dashed var(--color-accent);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
}

.code-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    letter-spacing: 0.05em;
}

.promo-code-val {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 0.08em;
}

.copy-feedback {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-green);
    min-height: 18px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ==========================================================================
   Article Grid
   ========================================================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.article-card {
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-default);
}

.article-card__media {
    aspect-ratio: 16 / 9;
    background-color: var(--color-surface-2);
    overflow: hidden;
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    font-size: 0.75rem;
}

.card-badge {
    background-color: var(--color-surface-2);
    color: var(--color-text-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.card-date {
    color: var(--color-text-subtle);
}

.article-card h3 {
    font-size: 1.0625rem;
    color: #ffffff;
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.article-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* ==========================================================================
   Article Detail Page Layout
   ========================================================================== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.article-header {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-subtle);
}

.article-header .card-badge {
    margin-bottom: var(--space-2);
    display: inline-block;
}

.article-header h1 {
    font-size: 2.25rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

.article-deck {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    font-size: 0.875rem;
    color: var(--color-text-subtle);
}

.byline-author {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-accent);
    font-weight: 600;
}

/* Mobile TOC */
.mobile-toc {
    display: none;
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-6);
}

.mobile-toc summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--color-text-main);
    user-select: none;
}

.mobile-toc ol {
    margin-top: var(--space-3);
    padding-left: var(--space-5);
    font-size: 0.875rem;
}

.mobile-toc li {
    margin-bottom: var(--space-2);
}

/* Rich-text content (.rt) */
.rt, article {
    overflow-x: hidden;
    overflow-wrap: break-word;
    font-size: 1rem;
    line-height: 1.7;
    color: #e5e7eb;
}

.rt h2 {
    font-size: 1.625rem;
    color: #ffffff;
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border-subtle);
}

.rt h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.rt p {
    margin-bottom: var(--space-4);
}

.rt ul, .rt ol {
    margin-bottom: var(--space-5);
    padding-left: var(--space-6);
}

.rt li {
    margin-bottom: var(--space-2);
}

.rt code {
    background-color: var(--color-surface-2);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-accent-light);
}

.table-scroll {
    overflow-x: auto;
    width: 100%;
    margin: var(--space-6) 0;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    background-color: var(--color-surface-1);
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    text-align: left;
    font-size: 0.875rem;
}

.table-scroll th,
.table-scroll td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.table-scroll th {
    background-color: var(--color-surface-2);
    color: #ffffff;
    font-weight: 700;
}

.table-scroll tr:last-child td {
    border-bottom: none;
}

.article-figure {
    margin: var(--space-6) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-figure figcaption {
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
    color: var(--color-text-subtle);
    border-top: 1px solid var(--color-border-subtle);
}

.content-cta {
    margin: var(--space-6) 0;
    text-align: center;
}

/* Sidebar in Article */
.article-toc-box {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.toc-heading {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
}

.article-toc-box ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.875rem;
}

.article-toc-box a {
    color: var(--color-text-muted);
}

.article-toc-box a:hover {
    color: var(--color-accent);
}

.toc-card-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, var(--color-surface-2) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
}

.toc-card-banner strong {
    display: block;
    color: #ffffff;
    font-size: 0.9375rem;
    margin-bottom: var(--space-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #0b0d10;
    border-top: 1px solid var(--color-border-subtle);
    padding: var(--space-12) 0 var(--space-8);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-col--brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.badge-provably,
.badge-lic {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-heading {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: var(--color-text-subtle);
    line-height: 1.5;
    margin-bottom: var(--space-3);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-subtle);
    font-size: 0.8125rem;
    color: var(--color-text-subtle);
}

/* ==========================================================================
   Sticky Bottom Bonus Dock
   ========================================================================== */
.sticky-bonus-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    height: var(--dock-height);
    background-color: #12151b;
    border-top: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
}

.sticky-bonus-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.sticky-bonus-bar__left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sticky-bonus-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sticky-bonus-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.sticky-bonus-title strong {
    font-size: 1rem;
    color: #ffffff;
}

.sticky-bonus-pill {
    background-color: var(--color-surface-3);
    border: 1px solid var(--color-border-default);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--color-accent-light);
}

.sticky-bonus-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sticky-bonus-bar__right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.sticky-bonus-terms {
    font-size: 0.8125rem;
    color: var(--color-text-subtle);
}

.sticky-bonus-terms:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Mobile Drawer Menu
   ========================================================================== */
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}

.mobile-drawer.is-open {
    display: block;
}

.mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.mobile-drawer__dialog {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82%;
    max-width: 320px;
    background-color: #0e1116;
    border-right: 1px solid var(--color-border-default);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 10;
}

.mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 4px;
}

.mobile-drawer__auth {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-5);
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 600;
}

.drawer-item:hover,
.drawer-item.is-active {
    background-color: var(--color-surface-2);
    color: var(--color-accent);
}

.drawer-icon {
    color: var(--color-accent);
}

.drawer-divider {
    height: 1px;
    background-color: var(--color-border-subtle);
    margin: var(--space-3) 0;
}

.mobile-drawer__extra {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--color-text-subtle);
}

.mobile-drawer__extra a {
    color: var(--color-text-subtle);
}

.mobile-drawer__extra a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Error Page (404)
   ========================================================================== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-4);
}

.error-card {
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 540px;
    text-align: center;
}

.error-badge {
    display: inline-block;
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.error-card h1 {
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

.error-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 1024px and down (Tablet Landscape) */
@media (max-width: 1024px) {
    .burger-btn {
        display: block;
    }

    .side-panel {
        display: none;
    }

    .app-layout {
        margin-top: var(--space-4);
    }

    .hero-split {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .layout__side {
        display: none;
    }

    .mobile-toc {
        display: block;
    }

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

/* 768px and down (Mobile / Tablet Portrait) */
@media (max-width: 768px) {
    .top-bar__center {
        display: none; /* Hide top search bar, or keep compact */
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-banner {
        padding: var(--space-6) var(--space-4);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .promo-widget {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .promo-widget__action {
        width: 100%;
        align-items: stretch;
    }

    .promo-code-box {
        align-items: center;
    }

    .sticky-bonus-bar {
        height: auto;
        padding: var(--space-2) 0;
    }

    .sticky-bonus-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .sticky-bonus-bar__right {
        justify-content: space-between;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* 425px and down (Large Phone) */
@media (max-width: 425px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        height: 32px;
    }

    .auth-group .btn {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }
}

/* 375px and down (Standard Phone) */
@media (max-width: 375px) {
    .hero-actions .btn {
        width: 100%;
    }
}

/* 320px and down (Small Phone) */
@media (max-width: 320px) {
    .wrap {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }
}
