/* LevelUp.Life — Dark dungeon aesthetic */

:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-bar: #21262d;
    --border: #30363d;
    --text: #e6edf3;
    --text-dim: #7d8590;
    --text-muted: #484f58;

    --hp-green: #3fb950;
    --hp-yellow: #d29922;
    --hp-red: #f85149;

    --str: #f85149;
    --dex: #3fb950;
    --con: #d29922;
    --int: #58a6ff;
    --wis: #bc8cff;
    --cha: #39d2c0;

    --xp-glow: rgba(63, 185, 80, 0.3);
    --gold: #f0c040;
}

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

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    max-width: 600px;
    width: 100%;
}

/* Header */
.header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.name-block h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.class-name {
    color: var(--gold);
    font-weight: 600;
}

.separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.hp-block {
    margin-top: 1rem;
}

.hp-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.hp-bar-container {
    background: var(--bg-bar);
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
}

.hp-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--hp-green);
    transition: width 1s ease-out;
}

.hp-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
    text-align: right;
}

/* Stats Panel */
.stats-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--bg-bar);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    width: 120px;
    flex-shrink: 0;
}

.stat-abbr {
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.stat-name {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.stat-bar-container {
    flex: 1;
    background: var(--bg-bar);
    border-radius: 3px;
    height: 8px;
    margin: 0 1rem;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
}

.stat-info {
    width: 100px;
    text-align: right;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.stat-xp {
    margin-right: 0.5rem;
    color: var(--text-dim);
}

.stat-level {
    font-weight: 600;
}

/* Stat colors */
.stat-str, .stat-bar-str { color: var(--str); }
.stat-bar-str { background: var(--str); }
.stat-dex, .stat-bar-dex { color: var(--dex); }
.stat-bar-dex { background: var(--dex); }
.stat-con, .stat-bar-con { color: var(--con); }
.stat-bar-con { background: var(--con); }
.stat-int, .stat-bar-int { color: var(--int); }
.stat-bar-int { background: var(--int); }
.stat-wis, .stat-bar-wis { color: var(--wis); }
.stat-bar-wis { background: var(--wis); }
.stat-cha, .stat-bar-cha { color: var(--cha); }
.stat-bar-cha { background: var(--cha); }

/* Info Bar */
.info-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-item {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.info-icon {
    margin-right: 0.3rem;
}

.bonus {
    color: var(--gold);
    font-weight: 600;
}

/* Activity Log */
.activity-log {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.activity-log h2 {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.activity-entry {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--bg-bar);
    gap: 0.5rem;
}

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

.activity-stat {
    font-weight: 700;
    width: 36px;
    flex-shrink: 0;
}

.activity-xp {
    color: var(--hp-green);
    font-weight: 600;
    width: 70px;
    flex-shrink: 0;
}

.activity-desc {
    flex: 1;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.activity-entry.empty {
    justify-content: center;
    padding: 1rem;
}

/* Warnings */
.death-save {
    background: rgba(248, 81, 73, 0.15);
    border: 2px solid var(--hp-red);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: pulse-red 2s infinite;
}

.death-save h2 {
    color: var(--hp-red);
    margin-bottom: 0.5rem;
}

.low-hp-warning {
    background: rgba(210, 153, 34, 0.15);
    border: 1px solid var(--hp-yellow);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--hp-yellow);
}

@keyframes pulse-red {
    0%, 100% { border-color: var(--hp-red); }
    50% { border-color: rgba(248, 81, 73, 0.3); }
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
}

.dim {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ── SPA Layout ──────────────────────────────────────────────────────────── */

.spa-container {
    padding-bottom: 70px; /* space for bottom nav */
}

.loading-screen {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.error-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--hp-red);
}

/* ── Bottom Navigation ───────────────────────────────────────────────────── */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
    color: var(--text);
}

.nav-item:hover {
    color: var(--text-dim);
}

.nav-icon {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.nav-item[data-route="/log"] .nav-icon {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--hp-green);
    line-height: 1;
}

.nav-item[data-route="/log"].active .nav-icon {
    color: var(--hp-green);
}

/* ── Login Page ──────────────────────────────────────────────────────────── */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 360px;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.3rem;
    color: var(--gold);
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.2rem;
}

.login-form label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.login-form input {
    width: 100%;
    background: var(--bg-bar);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.7rem 0.8rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: var(--gold);
}

.login-error {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid var(--hp-red);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    color: var(--hp-red);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.btn-login {
    width: 100%;
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    padding: 0.8rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-login:hover {
    opacity: 0.9;
}

/* ── Stat Picker Grid ────────────────────────────────────────────────────── */

.stat-picker {
    padding: 1rem 0;
}

.picker-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.3rem;
}

.picker-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.stat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.1s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 100px;
}

.stat-btn:active {
    transform: scale(0.97);
}

.stat-btn-str { border-color: var(--str); }
.stat-btn-str:hover { background: rgba(248, 81, 73, 0.1); }
.stat-btn-dex { border-color: var(--dex); }
.stat-btn-dex:hover { background: rgba(63, 185, 80, 0.1); }
.stat-btn-con { border-color: var(--con); }
.stat-btn-con:hover { background: rgba(210, 153, 34, 0.1); }
.stat-btn-int { border-color: var(--int); }
.stat-btn-int:hover { background: rgba(88, 166, 255, 0.1); }
.stat-btn-wis { border-color: var(--wis); }
.stat-btn-wis:hover { background: rgba(188, 140, 255, 0.1); }
.stat-btn-cha { border-color: var(--cha); }
.stat-btn-cha:hover { background: rgba(57, 210, 192, 0.1); }

.stat-btn-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.stat-btn-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-btn-str .stat-btn-name { color: var(--str); }
.stat-btn-dex .stat-btn-name { color: var(--dex); }
.stat-btn-con .stat-btn-name { color: var(--con); }
.stat-btn-int .stat-btn-name { color: var(--int); }
.stat-btn-wis .stat-btn-name { color: var(--wis); }
.stat-btn-cha .stat-btn-name { color: var(--cha); }

.stat-btn-level {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

/* ── Activity Picker ─────────────────────────────────────────────────────── */

.activity-picker {
    padding: 0.5rem 0;
}

.picker-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.2rem;
}

.preset-group-title {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 1rem 0 0.6rem;
}

.preset-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.preset-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
    color: var(--text);
    font-family: inherit;
    font-size: inherit;
    width: 100%;
}

button.preset-card {
    border: 1px solid var(--border);
}

.preset-card:active {
    transform: scale(0.97);
}

.preset-card:hover {
    border-color: var(--text-dim);
}

.preset-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.preset-xp {
    font-size: 0.75rem;
    color: var(--hp-green);
    font-weight: 600;
}

.preset-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Duration / Threshold input rows */
.duration-card,
.threshold-card {
    cursor: default;
}

.duration-input-row,
.threshold-input-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    align-items: center;
}

.duration-input,
.threshold-input {
    flex: 1;
    background: var(--bg-bar);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.4rem 0.5rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    width: 80px;
    min-width: 0;
}

.duration-input:focus,
.threshold-input:focus {
    border-color: var(--hp-green);
}

.btn-log {
    background: var(--hp-green);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-log:hover {
    opacity: 0.9;
}

.btn-log:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-small {
    background: transparent;
    border: 1px solid var(--hp-red);
    color: var(--hp-red);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-family: inherit;
    font-size: 0.7rem;
    cursor: pointer;
}

/* Avoidance card actions */
.avoidance-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

/* ── Daily Section (Thresholds & Avoidances on character sheet) ───────── */

.daily-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.threshold-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-bar);
}

.threshold-row:last-child {
    border-bottom: none;
}

.threshold-name {
    font-weight: 600;
    font-size: 0.8rem;
    flex: 1;
}

.threshold-target {
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 80px;
}

.threshold-row .threshold-input {
    width: 60px;
    flex: none;
}

.btn-threshold {
    background: var(--hp-green);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-threshold:disabled {
    opacity: 0.5;
}

.avoidance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-bar);
}

.avoidance-row:last-child {
    border-bottom: none;
}

.avoidance-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avoidance-name {
    font-weight: 600;
    font-size: 0.8rem;
}

.avoidance-streak {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.streak-active .avoidance-streak {
    color: var(--hp-green);
}

.avoidance-actions {
    display: flex;
    gap: 0.4rem;
}

.btn-avoidance {
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-checkin {
    background: var(--hp-green);
    color: var(--bg-dark);
}

.btn-break {
    background: transparent;
    border: 1px solid var(--hp-red);
    color: var(--hp-red);
}

/* ── Toast Notifications ─────────────────────────────────────────────────── */

.toast-container {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 400px;
    width: 90%;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--hp-green);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-hide {
    opacity: 0;
    transform: translateY(20px);
}

.toast-xp-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.toast-xp-stat {
    font-weight: 600;
    color: var(--text-dim);
}

.toast-xp-mult {
    font-size: 0.75rem;
    color: var(--gold);
}

.toast-xp-bonus {
    font-size: 0.7rem;
    color: var(--gold);
}

.toast-info {
    border-left-color: var(--int);
}

.toast-error {
    border-left-color: var(--hp-red);
    color: var(--hp-red);
}

/* ── Level-Up Overlay ────────────────────────────────────────────────────── */

.levelup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    cursor: pointer;
}

.levelup-content {
    text-align: center;
}

.levelup-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.levelup-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.levelup-stat {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.levelup-level {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.levelup-animate .levelup-content {
    animation: levelup-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes levelup-pop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* ── History Screen ──────────────────────────────────────────────────────── */

.history-screen {
    padding: 0.5rem 0;
}

.history-date-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.history-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    background: var(--bg-bar);
    font-size: 0.8rem;
    font-weight: 600;
}

.history-date-xp {
    color: var(--hp-green);
}

.history-date-group .activity-entry {
    padding: 0.4rem 1rem;
}

/* ── Awakening Wizard ───────────────────────────────────────────────────── */

.wiz-progress {
    background: var(--bg-bar);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.wiz-progress-bar {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.wiz-narrative {
    text-align: center;
    padding: 1rem 0;
}

.wiz-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.wiz-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.wiz-text p {
    margin-bottom: 0.5rem;
}

.wiz-stat-reveal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.wiz-stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
}

.wiz-stat-icon {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.wiz-stat-key {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.wiz-stat-name {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.wiz-stat-domain {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.wiz-name-section {
    margin-top: 1.5rem;
    text-align: left;
}

.wiz-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.wiz-input {
    width: 100%;
    background: var(--bg-bar);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.7rem 0.8rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.wiz-input:focus {
    border-color: var(--gold);
}

.wiz-input-sm {
    flex: 1;
    min-width: 0;
}

.wiz-input-xs {
    width: 70px;
    flex: none;
    text-align: center;
}

.wiz-step {
    padding: 0.5rem 0;
}

.wiz-step-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.wiz-step-desc {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.wiz-step-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.wiz-group-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 1rem 0 0.5rem;
}

.wiz-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.wiz-check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s;
    font-size: 0.8rem;
}

.wiz-check-item:hover {
    border-color: var(--text-dim);
}

.wiz-check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
    flex-shrink: 0;
}

.wiz-check-name {
    flex: 1;
    font-weight: 600;
}

.wiz-check-xp {
    color: var(--hp-green);
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.wiz-check-unit {
    color: var(--text-muted);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.wiz-custom-item {
    cursor: default;
    background: rgba(240, 192, 64, 0.05);
    border-color: rgba(240, 192, 64, 0.2);
}

.wiz-threshold-item {
    flex-wrap: wrap;
}

.wiz-threshold-item .wiz-input-xs {
    width: 60px;
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
}

.wiz-add-custom {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    align-items: center;
}

.wiz-btn {
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wiz-btn:hover {
    opacity: 0.9;
}

.wiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wiz-btn-next, .wiz-btn-finish {
    background: var(--gold);
    color: var(--bg-dark);
}

.wiz-btn-back {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.wiz-btn-add {
    background: var(--hp-green);
    color: var(--bg-dark);
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.wiz-btn-remove {
    background: transparent;
    border: 1px solid var(--hp-red);
    color: var(--hp-red);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
}

.wiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.wiz-nav .wiz-btn {
    flex: 1;
    max-width: 200px;
}

.wiz-summary {
    text-align: left;
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.2rem;
}

.wiz-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--bg-bar);
    font-size: 0.8rem;
}

.wiz-summary-row:last-child {
    border-bottom: none;
}

.wiz-summary-stat {
    font-weight: 700;
}

.wiz-summary-label {
    color: var(--text-dim);
}

.wiz-summary-count {
    color: var(--text-dim);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    body { padding: 0.5rem; }
    .info-bar { flex-direction: column; }
    .stat-label { width: 80px; }
    .stat-name { display: none; }
    .stat-info { width: 80px; }
    .activity-time { display: none; }
    .preset-list { grid-template-columns: 1fr; }
    .stat-grid { gap: 0.5rem; }
    .stat-btn { padding: 1rem 0.8rem; min-height: 80px; }
}
