/* Empire Aleman registration — Founding Protocol */

.rg-shell {
    --rg-gold: #c9a84c;
    --rg-gold-light: #f0d784;
    --rg-ink: #080706;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(600px, .85fr);
    min-height: calc(100svh - var(--nav-h, 3rem));
    overflow: clip;
    color: #eee7da;
    background: var(--rg-ink);
}

/* ── Founding showcase ──────────────────────────────────────── */
.rg-showcase {
    position: relative;
    align-self: start;
    width: 100%;
    min-width: 0;
    height: calc(100svh - var(--nav-h, 3rem));
    min-height: 720px;
    padding: clamp(2rem, 4vw, 4.5rem) clamp(2rem, 5vw, 6rem) 2.25rem;
    overflow: hidden;
    border-right: 1px solid rgba(201, 168, 76, .13);
    background: linear-gradient(145deg, #090806 0%, #100d08 48%, #080706 100%);
    isolation: isolate;
    position: sticky;
    top: var(--nav-h, 3rem);
}
.rg-atmosphere,
.rg-grid,
.rg-noise,
.rg-glow { position: absolute; inset: 0; pointer-events: none; }
.rg-atmosphere { z-index: -1; }
.rg-grid {
    opacity: .56;
    background-image:
        linear-gradient(rgba(201, 168, 76, .042) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, .042) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
    animation: rg-grid-drift 44s linear infinite;
}
.rg-noise {
    opacity: .024;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.rg-glow { border-radius: 50%; }
.rg-glow-one {
    inset: -26% 18% 44% -22%;
    background: radial-gradient(circle, rgba(201, 168, 76, .14), transparent 68%);
    animation: rg-breathe 10s ease-in-out infinite alternate;
}
.rg-glow-two {
    inset: 45% -22% -32% 30%;
    background: radial-gradient(circle, rgba(127, 70, 25, .13), transparent 68%);
    animation: rg-breathe 13s 1.5s ease-in-out infinite alternate-reverse;
}
.rg-showcase-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.rg-network,
.rg-live {
    display: flex;
    align-items: center;
    gap: .65rem;
    font: 500 .6rem/1.3 system-ui, sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.rg-network { color: rgba(240, 215, 132, .72); }
.rg-network span { width: 28px; height: 1px; background: linear-gradient(90deg, var(--rg-gold), transparent); }
.rg-live { color: rgba(213, 205, 191, .4); }
.rg-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #70a96f;
    box-shadow: 0 0 0 4px rgba(112, 169, 111, .08), 0 0 12px rgba(112, 169, 111, .4);
    animation: rg-status 2.6s ease-in-out infinite;
}
.rg-showcase-copy {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin-top: clamp(3.5rem, 7vh, 6rem);
}
.rg-showcase-copy > p {
    margin: 0 0 1.1rem;
    font: 600 .6rem/1.4 system-ui, sans-serif;
    letter-spacing: .27em;
    text-transform: uppercase;
    color: rgba(201, 168, 76, .72);
}
.rg-showcase-copy .rg-showcase-title {
    margin: 0;
    font: 300 clamp(3.35rem, 5.5vw, 6rem)/.88 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -.035em;
    color: #eee8dc;
}
.rg-showcase-copy .rg-showcase-title em { color: var(--rg-gold-light); font-weight: 400; }
.rg-showcase-copy > span {
    display: block;
    max-width: 520px;
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(201, 168, 76, .34);
    color: rgba(218, 208, 192, .48);
    font: 300 .84rem/1.75 system-ui, sans-serif;
    letter-spacing: .025em;
}

.rg-insignia-stage {
    position: absolute;
    z-index: 1;
    right: clamp(-8rem, -4vw, -2rem);
    bottom: 1rem;
    width: min(60vw, 650px);
    opacity: .82;
}
.rg-insignia { display: block; width: 100%; height: auto; overflow: visible; }
.rg-orbit { transform-origin: 380px 260px; animation: rg-orbit 42s linear infinite; }
.rg-orbit-b { animation-direction: reverse; animation-duration: 58s; }
.rg-founder-seal { transform-origin: 380px 260px; animation: rg-founder-float 5s ease-in-out infinite alternate; }
.rg-seal-core { transform-origin: center; animation: rg-core-pulse 2.8s ease-in-out infinite; }
.rg-rays { transform-origin: 380px 260px; animation: rg-orbit 70s linear infinite reverse; }
.rg-faction-node { animation: rg-node-float 4.5s ease-in-out infinite; }
.rg-node-teuton { animation-delay: -1.4s; }
.rg-node-gaul { animation-delay: -2.8s; }
.rg-connection-lines path { animation: rg-route 2.2s linear infinite; }
.rg-scan-line { transform-origin: 380px 260px; animation: rg-scan 7s ease-in-out infinite; }
.rg-insignia-label {
    position: absolute;
    display: grid;
    min-width: 86px;
    gap: .18rem;
    padding: .48rem .6rem;
    border: 1px solid rgba(201, 168, 76, .12);
    background: rgba(8, 7, 5, .68);
    backdrop-filter: blur(8px);
}
.rg-insignia-label small { color: rgba(201, 168, 76, .36); font: 500 .46rem/1 system-ui, sans-serif; letter-spacing: .16em; }
.rg-insignia-label strong { color: rgba(232, 211, 160, .7); font: 500 .64rem/1.2 system-ui, sans-serif; letter-spacing: .08em; }
.rg-label-roman { top: 31%; left: 14%; }
.rg-label-teuton { top: 31%; right: 8%; }
.rg-label-gaul { right: 36%; bottom: 18%; }

.rg-showcase-facts {
    position: absolute;
    z-index: 3;
    right: clamp(2rem, 5vw, 6rem);
    bottom: 1.65rem;
    left: clamp(2rem, 5vw, 6rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(201, 168, 76, .09);
}
.rg-showcase-facts > div { display: flex; min-width: 0; align-items: center; gap: .65rem; }
.rg-showcase-facts > div > span {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(201, 168, 76, .17);
    border-radius: 8px;
    color: rgba(233, 205, 132, .7);
    background: rgba(201, 168, 76, .045);
    font: 500 .55rem/1 system-ui, sans-serif;
    letter-spacing: .08em;
}
.rg-showcase-facts p { display: grid; min-width: 0; gap: .2rem; margin: 0; }
.rg-showcase-facts small { color: rgba(202, 192, 175, .28); font: 500 .45rem/1 system-ui, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.rg-showcase-facts strong { overflow: hidden; color: rgba(225, 213, 192, .62); font: 500 .64rem/1.3 system-ui, sans-serif; letter-spacing: .025em; text-overflow: ellipsis; white-space: nowrap; }

/* ── Registration workspace ─────────────────────────────────── */
.rg-access {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.2rem, 3.5vw, 3.5rem) 1.5rem;
    background:
        radial-gradient(circle at 50% 3%, rgba(201, 168, 76, .07), transparent 25%),
        linear-gradient(160deg, #0d0b08, #080706 65%);
}
.rg-access::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(201, 168, 76, .04);
    pointer-events: none;
}
.rg-access::after {
    content: 'EA';
    position: absolute;
    right: 1rem;
    bottom: 1.5rem;
    color: rgba(201, 168, 76, .018);
    font: 300 8rem/.7 'Cormorant Garamond', Georgia, serif;
    pointer-events: none;
}
.rg-mobile-brand { display: none; }
.rg-access-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 570px;
    padding: clamp(2rem, 3.4vw, 3rem);
    border: 1px solid rgba(201, 168, 76, .15);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .008));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .025);
    backdrop-filter: blur(16px);
}
.rg-access-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 18%;
    width: 64%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 215, 132, .68), transparent);
}
.rg-card-corners i { position: absolute; width: 12px; height: 12px; border-color: rgba(201, 168, 76, .5); }
.rg-card-corners i:nth-child(1) { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.rg-card-corners i:nth-child(2) { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.rg-card-corners i:nth-child(3) { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.rg-card-corners i:nth-child(4) { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }

.rg-form-head { text-align: center; }
.rg-form-symbol {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 50%;
    color: var(--rg-gold-light);
    background: radial-gradient(circle, rgba(201, 168, 76, .12), transparent 68%);
}
.rg-form-symbol svg { width: 50px; height: 50px; }
.rg-form-eyebrow { margin: 0 0 .6rem; color: rgba(201, 168, 76, .72); font: 600 .55rem/1 system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase; }
.rg-form-head h1 { margin: 0; color: #f0e9de; font: 400 clamp(2rem, 3vw, 2.65rem)/1 'Cormorant Garamond', Georgia, serif; letter-spacing: -.01em; }
.rg-form-head > p:last-child { max-width: 380px; margin: .8rem auto 0; color: rgba(206, 197, 182, .43); font: 400 .75rem/1.65 system-ui, sans-serif; }
.rg-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(201, 168, 76, .1);
    border-bottom: 1px solid rgba(201, 168, 76, .1);
}
.rg-progress li { position: relative; display: flex; min-width: 0; align-items: center; justify-content: center; gap: .42rem; padding: .72rem .3rem; }
.rg-progress li + li::before { content: ''; position: absolute; top: 25%; bottom: 25%; left: 0; width: 1px; background: rgba(201, 168, 76, .1); }
.rg-progress span { color: rgba(201, 168, 76, .52); font: 600 .48rem/1 system-ui, sans-serif; letter-spacing: .1em; }
.rg-progress strong { overflow: hidden; color: rgba(211, 201, 184, .43); font: 600 .52rem/1 system-ui, sans-serif; letter-spacing: .12em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

.rg-form { display: grid; gap: 1.3rem; margin-top: 1.7rem; }
.rg-form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.rg-form-section legend {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .55rem;
    margin-bottom: .9rem;
    color: rgba(219, 207, 185, .58);
    font: 650 .58rem/1 system-ui, sans-serif;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.rg-form-section legend::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 168, 76, .13), transparent); }
.rg-form-section legend span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(201, 168, 76, .17); border-radius: 6px; color: rgba(201, 168, 76, .72); font-size: .48rem; }
.rg-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.rg-field { min-width: 0; }
.rg-field > label {
    display: block;
    margin-bottom: .43rem;
    color: rgba(218, 207, 189, .5);
    font: 600 .57rem/1 system-ui, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.rg-control { position: relative; min-width: 0; }
.rg-control > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: .85rem;
    width: 16px;
    height: 16px;
    color: rgba(201, 168, 76, .44);
    transform: translateY(-50%);
    pointer-events: none;
}
.rg-control input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 2.7rem 0 2.65rem;
    border: 1px solid rgba(201, 168, 76, .13);
    border-radius: 5px;
    outline: none;
    color: #ede5d8;
    background: rgba(0, 0, 0, .18);
    box-shadow: inset 0 1px 8px rgba(0, 0, 0, .12);
    font: 400 .78rem/1 system-ui, sans-serif;
    caret-color: var(--rg-gold-light);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.rg-control input::placeholder { color: rgba(198, 189, 174, .22); }
.rg-control input:hover { border-color: rgba(201, 168, 76, .25); }
.rg-control input:focus { border-color: rgba(226, 193, 104, .56); background: rgba(201, 168, 76, .032); box-shadow: 0 0 0 3px rgba(201, 168, 76, .055), inset 0 1px 8px rgba(0, 0, 0, .12); }
.rg-control input:focus ~ .rg-control-line { transform: scaleX(1); }
.rg-control:focus-within > svg { color: var(--rg-gold-light); }
.rg-control-line { position: absolute; bottom: 0; left: 18%; width: 64%; height: 1px; background: linear-gradient(90deg, transparent, var(--rg-gold-light), transparent); transform: scaleX(0); transition: transform .25s ease; pointer-events: none; }
.rg-control.has-error input,
.rg-control.is-mismatch input { border-color: rgba(207, 88, 72, .52); background: rgba(138, 43, 32, .04); }
.rg-control.is-match input { border-color: rgba(103, 171, 111, .4); }
.rg-field-hint { min-height: 1em; margin: .38rem 0 0; color: rgba(199, 190, 174, .27); font: 400 .52rem/1.35 system-ui, sans-serif; }
.rg-field-error { display: flex; align-items: flex-start; gap: .35rem; margin: .4rem 0 0; color: #d58f85; font: 500 .58rem/1.4 system-ui, sans-serif; }
.rg-field-error svg { flex: 0 0 13px; width: 13px; height: 13px; margin-top: .03rem; }

/* Autofill follows the same dark field and gold border system. */
.rg-control input:-webkit-autofill,
.rg-control input:-webkit-autofill:hover,
.rg-control input:autofill { border-color: rgba(201, 168, 76, .23) !important; }
.rg-control input:-webkit-autofill:focus,
.rg-control input:autofill:focus { border-color: rgba(226, 193, 104, .56) !important; }
.rg-control:has(input:-webkit-autofill)::before,
.rg-control:has(input:autofill)::before {
    content: '';
    position: absolute;
    z-index: 3;
    inset: 0;
    border: 1px solid rgba(201, 168, 76, .23);
    border-radius: 5px;
    pointer-events: none;
}
.rg-control:has(input:-webkit-autofill:focus)::before,
.rg-control:has(input:autofill:focus)::before { border-color: rgba(226, 193, 104, .56); }

.rg-pass-toggle {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: .25rem;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 4px;
    color: rgba(215, 203, 181, .38);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s, background .2s;
}
.rg-pass-toggle:hover,
.rg-pass-toggle:focus-visible { color: var(--rg-gold-light); background: rgba(201, 168, 76, .06); outline: none; }
.rg-pass-toggle svg { width: 17px; height: 17px; }
.rg-cloak { display: none; }
.rg-match-icon { position: absolute; z-index: 2; top: 50%; right: 2.85rem; display: grid; width: 18px; height: 18px; place-items: center; color: #76b77c; transform: translateY(-50%); }
.rg-match-icon svg { width: 16px; height: 16px; }
.rg-control.is-mismatch .rg-match-icon { color: #d36e63; }
.rg-strength { display: flex; align-items: center; gap: .55rem; margin-top: .4rem; }
.rg-strength-bars { display: grid; flex: 1; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.rg-strength-bars i { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .055); transition: background .25s; }
.rg-strength-bars .level-1 { background: #9b3f36; }
.rg-strength-bars .level-2 { background: #a26330; }
.rg-strength-bars .level-3 { background: #a88336; }
.rg-strength-bars .level-4 { background: var(--rg-gold); }
.rg-strength strong { min-width: 3rem; color: rgba(201, 168, 76, .62); font: 600 .5rem/1 system-ui, sans-serif; letter-spacing: .08em; text-align: right; text-transform: uppercase; }

/* ── Factions ───────────────────────────────────────────────── */
.rg-faction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.rg-faction-btn {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 122px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem .5rem;
    border: 1px solid rgba(201, 168, 76, .11);
    border-radius: 6px;
    outline: none;
    color: rgba(201, 168, 76, .52);
    background: rgba(255, 255, 255, .012);
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.rg-faction-btn:hover { border-color: rgba(201, 168, 76, .3); background: rgba(201, 168, 76, .035); transform: translateY(-1px); }
.rg-faction-btn:focus-visible { border-color: rgba(240, 215, 132, .68); box-shadow: 0 0 0 3px rgba(201, 168, 76, .07); }
.rg-faction-btn.selected { border-color: rgba(201, 168, 76, .68); color: var(--rg-gold-light); background: linear-gradient(145deg, rgba(201, 168, 76, .095), rgba(201, 168, 76, .025)); box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 8px 24px rgba(0, 0, 0, .14); }
.rg-faction-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(201, 168, 76, .16); border-radius: 9px; background: rgba(201, 168, 76, .035); transition: border-color .2s, background .2s; }
.rg-faction-icon svg { width: 22px; height: 22px; }
.rg-faction-btn.selected .rg-faction-icon { border-color: rgba(201, 168, 76, .42); background: rgba(201, 168, 76, .09); }
.rg-faction-copy { display: grid; min-width: 0; gap: .2rem; }
.rg-faction-copy small { color: rgba(204, 193, 174, .25); font: 600 .43rem/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.rg-faction-copy strong { color: rgba(222, 210, 190, .62); font: 500 .93rem/1 'Cormorant Garamond', Georgia, serif; letter-spacing: .05em; }
.rg-faction-copy em { color: rgba(202, 192, 174, .3); font: 400 .49rem/1.35 system-ui, sans-serif; }
.rg-faction-btn.selected .rg-faction-copy strong { color: #e3c875; }
.rg-faction-btn.selected .rg-faction-copy em { color: rgba(224, 199, 125, .55); }
.rg-faction-check { position: absolute; top: .42rem; right: .42rem; display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid rgba(201, 168, 76, .38); border-radius: 50%; opacity: 0; background: rgba(201, 168, 76, .16); transform: scale(.7); transition: opacity .2s, transform .2s; }
.rg-faction-check svg { width: 9px; height: 9px; }
.rg-faction-btn.selected .rg-faction-check { opacity: 1; transform: scale(1); }
.rg-faction-error { margin-top: .55rem; }

/* ── Consent, verification and submit ───────────────────────── */
.rg-consent-panel,
.rg-verification { border: 1px solid rgba(201, 168, 76, .1); border-radius: 6px; background: rgba(0, 0, 0, .13); }
.rg-consent-panel { padding: .85rem .9rem; }
.rg-check { position: relative; display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
.rg-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rg-check-box { display: grid; flex: 0 0 19px; width: 19px; height: 19px; margin-top: .05rem; place-items: center; border: 1px solid rgba(201, 168, 76, .36); border-radius: 4px; color: #171006; background: rgba(201, 168, 76, .045); transition: border-color .2s, background .2s, box-shadow .2s; }
.rg-check-box svg { width: 12px; height: 12px; opacity: 0; transform: scale(.7); transition: opacity .15s, transform .15s; }
.rg-check input:checked + .rg-check-box { border-color: #d4b35d; background: linear-gradient(135deg, #e0bd63, #a97d2f); box-shadow: 0 4px 12px rgba(126, 84, 18, .18); }
.rg-check input:checked + .rg-check-box svg { opacity: 1; transform: scale(1); }
.rg-check input:focus-visible + .rg-check-box { outline: 2px solid #f0d784; outline-offset: 3px; }
.rg-check > span:last-child { display: grid; gap: .2rem; }
.rg-check strong { color: rgba(222, 208, 184, .68); font: 600 .63rem/1.35 system-ui, sans-serif; letter-spacing: .025em; }
.rg-check small { color: rgba(202, 192, 174, .31); font: 400 .54rem/1.45 system-ui, sans-serif; }
.rg-verification { padding: .8rem .9rem; }
.rg-verification-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.rg-verification-head span { display: flex; align-items: center; gap: .4rem; color: rgba(220, 207, 182, .56); font: 600 .55rem/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.rg-verification-head span svg { width: 15px; height: 15px; color: rgba(201, 168, 76, .65); }
.rg-verification-head small { color: rgba(201, 191, 174, .24); font: 400 .49rem/1.3 system-ui, sans-serif; }
.rg-turnstile { width: 100%; min-width: 0; overflow: hidden; border-radius: 5px; }
.rg-turnstile .cf-turnstile { width: 100%; min-width: 0; }
.rg-turnstile-error { margin-top: .55rem; }
.rg-submit {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    overflow: hidden;
    border: 1px solid #d4b35d;
    border-radius: 5px;
    color: #171006;
    background: linear-gradient(115deg, #9b742b, #e0bd63 45%, #b58a35);
    box-shadow: 0 12px 28px rgba(111, 75, 17, .18), inset 0 1px rgba(255, 248, 211, .42);
    font: 750 .66rem/1 system-ui, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s, filter .18s, box-shadow .18s;
}
.rg-submit:hover:not(:disabled) { filter: brightness(1.09); box-shadow: 0 15px 35px rgba(154, 108, 28, .27), inset 0 1px rgba(255, 248, 211, .55); transform: translateY(-1px); }
.rg-submit:active:not(:disabled) { transform: translateY(0); }
.rg-submit:focus-visible { outline: 2px solid #f5db8e; outline-offset: 3px; }
.rg-submit:disabled { cursor: wait; filter: saturate(.6); opacity: .72; }
.rg-submit > *:not(.rg-submit-shine) { position: relative; z-index: 1; }
.rg-submit svg { width: 18px; height: 18px; }
.rg-submit-shine { position: absolute; top: -120%; bottom: -120%; left: -35%; width: 20%; background: rgba(255, 255, 255, .27); transform: rotate(18deg); transition: left .6s ease; }
.rg-submit:hover .rg-submit-shine { left: 120%; }
.rg-spinner { width: 15px; height: 15px; border: 2px solid rgba(23, 16, 6, .28); border-top-color: #171006; border-radius: 50%; animation: rg-spin .7s linear infinite; }
.rg-privacy { display: flex; align-items: flex-start; justify-content: center; gap: .35rem; margin: -.25rem auto 0; color: rgba(201, 191, 174, .27); font: 400 .5rem/1.45 system-ui, sans-serif; text-align: center; }
.rg-privacy svg { flex: 0 0 12px; width: 12px; height: 12px; margin-top: .02rem; color: rgba(201, 168, 76, .42); }
.rg-privacy a { color: rgba(224, 199, 125, .57); text-decoration: none; }
.rg-login-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.45rem; padding-top: 1.15rem; border-top: 1px solid rgba(201, 168, 76, .1); color: rgba(204, 194, 178, .38); font: 400 .65rem/1.4 system-ui, sans-serif; }
.rg-login-link a { display: inline-flex; min-height: 38px; align-items: center; gap: .3rem; color: rgba(233, 205, 132, .82); text-decoration: none; }
.rg-login-link a:hover { color: var(--rg-gold-light); }
.rg-login-link svg { width: 14px; height: 14px; transition: transform .2s; }
.rg-login-link a:hover svg { transform: translateX(3px); }
.rg-legal { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; margin-top: 1.5rem; color: rgba(203, 193, 176, .2); font: 500 .5rem/1.4 system-ui, sans-serif; letter-spacing: .08em; }
.rg-legal a { color: rgba(203, 193, 176, .32); text-decoration: none; }
.rg-legal a:hover { color: rgba(233, 205, 132, .75); }

/* ── Motion ─────────────────────────────────────────────────── */
@keyframes rg-grid-drift { to { background-position: 64px 64px; } }
@keyframes rg-breathe { to { opacity: .7; transform: scale(1.1) translate3d(2%, 2%, 0); } }
@keyframes rg-status { 50% { box-shadow: 0 0 0 7px rgba(112, 169, 111, 0), 0 0 16px rgba(112, 169, 111, .58); } }
@keyframes rg-orbit { to { transform: rotate(360deg); } }
@keyframes rg-founder-float { to { transform: translateY(-5px); } }
@keyframes rg-core-pulse { 50% { opacity: .55; transform: scale(1.8); } }
@keyframes rg-node-float { 50% { opacity: .62; transform: translateY(-4px); } }
@keyframes rg-route { to { stroke-dashoffset: -22; } }
@keyframes rg-scan { 0%, 100% { opacity: .1; transform: rotate(-20deg) scaleX(.65); } 50% { opacity: .78; transform: rotate(20deg) scaleX(1); } }
@keyframes rg-spin { to { transform: rotate(360deg); } }
@keyframes rg-rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.rg-showcase-top { animation: rg-rise .7s .08s cubic-bezier(.22, 1, .36, 1) both; }
.rg-showcase-copy { animation: rg-rise .8s .16s cubic-bezier(.22, 1, .36, 1) both; }
.rg-insignia-stage { animation: rg-rise 1s .24s cubic-bezier(.22, 1, .36, 1) both; }
.rg-showcase-facts { animation: rg-rise .8s .36s cubic-bezier(.22, 1, .36, 1) both; }
.rg-access-card { animation: rg-rise .75s .12s cubic-bezier(.22, 1, .36, 1) both; }
.rg-legal { animation: rg-rise .75s .25s cubic-bezier(.22, 1, .36, 1) both; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1279px) {
    .rg-shell { grid-template-columns: minmax(0, 1fr) minmax(560px, .9fr); }
    .rg-showcase { padding-right: 3rem; padding-left: 3rem; }
    .rg-showcase-copy .rg-showcase-title { font-size: clamp(3.4rem, 5.4vw, 5rem); }
    .rg-insignia-stage { right: -9rem; width: 650px; }
    .rg-showcase-facts { right: 3rem; left: 3rem; }
    .rg-showcase-facts > div:nth-child(2) { display: none; }
    .rg-showcase-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 999px) {
    .rg-shell { display: block; min-height: calc(100svh - var(--nav-h, 3rem)); overflow: visible; }
    .rg-showcase { display: none; }
    .rg-access { min-height: calc(100svh - var(--nav-h, 3rem)); padding: 2rem 1rem 1.25rem; overflow: hidden; }
    .rg-access::before { inset: 10px; }
    .rg-access::after { font-size: 7rem; }
    .rg-mobile-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: .7rem; margin-bottom: 1.25rem; color: var(--rg-gold); font: 400 1.1rem/1 'Cormorant Garamond', Georgia, serif; letter-spacing: .08em; text-transform: uppercase; }
    .rg-mobile-brand svg { width: 38px; height: 38px; }
    .rg-mobile-brand em { color: #eee7da; }
    .rg-access-card { max-width: 600px; }
}

@media (max-width: 620px) {
    .rg-access { padding: 1.25rem .75rem 1rem; }
    .rg-mobile-brand { margin-bottom: 1rem; }
    .rg-access-card { padding: 1.6rem 1rem 1.3rem; }
    .rg-form-symbol { width: 46px; height: 46px; margin-bottom: .8rem; }
    .rg-form-symbol svg { width: 43px; height: 43px; }
    .rg-form-head h1 { font-size: 2rem; }
    .rg-form-head > p:last-child { font-size: .7rem; }
    .rg-progress { margin-top: 1.3rem; }
    .rg-progress strong { font-size: .46rem; letter-spacing: .08em; }
    .rg-form { margin-top: 1.35rem; }
    .rg-fields-grid { grid-template-columns: 1fr; }
    .rg-control input { font-size: 16px; }
    .rg-faction-grid { grid-template-columns: 1fr; }
    .rg-faction-btn { min-height: 82px; flex-direction: row; justify-content: flex-start; gap: .75rem; padding: .7rem .8rem; text-align: left; }
    .rg-faction-copy { flex: 1; }
    .rg-faction-icon { flex: 0 0 38px; width: 38px; height: 38px; }
    .rg-faction-check { top: 50%; right: .8rem; transform: translateY(-50%) scale(.7); }
    .rg-faction-btn.selected .rg-faction-check { transform: translateY(-50%) scale(1); }
    .rg-faction-copy em { padding-right: 1.5rem; }
    .rg-verification-head { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .rg-turnstile {
        left: 50%;
        width: max(100%, 300px);
        overflow: visible;
        position: relative;
        transform: translateX(-50%);
    }
    .rg-login-link { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .rg-legal span { width: 100%; text-align: center; }
}

@media (max-width: 360px) {
    .rg-access-card { padding-right: .8rem; padding-left: .8rem; }
    .rg-progress strong { display: none; }
    .rg-progress li { padding-top: .65rem; padding-bottom: .65rem; }
    .rg-verification { padding-right: .6rem; padding-left: .6rem; }
}

@media (max-height: 820px) and (min-width: 1000px) {
    .rg-showcase { min-height: 690px; padding-top: 2.2rem; }
    .rg-showcase-copy { margin-top: 3rem; }
    .rg-showcase-copy .rg-showcase-title { font-size: clamp(3.3rem, 5vw, 5rem); }
    .rg-insignia-stage { bottom: 1rem; width: min(61vw, 590px); }
}

@media (prefers-reduced-motion: reduce) {
    .rg-shell *,
    .rg-shell *::before,
    .rg-shell *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ── Federated registration ──────────────────────────────────── */
.rg-oauth {
    margin-top: 1.45rem;
}
.rg-oauth-divider {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: rgba(203, 193, 176, .3);
    font: 600 .5rem/1 system-ui, sans-serif;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
}
.rg-oauth-divider::before,
.rg-oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, .14));
}
.rg-oauth-divider::after { background: linear-gradient(90deg, rgba(201, 168, 76, .14), transparent); }
.rg-oauth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .8rem;
}
.rg-oauth-btn {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .65rem .75rem;
    border: 1px solid rgba(225, 216, 197, .14);
    border-radius: 5px;
    color: #e9e3d9;
    background: rgba(255, 255, 255, .035);
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
    font: 650 .62rem/1 system-ui, sans-serif;
    letter-spacing: .04em;
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.rg-oauth-btn:hover,
.rg-oauth-btn:focus-visible {
    border-color: rgba(240, 215, 132, .5);
    background: rgba(201, 168, 76, .08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .17), inset 0 1px rgba(255, 255, 255, .05);
    outline: none;
    transform: translateY(-1px);
}
.rg-oauth-btn:focus-visible { outline: 2px solid rgba(240, 215, 132, .6); outline-offset: 2px; }
.rg-oauth-btn svg { flex: 0 0 18px; width: 18px; height: 18px; }
.rg-oauth-google { color: #f0ece5; }
.rg-oauth-discord { color: #d7d8ff; }
.rg-oauth > p {
    margin: .65rem 0 0;
    color: rgba(203, 193, 176, .25);
    font: 400 .5rem/1.4 system-ui, sans-serif;
    text-align: center;
}
.rg-oauth-confirm,
.rg-oauth-error {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: 1.25rem;
    padding: .8rem .9rem;
    border: 1px solid rgba(201, 168, 76, .2);
    border-radius: 6px;
    background: rgba(201, 168, 76, .045);
}
.rg-oauth-confirm-icon {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(201, 168, 76, .3);
    border-radius: 50%;
    color: #e2c56f;
}
.rg-oauth-confirm-icon svg { width: 17px; height: 17px; }
.rg-oauth-confirm > span:last-child { display: grid; gap: .2rem; }
.rg-oauth-confirm strong { color: #e4cc87; font: 650 .64rem/1.3 system-ui, sans-serif; letter-spacing: .04em; }
.rg-oauth-confirm small { color: rgba(220, 208, 187, .43); font: 400 .55rem/1.45 system-ui, sans-serif; }
.rg-oauth-error {
    border-color: rgba(207, 88, 72, .25);
    background: rgba(138, 43, 32, .09);
    color: #dca69e;
    font: 400 .63rem/1.4 system-ui, sans-serif;
}
.rg-oauth-error > svg { flex: 0 0 17px; width: 17px; height: 17px; color: #df8477; }
.rg-control input[readonly] { color: rgba(237, 229, 216, .58); cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
    .rg-oauth-btn { transition-duration: .01ms; }
}
