/* PROMISED.WORLD — Registration page (mockup) */

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

html, body {
    height: 100%;
}

body.pw-register {
    font-family: 'Source Sans 3', Tahoma, Verdana, sans-serif;
    font-size: 14px;
    color: #d4c4b0;
    background-color: #0a0806;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 168, 108, 0.07) 0%, transparent 55%),
        linear-gradient(180deg, #12100d 0%, #0a0806 45%, #070504 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Top header (full width banner + nav) ── */
.pw-top {
    position: relative;
    z-index: 10;
    width: 100%;
    background: #0a0806;
}

.pw-hero {
    width: 100%;
    line-height: 0;
    background-color: #0a0806;
    border-bottom: 1px solid rgba(201, 168, 108, 0.15);
    overflow: hidden;
}

.pw-hero picture,
.pw-hero-img {
    display: block;
    width: 100%;
    height: auto;
}

.pw-top .pw-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    border: none;
    border-top: 1px solid rgba(201,168,108,0.22);
    border-bottom: 1px solid rgba(201,168,108,0.22);
    border-radius: 0;
    background: rgba(6,5,4,0.95);
    padding: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.pw-top .pw-nav-icon {
    padding: 12px 16px;
    border-right: 1px solid rgba(201,168,108,0.2);
}

.pw-top .pw-nav a {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    border-left: 1px solid rgba(201,168,108,0.12);
}

.pw-nav-icon {
    color: #c9a86c;
    font-size: 16px;
    line-height: 1;
}

.pw-nav a {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a86c;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.pw-nav a:hover {
    color: #f5e6c8;
    background: rgba(201,168,108,0.1);
}

/* ── Layout shell ── */
.pw-wrap {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 20px 32px;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

/* ── Main grid ── */
.pw-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
    flex: 1;
}

@media (max-width: 900px) {
    .pw-main {
        grid-template-columns: 1fr;
    }
}

/* ── Gold card base ── */
.pw-card {
    background: rgba(12, 9, 6, 0.88);
    border: 1px solid rgba(201,168,108,0.5);
    border-radius: 6px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 0 30px rgba(201,168,108,0.12),
        0 16px 48px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,240,210,0.06);
    position: relative;
    overflow: hidden;
}

.pw-card::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(201,168,108,0.15);
    border-radius: 3px;
    pointer-events: none;
}

.pw-card-title {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: #e8d5b0;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(201,168,108,0.22);
    background: linear-gradient(180deg, rgba(201,168,108,0.07) 0%, transparent 100%);
}

/* ── Registration wizard ── */
.pw-reg-card {
    padding-bottom: 0;
}

.pw-reg-inner {
    display: flex;
    gap: 24px;
    padding: 22px 24px 16px;
    align-items: flex-start;
}

@media (max-width: 600px) {
    .pw-reg-inner {
        flex-direction: column;
        align-items: center;
    }
}

/* NPC */
.pw-npc {
    flex: 0 0 200px;
    text-align: center;
}

.pw-npc-frame {
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.pw-npc-frame img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
}

.pw-npc-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #8ec0ff;
    background: linear-gradient(180deg, #1a3060, #0c1830);
    border: 1px solid rgba(100,150,230,0.45);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.pw-npc-badge b { color: #a8c8ff; }

/* Dialog */
.pw-dialog-col {
    flex: 1;
    min-width: 0;
}

.pw-dialog {
    font-size: 15px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.75;
    color: #ccc0b0;
    padding: 18px 20px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(201,168,108,0.28);
    border-radius: 4px;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 16px rgba(0,0,0,0.35);
}

.pw-dialog b { font-style: normal; font-weight: 600; }
.pw-dialog .nick-male { color: #ff6b40; }
.pw-dialog .nick-female { color: #ff50d0; }

.pw-error {
    margin-bottom: 14px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(100,30,30,0.65);
    border: 1px solid rgba(200,80,80,0.4);
    border-radius: 4px;
}

/* Actions */
.pw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.pw-actions--col {
    flex-direction: column;
    align-items: stretch;
}

.pw-field-row {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.pw-field-row .pw-input {
    flex: 1;
}

.pw-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    font-family: inherit;
    color: #f0e6d8;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(201,168,108,0.35);
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.35);
}

.pw-input:focus {
    border-color: rgba(201,168,108,0.65);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.35), 0 0 0 2px rgba(201,168,108,0.12);
}

.pw-input::placeholder { color: rgba(180,160,130,0.45); }

#warning_message {
    display: block;
    color: #ff7070;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 0;
}

#nick_variants { font-size: 12px; color: #a89888; margin-top: 6px; }
#nick_variants ul { list-style: none; margin-top: 4px; }
#nick_variants a { color: #e8d5b0; }

/* Buttons */
.pw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 12px 28px;
    transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.pw-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pw-btn:active { transform: translateY(0); }

.pw-btn--male {
    color: #fff;
    background:
        linear-gradient(180deg, rgba(130,190,255,0.22) 0%, rgba(90,160,245,0.08) 100%),
        linear-gradient(180deg, #1a3a68 0%, #0f2848 45%, #0b1e36 100%);
    border: 1px solid #5fa4ff;
    box-shadow:
        0 0 0 1px rgba(130,190,255,0.22) inset,
        0 0 16px rgba(75,140,230,0.55),
        0 4px 14px rgba(0,0,0,0.45);
    min-width: 205px;
    border-radius: 12px;
}

.pw-btn--female {
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255,150,230,0.2) 0%, rgba(235,110,190,0.07) 100%),
        linear-gradient(180deg, #5a1f5e 0%, #3d1242 45%, #2b0c2f 100%);
    border: 1px solid #e06dcc;
    box-shadow:
        0 0 0 1px rgba(255,160,235,0.2) inset,
        0 0 16px rgba(220,95,185,0.48),
        0 4px 14px rgba(0,0,0,0.45);
    min-width: 205px;
    border-radius: 12px;
}

.pw-btn--gold {
    color: #1a1008;
    background: linear-gradient(180deg, #f0ddb0 0%, #c9a86c 45%, #907040 100%);
    border-radius: 4px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,240,200,0.4);
    letter-spacing: 0.08em;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.pw-btn--green {
    color: #fff;
    background: linear-gradient(180deg, #6ec86e 0%, #3a983a 50%, #286828 100%);
    box-shadow: 0 4px 20px rgba(58,152,58,0.4);
}

.pw-btn--ghost {
    color: #aaa;
    background: linear-gradient(180deg, #444 0%, #2a2a2a 100%);
    border-radius: 4px;
    padding: 9px 18px;
    font-size: 11px;
}

.pw-btn-symbol { font-size: 16px; line-height: 1; }

.pw-actions > .pw-btn--male .pw-btn-symbol,
.pw-actions > .pw-btn--female .pw-btn-symbol {
    font-size: 18px;
    margin-right: 2px;
}

.pw-agree {
    font-size: 13px;
    line-height: 1.55;
    color: #b8a898;
    margin-bottom: 12px;
}

.pw-agree a { color: #e8d5b0; }
.pw-agree input { vertical-align: middle; margin-right: 4px; cursor: pointer; }

.pw-g-recaptcha { margin-bottom: 10px; }

/* Reg footer */
.pw-reg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px 16px;
    border-top: 1px solid rgba(201,168,108,0.18);
}

.pw-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.pw-steps-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #908070;
}

.pw-steps-dots {
    display: flex;
    gap: 7px;
}

.pw-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(60,50,40,0.9);
    border: 1px solid rgba(100,85,70,0.5);
}

.pw-dot.is-active {
    background: #e8d5b0;
    border-color: #e8d5b0;
    box-shadow: 0 0 10px rgba(232,213,176,0.65);
}

.pw-dot.is-done {
    background: rgba(201,168,108,0.55);
    border-color: rgba(201,168,108,0.7);
}

/* ── Sidebar ── */
.pw-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pw-side-body {
    padding: 14px 16px 16px;
}

/* Auth */
.pw-auth-field {
    position: relative;
    margin-bottom: 10px;
}

.pw-auth-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(201,168,108,0.5);
    font-size: 14px;
    pointer-events: none;
    line-height: 1;
}

.pw-auth-input {
    width: 100%;
    padding: 11px 14px 11px 36px;
    font-size: 12px;
    font-family: inherit;
    color: #e8ddd0;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(201,168,108,0.3);
    border-radius: 4px;
    outline: none;
}

.pw-auth-input:focus {
    border-color: rgba(201,168,108,0.6);
}

.pw-auth-input::placeholder { color: rgba(160,140,110,0.45); }

.pw-auth-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(201,168,108,0.45);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
}

.pw-auth-toggle:hover { color: #c9a86c; }

.pw-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 12px;
    font-size: 11px;
}

.pw-auth-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #908070;
    cursor: pointer;
}

.pw-auth-row label input { cursor: pointer; }

.pw-auth-row a {
    color: #c9a86c;
    text-decoration: none;
}

.pw-auth-row a:hover { color: #f0ddb0; }

.pw-auth-submit {
    display: block;
    width: 100%;
    padding: 13px;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #1a1008;
    background: linear-gradient(180deg, #f0ddb0 0%, #c9a86c 40%, #907040 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(201,168,108,0.3), inset 0 1px 0 rgba(255,240,200,0.45);
    transition: filter 0.15s;
}

.pw-auth-submit:hover { filter: brightness(1.08); }

.pw-auth-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: #807060;
}

.pw-auth-footer a {
    color: #c9a86c;
    text-decoration: none;
    font-weight: 600;
}

.pw-auth-footer a:hover { color: #f0ddb0; }

/* Stats */
.pw-stat-list {
    list-style: none;
}

.pw-stat-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(201,168,108,0.1);
}

.pw-stat-list li:last-child { border-bottom: none; }

.pw-stat-icon {
    flex: 0 0 22px;
    text-align: center;
    color: #c9a86c;
    font-size: 14px;
    line-height: 1;
}

.pw-stat-label {
    flex: 1;
    font-size: 11px;
    color: #908070;
}

.pw-stat-value {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: #e8d5b0;
    white-space: nowrap;
}

/* ── Page footer ── */
.pw-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(201,168,108,0.55);
}

.pw-footer span { margin: 0 0.6em; opacity: 0.5; }
