@font-face {
    font-family: Orbitron;
    src: url("/brand/orbitron-latin.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
}
@font-face {
    font-family: "DUNA Baskervville";
    src: url("/brand/baskervville-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("/brand/dm-sans-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    background: #0c0c13;
    --paper: #faf7f3;
    --ink: #262129;
    --muted: #655e68;
    --line: #dcd4d8;
    --action: #90264d;
    --action-hover: #751b3c;
    --reading: Georgia, "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); line-height: 1.65; }
.duna-vision, .duna-games, .duna-philosophy {
    --section-inset: 5.2vw;
    --section-top: clamp(1.25rem, 2.75vw, 3.5rem);
    background-color: #000;
}
.duna-vision__body, .duna-games__label, .duna-philosophy__label { border-block-start: 1px solid #2c2d2e; }
.duna-vision__label, .duna-games__label, .duna-philosophy__label {
    padding-block-start: clamp(.7rem, 1.18vw, 1.5rem);
    color: #b7bdc1;
    font: 500 clamp(.56rem, .93vw, .84rem)/1.4 "DM Sans", system-ui, sans-serif;
    letter-spacing: .26em;
    text-transform: uppercase;
}
@media (max-width: 39rem) {
    .duna-vision, .duna-games, .duna-philosophy { --section-inset: 6vw; --section-top: 1.5rem; }
}
@media (max-width: 39rem) and (max-height: 39rem) {
    .duna-vision, .duna-games, .duna-philosophy { --section-top: .85rem; }
}
h1, h2, h3, h4, p, dl, dd { margin: 0; }

.paper {
    width: min(780px, calc(100% - 40px));
    margin-inline: auto;
    min-width: 0;
    padding: clamp(24px, 6vw, 60px);
    background: var(--paper);
    border-radius: 4px;
    box-shadow: 0 18px 48px #0005;
}

.document { margin-block: 24px 52px; }
.document-preface p, .agreement-copy p { font: 17px/1.9 var(--reading); }
.document-preface p + p { margin-top: 14px; }
.document-preface h3 { margin: 24px 0 10px; }

.document { scroll-margin-block-start: 20px; }
.document:focus-visible { outline: 2px solid #e84a7f; outline-offset: 4px; }
.document-heading { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 15px;
    font-size: 13px;
}

a, .text-button { color: var(--action); text-underline-offset: 3px; }
.document-heading h2 { font: 700 clamp(26px, 5vw, 41px)/1.25 var(--reading); overflow-wrap: anywhere; }
.document-subtitle { margin-top: 9px; color: var(--muted); font: 15px/1.5 Georgia, serif; }
.edition-meta { margin-top: 18px; color: var(--muted); font-size: 13px; }
.edition-meta p + p { margin-top: 4px; }
.edition-meta p:first-child { color: var(--action); font-weight: 650; }

.contents { margin: 14px 0 24px; font-size: 14px; }
.contents summary { width: fit-content; cursor: pointer; }
.contents nav { display: grid; justify-items: start; gap: 8px; margin-top: 10px; }
.document-preface h3, .agreement-copy h3, .signing h3 { font: 700 20px/1.4 var(--reading); }
.agreement-copy h3 { margin: 30px 0 12px; scroll-margin-block-start: 20px; }
.agreement-copy h4 { margin: 22px 0 8px; font: 700 17px/1.6 var(--reading); }
.agreement-copy p + p { margin-top: 12px; }
.agreement-copy strong { font-variant-numeric: tabular-nums; }
.agreement-copy .page-title {
    margin: 28px 0 16px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font: 650 14px/1.6 system-ui, sans-serif;
    color: var(--muted);
}
.agreement-copy .choice {
    border-inline-start: 2px solid #c7b2ba;
    padding-inline-start: 12px;
    white-space: pre-wrap;
}
.agreement-copy .note { color: var(--muted); font: 14px/1.8 system-ui, sans-serif; overflow-wrap: anywhere; }

.signing {
    border-top: 1px solid var(--line);
    margin-top: 29px;
    padding-top: 22px;
    scroll-margin-top: 20px;
}

.signing h3 { margin-bottom: 15px; }
.name-label, .signature-lines dt { display: block; font-size: 13px; font-weight: 700; }
.name-field {
    display: block;
    width: min(100%, 360px);
    margin-top: 4px;
    padding: 8px 2px 7px;
    border: 0;
    border-bottom: 1px solid #9a858d;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: 20px/1.4 var(--reading);
    min-height: 44px;
}

.name-field::placeholder { color: var(--muted); opacity: 1; font-size: 16px; }
.field-help { margin-top: 6px; color: var(--muted); font-size: 13px; }
.consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 18px 0 16px;
    font-size: 14px;
}

.consent input {
    accent-color: var(--action);
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
    flex: 0 0 auto;
}

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 18px;
    border: 0;
    border-radius: 5px;
    background: var(--action);
    color: #fff;
    text-decoration: none;
    font: 700 14px/1.4 system-ui, sans-serif;
    cursor: pointer;
}

.primary:hover { background: var(--action-hover); }
:is(a, button, input, summary):focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }

.signature-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
    max-width: 532px;
    margin-bottom: 16px;
}

.signature-lines dd {
    border-bottom: 1px solid #9a858d;
    padding: 5px 0;
    font: 20px/1.55 var(--reading);
    overflow-wrap: anywhere;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.text-button {
    background: none;
    border: 0;
    padding: 9px 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.result, .notice { margin-bottom: 12px; font-size: 14px; }
.result { color: #275b3f; font-weight: 650; }
.notice { color: #8b2d28; }

.integrity {
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    margin-top: 25px;
    padding-top: 15px;
}

.integrity summary { width: fit-content; cursor: pointer; }
.integrity dl { margin-top: 12px; }
.integrity dt { margin-top: 8px; }
code { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }

@media (max-width: 520px) {
    .paper { width: calc(100% - 24px); }
    .document { margin-top: 16px; }
    .document-preface p, .agreement-copy p { font-size: 16px; }
}

@media (max-width: 360px) {
    .signature-lines { grid-template-columns: 1fr; }
}
