.registration-layout {
    display: block;
    width: 100%;
    padding: var(--gap);
    background: #080909;
}

.registration-page {
    --reg-gold: #d69a2b;
    --reg-pale: #edd39b;
    position: relative;
    isolation: isolate;
    min-height: 880px;
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3.5rem) 3.5rem;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 6, 6, 0.97) 0%, rgba(7, 8, 8, 0.9) 56%, rgba(7, 8, 8, 0.72) 100%),
        radial-gradient(circle at 76% 26%, rgba(112, 67, 13, 0.25), transparent 27rem),
        url("../images/header5-zRB9asr.png") 60% center / cover no-repeat;
}

.registration-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, #090a0a 0%, transparent 12%, transparent 82%, #090a0a 100%),
        repeating-linear-gradient(118deg, transparent 0 10px, rgba(255, 255, 255, 0.012) 11px, transparent 12px 22px);
    box-shadow: inset 0 0 90px 28px rgba(0, 0, 0, 0.72);
}

.registration-hero,
.registration-frame,
.registration-legal { position: relative; z-index: 4; }

.registration-hero {
    width: min(760px, 78%);
    margin: 0 auto 2.5rem 0;
    text-align: center;
}

.registration-kicker {
    margin: 0 0 0.8rem;
    color: #c5a665;
    font: 600 clamp(0.65rem, 1.5vw, 0.78rem)/1.4 Verdana, Arial, sans-serif;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-shadow: 0 2px 5px #000;
}

.registration-kicker span { color: var(--reg-gold); }

.registration-hero h1 {
    margin: 0;
    color: transparent;
    font: 400 clamp(2rem, 5vw, 3.65rem)/1.08 Georgia, 'Times New Roman', serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff0c7, #d9a23b 47%, #7f581c 52%, #e4bd68 76%, #7a5521);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 3px 0 #120c03) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.82));
}

.registration-hero > p:last-child {
    max-width: 640px;
    margin: 0 auto;
    color: #bcb7ae;
    font: 0.92rem/1.75 Verdana, Arial, sans-serif;
    text-shadow: 0 2px 4px #000;
}

.registration-divider {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: min(370px, 70%);
    margin: 1.25rem auto;
}

.registration-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(214, 154, 43, 0.7)); }
.registration-divider span:last-child { transform: scaleX(-1); }
.registration-divider i { width: 9px; height: 9px; border: 1px solid var(--reg-gold); transform: rotate(45deg); box-shadow: 0 0 8px rgba(214, 154, 43, 0.35); }

.registration-frame {
    width: min(790px, 100%);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, rgba(226, 177, 82, 0.72), rgba(63, 49, 29, 0.2) 25%, rgba(128, 91, 31, 0.45) 75%, rgba(225, 172, 70, 0.58)) 1;
    background:
        radial-gradient(circle at 30% 0%, rgba(126, 81, 17, 0.12), transparent 42%),
        linear-gradient(145deg, rgba(18, 19, 19, 0.96), rgba(6, 7, 7, 0.98));
    box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.72), 0 22px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

.registration-corner { position: absolute; width: 28px; height: 28px; pointer-events: none; border-color: #bd842a; opacity: 0.75; }
.registration-corner--tl { top: 7px; left: 7px; border-top: 1px solid; border-left: 1px solid; }
.registration-corner--tr { top: 7px; right: 7px; border-top: 1px solid; border-right: 1px solid; }
.registration-corner--bl { bottom: 7px; left: 7px; border-bottom: 1px solid; border-left: 1px solid; }
.registration-corner--br { right: 7px; bottom: 7px; border-right: 1px solid; border-bottom: 1px solid; }

.registration-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.registration-column--account { padding-right: clamp(0rem, 2vw, 1.5rem); border-right: 1px solid rgba(200, 151, 59, 0.17); }

.registration-section-heading { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.25rem; }
.registration-section-heading p,
.registration-section-heading h2 { margin: 0; }
.registration-section-heading p { color: #8c7957; font: 0.62rem/1.4 Verdana, Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
.registration-section-heading h2 { color: #e7dfd0; font: 400 1.15rem/1.3 Georgia, 'Times New Roman', serif; letter-spacing: 0.04em; text-transform: uppercase; }

.registration-step {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(207, 151, 49, 0.55);
    color: var(--reg-gold);
    transform: rotate(45deg);
    box-shadow: inset 0 0 16px rgba(176, 105, 8, 0.11), 0 0 12px rgba(0, 0, 0, 0.6);
}

.registration-step i { font: normal 700 0.72rem/1 Georgia, 'Times New Roman', serif; transform: rotate(-45deg); }

.registration-note {
    margin: -0.25rem 0 1.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(190, 142, 54, 0.12);
    color: #77746e;
    font: 0.72rem/1.6 Verdana, Arial, sans-serif;
}

.field { margin-bottom: 1rem; }
.field > label,
.avatar-picker-label { display: block; margin: 0 0 0.38rem; color: #bfb8aa; font: 600 0.68rem/1.4 Verdana, Arial, sans-serif; letter-spacing: 0.09em; text-transform: uppercase; }

.field input[type='text'],
.field input[type='email'],
.field input[type='password'],
.field select {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(159, 124, 64, 0.35);
    border-radius: 0;
    outline: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.025), transparent 45%), rgba(4, 5, 5, 0.78);
    color: #ece7dc;
    font: 0.88rem/1 Verdana, Arial, sans-serif;
    box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.55);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input:focus,
.field select:focus {
    border-color: rgba(222, 166, 61, 0.85);
    background-color: rgba(20, 15, 7, 0.88);
    box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(202, 140, 33, 0.1), 0 0 14px rgba(180, 109, 13, 0.12);
}

.field select { cursor: pointer; }
.form-error { margin-top: 0.35rem; color: #dc8378; font: 0.7rem/1.4 Verdana, Arial, sans-serif; }
.form-error:empty { display: none; }
.form-error ul { margin: 0; padding-left: 1.1rem; }

.registration-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; }

.professions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-bottom: 1rem; }
.profession-choice {
    position: relative;
    display: grid;
    min-height: 64px;
    place-items: center;
    padding: 0.75rem 0.35rem;
    overflow: hidden;
    border: 1px solid rgba(131, 108, 70, 0.34);
    background: linear-gradient(145deg, rgba(29, 30, 29, 0.88), rgba(7, 8, 8, 0.95));
    color: #9d9991;
    cursor: pointer;
    text-align: center;
    transition: color 150ms ease, border-color 150ms ease, filter 150ms ease;
}

.profession-choice:hover { color: #ead7ad; border-color: rgba(210, 156, 58, 0.55); filter: brightness(1.14); }
.profession-choice:has(input:checked) {
    border-color: var(--reg-gold);
    background: radial-gradient(circle at 50% 0%, rgba(188, 117, 16, 0.22), transparent 75%), linear-gradient(145deg, rgba(49, 35, 12, 0.9), rgba(9, 9, 8, 0.97));
    color: #f1ddb5;
    box-shadow: inset 0 0 22px rgba(155, 90, 7, 0.13), 0 0 12px rgba(185, 111, 12, 0.11);
}

.profession-choice input { position: absolute; opacity: 0; pointer-events: none; }
.profession-choice__marker { width: 9px; height: 9px; margin-bottom: 0.35rem; border: 1px solid #80663a; transform: rotate(45deg); }
.profession-choice:has(input:checked) .profession-choice__marker { border-color: #efbb57; background: #b87516; box-shadow: 0 0 9px rgba(224, 151, 35, 0.48); }
.profession-choice__name,
.profession-choice__name label { color: inherit; font: 600 0.7rem/1.2 Verdana, Arial, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }

.profession-panel {
    position: relative;
    min-height: 250px;
    padding: 1.1rem;
    border: 1px solid rgba(165, 126, 58, 0.25);
    background: radial-gradient(circle at 100% 0%, rgba(150, 93, 11, 0.14), transparent 55%), rgba(5, 6, 6, 0.72);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.55);
}

.profession-panel.hidden { display: none; }
.profession-panel.is-leaving { animation: registration-panel-leave 170ms cubic-bezier(0.4, 0, 1, 1) both; }
.profession-panel.is-entering { animation: registration-panel-enter 540ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.registration-column--profession:has(.profession-panel:not(.hidden)) .profession-empty { display: none; }

@keyframes registration-panel-leave {
    from { opacity: 1; translate: 0 0; filter: blur(0); }
    to { opacity: 0; translate: -5px 2px; filter: blur(4px); }
}

@keyframes registration-panel-enter {
    0% { opacity: 0; translate: 7px 3px; filter: blur(6px); }
    55% { opacity: 0.88; filter: blur(1px); }
    100% { opacity: 1; translate: 0 0; filter: blur(0); }
}

.profession-empty {
    display: grid;
    min-height: 250px;
    place-items: center;
    align-content: center;
    gap: 0.8rem;
    padding: 2rem;
    border: 1px solid rgba(165, 126, 58, 0.16);
    background: radial-gradient(circle, rgba(133, 83, 12, 0.1), transparent 65%), rgba(5, 6, 6, 0.48);
    color: #6f695f;
    text-align: center;
}

.profession-empty span {
    color: #9f7021;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 7px rgba(210, 137, 26, 0.25));
}

.profession-empty p {
    max-width: 240px;
    margin: 0;
    font: italic 0.78rem/1.65 Georgia, 'Times New Roman', serif;
    letter-spacing: 0.05em;
}
.profession-panel__eyebrow { margin: 0 0 0.15rem; color: #8b7247; font: 0.58rem/1.3 Verdana, Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
.profession-panel h3 { margin: 0 0 0.55rem; color: #e3bd72; font: 400 1.35rem/1.2 Georgia, 'Times New Roman', serif; letter-spacing: 0.07em; text-transform: uppercase; }
.profession-panel__copy > p:not(.profession-panel__eyebrow) { min-height: 42px; margin: 0; color: #aaa69f; font: 0.72rem/1.55 Verdana, Arial, sans-serif; }

.profession-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1.15rem; }
.profession-skills span { padding: 0.28rem 0.45rem; border: 1px solid rgba(166, 128, 63, 0.27); background: rgba(25, 24, 21, 0.75); color: #a9a194; font: 0.58rem/1 Verdana, Arial, sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
.avatar-picker-label { margin-top: 0.25rem; color: #8c7957; }

.avatar-picker { display: grid; grid-template-columns: repeat(4, 52px); gap: 0.55rem; }
.avatar-picker button {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(146, 116, 67, 0.42);
    border-radius: 0;
    outline: none;
    background-color: #090a0a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 44px 44px;
    cursor: pointer;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.65);
    transition: transform 150ms ease, border-color 150ms ease, filter 150ms ease;
}

.avatar-picker button:hover { transform: translateY(-2px); border-color: rgba(223, 168, 65, 0.75); filter: brightness(1.2); }
.avatar-picker button.selected { border-color: #efb748; box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.65), 0 0 0 2px rgba(174, 105, 12, 0.22), 0 0 12px rgba(211, 139, 24, 0.3); }

.registration-terms { margin-top: 1.4rem; }
.terms-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(131, 108, 70, 0.34);
    background: linear-gradient(145deg, rgba(29, 30, 29, 0.88), rgba(7, 8, 8, 0.95));
    color: #9d9991;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, filter 150ms ease;
}

.terms-choice:hover { color: #ead7ad; border-color: rgba(210, 156, 58, 0.55); filter: brightness(1.14); }
.terms-choice:focus-within { outline: 2px solid #efc36e; outline-offset: 3px; }
.terms-choice:has(input:checked) {
    border-color: var(--reg-gold);
    background: radial-gradient(circle at 0% 0%, rgba(188, 117, 16, 0.22), transparent 75%), linear-gradient(145deg, rgba(49, 35, 12, 0.9), rgba(9, 9, 8, 0.97));
    color: #f1ddb5;
    box-shadow: inset 0 0 22px rgba(155, 90, 7, 0.13), 0 0 12px rgba(185, 111, 12, 0.11);
}

.terms-choice input { position: absolute; opacity: 0; pointer-events: none; }
.terms-choice__marker {
    position: relative;
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 0.1rem;
    border: 1px solid #80663a;
    background: rgba(4, 5, 5, 0.6);
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.terms-choice__marker::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #0b0c0c;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 120ms ease;
}

.terms-choice:has(input:checked) .terms-choice__marker { border-color: #efbb57; background: #b87516; box-shadow: 0 0 9px rgba(224, 151, 35, 0.48); }
.terms-choice:has(input:checked) .terms-choice__marker::after { opacity: 1; }
.terms-choice__text { font: 0.72rem/1.55 Verdana, Arial, sans-serif; letter-spacing: 0.02em; }
.terms-choice__text a { color: #efc36e; text-decoration: underline; text-underline-offset: 2px; }
.terms-choice__text a:hover,
.terms-choice__text a:focus-visible { color: #f8d998; }

.registration-submit-wrap { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.8rem; }
.registration-submit-wrap > span { width: min(90px, 12vw); height: 1px; background: linear-gradient(90deg, transparent, rgba(209, 155, 54, 0.7)); }
.registration-submit-wrap > span:last-child { transform: scaleX(-1); }

.registration-submit {
    min-width: 260px;
    padding: 0.9rem 1.4rem;
    border: 1px solid rgba(224, 165, 55, 0.78);
    border-radius: 0;
    background: linear-gradient(130deg, rgba(255, 223, 159, 0.13), transparent 42%), linear-gradient(180deg, #65400c, #201405);
    color: #f4dfb5;
    font: 700 0.75rem/1 Verdana, Arial, sans-serif;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 9px 22px rgba(0, 0, 0, 0.42);
    transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.registration-submit:hover { transform: translateY(-2px); filter: brightness(1.16); box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.42), 0 0 15px rgba(193, 121, 16, 0.2), 0 10px 24px rgba(0, 0, 0, 0.45); }

.registration-submit:disabled {
    cursor: not-allowed;
    filter: grayscale(0.5) brightness(0.6);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    transform: none;
}

.registration-submit:disabled:hover { transform: none; filter: grayscale(0.5) brightness(0.6); box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); }
.registration-submit:focus-visible,
.avatar-picker button:focus-visible,
.profession-choice:focus-within { outline: 2px solid #efc36e; outline-offset: 3px; }

.registration-knight {
    --registration-character-opacity: 1;
    position: absolute;
    z-index: 3;
    right: -4.5rem;
    bottom: 0;
    width: clamp(330px, 39vw, 475px);
    max-height: 82%;
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
    opacity: var(--registration-character-opacity);
    filter: saturate(0.72) contrast(1.1) brightness(0.6) drop-shadow(-22px 15px 25px rgba(0, 0, 0, 0.78));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
    transform-origin: 72% 62%;
    will-change: opacity, translate, scale, filter;
}

/*
 * Every source cutout has a different amount of transparent space around the
 * body. Anchor the faces rather than the image rectangles, so the character's
 * eyes always remain in the clear area to the right of the form.
 */
@media (min-width: 901px) {
    .registration-knight[data-profession='lotr'] { right: -12.5rem; }
    .registration-knight[data-profession='lowca'] { right: -11.5rem; }
}

@media (min-width: 721px) and (max-width: 900px) {
    .registration-knight[data-profession='lotr'] { right: -14.75rem; }
    .registration-knight[data-profession='lowca'] { right: -14rem; }
}

.registration-character-ghost {
    z-index: 4;
}

.registration-character-ghost.is-leaving {
    animation: registration-character-leave 360ms cubic-bezier(0.4, 0, 1, 1) both;
}

.registration-knight.is-entering {
    animation: registration-character-enter 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.registration-character-flare {
    --flare-rgb: 224, 157, 51;
    --flare-hot-rgb: 255, 222, 151;
    position: absolute;
    z-index: 2;
    right: -1rem;
    bottom: 8%;
    width: min(42vw, 500px);
    height: 68%;
    pointer-events: none;
    opacity: 0.14;
    background:
        radial-gradient(ellipse at 64% 44%, rgba(244, 190, 83, 0.28) 0 5%, rgba(212, 139, 33, 0.13) 26%, transparent 62%),
        radial-gradient(circle at 57% 32%, rgba(255, 215, 125, 0.48) 0 1px, transparent 3px),
        radial-gradient(circle at 73% 58%, rgba(242, 176, 62, 0.38) 0 1px, transparent 3px),
        radial-gradient(circle at 49% 68%, rgba(255, 205, 103, 0.3) 0 1px, transparent 3px);
    filter: blur(7px) drop-shadow(0 0 22px rgba(216, 147, 36, 0.48));
    mix-blend-mode: normal;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.registration-character-particles {
    position: absolute;
    z-index: 2;
    right: -1rem;
    bottom: 8%;
    width: min(42vw, 500px);
    height: 68%;
    pointer-events: none;
    opacity: 0;
    --flare-rgb: 224, 157, 51;
    --flare-hot-rgb: 255, 222, 151;
    background:
        radial-gradient(circle, rgba(var(--flare-hot-rgb), 0.92) 0 1px, transparent 1.8px) 12% 74% / 47px 53px,
        radial-gradient(circle, rgba(var(--flare-rgb), 0.72) 0 1px, transparent 2.2px) 68% 38% / 61px 67px,
        radial-gradient(circle, rgba(var(--flare-hot-rgb), 0.54) 0 1.5px, transparent 2.8px) 35% 61% / 83px 79px;
    filter: blur(0.25px) drop-shadow(0 0 4px rgba(var(--flare-rgb), 0.72));
    -webkit-mask-image: radial-gradient(ellipse at 60% 55%, #000 0 46%, transparent 78%);
    mask-image: radial-gradient(ellipse at 60% 55%, #000 0 46%, transparent 78%);
}

.registration-page[data-character-profession='lotr'] .registration-character-flare {
    --flare-rgb: 211, 48, 31;
    --flare-hot-rgb: 255, 126, 91;
    background:
        radial-gradient(ellipse at 64% 45%, rgba(211, 35, 20, 0.32), transparent 58%),
        radial-gradient(circle at 57% 32%, rgba(255, 90, 57, 0.5) 0 1px, transparent 3px),
        radial-gradient(circle at 73% 58%, rgba(222, 46, 27, 0.4) 0 1px, transparent 3px);
    filter: blur(8px) drop-shadow(0 0 22px rgba(187, 28, 18, 0.65));
}

.registration-page[data-character-profession='lowca'] .registration-character-flare {
    --flare-rgb: 35, 194, 224;
    --flare-hot-rgb: 129, 239, 255;
    background:
        radial-gradient(ellipse at 64% 45%, rgba(24, 199, 225, 0.28), transparent 58%),
        radial-gradient(circle at 57% 32%, rgba(104, 232, 255, 0.5) 0 1px, transparent 3px),
        radial-gradient(circle at 73% 58%, rgba(39, 193, 224, 0.4) 0 1px, transparent 3px);
    filter: blur(8px) drop-shadow(0 0 22px rgba(20, 166, 204, 0.65));
}

.registration-page[data-character-profession='lotr'] .registration-character-particles {
    --flare-rgb: 211, 48, 31;
    --flare-hot-rgb: 255, 126, 91;
}

.registration-page[data-character-profession='lowca'] .registration-character-particles {
    --flare-rgb: 35, 194, 224;
    --flare-hot-rgb: 129, 239, 255;
}

.registration-fantasy-dust {
    --dust-rgb: 211, 153, 53;
    --dust-hot-rgb: 255, 222, 151;
    position: absolute;
    z-index: 4;
    right: -1rem;
    bottom: 5%;
    width: min(47vw, 580px);
    height: 72%;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
}

.registration-fantasy-dust i {
    --dust-x: 50%;
    --dust-size: 8px;
    --dust-height: 13px;
    --dust-drift: 8px;
    --dust-rise: 430px;
    --dust-alpha: 0.72;
    position: absolute;
    left: var(--dust-x);
    bottom: -8%;
    width: var(--dust-size);
    height: var(--dust-height);
    background: linear-gradient(135deg, rgba(var(--dust-hot-rgb), 0.96), rgba(var(--dust-rgb), 0.68) 55%, rgba(var(--dust-rgb), 0.16));
    clip-path: polygon(50% 0, 100% 46%, 58% 100%, 0 58%);
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(var(--dust-rgb), 0.78));
    animation: registration-fantasy-dust-rise 11s linear infinite;
    will-change: transform, opacity;
}

.registration-fantasy-dust i:nth-child(1) { --dust-x: 13%; --dust-size: 7px; --dust-height: 11px; --dust-drift: 15px; --dust-rise: 360px; animation-duration: 9.5s; animation-delay: -4s; }
.registration-fantasy-dust i:nth-child(2) { --dust-x: 27%; --dust-size: 12px; --dust-height: 18px; --dust-drift: -12px; --dust-rise: 470px; --dust-alpha: 0.48; animation-duration: 14s; animation-delay: -9s; filter: blur(0.35px) drop-shadow(0 0 6px rgba(var(--dust-rgb), 0.72)); }
.registration-fantasy-dust i:nth-child(3) { --dust-x: 39%; --dust-size: 5px; --dust-height: 8px; --dust-drift: 22px; --dust-rise: 390px; animation-duration: 8s; animation-delay: -1.5s; }
.registration-fantasy-dust i:nth-child(4) { --dust-x: 52%; --dust-size: 9px; --dust-height: 14px; --dust-drift: -18px; --dust-rise: 510px; --dust-alpha: 0.58; animation-duration: 16s; animation-delay: -12s; }
.registration-fantasy-dust i:nth-child(5) { --dust-x: 64%; --dust-size: 6px; --dust-height: 12px; --dust-drift: 10px; --dust-rise: 420px; animation-duration: 10.5s; animation-delay: -7s; }
.registration-fantasy-dust i:nth-child(6) { --dust-x: 76%; --dust-size: 14px; --dust-height: 20px; --dust-drift: -25px; --dust-rise: 480px; --dust-alpha: 0.38; animation-duration: 18s; animation-delay: -3s; filter: blur(0.7px) drop-shadow(0 0 7px rgba(var(--dust-rgb), 0.68)); }
.registration-fantasy-dust i:nth-child(7) { --dust-x: 88%; --dust-size: 5px; --dust-height: 8px; --dust-drift: 12px; --dust-rise: 340px; animation-duration: 8.5s; animation-delay: -6s; }
.registration-fantasy-dust i:nth-child(8) { --dust-x: 20%; --dust-size: 8px; --dust-height: 13px; --dust-drift: -9px; --dust-rise: 440px; animation-duration: 13s; animation-delay: -2s; }
.registration-fantasy-dust i:nth-child(9) { --dust-x: 59%; --dust-size: 5px; --dust-height: 7px; --dust-drift: 28px; --dust-rise: 370px; animation-duration: 9s; animation-delay: -8s; }
.registration-fantasy-dust i:nth-child(10) { --dust-x: 82%; --dust-size: 9px; --dust-height: 16px; --dust-drift: -14px; --dust-rise: 520px; --dust-alpha: 0.46; animation-duration: 17s; animation-delay: -14s; }

.registration-page[data-character-profession='lotr'] .registration-fantasy-dust {
    --dust-rgb: 196, 43, 27;
    --dust-hot-rgb: 255, 118, 80;
}

.registration-page[data-character-profession='lowca'] .registration-fantasy-dust {
    --dust-rgb: 32, 177, 211;
    --dust-hot-rgb: 127, 232, 249;
}

.registration-character-flare.is-active {
    animation: registration-character-flare 1180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.registration-character-particles.is-active {
    animation: registration-particles-rise 1250ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes registration-character-leave {
    0% { opacity: var(--registration-character-opacity); translate: 0 0; scale: 1; filter: saturate(0.72) contrast(1.1) brightness(0.6) blur(0) drop-shadow(-22px 15px 25px rgba(0, 0, 0, 0.78)); }
    42% { opacity: calc(var(--registration-character-opacity) * 0.38); filter: saturate(0.76) contrast(1.07) brightness(0.57) blur(3px) drop-shadow(-17px 13px 23px rgba(0, 0, 0, 0.58)); }
    100% { opacity: 0; translate: -6px 2px; scale: 0.995; filter: saturate(0.64) contrast(1.03) brightness(0.48) blur(8px) drop-shadow(-12px 12px 22px rgba(0, 0, 0, 0.4)); }
}

@keyframes registration-character-enter {
    0% {
        opacity: 0;
        translate: 8px 4px;
        scale: 1.018;
        filter: saturate(0.9) contrast(1.08) brightness(0.72) blur(9px) drop-shadow(-12px 8px 22px rgba(214, 150, 43, 0.35));
    }
    36% {
        opacity: calc(var(--registration-character-opacity) * 0.82);
        filter: saturate(0.84) contrast(1.1) brightness(0.67) blur(1.5px) drop-shadow(-19px 13px 24px rgba(82, 47, 8, 0.5));
    }
    100% {
        opacity: var(--registration-character-opacity);
        translate: 0 0;
        scale: 1;
        filter: saturate(0.72) contrast(1.1) brightness(0.6) blur(0) drop-shadow(-22px 15px 25px rgba(0, 0, 0, 0.78));
    }
}

@keyframes registration-character-flare {
    0% { opacity: 0.14; transform: scale(0.94); }
    18% { opacity: 0.52; transform: scale(1.015); }
    34% { opacity: 0.24; }
    49% { opacity: 0.39; transform: scale(1.025); }
    70% { opacity: 0.2; }
    100% { opacity: 0.14; transform: scale(1); }
}

@keyframes registration-particles-rise {
    0% { opacity: 0; translate: 0 20px; scale: 0.9; }
    16% { opacity: 0.78; }
    58% { opacity: 0.42; }
    100% { opacity: 0; translate: -9px -58px; scale: 1.08; }
}

@keyframes registration-fantasy-dust-rise {
    0% { opacity: 0; transform: translate3d(0, 22px, 0) rotate(0deg) scale(0.72); }
    12% { opacity: var(--dust-alpha); }
    54% { opacity: 0.42; }
    86% { opacity: 0.16; }
    100% { opacity: 0; transform: translate3d(var(--dust-drift), calc(0px - var(--dust-rise)), 0) rotate(540deg) scale(1.12); }
}

.registration-glow { position: absolute; z-index: 2; width: 300px; height: 300px; border-radius: 50%; filter: blur(90px); pointer-events: none; mix-blend-mode: screen; }
.registration-glow--gold { right: 6%; bottom: 18%; background: rgba(172, 91, 8, 0.18); }
.registration-glow--red { top: 19%; left: 4%; width: 220px; height: 220px; background: rgba(120, 24, 10, 0.08); }

.registration-legal { width: min(790px, 100%); margin: 1.2rem 0 0; color: #66635d; font: 0.65rem/1.6 Verdana, Arial, sans-serif; letter-spacing: 0.04em; text-align: center; }

@media (max-width: 900px) {
    .registration-page { min-height: 0; }
    .registration-hero,
    .registration-frame { width: 100%; }
    .registration-knight { --registration-character-opacity: 0.22; right: -8rem; }
    .registration-character-flare,
    .registration-character-particles,
    .registration-fantasy-dust { display: none; }
}

@media (max-width: 720px) {
    .registration-layout { padding: 0; }
    .registration-page { padding: 3rem 0.85rem 2.5rem; }
    .registration-grid { grid-template-columns: 1fr; }
    .registration-column--account { padding-right: 0; padding-bottom: 1.4rem; border-right: 0; border-bottom: 1px solid rgba(200, 151, 59, 0.17); }
    .registration-knight { --registration-character-opacity: 0.12; right: 50%; bottom: 0; width: min(115vw, 480px); transform: translateX(50%); }
    .registration-legal { margin-inline: auto; }
}

@media (max-width: 440px) {
    .registration-hero h1 { font-size: 2rem; }
    .registration-kicker { letter-spacing: 0.14em; }
    .registration-frame { padding: 1.15rem 0.9rem; }
    .professions { grid-template-columns: 1fr; }
    .profession-choice { display: flex; justify-content: flex-start; min-height: 48px; padding: 0.65rem 0.85rem; text-align: left; }
    .profession-choice__marker { margin: 0 0.7rem 0 0; }
    .avatar-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .avatar-picker button { width: 100%; height: auto; aspect-ratio: 1; }
    .registration-submit-wrap > span { display: none; }
    .registration-submit { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .registration-submit,
    .avatar-picker button,
    .profession-choice { transition: none; }
    .registration-knight.is-leaving,
    .registration-character-ghost.is-leaving,
    .registration-knight.is-entering,
    .profession-panel.is-leaving,
    .profession-panel.is-entering,
    .registration-character-flare.is-active,
    .registration-character-particles.is-active { animation: none; }
    .registration-fantasy-dust i { animation: none; }
}
