:root {
    --void: #070809;
    --ember: #b95c21;
    --ember-hot: #f3a53b;
    --gold: #f7d47a;
    --gold-deep: #9d6b28;
    --fel: #64e75c;
    --text: #fff4d4;
    --muted: #c6aa76;
    --panel: rgba(22, 15, 10, .88);
    --line: rgba(247, 212, 122, .32);
    --red: #ff7777;
    --green: #9ff58b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Palatino Linotype", "Microsoft YaHei", "STKaiti", serif;
    background:
        linear-gradient(90deg, rgba(7, 8, 9, .94), rgba(7, 8, 9, .58) 52%, rgba(7, 8, 9, .9)),
        radial-gradient(circle at 18% 20%, rgba(184, 92, 33, .22), transparent 24rem),
        radial-gradient(circle at 82% 28%, rgba(100, 231, 92, .15), transparent 24rem),
        url("../images/register-hero.svg"),
        #070809;
    background-size: cover, auto, auto, cover, auto;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 212, 122, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 212, 122, .03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
}

a {
    color: inherit;
}

.page-shell {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 46px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(247, 212, 122, .75);
    border-radius: 50%;
    color: var(--gold);
    font-size: 29px;
    font-weight: 900;
    background: radial-gradient(circle, #3b250f, #100907 70%);
    box-shadow: 0 0 28px rgba(243, 165, 59, .24), inset 0 0 18px rgba(247, 212, 122, .22);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 20px;
    letter-spacing: .08em;
}

.brand small {
    margin-top: 3px;
    color: var(--muted);
    letter-spacing: .16em;
    text-transform: uppercase;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-nav a {
    padding: 10px 14px;
    border: 1px solid rgba(247, 212, 122, .28);
    border-radius: 999px;
    color: #f2d99a;
    text-decoration: none;
    background: rgba(0, 0, 0, .22);
    transition: .2s ease;
}

.top-nav a:hover {
    border-color: rgba(247, 212, 122, .74);
    transform: translateY(-1px);
}

.tool-hero {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(360px, .7fr);
    align-items: start;
    gap: 28px;
}

.tool-copy,
.tool-panel,
.notice-card,
.link-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 219, 143, .08), transparent 34%),
        linear-gradient(180deg, rgba(45, 25, 12, .9), rgba(11, 8, 6, .92));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .45), inset 0 0 44px rgba(247, 212, 122, .08);
}

.tool-copy {
    padding: 34px;
}

.tool-panel {
    position: relative;
    overflow: hidden;
    padding: 32px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--fel);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(100, 231, 92, .46);
}

h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -.045em;
    text-shadow: 0 5px 22px rgba(0, 0, 0, .85);
}

h2 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 30px;
}

.lead,
.muted {
    color: var(--muted);
    line-height: 1.75;
}

.lead {
    margin: 20px 0 0;
    font-size: 18px;
}

.status-grid,
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.status-grid article,
.quick-grid a {
    border: 1px solid rgba(247, 212, 122, .18);
    border-radius: 16px;
    padding: 16px;
    background: rgba(5, 5, 5, .38);
}

.status-grid strong {
    display: block;
    color: var(--gold);
    margin-bottom: 6px;
}

.quick-grid a {
    color: var(--text);
    text-decoration: none;
    transition: .2s ease;
}

.quick-grid a:hover {
    border-color: rgba(100, 231, 92, .48);
    transform: translateY(-2px);
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: #e8c98f;
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(247, 212, 122, .35);
    border-radius: 12px;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
    background: rgba(4, 5, 6, .72);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, .32);
}

input:focus,
select:focus {
    border-color: var(--fel);
    box-shadow: 0 0 0 3px rgba(100, 231, 92, .14), inset 0 0 20px rgba(0, 0, 0, .32);
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid rgba(247, 212, 122, .58);
    border-radius: 12px;
    color: #211205;
    font-weight: 900;
    letter-spacing: .08em;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(180deg, #ffe19a, #d38a2f 55%, #8d4a18);
    box-shadow: 0 0 28px rgba(243, 165, 59, .24), inset 0 1px rgba(255, 255, 255, .5);
    transition: .2s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn.ghost {
    color: #f5d68c;
    background: rgba(9, 8, 7, .56);
}

.message {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 12px;
    font-weight: 700;
}

.message.error {
    color: #ffe1e1;
    border: 1px solid rgba(255, 119, 119, .42);
    background: rgba(105, 18, 18, .34);
}

.message.success {
    color: #e8ffe0;
    border: 1px solid rgba(159, 245, 139, .42);
    background: rgba(23, 93, 36, .34);
}

.message.confirm {
    color: #fff4d4;
    border: 1px solid rgba(247, 212, 122, .42);
    background: rgba(97, 68, 23, .34);
}

.tool-stack {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.notice-card,
.link-card {
    padding: 22px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .site-header,
    .tool-hero {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 24px, 1120px);
        padding-top: 14px;
    }

    .tool-copy,
    .tool-panel {
        padding: 24px;
    }

    .status-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }
}
