/* Голубая визуальная система casYAN — финальный слой поверх polish/sections */

:root {
    --panel: linear-gradient(165deg, rgba(72, 184, 255, 0.09) 0%, rgba(5, 11, 26, 0.94) 42%, rgba(3, 8, 20, 0.98) 100%);
    --header-bg: rgba(6, 16, 38, 0.94);
    --ink: #f4faff;
}

body.gradient-bg {
    background:
        radial-gradient(ellipse 120% 80% at 50% -30%, rgba(72, 184, 255, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 20%, rgba(26, 154, 232, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 45% at 0% 80%, rgba(72, 184, 255, 0.08), transparent 55%),
        var(--field, #050b1a) !important;
    color: var(--ink);
}

.background-effects {
    opacity: 0.25;
    filter: saturate(1.05);
}

.slots-dashboard,
.slots-popular,
.slots-lobby,
.bonus-programs-section,
.value-pillars,
.promo-timer-widget {
    margin-top: var(--section-gap, 2.5rem);
    margin-bottom: var(--section-gap, 2.5rem);
}

.gradient-orb.orb-1 {
    background: radial-gradient(circle, rgba(72, 184, 255, 0.45) 0%, transparent 70%);
}

.gradient-orb.orb-2 {
    background: radial-gradient(circle, rgba(26, 154, 232, 0.35) 0%, transparent 68%);
}

.gradient-orb.orb-3 {
    background: radial-gradient(circle, rgba(154, 217, 255, 0.22) 0%, transparent 72%);
}

.grid-overlay {
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(72, 184, 255, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 184, 255, 0.35) 1px, transparent 1px);
}

.header,
.header.scrolled {
    background: var(--header-bg) !important;
    border-bottom: 1px solid rgba(72, 184, 255, 0.18) !important;
    box-shadow: 0 12px 40px rgba(2, 8, 22, 0.45);
}

.glass-card,
.content-wrapper,
.faq-section,
.toc,
.related-card,
.hero-value,
.hero-compact,
.lane-tool,
body.theme-t4 .glass-card,
body.theme-t4 .content-wrapper {
    border-color: rgba(72, 184, 255, 0.24) !important;
    box-shadow:
        inset 0 1px 0 rgba(186, 230, 253, 0.12),
        0 24px 56px rgba(2, 8, 24, 0.5),
        0 0 0 1px rgba(72, 184, 255, 0.06);
}

.content-wrapper--lead {
    background: linear-gradient(165deg, rgba(72, 184, 255, 0.07) 0%, rgba(5, 11, 26, 0.92) 100%) !important;
}

.main-title,
.main-title.gradient-text {
    background: linear-gradient(100deg, #ffffff 0%, #9ad9ff 35%, #48b8ff 58%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-headline {
    color: #e8f6ff !important;
    -webkit-text-fill-color: #e8f6ff !important;
    text-shadow: 0 0 28px rgba(72, 184, 255, 0.18);
}

.hero-stat {
    background: rgba(72, 184, 255, 0.08);
    border: 1px solid rgba(72, 184, 255, 0.22);
}

.hero-stat-num {
    color: #9ad9ff;
}

.hero-features li,
.hero-tagline {
    color: rgba(186, 230, 253, 0.88) !important;
}

.page-utility-rail {
    background: rgba(8, 20, 45, 0.65);
    border: 1px solid rgba(72, 184, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.08);
}

.page-search-label,
.page-toc-title,
.reader-checklist-title,
.pay-eyebrow,
.wc-eyebrow {
    color: #7ecfff;
}

.page-search-input,
input,
select,
textarea {
    border-color: rgba(72, 184, 255, 0.22) !important;
}

.page-search-input:focus,
input:focus,
select:focus,
textarea:focus,
.wc-input:focus {
    border-color: #48b8ff !important;
    box-shadow: 0 0 0 3px rgba(72, 184, 255, 0.28);
}

.reality-check {
    color: rgba(186, 230, 253, 0.88);
    border-color: rgba(72, 184, 255, 0.18);
    background: rgba(72, 184, 255, 0.05);
}

.slots-dashboard,
.bonus-programs-section.variant-v4,
.promo-timer-widget.variant-v4,
.value-pillars {
    border-color: rgba(72, 184, 255, 0.28);
}

.slots-dashboard {
    background: linear-gradient(135deg, rgba(72, 184, 255, 0.1) 0%, rgba(4, 10, 24, 0.88) 100%);
}

.slots-dashboard .slot-poster {
    background: linear-gradient(135deg, #0c1a32 0%, #060d1a 100%);
}

.slots-dashboard .slot-card {
    border-color: rgba(72, 184, 255, 0.26);
    background: linear-gradient(135deg, rgba(6, 14, 32, 0.95) 0%, rgba(10, 22, 42, 0.88) 100%);
}

.slots-dashboard .slot-rtp {
    border-left-color: #48b8ff;
}

.slots-dashboard .slot-rtp-value,
.slots-dashboard-title {
    color: #9ad9ff;
}

.slots-dashboard-title {
    background: linear-gradient(135deg, #d4f0ff, #48b8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bonus-programs-section.variant-v4 {
    background: linear-gradient(180deg, rgba(4, 10, 26, 0.92) 0%, rgba(72, 184, 255, 0.1) 100%);
    border-style: solid;
}

.slots-dashboard .slot-play-btn {
    width: auto !important;
    margin-top: 0 !important;
    flex: 0 0 auto;
}

.bonus-programs-section .bonus-card-amount {
    color: #9ad9ff;
}

.promo-timer-widget.variant-v4 {
    background: linear-gradient(180deg, rgba(4, 10, 26, 0.9) 0%, rgba(72, 184, 255, 0.12) 100%);
}

.promo-timer-widget .timer-item {
    border-color: rgba(72, 184, 255, 0.28);
    background: rgba(72, 184, 255, 0.08);
}

.lane-tool {
    background: linear-gradient(165deg, rgba(72, 184, 255, 0.08) 0%, rgba(5, 11, 26, 0.94) 100%);
    border-color: rgba(72, 184, 255, 0.24);
}

.pay-card:hover {
    border-color: rgba(72, 184, 255, 0.45);
    background: rgba(72, 184, 255, 0.08);
}

.pay-facts dd {
    color: #ccefff;
}

a,
.article-content a {
    color: #8fd4ff;
}

a:hover {
    color: #c2e9ff;
}

.breadcrumbs a,
.breadcrumb-link,
.toc a {
    color: rgba(186, 230, 253, 0.9) !important;
    -webkit-text-fill-color: rgba(186, 230, 253, 0.9) !important;
}

.faq-question {
    color: #eef8ff !important;
}

footer,
.site-footer {
    border-top-color: rgba(72, 184, 255, 0.15);
}

body.theme-t2,
body.theme-t3,
body.theme-t4,
body.theme-t5 {
    --field: #050b1a;
    --header-bg: rgba(6, 16, 38, 0.94);
}

body.theme-t5 {
    --section-radius: 18px;
    --radius-card: 18px;
}

:focus-visible {
    outline-color: #48b8ff;
}

a.btn.btn-outline,
button.btn.btn-outline,
.btn-apple-secondary {
    color: #8fd4ff !important;
    -webkit-text-fill-color: #8fd4ff !important;
    border-color: rgba(72, 184, 255, 0.55) !important;
}

a.btn.btn-primary,
a.btn.btn-cta,
button.btn.btn-cta,
.btn-apple-primary,
.slots-dashboard .slot-play-btn,
.main-nav .nav-link.active,
.main-nav .nav-link:hover {
    background: linear-gradient(135deg, #5ec5ff 0%, #1a9ae8 100%) !important;
    box-shadow: 0 10px 28px rgba(72, 184, 255, 0.38);
}

.slots-tab.active {
    background: linear-gradient(135deg, #5ec5ff, #1a9ae8);
    color: var(--on-accent, #04121f);
    -webkit-text-fill-color: var(--on-accent, #04121f);
}

.bonus-programs-section .bonus-card-button--primary {
    color: #0a4a72;
    background: linear-gradient(180deg, #f0f9ff, #d4efff);
}

.bonus-programs-section .bonus-card-button--outline {
    color: #d8f0ff;
    border-color: rgba(144, 210, 255, 0.45);
}

.value-pillar-title,
.value-pillars-heading {
    color: #7ecfff;
}

.reader-checklist {
    border-color: rgba(72, 184, 255, 0.22);
    background: linear-gradient(165deg, rgba(72, 184, 255, 0.08) 0%, rgba(5, 11, 26, 0.85) 100%);
}

.wc-share-btn,
.wager-calc .wc-share-btn {
    background: linear-gradient(135deg, #48b8ff, #1a9ae8);
    color: #04121f;
}

.article-content h2,
.layout-block h2 {
    color: #eef8ff !important;
    -webkit-text-fill-color: #eef8ff !important;
}

.article-content p,
.layout-block p {
    color: rgba(186, 230, 253, 0.88) !important;
}

.preloader {
    background: #050b1a;
}

.preloader-spinner {
    border-top-color: #48b8ff;
    border-right-color: rgba(72, 184, 255, 0.25);
}

/* ---------- Designer pass: type, header, hero, article, FAQ, footer ---------- */

.main-title,
.hero-headline,
.slots-dashboard-title,
.bonus-programs-title,
.value-pillars-heading,
.action-title {
    font-family: "Unbounded", "Montserrat", sans-serif;
    letter-spacing: -0.03em;
}

.hero-value.variant-v4 .hero-tagline {
    display: block;
    max-width: 46ch;
    margin: 0.35rem 0 1rem;
    font-size: 1.02rem;
    line-height: 1.55;
}

.hero-stage {
    padding: 0.25rem 0 0.5rem;
}

.hero-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(72, 184, 255, 0.12);
    border: 1px solid rgba(72, 184, 255, 0.35);
    color: #cfefff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-value.variant-v4 .hero-features {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: rgba(8, 20, 44, 0.55);
    border: 1px solid rgba(72, 184, 255, 0.16);
}

.hero-actions,
.action-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.action-block.variant-v4 {
    text-align: center;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(72, 184, 255, 0.22), transparent 58%),
        linear-gradient(180deg, rgba(8, 22, 48, 0.9), rgba(5, 11, 26, 0.96)) !important;
    border: 1px solid rgba(72, 184, 255, 0.32) !important;
    border-style: solid !important;
}

.action-block .action-cta {
    justify-content: center;
}

.action-title {
    margin: 0.4rem 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    color: #f4faff;
}

.action-subtitle {
    margin: 0 auto;
    max-width: 42ch;
    color: rgba(186, 230, 253, 0.82);
}

.action-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 8px 18px rgba(72, 184, 255, 0.35));
}

.header .header-inner.container {
    max-width: min(1440px, calc(100% - 24px));
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.logo-link {
    flex: 0 0 auto;
}

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.header-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.main-nav {
    min-width: 0;
    overflow: hidden;
}

.main-nav .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav .nav-list::-webkit-scrollbar { display: none; }

.main-nav .nav-link {
    white-space: nowrap;
    padding: 7px 12px !important;
    font-size: 13px !important;
}

.header-actions,
.header.scrolled .header-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
    opacity: 1;
    max-width: none;
    overflow: visible;
    pointer-events: auto;
}

.header-actions .btn {
    overflow: visible;
    position: relative;
}

.btn-badge {
    position: static;
    top: auto;
    right: auto;
    display: none;
}

.header-actions .btn {
    text-transform: none;
    letter-spacing: 0;
}

.article-content h2,
.layout-block h2 {
    position: relative;
    margin: 2rem 0 0.75rem;
    padding-left: 0.85rem;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    line-height: 1.25;
}

.article-content h2::before,
.layout-block h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #9ad9ff, #1a9ae8);
}

.article-content ul,
.article-content ol {
    margin: 0.6rem 0 1rem;
    padding-left: 1.15rem;
    color: rgba(214, 236, 252, 0.9);
}

.article-content li + li {
    margin-top: 0.35rem;
}

.related-card {
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(72, 184, 255, 0.45) !important;
}

.faq-section {
    background: linear-gradient(180deg, rgba(8, 20, 44, 0.7), rgba(5, 11, 26, 0.92)) !important;
}

.faq-item {
    margin: 0 0 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(72, 184, 255, 0.16);
    background: rgba(6, 16, 36, 0.55);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 0.95rem 1.1rem;
    background: transparent;
    border: 0;
    color: #eef8ff;
    font-weight: 600;
    cursor: pointer;
}

.faq-answer {
    padding: 0 1.1rem 0.95rem;
}

.site-footer {
    margin-top: var(--section-gap, 3rem);
    padding-top: 2rem;
    background: linear-gradient(180deg, transparent, rgba(4, 12, 28, 0.85));
}

.footer-seal,
.contact-link {
    border-color: rgba(72, 184, 255, 0.2);
}

.mobile-nav {
    background: rgba(5, 12, 28, 0.96);
    border-left: 1px solid rgba(72, 184, 255, 0.2);
    backdrop-filter: blur(18px);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: #d7f1ff;
    background: rgba(72, 184, 255, 0.12);
}

.mobile-menu-btn {
    border-color: rgba(72, 184, 255, 0.28);
    background: rgba(72, 184, 255, 0.08);
}

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .header-actions,
    .header.scrolled .header-actions { display: none; }
    .mobile-menu-btn {
        display: flex;
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        margin-left: auto;
    }
}

/* Tech surface: hairline panels, mono labels, quieter motion */

.slots-dashboard,
.bonus-programs-section,
.promo-timer-widget,
.value-pillars,
.lane-tool,
.page-utility-rail,
.content-wrapper--body,
.action-block {
    position: relative;
    overflow: hidden;
}

.slots-dashboard::after,
.bonus-programs-section::after,
.promo-timer-widget::after,
.value-pillars::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(72, 184, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 184, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 42%);
}

.slots-dashboard-title-wrap,
.timer-item,
.pay-card,
.value-pillar,
.bonus-programs-section .bonus-card {
    background-image: linear-gradient(180deg, rgba(72, 184, 255, 0.05), transparent 42%);
}

.slots-dashboard .slot-rtp-value,
.timer-value,
.hero-stat-num,
.rc-time {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
}

.header {
    background: rgba(5, 12, 28, 0.78) !important;
    backdrop-filter: blur(22px) saturate(1.2);
}

.header-actions .btn-primary {
    box-shadow: 0 0 0 1px rgba(186, 230, 253, 0.35), 0 10px 28px rgba(72, 184, 255, 0.35);
}

.main-nav .nav-link.active {
    box-shadow: inset 0 0 0 1px rgba(186, 230, 253, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .slots-dashboard::before,
    .related-card {
        animation: none;
        transition: none;
    }
}