:root {
    color-scheme: dark;
    --ink: #f1e8d8;
    --muted: #a69c8d;
    --faint: #70695e;
    --gold: #c5a56a;
    --gold-bright: #e0c58f;
    --line: rgba(205, 178, 128, .2);
    --panel: #151311;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #100e0d;
    color: var(--ink);
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #100e0d; }
a { color: inherit; text-decoration: none; }
.main-nav {
    display: flex;
    gap: clamp(22px, 4vw, 54px);
    height: 100%;
    align-items: center;
    width: fit-content;
    justify-self: center;
    padding: 0 16px;
    border: 1px solid #695735;
    border-radius: 8px;
    background: #9b814f;
}
.site-header {
    height: 82px;
    padding: 0 clamp(22px, 6vw, 92px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: #100e0d;
    position: relative;
    z-index: 2;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-bright); font: 600 16px Georgia, serif; transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-copy { display: grid; gap: 1px; text-transform: uppercase; letter-spacing: .12em; }
.brand-copy strong { font: 600 13px Georgia, serif; }
.brand-copy small { font-size: 9px; color: var(--muted); letter-spacing: .2em; }
.nav-link { height: 100%; display: grid; place-items: center; position: relative; color: var(--muted); font-size: 12px; letter-spacing: .07em; transition: color .2s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { content: ''; position: absolute; bottom: 0; height: 2px; width: 22px; background: var(--gold); }
.nav-link.nav-button { height: auto; min-height: 38px; padding: 0 15px; border: 1px solid #dfc58f; border-radius: 6px; color: #080705; background: linear-gradient(110deg, #d3b77f, #aa874c); box-shadow: 0 2px 7px rgba(0, 0, 0, .28); font-weight: 800; transition: filter .2s ease, transform .2s ease, box-shadow .2s ease; }
.nav-link.nav-button:hover, .nav-link.nav-button.is-active { color: #080705; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, .32); }
.nav-link.nav-button.is-active::after { display: none; }
.main-nav > span.nav-link { height: auto; min-height: 38px; padding: 0 12px; border: 2px solid rgba(190, 190, 184, .48); border-radius: 6px; color: var(--gold-bright); background: #58452f; box-shadow: 0 2px 6px rgba(0, 0, 0, .24); font-weight: 700; }
.header-action { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-bright); }
.header-action span { margin-left: 7px; }
.hero { min-height: 500px; height: min(64vh, 660px); max-height: 660px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px clamp(22px, 12vw, 180px) 86px; background: radial-gradient(ellipse at 73% 47%, rgba(137, 78, 32, .2), transparent 33%), radial-gradient(ellipse at 78% 48%, rgba(91, 48, 24, .36), transparent 48%), linear-gradient(90deg, #100e0d 0%, rgba(16,14,13,.97) 39%, rgba(16,14,13,.66) 66%, rgba(16,14,13,.3) 100%), linear-gradient(0deg, #100e0d 0%, transparent 23%), linear-gradient(180deg, #100e0d 0%, transparent 21%), linear-gradient(135deg, #292018, #17120f 55%, #302014); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .22; background: repeating-linear-gradient(117deg, transparent 0 80px, rgba(222,181,112,.09) 81px, transparent 82px 165px); pointer-events: none; }
.hero-content { max-width: 600px; position: relative; z-index: 1; text-align: center; transform: translateY(-24px); }
.hero-content .eyebrow { justify-content: center; }
.hero-intro { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-welcome { position: absolute; z-index: 2; right: 5%; bottom: 58px; left: 5%; max-width: 760px; margin: 0 auto; color: var(--ink); font: 500 clamp(22px, 3vw, 32px)/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; text-align: center; text-shadow: 0 2px 18px #000; overflow-wrap: anywhere; }
.hero-welcome em { color: #e4d8c2; font-style: italic; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--gold); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 25px; height: 1px; background: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font: 500 clamp(48px, 7.5vw, 92px)/.99 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; text-shadow: 0 4px 26px #000; }
h1 span { color: var(--gold-bright); font-size: .68em; letter-spacing: .005em; }
.hero-intro { max-width: 470px; color: #c0b7a9; font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; transition: .2s ease; }
.button-primary { color: #000000; font-weight: 800; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.45); background: linear-gradient(110deg, #d3b77f, #aa874c); border: 1px solid #dfc58f; }
.button-primary:hover { filter: brightness(1.12); transform: translateY(-2px); }
.button-secondary { color: #e4d8c2; background: rgba(20, 17, 14, .72); border: 1px solid var(--gold); }
.button-secondary:hover { background: rgba(197, 165, 106, .12); border-color: var(--gold-bright); transform: translateY(-2px); }
.button-primary span { font-size: 16px; }
.text-link { color: #ddd1bd; font-size: 11px; }
.text-link span { color: var(--gold); margin-left: 6px; }
.hero-seal { width: clamp(190px, 26vw, 340px); aspect-ratio: 1; position: absolute; right: 13%; top: 49%; transform: translateY(-50%) rotate(-12deg); border: 1px solid rgba(207,165,94,.23); border-radius: 50%; display: grid; place-items: center; color: rgba(218,176,104,.24); font: 500 clamp(78px, 12vw, 150px) Georgia, serif; text-shadow: 0 0 35px rgba(207,165,94,.12); }
.hero-seal::before, .hero-seal::after { content: ''; position: absolute; inset: 12%; border: 1px solid rgba(207,165,94,.18); border-radius: 50%; }
.hero-seal::after { inset: 22%; border-style: dashed; }
.hero-seal i { position: absolute; width: 135%; height: 1px; background: rgba(207,165,94,.13); transform: rotate(48deg); }
.hero-caption { position: absolute; bottom: 28px; left: clamp(22px, 6vw, 92px); right: clamp(22px, 6vw, 92px); display: flex; justify-content: space-between; color: var(--faint); text-transform: uppercase; letter-spacing: .16em; font-size: 9px; }
.archive-section { padding: 92px clamp(22px, 12vw, 180px) 82px; background: linear-gradient(180deg, #100e0d, #151310); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { margin-bottom: 0; font: 500 clamp(28px, 4vw, 42px)/1.2 Georgia, 'Times New Roman', serif; }
h2 em { color: var(--gold-bright); font-style: normal; }
.section-note { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.placeholder-card { min-height: 125px; padding: 25px 30px; display: flex; align-items: center; gap: 20px; border: 1px solid var(--line); background: linear-gradient(110deg, rgba(35,30,24,.8), rgba(21,19,17,.6)); }
.placeholder-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(197,165,106,.38); color: var(--gold); font-size: 20px; }
.placeholder-card h3 { margin: 0 0 6px; font: 500 16px Georgia, 'Times New Roman', serif; }
.placeholder-card p { margin: 0; color: var(--muted); font-size: 12px; }
.coming-soon { margin-left: auto; padding: 8px 10px; border: 1px solid var(--line); color: var(--gold); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; white-space: nowrap; }
.progress-section { padding: 14px clamp(22px, 12vw, 180px) 54px; border-top: 1px solid rgba(255,255,255,.06); background: radial-gradient(ellipse at 50% 0%, rgba(137,78,32,.12), transparent 58%), #12100e; }
.progress-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.progress-heading .eyebrow { margin-bottom: 12px; }
.progress-heading h2 { font-size: clamp(25px, 3.4vw, 36px); }
.progress-heading h2 em { display: inline; }
.progress-card { padding: 26px 30px 22px; border: 1px solid var(--line); background: linear-gradient(110deg, rgba(35,30,24,.8), rgba(21,19,17,.72)); }
.progress-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 26px; }
.progress-stats div { min-width: 0; }
.progress-stats dt { margin-bottom: 9px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.progress-stats dd { margin: 0; color: var(--gold-bright); font: 500 16px Georgia, 'Times New Roman', serif; }
.progress-track { height: 10px; overflow: hidden; border: 1px solid rgba(197,165,106,.36); background: rgba(0,0,0,.42); }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #aa874c, var(--gold-bright)); }
.progress-track--copper span { background: linear-gradient(90deg, #8f3e2b, #c66a43); }
.progress-track--orange span { background: linear-gradient(90deg, #bd642c, #ee9a46); }
.progress-track--gold span { background: linear-gradient(90deg, #aa874c, var(--gold-bright)); }
.progress-track--green span { background: linear-gradient(90deg, #3e754c, #83b86f); }
.progress-caption { margin: 10px 0 0; color: var(--gold-bright); font-size: 14px; letter-spacing: .04em; text-align: center; text-shadow: 0 0 2px rgba(120, 25, 18, .9), 0 0 7px rgba(190, 54, 35, .72), 0 0 11px rgba(224, 112, 35, .62), 0 0 15px rgba(197, 165, 106, .52); }
.join-section { padding: 56px clamp(22px, 12vw, 180px); display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.06); background: #12100e; }
.join-section .eyebrow { margin-bottom: 12px; }
.join-section h2 { font-size: clamp(25px, 3.3vw, 35px); }
.join-section p:last-child { max-width: 490px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.button-quiet { border: 1px solid var(--line); color: var(--faint); cursor: default; }
.button-quiet span { color: var(--gold); }
.site-footer { padding: 22px clamp(22px, 6vw, 92px); display: flex; justify-content: space-between; gap: 15px; color: #655f56; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 720px) {
    .site-header { height: 72px; padding: 0 20px; }
    .brand-mark { width: 33px; height: 33px; }
    .main-nav { gap: 18px; }
    .nav-link { font-size: 10px; }
    .header-action { display: none; }
    .hero { min-height: 610px; height: auto; padding: 62px 25px 90px; background-position: 61% center; }
    .hero-seal { right: -13%; top: 30%; opacity: .65; }
    .hero-content { margin-top: 20px; }
    .hero-intro { max-width: 390px; }
    .archive-section { padding: 65px 24px; }
    .section-heading { align-items: start; flex-direction: column; gap: 13px; }
    .placeholder-card { padding: 20px; gap: 14px; }
    .placeholder-card h3 { font-size: 14px; }
    .placeholder-card p { line-height: 1.6; }
    .coming-soon { display: none; }
    .progress-section { padding: 46px 24px; }
    .progress-heading { align-items: start; flex-direction: column; gap: 13px; }
    .progress-heading h2 em { display: block; }
    .progress-card { padding: 21px 20px; }
    .progress-stats { grid-template-columns: 1fr; gap: 18px; margin-bottom: 22px; }
    .progress-stats dt { margin-bottom: 5px; }
    .join-section { padding: 42px 24px; align-items: flex-start; flex-direction: column; }
    .site-footer { padding: 20px 24px; flex-direction: column; }
}

@media (max-width: 420px) {
    .brand-copy strong { font-size: 11px; }
    .brand-copy small { font-size: 8px; }
    .main-nav { gap: 13px; }
    .nav-link { font-size: 9px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* ============================================================
   SANCTUARY – BUILD-FORMULAR
   ============================================================ */

.build-form-panel {
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--line);
    background: linear-gradient(110deg, rgba(35,30,24,.82), rgba(21,19,17,.78));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

.build-form-heading {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.build-form-heading h2 {
    margin: 0 0 7px;
    color: var(--gold-bright);
    font-size: clamp(22px, 3vw, 28px);
}

.build-form-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.build-form-success {
    position: relative;
    margin: 0 0 24px;
    padding: 14px 18px 14px 46px;
    border: 1px solid rgba(111, 174, 108, .48);
    color: #dcefd9;
    background: linear-gradient(110deg, rgba(35, 85, 46, .34), rgba(24, 53, 34, .28));
    font-size: 13px;
    line-height: 1.6;
}

.build-form-success::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: #91d18a;
    font-size: 16px;
    font-weight: 700;
}

.build-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.build-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.build-form-platform-scroll {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
}

.build-form-platform-grid {
    width: 100%;
    min-width: 740px;
    display: grid;
    grid-template-columns: minmax(175px, 1.1fr) minmax(160px, .95fr) minmax(160px, .95fr) minmax(190px, 1.15fr);
    gap: 12px;
}

.build-form-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.build-form-field[hidden] {
    display: none;
}

.build-form-field select:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.build-form label,
.build-form legend {
    color: var(--gold-bright);
    font-size: 12px;
    letter-spacing: .04em;
}

.build-form input[type="text"],
.build-form select,
.build-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    background: rgba(12, 11, 10, .72);
    border: 1px solid var(--line);
    border-radius: 0;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.build-form input[type="text"]::placeholder,
.build-form textarea::placeholder {
    color: var(--faint);
}

.build-form select {
    color-scheme: dark;
    cursor: pointer;
}

.build-form input[type="text"]:focus,
.build-form select:focus,
.build-form textarea:focus {
    outline: none;
    border-color: rgba(224, 197, 143, .72);
    background: #171411;
    box-shadow: 0 0 0 3px rgba(197, 165, 106, .1);
}

.build-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.65;
}

.build-form fieldset {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    min-width: 0;
    margin: 0;
    padding: 16px 18px 18px;
    border: 1px solid var(--line);
    background: rgba(12, 11, 10, .28);
}

.build-form legend {
    padding: 0 8px;
}

.build-form fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    cursor: pointer;
}

.build-form input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.build-form input[type="radio"]:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

/* Styling for the future submit button. */
.build-form button[type="submit"],
.build-form-submit {
    min-height: 48px;
    align-self: flex-start;
    padding: 0 22px;
    border: 1px solid #dfc58f;
    color: #000;
    background: linear-gradient(110deg, #d3b77f, #aa874c);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.build-form button[type="submit"]:hover,
.build-form-submit:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.build-form button[type="submit"]:focus-visible,
.build-form-submit:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .build-form-grid {
        grid-template-columns: 1fr;
    }

    .build-form-panel {
        padding: 22px;
    }
}

/* Standalone login page */
.login-page {
    min-height: 100vh;
    padding: clamp(24px, 6vh, 64px) 20px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 50% 18%, rgba(137, 78, 32, .13), transparent 48%),
        linear-gradient(180deg, #100e0d, #151310);
}

.login-card {
    width: min(100%, 560px);
    padding: clamp(26px, 6vw, 52px);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(35, 30, 24, .94), rgba(18, 16, 14, .98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.login-heading {
    margin-bottom: 30px;
    text-align: center;
}

.login-heading .eyebrow {
    justify-content: center;
    margin-bottom: 16px;
}

.login-heading h1 {
    margin-bottom: 12px;
    font-size: clamp(34px, 6vw, 48px);
    line-height: 1.1;
}

.login-heading h1 em {
    color: var(--gold-bright);
    font-style: normal;
}

.login-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.login-error-message {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid rgba(198, 106, 67, .48);
    color: #e0a28b;
    background: rgba(110, 43, 30, .18);
    font-size: 13px;
    line-height: 1.6;
}

.login-error-message ul {
    margin: 0;
    padding-left: 20px;
}

.login-success-message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(126, 162, 112, .42);
    color: #b9d0a8;
    background: rgba(45, 78, 38, .18);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.login-success-note {
    margin: 0 0 10px;
}

.login-form {
    display: grid;
    gap: 20px;
}

.login-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    color: var(--gold-bright);
    font-size: 12px;
    letter-spacing: .04em;
    text-align: left;
}

.login-field input[type="text"],
.login-field input[type="email"],
.login-field input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: rgba(12, 11, 10, .76);
    font: inherit;
    font-size: 14px;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.login-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: rgba(12, 11, 10, .76);
    font: inherit;
    font-size: 14px;
}

.login-field input:focus,
.login-field select:focus {
    outline: none;
    border-color: rgba(224, 197, 143, .72);
    background: #171411;
    box-shadow: 0 0 0 3px rgba(197, 165, 106, .1);
}

.login-remember {
    margin-top: -2px;
    text-align: left;
}

.login-remember .remember-me {
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
}

.login-submit {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    border: 1px solid #dfc58f;
    color: #17120b;
    background: linear-gradient(110deg, #e0c58f, #b18e53);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.login-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(197, 165, 106, .16);
}

.login-submit:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

.login-register {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.login-register a {
    color: var(--gold-bright);
}

.login-register a:hover {
    color: var(--ink);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-page {
        padding: 20px 14px;
    }

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

    .login-form {
        gap: 17px;
    }
}

/* Authentication controls */
.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.remember-me input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--gold);
}

.header-login .remember-me {
    white-space: nowrap;
}

.header-logout {
    display: flex;
    align-items: center;
    margin: 0;
}

.logout-button {
    font-family: inherit;
    cursor: pointer;
}

.logout-button:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

@media (max-width: 420px) {
    .build-form-panel {
        padding: 18px;
    }

    .build-form fieldset {
        gap: 16px;
    }

    .build-form button[type="submit"],
    .build-form-submit {
        width: 100%;
    }
}

/* Guest login controls in the shared header */
.header-login {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.header-login input[type="text"],
.header-login input[type="password"] {
    width: 132px;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(197, 165, 106, .48);
    border-radius: 6px;
    color: #f1e8d8;
    background: #211a14;
    font: inherit;
    font-size: 12px;
}

.header-login input[type="text"]::placeholder,
.header-login input[type="password"]::placeholder {
    color: #c0b39d;
    opacity: 1;
}

.header-login input[type="text"]:focus,
.header-login input[type="password"]:focus {
    outline: none;
    border-color: rgba(224, 197, 143, .78);
    box-shadow: 0 0 0 2px rgba(197, 165, 106, .14);
}

.header-login .remember-me {
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid #dfc58f;
    border-radius: 6px;
    color: #080705;
    background: linear-gradient(110deg, #d3b77f, #aa874c);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.header-login .remember-me:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .32);
}

.header-login .remember-me input[type="checkbox"] {
    accent-color: #080705;
}

.header-login button[type="submit"],
.main-nav > a.nav-link[href="register.php"] {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #dfc58f;
    border-radius: 6px;
    color: #080705;
    background: linear-gradient(110deg, #d3b77f, #aa874c);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.header-login button[type="submit"]:hover,
.main-nav > a.nav-link[href="register.php"]:hover {
    color: #080705;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .32);
}

.main-nav > a.nav-link[href="register.php"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Build archive */
.builds-archive {
    min-height: calc(100vh - 164px);
}

.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 22px;
}

.build-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(35, 30, 24, .88), rgba(18, 16, 14, .96));
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.build-card-class-placeholder {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    color: var(--gold-bright);
    background: radial-gradient(ellipse at center, rgba(197, 165, 106, .12), transparent 68%), #15120f;
}

.build-card-class-initial {
    color: rgba(224, 197, 143, .72);
    font: 500 54px/1 Georgia, 'Times New Roman', serif;
}

.build-card-class-caption {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.build-card-content {
    padding: 20px;
}

.build-card-heading {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.build-card-class-name {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.build-card-heading h2 {
    margin: 0;
    color: var(--ink);
    font: 500 22px/1.2 Georgia, 'Times New Roman', serif;
    overflow-wrap: anywhere;
}

.build-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0 0 18px;
}

.build-card-details div {
    min-width: 0;
}

.build-card-details dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.build-card-details dd {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.build-card-visibility {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.build-card-visibility.is-public {
    border-color: rgba(131, 184, 111, .38);
    color: #a8c99c;
}

.build-card-visibility.is-private {
    border-color: rgba(197, 165, 106, .34);
    color: var(--gold-bright);
}

.builds-empty {
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(30px, 6vw, 58px);
    border: 1px solid var(--line);
    background: linear-gradient(110deg, rgba(35, 30, 24, .8), rgba(21, 19, 17, .72));
    text-align: center;
}

.builds-empty-mark {
    display: block;
    margin-bottom: 15px;
    color: var(--gold);
    font-size: 28px;
}

.builds-empty h2 {
    margin-bottom: 9px;
    color: var(--gold-bright);
    font-size: clamp(23px, 4vw, 30px);
}

.builds-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 480px) {
    .build-card-content {
        padding: 17px;
    }

    .build-card-details {
        gap: 12px;
    }
}

/* Shared Sanctuary header */
.site-header.sanctuary-header {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px clamp(18px, 5vw, 72px) 12px;
    background: linear-gradient(180deg, #17130f, #100e0d);
}

.header-identity-row {
    width: min(100%, 1440px);
    min-height: 52px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.header-adt-title {
    justify-self: start;
    color: var(--gold-bright);
    font: 600 clamp(17px, 2vw, 23px)/1.2 Georgia, 'Times New Roman', serif;
    letter-spacing: .025em;
}

.header-greeting {
    min-width: 0;
    margin: 0;
    color: var(--muted);
    font: 500 clamp(17px, 2vw, 23px)/1.3 Georgia, 'Times New Roman', serif;
    text-align: center;
    overflow-wrap: anywhere;
}

.header-greeting strong {
    color: var(--ink);
    font-weight: 600;
}

.header-adt-balance {
    justify-self: end;
    min-width: 145px;
    display: grid;
    gap: 3px;
    padding: 7px 13px;
    border: 1px solid rgba(197, 165, 106, .32);
    background: rgba(197, 165, 106, .07);
    text-align: right;
}

.header-adt-balance span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.header-adt-balance strong {
    color: var(--gold-bright);
    font: 600 16px/1.2 Georgia, 'Times New Roman', serif;
    font-variant-numeric: tabular-nums;
}

.header-adt-balance-guest,
.header-greeting-guest {
    min-height: 1px;
}

.site-header.sanctuary-header .main-nav.sanctuary-nav {
    width: min(100%, 1440px);
    height: auto;
    min-height: 44px;
    justify-self: auto;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(205, 178, 128, .2);
    border-radius: 6px;
    background: rgba(21, 19, 17, .82);
}

.site-header.sanctuary-header .sanctuary-nav .nav-link {
    min-height: 36px;
    height: auto;
    padding: 0 12px;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: .04em;
}

.site-header.sanctuary-header .sanctuary-nav .nav-link.nav-button {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid #dfc58f;
    border-radius: 6px;
    color: #080705;
    background: linear-gradient(110deg, #d3b77f, #aa874c);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
    font-weight: 800;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.site-header.sanctuary-header .sanctuary-nav .nav-link.nav-button:hover,
.site-header.sanctuary-header .sanctuary-nav .nav-link.nav-button.is-active {
    color: #080705;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .32);
}

.site-header.sanctuary-header .header-login {
    flex-wrap: wrap;
    justify-content: center;
}

.site-header.sanctuary-header .header-login .remember-me {
    border: 0;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    font-size: 10px;
}

.site-header.sanctuary-header .header-login .remember-me:hover {
    transform: none;
    box-shadow: none;
}

.site-header.sanctuary-header .header-login button[type="submit"],
.site-header.sanctuary-header .header-register {
    min-height: 38px;
    border-color: #dfc58f;
    color: #17120b;
    background: linear-gradient(110deg, #d3b77f, #aa874c);
}

.site-header.sanctuary-header .header-logout {
    margin: 0;
}

@media (max-width: 720px) {
    .site-header.sanctuary-header {
        gap: 10px;
        padding: 12px 16px;
    }

    .header-identity-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 8px 12px;
    }

    .header-adt-title {
        grid-column: 1;
        grid-row: 1;
    }

    .header-greeting {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
    }

    .header-adt-balance {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        padding: 6px 9px;
    }

    .header-adt-balance strong {
        font-size: 14px;
    }

    .site-header.sanctuary-header .main-nav.sanctuary-nav {
        gap: 6px;
        padding: 8px;
    }

    .site-header.sanctuary-header .header-login {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .site-header.sanctuary-header .sanctuary-nav .nav-link.nav-button {
        padding: 0 9px;
        font-size: 10px;
    }

    .site-header.sanctuary-header .header-login input[type="text"],
    .site-header.sanctuary-header .header-login input[type="password"] {
        width: min(100%, 145px);
    }
}
/* Admin user management */
.user-management-page {
    width: min(1500px, calc(100% - 40px));
    margin: 36px auto 72px;
}

.user-management-panel {
    padding: clamp(20px, 3vw, 38px);
    border: 1px solid rgba(211, 183, 127, .28);
    border-radius: 12px;
    background: rgba(20, 17, 15, .92);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
}

.user-management-heading { margin-bottom: 24px; }
.user-management-heading h1 { margin: 8px 0; color: var(--ink, #eee7d8); font-size: clamp(32px, 4vw, 52px); }
.user-management-heading > p:last-child { color: var(--muted, #b8afa0); }
.user-management-table form[hidden] { display: none; }
.user-management-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.user-management-table-wrap { width: 100%; overflow-x: auto; }
.user-management-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.user-management-table th,
.user-management-table td { padding: 11px 9px; border-bottom: 1px solid rgba(211, 183, 127, .16); text-align: left; vertical-align: middle; }
.user-management-table th { color: var(--gold-bright, #e2c98f); font-size: .82rem; letter-spacing: .035em; }
.user-management-table td { color: var(--ink, #eee7d8); }
.user-management-input,
.user-management-select {
    width: 100%;
    min-width: 105px;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid rgba(211, 183, 127, .35);
    border-radius: 5px;
    color: var(--ink, #eee7d8);
    background: #171412;
    font: inherit;
}
.user-management-save {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #dfc58f;
    border-radius: 6px;
    color: #080705;
    background: linear-gradient(110deg, #d3b77f, #aa874c);
    font-weight: 800;
    cursor: pointer;
}
.user-management-save:hover { filter: brightness(1.08); }
.user-management-notice,
.user-management-error { margin: 14px 0; padding: 12px 14px; border-radius: 6px; }
.user-management-notice { border: 1px solid rgba(105, 170, 115, .55); color: #c8e5c9; background: rgba(49, 100, 57, .2); }
.user-management-error { border: 1px solid rgba(190, 92, 74, .6); color: #ffd0c5; background: rgba(122, 44, 33, .22); }

@media (max-width: 700px) {
    .user-management-page { width: min(100% - 20px, 1500px); margin: 20px auto 44px; }
    .user-management-panel { padding: 16px 12px; }
    .user-management-table { min-width: 920px; }
    .user-management-table th,
    .user-management-table td { padding: 9px 7px; }
}
/* ============================================================
   START: GEGENSTANDSPFLEGE – FORMULAR
   ============================================================ */

.admin-card {
    margin-bottom: 24px;
    border-radius: 8px;
}

.item-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.item-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.item-field label {
    color: var(--muted);
    font-size: 13px;
}

.item-field input,
.item-field select,
.item-field textarea {
    width: 100%;
    padding: 13px 15px;
    color: #eee;
    background: rgba(10, 10, 10, .65);
    border: 1px solid var(--line);
    border-radius: 5px;
    font: inherit;
}

.item-field textarea {
    min-height: 110px;
    resize: vertical;
}

.item-actions {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.item-actions button {
    padding: 13px 25px;
    color: #111;
    background: #c49a55;
    border: 0;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
}

.item-hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 650px) {
    .item-form {
        grid-template-columns: 1fr;
    }

    .item-field.full,
    .item-actions {
        grid-column: auto;
    }
}

/* ENDE: GEGENSTANDSPFLEGE – FORMULAR */

/* ============================================================
   START: GEGENSTANDSPFLEGE - SEITENLAYOUT
   ============================================================ */

.admin-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 24px 100px;
}

.admin-heading {
    margin-bottom: 38px;
}

.admin-heading h1 {
    font-size: clamp(36px, 6vw, 60px);
}

.admin-heading p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.admin-main .admin-card {
    padding: 30px;
    border: 1px solid var(--line);
    background: linear-gradient(
        110deg,
        rgba(35, 30, 24, .8),
        rgba(21, 19, 17, .72)
    );
}

@media (max-width: 600px) {
    .admin-main {
        padding: 45px 20px 70px;
    }

    .admin-main .admin-card {
        padding: 22px;
    }
}

/* ENDE: GEGENSTANDSPFLEGE - SEITENLAYOUT */

/* ============================================================
   SANCTUARY – ITEM SCANNER
   ============================================================ */

.scanner-main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 45px 24px 80px;
}

.scanner-heading {
    margin-bottom: 30px;
}

.scanner-heading h1 {
    font-size: clamp(32px, 5vw, 52px);
}

.scanner-heading p {
    color: var(--muted);
    font-size: 14px;
}

.scanner-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 20px;
    align-items: stretch;
}

.scanner-panel {
    min-width: 0;
    min-height: 550px;
    padding: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(
        110deg,
        rgba(35, 30, 24, .8),
        rgba(21, 19, 17, .72)
    );
}

.scanner-panel h2 {
    margin-bottom: 20px;
}

.scanner-placeholder {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px dashed var(--line);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 850px) {
    .scanner-workspace {
        grid-template-columns: 1fr;
    }
}

/* ENDE: ITEM SCANNER */
