/*!
Theme Name: xCasino
Theme URI: https://1xcasinochile.com/
Author: CrossBrand Team
Author URI: https://crossbrand.team/
Description: Custom WordPress theme for 1xCasino Chile satellite site. Dark navy design.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: xcasino
Tags: gambling, casino, spanish, dark-theme, chile
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
*/

/* ==========================================================================
   xCasino — Main Styles
   Brand: 1xCasino | Market: Chile (CL)
   ========================================================================== */

/* --- CSS Reset (minimal) --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

img {
    border-style: none;
    max-width: 100%;
    height: auto;
}

/* --- CSS Variables --- */
:root {
    /* Backgrounds */
    --xc-bg:           #1b253c;
    --xc-bg-card:      #243556;
    --xc-bg-header:    #131d2e;
    --xc-bg-footer:    #131d2e;

    /* Accent */
    --xc-accent:       #2d8fd6;  /* WCAG 4.5:1 на --xc-bg */
    --xc-accent-brand: #3da5ff;  /* оригинальный бренд — иконки, borders, hover */
    --xc-accent-hover: #5bb8ff;

    /* CTA */
    --xc-cta:          #7eac2f;
    --xc-cta-hover:    #8dc235;
    --xc-cta-text:     #ffffff;

    /* Text */
    --xc-text:         #ffffff;
    --xc-text-muted:   #8a9dc0;
    --xc-text-dark:    #1b253c;

    /* Borders */
    --xc-border:       #2d4166;
    --xc-border-accent: var(--xc-accent-brand);

    /* Spacing */
    --xc-radius:       8px;
    --xc-radius-sm:    4px;
    --xc-radius-lg:    12px;
    --xc-gap:          16px;
    --xc-section-gap:  48px;
    --xc-container-px: 24px;

    /* Shadows */
    --xc-shadow:       0 4px 20px rgba(0, 0, 0, 0.4);
    --xc-shadow-hover: 0 8px 32px rgba(61, 165, 255, 0.15);

    /* Transitions */
    --xc-transition:   0.2s ease;
}

/* ==========================================================================
   Base / Global
   ========================================================================== */

html,
body {
    margin: 0;
    padding: 0;
}

body.xc-body {
    background-color: var(--xc-bg);
    color: var(--xc-text);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Skip link */
.xc-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--xc-cta);
    color: var(--xc-cta-text);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 var(--xc-radius) 0;
    transition: top var(--xc-transition);
}
.xc-skip-link:focus {
    top: 0;
}

/* Container */
.xc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--xc-container-px);
}

/* ==========================================================================
   HEADER  — 2-row layout mirroring 1xcasino.com
   ========================================================================== */

.xc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* ── ROW 1: Top bar (logo + auth) ─────────────────────────── */
.xc-header__topbar {
    background-color: #242f4c;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.xc-header__topbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    padding: 0 16px;
    width: 100%;
}

/* Logo */
.xc-header__brand {
    flex-shrink: 0;
}

.xc-header__logo img,
.xc-header__logo svg {
    display: block;
    max-height: 48px;
    width: auto;
}

.xc-header__site-name {
    display: block;
    text-decoration: none;
    line-height: 1;
}

.xc-header__logo-img {
    display: block;
    height: 20px;
    width: auto;
    transition: opacity var(--xc-transition);
}
.xc-header__site-name:hover .xc-header__logo-img {
    opacity: 0.85;
}

/* Auth area */
.xc-header__auth {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* INICIAR SESIÓN — outlined button, та же высота 29px */
.xc-btn--login {
    display: inline-flex;
    align-items: center;
    height: 29px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    transition: border-color var(--xc-transition), background var(--xc-transition);
}
.xc-btn--login:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.07);
}

/* REGISTRARSE — точно как оригинал: #7eac2f, border-radius 8px, белый текст, ~29px высота */
.xc-btn--register {
    display: inline-flex;
    align-items: center;
    height: 29px;
    background: #7eac2f;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 0 16px;
    border-radius: 8px;
    transition: background var(--xc-transition);
    white-space: nowrap;
    text-transform: uppercase;
    border: none;
    letter-spacing: 0.02em;
    line-height: 1;
}
.xc-btn--register:hover {
    background: #8dc23a;
}

/* Mobile toggle (top bar right) */
.xc-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--xc-radius-sm);
    flex-shrink: 0;
    margin-left: auto;
}

.xc-header__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--xc-text);
    border-radius: 2px;
    transition: transform var(--xc-transition), opacity var(--xc-transition);
}

.xc-header__toggle--active .xc-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.xc-header__toggle--active .xc-header__toggle-bar:nth-child(2) {
    opacity: 0;
}
.xc-header__toggle--active .xc-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── ROW 2: Navigation bar — edge-to-edge ─────────────────── */
.xc-header__navbar {
    background-color: #242f4c;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
}

.xc-header__nav {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 0 16px;
}

.xc-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.xc-nav__list li a {
    display: flex;
    align-items: center;
    color: #e8edf5;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0 16px;
    height: 40px;
    border-bottom: 2px solid transparent;
    transition: color var(--xc-transition), border-color var(--xc-transition), background var(--xc-transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.xc-nav__list li a:hover,
.xc-nav__list li.current-menu-item a,
.xc-nav__list li.current-page-ancestor a {
    color: #ffffff;
    border-bottom-color: #a8d200;
    background: rgba(255,255,255,0.04);
}

/* Desktop sub-menu */
.xc-nav__list li {
    position: relative;
}

.xc-nav__list li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a2536;
    border: 1px solid var(--xc-border);
    border-top: 2px solid #a8d200;
    border-radius: 0 0 var(--xc-radius) var(--xc-radius);
    min-width: 180px;
    padding: 8px 0;
    box-shadow: var(--xc-shadow);
    list-style: none;
    margin: 0;
    z-index: 200;
}

.xc-nav__list li:hover > .sub-menu {
    display: block;
}

.xc-nav__list li .sub-menu li a {
    height: auto;
    padding: 9px 16px;
    font-size: 0.85rem;
    border-bottom: none;
    white-space: nowrap;
}

/* ── Mobile Navigation ────────────────────────────────────── */
.xc-mobile-nav {
    display: none;
    background: #1a2536;
    border-top: 1px solid var(--xc-border);
}

.xc-mobile-nav--open {
    display: block;
}

.xc-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.xc-mobile-nav__list li a {
    display: block;
    color: #e8edf5;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--xc-transition), background var(--xc-transition);
    border-left: 3px solid transparent;
}

.xc-mobile-nav__list li a:hover,
.xc-mobile-nav__list li.current-menu-item a {
    color: #ffffff;
    background: rgba(168,210,0,0.06);
    border-left-color: #a8d200;
}

.xc-mobile-nav__list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.15);
    display: none;
}

.xc-mobile-nav__list .sub-menu.xc-submenu--open {
    display: block;
}

.xc-mobile-nav__list .sub-menu li a {
    padding-left: 36px;
    font-size: 0.875rem;
    color: var(--xc-text-muted);
    border-left: none;
}

/* Sub-menu toggle button */
.xc-submenu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 44px;
    float: right;
    color: var(--xc-text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xc-submenu-toggle::after {
    content: '▾';
    display: block;
    transition: transform var(--xc-transition);
}

.xc-submenu-toggle--open::after {
    transform: rotate(180deg);
}

/* ── .xc-btn--cta (inline content buttons) ────────── */
.xc-btn--cta {
    display: inline-block;
    background: #7eac2f;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: background var(--xc-transition);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.xc-btn--cta:hover {
    background: #8dc23a;
}

/* ==========================================================================
   CONTENT WRAPPER
   ========================================================================== */

.xc-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.xc-content {
    flex: 1;
}

/* ==========================================================================
   BANNER — position:relative, img абсолютный, текст поверх (как у оригинала)
   ========================================================================== */

.xc-banner {
    position: relative;
    width: 100%;
    height: 248px;
    overflow: hidden;
    background: #0a0e1e;
}

/* Тёмный градиент слева — для читаемости текста */
.xc-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        #0a0e1e 0%,
        #0a0e1e 30%,
        rgba(10, 14, 30, 0.85) 50%,
        rgba(10, 14, 30, 0.2) 70%,
        transparent 85%
    );
    pointer-events: none;
}

/* Изображение — абсолютное, занимает всю площадь, выровнено вправо */
.xc-banner__img-wrap {
    position: absolute;
    inset: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.xc-banner__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

/* Текстовый блок — поверх, слева, вертикально по центру */
.xc-banner__content {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 48px;
    max-width: 580px;
}

.xc-banner__h1 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.xc-banner__sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 18px;
    line-height: 1.4;
}

.xc-banner__btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 20px;
    background: #7eac2f;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background var(--xc-transition);
    border: none;
}

.xc-banner__btn:hover {
    background: #8dc23a;
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */

.xc-main {
    padding-bottom: var(--xc-section-gap);
}

.xc-main > .xc-container {
    padding-top: 32px;
}

/* Breadcrumbs */
.xc-breadcrumbs {
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--xc-text-muted);
}

.xc-breadcrumbs a {
    color: var(--xc-accent);
    text-decoration: underline;
}

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

/* ==========================================================================
   ARTICLE — clean, no card border
   ========================================================================== */

.xc-article {
    background: transparent;
    border: none;
    padding: 0;
}

.xc-article__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--xc-text);
    margin: 0 0 24px;
    line-height: 1.2;
}

/* Article body — content styles */
.xc-article__body {
    font-size: 1rem;
    line-height: 1.75;
    color: #c8d4e8;
}

.xc-article__body h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: var(--xc-text);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1e2f4a;
}

.xc-article__body h3 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: var(--xc-text);
    margin: 28px 0 12px;
}

.xc-article__body p {
    margin: 0 0 16px;
}

.xc-article__body a {
    color: var(--xc-accent);
    text-decoration: underline;
}

.xc-article__body a:hover {
    color: var(--xc-accent-brand);
}

.xc-article__body ul,
.xc-article__body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.xc-article__body li {
    margin-bottom: 6px;
}

/* Tables */
.xc-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
    background: #1e2f4a;
    border-radius: var(--xc-radius);
    overflow: hidden;
}

.xc-article__body th {
    background: #162030;
    color: var(--xc-text);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
}

.xc-article__body td {
    padding: 10px 16px;
    border-top: 1px solid var(--xc-border);
    color: #c8d4e8;
}

.xc-article__body tr:hover td {
    background: rgba(61,165,255,0.04);
}

/* Buttons in content */
.xc-article__body .xc-btn--cta,
.xc-article__body a.xc-btn--cta {
    text-decoration: none;
}

/* Highlight boxes */
.xc-article__body .wp-block-group {
    background: #1e2f4a;
    border-left: 3px solid var(--xc-accent-brand);
    padding: 20px 24px;
    border-radius: 0 var(--xc-radius) var(--xc-radius) 0;
    margin: 24px 0;
}

/* ==========================================================================
   FOOTER — pixel-matched to 1xcasino original
   ① Nav grid (bg #243251)  ② License (transparent)
   ③ Legal bar (bg #243251) ④ Bottom bar: email + socials + 18+
   ========================================================================== */

.xc-footer {
    background: var(--xc-bg);
    margin-top: 0;
}

/* ── ① NAV GRID (5 cols) ── */
.xc-foot-nav {
    background: #243251;
    padding: 20px 16px;
}

.xc-foot-nav__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 1440px;
    margin: 0 auto;
}

.xc-foot-col {
    padding: 12px;
}

.xc-foot-col__title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: normal;
    margin: 0 0 8px;
    line-height: 1.3;
}

.xc-foot-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xc-foot-col__list li a {
    font-size: 12px;
    line-height: 14px;
    color: #fff;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.15s;
    display: block;
    padding: 2px 0;
}

.xc-foot-col__list li a:hover {
    opacity: 1;
    text-decoration: none;
}

/* App download buttons */
.xc-foot-apps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.xc-foot-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.xc-foot-app-btn:hover {
    background: rgba(61, 165, 255, 0.15);
    border-color: var(--xc-accent-brand);
    color: #fff;
    text-decoration: none;
}

.xc-foot-apps__sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin: 8px 0 0;
    line-height: 1.3;
}

/* ── ② LICENSE / DISCLAIMER ── */
.xc-foot-license {
    background: transparent;
    padding: 20px 16px;
}

.xc-foot-license__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.xc-foot-license__logo-link {
    flex-shrink: 0;
    display: inline-block;
    align-self: center;
}

.xc-foot-license__text {
    font-size: 12px;
    line-height: 17px;
    color: #a1bcd4;
    margin: 0;
}

.xc-foot-license__text strong {
    color: #c8d8f0;
    font-weight: 700;
}

.xc-foot-license__text a {
    color: #a1bcd4;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.xc-foot-license__text a:hover {
    color: #fff;
}

/* ── ③ LEGAL / COPYRIGHT BAR ── */
.xc-foot-legal {
    background: #243251;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 52px;
    display: flex;
    align-items: center;
}

.xc-foot-legal__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.xc-foot-legal__copy {
    font-size: 12px;
    color: #a1bcd4;
    white-space: nowrap;
    flex-shrink: 0;
}

.xc-foot-legal__cookies {
    font-size: 12px;
    color: #a1bcd4;
    line-height: 1.4;
}

.xc-foot-legal__cookies a {
    color: #a1bcd4;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 4px;
}

.xc-foot-legal__cookies a:hover {
    color: #fff;
}

/* ── ④ BOTTOM BAR ── */
.xc-foot-bottom {
    background: #243251;
    display: flex;
    align-items: stretch;
    min-height: 96px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Email support block */
.xc-foot-support {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: #243251;
}

.xc-foot-support__icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}

.xc-foot-support__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xc-foot-support__label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.xc-foot-support__email {
    font-size: 12px;
    color: #a1bcd4;
    text-decoration: none;
    transition: color 0.15s;
}

.xc-foot-support__email:hover {
    color: #fff;
    text-decoration: underline;
}

/* Social + 18+ */
.xc-foot-actions {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

/* Social icons */
.xc-foot-socials {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0 16px;
    background: #243251;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.xc-foot-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s;
}

.xc-foot-social-btn:hover {
    background: rgba(61, 165, 255, 0.25);
    text-decoration: none;
}

/* 18+ badge */
.xc-foot-age {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: #243251;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 80px;
}

.xc-foot-age__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.xc-404 {
    padding: 80px 0;
    text-align: center;
}

.xc-404__code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--xc-accent-brand);
    line-height: 1;
    margin: 0;
    opacity: 0.4;
}

.xc-404__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--xc-text);
    margin: 16px 0 8px;
}

.xc-404__text {
    color: var(--xc-text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 32px;
}

.xc-404__btn {
    display: inline-block;
    background: var(--xc-cta);
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--xc-radius);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: background var(--xc-transition);
}

.xc-404__btn:hover {
    background: var(--xc-cta-hover);
}

/* ==========================================================================
   WIDGETS
   ========================================================================== */

.xc-widget {
    margin-bottom: var(--xc-gap);
}

.xc-widget__title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--xc-text-muted);
    margin: 0 0 12px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
    /* Footer nav: 3 cols on tablet */
    .xc-foot-nav__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header */
    .xc-header__nav {
        display: none;
    }
    .xc-header__auth {
        display: none;
    }
    .xc-header__toggle {
        display: flex;
    }

    /* Banner mobile */
    .xc-banner {
        height: 180px;
    }
    .xc-banner__content {
        padding: 0 20px;
        max-width: 100%;
    }
    .xc-banner__h1 {
        font-size: 1.1rem;
    }
    .xc-banner__sub {
        display: none;
    }

    /* Article */
    .xc-article__title {
        font-size: 1.5rem;
    }

    /* Footer nav: 2 cols on mobile */
    .xc-foot-nav__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer bottom: stack */
    .xc-foot-bottom {
        flex-direction: column;
        min-height: auto;
    }
    .xc-foot-actions {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .xc-foot-socials {
        padding: 12px 16px;
        border-left: none;
    }
    .xc-foot-age {
        padding: 12px 16px;
    }

    /* License */
    .xc-foot-license__inner {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    /* Footer nav: 1 col on small */
    .xc-foot-nav__grid {
        grid-template-columns: 1fr 1fr;
    }
    .xc-banner {
        height: 140px;
    }
    .xc-banner__btn {
        height: 30px;
        font-size: 11px;
        padding: 0 14px;
    }
    .xc-foot-legal__inner {
        flex-direction: column;
        gap: 6px;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--xc-accent-brand);
    outline-offset: 3px;
}

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

/* ==========================================================================
   2-COLUMN PAGE LAYOUT (inner pages)
   Matches original 1xcasino layout: sidebar 228px + white content area
   ========================================================================== */

.xc-page-layout {
    display: flex;
    align-items: stretch;
    min-height: 70vh;
}

/* LEFT SIDEBAR — dark navy, 228px, scrollable */
.xc-page-sidebar {
    width: 228px;
    min-width: 228px;
    background: var(--xc-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.xc-sidebar-nav {
    padding: 8px 0;
}

.xc-sidebar-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xc-sidebar-nav__item {
    display: block;
}

.xc-sidebar-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #8a9dc0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.xc-sidebar-nav__link:hover {
    background: rgba(61, 165, 255, 0.07);
    color: #fff;
    text-decoration: none;
}

.xc-sidebar-nav__item.is-active .xc-sidebar-nav__link {
    color: #fff;
    background: rgba(61, 165, 255, 0.1);
    border-left-color: var(--xc-accent-brand);
    font-weight: 500;
}

.xc-sidebar-nav__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.xc-sidebar-nav__item.is-active .xc-sidebar-nav__icon {
    opacity: 1;
    color: var(--xc-accent-brand);
}

.xc-sidebar-nav__text {
    flex: 1;
    min-width: 0;
}

/* RIGHT CONTENT AREA — white background */
.xc-page-content-area {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    padding: 28px 48px 48px;
}

/* Breadcrumbs on white background */
.xc-breadcrumbs--light {
    font-size: 12px;
    color: #8a9dc0;
    margin-bottom: 20px;
}

.xc-breadcrumbs--light a {
    color: #276aa5;
    text-decoration: none;
}

.xc-breadcrumbs--light a:hover {
    text-decoration: underline;
}

/* ── Inner article (white content area) ── */
.xc-inner-article {
    background: transparent;
    border: none;
    padding: 0;
    max-width: none;
}

.xc-inner-article__header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8edf5;
}

.xc-inner-article__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2e4a;
    margin: 0;
    line-height: 1.4;
}

/* Body typography — white background, dark-blue text */
.xc-inner-article__body {
    font-size: 14px;
    line-height: 20px;
    color: #276aa5;
}

.xc-inner-article__body p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 20px;
    color: #276aa5;
}

.xc-inner-article__body strong,
.xc-inner-article__body b {
    color: #1a2e4a;
    font-weight: 700;
}

.xc-inner-article__body em,
.xc-inner-article__body i {
    color: #3d6088;
    font-style: italic;
}

.xc-inner-article__body h2 {
    font-size: 15px;
    font-weight: 700;
    color: #1a2e4a;
    margin: 24px 0 10px;
    line-height: 1.4;
}

.xc-inner-article__body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a2e4a;
    margin: 18px 0 8px;
    line-height: 1.4;
}

.xc-inner-article__body h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1a2e4a;
    margin: 14px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Links in content (WCAG AA, must have underline) */
.xc-inner-article__body a {
    color: #276aa5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.xc-inner-article__body a:hover {
    color: #1a4d80;
}

/* Lists */
.xc-inner-article__body ul,
.xc-inner-article__body ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.xc-inner-article__body li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 20px;
    color: #276aa5;
}

.xc-inner-article__body ul li::marker {
    color: #276aa5;
}

/* Tables */
.xc-inner-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 14px;
    font-size: 13px;
}

.xc-inner-article__body table th {
    background: #f0f4fa;
    color: #1a2e4a;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #d0dcea;
    font-size: 13px;
}

.xc-inner-article__body table td {
    padding: 8px 14px;
    border-bottom: 1px solid #e8edf5;
    color: #276aa5;
    vertical-align: middle;
    font-size: 13px;
}

.xc-inner-article__body table tr:hover td {
    background: #f7f9fc;
}

/* Images */
.xc-inner-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 16px auto;
}

/* Blockquote */
.xc-inner-article__body blockquote {
    border-left: 3px solid #276aa5;
    margin: 16px 0;
    padding: 12px 16px;
    background: #f0f6ff;
    border-radius: 0 4px 4px 0;
}

.xc-inner-article__body blockquote p {
    margin: 0;
    color: #3d6088;
    font-style: italic;
}

/* ── Responsive: 2-column → 1-column on mobile ── */
@media (max-width: 1023px) {
    .xc-page-sidebar {
        width: 200px;
        min-width: 200px;
    }
    .xc-page-content-area {
        padding: 24px 32px 40px;
    }
}

@media (max-width: 767px) {
    .xc-page-layout {
        flex-direction: column;
    }
    .xc-page-sidebar {
        display: none;
    }
    .xc-page-content-area {
        padding: 20px 20px 32px;
    }
}

@media (max-width: 479px) {
    .xc-page-content-area {
        padding: 16px 16px 28px;
    }
}

/* ==========================================================================
   GAME CARDS GRID
   ========================================================================== */

.xc-games {
    width: 100%;
    padding: 20px 16px 24px;
    background: var(--xc-bg);
}

.xc-games__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}

.xc-games__title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.xc-games__see-all {
    font-size: 12px;
    color: var(--xc-accent-brand);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}

.xc-games__see-all:hover {
    text-decoration: underline;
}

.xc-games__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.xc-game-card {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: var(--xc-bg-card);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.xc-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    text-decoration: none;
}

.xc-game-card__thumb {
    aspect-ratio: 301 / 180;
    overflow: hidden;
    display: block;
}

.xc-game-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.xc-game-card:hover .xc-game-card__thumb img {
    transform: scale(1.04);
}

.xc-game-card__footer {
    padding: 6px 8px 8px;
}

.xc-game-card__name {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #c8d8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1199px) {
    .xc-games__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .xc-games__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 479px) {
    .xc-games {
        padding: 14px 10px 18px;
    }
    .xc-games__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .xc-games__title {
        font-size: 11px;
    }
}
