/* Olympus palette: readable light text, amethyst surfaces, gold game accents. */
:root {
    --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
    --font-display: 'Montserrat', 'Manrope', Arial, sans-serif;
    --paper: #140b29;
    --paper-2: #1b1033;
    --surface: #251442;
    --surface-soft: #301957;
    --surface-strong: #442371;
    --ink: #fffaff;
    --muted: #d2c4e2;
    --line: #b485ea45;
    --line-strong: #c69cff80;
    --gold: #ffd56f;
    --gold-2: #f0b642;
    --cyan: #8beaff;
    --header-clearance: 96px;
}

body {
    min-width: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.8;
}

h1, h2, h3 {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: -.025em;
}

h2, .journal-intro h1 {
    color: var(--ink);
}

a {
    color: #dec6ff;
}
a:hover {
    color: #ffffff;
}
::selection {
    background: #8044c5;
    color: #fff;
}

/* Navigation and actions. */
.site-header {
    background: #140b29f2;
    border-color: var(--line);
}
.site-header::before {
    content: none;
}
.header-inner {
    min-height: 72px;
}
.site-logo {
    width: 132px;
    height: 58px;
}
.primary-nav a {
    opacity: 1;
    color: #e1d2f2;
    font-size: .875rem;
    font-weight: 600;
}
.primary-nav a:hover {
    color: var(--ink);
}
.header-actions .button {
    font-size: .8125rem;
}
.button {
    min-height: 48px;
    border-radius: 10px;
    border-color: #f7d981;
    background: #ffda71 linear-gradient(180deg, #fff0ba 0%, #ffda71 42%, #ecaa32 100%);
    color: #2c1905;
    font-weight: 800;
    box-shadow: inset 0 1px 0 #fff6ce, 0 8px 24px #d8992728;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.button:hover {
    background: #ffda71 linear-gradient(180deg, #fff0ba 0%, #ffda71 42%, #ecaa32 100%);
    filter: brightness(1.045);
    color: #2c1905;
    box-shadow: 0 6px 22px #dfaf3526;
}
.button-secondary, .button.secondary, .button.outline,
.demo-real-button, .menu-button, .text-button, .dialog-close {
    background: #45206e;
    color: #ffffff;
    border-color: #9e6dd5;
    box-shadow: none;
}
.button-secondary:hover, .button.secondary:hover, .button.outline:hover,
.demo-real-button:hover, .menu-button:hover, .text-button:hover, .dialog-close:hover {
    background: #613097;
    border-color: #c498ed;
    color: #fff;
    box-shadow: none;
}

/* Reading hierarchy: bright headings, compact chapter labels, clear data surfaces. */
.content-layout {
    padding-top: 20px;
}
.toc {
    padding: 24px 0 30px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.toc a {
    color: #e0d0f3;
    font-size: .875rem;
    line-height: 1.7;
}
.toc a::before {
    color: #c698f1;
    font-size: .75rem;
    font-weight: 600;
}
.toc a:hover, .toc a[aria-current] {
    color: var(--ink);
}
.toc summary::marker {
    color: var(--muted);
}
.article-section {
    padding: 40px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.article-section + .article-section {
    margin-top: 6px;
}
.article-section h2 {
    color: #ffffff;
    max-width: 34ch;
    margin-bottom: 24px;
    font-size: clamp(1.75rem, 3.1vw, 2.4rem);
    line-height: 1.22;
    text-wrap: pretty;
}
.article-section > p:not(.section-number) {
    max-width: 92ch;
    color: #eee7f6;
}
.section-number, .eyebrow {
    color: #d8b3ff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
}
.back-to-contents {
    color: var(--muted);
    font-size: .875rem;
}
.note, .related-version, .closing, .context-cta, .journal-demo-callout {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: none;
}
.note {
    border-left-color: #b16aff;
}
.note strong {
    color: var(--ink);
}
.note p, .related-version-copy > span:not(.eyebrow),
.closing p, .context-cta p, .journal-demo-callout p {
    color: #e0d2ef;
}

/* Tables and calculations remain readable against saturated section accents. */
.table-wrap {
    background: var(--surface);
    border-color: var(--line);
}
caption {
    color: #dfc9f6;
    background: #2c184a;
    font-size: .875rem;
}
thead th {
    background: #4e2878;
    color: #ffffff;
}
th, td {
    border-color: var(--line);
}
tbody td, tbody th {
    color: #f4eaff;
    font-weight: 500;
}
tbody tr:nth-child(even) {
    background: #bc84ed0b;
}
.steps li, .calculator, .rules-gallery {
    background: var(--surface);
    border-color: var(--line);
}
.steps p, .calculator p {
    color: #e0d2ef;
}
.calculator-inputs label {
    color: #eadcf8;
    font-size: .875rem;
}
.calculator-inputs input {
    background: var(--paper);
    border-color: #9972ba;
}
.calculator output {
    background: linear-gradient(110deg, #572d87, #34256c);
    font-size: 1.25rem;
    color: #fff;
    border-left: 3px solid var(--gold);
    font-variant-numeric: tabular-nums;
}

/* Demo entry retains the strongest action on this part of the page. */
.demo-wrap {
    background: var(--paper);
    border-color: var(--line-strong);
    box-shadow: 0 24px 64px #00000033;
}
.demo-bar {
    background: #321951;
    border-color: var(--line);
}
.demo-status-line, .demo-intro p {
    color: #eadcf8;
}
.demo-status-line, .demo-verified {
    font-size: .75rem;
}
.demo-preview-eyebrow {
    color: #dfc9f6;
    font-size: .75rem;
}
.demo-preview-shade {
    background: #140b29b8;
}
.demo-preview-panel {
    background: #281340f5;
    border-color: #a570d878;
    box-shadow: none;
}
.demo-preview-panel > p {
    color: #f1e3ff;
    font-size: 1rem;
}
.demo-preview-panel small, .demo-verified {
    color: #d0bfdf;
}
.demo-preview-panel small {
    font-size: .75rem;
}
.demo-preview-actions .button {
    font-size: .875rem;
}
.demo-stage, .demo-stage iframe, .demo-loading {
    background: var(--paper);
}
.demo-loading, .demo-unavailable {
    color: #e5d2f5;
}
.demo-unavailable {
    background: var(--surface);
    border-color: var(--line);
}
.faq, .faq:last-of-type {
    border-color: var(--line);
}
.faq p {
    color: #eee2f8;
}

/* All reading pages share the same high-contrast type scale. */
.journal-card {
    background: var(--surface);
    border-color: var(--line);
}
.journal-card:hover {
    background: #321b50;
    border-color: #b27ce4;
}
.journal-card__image, .journal-card__image--symbol {
    background: #321650;
}
.journal-card .journal-card__body h3 {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
}
.journal-card p, .journal-card__category,
.journal-intro > p:not(.eyebrow):not(.journal-meta), .journal-section > p {
    color: #eadcf6;
}
.journal-intro .journal-meta, .journal-breadcrumbs {
    color: var(--muted);
}
.journal-breadcrumbs a, .journal-toc a {
    color: #e1cef4;
}
.journal-toc {
    border-color: var(--line);
}
.journal-card__read, .journal-heading > a {
    color: #e3c4ff;
}
.journal-section h2 {
    color: var(--ink);
}
.journal-page .primary-nav a[aria-current='page'] {
    color: var(--ink);
}

/* Footer and secondary interface. */
.site-footer {
    background: #100820;
    border-color: var(--line);
}
.footer-top p, .risk-line, .privacy, .copyright {
    color: #d0bfdf;
}
.risk-line, .risk-line strong {
    border-color: var(--line);
}
.mobile-actions {
    background: #140b29f5;
    border-color: var(--line);
}
.mobile-actions a {
    font-size: .8125rem;
}
.consent-panel, dialog, .service-page {
    background: var(--surface);
    color: #f7edff;
    border-color: var(--line-strong);
}

/* The three-stage diagram highlights matches, cascades and multiplier addition. */
.round-flow {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 30px 0;
}
.round-flow__item {
    position: relative;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.round-flow__item + .round-flow__item::before {
    content: '→';
    position: absolute;
    z-index: 1;
    top: 66px;
    left: -21px;
    width: 20px;
    color: #c299e4;
    text-align: center;
}
.round-flow__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    padding: 22px 18px;
    border-bottom: 1px solid var(--line);
    background: #321850;
}
.round-flow__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    width: 126px;
    flex: 0 0 auto;
}
.round-flow__gem {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #4b286a;
    border: 1px solid #9d6fc6;
}
.round-flow__gem.is-match, .round-flow__gem.is-new {
    background: #ffcf66;
    border-color: #ffeab1;
}
.round-flow__metric {
    margin-left: 14px;
    flex: 0 0 auto;
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffe39c;
}
.round-flow__cascade {
    display: grid;
    grid-template-columns: repeat(3, 24px);
    place-items: center;
    gap: 8px;
}
.round-flow__cascade .round-flow__gem {
    width: 23px;
    height: 23px;
}
.round-flow__fall {
    grid-column: 1 / -1;
    color: #d1a3f3;
    font-size: 1.5rem;
    line-height: 1;
}
.round-flow__total {
    display: flex;
    align-items: center;
    gap: 12px;
}
.round-flow__orb {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid #d7a75c;
    border-radius: 50%;
    background: #6525a8;
    color: #fff1bd;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.round-flow__plus {
    color: #f3d799;
    font-size: 1.5rem;
}
.round-flow__copy {
    padding: 22px;
}
.round-flow__number {
    display: block;
    margin-bottom: 9px;
    color: #d4acf3;
    font-size: .75rem;
    font-weight: 700;
}
.round-flow__copy > strong {
    display: block;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.4;
}
.round-flow__copy > p {
    margin-top: 10px;
    color: #eee2f8;
    font-size: 1rem;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .round-flow {
        grid-template-columns: minmax(0, 1fr);
    }
    .round-flow__item + .round-flow__item::before {
        content: '↓';
        top: -23px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 800px) {
    .header-inner {
        min-height: 64px;
        padding-block: 6px;
    }
    .site-logo {
        width: 102px;
        height: 52px;
    }
    .primary-nav {
        flex-wrap: wrap;
        row-gap: 14px;
        padding-bottom: 12px;
    }
}

@media (max-width: 600px) {
    .site-logo {
        width: 96px;
    }
    .article-section {
        padding: 32px 0;
    }
    .toc {
        padding-top: 20px;
    }
    .header-actions .button {
        font-size: .75rem;
    }
}

/* Functional emphasis across the article. */
.section-number {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    color: #e9ccff;
    background: #39205b;
    border: 1px solid #8550b777;
    border-radius: 6px;
    font-weight: 700;
}
.article-section h2::before {
    content: '';
    display: block;
    width: 42px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 3px;
    background: #f4bf55;
}
.toc summary {
    color: #ffffff;
    font-weight: 800;
}
.toc a:hover,
.toc a[aria-current] {
    color: #ffe09a;
}
.toc a[aria-current]::before {
    color: #ffe09a;
}
.table-wrap thead th {
    font-weight: 800;
}
.round-flow__visual {
    background: linear-gradient(135deg, #432061, #2d1649);
}
.round-flow__orb {
    background: radial-gradient(circle at 35% 28%, #b853ed, #6b25af 60%, #461677);
    border-width: 2px;
    box-shadow: inset 0 0 0 3px #e8ba6033;
}
.round-flow__copy > strong {
    color: #ffffff;
    font-size: 1.25rem;
}
.journal-card .journal-card__body h3 {
    color: #ffffff;
}
.journal-card__read {
    color: #ffe097;
    font-weight: 800;
}
.button-secondary:active,
.button.secondary:active,
.button.outline:active,
.demo-real-button:active {
    background: #52277f;
    border-color: #bb89e4;
    color: #ffffff;
}

/* Keep the section label clear of the fixed header after an anchor jump. */
.article-section h2[id] {
    scroll-margin-top: 44px;
}
.table-wrap tbody th {
    color: #fff4ff;
    font-weight: 700;
}
#features ~ .table-wrap td {
    font-weight: 600;
}
#symbols ~ .table-wrap td,
#rtp ~ .table-wrap td,
#free-spins ~ .table-wrap tbody td:last-child {
    color: #ffe2a0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.round-flow__visual {
    border-radius: 13px 13px 0 0;
}


/* 1.10.1 stable CTA states: no black flash or mismatched glow. */
a.button,
a.button:link,
a.button:visited,
button.button {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
    filter: none !important;
    -webkit-tap-highlight-color: transparent;
}

a.button:not(.button-secondary):not(.secondary):not(.outline),
a.button:not(.button-secondary):not(.secondary):not(.outline):link,
a.button:not(.button-secondary):not(.secondary):not(.outline):visited,
button.button:not(.button-secondary):not(.secondary):not(.outline) {
    color: #2c1905 !important;
    border-color: #f7d981 !important;
    background-color: #ffda71 !important;
    background-image: linear-gradient(180deg, #fff0ba 0%, #ffda71 42%, #ecaa32 100%) !important;
    box-shadow: inset 0 1px 0 #fff6ce, 0 10px 26px rgba(216, 153, 39, .18) !important;
}

a.button:not(.button-secondary):not(.secondary):not(.outline):hover,
a.button:not(.button-secondary):not(.secondary):not(.outline):focus-visible,
button.button:not(.button-secondary):not(.secondary):not(.outline):hover,
button.button:not(.button-secondary):not(.secondary):not(.outline):focus-visible {
    color: #2c1905 !important;
    border-color: #ffe29a !important;
    background-color: #ffe083 !important;
    background-image: linear-gradient(180deg, #fff4c9 0%, #ffe184 42%, #efb13a 100%) !important;
    box-shadow: inset 0 1px 0 #fff9dd, 0 13px 28px rgba(216, 153, 39, .22) !important;
    transform: translateY(-1px);
    filter: none !important;
}

a.button:not(.button-secondary):not(.secondary):not(.outline):active,
button.button:not(.button-secondary):not(.secondary):not(.outline):active {
    color: #2c1905 !important;
    border-color: #eec05d !important;
    background-color: #f5c24e !important;
    background-image: linear-gradient(180deg, #ffe28d 0%, #f7c953 48%, #e8a52e 100%) !important;
    box-shadow: inset 0 2px 5px rgba(93, 52, 7, .16), 0 5px 14px rgba(216, 153, 39, .15) !important;
    transform: translateY(0);
    filter: none !important;
}

a.button-secondary,
a.button-secondary:link,
a.button-secondary:visited,
a.button.secondary,
a.button.outline,
a.demo-real-button,
a.demo-real-button:link,
a.demo-real-button:visited,
button.button-secondary,
button.button.secondary,
button.button.outline {
    color: #fff !important;
    border-color: #9e6dd5 !important;
    background-color: #45206e !important;
    background-image: linear-gradient(180deg, #52287f 0%, #3d1b63 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 22px rgba(69, 32, 110, .16) !important;
    filter: none !important;
}

a.button-secondary:hover,
a.button-secondary:focus-visible,
a.button.secondary:hover,
a.button.secondary:focus-visible,
a.button.outline:hover,
a.button.outline:focus-visible,
a.demo-real-button:hover,
a.demo-real-button:focus-visible,
button.button-secondary:hover,
button.button-secondary:focus-visible {
    color: #fff !important;
    border-color: #c498ed !important;
    background-color: #5a2a8a !important;
    background-image: linear-gradient(180deg, #66349a 0%, #4b2276 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 10px 24px rgba(93, 48, 151, .18) !important;
    transform: translateY(-1px);
    filter: none !important;
}

a.button-secondary:active,
a.button.secondary:active,
a.button.outline:active,
a.demo-real-button:active,
button.button-secondary:active {
    color: #fff !important;
    border-color: #a875da !important;
    background-color: #432067 !important;
    background-image: linear-gradient(180deg, #4a236f 0%, #381859 100%) !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.2) !important;
    transform: translateY(0);
    filter: none !important;
}
