@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Inter:wght@400;500&display=swap');

:root {
    --gold:        #C9922A;
    --gold-light:  #E8B84B;
    --gold-dim:    #7A5518;
    --smoke:       #141414;
    --smoke-mid:   #1E1E1E;
    --smoke-light: #2A2A2A;
    --border:      #333;
    --text:        #D4CFCA;
    --text-muted:  #7A7470;
    --success:     #4A7C59;
    --error:       #8B3A3A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--smoke);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(201,146,42,0.08) 0%, transparent 60%);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* ── Header ── */
.site-header {
    text-align: center;
    margin-bottom: 2rem;
}

.site-header img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--gold-dim);
    margin-bottom: 1rem;
    display: block;
    margin-inline: auto;
}

.site-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.05em;
    text-shadow: 0 0 24px rgba(201,146,42,0.3);
}

.site-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

/* ── Card ── */
.card {
    background: var(--smoke-mid);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold-dim);
    border-radius: 4px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
}

/* ── Form elements ── */
.field {
    margin-bottom: 1.5rem;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.field input[type="text"] {
    width: 100%;
    background: var(--smoke-light);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
    transition: border-color 0.15s;
    outline: none;
}

.field input[type="text"]:focus {
    border-color: var(--gold-dim);
}

/* ── Checkboxes ── */
.check-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
    user-select: none;
}

.check-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--smoke-light);
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.check-label input[type="checkbox"]:checked {
    background: var(--gold-dim);
    border-color: var(--gold);
}

.check-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: 2px solid var(--gold-light);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ── Submit button ── */
.btn-submit {
    width: 100%;
    background: var(--gold-dim);
    border: 1px solid var(--gold);
    border-radius: 3px;
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-submit:hover {
    background: var(--gold);
    color: var(--smoke);
}

/* ── Divider ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ── Status panels (success / error) ── */
.status-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.status-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    text-align: center;
    margin-bottom: 0.5rem;
}

.status-msg {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

.card.success { border-top-color: var(--success); }
.card.error   { border-top-color: var(--error); }

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gold-dim);
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.back-link:hover { color: var(--gold-light); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

@media (max-width: 520px) {
    .site-header h1 { font-size: 1.5rem; }
    .card { padding: 1.5rem; }
}

/* ── Community card (success page) ── */
.card.community {
    margin-top: 1rem;
    border-top-color: #5865F2;
}

.community-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #5865F2;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 3px;
    transition: background 0.15s;
}

.discord-btn:hover { background: #4752C4; }

.discord-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.link-pill {
    display: block;
    text-align: center;
    background: var(--smoke-light);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s, color 0.15s;
}

.link-pill:hover {
    border-color: var(--gold-dim);
    color: var(--gold-light);
}