/* ══════════════════════════════════════════════════════════
   Terminal Experience — Level badge, XP bar, milestones,
   stats, history log
   ══════════════════════════════════════════════════════════ */

.exp-loading,
.exp-guest-notice {
    font-family: 'Georgia', 'Times New Roman', serif;
    text-align: center;
    color: #6b5740;
}

.exp-guest-notice p {
    margin: 0 0 8px;
}

.exp-guest-hint {
    font-size: 0.82rem;
    font-style: italic;
    color: #8b7355;
}

/* ── Level Badge ─────────────────────────────────────── */

.exp-badge {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 8px auto 6px;
}

.exp-ring {
    display: block;
}

.exp-ring-fill {
    transition: stroke-dashoffset 0.8s ease;
}

.exp-badge-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.exp-badge-level {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #3a2e1e;
    line-height: 1;
}

.exp-badge-label {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.exp-badge-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    color: #d4a853;
    text-align: center;
    margin: 0 0 18px;
    letter-spacing: 0.5px;
}

/* ── XP Progress Bar ─────────────────────────────────── */

.exp-xp-bar {
    background: #e5dbc0;
    border: 1px solid #c9b99a;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.exp-xp-labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.8rem;
    color: #6b5740;
}

.exp-xp-track {
    height: 8px;
    background: #d4c9a8;
    border-radius: 4px;
    overflow: hidden;
}

.exp-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b7355, #d4a853);
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 2px;
}

/* ── Stats Row ───────────────────────────────────────── */

.exp-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    padding: 14px 0;
    border-bottom: 1px solid #d4c9a8;
}

.exp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.exp-stat-value {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #3a2e1e;
}

.exp-stat-label {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.68rem;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ── Section Titles ──────────────────────────────────── */

.exp-section-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3a2e1e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d4c9a8;
}

/* ── Milestone Roadmap ───────────────────────────────── */

.exp-milestones {
    margin-bottom: 24px;
}

.exp-milestone-path {
    padding-left: 6px;
}

.exp-milestone {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.exp-milestone-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

.exp-milestone-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 50%;
}

.exp-milestone-dot--reached {
    color: #6a8a5a;
    font-size: 0.85rem;
    font-weight: 700;
}

.exp-milestone-dot--current {
    color: #d4a853;
    font-size: 1rem;
    animation: exp-pulse 2s ease-in-out infinite;
}

.exp-milestone-dot--locked {
    color: #c9b99a;
    font-size: 0.85rem;
}

@keyframes exp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

.exp-milestone-line {
    width: 2px;
    height: 24px;
    background: #d4c9a8;
    margin: 2px 0;
}

.exp-milestone-line--filled {
    background: #6a8a5a;
}

.exp-milestone-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0 12px;
}

.exp-milestone-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #3a2e1e;
}

.exp-milestone--locked .exp-milestone-title {
    color: #8b7355;
}

.exp-milestone--current .exp-milestone-title {
    color: #d4a853;
}

.exp-milestone-detail {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.72rem;
    color: #8b7355;
}

/* ── XP History Log ──────────────────────────────────── */

.exp-history {
    margin-bottom: 8px;
}

.exp-history-empty {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.85rem;
    color: #8b7355;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.exp-history-list {
    border: 1px solid #c9b99a;
    border-radius: 4px;
    overflow: hidden;
}

.exp-history-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(201, 185, 154, 0.4);
    background: #ede4cc;
}

.exp-history-entry:last-child {
    border-bottom: none;
}

.exp-history-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.exp-history-quest {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3a2e1e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exp-history-date {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.7rem;
    color: #8b7355;
}

.exp-history-rewards {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 12px;
}

.exp-history-xp {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6a8a5a;
    white-space: nowrap;
}

.exp-history-delvs {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #d4a853;
    white-space: nowrap;
}
