:root {
    color-scheme: dark;
    --bg: #070511;
    --bg-soft: #0f0c1d;
    --panel: rgba(18, 14, 35, 0.92);
    --panel-strong: rgba(25, 19, 48, 0.97);
    --text: #f7f4ff;
    --muted: #b8b1ca;
    --line: rgba(139, 92, 246, 0.34);
    --line-strong: rgba(45, 226, 197, 0.68);
    --gold: #f7c948;
    --green: #2de2c5;
    --purple: #8b5cf6;
    --pink: #f05bd8;
    --danger: #ff667a;
    --shadow: 0 22px 64px rgba(0, 0, 0, 0.48), 0 0 28px rgba(109, 40, 217, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    width: 100%;
    min-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 226, 197, 0.028) 1px, transparent 1px),
        radial-gradient(circle at 14% 4%, rgba(139, 92, 246, 0.24), transparent 30rem),
        radial-gradient(circle at 84% 16%, rgba(45, 226, 197, 0.12), transparent 24rem),
        radial-gradient(circle at 55% 86%, rgba(240, 91, 216, 0.09), transparent 26rem),
        linear-gradient(180deg, #0c081b 0%, var(--bg) 52%, #05030b 100%);
    background-size: 34px 34px, 34px 34px, auto, auto, auto, auto;
    color: var(--text);
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(45, 226, 197, 0.54);
    outline-offset: 3px;
}

input,
textarea,
button {
    font: inherit;
}

code {
    font-family: "Consolas", "SFMono-Regular", monospace;
}

.site-shell {
    display: flex;
    flex-direction: column;
    width: min(1160px, calc(100% - 32px));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 24px 0 56px;
}

.topbar {
    display: flex;
    position: sticky;
    top: 12px;
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    padding: 10px 12px;
    border: 1px solid rgba(139, 92, 246, 0.38);
    border-radius: 16px;
    background: rgba(8, 6, 20, 0.86);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(247, 201, 72, 0.54);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(42, 30, 70, 0.96), rgba(18, 13, 37, 0.96));
    color: var(--text);
    box-shadow: 3px 3px 0 rgba(109, 40, 217, 0.32), 0 0 18px rgba(240, 91, 216, 0.1);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.nav-links a {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 9px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text);
    border-color: rgba(45, 226, 197, 0.3);
    background: rgba(45, 226, 197, 0.09);
    box-shadow: inset 0 -2px rgba(45, 226, 197, 0.36);
}

.hero {
    padding: 20px 0 8px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy,
.panel,
.card,
.flow-step,
.fair-play-box,
.faq-list details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(28, 21, 54, 0.94), rgba(12, 9, 27, 0.97));
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 36px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-shadow: 3px 3px 0 rgba(109, 40, 217, 0.44), 0 0 28px rgba(240, 91, 216, 0.16);
}

.lead {
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 100ms ease, filter 140ms ease, border-color 140ms ease;
}

.button:hover {
    filter: brightness(1.06);
}

.button:active {
    transform: translateY(1px);
}

.button.primary {
    background: linear-gradient(135deg, #7c3aed, #6827cf 62%, #4c1d95);
    color: #ffffff;
    border-color: rgba(196, 181, 253, 0.56);
    box-shadow: 3px 3px 0 rgba(53, 22, 104, 0.78), 0 0 20px rgba(139, 92, 246, 0.22);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: 3px 3px 0 rgba(9, 61, 57, 0.46);
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(28, 21, 54, 0.94), rgba(12, 9, 27, 0.97));
    box-shadow: var(--shadow);
    min-height: 220px;
}

.hero-visual img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    image-rendering: auto;
}

.panel {
    padding: 22px;
}

.panel-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.panel strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.panel p,
.card p,
.flow-step p,
.fair-play-box p,
.faq-list p,
.footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.content {
    display: grid;
    flex: 1 0 auto;
    gap: 22px;
    margin-top: 24px;
}

.subhero {
    padding: 28px 0 8px;
}

.subhero-copy,
.link-card,
.section-card,
.cta-strip {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(28, 21, 54, 0.94), rgba(12, 9, 27, 0.97));
    box-shadow: var(--shadow);
}

.subhero-copy {
    padding: 30px;
}

.subhero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-stack {
    display: grid;
    gap: 18px;
}

.link-card-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-link-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-card,
.section-card {
    padding: 22px;
}

.link-card {
    display: block;
    transition: transform 120ms ease, border-color 140ms ease, background 140ms ease;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: linear-gradient(180deg, rgba(42, 29, 76, 0.98), rgba(17, 12, 35, 0.99));
}

.card-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.link-card strong,
.section-card h2,
.section-card h3 {
    display: block;
    margin: 0 0 10px;
}

.link-card strong {
    font-size: 22px;
}

.section-card h2 {
    font-size: clamp(22px, 3vw, 34px);
}

.section-card h3 {
    font-size: 20px;
}

.link-card p,
.section-card p,
.section-card li,
.cta-strip p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
}

.cta-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
}

.cta-strip .hero-actions {
    margin-top: 0;
}

.cta-strip h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 3vw, 34px);
}

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

.site-form-field {
    display: grid;
    gap: 8px;
}

.site-form-field-full {
    grid-column: 1 / -1;
}

.site-form-field label {
    color: var(--gold);
    font-weight: 700;
}

.site-form-field input,
.site-form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(9, 7, 21, 0.96);
    color: var(--text);
    padding: 14px 16px;
    outline: none;
}

.site-form-field textarea {
    resize: vertical;
}

.site-form-field-action {
    align-self: end;
}

.site-form-field-action .button {
    width: 100%;
}

.site-form-field input:focus,
.site-form-field textarea:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(45, 226, 197, 0.14), 0 0 22px rgba(45, 226, 197, 0.08);
}

.site-inline-note {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.site-inline-note:empty {
    display: none;
}

.login-reward-panel {
    display: grid;
    gap: 18px;
}

.login-reward-form {
    grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1fr) minmax(160px, auto);
    align-items: end;
}

.site-reward-list {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-reward-row,
.site-reward-empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-reward-empty {
    grid-template-columns: 1fr;
    color: var(--muted);
}

.site-reward-row strong {
    display: block;
    margin: 4px 0 6px;
    font-size: 18px;
}

.site-reward-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.site-reward-type {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.site-reward-action {
    display: flex;
    gap: 12px;
    align-items: center;
    white-space: nowrap;
    color: var(--gold);
    font-weight: 800;
}

.community-post-list {
    display: grid;
    gap: 14px;
}

.community-post,
.community-empty {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.community-post-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
}

.community-post p,
.community-empty {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.section {
    padding: 18px 0 0;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.15;
}

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

.card,
.flow-step {
    padding: 22px;
}

.card h3,
.flow-step strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}

.flow-step span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold);
    font-weight: 800;
    font-size: 28px;
}

.fair-play-box {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
}

.route-list {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.85;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

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

.faq-list details[open] summary {
    margin-bottom: 12px;
    color: var(--gold);
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 18px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .hero-grid,
    .card-grid,
    .flow-grid,
    .fair-play-box,
    .link-card-grid,
    .detail-grid,
    .cta-strip,
    .site-form-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 28px;
    }

    .brand {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100vw - 20px, 1160px);
        padding-top: 16px;
    }

    .topbar,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy h1 {
        font-size: clamp(30px, 10vw, 46px);
    }

    .subhero-copy h1 {
        font-size: clamp(28px, 9vw, 40px);
    }

    .lead {
        font-size: 15px;
    }
}

/* Legacy island theme retained for reference but intentionally disabled. */
@media not all {
:root {
    color-scheme: light;
    --bg: #f6efd9;
    --bg-soft: #eef8df;
    --panel: #fff8df;
    --panel-strong: #fffdf2;
    --text: #5b3f22;
    --muted: #846f54;
    --line: rgba(126, 94, 52, 0.22);
    --line-strong: rgba(26, 174, 162, 0.42);
    --gold: #d99a28;
    --green: #1aaea2;
    --leaf: #72bd6f;
    --sky: #cdeef0;
    --sand: #f6e2a9;
    --shadow: 0 14px 0 rgba(116, 89, 50, 0.08), 0 24px 44px rgba(92, 70, 38, 0.14);
    --press-shadow: 0 5px 0 rgba(118, 81, 44, 0.22);
    --paper-dot: radial-gradient(circle, rgba(144, 118, 78, 0.16) 1.5px, transparent 1.7px);
}

body {
    background:
        radial-gradient(circle at 13% 10%, rgba(255, 255, 255, 0.78), transparent 0 8rem),
        radial-gradient(circle at 86% 11%, rgba(255, 236, 142, 0.48), transparent 0 7rem),
        linear-gradient(180deg, var(--sky) 0 24rem, #dff3de 24rem 41rem, var(--sand) 41rem 48rem, var(--bg) 48rem 100%);
    color: var(--text);
    font-family: Nunito, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        url("../island-assets/cloud.svg") 5% 8% / 160px auto no-repeat,
        url("../island-assets/cloud.svg") 88% 16% / 120px auto no-repeat,
        radial-gradient(circle at 8% 76%, rgba(114, 189, 111, 0.24) 0 9rem, transparent 9.2rem),
        radial-gradient(circle at 76% 82%, rgba(114, 189, 111, 0.2) 0 12rem, transparent 12.2rem),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 160px auto, 120px auto, auto, auto, 36px 36px, 36px 36px;
}

.site-shell {
    width: min(1180px, calc(100vw - 32px));
}

.topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    position: sticky;
    top: 14px;
    z-index: 10;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 10px;
    border: 2px solid rgba(126, 94, 52, 0.16);
    border-radius: 999px;
    background: rgba(255, 253, 242, 0.88);
    box-shadow: 0 10px 28px rgba(92, 70, 38, 0.12);
    backdrop-filter: blur(16px);
}

.nav-links {
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
}

.brand {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff7c8;
    color: var(--text);
    box-shadow: var(--press-shadow);
}

.brand::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 8px;
    background: url("../island-assets/leaf.svg") center / contain no-repeat;
    transform: rotate(-18deg);
}

.nav-links a {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
    padding-inline: 12px;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text);
    background: rgba(26, 174, 162, 0.12);
}

.hero {
    position: relative;
    min-height: min(680px, calc(100vh - 116px));
    display: grid;
    align-items: center;
    margin: 0;
    padding: 48px 24px 72px;
    border-radius: 34px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 8% 4% auto;
    height: 68%;
    border-radius: 46% 54% 42% 58% / 58% 44% 56% 42%;
    background:
        radial-gradient(circle at 24% 34%, rgba(255, 255, 255, 0.62) 0 4rem, transparent 4.2rem),
        radial-gradient(circle at 80% 42%, rgba(255, 247, 200, 0.84) 0 8rem, transparent 8.2rem),
        linear-gradient(180deg, #8dd582 0%, #62b86b 62%, #f4d88c 63%, #eecb78 100%);
    box-shadow: inset 0 -18px 0 rgba(118, 81, 44, 0.08), 0 24px 50px rgba(92, 70, 38, 0.14);
    opacity: 0.9;
}

.hero::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 0;
    width: 220px;
    height: 120px;
    background:
        url("../island-assets/card-island.svg") right center / 104px auto no-repeat,
        url("../island-assets/shell.svg") 8px 44px / 62px auto no-repeat,
        url("../island-assets/leaf.svg") 76px 6px / 54px auto no-repeat;
    opacity: 0.92;
}

.hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.hero-copy {
    padding: 16px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hero-copy h1,
.subhero-copy h1 {
    color: #4e341b;
    letter-spacing: 0;
    text-wrap: balance;
}

.lead {
    color: #5f4a2f;
    font-weight: 650;
}

.eyebrow {
    color: var(--green);
    letter-spacing: 0.12em;
}

.button {
    min-height: 48px;
    border-radius: 999px;
    box-shadow: var(--press-shadow);
}

.button.primary {
    background: #fff7c8;
    color: var(--text);
}

.button.secondary {
    background: #fffdf2;
    color: var(--text);
    border: 2px solid rgba(26, 174, 162, 0.26);
}

.button:hover {
    filter: none;
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 rgba(118, 81, 44, 0.22);
}

.hero-panel,
.content,
.page-stack,
.community-post-list,
.faq-list {
    gap: 18px;
}

.hero-visual,
.panel,
.card,
.flow-step,
.fair-play-box,
.faq-list details,
.subhero-copy,
.link-card,
.section-card,
.cta-strip,
.community-post,
.community-empty {
    background:
        var(--paper-dot),
        linear-gradient(180deg, rgba(255, 253, 242, 0.98), rgba(255, 247, 209, 0.94));
    background-size: 28px 28px, auto;
    border: 2px solid rgba(126, 94, 52, 0.18);
    box-shadow: var(--shadow);
}

.hero-visual {
    min-height: 220px;
    border-radius: 26px;
}

.hero-visual img {
    filter: drop-shadow(0 14px 18px rgba(92, 70, 38, 0.16));
}

.panel,
.card,
.flow-step,
.link-card,
.section-card,
.cta-strip,
.fair-play-box {
    position: relative;
    overflow: hidden;
}

.panel::after,
.card::after,
.flow-step::after,
.link-card::after,
.section-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -32px;
    width: 96px;
    height: 96px;
    border-radius: 42% 58% 45% 55%;
    background: rgba(114, 189, 111, 0.13);
    transform: rotate(-14deg);
}

.panel-label,
.card-kicker,
.flow-step span,
.faq-list details[open] summary {
    color: var(--gold);
}

.panel strong,
.link-card strong,
.section-card h2,
.section-card h3,
.card h3,
.flow-step strong,
.section-heading h2,
.cta-strip h2 {
    color: #4e341b;
}

.panel p,
.card p,
.flow-step p,
.fair-play-box p,
.faq-list p,
.footer p,
.link-card p,
.section-card p,
.section-card li,
.cta-strip p,
.route-list,
.community-post p,
.community-empty {
    color: var(--muted);
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(26, 174, 162, 0.32);
    background:
        var(--paper-dot),
        linear-gradient(180deg, #fffdf2, #fff1bb);
    background-size: 28px 28px, auto;
}

.site-form-field label {
    color: var(--text);
}

.site-form-field input,
.site-form-field textarea {
    border: 2px solid rgba(126, 94, 52, 0.2);
    border-radius: 18px;
    background: #fffdf2;
    color: var(--text);
}

.site-form-field input:focus,
.site-form-field textarea:focus {
    border-color: rgba(26, 174, 162, 0.5);
    box-shadow: 0 0 0 4px rgba(26, 174, 162, 0.13);
}

.community-post-header {
    color: var(--gold);
}

.site-reward-list {
    border-top-color: rgba(126, 94, 52, 0.16);
}

.site-reward-row,
.site-reward-empty {
    border-bottom-color: rgba(126, 94, 52, 0.16);
}

.site-reward-row p,
.site-reward-empty {
    color: var(--muted);
}

.site-reward-type,
.site-reward-action {
    color: var(--gold);
}

.footer {
    border-top: 2px dashed rgba(126, 94, 52, 0.18);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    padding: 5px;
    border-radius: 999px;
    background: #fffdf2;
    border: 2px solid rgba(126, 94, 52, 0.14);
    box-shadow: 0 4px 0 rgba(126, 94, 52, 0.08);
}

.language-switch-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.language-switch-select {
    min-height: 34px;
    min-width: 118px;
    max-width: 142px;
    padding: 0 34px 0 14px;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(45deg, transparent 50%, #fffdf2 50%) calc(100% - 17px) 13px / 6px 6px no-repeat,
        linear-gradient(135deg, #fffdf2 50%, transparent 50%) calc(100% - 11px) 13px / 6px 6px no-repeat,
        var(--green);
    color: #fffdf2;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 3px 0 rgba(118, 81, 44, 0.18);
}

.language-switch-select:focus {
    outline: 3px solid rgba(34, 177, 166, 0.22);
    outline-offset: 2px;
}

.language-switch-select option {
    color: #4e341b;
    background: #fffdf2;
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-top: 34px;
        padding-bottom: 46px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nav-links a {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .topbar {
        position: static;
    }

    .login-reward-form,
    .site-reward-row,
    .cta-strip {
        grid-template-columns: 1fr;
    }

    .site-reward-action {
        justify-content: space-between;
        white-space: normal;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .language-switch {
        width: auto;
        max-width: 100%;
    }

    .language-switch-select {
        min-width: 132px;
    }
}

}

.language-switch {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 4px;
    border: 1px solid rgba(139, 92, 246, 0.42);
    border-radius: 10px;
    background: rgba(16, 11, 34, 0.96);
    box-shadow: 3px 3px 0 rgba(54, 27, 102, 0.5);
}

.language-switch-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.language-switch-select {
    min-width: 132px;
    min-height: 36px;
    padding: 0 34px 0 12px;
    border: 0;
    border-radius: 7px;
    background:
        linear-gradient(45deg, transparent 50%, var(--green) 50%) calc(100% - 16px) 14px / 6px 6px no-repeat,
        linear-gradient(135deg, var(--green) 50%, transparent 50%) calc(100% - 10px) 14px / 6px 6px no-repeat,
        #17112d;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.language-switch-select:hover {
    background-color: #211642;
}

.language-switch-select:focus-visible {
    outline: 3px solid rgba(45, 226, 197, 0.44);
    outline-offset: 3px;
}

.language-switch-select option {
    color: #f7f4ff;
    background: #17112d;
}

@media (max-width: 900px) {
    .topbar {
        position: static;
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 10px;
    }

    .language-switch {
        margin-left: 0;
    }

    .nav-links a {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Fair-play framework page */
.fair-framework-page {
    --fair-before: var(--purple);
    --fair-live: var(--gold);
    --fair-after: var(--green);
}

.fair-framework-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 76px) clamp(22px, 6vw, 72px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.34), transparent 48%),
        radial-gradient(circle at 90% 88%, rgba(45, 226, 197, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(28, 21, 54, 0.96), rgba(10, 8, 24, 0.98));
    box-shadow: var(--shadow);
    text-align: center;
}

.fair-framework-hero::before,
.fair-framework-hero::after {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(45, 226, 197, 0.16);
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
}

.fair-framework-hero::before {
    top: -78px;
    left: -46px;
}

.fair-framework-hero::after {
    right: -56px;
    bottom: -78px;
}

.fair-framework-hero .eyebrow,
.fair-framework-hero h1,
.fair-framework-hero .lead,
.fair-framework-hero .fair-primitive-list,
.fair-framework-hero .fair-hero-actions {
    position: relative;
    z-index: 1;
}

.fair-framework-hero h1 {
    max-width: 860px;
    margin: 0 auto 18px;
    font-size: clamp(34px, 5.8vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow: 3px 3px 0 rgba(109, 40, 217, 0.44), 0 0 28px rgba(240, 91, 216, 0.16);
}

.fair-framework-hero .lead {
    max-width: 760px;
    margin: 0 auto;
    text-wrap: pretty;
}

.fair-primitive-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.fair-primitive-list span {
    padding: 7px 11px;
    border: 1px solid rgba(45, 226, 197, 0.3);
    border-radius: 999px;
    background: rgba(45, 226, 197, 0.08);
    color: var(--text);
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 13px;
}

.fair-hero-actions {
    justify-content: center;
}

.fair-flow-section,
.fair-disclosure-section,
.fair-player-guide,
.fair-technical-section {
    padding: clamp(22px, 4vw, 34px);
}

.fair-section-heading {
    max-width: 800px;
    margin-bottom: 26px;
}

.fair-section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(25px, 3.8vw, 40px);
    line-height: 1.15;
    text-wrap: balance;
}

.fair-section-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.fair-flowchart {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 1.05fr);
    gap: 30px;
}

.fair-phase {
    position: relative;
    min-width: 0;
    padding-top: 16px;
    border-top: 3px solid var(--phase-color);
}

.fair-phase-before {
    --phase-color: var(--fair-before);
}

.fair-phase-live {
    --phase-color: var(--fair-live);
}

.fair-phase-after {
    --phase-color: var(--fair-after);
}

.fair-phase-before::after,
.fair-phase-live::after {
    position: absolute;
    top: 50%;
    right: -25px;
    width: 20px;
    color: var(--muted);
    content: "→";
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    transform: translateY(-50%);
}

.fair-phase-title {
    min-height: 126px;
    margin-bottom: 16px;
}

.fair-phase-title > span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--phase-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.fair-phase-title h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.fair-phase-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.fair-step-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fair-flow-node {
    display: grid;
    position: relative;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    background: rgba(9, 7, 22, 0.72);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.fair-flow-node:not(:last-child)::after {
    position: absolute;
    bottom: -17px;
    left: 29px;
    color: var(--phase-color);
    content: "↓";
    font-size: 16px;
    font-weight: 800;
}

.fair-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--phase-color) 72%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--phase-color) 13%, transparent);
    color: var(--text);
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 12px;
    font-weight: 800;
}

.fair-flow-node h4 {
    margin: 3px 0 8px;
    font-size: 17px;
}

.fair-flow-node p,
.fair-live-lock p,
.fair-disclosure-grid p,
.fair-guide-steps p,
.fair-technical-details p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.fair-flow-node .fair-node-proof {
    margin-top: 10px;
    color: var(--text);
    font-size: 13px;
}

.fair-flow-node-result {
    border-color: rgba(45, 226, 197, 0.48);
    background: rgba(20, 69, 63, 0.19);
}

.fair-live-lock {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px dashed rgba(247, 201, 72, 0.42);
    border-radius: 10px;
    background: rgba(247, 201, 72, 0.06);
}

.fair-live-lock strong {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
}

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

.fair-disclosure-grid article {
    min-width: 0;
    padding: 18px;
    border-left: 3px solid rgba(45, 226, 197, 0.46);
    background: rgba(9, 7, 22, 0.56);
}

.fair-disclosure-grid h3 {
    margin: 8px 0;
    font-size: 18px;
}

.fair-disclosure-status {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.fair-guide-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fair-guide-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 12px;
    background: rgba(9, 7, 22, 0.58);
}

.fair-guide-steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-weight: 800;
}

.fair-guide-steps strong {
    display: block;
    margin: 4px 0 7px;
}

.fair-guide-steps li:nth-child(4),
.fair-guide-steps li:nth-child(5) {
    grid-column: span 1;
}

.fair-link-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(45, 226, 197, 0.32);
    border-radius: 12px;
    background: rgba(45, 226, 197, 0.06);
}

.fair-link-panel div {
    min-width: 0;
}

.fair-link-panel span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}

.fair-link-panel a {
    color: var(--green);
    font-family: "Consolas", "SFMono-Regular", monospace;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fair-link-panel a:hover {
    color: var(--text);
}

.fair-formula {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(45, 226, 197, 0.28);
    border-radius: 12px;
    background: rgba(9, 7, 22, 0.72);
    font-family: "Consolas", "SFMono-Regular", monospace;
}

.fair-formula span {
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(139, 92, 246, 0.14);
}

.fair-formula b {
    color: var(--green);
}

.fair-technical-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fair-technical-details details {
    min-width: 0;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 12px;
    background: rgba(9, 7, 22, 0.58);
}

.fair-technical-details summary {
    min-height: 50px;
    padding: 14px 42px 14px 16px;
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
}

.fair-technical-details summary:focus-visible {
    outline: 3px solid rgba(45, 226, 197, 0.44);
    outline-offset: 3px;
}

.fair-technical-details details > div {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}

.fair-technical-details code {
    color: var(--green);
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .fair-flowchart,
    .fair-disclosure-grid,
    .fair-guide-steps,
    .fair-link-panel,
    .fair-technical-details {
        grid-template-columns: 1fr;
    }

    .fair-flowchart {
        gap: 34px;
    }

    .fair-phase-title {
        min-height: 0;
    }

    .fair-phase-before::after,
    .fair-phase-live::after {
        top: auto;
        right: 50%;
        bottom: -31px;
        content: "↓";
        transform: translateX(50%);
    }
}

@media (max-width: 640px) {
    .fair-framework-hero {
        padding: 36px 18px;
    }

    .fair-framework-hero h1 {
        font-size: clamp(31px, 10vw, 44px);
    }

    .fair-hero-actions .button {
        width: 100%;
    }

    .fair-flow-section,
    .fair-disclosure-section,
    .fair-player-guide,
    .fair-technical-section {
        padding: 20px 16px;
    }

    .fair-flow-node,
    .fair-guide-steps li {
        padding: 14px;
    }

    .fair-formula {
        align-items: flex-start;
    }

    .fair-formula b {
        width: 100%;
        line-height: 1;
        transform: rotate(90deg);
        transform-origin: left center;
    }
}
