@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600;700;800&family=Source+Serif+4:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #10161f;
    --ink-2: #171f2b;
    --ink2: #171f2b;
    --panel: #223044;
    --panel-2: #223044;
    --line: color-mix(in srgb, #f4efe4 16%, transparent);
    --gold: #c4a35a;
    --gold-2: #e6d09a;
    --sky: #5ad0ff;
    --text: #f4efe4;
    --muted: #b2a894;
    --white: #f4efe4;
    --on-gold: #1a1408;
    --accent-text: #e6d09a;
    --accent-text-2: #5ad0ff;
    --radius-sm: 2px;
    --radius: 2px;
    --radius-xl: 2px;
    --font-display: "Fraunces", Outfit, sans-serif;
    --font-body: "Source Serif 4", "Source Sans 3", sans-serif;
    --color-one: #c4a35a;
    --color-two: #f4efe4;
    --color-three: #10161f;
    --color-four: #c4a35a;
    --bs-primary: #c4a35a;
    --bs-success: #c4a35a;
    --bs-body-color: #f4efe4;
    --bs-body-bg: #10161f;
    --bs-heading-color: #f4efe4;
}
.theme-atlas {
    --ink: #10161f;
    --ink-2: #171f2b;
    --panel: #223044;
    --gold: #c4a35a;
    --gold-2: #e6d09a;
    --sky: #5ad0ff;
    --text: #f4efe4;
    --muted: #b2a894;
    --on-gold: #1a1408;
}


/* Visual overlay only. Does not change HTML copy. */

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body) !important;
    color: var(--text) !important;
    background:
        radial-gradient(1100px 560px at 8% -8%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 52%),
        radial-gradient(900px 480px at 100% 0%, color-mix(in srgb, var(--sky) 12%, transparent), transparent 48%),
        var(--ink) !important;
    line-height: 1.65 !important;
    overflow-x: hidden;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
}

h1, h2, h3, h4, h5, .section-title, .game-title, .navbar-brand, .gradient-text {
    font-family: var(--font-display) !important;
    color: var(--text) !important;
}

body p,
body li,
body td,
body th,
body label,
.lead,
.section-subtitle,
.game-description,
.hero-section p,
.container p {
    color: var(--text) !important;
}
body p a,
body li a,
.hero-section p a {
    color: var(--accent-text) !important;
}

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

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

.container, .header-1__container, .wrapper {
    width: min(1140px, calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
}

header,
.header,
.header-1,
.navbar,
.navbar.navbar-expand-lg,
.navbar.navbar-light,
.navbar.fixed-top {
    position: sticky !important;
    top: 0;
    z-index: 1200;
    background: color-mix(in srgb, var(--ink-2) 92%, transparent) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line) !important;
    box-shadow: none !important;
    width: 100%;
    left: 0;
}

.header .logo img,
.header-1__logo img,
.navbar-brand img,
.custom-logo,
header img[alt*="ogo"],
header img[alt*="444WIN"],
header img[alt*="444WIN"] {
    height: 42px !important;
    width: auto !important;
    object-fit: contain;
}

.nav-menu,
.mobile-nav-content,
.header-1__menu-nav,
.navbar-nav,
.main_menu {
    background: transparent !important;
}

.nav-link,
.header-1__menu-link,
.main_menu > li > a,
.navbar-nav .nav-link,
.dropdown-item {
    color: var(--muted) !important;
    background: color-mix(in srgb, var(--text) 6%, transparent) !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.nav-link:hover,
.nav-link.active,
.header-1__menu-link:hover,
.main_menu > li > a:hover,
.navbar-nav .nav-link:hover,
.dropdown-item:hover {
    color: var(--on-gold) !important;
    background: var(--gold) !important;
    border-color: var(--gold) !important;
}

.nav-menu .dropdown,
.main_menu li ul,
.sub-menu {
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    color: var(--text) !important;
}

.btn,
.btn-primary,
.btn-success,
.btn-lg,
.button,
.header-1__button,
.game-btn,
.promo-btn,
a.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px !important;
    border-radius: var(--radius) !important;
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border: 0 !important;
}

.btn-primary,
.header-1__button:first-child,
.button:not(.btn-success) {
    background: color-mix(in srgb, var(--gold) 12%, transparent) !important;
    color: var(--accent-text) !important;
    border: 1px solid var(--gold) !important;
}

.btn-success,
.btn-lg.btn-success,
.game-btn,
.header-1__button:last-child {
    background: linear-gradient(135deg, var(--gold), var(--gold-2)) !important;
    color: var(--on-gold) !important;
}

.bg-primary {
    background: linear-gradient(90deg, var(--gold), var(--gold-2)) !important;
    color: var(--on-gold) !important;
}
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary p,
.bg-primary a,
.bg-primary .text-white {
    color: var(--on-gold) !important;
}

.hero-section,
section.hero-section,
.banner,
.home-banner {
    padding: 36px 0 28px !important;
}

.hero-section h1,
section > .container > .row h1,
.display-4 {
    font-size: clamp(28px, 5vw, 52px) !important;
    line-height: 1.15 !important;
    color: var(--text) !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold), var(--sky)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.game-card,
.featured-card,
.section-card,
.faq-item,
.office-card,
.feature-card,
.promo-card,
.info-item,
.content-card,
.wp-block-group,
article.page,
.page-content,
.faq-container .faq-item {
    background: color-mix(in srgb, var(--panel) 92%, var(--text) 8%) !important;
    color: var(--text) !important;
    border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line)) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow, 0 16px 40px rgba(0,0,0,.22));
    padding: 18px;
}

.game-card p,
.section-card p,
.faq-item p,
.game-description,
.section-card li,
.featured-games-section p {
    color: var(--muted) !important;
}

.game-card h3,
.section-card h2,
.faq-item h3,
.game-title {
    color: var(--text) !important;
}

.feature-tag,
.cert-badge,
.badge {
    background: color-mix(in srgb, var(--gold) 16%, transparent) !important;
    color: var(--accent-text) !important;
    border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent) !important;
}

footer,
.footer,
.footer-1,
.site-footer {
    background: color-mix(in srgb, var(--ink) 96%, #000) !important;
    color: var(--muted) !important;
    border-top: 1px solid var(--line);
}

footer a,
.footer a {
    color: var(--accent-text) !important;
}

input, select, textarea {
    background: var(--panel) !important;
    color: var(--text) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
}

.office-map iframe,
iframe[src*="google.com/maps"] {
    width: 100%;
    min-height: 280px;
    border: 0;
    border-radius: var(--radius);
}

.float-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--ink-2) 94%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
}
.float-cta-btn {
    flex: 1;
    min-height: 48px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none !important;
}
.float-cta-login {
    background: color-mix(in srgb, var(--gold) 10%, transparent);
    color: var(--accent-text);
    border: 1px solid var(--gold);
}
.float-cta-register {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: var(--on-gold);
}

#br-stick { display: none !important; }

.layout-split .hero-section .row,
.layout-split section:first-of-type .row { align-items: center; }

.layout-center .hero-section,
.layout-center section:first-of-type { text-align: center; }
.layout-center .hero-section .row,
.layout-center section:first-of-type .row { justify-content: center; }

.layout-magazine .games-grid,
.layout-magazine .faq-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
@media (max-width: 768px) {
    .layout-magazine .games-grid,
    .layout-magazine .faq-container { grid-template-columns: 1fr; }
}

.layout-rail .game-card,
.layout-rail .section-card,
.layout-rail .faq-item,
.layout-rail section.container {
    border-left: 4px solid var(--gold) !important;
}

.layout-arcade .btn,
.layout-arcade .nav-link,
.layout-arcade .float-cta-btn,
.layout-arcade .game-btn {
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.layout-arcade .game-card,
.layout-arcade .section-card { box-shadow: 6px 6px 0 rgba(0,0,0,.35); }

.layout-soft .header,
.layout-soft .navbar { background: color-mix(in srgb, var(--ink-2) 86%, transparent) !important; }
.layout-soft .game-card,
.layout-soft .section-card,
.layout-soft .faq-item { box-shadow: 0 14px 40px rgba(40, 24, 10, 0.08); }

.layout-brutal .game-card,
.layout-brutal .section-card,
.layout-brutal .btn,
.layout-brutal .float-cta-btn,
.layout-brutal .faq-item {
    border-radius: 0 !important;
    border: 2px solid var(--text) !important;
    box-shadow: 8px 8px 0 var(--gold);
}

.layout-glass .game-card,
.layout-glass .section-card,
.layout-glass .faq-item,
.layout-glass .hero-section {
    background: color-mix(in srgb, var(--panel) 55%, transparent) !important;
    backdrop-filter: blur(18px);
    border: 1px solid color-mix(in srgb, var(--text) 16%, transparent) !important;
}

.layout-editorial .container { width: min(920px, calc(100% - 28px)); }
.layout-editorial h1 { max-width: 18ch; }

.layout-ribbon header,
.layout-ribbon .header,
.layout-ribbon .navbar,
.layout-ribbon .header-1 {
    background: var(--gold) !important;
}
.layout-ribbon .nav-link,
.layout-ribbon .navbar-nav .nav-link,
.layout-ribbon .header-1__menu-link {
    color: var(--on-gold) !important;
    background: transparent !important;
}

.layout-neon h1,
.layout-neon h2 {
    text-shadow: 0 0 22px color-mix(in srgb, var(--gold) 45%, transparent);
}
.layout-neon .btn-success,
.layout-neon .float-cta-register {
    box-shadow: 0 0 24px color-mix(in srgb, var(--gold) 40%, transparent);
}

.layout-crt h1,
.layout-crt h2,
.layout-crt .nav-link { text-transform: uppercase; letter-spacing: 0.08em; }
.layout-crt .game-card,
.layout-crt .section-card,
.layout-crt .faq-item { border: 1px solid var(--gold) !important; box-shadow: none; }

.layout-candy .btn,
.layout-candy .nav-link,
.layout-candy .float-cta-btn,
.layout-candy .game-card { border-radius: 999px !important; }

.layout-circuit header,
.layout-circuit .header { border-bottom: 2px solid var(--gold) !important; }
.layout-circuit .game-card,
.layout-circuit .btn { border-radius: 2px !important; }

.layout-paper .game-card,
.layout-paper .section-card,
.layout-paper .faq-item {
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 24px rgba(80,50,20,0.06);
    border: 1px solid rgba(80,50,20,0.1) !important;
}
.layout-paper h2 { font-style: italic; }

.layout-speed .hero-section { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.layout-speed .btn,
.layout-speed .float-cta-btn { text-transform: uppercase; letter-spacing: 0.06em; border-radius: 4px !important; }
@media (max-width: 768px) {
    .layout-speed .hero-section { clip-path: none; }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .header, .navbar, .header-1 { padding-left: 12px; padding-right: 12px; }
    .hero-section { padding-top: 24px !important; }
    h1 { font-size: clamp(26px, 8vw, 36px) !important; }
}
