/* Olymp RP — Mein Konto. Baut auf /assets/site.css auf. */

.konto { min-height: 100vh; }

.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 100px;
}

[hidden] { display: none !important; }

/* ── Anmeldung ───────────────────────────────────────────── */

.gate {
    display: grid;
    justify-items: start;
    gap: 18px;
    max-width: 560px;
    padding-top: 40px;
}

.gate-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.1; }
.gate-text { color: var(--muted); }
.gate-note { color: var(--red); font-size: 15px; }

/* ── Profil ──────────────────────────────────────────────── */

.profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-who { display: flex; align-items: center; gap: 18px; }

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--panel) center / cover no-repeat;
    border: 2px solid rgba(240, 181, 69, 0.5);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 24px;
    color: var(--gold);
    flex: none;
}

.profile-name { font-size: clamp(26px, 4vw, 34px); font-weight: 800; line-height: 1.15; }

.profile-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    border: 1px solid var(--line);
    color: var(--muted);
}

.pill-gold  { border-color: rgba(240, 181, 69, 0.45); color: var(--gold); }
.pill-green { border-color: rgba(70, 201, 139, 0.45); color: var(--green); }
.pill-red   { border-color: rgba(236, 93, 98, 0.45); color: var(--red); }

/* ── Einreise ────────────────────────────────────────────── */

.entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding: 24px 26px;
    border: 1px solid rgba(240, 181, 69, 0.35);
    border-radius: 14px;
    background: radial-gradient(500px 160px at 0% 0%, rgba(240, 181, 69, 0.14), transparent 70%), var(--night-2);
}

.entry > div { display: grid; gap: 6px; max-width: 60ch; }
.entry h2 { font-size: 22px; font-weight: 750; }
.entry p { color: rgba(237, 240, 246, 0.75); font-size: 16px; }

.entry-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── Reiter ──────────────────────────────────────────────── */

.tabs {
    display: flex;
    gap: 6px;
    margin-top: 36px;
    border-bottom: 1px solid var(--line);
}

.tab {
    padding: 12px 16px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 650;
    font-size: 15px;
}

.tab:hover { color: var(--text); }
.tab.is-active { color: var(--gold); border-bottom-color: var(--gold); }

.panel-view { display: grid; gap: 20px; margin-top: 28px; }

/* ── Karten ──────────────────────────────────────────────── */

.card {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--night-2);
}

.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h2 { font-size: 21px; font-weight: 750; }

.card-text { color: var(--muted); font-size: 16px; max-width: 70ch; }

.badge:empty { display: none; }

/* Charaktere */

.characters { display: grid; gap: 16px; }

.character {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--night-2);
    overflow: hidden;
}

.character-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px 0;
}

.character-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(240, 181, 69, 0.12);
    color: var(--gold);
    font-weight: 800;
    flex: none;
}

.character-name { font-size: 22px; font-weight: 750; line-height: 1.2; }
.character-id { font: 12px var(--mono); color: var(--muted); }

.character-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 20px 24px 24px;
}

.character-facts dt { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.character-facts dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }

.empty {
    padding: 40px 26px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    text-align: center;
    color: var(--muted);
}

.empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* Formulare */

.ts-form, .code-form, .verify-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }

.field { display: grid; gap: 6px; flex: 1 1 320px; }
.field-label { font-size: 13px; color: var(--muted); }

.field-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--night);
    color: var(--text);
    font: 15px var(--mono);
}

.field-input:focus { outline: none; border-color: var(--gold); }

.code-input { width: 130px; text-align: center; letter-spacing: 0.3em; font-size: 18px; }

.help summary { cursor: pointer; color: var(--gold); font-size: 15px; font-weight: 600; }
.help p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.verify {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(240, 181, 69, 0.05);
    border: 1px solid rgba(240, 181, 69, 0.2);
}

.verify-steps { margin: 0; padding-left: 20px; color: rgba(237, 240, 246, 0.8); font-size: 15px; display: grid; gap: 4px; }
.verify-steps code { font-family: var(--mono); color: var(--gold); }

/* Kennungen */

.ids { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

.id {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--night);
    text-align: left;
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.id:hover { border-color: rgba(240, 181, 69, 0.45); }
.id-label { font-size: 12px; color: var(--muted); }
.id-value { font: 600 15px var(--mono); overflow-wrap: anywhere; }

/* Meldung */

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    max-width: min(560px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
    font-size: 15px;
    z-index: 50;
}

.toast.is-error { border-color: rgba(236, 93, 98, 0.5); }
.toast.is-success { border-color: rgba(70, 201, 139, 0.5); }

@media (max-width: 720px) {
    .character-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wrap { padding-top: 100px; }
}
