/*
 * Smash Casino - shared design system
 * Navy ocean base · torn parchment body · dark oak · burnished gold
 */

:root {
    --navy-950: #06122a;
    --navy-900: #0a1c3c;
    --navy-800: #10295a;
    --navy-700: #173a78;
    --navy-600: #1f4c96;
    --teal-500: #2a8aa6;

    --gold-200: #fff0bf;
    --gold-300: #ffe08a;
    --gold-400: #f5c451;
    --gold-500: #e2a93b;
    --gold-600: #b98228;
    --gold-700: #7d5414;

    --orange-500: #d9692a;
    --orange-600: #b4501b;

    --parchment-100: #f8eed6;
    --parchment-200: #f1e2bf;
    --parchment-300: #e6cf9f;
    --parchment-400: #d4b47a;
    --parchment-row: #ecd7a9;
    --parchment-strip: #f6e8c8;

    --ink-900: #2e1b0c;
    --ink-700: #4a2e16;
    --ink-600: #5e3d1f;
    --link-parchment: #82350f;

    --cream: #f8ecd2;
    --cream-soft: #e9dcc0;

    --oak-950: #1e1008;
    --oak-900: #2d180b;
    --oak-800: #43240f;
    --oak-700: #5c3418;
    --oak-500: #8a5428;

    --seal-red: #8f1d1d;
    --seal-red-hi: #c43a32;

    --font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

    --container: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-bottom: 68px;

    --rope: repeating-linear-gradient(115deg, #e3bf82 0 3px, #b0803f 3px 6px, #7a5222 6px 8px);
    --wood: linear-gradient(180deg, #8a5428 0%, #5c3418 45%, #3e210d 100%);
    --gold-fill: linear-gradient(180deg, #fff0bf 0%, #f5c451 35%, #e2a93b 60%, #b98228 100%);
    --plank-shape: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
    --plank-shape-inner: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);

    --torn-top: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20120%2024%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2024V10l8-4%207%205%209-7%209%205%208-6%2011%205%208-3%2010%207%209-6%209%203%209-6%209%205%207-3%207%205v14z%27/%3E%3C/svg%3E");
    --torn-bottom: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20120%2024%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%200v14l8%204%207-5%209%207%209-5%208%206%2011-5%208%203%2010-7%209%206%209-3%209%206%209-5%207%203%207-5V0z%27/%3E%3C/svg%3E");
    --torn-left: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%20120%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M16%200H6l4%209-6%209%205%2012-6%2012%205%2013-3%2012%205%2013-6%2012%205%2012-4%2016h11z%27/%3E%3C/svg%3E");
    --torn-right: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%20120%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%200h10l-4%209%206%209-5%2012%206%2012-5%2013%203%2012-5%2013%206%2012-5%2012%204%2016H0z%27/%3E%3C/svg%3E");
}

/* ============================================
   OVERFLOW PREVENTION - Safety Net
   ============================================ */

*,
*::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, .code-block, [class*="code"] {
    max-width: 100%;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
}

.table-wrapper,
[class*="table-"] {
    max-width: 100%;
    overflow-x: auto;
}

p, li, td, th {
    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;
}

/* ============================================
   BASE & TYPOGRAPHY
   ============================================ */

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-bottom) + 16px);
    overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--cream);
    background-color: var(--navy-950);
    background-image:
        linear-gradient(rgba(6, 18, 42, 0.55), rgba(6, 18, 42, 0.72)),
        url("./assets/8a8e6dd6b8f6031dfd59c694f2d40e1f.webp");
    background-size: auto, 720px;
    background-position: center top;
}

body.menu-open {
    overflow: hidden;
}

main {
    flex: 1 0 auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1em; }

a { color: inherit; }

img { display: block; }

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--gold-300);
    outline-offset: 3px;
}

.sheet :focus-visible {
    outline-color: var(--navy-700);
}

.sheet .oak-board :focus-visible,
.sheet .treasure-card :focus-visible,
.sheet .rg-band :focus-visible,
.sheet .cta-block :focus-visible {
    outline-color: var(--gold-300);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold-400);
    color: var(--ink-900);
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--navy-900);
    background-image:
        linear-gradient(rgba(6, 18, 42, 0.25), rgba(6, 18, 42, 0.45)),
        url("./assets/f89b3157eb1c9a59359b1c6432c07654.webp");
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--gold-600);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 7px;
    background: var(--rope);
    border-radius: 999px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 64px;
    padding: 8px var(--gutter);
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    text-decoration: none;
    min-height: 44px;
}

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

.site-brand__text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--gold-400);
    text-shadow: 0 2px 0 #3a2208, 0 0 12px rgba(255, 180, 60, 0.35);
}

.site-brand__text span {
    color: var(--gold-300);
}

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

.site-nav__list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
    color: var(--gold-400);
}

.site-nav__list a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--gold-500);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Mobile drawer */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 49;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px var(--gutter) 40px;
    background: var(--navy-950);
    border-top: 2px solid var(--gold-700);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

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

.site-nav__list li + li {
    border-top: 1px solid rgba(226, 169, 59, 0.25);
}

.site-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.header-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    padding: 0;
    border: 2px solid var(--gold-600);
    border-radius: 8px;
    background: rgba(6, 18, 42, 0.6);
    color: var(--gold-400);
    cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-toggle__bars {
    position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
    .header-actions {
        display: flex;
    }
    .header-actions .header-login {
        display: none;
    }
    .site-brand__emblem {
        width: 48px;
        height: 48px;
    }
    .site-brand__text {
        font-size: 1.3rem;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        min-height: 84px;
        gap: 20px;
    }
    .site-brand {
        margin-right: 0;
    }
    .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: clamp(16px, 2.2vw, 34px);
    }
    .site-nav__list li + li {
        border-top: 0;
    }
    .site-nav__list a {
        font-size: 0.98rem;
    }
    .site-nav__actions,
    .menu-toggle {
        display: none;
    }
    .header-actions .header-login {
        display: inline-flex;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.plank-btn,
.btn-gold {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    padding: 10px 36px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.15s ease;
}

.plank-btn {
    color: var(--cream);
    text-shadow: 0 1px 0 #1e1008;
}

.plank-btn::before,
.btn-gold::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--gold-fill);
    clip-path: var(--plank-shape);
}

.plank-btn::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: -1;
    background:
        repeating-linear-gradient(176deg, rgba(255, 220, 160, 0.06) 0 2px, transparent 2px 7px),
        var(--wood);
    clip-path: var(--plank-shape-inner);
    transition: filter 0.2s ease;
}

.plank-btn:hover::after {
    filter: brightness(1.2);
}

.plank-btn:hover,
.btn-gold:hover {
    transform: translateY(-1px);
}

.plank-btn--sm {
    min-height: 44px;
    padding: 8px 28px;
    font-size: 0.9rem;
}

.plank-btn--lg {
    min-height: 58px;
    padding: 14px 48px;
    font-size: 1.15rem;
}

.btn-gold {
    color: var(--ink-900);
    padding: 10px 30px;
}

.btn-gold:hover::before {
    filter: brightness(1.08);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 20px;
    border: 2px solid var(--gold-500);
    border-radius: 8px;
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(6, 18, 42, 0.55);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
    background: var(--navy-800);
    color: var(--gold-300);
}

.rope-cta {
    display: flex;
    align-items: center;
    width: 100%;
}

.rope-cta__rope {
    flex: 1;
    min-width: 16px;
    height: 10px;
    background: var(--rope);
    border-radius: 999px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
}

.text-link {
    font-weight: 700;
    color: var(--link-parchment);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.text-link:hover {
    color: var(--ink-900);
}

.text-link--light {
    color: var(--gold-300);
}

.text-link--light:hover {
    color: var(--gold-200);
}

/* ============================================
   SHARED ORNAMENTS
   ============================================ */

.compass-ornament {
    width: clamp(84px, 12vw, 150px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
}

.gold-coin {
    display: inline-block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff3c2 0%, var(--gold-400) 40%, var(--gold-600) 78%, var(--gold-700) 100%);
    box-shadow: inset 0 0 0 4px rgba(125, 84, 20, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.wax-seal {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50% 46% 52% 48%;
    background: radial-gradient(circle at 35% 30%, var(--seal-red-hi), var(--seal-red) 60%, #5a0e0e);
    color: #f6d6c4;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 0 0 4px rgba(0, 0, 0, 0.18);
}

.badge-18 {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--cream);
    background: radial-gradient(circle, var(--navy-700), var(--navy-900));
    box-shadow: 0 0 0 4px var(--gold-500), 0 0 0 7px var(--navy-950), 0 0 0 9px var(--gold-700);
}

.badge-18--sm {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    box-shadow: 0 0 0 3px var(--gold-500);
}

.lifebuoy {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--navy-800) 0 36%, transparent 37%),
        conic-gradient(#c8302a 0 12.5%, #fff 0 25%, #c8302a 0 37.5%, #fff 0 50%, #c8302a 0 62.5%, #fff 0 75%, #c8302a 0 87.5%, #fff 0);
    box-shadow: 0 0 0 2px #fff, 0 4px 8px rgba(0, 0, 0, 0.4);
}

.crumbs ol {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--cream-soft);
}

.crumbs li + li::before {
    content: "›";
    margin-right: 6px;
    color: var(--gold-400);
}

.crumbs a {
    color: var(--gold-300);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* ============================================
   PAGE HERO
   ============================================ */

.page-hero {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    min-height: clamp(440px, 70vw, 560px);
    padding: clamp(48px, 8vw, 96px) 0 clamp(84px, 11vw, 128px);
    color: var(--cream);
    --hero-overlay: linear-gradient(180deg, rgba(6, 18, 42, 0.62) 0%, rgba(6, 18, 42, 0.86) 70%, rgba(6, 18, 42, 0.95) 100%);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--navy-900);
    background-image: var(--hero-overlay), var(--hero-bg, none);
    background-size: cover, cover;
    background-position: center, var(--hero-pos, center);
    background-repeat: no-repeat;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.page-hero__copy {
    max-width: 640px;
}

.page-hero--right .page-hero__copy {
    margin-left: auto;
}

.page-hero__title {
    font-size: clamp(2rem, 6vw, 3.4rem);
    color: var(--gold-400);
    text-shadow: 0 2px 0 #3a2208, 0 3px 0 #2a1806, 0 0 22px rgba(255, 176, 56, 0.45);
}

.page-hero__intro {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--cream);
    max-width: 58ch;
}

.page-hero .terms-chips {
    margin: 4px 0 24px;
}

.page-hero .rope-cta {
    max-width: 560px;
}

.page-hero__rope {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    z-index: 1;
    height: 10px;
    background: var(--rope);
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero .compass-ornament {
    position: absolute;
    right: clamp(10px, 4vw, 64px);
    bottom: -44px;
    z-index: 3;
}

.page-hero--compact {
    min-height: 0;
    padding: clamp(36px, 6vw, 64px) 0 clamp(72px, 9vw, 96px);
}

.page-hero--waves .page-hero__bg {
    background-image:
        url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27120%27%20height=%2760%27%20viewBox=%270%200%20120%2060%27%3E%3Cpath%20d=%27M0%2040%20Q15%2020%2030%2040%20T60%2040%20T90%2040%20T120%2040%27%20fill=%27none%27%20stroke=%27%232a8aa6%27%20stroke-opacity=%27.28%27%20stroke-width=%272%27/%3E%3Cpath%20d=%27M-60%2012%20Q-45%20-8%20-30%2012%20T0%2012%20T30%2012%20T60%2012%20T90%2012%20T120%2012%27%20fill=%27none%27%20stroke=%27%232a8aa6%27%20stroke-opacity=%27.16%27%20stroke-width=%272%27/%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--navy-800), var(--navy-950));
    background-size: 120px 60px, cover;
    background-repeat: repeat, no-repeat;
}

@media (min-width: 1024px) {
    .page-hero {
        --hero-overlay: linear-gradient(90deg, rgba(6, 18, 42, 0.94) 0%, rgba(6, 18, 42, 0.8) 36%, rgba(6, 18, 42, 0.25) 66%, rgba(6, 18, 42, 0.05) 100%);
    }
    .page-hero--right {
        --hero-overlay: linear-gradient(270deg, rgba(6, 18, 42, 0.94) 0%, rgba(6, 18, 42, 0.8) 36%, rgba(6, 18, 42, 0.25) 66%, rgba(6, 18, 42, 0.05) 100%);
    }
}

/* ============================================
   PARCHMENT SHEET + COIN TRAIL
   ============================================ */

.sheet-wrap {
    position: relative;
    z-index: 1;
    margin-top: -28px;
    padding: 0 6px clamp(40px, 6vw, 72px);
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.5));
}

.sheet {
    --sheet-pad: 26px;
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 44px var(--sheet-pad) 64px;
    color: var(--ink-700);
    background-color: var(--parchment-200);
    background-image:
        radial-gradient(ellipse at center, transparent 62%, rgba(122, 74, 24, 0.3) 100%),
        url("./assets/1f5b3574d2e22d84bfbc2e30b06e9a3f.webp");
    background-size: 100% 100%, 800px;
    background-repeat: no-repeat, repeat;
    -webkit-mask-image: var(--torn-top), var(--torn-bottom), var(--torn-left), var(--torn-right), linear-gradient(#000, #000);
    -webkit-mask-position: left top, left bottom, left top, right top, center;
    -webkit-mask-size: 240px 24px, 240px 24px, 16px 240px, 16px 240px, calc(100% - 28px) calc(100% - 44px);
    -webkit-mask-repeat: repeat-x, repeat-x, repeat-y, repeat-y, no-repeat;
    mask-image: var(--torn-top), var(--torn-bottom), var(--torn-left), var(--torn-right), linear-gradient(#000, #000);
    mask-position: left top, left bottom, left top, right top, center;
    mask-size: 240px 24px, 240px 24px, 16px 240px, 16px 240px, calc(100% - 28px) calc(100% - 44px);
    mask-repeat: repeat-x, repeat-x, repeat-y, repeat-y, no-repeat;
}

.coin-trail {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    pointer-events: none;
    overflow: visible;
}

.sheet__content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.sheet section,
.sheet .sheet-section {
    overflow: visible;
}

.sheet-section {
    padding-top: clamp(40px, 6vw, 72px);
    scroll-margin-top: calc(var(--header-bottom) + 16px);
}

.sheet-section:first-child {
    padding-top: 12px;
}

.sheet-section > h2 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink-900);
}

.sheet-section > h2::after {
    content: "";
    display: block;
    width: 96px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-600), var(--gold-500), var(--gold-600), transparent);
}

.sheet h3 {
    color: var(--ink-900);
}

.prose,
.section-lead {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    text-align: center;
    font-size: 1.1rem;
}

.sheet a:not([class]) {
    color: var(--link-parchment);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.sheet a:not([class]):hover {
    color: var(--ink-900);
}

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

@media (min-width: 1024px) {
    .split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.marker-list {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
    display: grid;
    gap: 12px;
}

.marker-list li {
    position: relative;
    padding-left: 32px;
}

.marker-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.3em;
    width: 14px;
    height: 20px;
    background: linear-gradient(180deg, var(--orange-600) 0 50%, var(--ink-700) 50% 100%);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    transform: rotate(35deg);
}

@media (min-width: 768px) {
    .sheet {
        --sheet-pad: 60px;
        padding-top: 56px;
    }
    .sheet-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (min-width: 1024px) {
    .sheet {
        --sheet-pad: 92px;
    }
    .sheet-wrap {
        padding-left: 28px;
        padding-right: 28px;
    }
}

/* ============================================
   TERMS CHIPS
   ============================================ */

.terms-chips {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.terms-chips--pills li {
    padding: 6px 14px;
    border: 1px solid var(--oak-500);
    border-radius: 999px;
    background: var(--parchment-100);
    color: var(--ink-900);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.terms-chips--line {
    gap: 4px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.terms-chips--line li + li::before {
    content: "·";
    margin: 0 8px;
    color: var(--gold-400);
}

/* ============================================
   OAK BOARD
   ============================================ */

.oak-board {
    position: relative;
    margin-block: 24px;
    padding: clamp(16px, 3vw, 30px);
    color: var(--cream);
    background-color: var(--oak-800);
    background-image:
        linear-gradient(rgba(30, 16, 8, 0.25), rgba(30, 16, 8, 0.25)),
        url("./assets/baa23ef8b9957e422f98ec9a755d1347.webp");
    background-size: cover;
    background-position: center;
    border: 4px solid var(--oak-950);
    border-radius: 10px;
    box-shadow:
        inset 0 0 0 2px rgba(226, 169, 59, 0.55),
        inset 0 0 30px rgba(0, 0, 0, 0.7),
        0 14px 26px rgba(40, 20, 5, 0.4);
}

.oak-board__corner {
    position: absolute;
    z-index: 2;
    width: clamp(40px, 6vw, 62px);
    height: clamp(40px, 6vw, 62px);
    pointer-events: none;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.oak-board__corner--tl { top: -12px; left: -12px; }
.oak-board__corner--tr { top: -12px; right: -12px; transform: scaleX(-1); }
.oak-board__corner--bl { bottom: -12px; left: -12px; transform: scaleY(-1); }
.oak-board__corner--br { bottom: -12px; right: -12px; transform: scale(-1, -1); }

.oak-board__inner {
    position: relative;
    z-index: 1;
}

.oak-board h2,
.oak-board h3 {
    color: var(--gold-400);
}

/* ============================================
   POSTER CARDS
   ============================================ */

.poster {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 14px 18px;
    text-align: center;
    color: var(--ink-700);
    background-color: var(--parchment-200);
    background-image:
        radial-gradient(ellipse at center, transparent 55%, rgba(140, 90, 40, 0.35) 100%),
        url("./assets/1f5b3574d2e22d84bfbc2e30b06e9a3f.webp");
    background-size: 100% 100%, 600px;
    border-radius: 3px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 6px 10px 16px rgba(10, 5, 0, 0.5);
}

.poster::before,
.poster::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fbe3a3, var(--gold-600) 55%, #5c3a10);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.poster::before { left: 8px; }
.poster::after { right: 8px; }

.poster__tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--orange-600);
    color: #fff8ec;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%);
}

.poster__kicker {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-600);
}

.sheet .poster__title,
.poster__title {
    margin: 0;
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink-600);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--ink-900);
}

.poster__media {
    width: 100%;
    padding: 3px;
    border: 2px solid var(--ink-700);
    background: var(--ink-900);
}

.poster__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.poster__text {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    color: var(--ink-700);
}

.poster .plank-btn {
    margin-top: 4px;
}

.poster-grid {
    display: grid;
    gap: 18px;
}

.poster-grid--scroll {
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 74%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 14px 4px 12px;
    scrollbar-color: var(--gold-600) transparent;
}

.poster-grid--scroll > * {
    scroll-snap-align: start;
}

.poster-grid--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 12px;
}

.poster-grid--grid .poster {
    padding-left: 10px;
    padding-right: 10px;
}

.poster-grid--grid .plank-btn--sm {
    padding-left: 22px;
    padding-right: 22px;
}

@media (min-width: 768px) {
    .poster-grid--scroll {
        grid-auto-columns: minmax(230px, 42%);
    }
    .poster-grid--grid {
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .poster-grid--scroll {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
    }
    .poster-grid--grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================================
   TREASURE (NAVY) CARDS
   ============================================ */

.card-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
}

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

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

@media (min-width: 1024px) {
    .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.treasure-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 26px 18px 38px;
    text-align: center;
    color: var(--cream);
    background:
        radial-gradient(circle at 50% 18%, rgba(90, 150, 240, 0.32), transparent 55%),
        linear-gradient(180deg, var(--navy-700), var(--navy-900));
    border: 3px solid var(--gold-500);
    border-radius: 14px;
    box-shadow:
        inset 0 0 0 3px var(--navy-900),
        inset 0 0 0 5px var(--gold-600),
        0 12px 22px rgba(30, 15, 3, 0.4);
}

.treasure-card--media {
    margin-top: 64px;
    padding-top: 0;
}

.treasure-card__art {
    width: min(220px, 72%);
    height: auto;
    margin-top: -64px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
}

.treasure-card__icon {
    color: var(--gold-400);
    font-size: 1.4rem;
}

.sheet .treasure-card__title,
.treasure-card__title {
    margin: 0;
    color: var(--gold-400);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.treasure-card__meta {
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--navy-950);
    border: 1px solid var(--gold-700);
    color: var(--gold-200);
    font-weight: 700;
    font-size: 0.95rem;
}

.treasure-card__text {
    flex: 1;
    margin: 0;
    color: var(--cream);
    font-size: 1rem;
}

.treasure-card a:not([class]) {
    color: var(--gold-300);
}

.treasure-card .plank-btn {
    margin-top: 6px;
}

.treasure-card__anchor {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.coin-stack {
    position: absolute;
    bottom: -10px;
    width: 52px;
    height: 38px;
    pointer-events: none;
}

.coin-stack--l { left: -10px; }
.coin-stack--r { right: -10px; transform: scaleX(-1); }

.card-grid--pairs .treasure-card {
    padding: 20px 12px 32px;
}

/* ============================================
   CALLOUTS
   ============================================ */

.callout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-block: 20px;
    padding: 18px 20px;
    color: var(--ink-700);
    background: var(--parchment-100);
    border-left: 6px solid var(--orange-600);
    border-radius: 4px 10px 10px 4px;
    box-shadow: inset 0 0 0 1px rgba(94, 61, 31, 0.25), 0 4px 10px rgba(60, 30, 5, 0.15);
}

.callout__icon {
    color: var(--orange-600);
    font-size: 1.3rem;
    line-height: 0;
    padding-top: 2px;
}

.callout__body {
    min-width: 0;
}

.callout__body > :last-child {
    margin-bottom: 0;
}

.sheet .callout__title,
.callout__title {
    margin-bottom: 6px;
    color: var(--ink-900);
    font-size: 1.15rem;
}

.callout--seal {
    border: 4px solid transparent;
    border-image: repeating-linear-gradient(45deg, #8a5a2b 0 3px, #c79a5b 3px 6px, #6b4420 6px 8px) 4;
    border-radius: 0;
    align-items: center;
}

/* ============================================
   SCROLL PANEL (rolled parchment)
   ============================================ */

.scroll-panel {
    position: relative;
    margin-block: 30px;
    padding: 44px clamp(16px, 4vw, 40px);
    color: var(--ink-700);
    background-color: var(--parchment-200);
    background-image:
        radial-gradient(ellipse at center, transparent 55%, rgba(140, 90, 40, 0.35) 100%),
        url("./assets/1f5b3574d2e22d84bfbc2e30b06e9a3f.webp");
    background-size: 100% 100%, 600px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.scroll-panel::before,
.scroll-panel::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    height: 26px;
    border-radius: 13px;
    background: linear-gradient(180deg, #9c7038 0%, #e9cf98 30%, #fff1cf 45%, #d8b679 65%, #7d5420 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.scroll-panel::before { top: -13px; }
.scroll-panel::after { bottom: -13px; }

/* ============================================
   LEDGER TABLES
   ============================================ */

.table-scroll {
    margin-block: 20px;
    border-radius: 8px;
}

.ledger {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
    color: var(--ink-900);
    background: var(--parchment-strip);
    border: 2px solid var(--ink-600);
    border-radius: 8px;
    overflow: hidden;
}

.ledger caption {
    caption-side: bottom;
    padding-top: 10px;
    font-size: 0.95rem;
    color: var(--ink-600);
    text-align: left;
}

.ledger thead th {
    padding: 12px 14px;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-400);
    background: var(--navy-900);
}

.ledger td,
.ledger tbody th {
    padding: 12px 14px;
    text-align: left;
    border-top: 1px solid rgba(94, 61, 31, 0.3);
}

.ledger tbody tr:nth-child(even) {
    background: var(--parchment-row);
}

@media (max-width: 639px) {
    .ledger--stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .ledger--stack,
    .ledger--stack tbody,
    .ledger--stack tr,
    .ledger--stack td,
    .ledger--stack tbody th {
        display: block;
        width: 100%;
    }
    .ledger--stack tr {
        padding: 8px 0;
        border-top: 1px solid rgba(94, 61, 31, 0.35);
    }
    .ledger--stack td,
    .ledger--stack tbody th {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border-top: 0;
        padding: 6px 14px;
    }
    .ledger--stack td::before,
    .ledger--stack tbody th::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--ink-600);
    }
}

/* ============================================
   MAP STEPS
   ============================================ */

.map-route {
    position: relative;
    margin-block: 24px;
    padding-bottom: 44px;
}

.map-steps {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px;
}

.map-steps::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: -30px;
    border-left: 3px dashed var(--ink-600);
}

.map-steps__item {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.map-steps__marker {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink-900);
    background: radial-gradient(circle at 35% 30%, #fff1b8, var(--gold-400) 45%, var(--gold-600) 80%, var(--gold-700));
    box-shadow: inset 0 0 0 3px rgba(125, 84, 20, 0.7), 0 3px 6px rgba(0, 0, 0, 0.35);
}

.sheet .map-steps__title,
.map-steps__title {
    margin: 10px 0 4px;
    font-size: 1.12rem;
    color: var(--ink-900);
}

.map-steps__body p {
    margin: 0;
}

.map-route__x {
    position: absolute;
    left: 10px;
    bottom: 0;
    width: 30px;
    height: 30px;
    color: var(--seal-red);
}

@media (min-width: 1024px) {
    .map-route--row {
        padding-bottom: 0;
        padding-right: 48px;
    }
    .map-route--row .map-steps {
        grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
        gap: 24px;
    }
    .map-route--row .map-steps::before {
        left: 24px;
        right: -36px;
        top: 4px;
        bottom: auto;
        height: 40px;
        border: 0;
        background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20400%2040%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2020%20C50%200%2075%200%20100%2020%20S150%2040%20200%2020%20S250%200%20300%2020%20S350%2040%20400%2020%27%20fill=%27none%27%20stroke=%27%235e3d1f%27%20stroke-width=%273%27%20stroke-dasharray=%278%207%27%20vector-effect=%27non-scaling-stroke%27/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    }
    .map-route--row .map-steps__item {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }
    .map-route--row .map-route__x {
        left: auto;
        right: 0;
        top: 9px;
        bottom: auto;
    }
}

/* ============================================
   FAQ (details/summary)
   ============================================ */

.faq-list {
    display: grid;
    gap: 12px;
    align-items: start;
}

.faq-item {
    position: relative;
    color: var(--ink-700);
    background: var(--parchment-strip);
    border: 1px solid rgba(94, 61, 31, 0.4);
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(30, 15, 3, 0.28);
}

.faq-item > summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 12px 18px 12px 36px;
    list-style: none;
    cursor: pointer;
    border-radius: 6px;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fbe3a3, var(--gold-600) 55%, #5c3a10);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.faq-item > summary::after {
    content: "";
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    margin-top: -4px;
    border-right: 3px solid var(--gold-700);
    border-bottom: 3px solid var(--gold-700);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-item[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.faq-item > summary:focus-visible {
    outline: 3px solid var(--navy-700);
    outline-offset: 2px;
}

.sheet .faq-q,
.faq-q {
    flex: 1;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--ink-900);
}

.faq-a {
    padding: 4px 20px 18px 36px;
    border-top: 1px dashed rgba(94, 61, 31, 0.35);
    background: var(--parchment-100);
    border-radius: 0 0 6px 6px;
}

.faq-a > :first-child { margin-top: 12px; }
.faq-a > :last-child { margin-bottom: 0; }

/* ============================================
   RESPONSIBLE GAMBLING BAND
   ============================================ */

.rg-band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px 22px;
    align-items: start;
    margin-block: 24px;
    padding: clamp(20px, 4vw, 32px);
    color: var(--cream);
    background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
    border: 2px solid var(--gold-600);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(30, 15, 3, 0.35);
}

.rg-band--calm {
    background: var(--navy-900);
    border-color: #2f4a7a;
}

.sheet .rg-band__title,
.rg-band__title {
    margin-bottom: 8px;
    color: var(--gold-400);
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    text-align: left;
    text-transform: none;
}

.rg-band--calm .rg-band__title {
    color: var(--cream);
}

.rg-band p {
    color: var(--cream);
}

.rg-band a:not([class]) {
    color: var(--gold-300);
    text-decoration: underline;
}

.helpline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    min-height: 44px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: #fff6e0;
    text-decoration: none;
}

.helpline__label {
    font-size: 0.6em;
    color: var(--gold-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.helpline:hover {
    color: var(--gold-200);
}

@media (max-width: 479px) {
    .rg-band .badge-18 {
        width: 50px;
        height: 50px;
        font-size: 1.05rem;
    }
    .rg-band .lifebuoy {
        width: 46px;
        height: 46px;
    }
}

/* ============================================
   CTA BLOCK
   ============================================ */

.cta-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: clamp(48px, 7vw, 80px);
    padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 48px);
    text-align: center;
    color: var(--cream);
    background-color: var(--navy-900);
    background-image:
        linear-gradient(rgba(6, 18, 42, 0.55), rgba(6, 18, 42, 0.75)),
        url("./assets/f89b3157eb1c9a59359b1c6432c07654.webp");
    background-size: cover;
    background-position: center;
    border: 3px solid var(--gold-500);
    border-radius: 14px;
    box-shadow:
        inset 0 0 0 3px var(--navy-950),
        inset 0 0 0 5px var(--gold-700),
        0 14px 30px rgba(20, 10, 2, 0.45);
}

.cta-block__emblem {
    width: 88px;
    height: 88px;
    margin-bottom: 10px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.sheet .cta-block__title,
.cta-block__title {
    color: var(--gold-400);
    text-transform: uppercase;
    text-shadow: 0 2px 0 #2a1806;
}

.cta-block__text {
    max-width: 60ch;
    color: var(--cream);
}

.cta-block__note {
    margin: 18px 0 0;
    font-size: 0.95rem;
    color: var(--cream-soft);
}

.cta-block a:not([class]) {
    color: var(--gold-300);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 60px 0 24px;
    color: var(--cream-soft);
    background-color: var(--oak-900);
    background-image:
        linear-gradient(rgba(20, 10, 4, 0.55), rgba(20, 10, 4, 0.78)),
        url("./assets/baa23ef8b9957e422f98ec9a755d1347.webp");
    background-size: cover;
    background-position: center;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12px;
    background: var(--rope);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr);
}

.footer-col p {
    font-size: 1rem;
}

.footer-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-400);
}

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

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--cream);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-300);
    text-decoration: underline;
}

.site-footer .footer-col a:not([class]) {
    color: var(--gold-300);
}

.footer-rg {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-rg .badge-18 {
    margin-top: 4px;
}

.site-footer__bottom {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 32px auto 0;
    padding: 18px var(--gutter) 0;
    border-top: 1px solid rgba(226, 169, 59, 0.35);
    text-align: center;
}

.site-footer__bottom p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--cream-soft);
}

.footer-anchor {
    display: none;
    position: absolute;
    bottom: 18px;
    width: 72px;
    height: 72px;
    color: #9aa6b8;
    pointer-events: none;
}

.footer-anchor--l { left: 18px; transform: rotate(-18deg); }
.footer-anchor--r { right: 18px; transform: rotate(18deg); }

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

@media (min-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: 1.1fr 1fr 1.2fr 1.3fr;
        gap: 40px;
        padding-left: 96px;
        padding-right: 96px;
        max-width: 1320px;
    }
    .footer-links {
        grid-template-columns: minmax(0, 1fr);
    }
    .footer-links a {
        min-height: 36px;
    }
    .footer-anchor {
        display: block;
    }
}

/* ============================================
   HOMEPAGE - HERO
   ============================================ */

.home-hero {
    position: relative;
    z-index: 2;
    overflow-x: clip;
    overflow-y: visible;
    padding-top: 24px;
    color: var(--cream);
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--navy-900);
    background-image: url("./assets/6b9ba98b5d8fc59dc68f8e5896471747.webp");
    background-size: cover;
    background-position: 32% center;
    background-repeat: no-repeat;
}

.home-hero__captain {
    position: absolute;
    top: 12px;
    right: 0;
    z-index: 1;
    width: min(58vw, 280px);
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(6, 18, 42, 0.58) 0%, rgba(6, 18, 42, 0.8) 40%, rgba(6, 18, 42, 0.9) 100%);
    pointer-events: none;
}

.home-hero__inner {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
}

.home-hero__copy {
    max-width: 640px;
    padding-top: clamp(16px, 5vw, 40px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.home-hero__title {
    margin-bottom: 14px;
    font-size: clamp(2rem, 6.4vw, 3.5rem);
    font-weight: 800;
    color: var(--gold-400);
    -webkit-text-stroke: 1px #3a2208;
    paint-order: stroke fill;
    text-shadow: 0 2px 0 #3a2208, 0 4px 0 #2a1806, 0 0 24px rgba(255, 176, 56, 0.5);
}

.home-hero .terms-chips--line {
    color: var(--gold-200);
    margin-bottom: 14px;
}

.home-hero__intro {
    max-width: 60ch;
    margin: 0 0 10px;
    font-size: clamp(1.05rem, 1.6vw, 1.15rem);
    color: var(--cream);
}

.home-hero__meta {
    margin: 0;
    font-size: 0.98rem;
    color: var(--cream-soft);
}

.home-hero__cta {
    position: relative;
    z-index: 3;
    margin-top: 30px;
    padding-bottom: 38px;
}

.home-hero__compass {
    position: absolute;
    right: clamp(8px, 3vw, 48px);
    bottom: -34px;
    z-index: 4;
    width: clamp(72px, 11vw, 150px);
}

.home-hero__coin {
    position: absolute;
    z-index: 4;
    right: calc(clamp(8px, 3vw, 48px) + clamp(58px, 9vw, 128px));
    bottom: -22px;
    width: clamp(34px, 4vw, 52px);
    height: clamp(34px, 4vw, 52px);
}

/* Bonus scroll */
.bonus-scroll {
    position: relative;
    margin: 12px 8px;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
}

.bonus-scroll::before,
.bonus-scroll::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: -8px;
    right: -8px;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(180deg, #9c7038 0%, #e9cf98 30%, #fff1cf 45%, #d8b679 65%, #7d5420 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.bonus-scroll::before { top: -11px; }
.bonus-scroll::after { bottom: -11px; }

.bonus-scroll__paper {
    position: relative;
    padding: 34px clamp(22px, 4vw, 40px) 30px;
    color: var(--ink-700);
    text-shadow: none;
    background-color: var(--parchment-200);
    background-image:
        radial-gradient(ellipse at center, transparent 55%, rgba(140, 90, 40, 0.35) 100%),
        url("./assets/1f5b3574d2e22d84bfbc2e30b06e9a3f.webp");
    background-size: 100% 100%, 600px;
    -webkit-mask-image: var(--torn-left), var(--torn-right), linear-gradient(#000, #000);
    -webkit-mask-position: left top, right top, center;
    -webkit-mask-size: 16px 240px, 16px 240px, calc(100% - 28px) 100%;
    -webkit-mask-repeat: repeat-y, repeat-y, no-repeat;
    mask-image: var(--torn-left), var(--torn-right), linear-gradient(#000, #000);
    mask-position: left top, right top, center;
    mask-size: 16px 240px, 16px 240px, calc(100% - 28px) 100%;
    mask-repeat: repeat-y, repeat-y, no-repeat;
}

.bonus-scroll__rose {
    position: absolute;
    top: 14px;
    right: 22px;
    width: 52px;
    height: 52px;
    color: #c4a26b;
    pointer-events: none;
}

.bonus-scroll__title {
    margin: 0 44px 18px;
    text-align: center;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink-900);
}

.chest-route {
    position: relative;
}

.chest-route__path {
    display: none;
}

.chest-steps {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.chest-steps::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 24px;
    bottom: 60px;
    border-left: 3px dashed var(--ink-600);
}

.chest-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.chest-step__img {
    width: 56px;
    height: auto;
    object-fit: contain;
}

.chest-step__text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
    line-height: 1.25;
}

.chest-step__no {
    flex-basis: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-600);
}

.chest-step__pct {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ink-900);
}

.chest-step__cap {
    font-weight: 700;
    color: var(--ink-700);
}

.chest-step--final {
    grid-template-columns: 96px minmax(0, 1fr);
}

.chest-step--final .chest-step__img {
    width: 96px;
}

.chest-step__total {
    flex-basis: 100%;
    margin-top: 4px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    line-height: 1.05;
    color: var(--ink-900);
}

.chest-step__total small {
    display: block;
    font-size: 0.42em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink-700);
}

.bonus-scroll__foot {
    margin: 16px 0 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--ink-900);
}

@media (min-width: 768px) {
    .home-hero__captain {
        width: 300px;
    }
    .chest-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
        gap: 8px;
        align-items: start;
    }
    .chest-steps::before {
        display: none;
    }
    .chest-route__path {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    .chest-step {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
        gap: 4px;
    }
    .chest-step:nth-child(even) {
        margin-top: 70px;
    }
    .chest-step__img {
        width: 64px;
    }
    .chest-step__text {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .chest-step--final {
        grid-template-columns: minmax(0, 1fr);
    }
    .chest-step--final .chest-step__img {
        width: 130px;
    }
}

@media (min-width: 1024px) {
    .home-hero {
        padding-top: 36px;
    }
    .home-hero__captain {
        top: auto;
        right: auto;
        left: 0;
        bottom: 0;
        z-index: 2;
        width: 35%;
        max-width: 540px;
    }
    .home-hero__shade {
        z-index: 1;
        background: linear-gradient(180deg, rgba(6, 18, 42, 0) 0%, rgba(6, 18, 42, 0) 46%, rgba(6, 18, 42, 0.72) 80%, rgba(6, 18, 42, 0.86) 100%);
    }
    .home-hero__inner {
        grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
        grid-template-areas:
            ". scroll"
            ". copy";
        gap: 30px 24px;
    }
    .bonus-scroll {
        grid-area: scroll;
    }
    .home-hero__copy {
        grid-area: copy;
        max-width: none;
        padding-top: 0;
        text-align: center;
    }
    .home-hero .terms-chips--line {
        justify-content: center;
    }
    .home-hero__intro {
        margin-left: auto;
        margin-right: auto;
    }
    .home-hero__cta {
        margin-top: 22px;
    }
    .home-hero__compass {
        bottom: -60px;
    }
    .home-hero__coin {
        bottom: -34px;
    }
}

/* ============================================
   HOMEPAGE - SHEET SECTIONS
   ============================================ */

.section-more {
    max-width: 72ch;
    margin: 30px auto 0;
    text-align: center;
}

.section-note {
    max-width: 72ch;
    margin: 18px auto 0;
    text-align: center;
    font-size: 1rem;
    color: var(--ink-600);
}

/* Live casino teaser */
.live-teaser {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
    background: var(--navy-950);
    border: 3px solid var(--gold-500);
    border-radius: 6px;
    box-shadow: inset 0 0 0 2px var(--gold-700), 0 14px 26px rgba(40, 20, 5, 0.4);
}

.live-teaser__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 3px solid var(--gold-600);
}

.live-teaser__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.live-teaser__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: clamp(24px, 4vw, 44px);
    color: var(--cream);
    background:
        radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(2, 8, 22, 0.7) 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(0, 0, 0, 0.2) 18px, rgba(255, 255, 255, 0.07) 34px, rgba(0, 0, 0, 0.22) 52px),
        linear-gradient(180deg, var(--navy-700), var(--navy-900));
}

.sheet .live-teaser__panel h3 {
    color: var(--gold-400);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.live-teaser__panel p {
    color: var(--cream);
}

.live-teaser__more {
    margin: 14px 0 0;
}

.sheet .live-teaser__panel a:not([class]) {
    color: var(--gold-300);
}

.sheet .live-teaser__panel a:not([class]):hover {
    color: var(--gold-200);
}

.sheet .live-teaser__panel :focus-visible {
    outline-color: var(--gold-300);
}

@media (min-width: 768px) {
    .live-teaser {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .live-teaser__media {
        aspect-ratio: auto;
        min-height: 340px;
        border-bottom: 0;
        border-right: 3px solid var(--gold-600);
    }
}

/* Payment island strip */
.pay-island {
    position: relative;
    margin-top: 24px;
    padding: clamp(56px, 9vw, 110px) 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--navy-800);
    background-image: url("./assets/55f2bab0cfbcb4a6dabcc97521726c7c.webp");
    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 2px rgba(94, 61, 31, 0.5), 0 12px 24px rgba(40, 20, 5, 0.35);
}

.pay-ribbon {
    position: relative;
    margin: 0 clamp(44px, 7vw, 84px);
    padding: 14px clamp(10px, 2.5vw, 26px);
    background-color: var(--parchment-200);
    background-image:
        linear-gradient(180deg, rgba(255, 245, 220, 0.5), rgba(160, 110, 50, 0.2)),
        url("./assets/1f5b3574d2e22d84bfbc2e30b06e9a3f.webp");
    background-size: 100% 100%, 500px;
    border-block: 2px solid #a87a3f;
    box-shadow: 0 6px 12px rgba(20, 10, 2, 0.45);
}

.pay-ribbon__end {
    position: absolute;
    top: 12px;
    width: clamp(36px, 6vw, 64px);
    height: 100%;
    max-width: none;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
}

.pay-ribbon__end--l { right: 100%; }
.pay-ribbon__end--r { left: 100%; transform: scaleX(-1); }

.pay-ribbon__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 20px;
}

.pay-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    color: var(--ink-900);
}

.pay-mark--visa {
    font-style: italic;
    font-size: 1.2rem;
}

.pay-coin {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    font-style: normal;
    color: var(--ink-900);
    background: radial-gradient(circle at 35% 30%, #fff3c2, var(--gold-400) 45%, var(--gold-600) 88%);
    box-shadow: inset 0 0 0 2px rgba(125, 84, 20, 0.7), 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* Licence note */
.home-licence .callout {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BONUSSER
   ============================================ */

.note-section .callout {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.terms-grid .treasure-card__icon .icon {
    width: 40px;
    height: 40px;
}

/* Welcome table on rolled parchment */
.welcome-panel {
    padding: 44px clamp(12px, 3vw, 32px);
}

.welcome-table tbody th {
    position: relative;
    font-family: var(--font-display);
    font-weight: 800;
    white-space: nowrap;
}

.welcome-table td strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.step-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-medal {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.welcome-x {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--seal-red);
}

.welcome-table tbody tr:not(:last-child) th::after {
    content: "";
    position: absolute;
    left: 31px;
    top: calc(50% + 18px);
    height: calc(100% - 36px);
    border-left: 3px dashed var(--ink-600);
}

@media (max-width: 767px) {
    .welcome-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .welcome-table,
    .welcome-table tbody,
    .welcome-table tr,
    .welcome-table td,
    .welcome-table tbody th {
        display: block;
        width: 100%;
    }
    .welcome-table tbody tr {
        position: relative;
        padding: 14px 14px 14px 64px;
    }
    .welcome-table tbody th {
        position: static;
        padding: 0 0 6px;
        border: 0;
    }
    .welcome-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
        border: 0;
    }
    .welcome-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--ink-600);
    }
    .welcome-table .coin-medal {
        position: absolute;
        left: 14px;
        top: 14px;
    }
    .welcome-table tbody tr:not(:last-child) th::after {
        display: none;
    }
    .welcome-table tbody tr:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 31px;
        top: 50px;
        height: calc(100% - 36px);
        border-left: 3px dashed var(--ink-600);
    }
}

/* Weekly reload on oak */
.oak-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--cream);
}

.oak-table caption {
    caption-side: bottom;
    padding-top: 12px;
    text-align: left;
    font-size: 0.95rem;
    color: var(--cream-soft);
}

.oak-table th,
.oak-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(226, 169, 59, 0.35);
}

.oak-table thead th {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-200);
}

.oak-table tbody th {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--gold-400);
}

.oak-table tbody tr:last-child > * {
    border-bottom: 0;
}

/* VIP ladder */
.ladder {
    margin: 0;
    text-align: center;
}

.ladder svg {
    width: min(220px, 70%);
    margin: 0 auto;
}

.ladder figcaption {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--ink-600);
}

/* ============================================
   SPIL
   ============================================ */

.tag-chips {
    list-style: none;
    margin: 4px 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 16px 6px 30px;
    border: 1px solid var(--oak-500);
    border-radius: 4px;
    background: var(--parchment-100);
    color: var(--ink-900);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.tag-chip::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fbe3a3, var(--gold-600) 55%, #5c3a10);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tag-chip:hover {
    background: var(--gold-200);
}

.tag-chip:focus-visible {
    outline-color: var(--gold-300);
}

.media-frame {
    margin: 0;
    border: 3px solid var(--gold-600);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(40, 20, 5, 0.35);
}

.media-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
}

.provider-chips {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.provider-chips li {
    padding: 8px 18px;
    border: 1px solid var(--ink-600);
    border-radius: 4px;
    background: var(--parchment-strip);
    color: var(--ink-900);
    font-family: var(--font-display);
    font-weight: 700;
}

.phone-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 28px auto 0;
    align-items: center;
}

.phone-route__art {
    display: grid;
    justify-items: center;
}

.phone-route__phone {
    width: 84px;
    height: auto;
}

.phone-route__paths {
    display: none;
}

@media (min-width: 768px) {
    .phone-route {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 0;
    }
    .phone-route__art {
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: center;
        align-self: stretch;
        justify-items: stretch;
    }
    .phone-route__phone {
        width: 110px;
    }
    .phone-route__paths {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 260px;
        max-width: none;
    }
}

/* ============================================
   OM OS
   ============================================ */

.about-story {
    position: relative;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    margin-top: 24px;
}

.about-story__copy {
    position: relative;
    z-index: 1;
}

.about-story__path {
    display: none;
}

.about-story__art {
    position: relative;
    margin: 0;
    display: grid;
    justify-items: center;
}

.about-story__art::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2%;
    z-index: 0;
    width: 62%;
    height: 26px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(46, 27, 12, 0.45), transparent 70%);
    pointer-events: none;
}

.about-story__art img {
    position: relative;
    z-index: 1;
    width: min(340px, 78%);
    height: auto;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .about-story {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 48px;
    }
    .about-story__path {
        display: block;
        position: absolute;
        left: 50%;
        top: 8%;
        z-index: 0;
        width: 22%;
        height: 80%;
        max-width: none;
        opacity: 1;
        pointer-events: none;
    }
    .about-story__art img {
        width: min(400px, 100%);
    }
}

/* Licence certificate */
.cert {
    position: relative;
    max-width: 760px;
    margin: 28px auto 24px;
    padding: 28px clamp(14px, 3vw, 32px) 18px;
    color: var(--ink-900);
    background-color: var(--parchment-100);
    border: 3px double var(--ink-600);
    outline: 2px solid var(--ink-700);
    outline-offset: -10px;
    box-shadow: 0 8px 18px rgba(40, 20, 5, 0.3);
}

.cert__seal {
    position: absolute;
    top: -22px;
    right: -10px;
    width: 64px;
    height: 64px;
    z-index: 2;
}

.cert__seal .icon {
    width: 30px;
    height: 30px;
}

.cert .table-scroll {
    margin-top: 8px;
}

.cert__updated {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--ink-600);
}

/* Caveats */
.caveats {
    max-width: 880px;
    margin: 24px auto 0;
    padding: 22px clamp(16px, 3vw, 30px);
    background: var(--parchment-strip);
    border: 4px solid transparent;
    border-image: repeating-linear-gradient(45deg, #8a5a2b 0 3px, #c79a5b 3px 6px, #6b4420 6px 8px) 4;
    box-shadow: 0 6px 14px rgba(60, 30, 5, 0.18);
}

.caveat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.caveat-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.caveat-list .needle {
    width: 26px;
    height: 26px;
    margin-top: 2px;
    transform: rotate(35deg);
}

/* Security split media */
.split__copy > :last-child {
    margin-bottom: 0;
}

.split .media-frame img {
    object-position: center;
}

/* ============================================
   BETALINGER
   ============================================ */

.method-grid {
    list-style: none;
    margin: 12px 0 22px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.method-grid:last-child {
    margin-bottom: 0;
}

.method-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 92px;
    padding: 14px 8px;
    text-align: center;
    color: var(--ink-900);
    background-color: var(--parchment-200);
    background-image: radial-gradient(ellipse at center, transparent 55%, rgba(140, 90, 40, 0.3) 100%);
    border: 1px solid var(--oak-500);
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.method-tile__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.15;
}

.method-tile__type {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-600);
}

.method-tile--crypto .pay-coin {
    width: 34px;
    height: 34px;
    margin-bottom: 2px;
}

.crypto-art {
    display: grid;
    place-items: center;
}

.crypto-art img {
    width: min(420px, 100%);
    height: auto;
    object-fit: contain;
    background: none;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
    .method-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .method-grid--crypto {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .method-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================================
   FAQ
   ============================================ */

.faq-hero {
    position: relative;
    z-index: 2;
    overflow-x: clip;
    overflow-y: visible;
    padding: 28px 0 290px;
    color: var(--cream);
}

.faq-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--navy-900);
    background-image: url("./assets/5bfaad522f9f8035a8688fabe8f6b7c9.webp");
    background-size: cover;
    background-position: 16% center;
    background-repeat: no-repeat;
}

.faq-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(6, 18, 42, 0.3) 0%, rgba(6, 18, 42, 0.5) 100%);
    pointer-events: none;
}

.faq-hero__glow {
    position: absolute;
    left: 0;
    bottom: 120px;
    z-index: 2;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 90, 0.5) 0%, rgba(255, 176, 56, 0.18) 45%, transparent 70%);
    pointer-events: none;
}

.faq-hero__captain {
    position: absolute;
    left: -2%;
    bottom: -70px;
    z-index: 4;
    width: min(52vw, 270px);
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.faq-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.faq-scroll {
    position: relative;
    width: 100%;
    max-width: 660px;
    margin: 16px 0 16px auto;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
}

.faq-scroll__roll {
    position: absolute;
    left: -8px;
    z-index: 2;
    width: calc(100% + 16px);
    max-width: none;
    height: 28px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.faq-scroll__roll--top { top: -14px; }
.faq-scroll__roll--bottom { bottom: -14px; }

.faq-scroll__paper {
    position: relative;
    padding: 34px clamp(20px, 4vw, 44px) 30px;
    color: var(--ink-700);
    background-color: var(--parchment-200);
    background-image:
        repeating-linear-gradient(93deg, rgba(122, 74, 24, 0.05) 0 1px, transparent 1px 5px),
        radial-gradient(ellipse at center, transparent 55%, rgba(140, 90, 40, 0.35) 100%),
        url("./assets/1f5b3574d2e22d84bfbc2e30b06e9a3f.webp");
    background-size: auto, 100% 100%, 600px;
}

.faq-scroll .crumbs ol {
    margin-bottom: 10px;
    color: var(--ink-600);
}

.faq-scroll .crumbs li + li::before {
    color: var(--orange-600);
}

.faq-scroll .crumbs a {
    color: var(--link-parchment);
    font-weight: 600;
}

.faq-scroll__title {
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 5vw, 2.6rem);
    color: var(--ink-900);
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6);
}

.faq-scroll .terms-chips--line {
    margin-bottom: 14px;
    color: var(--ink-700);
}

.faq-scroll .terms-chips--line li + li::before {
    color: var(--orange-600);
}

.faq-scroll__intro {
    margin-bottom: 18px;
    color: var(--ink-700);
}

.faq-scroll__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
}

.faq-hero__rope {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    z-index: 3;
    height: 10px;
    background: var(--rope);
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.faq-hero__coil {
    position: absolute;
    right: -4px;
    bottom: 20px;
    z-index: 3;
    width: 64px;
    height: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.faq-hero__rose {
    position: absolute;
    right: clamp(8px, 3vw, 48px);
    bottom: -48px;
    z-index: 5;
    width: clamp(84px, 11vw, 150px);
    height: auto;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
}

@media (min-width: 1024px) {
    .faq-hero {
        display: flex;
        align-items: center;
        min-height: 600px;
        padding: 48px 0 130px;
    }
    .faq-hero__captain {
        left: 3%;
        bottom: -84px;
        width: 33%;
        max-width: 450px;
    }
    .faq-hero__glow {
        left: 8%;
        bottom: 190px;
        width: 380px;
        height: 380px;
    }
    .faq-scroll {
        width: 52%;
        max-width: none;
    }
}

/* Quick answers + jump tags */
.quick-grid {
    margin-top: 30px;
    align-items: stretch;
}

.jump-tags {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.jump-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 20px;
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    background:
        repeating-linear-gradient(176deg, rgba(255, 220, 160, 0.06) 0 2px, transparent 2px 7px),
        var(--wood);
    border: 1px solid var(--oak-950);
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(226, 169, 59, 0.5), 0 3px 5px rgba(0, 0, 0, 0.35);
}

.jump-tag::before,
.jump-tag::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.jump-tag::before { left: 7px; }
.jump-tag::after { right: 7px; }

.jump-tag:hover {
    color: var(--gold-300);
    text-decoration: underline;
    text-decoration-color: var(--gold-400);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.sheet .jump-tag:focus-visible {
    outline-color: var(--gold-300);
}

/* Q&A boards */
.faq-board {
    margin-top: 28px;
}

.faq-board__panel {
    padding: clamp(12px, 2.5vw, 24px);
    color: var(--ink-700);
    background-color: var(--parchment-200);
    background-image:
        radial-gradient(ellipse at center, transparent 55%, rgba(140, 90, 40, 0.3) 100%),
        url("./assets/1f5b3574d2e22d84bfbc2e30b06e9a3f.webp");
    background-size: 100% 100%, 600px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(94, 61, 31, 0.4), inset 0 0 24px rgba(140, 90, 40, 0.3);
}

.sheet .oak-board .faq-board__panel :focus-visible {
    outline-color: var(--navy-700);
}

.faq-a p {
    margin: 0 0 0.8em;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

.faq-group .section-lead a:not([class]) {
    font-weight: 700;
}

/* Calm responsible-gambling board */
.faq-board--calm .faq-board__panel {
    color: var(--cream);
    background: var(--navy-900);
    box-shadow: inset 0 0 0 1px rgba(226, 169, 59, 0.35);
}

.faq-board--calm .faq-item {
    color: var(--cream);
    background: var(--navy-800);
    border-color: rgba(226, 169, 59, 0.4);
}

.sheet .faq-board--calm .faq-q {
    color: var(--cream);
}

.faq-board--calm .faq-item > summary::after {
    border-color: var(--gold-400);
}

.faq-board--calm .faq-a {
    color: var(--cream);
    background: var(--navy-950);
    border-top-color: rgba(226, 169, 59, 0.3);
}

.sheet .faq-board--calm a:not([class]) {
    color: var(--gold-300);
}

.sheet .oak-board.faq-board--calm .faq-board__panel :focus-visible {
    outline-color: var(--gold-300);
}

.faq-head--rg > h2::before {
    content: "";
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    margin-right: 0.45em;
    vertical-align: -0.08em;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--parchment-200) 0 36%, transparent 37%),
        conic-gradient(#c8302a 0 12.5%, #fff 0 25%, #c8302a 0 37.5%, #fff 0 50%, #c8302a 0 62.5%, #fff 0 75%, #c8302a 0 87.5%, #fff 0);
    box-shadow: 0 0 0 1px #fff, 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Tier ledger */
.tier-ledger tbody th {
    position: relative;
}

.tier-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-step .icon {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    color: var(--orange-600);
}

.tier-ledger tbody tr:not(:last-child) th::after {
    content: "";
    position: absolute;
    left: 25px;
    top: calc(50% + 14px);
    height: calc(100% - 28px);
    border-left: 2px dashed var(--ink-600);
}

.tier-ledger tbody tr:last-child {
    background: linear-gradient(90deg, var(--gold-200), var(--gold-300));
    box-shadow: inset 0 0 0 2px var(--gold-500), 0 0 18px rgba(245, 196, 81, 0.7);
}

@media (max-width: 639px) {
    .tier-ledger tbody tr:not(:last-child) th::after {
        display: none;
    }
}

/* Wagering aside */
.wager-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 22px 0;
}

.wager-note__art {
    width: min(220px, 60%);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background: none;
    filter: drop-shadow(0 10px 8px rgba(46, 27, 12, 0.35));
}

.wager-note .callout {
    margin-block: 0;
}

@media (min-width: 768px) {
    .wager-note {
        grid-template-columns: 240px minmax(0, 1fr);
    }
    .wager-note__art {
        width: 100%;
        margin: -18px 0 -18px -14px;
    }
}

/* Caution ribbon + route label */
.caution-ribbon {
    display: block;
    width: min(260px, 100%);
    height: auto;
    margin: 0 0 14px;
}

.faq-route-label {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink-900);
}

/* ============================================
   REDUCED MOTION
   ============================================ */

/* ============================================
   SITEMAP
   ============================================ */

.sitemap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 28px;
    align-items: start;
}

.sitemap-map {
    order: -1;
    margin: 0 auto;
    width: min(220px, 60%);
}

.sitemap-map img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: none;
    filter: drop-shadow(0 10px 8px rgba(46, 27, 12, 0.3));
}

.sitemap-groups {
    position: relative;
    padding: 4px 0 44px 46px;
}

.sitemap-trail {
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 40px;
    z-index: 0;
    width: 24px;
    height: auto;
    max-width: none;
    pointer-events: none;
}

.sitemap-chest {
    position: absolute;
    left: -2px;
    bottom: 4px;
    z-index: 1;
    width: 30px;
    height: 30px;
    color: var(--gold-700);
}

.sitemap-group + .sitemap-group {
    margin-top: 26px;
}

.sheet .sitemap-plaque {
    position: relative;
    display: inline-block;
    margin: 0 0 6px;
    padding: 9px 30px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--cream);
    text-shadow: 0 1px 0 #1e1008;
    background:
        repeating-linear-gradient(176deg, rgba(255, 220, 160, 0.06) 0 2px, transparent 2px 7px),
        linear-gradient(180deg, #6b4220 0%, #4a2a12 55%, #321b0a 100%);
    border: 1px solid var(--oak-950);
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(226, 169, 59, 0.45), 0 3px 6px rgba(30, 15, 3, 0.4);
}

.sitemap-plaque::before,
.sitemap-plaque::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fbe3a3, var(--gold-600) 60%, #5c3a10);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.sitemap-plaque::before { left: 10px; }
.sitemap-plaque::after { right: 10px; }

.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-list li {
    position: relative;
    padding: 16px 0;
}

.sitemap-list li + li {
    border-top: 1px dashed rgba(94, 61, 31, 0.5);
}

.sitemap-coin {
    position: absolute;
    left: -45px;
    top: 17px;
    z-index: 1;
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.sitemap-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink-900);
    text-decoration: none;
}

.sitemap-link:hover {
    color: var(--link-parchment);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.sitemap-desc {
    margin: 0;
    color: var(--ink-600);
}

@media (min-width: 768px) {
    .sitemap-layout {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: 40px;
    }
    .sitemap-map {
        order: 0;
        width: 100%;
        align-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}