:root {
    --bg: #09090b;
    --text: #ffffff;
    --muted: #d4d4d8;
    --green: #34d399;
    --green-light: #19fb9b;
    --green-bg: rgba(52, 211, 153, 0.18);
    --green-border: rgba(52, 211, 153, 0.7);
    --green-badge-bg: rgba(52, 211, 153, 0.19);
    --border-dark: #334155;
    --header-border: rgba(255, 255, 255, 0.1);
    --toolbar-bg: rgba(39, 39, 42, 0.8);
    --toolbar-border: rgba(52, 211, 153, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

/* ── Top bar ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--header-border);
    padding: 14px 20px;
}

.site-header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-title {
    color: var(--text);
    font-size: 16px;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin: 0;
}

.compliance-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.compliance-nav a {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--toolbar-border);
    background: var(--toolbar-bg);
    transition: background 0.15s;
}

.compliance-nav a:hover,
.compliance-nav a:focus {
    background: var(--green-bg);
    outline: none;
}

/* ── Layout ── */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 20px 48px;
}

.hero {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--header-border);
}

.hero-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 12px;
}

.hero h1 {
    color: var(--text);
    font-size: 22px;
    letter-spacing: 2px;
    margin: 0 0 6px;
}

.hero p {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 1px;
    margin: 0;
}

/* ── Sections (mirrors gameSectionHeader) ── */
.section {
    margin-bottom: 8px;
}

.section-heading {
    color: var(--green);
    font-size: 16px;
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--green);
    margin: 0 0 12px;
    letter-spacing: 0.2px;
}

.section-body {
    margin-bottom: 24px;
}

.info-text {
    color: var(--text);
    font-size: 16px;
    text-align: justify;
    line-height: 20px;
    margin: 0 0 12px;
}

.info-text:last-child { margin-bottom: 0; }

.info-text a {
    color: var(--green);
    text-decoration: none;
}

.info-text a:hover {
    text-decoration: underline;
}

.subheading {
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    letter-spacing: -0.1px;
    margin: 0 0 8px;
}

.info-text.green-italic {
    color: var(--green);
    font-weight: 700;
    font-style: italic;
    margin-top: 12px;
}

.formula {
    text-align: center;
    margin: 8px 0 12px;
}

.formula span {
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
    font-style: italic;
    letter-spacing: -0.2px;
}

/* ── Flow steps ── */
.flow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.flow-step:last-child { margin-bottom: 0; }

.flow-badge {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 18px;
    background: var(--green-badge-bg);
    border: 1px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.flow-label {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.flow-sub {
    color: var(--text);
    font-size: 15px;
    text-align: justify;
    line-height: 18px;
    margin: 0;
}

.flow-sub a {
    color: var(--green);
    text-decoration: none;
}

.flow-sub a:hover {
    text-decoration: underline;
}

/* ── Tables ── */
.data-table {
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 12px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
}

.data-table thead th {
    color: var(--text);
    font-weight: 700;
    padding-top: 12px;
    padding-bottom: 8px;
}

.data-table tbody td {
    color: var(--text);
    padding-top: 5px;
    padding-bottom: 5px;
}

.data-table .col-tier { width: 25%; padding-left: 16px; text-align: left; }
.data-table .col-center { text-align: center; width: 25%; }
.data-table .col-right { text-align: right; width: 30%; }
.data-table .col-diff { width: 45%; text-align: left; }
.data-table .col-credits { width: 25%; text-align: left; }

/* ── Item lists (privacy / security) ── */
.item-list { margin: 0 0 4px; }

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 8px 5px;
    font-size: 16px;
}

.item-label {
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 700;
}

.item-icon {
    color: var(--green);
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}

.item-value { color: var(--text); }

/* ── Compliance callout ── */
.compliance-banner {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 28px;
}

.compliance-banner p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.compliance-banner a {
    color: var(--green-light);
    font-weight: 600;
}

/* ── Footer ── */
.site-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid var(--header-border);
    text-align: center;
}

.site-footer p {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 8px;
}

.site-footer a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    margin: 0 8px;
}

.site-footer a:hover { text-decoration: underline; }

.page-copyright {
    text-align: right;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(52, 211, 153, 0.3);
}

@media (max-width: 480px) {
    .site-header-inner { flex-direction: column; align-items: flex-start; }
    .data-table th, .data-table td { font-size: 13px; padding: 6px 8px; }
    .item-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}
