:root {
    color-scheme: dark;
    --background: #0b0d12;
    --surface: #12161d;
    --surface-raised: #181d26;
    --line: #2b323e;
    --text: #f2f0e9;
    --muted: #969da9;
    --accent: #d6f36a;
    --accent-deep: #a8c735;
    --error: #ff8e83;
    --success: #a8efbd;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(70, 93, 128, 0.16), transparent 34rem),
        radial-gradient(circle at 88% 80%, rgba(100, 121, 42, 0.08), transparent 30rem),
        var(--background);
    color: var(--text);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
}

button,
input {
    font: inherit;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 30rem);
    gap: clamp(3rem, 9vw, 10rem);
    align-items: center;
    width: min(1180px, calc(100% - 3rem));
    min-height: calc(100vh - 5.5rem);
    margin: 0 auto;
    padding: 4rem 0 3rem;
}

.intro {
    max-width: 35rem;
}

.brand-lockup,
.step-label,
.site-footer,
.eyebrow {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.9rem;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
}

.intro .eyebrow {
    margin-top: clamp(4rem, 12vh, 9rem);
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 8ch;
    margin-bottom: 1.5rem;
    font-size: clamp(3.8rem, 8vw, 7.1rem);
    line-height: 0.86;
}

h1 em {
    color: var(--accent);
    font-style: italic;
}

.intro-copy {
    max-width: 27rem;
    margin-bottom: 2.3rem;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.realm-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--text);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0.3rem rgba(214, 243, 106, 0.1), 0 0 1rem rgba(214, 243, 106, 0.65);
}

.note-divider {
    color: var(--line);
}

.registration-card {
    padding: clamp(1.5rem, 4vw, 2.8rem);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(24, 29, 38, 0.96), rgba(14, 17, 23, 0.98));
    box-shadow: 1.2rem 1.2rem 0 rgba(0, 0, 0, 0.18);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.4rem;
}

.step-label {
    flex: none;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
}

.step-label span {
    color: var(--line);
}

.card-rule {
    width: 100%;
    height: 1px;
    background: var(--line);
}

.form-intro {
    margin-bottom: 2rem;
}

h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1;
}

.form-intro > p:last-child,
.success-panel > p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.field-group {
    margin-bottom: 1.35rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
}

input {
    display: block;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: rgba(8, 10, 14, 0.72);
    color: var(--text);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(214, 243, 106, 0.13);
}

.field-hint,
.field-error {
    margin: 0.45rem 0 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.64rem;
    line-height: 1.4;
}

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

.field-error {
    color: var(--error);
}

.notice {
    margin-bottom: 1.3rem;
    padding: 0.8rem 0.9rem;
    border-left: 2px solid var(--error);
    background: rgba(255, 142, 131, 0.08);
    color: var(--error);
    font-size: 0.82rem;
    line-height: 1.5;
}

.button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.3rem;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    margin-top: 0.6rem;
    background: var(--accent);
    color: #12160b;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #e6ff89;
}

.button-secondary {
    margin-top: 1.8rem;
    border-color: var(--line);
    background: transparent;
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.button-arrow {
    font-size: 1.15rem;
}

.success-panel {
    padding: 1rem 0 0.4rem;
}

.success-icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: 2.3rem;
    place-items: center;
    border: 1px solid var(--success);
    color: var(--success);
    font-size: 1.2rem;
}

.success-panel h2 {
    margin-bottom: 0.9rem;
}

.success-panel strong {
    color: var(--text);
}

.card-footer {
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.5;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 0 0 1.6rem;
    color: #626a76;
    font-size: 0.6rem;
}

@media (max-width: 800px) {
    .page-shell {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 2rem;
    }

    .intro .eyebrow {
        margin-top: 4rem;
    }

    h1 {
        font-size: clamp(3.7rem, 17vw, 6rem);
    }

    .registration-card {
        width: min(100%, 34rem);
    }
}

@media (max-width: 480px) {
    .page-shell,
    .site-footer {
        width: min(100% - 2rem, 34rem);
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .site-footer {
        gap: 1rem;
        flex-direction: column;
    }
}
