/*
 * DudeSpin Casino - morska przygoda
 * Canonical design tokens live in this file.
 */

:root {
    --parchment: #f4e4c1;
    --parchment-light: #faf0d9;
    --parchment-edge: #ead3a3;
    --cream: #fff7e6;
    --sand: #e9d3a6;
    --ink: #2e1c0f;
    --ink-soft: #4d331d;
    --brown: #5a3218;
    --brown-dark: #3b2414;
    --wood-deep: #2a170b;
    --gold: #f5b83d;
    --gold-light: #ffd774;
    --gold-deep: #c98a17;
    --coral: #f0715a;
    --coral-deep: #b93a24;
    --ocean: #1d6fa5;
    --ocean-deep: #0f4c75;
    --white: #ffffff;

    --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
    --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-card: 0 10px 28px rgba(46, 28, 15, 0.18);
    --shadow-soft: 0 4px 14px rgba(46, 28, 15, 0.14);

    --header-h: 68px;
    --header-bottom: 68px;
    --section-pad: clamp(56px, 9vw, 104px);

    interpolate-size: allow-keywords;
}

@media (min-width: 1024px) {
    :root { --header-h: 84px; --header-bottom: 84px; }
}

/* ============ Overflow prevention ============ */
*,
*::before,
*::after { box-sizing: border-box; }

img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }

[class*="grid"] > *,
[class*="flex"] > * { min-width: 0; }

pre, code { max-width: 100%; overflow-x: auto; }

.table-wrapper { max-width: 100%; overflow-x: auto; }

p, li, td, th, h1, h2, h3 { overflow-wrap: break-word; }

details { height: fit-content; }

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article) a:not([class]) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

input, textarea, select { max-width: 100%; }

section { overflow: clip; position: relative; }

/* ============ Base ============ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--parchment);
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

main {
    display: block;
    padding-top: var(--header-h);
}

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

img { display: block; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 0.5em;
    color: var(--ink);
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 7.5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 5.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 3.6vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--ocean-deep); }
a:hover { color: var(--coral-deep); }

:focus-visible {
    outline: 3px solid var(--ocean);
    outline-offset: 3px;
    border-radius: 4px;
}

ul, ol { padding-left: 1.25em; }

.container {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.container--narrow { width: min(780px, calc(100% - 2rem)); }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--gold);
    color: var(--ink);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 800;
}
.skip-link:focus { top: 12px; }

.section { padding-block: var(--section-pad); }

.prose { max-width: 70ch; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.75; }

.scene-art {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ============ Surfaces ============ */
.surface-parchment {
    background-color: var(--parchment);
    background-image: url("./assets/dda8b3c59973979b20651b59c3a5621e.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.surface-wood {
    color: var(--cream);
    background-color: var(--brown-dark);
    background-image:
        linear-gradient(rgba(36, 20, 9, 0.8), rgba(36, 20, 9, 0.86)),
        url("./assets/a9033ebf8ce1818a99308aed6bc6ee4c.webp");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.surface-wood h2, .surface-wood h3 { color: var(--cream); }

/* Torn paper edges (CSS clip-path) */
.torn-top,
.torn-bottom { position: relative; }

.torn-top::before,
.torn-bottom::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 22px;
    z-index: 3;
    pointer-events: none;
    background: var(--torn-color, var(--parchment));
}

.torn-top::before {
    top: -1px;
    clip-path: polygon(0 0, 100% 0, 100% 55%, 97% 85%, 93% 50%, 89% 90%, 85% 60%, 80% 100%, 75% 55%, 70% 85%, 64% 45%, 59% 90%, 53% 60%, 48% 95%, 42% 50%, 37% 85%, 31% 55%, 26% 100%, 20% 60%, 15% 90%, 10% 45%, 6% 85%, 3% 55%, 0 80%);
}

.torn-bottom::after {
    bottom: -1px;
    clip-path: polygon(0 100%, 100% 100%, 100% 45%, 97% 15%, 93% 50%, 89% 10%, 85% 40%, 80% 0, 75% 45%, 70% 15%, 64% 55%, 59% 10%, 53% 40%, 48% 5%, 42% 50%, 37% 15%, 31% 45%, 26% 0, 20% 40%, 15% 10%, 10% 55%, 6% 15%, 3% 45%, 0 20%);
}

.rope-divider {
    height: 10px;
    width: min(680px, 86%);
    margin: 0 auto;
    border-radius: 6px;
    background: repeating-linear-gradient(-45deg, #b4864d 0 6px, #7a5228 6px 9px);
    box-shadow: 0 2px 0 rgba(58, 35, 18, 0.35);
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 52px;
    padding: 0.7em 1.7em;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.btn--primary {
    color: #3a1f0b;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, #e39a1f 100%);
    border-color: #8a5414;
    box-shadow: 0 4px 0 #8a5414, 0 10px 24px rgba(245, 184, 61, 0.35);
}
.btn--primary:hover { color: #2a1406; box-shadow: 0 6px 0 #8a5414, 0 14px 30px rgba(245, 184, 61, 0.5); }

.btn--dark {
    color: var(--cream);
    background: linear-gradient(180deg, #6f3d1d, var(--brown));
    border-color: var(--gold-deep);
    box-shadow: 0 4px 0 #2a170b;
}
.btn--dark:hover { color: var(--white); }

.btn--outline {
    color: var(--cream);
    background: rgba(36, 20, 9, 0.35);
    border-color: var(--cream);
}
.btn--outline:hover { color: var(--ink); background: var(--cream); }

.btn--ocean {
    color: var(--ocean-deep);
    background: var(--cream);
    border-color: var(--ocean);
}
.btn--ocean:hover { color: var(--white); background: var(--ocean-deep); }

.btn--sm {
    min-height: 44px;
    padding: 0.45em 0.85em;
    font-size: 0.9rem;
    border-radius: 10px;
}

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

@media (min-width: 480px) {
    .btn--wide { width: auto; min-width: 280px; }
}

.cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    text-align: center;
}

.cta-row__note {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.surface-wood .cta-row__note { color: var(--sand); }

/* ============ Header ============ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    color: var(--cream);
    background-color: var(--brown-dark);
    background-image:
        linear-gradient(rgba(42, 23, 11, 0.55), rgba(42, 23, 11, 0.72)),
        url("./assets/a9033ebf8ce1818a99308aed6bc6ee4c.webp");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    border-bottom: 2px solid var(--gold-deep);
    box-shadow: 0 6px 0 -2px rgba(30, 16, 6, 0.55), 0 10px 22px rgba(30, 16, 6, 0.35);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--header-h);
    padding-block: 10px;
    transition: min-height 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled .site-header__inner {
    min-height: calc(var(--header-h) - 12px);
    padding-block: 4px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    text-decoration: none;
    color: var(--cream);
    flex-shrink: 0;
}

.site-brand:hover { color: var(--gold-light); }

.site-brand__mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.95;
    text-shadow: 0 2px 0 rgba(30, 16, 6, 0.6);
}

.site-brand__name { font-size: 1.15rem; color: var(--cream); }
.site-brand__sub { font-size: 1rem; color: var(--gold-light); font-weight: 600; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions .btn--sm { white-space: nowrap; }

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 10px;
    border: 2px solid var(--gold-deep);
    background: var(--brown);
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--cream);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 99;
    overflow-y: auto;
    padding: 18px 16px 32px;
    background: var(--wood-deep);
    border-top: 2px solid var(--gold-deep);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 184, 61, 0.22);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--ink);
    background: var(--gold);
}

.site-nav__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 4px 0;
    color: var(--sand);
    font-weight: 700;
}

@media (max-width: 379px) {
    .site-brand__mark { display: none; }
    .site-brand__name { font-size: 1.05rem; }
    .header-actions .btn--sm { padding: 0.45em 0.6em; font-size: 0.85rem; }
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }

    .site-header__inner { gap: 20px; }

    .site-brand { margin-right: 0; }
    .site-brand__mark { width: 52px; height: 52px; }
    .site-brand__name { font-size: 1.45rem; }
    .site-brand__sub { font-size: 1.2rem; }

    .site-nav {
        position: static;
        flex: 1;
        padding: 0;
        background: none;
        border: 0;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .site-nav__list {
        display: flex;
        justify-content: center;
        gap: 2px;
    }

    .site-nav__link {
        min-height: 44px;
        padding: 0 10px;
        font-size: 1.0625rem;
        border-bottom: 0;
        border-radius: 8px;
    }

    .site-nav__note { display: none; }

    .header-actions { gap: 10px; }
    .header-actions .btn--sm { font-size: 1rem; padding: 0.5em 1.1em; }
}

/* ============ Section title ============ */
.section-title {
    margin-bottom: clamp(24px, 4vw, 40px);
}

.section-title--center { text-align: center; }
.section-title--left { text-align: left; }

.section-title h2 { margin-bottom: 12px; }

.section-title__ornament {
    position: relative;
    display: block;
    width: min(240px, 70%);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brown) 20%, var(--brown) 80%, transparent);
}

.section-title--center .section-title__ornament { margin-inline: auto; }

.section-title__ornament::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border: 2px solid var(--brown);
    transform: translate(-50%, -50%) rotate(45deg);
}

.section-title--left .section-title__ornament::after { left: 24px; }

.section-title--light h2 { color: var(--cream); text-shadow: 0 2px 0 rgba(30, 16, 6, 0.6); }
.section-title--light .section-title__ornament {
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.section-title--light .section-title__ornament::after { border-color: var(--gold-light); background: var(--brown); }

/* ============ Term chips ============ */
.term-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.term-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--cream);
    border: 2px solid var(--brown);
}

.term-chip--age {
    color: var(--white);
    background: var(--coral-deep);
    border-color: var(--cream);
    box-shadow: 0 0 0 2px var(--coral-deep);
}

/* ============ Chips (payments / providers) ============ */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 5px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9375rem;
    background: var(--cream);
    border: 1px solid #d9bf8e;
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}

.chip--visa { color: #1a1f71; font-style: italic; }
.chip--mastercard { color: #b8001a; }
.chip--mifinity { color: #0a6656; }
.chip--revolut { color: #191c1f; }
.chip--skrill { color: #7a1d5c; }
.chip--neteller { color: #2f6b17; }
.chip--paysafecard { color: #00508f; }
.chip--bitcoin { color: #9a5200; }
.chip--ethereum { color: #3c3c3d; }
.chip--litecoin { color: #2d5290; }
.chip--xrp { color: #23292f; }
.chip--usdt { color: #146a50; }
.chip--usdc { color: #1d5aa0; }
.chip--dogecoin { color: #7a5c0e; }
.chip--cardano { color: #0033ad; }

.chip-list--provider .chip {
    color: var(--cream);
    background: #2f1b0e;
    border: 1px solid var(--gold-deep);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8125rem;
    box-shadow: none;
}

/* ============ Speech bubble ============ */
.speech-bubble {
    position: relative;
    display: inline-block;
    max-width: 260px;
    padding: 12px 18px;
    border-radius: 18px;
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--brown);
    box-shadow: 0 8px 20px rgba(46, 28, 15, 0.25);
}

.speech-bubble p {
    margin: 0;
    font-weight: 800;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -14px;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-right: 2px solid var(--brown);
    border-bottom: 2px solid var(--brown);
    transform: rotate(45deg) skew(10deg, 10deg);
}

.speech-bubble--left::after { left: 28px; }
.speech-bubble--right::after { right: 28px; }
.speech-bubble--bottom::after { left: calc(50% - 11px); }

/* ============ 18+ badge ============ */
.badge-18 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    background: var(--coral-deep);
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 3px var(--gold);
}

.badge-18--sm {
    width: 38px;
    height: 38px;
    font-size: 0.875rem;
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--gold);
}

/* ============ FAQ ============ */
.faq-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.faq-item {
    background: var(--cream);
    border: 1px solid #dcc49a;
    border-left: 6px solid var(--brown);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.faq-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 14px 16px 14px 18px;
    cursor: pointer;
    list-style: none;
}

.faq-item__summary::-webkit-details-marker { display: none; }

.faq-item__q {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}

.faq-item__icon {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--brown);
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-item__a { padding: 0 18px 16px; }
.faq-item__a p { margin: 0; color: var(--ink-soft); }

.faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}

.faq-item[open]::details-content { block-size: auto; }

/* ============ Footer ============ */
.site-footer {
    --torn-color: var(--parchment);
    color: var(--cream);
    background-color: var(--wood-deep);
    background-image:
        linear-gradient(rgba(30, 16, 6, 0.86), rgba(30, 16, 6, 0.92)),
        url("./assets/a9033ebf8ce1818a99308aed6bc6ee4c.webp");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    padding-top: 56px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "main"
        "captain"
        "copy";
    gap: 24px;
}

.site-footer__main { grid-area: main; }

.site-brand--footer { margin-bottom: 20px; }

.site-footer__label {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--gold-light);
}

.site-footer__rg {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px 0 18px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--gold-light);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-footer__links a:hover { color: var(--white); }

.site-footer__disclaimer {
    max-width: 68ch;
    margin: 0;
    font-size: 0.9375rem;
    color: #ead9b8;
}

.site-footer__captain {
    grid-area: captain;
    justify-self: center;
    width: min(220px, 60%);
}

.site-footer__captain img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.site-footer__copy {
    grid-area: copy;
    margin: 0;
    padding: 16px 0 24px;
    border-top: 1px solid rgba(245, 184, 61, 0.35);
    text-align: center;
    font-size: 0.875rem;
    color: #ead9b8;
}

@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr) 260px;
        grid-template-areas:
            "main captain"
            "copy captain";
        align-items: end;
        column-gap: 40px;
    }

    .site-footer__captain {
        width: 100%;
        align-self: end;
    }

    .site-footer__copy { text-align: left; }
}

@media (min-width: 1024px) {
    .site-footer { padding-top: 72px; }
    .site-footer__inner { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* =========================================================
   HOMEPAGE
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(36px, 7vw, 72px) 48px;
    background: #6e4221;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("./assets/b91e722488b4517cd3b2ea892fa011b8.webp");
    background-size: cover;
    background-position: 28% 40%;
    background-repeat: no-repeat;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.hero__copy { position: relative; z-index: 1; }

.hero__copy::before {
    content: "";
    position: absolute;
    inset: -40px -30px;
    z-index: -1;
    background: radial-gradient(ellipse at 40% 45%, rgba(255, 244, 222, 0.88) 0%, rgba(255, 238, 205, 0.62) 45%, rgba(255, 238, 205, 0) 72%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2rem, 8.4vw, 4rem);
    color: var(--ink);
    margin-bottom: 14px;
}

.hero__brand {
    display: block;
    font-size: 0.5em;
    color: var(--coral-deep);
    letter-spacing: 0.04em;
}

.hero__line {
    display: block;
    font-size: 0.62em;
    color: var(--brown);
}

.hero__lead {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink-soft);
    max-width: 36ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 22px;
}

.hero__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 800;
    color: var(--brown-dark);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.hero__art {
    position: relative;
    width: min(80%, 420px);
    margin: 8px auto 0;
}

.hero__captain {
    width: 100%;
    aspect-ratio: 1200 / 1300;
    background-image: url("./assets/74712dc85ec56c63344e99fb96603041.webp");
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.hero__bubble {
    position: absolute;
    top: 0;
    left: -6%;
    z-index: 2;
    max-width: 190px;
}

@media (min-width: 768px) {
    .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; }
    .hero__art { width: 100%; margin: 0; }
    .hero__bubble { left: auto; right: 4%; top: 2%; }
    .hero { padding-bottom: 32px; }
}

@media (min-width: 1024px) {
    .hero__bg { background-position: center 40%; }
    .hero { padding-top: 56px; }
    .hero__art { max-width: 540px; justify-self: end; }
}

/* ---------- Bonus ---------- */
.bonus { padding-bottom: calc(var(--section-pad) + 10px); }
.bonus.torn-top::before { background: #6e4221; }
.bonus.torn-bottom::after { background: var(--wood-deep); }

.bonus__wheel {
    position: absolute;
    left: -110px;
    top: 18%;
    width: 280px;
    height: auto;
    opacity: 0.25;
    pointer-events: none;
}

@media (max-width: 479px) { .bonus__wheel { display: none; } }

.bonus__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.bonus__capsule {
    max-width: 62ch;
    margin: 0 auto 28px;
    text-align: center;
    font-size: 1.0625rem;
    font-weight: 600;
}

.bonus__route { position: relative; }

.route { position: absolute; pointer-events: none; z-index: 0; }

.route--h {
    display: none;
    left: 0;
    right: 0;
    top: 30px;
    width: 100%;
    height: 180px;
}

.route--v {
    top: 40px;
    bottom: 40px;
    left: 50%;
    width: 70px;
    height: calc(100% - 80px);
    transform: translateX(-50%);
}

.island-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.island-card { text-align: center; }

.island-card img {
    width: min(260px, 80%);
    height: auto;
    margin: 0 auto -6px;
    object-fit: contain;
}

.island-card__body {
    display: inline-block;
    width: min(320px, 100%);
    padding: 14px 16px 16px;
    border-radius: var(--radius);
    background: rgba(255, 247, 230, 0.92);
    border: 1px solid #d9bf8e;
    box-shadow: var(--shadow-soft);
}

.island-card h3 { margin-bottom: 4px; color: var(--brown); }

.island-card__amount {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coral-deep);
}

.island-card__spins { margin: 0 0 10px; font-weight: 800; }

.island-card .term-chips { justify-content: center; }
.island-card .term-chip { min-height: 30px; font-size: 0.8125rem; padding: 2px 10px; }

.bonus__note {
    max-width: 720px;
    margin: 32px auto 0;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--cream);
    border-left: 6px solid var(--ocean);
    box-shadow: var(--shadow-soft);
}

.bonus__note p { margin: 0; }

.bonus__x { display: inline-flex; }

.bonus__captain {
    width: min(240px, 62%);
    margin: 28px auto 0;
}

.bonus__captain img { width: 100%; height: auto; object-fit: contain; }

@media (min-width: 768px) {
    .route--h { display: block; }
    .route--v { display: none; }
    .island-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1024px) {
    .bonus__layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; align-items: center; }
    .bonus__captain { width: 100%; margin: 0; }
}

/* ---------- Games ---------- */
.games {
    position: relative;
    isolation: isolate;
    color: var(--cream);
    background: var(--wood-deep);
}

.games__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("./assets/80fa09a09e5df97fd0641e6a4be3180d.webp");
    background-size: cover;
    background-position: 6% 100%;
    background-repeat: no-repeat;
}

.games::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(30, 16, 6, 0.78), rgba(30, 16, 6, 0.6) 60%, rgba(30, 16, 6, 0.4));
}

.games__capsule {
    max-width: 62ch;
    margin: 0 auto 28px;
    text-align: center;
    color: #f3e5c8;
    font-weight: 600;
}

.game-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 900px;
}

.game-card {
    flex: 0 0 calc(50% - 6px);
    display: flex;
    flex-direction: column;
    padding: 10px 10px 12px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #4a2a15, #2a170b);
    border: 1px solid var(--gold-deep);
    box-shadow: inset 0 0 0 3px #2a170b, inset 0 0 0 4px rgba(245, 184, 61, 0.45), 0 10px 22px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 3px #2a170b, inset 0 0 0 4px rgba(245, 184, 61, 0.7), 0 0 34px rgba(255, 190, 80, 0.45);
}

.game-card h3 {
    margin: 2px 0 8px;
    text-align: center;
    font-size: 1.125rem;
    color: var(--gold-light);
}

.game-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(245, 184, 61, 0.5);
}

.game-card p {
    margin: 8px 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #efdfc0;
}

.games__providers-label {
    margin: 36px 0 12px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold-light);
}

.games .chip-list--provider { justify-content: center; }

.games__tip {
    max-width: 680px;
    margin: 28px auto 0;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: rgba(42, 23, 11, 0.92);
    border: 1px solid var(--gold-deep);
}

.games__tip p { margin: 0; color: var(--cream); }

@media (min-width: 768px) {
    .game-grid { gap: 18px; }
    .game-card { flex-basis: calc(33.333% - 12px); }
}

@media (min-width: 1024px) {
    .games__bg { background-position: center; }
    .game-card { flex-basis: calc(25% - 14px); }
}

/* ---------- Live ---------- */
.live { background: var(--wood-deep); color: var(--cream); }

.live__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-image: url("./assets/7fb24db19f33f4efe41d0e27879b1e15.webp");
    background-size: cover;
    background-position: 80% 50%;
    background-repeat: no-repeat;
}

.live__inner { padding-block: 28px 56px; }

.live__panel {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: rgba(42, 23, 11, 0.94);
    border: 1px solid var(--gold-deep);
    box-shadow: inset 0 0 0 4px rgba(42, 23, 11, 0.9), inset 0 0 0 5px rgba(245, 184, 61, 0.4);
}

.live__panel p { color: #f3e5c8; }

.live__list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.live__list li {
    position: relative;
    padding-left: 28px;
    font-weight: 700;
}

.live__list li::before,
.mobile__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 12px;
    height: 12px;
    background: var(--gold);
    transform: rotate(45deg);
    border-radius: 2px;
}

@media (min-width: 1024px) {
    .live { position: relative; isolation: isolate; }
    .live__media {
        position: absolute;
        inset: 0;
        z-index: -1;
        aspect-ratio: auto;
        background-position: center;
    }
    .live__inner { padding-block: 110px; }
    .live__panel { max-width: 500px; padding: 32px 30px; }
}

/* ---------- Payments ---------- */
.payments__wheel {
    position: absolute;
    right: -100px;
    top: 10%;
    width: 280px;
    height: auto;
    opacity: 0.2;
    pointer-events: none;
}

.payments__capsule {
    max-width: 62ch;
    margin: 0 auto 28px;
    text-align: center;
    font-weight: 600;
}

.pay-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 920px;
    margin-inline: auto;
}

.pay-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--cream);
    border: 1px solid #dcc49a;
    box-shadow: var(--shadow-card);
}

.pay-card__img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    margin-bottom: 10px;
}

.pay-card h3 { color: var(--brown); }

.pay-card__speed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-weight: 800;
}

.pulse-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 14px;
    border-radius: 999px;
    font-weight: 800;
    color: var(--white);
    background: var(--ocean-deep);
    animation: pulse-glow 2.2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(29, 111, 165, 0.55); }
    50% { box-shadow: 0 0 0 10px rgba(29, 111, 165, 0); }
}

.pay-card__meta {
    margin: 16px 0 0;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

@media (min-width: 768px) {
    .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- VIP ---------- */
.vip { background: #6e4221; }

.vip__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-image: url("./assets/11e17d72260ea60238c7dd7c73c197f7.webp");
    background-size: cover;
    background-position: 18% 60%;
    background-repeat: no-repeat;
}

.vip__inner { padding-block: 34px 60px; }

.scroll-card {
    position: relative;
    padding: 30px 20px 28px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbf1dc, var(--parchment) 60%, #efdcb2);
    box-shadow: var(--shadow-card);
}

.scroll-card::before,
.scroll-card::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    height: 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, #e9d3a6, #c9a56a 55%, #a7834c);
    box-shadow: 0 3px 6px rgba(46, 28, 15, 0.3);
}

.scroll-card::before { top: -9px; }
.scroll-card::after { bottom: -9px; }

.vip-flow { margin: 10px 0 18px; }

.vip-flow svg { width: 100%; max-width: 360px; height: auto; display: block; }

.vip-flow__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 360px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--brown);
}

.pin-ladder {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    margin: 0 0 18px;
    padding: 14px 8px 10px;
    list-style: none;
    border-radius: var(--radius);
    background: rgba(90, 50, 24, 0.1);
    border: 1px dashed var(--brown);
}

.pin-ladder__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.pin {
    position: relative;
    display: block;
    width: 20px;
    height: var(--pin-h, 30px);
    border: 2px solid var(--brown);
    border-radius: 50% 50% 42% 42% / 28% 28% 16% 16%;
    background: linear-gradient(180deg, #fff 0 26%, var(--coral-deep) 26% 32%, #fff 32% 38%, var(--coral-deep) 38% 44%, #fff 44%);
}

.pin-ladder__step--1 .pin { --pin-h: 30px; }
.pin-ladder__step--2 .pin { --pin-h: 40px; }
.pin-ladder__step--3 .pin { --pin-h: 50px; }
.pin-ladder__step--4 .pin { --pin-h: 60px; }
.pin-ladder__step--5 .pin { --pin-h: 72px; width: 24px; box-shadow: 0 0 18px 4px rgba(245, 184, 61, 0.75); }

.pin-ladder__step--5 .pin::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -16px;
    width: 22px;
    height: 13px;
    transform: translateX(-50%);
    background: var(--gold);
    clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%);
}

.pin-ladder__label {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.pin-ladder__label strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }

.vip__list { margin: 0 0 4px; }
.vip__list li { margin-bottom: 6px; font-weight: 600; }

.cta-row--left { align-items: stretch; }

@media (min-width: 480px) {
    .cta-row--left { align-items: flex-start; text-align: left; }
}

@media (min-width: 1024px) {
    .vip { position: relative; isolation: isolate; }
    .vip__media {
        position: absolute;
        inset: 0;
        z-index: -1;
        aspect-ratio: auto;
        background-position: left center;
    }
    .vip__inner { padding-block: 100px; }
    .scroll-card { max-width: 540px; margin-left: auto; padding: 38px 34px 34px; }
}

/* ---------- Mobile ---------- */
.mobile__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.mobile__copy p { color: #f3e5c8; }

.mobile__list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.mobile__list li { position: relative; padding-left: 28px; font-weight: 700; }

.mobile__captain { width: min(220px, 55%); margin-inline: auto; }
.mobile__captain img { width: 100%; height: auto; object-fit: contain; }

.phone {
    position: relative;
    width: min(250px, 78%);
    margin: -10px auto 0;
    padding: 10px;
    border-radius: 36px;
    background: #111;
    border: 2px solid #3a3a3a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #2a2a2a;
}

.phone::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 2;
    width: 76px;
    height: 18px;
    border-radius: 10px;
    background: #111;
    transform: translateX(-50%);
}

.phone__screen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 34px 12px 16px;
    border-radius: 27px;
    background: var(--parchment);
    color: var(--ink);
    text-align: center;
}

.phone__bar {
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--brown-dark);
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.phone__bar span { color: var(--cream); }

.phone__bonus {
    padding: 8px;
    border-radius: 10px;
    background: var(--ocean-deep);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.phone__spins { margin: -4px 0 0; font-size: 0.8125rem; font-weight: 800; }

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

.phone__tile {
    overflow: hidden;
    border-radius: 10px;
    background: var(--brown-dark);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 800;
}

.phone__tile img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.phone__tile span { display: block; padding: 4px; }

.phone__btn {
    padding: 9px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    border: 1px solid #8a5414;
    color: #3a1f0b;
    font-family: var(--font-display);
    font-weight: 600;
}

@media (min-width: 768px) {
    .mobile__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mobile__copy { grid-column: 1 / -1; }
    .mobile__captain { width: 100%; max-width: 260px; justify-self: end; }
    .phone { margin: 0; justify-self: start; }
}

@media (min-width: 1024px) {
    .mobile__layout { grid-template-columns: 240px 270px minmax(0, 1fr); gap: 36px; }
    .mobile__copy { grid-column: 3; grid-row: 1; }
    .mobile__captain { grid-column: 1; grid-row: 1; }
    .phone { grid-column: 2; grid-row: 1; width: 100%; }
}

/* ---------- FAQ ---------- */
.faq__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.faq__captain { width: min(220px, 58%); margin-inline: auto; }
.faq__captain img { width: 100%; height: auto; object-fit: contain; }

@media (min-width: 1024px) {
    .faq__layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: center; }
    .faq__captain { width: 100%; }
}

/* ---------- SEO ---------- */
.seo__inner { max-width: 980px; }

.seo__captain {
    width: min(210px, 60%);
    height: auto;
    margin: 0 auto 16px;
    object-fit: contain;
}

.seo-text h2 { font-size: clamp(1.5rem, 4.6vw, 2.2rem); }
.seo-text h3 { margin-top: 1.2em; color: var(--brown); }

.seo__note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--cream);
    border: 1px solid #dcc49a;
    border-left: 6px solid var(--coral-deep);
}

.seo__note p { margin: 0; font-weight: 700; font-size: 0.9375rem; }

@media (min-width: 768px) {
    .seo__captain { float: right; width: 240px; margin: 0 0 16px 24px; }
    .seo-text { max-width: none; }
}

/* =========================================================
   ODPOWIEDZIALNA GRA
   ========================================================= */
.rg-hero {
    position: relative;
    isolation: isolate;
    padding-block: 200px 40px;
    background: #2a3f66;
}

.rg-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("./assets/0837238170bbd8f686addda4e997ae9b.webp");
    background-size: cover;
    background-position: 78% 50%;
    background-repeat: no-repeat;
}

.rg-hero__copy {
    max-width: 560px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 247, 230, 0.93);
    box-shadow: var(--shadow-card);
}

.rg-hero__copy p { margin: 0; font-weight: 600; line-height: 1.7; }

@media (min-width: 768px) {
    .rg-hero { padding-block: 90px; }
    .rg-hero__bg { background-position: center; }
    .rg-hero__copy {
        padding: 30px 40px 30px 0;
        background: linear-gradient(90deg, rgba(255, 247, 230, 0.95) 70%, rgba(255, 247, 230, 0));
        box-shadow: none;
        border-radius: 0;
    }
}

.rg-hero + .rg-age { background: var(--cream); }

.rg-age__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.badge-18--xl { width: 110px; height: 110px; font-size: 2.2rem; border-width: 4px; }

@media (min-width: 768px) {
    .rg-age__inner { flex-direction: row; text-align: left; gap: 36px; }
}

.rg-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.rg-art { width: min(300px, 70%); margin-inline: auto; object-fit: contain; }

@media (min-width: 768px) {
    .rg-split { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
    .rg-split--rev { grid-template-columns: 280px minmax(0, 1fr); }
    .rg-split--rev .rg-art { order: -1; }
}

.rg-lead { font-weight: 700; max-width: 70ch; }

.rg-steps {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 40px;
    display: grid;
    gap: 12px;
    counter-reset: rgstep;
    max-width: 70ch;
}

.rg-steps::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 14px;
    bottom: 14px;
    border-left: 3px dotted var(--brown);
}

.rg-steps li {
    position: relative;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--cream);
    border: 1px solid #dcc49a;
    box-shadow: var(--shadow-soft);
    counter-increment: rgstep;
}

.rg-steps li::before {
    content: counter(rgstep);
    position: absolute;
    left: -40px;
    top: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--brown);
    font-weight: 800;
    font-size: 0.875rem;
}

.rg-warn { background: var(--sand); }

.rg-buoys { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.rg-buoys li { position: relative; padding-left: 30px; font-weight: 700; }

.rg-buoys li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.35em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--coral-deep);
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 2px var(--coral-deep);
}

.rg-back__inner { text-align: center; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .btn:hover { transform: none; }
    .faq-item::details-content { transition: none; }
    .pulse-badge { animation: none; }
    .game-card:hover { transform: none; }
}