:root {
    --bg: #080808;
    --panel: #101010;
    --panel-2: #151515;
    --soft: #f2f1ed;
    --white: #ffffff;
    --black: #000000;
    --text: #eeeeea;
    --muted: #8f8f89;
    --line: #292925;
    --line-light: #d8d7d1;
    --accent: #dfff00;
    --danger: #ff625c;
    --success: #7fff8b;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

.shell {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.narrow {
    max-width: 840px;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--black);
    font-size: 0.8rem;
    font-weight: 900;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    letter-spacing: 0.05em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav a {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.desktop-nav a:hover {
    color: var(--white);
}

.account-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-handle {
    font-size: 0.85rem;
    font-weight: 700;
}

.button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #40403c;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-weight: 750;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 120ms ease,
        border-color 120ms ease,
        color 120ms ease;
}

.button:hover:not(:disabled) {
    border-color: var(--white);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--black);
}

.button-primary:hover:not(:disabled) {
    border-color: var(--white);
    background: var(--white);
}

.button-small {
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.78rem;
}

.hero {
    padding: 96px 0 86px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            circle at 75% 15%,
            rgba(223, 255, 0, 0.07),
            transparent 28%
        ),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
    gap: 70px;
    align-items: end;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--white);
    font-size: clamp(3.5rem, 8vw, 7.4rem);
    font-weight: 900;
    letter-spacing: -0.075em;
    line-height: 0.86;
}

.hero h1 span {
    display: block;
    color: var(--accent);
}

.hero-lead {
    max-width: 650px;
    margin: 34px 0 0;
    color: var(--white);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}

.hero-description {
    max-width: 660px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
}

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

.hero-state {
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.state-label {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.state-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.state-line span {
    color: var(--muted);
}

.state-line strong {
    text-align: right;
    text-transform: uppercase;
}

.state-divider {
    height: 28px;
}

.state-question {
    color: var(--accent);
    font-weight: 900;
    line-height: 1.1;
    font-size: 1.35rem;
}

.principle-strip {
    border-bottom: 1px solid var(--line);
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.principle-grid > div {
    min-height: 115px;
    padding: 24px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.principle-grid > div:first-child {
    border-left: 1px solid var(--line);
}

.principle-grid strong {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.principle-grid span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
}

.section {
    padding: 88px 0;
}

.section-dark {
    background: var(--panel);
}

.section-soft {
    background: var(--soft);
    color: var(--black);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}

.section-heading h2,
.section h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.section-intro {
    max-width: 700px;
    margin: -18px 0 36px;
    color: var(--muted);
}

.status-badge {
    padding: 8px 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.status-badge.live {
    border-color: var(--accent);
    color: var(--accent);
}

.cycle-panel {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr 1fr;
    border: 1px solid var(--line);
}

.cycle-panel > div {
    min-height: 190px;
    padding: 30px;
    border-right: 1px solid var(--line);
}

.cycle-panel > div:last-child {
    border-right: 0;
}

.cycle-number {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cycle-number span,
.cycle-clock span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.cycle-number strong {
    color: var(--accent);
    font-size: 3rem;
}

.cycle-phase strong {
    display: block;
    margin-top: 12px;
    font-size: 1.65rem;
}

.cycle-phase p {
    margin: 12px 0 0;
    color: var(--muted);
}

.cycle-clock strong {
    display: block;
    margin-top: 16px;
    font-variant-numeric: tabular-nums;
    font-size: 2.2rem;
    letter-spacing: -0.04em;
}

.cycle-clock small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.notice {
    margin-bottom: 32px;
    padding: 22px 24px;
    border: 1px solid #4b4b45;
    background: #0b0b0b;
}

.notice strong {
    color: var(--accent);
}

.notice p {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--muted);
}

.composer {
    margin-bottom: 48px;
    padding: 28px;
    border: 1px solid var(--accent);
    background: #0a0a0a;
}

.composer-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.composer-header h3,
.proposal-header h3 {
    margin: 0;
    font-size: 1.6rem;
}

.composer-header > span {
    color: var(--muted);
    font-size: 0.85rem;
}

label {
    display: block;
    margin-bottom: 20px;
    font-size: 0.82rem;
    font-weight: 750;
}

input,
textarea {
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid #3b3b36;
    border-radius: 0;
    outline: none;
    background: #070707;
    color: var(--white);
}

input:focus,
textarea:focus {
    border-color: var(--accent);
}

textarea {
    min-height: 118px;
    resize: vertical;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.proposal-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.proposal-header > span {
    color: var(--muted);
}

.proposal-grid {
    display: grid;
    gap: 14px;
}

.proposal-card {
    padding: 24px;
    border: 1px solid var(--line);
    background: #0a0a0a;
}

.proposal-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.proposal-card h4 {
    margin: 0;
    color: var(--white);
    font-size: 1.15rem;
}

.proposal-rank {
    color: var(--accent);
    font-weight: 900;
}

.proposal-article {
    margin: 18px 0 0;
    color: var(--text);
    font-size: 1.02rem;
}

.proposal-explanation {
    margin: 10px 0 0;
    color: var(--muted);
}

.proposal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.proposal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--muted);
    font-size: 0.78rem;
}

.empty-state {
    padding: 36px;
    border: 1px dashed #40403c;
    color: var(--muted);
    text-align: center;
}

.governance-action {
    margin-bottom: 34px;
}

.vote-panel {
    padding: 24px;
    border: 1px solid var(--accent);
}

.vote-panel h3 {
    margin-top: 0;
}

.vote-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.vote-choice {
    padding: 20px;
    border: 1px solid var(--line);
}

.vote-choice p {
    color: var(--muted);
}

.article-document {
    margin-top: 38px;
    padding: 38px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.65;
}

.article-document p {
    margin: 0 0 22px;
}

.article-document p:last-child {
    margin-bottom: 0;
}

.article-meta {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.82rem;
}

.history-list {
    border-top: 1px solid var(--line-light);
}

.history-entry {
    display: grid;
    grid-template-columns: 110px 1fr 160px;
    gap: 28px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line-light);
}

.history-number {
    font-weight: 900;
}

.history-entry h3 {
    margin: 0 0 8px;
}

.history-entry p {
    margin: 0;
}

.history-status {
    text-align: right;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
}

.constants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.constant-card {
    min-height: 210px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.constant-number {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
}

.constant-card h3 {
    margin: 14px 0 10px;
}

.constant-card p {
    margin: 0;
    color: var(--muted);
}

.transparency-list {
    border-top: 1px solid var(--line);
}

.transparency-event {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.transparency-event time {
    color: var(--muted);
    font-size: 0.78rem;
}

.transparency-event strong {
    display: block;
    margin-bottom: 6px;
}

.transparency-event p {
    margin: 5px 0;
    color: var(--muted);
}

.token-section {
    border-top: 1px solid var(--line);
}

.token-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.token-grid p {
    max-width: 570px;
    margin-top: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

.modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px;
    border: 1px solid #44443f;
    background: var(--panel);
}

.modal-card h2 {
    margin: 0 0 24px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.8rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
    border: 1px solid var(--line);
}

.auth-tab {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.auth-tab.active {
    background: var(--accent);
    color: var(--black);
    font-weight: 800;
}

.form-message {
    min-height: 24px;
    margin-top: 14px;
    color: var(--danger);
    font-size: 0.82rem;
}

.toast {
    position: fixed;
    z-index: 2000;
    right: 24px;
    bottom: 24px;
    max-width: 420px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
}

.toast.error {
    border-color: var(--danger);
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

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

    .hero-state {
        max-width: 520px;
    }

    .principle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cycle-panel {
        grid-template-columns: 1fr;
    }

    .cycle-panel > div {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .cycle-panel > div:last-child {
        border-bottom: 0;
    }

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

    .history-entry {
        grid-template-columns: 80px 1fr;
    }

    .history-status {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(calc(100% - 28px), var(--max));
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: 64px;
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        padding: 72px 0 60px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 17vw, 5.4rem);
    }

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

    .principle-grid > div {
        min-height: 96px;
        padding: 16px;
    }

    .section {
        padding: 64px 0;
    }

    .section-heading,
    .proposal-header,
    .composer-header,
    .proposal-footer,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .proposal-top {
        flex-direction: column;
    }

    .history-entry {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .history-status {
        grid-column: auto;
    }

    .transparency-event {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .modal-card {
        padding: 26px 20px;
    }
}

/* ---------------------------------------------------------
   EMAIL VERIFICATION
--------------------------------------------------------- */

.verification-badge {
    padding: 4px 7px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.verification-notice {
    border-color: var(--accent);
}

.verification-notice-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.verification-main {
    min-height: calc(100vh - 73px);
    display: grid;
    place-items: center;
    padding: 70px 0;
}

.verification-card {
    width: 100%;
    padding: 48px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.verification-card h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 4rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.verification-card > p {
    max-width: 650px;
    color: var(--muted);
}

.verification-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 900;
}

.verification-success {
    background: var(--accent);
    color: var(--black);
}

.verification-error {
    border-color: var(--danger);
    color: var(--danger);
}

.verification-spinner {
    width: 28px;
    height: 28px;
    margin-top: 28px;
    border: 3px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: a0-spin 700ms linear infinite;
}

.verification-footnote {
    margin-top: 36px !important;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
}

@keyframes a0-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 620px) {
    .verification-card {
        padding: 32px 22px;
    }
}

/* ---------------------------------------------------------
   CLOUDFLARE TURNSTILE
--------------------------------------------------------- */

.turnstile-shell {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(5px);
}

.turnstile-shell-inner {
    min-width: min(100%, 340px);
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
}

.turnstile-shell-inner small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
}

#turnstileContainer {
    min-height: 1px;
}

/* ---------------------------------------------------------
   THE WORLD
--------------------------------------------------------- */

.world-section {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            circle at 82% 8%,
            rgba(223, 255, 0, 0.08),
            transparent 30%
        ),
        var(--bg);
}

.world-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 36px;
}

.world-heading h2 {
    margin: 0;
    font-size: clamp(3.5rem, 9vw, 8.4rem);
    letter-spacing: -0.075em;
    line-height: 0.82;
}

.world-intro {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.world-stats {
    display: flex;
    border: 1px solid var(--line);
}

.world-stats > div {
    min-width: 150px;
    padding: 20px;
}

.world-stats > div + div {
    border-left: 1px solid var(--line);
}

.world-stats strong,
.world-stats span {
    display: block;
}

.world-stats strong {
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
}

.world-stats span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.world-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    padding: 13px 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.world-rule i {
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
}

.world-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 18px;
}

.world-filter {
    min-width: max-content;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.world-filter strong {
    color: var(--white);
}

.world-filter:hover,
.world-filter.active {
    border-color: var(--accent);
    color: var(--white);
}

.world-filter.active {
    background: var(--accent);
    color: var(--black);
}

.world-filter.active strong {
    color: var(--black);
}

.world-stage {
    min-height: 400px;
}

.world-empty {
    min-height: 250px;
    display: grid;
    place-items: center;
    padding: 50px;
    border: 1px dashed #40403c;
    color: var(--muted);
    text-align: center;
}

.world-empty-civilization {
    min-height: 480px;
    align-content: center;
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
}

.world-empty-civilization h3 {
    margin: 22px 0 12px;
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 5rem);
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.world-empty-civilization p {
    max-width: 560px;
    margin: 0 auto 28px;
}

.world-empty-civilization > strong {
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
}

.world-empty-signal {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

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

.world-entity-card {
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--panel);
    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.world-entity-card:hover {
    border-color: #464640;
    transform: translateY(-2px);
}

.world-card-visual {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            #0e0e0e,
            #161616
        );
}

.world-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.world-card-visual img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.world-visual-fallback {
    position: relative;
    z-index: 0;
    display: grid;
    justify-items: center;
    gap: 18px;
    color: var(--muted);
    text-align: center;
}

.world-visual-fallback strong {
    color: #22221f;
    font-size: clamp(5rem, 14vw, 11rem);
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.world-visual-fallback span {
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.world-visual-meta {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.world-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(8, 8, 8, 0.82);
    color: var(--white);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.world-badge.canonical {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--black);
}

.world-badge.undefined {
    border-color: var(--line);
    color: var(--muted);
}

.world-card-body {
    padding: 25px;
}

.world-card-body h3 {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    letter-spacing: -0.04em;
}

.world-card-summary {
    min-height: 48px;
    margin: 12px 0 22px;
    color: var(--muted);
}

.world-card-canon-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.world-card-canon-line span:last-child {
    color: var(--accent);
}

.world-card-article {
    display: block;
    margin-top: 15px;
    color: var(--muted);
}

.world-card-action {
    width: 100%;
    margin-top: 20px;
}

.world-visual-decisions {
    margin-top: 90px;
    padding-top: 60px;
    border-top: 1px solid var(--line);
}

.world-subheading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}

.world-subheading h3,
.world-subheading h4 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.world-subheading > span {
    color: var(--muted);
}

.world-visual-round-list {
    display: grid;
    gap: 24px;
}

.world-visual-round {
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.world-visual-round-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.world-visual-round-head h4 {
    margin: 0;
    font-size: 1.7rem;
}

.world-visual-round-head p {
    margin: 7px 0 0;
    color: var(--muted);
}

.world-visual-round-time {
    color: var(--muted);
    font-size: 0.75rem;
}

.world-candidate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.world-candidate {
    min-width: 0;
    border: 1px solid var(--line);
}

.world-candidate .world-card-visual {
    min-height: 210px;
}

.world-candidate-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    font-size: 0.7rem;
}

.world-candidate-footer span {
    color: var(--muted);
}

.world-decision-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.world-detail {
    scroll-margin-top: 100px;
    margin-top: 80px;
    padding: 34px;
    border: 1px solid #44443f;
    background: var(--panel);
}

.world-detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.world-detail-identity h3 {
    margin: 16px 0 8px;
    font-size: clamp(2.7rem, 7vw, 5.7rem);
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.world-detail-identity p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
}

.world-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    border: 1px solid var(--line);
}

.world-detail-hero-visual {
    min-height: 500px;
}

.world-detail-canon {
    padding: 32px;
    border-left: 1px solid var(--line);
}

.world-detail-canon h4 {
    margin: 0;
    color: var(--white);
    font-size: 2rem;
}

.world-detail-canon p {
    color: var(--muted);
}

.world-provenance {
    display: block;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.world-attribute-section {
    margin-top: 44px;
}

.world-attribute-section > h4 {
    margin: 0 0 18px;
    font-size: 1.4rem;
}

.world-attribute-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.world-attribute {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    padding: 21px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.world-attribute > span {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.world-attribute > strong {
    margin-top: 13px;
    color: var(--white);
    font-size: 1.2rem;
}

.world-attribute > small {
    margin-top: auto;
    padding-top: 18px;
    color: var(--muted);
    font-size: 0.62rem;
}

.world-attribute.undefined {
    background:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 7px,
            rgba(255, 255, 255, 0.02) 7px,
            rgba(255, 255, 255, 0.02) 14px
        );
}

.world-attribute.undefined > strong,
.world-attribute.undefined > small {
    color: var(--accent);
}

.world-evolution {
    margin-top: 60px;
}

.world-version-list {
    border-top: 1px solid var(--line);
}

.world-version-entry {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 25px;
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.world-version-number {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 900;
}

.world-version-entry h4 {
    margin: 0;
    font-size: 1.25rem;
}

.world-version-entry p {
    color: var(--muted);
}

.world-version-visual-history {
    margin-top: 22px;
}

.world-version-round-title {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.world-history-candidates {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.world-history-candidate {
    border: 1px solid var(--line);
}

.world-history-candidate.winner {
    border-color: var(--accent);
}

.world-history-candidate .world-card-visual {
    min-height: 150px;
}

.world-history-candidate > span {
    display: block;
    padding: 9px;
    color: var(--muted);
    font-size: 0.62rem;
}

.world-history-candidate.winner > span {
    color: var(--accent);
    font-weight: 900;
}

@media (max-width: 900px) {
    .world-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .world-entity-grid {
        grid-template-columns: 1fr;
    }

    .world-candidate-grid,
    .world-history-candidates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .world-detail-canon {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .world-attribute-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .world-heading h2 {
        font-size: clamp(3.8rem, 22vw, 6.3rem);
    }

    .world-stats {
        width: 100%;
    }

    .world-stats > div {
        min-width: 0;
        flex: 1;
    }

    .world-rule {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .world-rule i {
        display: none;
    }

    .world-empty,
    .world-empty-civilization {
        min-height: 380px;
        padding: 28px 20px;
    }

    .world-card-visual {
        min-height: 240px;
    }

    .world-subheading,
    .world-visual-round-head,
    .world-detail-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .world-candidate-grid,
    .world-history-candidates,
    .world-attribute-grid {
        grid-template-columns: 1fr;
    }

    .world-detail {
        padding: 22px 16px;
    }

    .world-detail-hero-visual {
        min-height: 330px;
    }

    .world-version-entry {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ---------------------------------------------------------
   ARTICLE ZERO — COMMUNITY VISUAL VOTING
   --------------------------------------------------------- */

.world-visual-round.extended {
    border-style: dashed;
}

.world-visual-round.sudden-death {
    border-width: 2px;
}

.world-decision-status {
    margin: -4px 0 18px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.world-candidate {
    display: flex;
    flex-direction: column;
}

.world-candidate .world-card-visual {
    flex: 1;
}

.world-candidate-vote {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    min-height: 42px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--white);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.world-candidate-vote:hover:not(:disabled),
.world-candidate-vote:focus-visible:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.world-candidate-vote:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.world-decision-canon-note {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.7rem;
}

@media (max-width: 600px) {
    .world-candidate-grid {
        grid-template-columns: 1fr;
    }

    .world-visual-round {
        padding: 18px;
    }

    .world-visual-round-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .world-visual-round-time {
        font-size: 0.72rem;
    }
}

/* ---------------------------------------------------------
   ARTICLE ZERO — PUBLIC VISUAL RANDOM-DRAW PROOF
   --------------------------------------------------------- */

.world-random-proof {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
}

.world-random-proof-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.world-random-proof-head strong {
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.world-random-proof-head span {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 900;
}

.world-random-proof > p {
    max-width: 820px;
    margin: 12px 0 18px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.6;
}

.world-proof-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.world-proof-row {
    min-width: 0;
    padding: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.world-proof-row > span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.world-proof-row > code {
    display: block;
    overflow-wrap: anywhere;
    color: var(--white);
    font-size: 0.68rem;
}

.world-proof-scores {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.world-proof-scores > strong {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.world-proof-scores > div {
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: var(--white);
    font-family: monospace;
    font-size: 0.67rem;
}

.world-proof-details {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.world-proof-details summary {
    color: var(--muted);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 800;
}

.world-proof-details pre {
    max-height: 300px;
    overflow: auto;
    margin: 12px 0 0;
    padding: 12px;
    border: 1px solid var(--line);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--white);
    font-size: 0.63rem;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .world-proof-grid {
        grid-template-columns: 1fr;
    }

    .world-random-proof-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}
