/* Fortunica Casino — shared theme */

:root {
    --color-ink: #1a0f2e;
    --color-ink-soft: #3d2d5c;
    --color-accent: #e848a8;
    --color-accent-soft: #ff8ec9;
    --color-gold: #d4a853;
    --color-violet: #7c5cbf;
    --color-violet-deep: #5b3d9e;
    --color-surface: rgba(255, 255, 255, 0.72);
    --color-surface-solid: #f5f0ff;
    --color-night: #12152e;
    --color-night-mid: #1c2148;
    --shadow-sm: 0 2px 12px rgba(26, 15, 46, 0.06);
    --shadow-md: 0 8px 32px rgba(26, 15, 46, 0.1);
    --shadow-lg: 0 20px 48px rgba(26, 15, 46, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --nav-h: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(232, 228, 255, 0.9);
    background-color: #120820;
    background-image:
        radial-gradient(ellipse 100% 80% at 0% -20%, rgba(124, 92, 191, 0.45), transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(232, 72, 168, 0.22), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(212, 168, 83, 0.08), transparent 45%),
        linear-gradient(180deg, #2a1f4a 0%, #1a1230 38%, #150d28 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ——— Top navigation ——— */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--nav-h);
    padding: 10px clamp(16px, 4vw, 32px);
    background: rgba(18, 12, 32, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.site-nav__brand img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.15));
}

.site-nav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 10px;
}

.site-nav__links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.site-nav__links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-nav__links a[aria-current="page"] {
    background: rgba(232, 72, 168, 0.25);
    color: var(--color-accent-soft);
}

.site-nav__cta {
    background: linear-gradient(135deg, var(--color-violet), var(--color-accent)) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(232, 72, 168, 0.35);
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.site-nav__cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.site-nav__cta--secondary {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(212, 168, 83, 0.75) !important;
    box-shadow: 0 0 24px rgba(212, 168, 83, 0.18) !important;
}

.site-nav__cta--secondary:hover {
    filter: none;
    background: rgba(212, 168, 83, 0.12) !important;
    border-color: var(--color-gold) !important;
    transform: translateY(-1px);
}

.site-nav__btn--login {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    box-shadow: none !important;
}

.site-nav__btn--login:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

@media (max-width: 520px) {
    .site-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav__links {
        justify-content: center;
    }

    .site-nav__brand {
        justify-content: center;
    }
}

/* ——— Hero ——— */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 220px;
    margin: 0 clamp(12px, 3vw, 24px);
    margin-top: 12px;
    padding: 36px 20px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(92, 62, 180, 0.95) 0%, rgba(40, 28, 90, 0.98) 50%, rgba(26, 18, 58, 1) 100%);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero--compact {
    min-height: 160px;
    padding: 48px 20px 36px;
    justify-content: center;
}

.hero .banner-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/banner.webp");
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
    border-radius: inherit;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(18, 12, 32, 0.55) 100%);
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

.page-home .hero {
    min-height: 200px;
    padding: 32px 18px 36px;
}

.header-heading {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0 16px;
    max-width: 820px;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3.8vw, 1.85rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    animation: fadeInDown 0.9s ease-out;
}

.hero__lead {
    position: relative;
    z-index: 3;
}

.hero__eyebrow {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-soft);
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.highlight {
    background: linear-gradient(90deg, #fff 0%, var(--color-accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .header-heading {
        animation: none;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ——— Content shells ——— */
.section {
    padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 28px);
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

main.section {
    padding-top: clamp(28px, 5vw, 48px);
}

.bonus,
.vip,
.seo,
.live,
.mobile {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: clamp(24px, 4vw, 40px);
    margin: 0 auto 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

/* ——— Typography (article) ——— */
.section.seo.content-prose {
    color: var(--color-ink-soft);
}

.section.seo.content-prose a {
    color: var(--color-violet-deep);
}

.section.seo.content-prose a:hover {
    color: var(--color-accent);
}

.section.seo.content-prose code {
    font-size: 0.9em;
    padding: 0.15em 0.45em;
    border-radius: 6px;
    background: rgba(91, 61, 158, 0.12);
    color: var(--color-violet-deep);
}

main.section.content-prose {
    color: rgba(232, 228, 255, 0.88);
}

main.section.content-prose h2 {
    color: #f7f4ff;
}

main.section.content-prose h3 {
    color: #ece8ff;
}

main.section.content-prose a {
    color: #ffb8e0;
}

main.section.content-prose a:hover {
    color: #fff;
}

.content-prose h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.content-prose h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    font-weight: 700;
    color: var(--color-violet-deep);
    margin: 2.25rem 0 0.85rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.content-prose h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 1.75rem 0 0.65rem;
}

.content-prose p {
    margin: 0 0 1rem;
}

.content-prose ul,
.content-prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.content-prose li {
    margin-bottom: 0.45rem;
}

.content-prose li::marker {
    color: var(--color-accent);
}

.content-prose a {
    color: var(--color-violet-deep);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

/* ——— Buttons ——— */
.casino-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px auto;
}

.casino-btn {
    margin-top: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, var(--color-violet), #c44eb0);
    color: #fff;
}

.casino-btn.primary {
    padding: 14px 28px;
}

.casino-btn.primary:hover,
.casino-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 72, 168, 0.35);
    filter: brightness(1.05);
}

.casino-btn.secondary {
    background: linear-gradient(135deg, #6a4ec7, var(--color-accent));
    color: #fff;
}

.casino-btn.small {
    font-size: 0.75rem;
    padding: 8px 16px;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.casino-btn.small:hover {
    transform: translateY(-2px);
}

/* ——— Feature cards ——— */
.features-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 28px 0 8px;
}

.feature-card {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 140px;
    max-width: 320px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 238, 255, 0.88));
    border-radius: var(--radius-sm);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(124, 92, 191, 0.2);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 72, 168, 0.35);
}

.feature-card h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: var(--color-violet-deep);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feature-card p {
    font-size: 0.95rem;
    margin: 8px 0 0;
}

@media (max-width: 992px) {
    .feature-card {
        flex: 1 1 calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .feature-card {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* ——— FAQ ——— */
.faq {
    background: linear-gradient(165deg, var(--color-night-mid) 0%, var(--color-night) 100%);
    border-radius: var(--radius-md);
    padding: clamp(28px, 5vw, 44px);
    margin: 40px 0 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--color-accent-soft);
    margin: 0 0 28px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    padding: 16px 18px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--color-accent);
}

.faq-item h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.35;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(230, 228, 255, 0.88);
    margin: 0;
}

/* ——— Slots ——— */
.slots-section {
    margin: 40px 0;
}

.slots-section > h2 {
    font-family: var(--font-display);
    text-align: center;
    margin: 0 0 20px;
    font-weight: 800;
    color: #f7f4ff;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.slot-card {
    background: linear-gradient(165deg, var(--color-night-mid), var(--color-night));
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(212, 168, 83, 0.15);
}

.slot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(212, 168, 83, 0.45);
}

.slot-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.slot-card h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent-soft);
    margin: 0 0 10px;
    line-height: 1.3;
}

/* ——— Tables ——— */
.table-wrap {
    margin: 1.35rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(91, 61, 158, 0.45);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.table-wrap table {
    margin: 0;
    max-width: none;
    width: 100%;
    min-width: 520px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

table {
    width: 100%;
    max-width: 720px;
    margin: 24px auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(0.88rem, 2.8vw, 1rem);
    line-height: 1.5;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(91, 61, 158, 0.35);
}

table td {
    border-bottom: 1px solid rgba(91, 61, 158, 0.15);
    padding: 14px 16px;
    vertical-align: top;
    background: #fff;
    color: var(--color-ink);
}

table td p {
    margin: 0;
    color: inherit;
}

table td em {
    color: #4a2d88;
    font-style: italic;
    font-weight: 600;
}

table tr:nth-child(even) td {
    background: #f4f0fc;
}

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

table tr:first-child td {
    font-family: var(--font-display);
    font-weight: 700;
    background: linear-gradient(180deg, #5b3d9e 0%, #44297a 100%);
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    -webkit-font-smoothing: antialiased;
}

table tr:first-child td p {
    color: inherit;
    font-weight: 700;
}

/* ——— Footer ——— */
footer.site-footer {
    margin-top: 48px;
    padding: 36px 20px 28px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    background: linear-gradient(180deg, rgba(18, 12, 32, 0.6), rgba(10, 6, 20, 0.95));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__nav {
    margin-bottom: 16px;
}

.site-footer__nav a {
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.9rem;
}

.site-footer__nav a:hover {
    color: var(--color-accent-soft);
    text-decoration: underline;
}

.site-footer__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.site-footer__trust a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.site-footer__trust a:hover {
    color: var(--color-accent-soft);
    text-decoration: underline;
}

.site-footer__legal {
    font-size: 0.85rem;
    max-width: 640px;
    margin: 14px auto 0;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer p:last-of-type {
    margin: 16px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

a:focus-visible,
.casino-btn:focus-visible,
.feature-card:focus-visible {
    outline: 3px solid var(--color-accent-soft);
    outline-offset: 2px;
}

/* ——— Mobile ——— */
@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .site-nav {
        padding: 8px 12px;
    }

    .site-nav__brand img {
        height: 48px;
        max-width: 200px;
    }

    .site-nav__links {
        gap: 4px 6px;
        width: 100%;
    }

    .site-nav__links a {
        font-size: 0.78rem;
        padding: 8px 11px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav__cta {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }

    .hero {
        margin-left: 8px;
        margin-right: 8px;
        margin-top: 8px;
        min-height: 170px;
        padding: 28px 14px 32px;
        border-radius: var(--radius-md);
    }

    .page-home .hero {
        min-height: 160px;
        padding: 24px 12px 28px;
    }

    .hero--compact {
        min-height: 130px;
        padding: 28px 14px 24px;
    }

    .header-heading {
        font-size: clamp(1.05rem, 5vw, 1.45rem);
        padding: 0 8px;
    }

    .hero__title {
        font-size: clamp(1.4rem, 6vw, 1.85rem);
    }

    .section {
        padding: 28px 12px 36px;
    }

    .table-wrap {
        margin-left: 0;
        margin-right: 0;
        border-radius: var(--radius-sm);
    }

    table td {
        padding: 11px 12px;
        font-size: 0.86rem;
    }

    .slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .slot-card {
        padding: 8px;
    }

    .slot-card h3 {
        font-size: 0.72rem;
    }

    .faq {
        padding: 22px 14px;
        margin-left: 0;
        margin-right: 0;
    }

    .faq-item h3 {
        font-size: 0.98rem;
    }

    .faq-item p {
        font-size: 0.92rem;
    }

    .feature-card {
        padding: 18px 14px;
    }

    footer.site-footer {
        padding: 28px 14px 24px;
    }

    .site-footer__nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .site-footer__nav a {
        margin: 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 380px) {
    .slots-grid {
        grid-template-columns: 1fr;
    }
}
