/* =============================================
   GrimSweeper — Dark Gothic Dungeon Theme
   ============================================= */

:root {
    --bg:              #0f0b1a;
    --bg-card:         #1e1535;
    --bg-card-hover:   #271c44;
    --border:          #3d2868;
    --border-glow:     #9333ea;
    --text:            #f0ebff;
    --text-muted:      #a892d4;
    --text-dim:        #624e8f;
    --gold:            #22d3ee;
    --gold-dark:       #0891b2;
    --purple:          #9333ea;
    --purple-light:    #c084fc;
    --purple-dark:     #7c3aed;
    --red:             #fb7185;
    --red-dark:        #e11d48;
    --green:           #34d399;
    --green-dark:      #059669;
    --orange:          #fb923c;
    --orange-dark:     #ea580c;
    --blue:            #818cf8;
    --blue-dark:       #4f46e5;
    --cyan:            #22d3ee;

    --hp-clean:        #34d399;
    --hp-ok:           #a78bfa;
    --hp-neglected:    #f472b6;
    --hp-critical:     #fb7185;
    --hp-chaos:        #e11d48;

    --gold-warm:          #f0b429;
    --blue-sport:         #0ea5e9;

    --nav-height-mobile:  64px;
    --header-height:      60px;
    --radius:             12px;
    --radius-sm:          8px;
    --radius-lg:          16px;
    --transition:         0.2s ease;
    --shadow:             0 4px 24px rgba(0,0,0,0.5);
    --shadow-glow-purple: 0 0 24px rgba(147,51,234,0.4);
    --shadow-glow-gold:   0 0 24px rgba(34,211,238,0.4);
    --shadow-glow-red:    0 0 24px rgba(251,113,133,0.4);
    --shadow-glow-green:  0 0 24px rgba(52,211,153,0.35);

    /* Spacing scale */
    --space-xs:  0.5rem;
    --space-sm:  0.75rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
}

/* =============================================
   Reset & Base
   ============================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 130% 65% at 50% -5%, rgba(168,85,247,0.38) 0%, rgba(124,58,237,0.12) 45%, transparent 68%),
        radial-gradient(ellipse 70% 50% at 85% 90%, rgba(124,58,237,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 55% 35% at 8% 70%, rgba(192,132,252,0.12) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* =============================================
   Tageszeit-Themes
   ============================================= */

/* Morgen 5–10 Uhr: Dunkelblau + erstes Amber-Glühen von unten */
body.time-morning {
    background-color: #0c0d1a;
    background-image:
        radial-gradient(ellipse 130% 65% at 50% -5%, rgba(100,80,200,0.28) 0%, rgba(60,40,140,0.1) 45%, transparent 68%),
        radial-gradient(ellipse 90% 55% at 50% 115%, rgba(251,146,60,0.22) 0%, rgba(180,80,20,0.08) 55%, transparent 72%),
        radial-gradient(ellipse 55% 35% at 8% 70%, rgba(120,90,200,0.1) 0%, transparent 55%);
}

/* Abend 17–22 Uhr: Glutrot von unten, dunklere Basis */
body.time-evening {
    background-color: #0e0810;
    background-image:
        radial-gradient(ellipse 130% 65% at 50% -5%, rgba(160,30,60,0.22) 0%, rgba(100,20,30,0.08) 45%, transparent 68%),
        radial-gradient(ellipse 100% 60% at 50% 115%, rgba(220,70,20,0.28) 0%, rgba(160,40,10,0.1) 55%, transparent 72%),
        radial-gradient(ellipse 55% 35% at 8% 70%, rgba(180,50,30,0.1) 0%, transparent 55%);
}

/* Nacht 22–5 Uhr: Fast schwarz, kühles Mondlicht von oben rechts */
body.time-night {
    background-color: #07060f;
    background-image:
        radial-gradient(ellipse 70% 40% at 80% 5%, rgba(100,120,220,0.18) 0%, rgba(50,60,160,0.06) 50%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 85% 90%, rgba(50,30,100,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 40% 25% at 8% 70%, rgba(60,50,120,0.07) 0%, transparent 55%);
}

h1, h2, h3, .font-cinzel {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.02em;
}

/* Cinzel nur noch für Headlines — kleine Labels auf system font */

a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--purple); }

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

img { max-width: 100%; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* =============================================
   Layout
   ============================================= */

.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(22,14,42,0.99) 0%, rgba(13,9,22,0.97) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    box-shadow: 0 1px 0 rgba(147,51,234,0.35), 0 6px 32px rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    padding: 0 1.5rem;
    gap: 2rem;
    z-index: 100;
    animation: headerGlow 4s ease-in-out infinite;
}
@keyframes headerGlow {
    0%, 100% { box-shadow: 0 1px 0 rgba(147,51,234,0.3), 0 6px 32px rgba(0,0,0,0.6); }
    50%       { box-shadow: 0 1px 0 rgba(192,132,252,0.6), 0 6px 40px rgba(0,0,0,0.6), 0 2px 20px rgba(147,51,234,0.12); }
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple-light);
    white-space: nowrap;
    letter-spacing: 0.08em;
    position: relative;
}
.brand-name {
    background: linear-gradient(90deg, #c084fc, #e9d5ff, #c084fc);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandShimmer 5s linear infinite;
}
@keyframes brandShimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.brand-icon { font-size: 1.5rem; filter: drop-shadow(0 0 10px rgba(192,132,252,0.8)); animation: brandIconPulse 3s ease-in-out infinite alternate; }
@keyframes brandIconPulse {
    from { filter: drop-shadow(0 0 6px rgba(192,132,252,0.5)); }
    to   { filter: drop-shadow(0 0 16px rgba(192,132,252,1)); }
}

.header-nav {
    display: flex;
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
}

.app-main {
    padding: 1rem;
    padding-bottom: calc(var(--nav-height-mobile) + 1rem + env(safe-area-inset-bottom));
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
}

/* =============================================
   Navigation
   ============================================= */

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--nav-height-mobile) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(0deg, rgba(22,14,42,0.99) 0%, rgba(13,9,22,0.97) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(147,51,234,0.35);
    box-shadow: 0 -2px 0 rgba(192,132,252,0.1), 0 -6px 32px rgba(0,0,0,0.6);
    display: flex;
    align-items: stretch;
    z-index: 100;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0.5rem 0.25rem;
    border-radius: 0;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.nav-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-btn.active {
    color: var(--purple-light);
    background: rgba(147,51,234,0.15);
    text-shadow: 0 0 10px rgba(192,132,252,0.4);
}

.nav-btn.active .nav-icon {
    filter: drop-shadow(0 0 10px rgba(147,51,234,0.9));
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--purple);
    border-radius: 0 0 2px 2px;
    transition: width var(--transition);
}
.nav-btn.active::before { width: 60%; }

.nav-icon { font-size: 1.3rem; line-height: 1; }
.nav-label { font-size: 0.6rem; font-family: inherit; text-transform: uppercase; letter-spacing: 0.06em; }

/* Header nav (desktop) uses same .nav-btn class */
.header-nav .nav-btn {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
}
.header-nav .nav-btn::before { display: none; }
.header-nav .nav-btn .nav-label { font-size: 0.78rem; text-transform: none; letter-spacing: 0; }
.header-nav .nav-btn .nav-icon { font-size: 1rem; }

/* Desktop layout */
@media (min-width: 768px) {
    .app-header { display: flex; }
    .bottom-nav { display: none; }
    .app-main {
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 2rem;
    }
}

/* =============================================
   Cards
   ============================================= */

.card {
    background: linear-gradient(145deg, #1e1535 0%, #180f2d 100%);
    border: 1px solid rgba(61,40,104,0.8);
    border-top-color: rgba(96,64,160,0.6);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.card:hover {
    border-color: rgba(147,51,234,0.5);
    border-top-color: rgba(192,132,252,0.4);
    box-shadow: 0 6px 28px rgba(0,0,0,0.6), 0 0 20px rgba(147,51,234,0.12);
}

.card-sm { padding: 1rem; }
.card-lg { padding: 1.5rem; border-radius: var(--radius-lg); }

/* =============================================
   XP Bar
   ============================================= */

.xp-bar-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.xp-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.xp-level-badge {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--purple-light);
    background: rgba(168,85,247,0.15);
    border: 1px solid rgba(168,85,247,0.35);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.xp-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--purple-light);
    font-weight: 700;
}

.xp-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.xp-bar-track {
    height: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed 0%, #9333ea 50%, #22d3ee 100%);
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(147,51,234,0.7);
    position: relative;
    overflow: hidden;
    animation: xpGainedPulse 1.2s ease-out;
}
@keyframes xpGainedPulse {
    0%   { box-shadow: 0 0 12px rgba(147,51,234,0.7); }
    30%  { box-shadow: 0 0 30px rgba(192,132,252,0.9), 0 0 60px rgba(34,211,238,0.5); }
    100% { box-shadow: 0 0 12px rgba(147,51,234,0.7); }
}

.xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2.5s infinite;
}

/* Level 100 max styling */
.xp-bar-wrapper.level-max {
    border-color: rgba(34,211,238,0.5);
    background: linear-gradient(135deg, rgba(34,211,238,0.08), var(--bg-card));
    animation: goldGlow 3s ease-in-out infinite;
}

.xp-bar-wrapper.level-max .xp-bar-fill {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), #fff8e1, var(--gold));
    background-size: 200% 100%;
    animation: rainbowShimmer 2s linear infinite;
}

@keyframes rainbowShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Prestige badge */
.prestige-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    border-radius: 100px;
    padding: 0.2rem 0.65rem;
    letter-spacing: 0.05em;
    text-shadow: none;
}

/* Prestige button */
.btn-prestige {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899, #f97316, #a855f7);
    background-size: 300% 100%;
    color: #fff;
    font-weight: 700;
    animation: prestigeShimmer 3s linear infinite;
    box-shadow: 0 0 20px rgba(168,85,247,0.5);
}

@keyframes prestigeShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.btn-prestige:hover {
    box-shadow: 0 0 40px rgba(168,85,247,0.8);
    transform: scale(1.02);
}

/* =============================================
   Streak
   ============================================= */

.streak-section {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.streak-card {
    flex: 1;
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    text-align: center;
}

.streak-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.streak-value {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--purple-light);
    line-height: 1;
}

.streak-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.sport-pips {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin: 0.15rem 0 0.1rem;
    line-height: 1;
}
.sport-pip {
    font-size: 1rem;
    opacity: 0.3;
    transition: all 0.2s;
}
.sport-pip.done {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(14,165,233,0.6));
}
.streak-card.sport-card {
    border-color: rgba(14,165,233,0.3);
}
.streak-card.sport-complete {
    border-color: rgba(14,165,233,0.7);
    background: linear-gradient(135deg, rgba(14,165,233,0.1), var(--bg-card));
    box-shadow: 0 0 16px rgba(14,165,233,0.15);
}
.streak-card.sport-complete .sport-pip {
    filter: drop-shadow(0 0 6px rgba(14,165,233,0.8));
}

.streak-card.fire { border-color: rgba(249,115,22,0.4); }
.streak-card.fire .streak-icon { animation: fireWobble 1.5s ease-in-out infinite; }

@keyframes fireWobble {
    0%, 100% { transform: scale(1) rotate(-3deg); }
    50%       { transform: scale(1.1) rotate(3deg); }
}

/* =============================================
   Room HP Cards
   ============================================= */

.rooms-section {
    margin-bottom: 1rem;
}

.rooms-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-sm);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

@media (min-width: 480px) {
    .rooms-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .rooms-grid { grid-template-columns: repeat(6, 1fr); }
}

.room-hp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.6rem;
    text-align: center;
    transition: all var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 8px rgba(0,0,0,0.35);
}

.room-hp-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-1px);
}

.room-hp-card.status-clean {
    border-color: rgba(52,211,153,0.35);
}
.room-hp-card.status-clean .room-hp-bar-fill {
    background: var(--hp-clean);
    box-shadow: 0 0 8px rgba(52,211,153,0.5);
}

.room-hp-card.status-ok {
    border-color: rgba(167,139,250,0.35);
}
.room-hp-card.status-ok .room-hp-bar-fill {
    background: var(--hp-ok);
    box-shadow: 0 0 8px rgba(167,139,250,0.5);
}

.room-hp-card.status-neglected {
    border-color: rgba(244,114,182,0.45);
}
.room-hp-card.status-neglected .room-hp-bar-fill {
    background: var(--hp-neglected);
    box-shadow: 0 0 8px rgba(244,114,182,0.5);
}

.room-hp-card.status-critical {
    border-color: rgba(251,113,133,0.55);
    animation: criticalPulse 2s ease-in-out infinite;
}
.room-hp-card.status-critical .room-hp-bar-fill {
    background: var(--hp-critical);
    box-shadow: 0 0 10px rgba(251,113,133,0.6);
}

.room-hp-card.status-chaos {
    border-color: rgba(225,29,72,0.7);
    animation: chaosPulse 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(225,29,72,0.12), #1e1535);
}
.room-hp-card.status-chaos .room-hp-bar-fill {
    background: var(--hp-chaos);
}

@keyframes criticalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251,113,133,0); }
    50%       { box-shadow: 0 0 10px 2px rgba(251,113,133,0.35); }
}

@keyframes chaosPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); }
    50%       { box-shadow: 0 0 14px 4px rgba(225,29,72,0.45); }
}

.room-hp-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.3rem;
}

.room-hp-name {
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-hp-bar-track {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.room-hp-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-hp-percent {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.room-hp-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.room-hp-card.status-chaos .room-hp-label {
    color: var(--red);
    font-weight: 600;
}

/* =============================================
   Timed Quest Banners
   ============================================= */

.timed-quests-section { margin-bottom: 1rem; }
.timed-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue);
    margin-bottom: var(--space-sm);
}

.timed-banner {
    background: linear-gradient(135deg, rgba(129,140,248,0.12), rgba(129,140,248,0.05));
    border: 1px solid rgba(129,140,248,0.35);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    animation: timedPulse 3s ease-in-out infinite;
}

.timed-banner:hover {
    border-color: var(--blue);
    background: rgba(129,140,248,0.18);
}

@keyframes timedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(129,140,248,0); }
    50%       { box-shadow: 0 0 0 4px rgba(129,140,248,0.15); }
}

.timed-banner-icon { font-size: 1.4rem; flex-shrink: 0; }
.timed-banner-info { flex: 1; }
.timed-banner-name { font-weight: 600; font-size: 0.9rem; }
.timed-banner-meta { font-size: 0.75rem; color: var(--text-muted); }
.timed-banner-xp {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 700;
    white-space: nowrap;
}

/* =============================================
   Today Section
   ============================================= */

.today-section {
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-sm);
}

/* =============================================
   D20 / Roll Area
   ============================================= */

.roll-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.roll-heading {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.d20-display {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d20-polygon {
    position: relative;
    width: 120px;
    height: 120px;
}

.d20-svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 12px rgba(139,92,246,0.5));
    transition: filter var(--transition);
}

.d20-svg:hover {
    filter: drop-shadow(0 0 20px rgba(139,92,246,0.8));
}

.d20-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--purple-light);
    line-height: 1;
    text-shadow: 0 0 12px rgba(192,132,252,0.8);
    pointer-events: none;
    user-select: none;
}

.d20-number.nat20 { color: #fff; text-shadow: 0 0 24px rgba(192,132,252,1), 0 0 8px rgba(255,255,255,0.8); }
.d20-number.nat1  { color: var(--red);  text-shadow: 0 0 20px rgba(244,63,94,1); }

.roll-manual-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 0.75rem;
}

.roll-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.roll-stepper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.stepper-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(139,92,246,0.15);
    border: 1px solid var(--purple);
    color: var(--purple-light);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    cursor: pointer;
}
.stepper-btn:hover {
    background: rgba(139,92,246,0.3);
    box-shadow: 0 0 12px rgba(139,92,246,0.4);
}
.stepper-btn:active { transform: scale(0.92); }

.roll-input {
    width: 5rem;
    height: 5rem;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    text-align: center;
    background: rgba(139,92,246,0.08);
    border: 2px solid var(--purple);
    border-radius: var(--radius);
    color: var(--text);
    appearance: textfield;
    -moz-appearance: textfield;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.roll-input::-webkit-inner-spin-button,
.roll-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.roll-input:focus {
    border-color: var(--purple-light);
    box-shadow: 0 0 16px rgba(139,92,246,0.4);
}

.roll-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   Buttons
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition);
}
.btn:hover::before { background: rgba(255,255,255,0.07); }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(168,85,247,0.45);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    box-shadow: 0 6px 28px rgba(168,85,247,0.60);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #9333ea, #c084fc);
    color: #fff;
    font-weight: 700;
}
.btn-gold:hover { box-shadow: 0 0 24px rgba(192,132,252,0.5); }

.btn-danger {
    background: var(--red);
    color: #fff;
}
.btn-danger:hover { box-shadow: var(--shadow-glow-red); }

.btn-green {
    background: var(--green);
    color: #001a00;
    font-weight: 700;
}
.btn-green:hover { box-shadow: var(--shadow-glow-green); }

.btn-blue {
    background: var(--blue);
    color: #fff;
}
.btn-blue:hover { box-shadow: 0 0 20px rgba(59,130,246,0.4); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-glow); }

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.btn-full { width: 100%; }

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sport day button */
.btn-sport {
    background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
    color: #fff;
    font-weight: 700;
}
.btn-sport:hover { box-shadow: 0 0 20px rgba(14,165,233,0.4); }

/* =============================================
   Quest Cards
   ============================================= */

.quest-options-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.quest-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
    display: block;
    box-shadow: inset 0 1px 0 rgba(139,92,246,0.12), 0 2px 12px rgba(0,0,0,0.35);
}

.quest-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(ellipse at center, rgba(139,92,246,0.15), transparent 70%);
    transition: opacity 0.2s ease;
}

.quest-card:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(139,92,246,0.4), inset 0 1px 0 rgba(139,92,246,0.25);
}
.quest-card:hover::before { opacity: 1; }

.quest-card.selected {
    border-color: var(--gold);
    box-shadow: var(--shadow-glow-gold);
}

.quest-card.boss {
    border-color: rgba(239,68,68,0.5);
}
.quest-card.boss:hover { border-color: var(--red); box-shadow: var(--shadow-glow-red); }

.quest-card.quick-win {
    border-color: rgba(34,197,94,0.3);
}
.quest-card.quick-win:hover { border-color: var(--green); box-shadow: var(--shadow-glow-green); }

.quest-card.timed-quest {
    border-color: rgba(129,140,248,0.35);
}
.quest-card.timed-quest:hover { border-color: var(--blue); }

.quest-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.quest-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(139,92,246,0.4));
}

.quest-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.quest-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.quest-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.badge-room {
    background: rgba(139,92,246,0.15);
    color: var(--purple-light);
    border: 1px solid rgba(139,92,246,0.3);
}

.badge-time {
    background: rgba(255,255,255,0.07);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-xp {
    background: rgba(34,211,238,0.12);
    color: var(--gold);
    border: 1px solid rgba(34,211,238,0.3);
    margin-left: auto;
}

.badge-boss {
    background: rgba(239,68,68,0.15);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.3);
}

.badge-timed {
    background: rgba(129,140,248,0.12);
    color: var(--blue);
    border: 1px solid rgba(129,140,248,0.3);
}

/* =============================================
   Roll Result Messages
   ============================================= */

.roll-result-msg {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Cinzel', serif;
}

.roll-result-nat20 {
    background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(34,211,238,0.04));
    border: 1px solid rgba(34,211,238,0.4);
    color: var(--gold);
    animation: goldGlow 2s ease-in-out infinite;
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(34,211,238,0.3); }
    50%       { box-shadow: 0 0 30px rgba(34,211,238,0.6); }
}

.roll-result-nat1 {
    background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.05));
    border: 1px solid rgba(239,68,68,0.5);
    color: var(--red);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-8px); }
    30%       { transform: translateX(8px); }
    45%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    75%       { transform: translateX(-3px); }
    90%       { transform: translateX(3px); }
}

.roll-result-normal {
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.3);
    color: var(--purple-light);
}

.roll-result-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.roll-result-sub {
    font-size: 0.85rem;
    opacity: 0.8;
    font-family: inherit;
    font-weight: normal;
}

.roll-omen {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.65;
    margin-top: 0.6rem;
    font-family: inherit;
    letter-spacing: 0.03em;
}

/* =============================================
   Status Celebrations
   ============================================= */

.celebration-nat20 {
    background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(34,211,238,0.04));
    border: 1px solid rgba(34,211,238,0.4);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    animation: goldGlow 3s ease-in-out infinite;
}

.celebration-completed {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
    border: 1px solid rgba(34,197,94,0.4);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.celebration-sport {
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(59,130,246,0.05));
    border: 1px solid rgba(59,130,246,0.4);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.celebration-prestige {
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(236,72,153,0.1), rgba(168,85,247,0.05));
    border: 1px solid rgba(168,85,247,0.5);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    animation: prestigeShimmer 3s linear infinite;
}

.celebration-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
    animation: celebBounce 1s ease-in-out infinite alternate;
}

@keyframes celebBounce {
    0%   { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

.celebration-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.celebration-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =============================================
   XP Float Animation
   ============================================= */

.xp-float {
    position: fixed;
    pointer-events: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(34,211,238,0.9);
    animation: xpFloat 1.8s ease-out forwards;
    z-index: 1000;
}

@keyframes xpFloat {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    70%  { transform: translateY(-80px) scale(1.15); opacity: 0.9; }
    100% { transform: translateY(-130px) scale(0.8); opacity: 0; }
}

/* =============================================
   D20 Animation
   ============================================= */

@keyframes d20Spin {
    0%   { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(180deg) scale(1.2); }
    50%  { transform: rotate(360deg) scale(0.9); }
    75%  { transform: rotate(540deg) scale(1.1); }
    100% { transform: rotate(720deg) scale(1); }
}

.d20-svg.rolling {
    animation: d20Spin 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Equipment
   ============================================= */

.equipment-view { }

.equipment-slots-header {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
    text-align: center;
}

.equipment-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.equip-slot {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.equip-slot:hover {
    border-color: var(--purple);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow-purple);
}

.equip-slot.filled {
    border-style: solid;
    border-color: var(--purple);
    background: rgba(139,92,246,0.08);
}

.equip-slot.filled:hover { box-shadow: var(--shadow-glow-purple); }

.slot-number {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.slot-icon { font-size: 1.8rem; line-height: 1; }

.slot-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
    text-align: center;
}
.slot-empty-label { font-size: 0.75rem; color: var(--text-dim); }

.equipment-list-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.equipment-grid {
    display: grid;
    gap: 0.75rem;
}

.equip-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all var(--transition);
}

.equip-item-card.is-equipped {
    border-color: var(--purple);
    background: rgba(139,92,246,0.08);
}

.equip-item-card.locked {
    opacity: 0.5;
}

.equip-item-icon { font-size: 1.6rem; flex-shrink: 0; }

.equip-item-info { flex: 1; min-width: 0; }
.equip-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.equip-item-desc { font-size: 0.78rem; color: var(--text-muted); }
.equip-item-lock { font-size: 0.72rem; color: var(--orange); margin-top: 0.2rem; }

/* =============================================
   Equip Modal
   ============================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    animation: fadeIn 0.15s ease;
}

@media (min-width: 480px) {
    .modal-overlay { align-items: center; }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.2s ease;
}

@media (min-width: 480px) {
    .modal-content {
        border-radius: var(--radius-lg);
        margin: auto;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--purple-light);
}

.modal-close {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.4rem;
    transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

.equip-modal-list { padding: 1rem 1.25rem 1.25rem; display: grid; gap: 0.5rem; }

.equip-modal-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.equip-modal-item:hover:not(.locked) {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

.equip-modal-item.equipped-here {
    background: rgba(139,92,246,0.12);
    border-color: var(--purple);
}

.equip-modal-item.locked { opacity: 0.45; cursor: not-allowed; }

/* =============================================
   History
   ============================================= */

/* Chronicle (History) */
.chronicle-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--purple-light);
    text-align: center;
    margin-bottom: 1.25rem;
}
.chronicle-list { display: grid; gap: 1.25rem; }
.chronicle-group { display: grid; gap: 0.4rem; }
.chronicle-date-header {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    padding: 0.25rem 0;
}
.chronicle-entry {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.2s ease;
    position: relative;
}
.chronicle-entry.entry-nat20 {
    border-left-color: var(--gold);
    background: linear-gradient(90deg, rgba(34,211,238,0.07), var(--bg-card));
}
.chronicle-entry.entry-nat1 {
    border-left-color: var(--red-dark);
    background: linear-gradient(90deg, rgba(225,29,72,0.07), var(--bg-card));
    opacity: 0.85;
}
.chronicle-entry.entry-boss {
    border-left-color: var(--red);
}
.chronicle-roll {
    font-size: 0.72rem;
    min-width: 34px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    background: rgba(139,92,246,0.15);
    color: var(--purple-light);
    border: 1px solid rgba(139,92,246,0.3);
    font-family: 'Cinzel', serif;
}
.chronicle-roll.nat20 {
    background: rgba(34,211,238,0.15);
    color: var(--gold);
    border-color: rgba(34,211,238,0.4);
    box-shadow: 0 0 8px rgba(34,211,238,0.25);
    font-size: 0.65rem;
}
.chronicle-roll.nat1 {
    background: rgba(239,68,68,0.15);
    color: var(--red);
    border-color: rgba(239,68,68,0.3);
    font-size: 0.65rem;
}
.chronicle-icon { font-size: 1.4rem; flex-shrink: 0; }
.chronicle-info { flex: 1; min-width: 0; }
.chronicle-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chronicle-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.chronicle-xp {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}
.chronicle-xp-label { font-size: 0.65rem; color: var(--text-muted); font-family: sans-serif; font-weight: 400; }
.chronicle-tag {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.tag-boss  { background: rgba(251,113,133,0.15); color: var(--red); border: 1px solid rgba(251,113,133,0.3); }
.tag-timed { background: rgba(251,146,60,0.12);  color: var(--orange); border: 1px solid rgba(251,146,60,0.3); }

/* =============================================
   Achievements
   ============================================= */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: all var(--transition);
}

.achievement-card.earned {
    border-color: rgba(34,211,238,0.35);
    background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(34,211,238,0.02));
}

.achievement-card.earned:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-glow-gold);
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(0.7);
}

.achievement-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.achievement-name {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.achievement-desc { font-size: 0.7rem; color: var(--text-muted); }
.achievement-xp   { font-size: 0.7rem; color: var(--gold); margin-top: 0.35rem; }
.achievement-date { font-size: 0.65rem; color: var(--text-dim); margin-top: 0.2rem; }

/* =============================================
   Admin
   ============================================= */

.admin-view { }

.admin-section { margin-bottom: 1.5rem; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.admin-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(45,45,80,0.5);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.inactive td { opacity: 0.45; }

.admin-form {
    display: grid;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group { display: grid; gap: 0.35rem; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0.6rem 0.75rem;
    transition: border-color var(--transition);
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.form-select option { background: var(--bg-card); }

.form-textarea { resize: vertical; min-height: 70px; }

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-check input[type=checkbox] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--purple);
}

/* Admin room HP editor */
.room-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.room-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.room-admin-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--purple-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* =============================================
   Toasts
   ============================================= */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 500;
    pointer-events: none;
    max-width: calc(100vw - 2rem);
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    box-shadow: var(--shadow);
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 340px;
    word-break: break-word;
}

.toast.toast-exit {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0);   opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}

.toast-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1.4; }
.toast-text { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.85rem; }
.toast-body  { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }

.toast.achievement {
    border-color: rgba(240,192,64,0.4);
    background: linear-gradient(135deg, rgba(240,192,64,0.1), var(--bg-card));
}
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.info    { border-color: rgba(139,92,246,0.4); }

/* =============================================
   Level-Up Overlay
   ============================================= */

.level-up-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.level-up-content {
    text-align: center;
    animation: levelUpReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes levelUpReveal {
    from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);     opacity: 1; }
}

.level-up-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: levelPulse 1s ease-in-out infinite alternate;
}

@keyframes levelPulse {
    from { filter: drop-shadow(0 0 10px rgba(240,192,64,0.5)); }
    to   { filter: drop-shadow(0 0 40px rgba(240,192,64,1)); }
}

.level-up-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--purple-light);
    text-shadow: 0 0 30px rgba(192,132,252,0.8);
    margin-bottom: 0.5rem;
}

.level-up-level {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--purple-light);
    margin-bottom: 0.25rem;
}

.level-up-title-name {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
}

/* =============================================
   Loading
   ============================================= */

#initialLoader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(139,92,246,0.2);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.inline-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* =============================================
   Animations
   ============================================= */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.animate-fadeIn  { animation: fadeIn  0.3s ease; }
.animate-slideUp { animation: slideUp 0.3s ease; }

/* =============================================
   Glow pulse on card borders
   ============================================= */

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(139,92,246,0.2); }
    50%       { box-shadow: 0 0 20px rgba(139,92,246,0.5); }
}

/* =============================================
   Misc
   ============================================= */

.divider {
    height: 1px;
    background: var(--border);
    margin: 1.25rem 0;
}

.text-gold    { color: var(--gold); }
.text-purple  { color: var(--purple-light); }
.text-red     { color: var(--red); }
.text-green   { color: var(--green); }
.text-orange  { color: var(--orange); }
.text-muted   { color: var(--text-muted); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-sm  { margin-top: 0.5rem; }
.mt-md  { margin-top: 1rem; }
.mt-lg  { margin-top: 1.5rem; }
.mb-sm  { margin-bottom: 0.5rem; }
.mb-md  { margin-bottom: 1rem; }
.mb-lg  { margin-bottom: 1.5rem; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm       { gap: 0.5rem; }
.gap-md       { gap: 1rem; }

.font-bold { font-weight: 700; }

.overdue-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    background: rgba(239,68,68,0.15);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.3);
    white-space: nowrap;
}

.next-due-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    background: rgba(249,115,22,0.12);
    color: var(--orange);
    border: 1px solid rgba(249,115,22,0.3);
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-state-text { font-size: 0.9rem; }

/* =============================================
   Room color accents (for badges)
   ============================================= */

.room-bad        { color: #60a5fa; }
.room-kueche     { color: #fb923c; }
.room-schlafzimmer { color: #c084fc; }
.room-vogelzimmer  { color: #34d399; }
.room-flur       { color: #fbbf24; }
.room-lesezimmer { color: #a3e635; }
.room-general    { color: #94a3b8; }

/* Legacy aliases kept for backwards compat */
.room-bathroom    { color: #60a5fa; }
.room-kitchen     { color: #fb923c; }
.room-bedroom     { color: #c084fc; }
.room-living_room { color: #34d399; }
.room-robot       { color: #22d3ee; }

/* =============================================
   Scrollbar
   ============================================= */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-glow); }

/* =============================================
   Responsive
   ============================================= */

@media (min-width: 480px) {
    .quest-options-grid { grid-template-columns: 1fr; }
    .achievements-grid  { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (min-width: 640px) {
    .quest-options-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
    .equipment-slots { grid-template-columns: repeat(3, 1fr); }
    .equip-slot { padding: 0.75rem 0.25rem; }
    .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   Tagesanker
   ============================================= */

.tagesanker-section { margin: var(--space-md) 0; }
.tagesanker-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem var(--space-md);
    transition: all var(--transition);
}
.tagesanker-card.done {
    opacity: 0.6;
    border-color: var(--green);
}
.tagesanker-card.ritual-pending {
    border-color: rgba(168,85,247,0.5);
    animation: ritualGlow 2.8s ease-in-out infinite;
}
@keyframes ritualGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(168,85,247,0.15), 0 0 0px rgba(240,192,64,0); border-color: rgba(168,85,247,0.5); }
    50%       { box-shadow: 0 0 22px rgba(168,85,247,0.45), 0 0 8px rgba(240,192,64,0.2); border-color: rgba(192,132,252,0.8); }
}
.tagesanker-icon { font-size: 1.5rem; flex-shrink: 0; }
.tagesanker-content { flex: 1; min-width: 0; }
.tagesanker-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.tagesanker-text { font-size: 0.95rem; color: var(--text); }
.btn-tagesanker {
    background: rgba(52,211,153,0.1);
    color: var(--green);
    border: 1px solid rgba(52,211,153,0.3);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.78rem;
    transition: all var(--transition);
}
.btn-tagesanker:hover {
    background: rgba(52,211,153,0.2);
    border-color: rgba(52,211,153,0.55);
    box-shadow: 0 0 12px rgba(52,211,153,0.18);
}
.tagesanker-done-badge { color: var(--green); font-weight: 600; white-space: nowrap; font-size: 0.85rem; }

/* =============================================
   Zone of Week
   ============================================= */

.zone-of-week {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(240,180,41,0.03);
    border: 1px solid rgba(240,180,41,0.12);
    border-left: 3px solid rgba(240,180,41,0.35);
    border-radius: var(--radius);
    padding: 0.75rem var(--space-md);
    margin: var(--space-md) 0;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: wochenbefehlPulse 3s ease-in-out infinite;
}
.zone-of-week::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240,180,41,0.04), transparent);
    animation: wochenbefehlShimmer 4s ease-in-out infinite;
}
@keyframes wochenbefehlShimmer {
    0%   { left: -60%; }
    100% { left: 120%; }
}
@keyframes wochenbefehlPulse {
    0%, 100% { border-left-color: rgba(240,180,41,0.25); box-shadow: none; }
    50%       { border-left-color: rgba(240,180,41,0.55); box-shadow: -2px 0 8px rgba(240,180,41,0.08); }
}
.zone-of-week:hover {
    background: rgba(240,180,41,0.06);
    border-left-color: rgba(240,180,41,0.65);
    box-shadow: 0 2px 8px rgba(240,180,41,0.08);
    transform: translateY(-1px);
    animation: none;
}
.zone-icon { font-size: 1.2rem; flex-shrink: 0; opacity: 0.6; }
.zone-content { flex: 1; min-width: 0; }
.zone-label {
    font-size: 0.68rem;
    color: rgba(240,180,41,0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}
.zone-room {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 3px 0;
    font-family: 'Cinzel', serif;
}
.zone-hint { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }
.zone-bonus {
    background: rgba(240,180,41,0.07);
    border: 1px solid rgba(240,180,41,0.2);
    color: rgba(240,180,41,0.7);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
    font-family: 'Cinzel', serif;
}
.zone-bonus small { display: block; font-size: 0.6rem; font-weight: 600; opacity: 0.75; font-family: sans-serif; }

/* =============================================
   Hot Spots
   ============================================= */

.hotspots-section {
    margin: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.hotspots-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-sm);
}
.hotspot-banner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(251,146,60,0.02);
    border: 1px solid rgba(251,146,60,0.12);
    border-left: 2px solid rgba(251,146,60,0.3);
    border-radius: var(--radius);
    padding: 0.6rem var(--space-md);
    transition: all var(--transition);
    width: 100%;
    text-align: left;
    animation: threatPulse 3.5s ease-in-out infinite;
}
@keyframes threatPulse {
    0%, 100% { border-left-color: rgba(251,146,60,0.22); box-shadow: none; }
    50%       { border-left-color: rgba(251,146,60,0.5); box-shadow: -2px 0 6px rgba(251,146,60,0.08); }
}
.hotspot-banner:hover {
    background: rgba(251,146,60,0.05);
    border-left-color: rgba(251,146,60,0.6);
    animation: none;
}
.hotspot-icon { font-size: 1.4rem; flex-shrink: 0; }
.hotspot-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hotspot-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Cinzel', serif;
}
.hotspot-desc { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }
.hotspot-done-btn {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition);
}
.hotspot-done-btn:hover {
    color: var(--text);
    border-color: var(--border-glow);
}
.hotspot-done-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =============================================
   Focus Quest / Timer
   ============================================= */

.quest-card.focus-quest {
    border-color: rgba(139,92,246,0.5);
}
.quest-card.focus-quest:hover {
    border-color: var(--purple);
    box-shadow: var(--shadow-glow-purple);
}

.focus-quest-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(139,92,246,0.2);
    border: 1px solid var(--purple);
    color: var(--purple-light);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.72rem;
    margin-top: 4px;
    line-height: 1.4;
}

.focus-timer-ui {
    padding: 1rem;
    text-align: center;
    margin: 0.75rem 0;
}

.focus-timer-display {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--purple-light);
    text-align: center;
    letter-spacing: 0.1em;
    margin: 16px 0;
    transition: color 0.3s;
}
.focus-timer-display.urgent {
    color: var(--red);
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.btn-start-timer {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin: 8px 0;
    transition: opacity var(--transition);
}
.btn-start-timer:hover { opacity: 0.9; }
.btn-start-timer:disabled { opacity: 0.45; cursor: not-allowed; }

.focus-mantra {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    margin: 8px 0;
    line-height: 1.5;
}

/* Quest Inline Edit */
.quest-edit-row td { padding: 0.75rem !important; background: rgba(147,51,234,0.06); }
.quest-inline-form { width: 100%; }
.quest-edit-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
@media (max-width: 600px) {
    .quest-edit-grid { grid-template-columns: 1fr 1fr; }
    .quest-edit-grid .form-group[style*="span 3"],
    .quest-edit-grid .form-group[style*="span 4"] { grid-column: span 2; }
}

/* =============================================
   Ambient Dungeon Particles
   ============================================= */

#dungeonParticles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.dungeon-particle {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    opacity: 0;
    animation: particleRise var(--dur, 9s) var(--delay, 0s) ease-in infinite;
}

@keyframes particleRise {
    0%   { transform: translateY(0) translateX(0) scale(0.4); opacity: 0; }
    8%   { opacity: 0.8; }
    80%  { opacity: 0.4; }
    100% { transform: translateY(-105vh) translateX(var(--drift, 25px)) scale(1.3); opacity: 0; }
}

/* =============================================
   Section Ornaments
   ============================================= */

.section-ornament {
    text-align: center;
    margin: var(--space-md) 0;
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    user-select: none;
    opacity: 0.55;
}

/* =============================================
   Boss Warn Overlay
   ============================================= */

#bossWarnOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

.boss-warn-content {
    text-align: center;
    max-width: 380px;
    animation: bossWarnReveal 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes bossWarnReveal {
    from { transform: scale(0.65) rotate(-6deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.boss-warn-skull {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
    animation: bossSkullPulse 0.8s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(251,113,133,0.7));
}

@keyframes bossSkullPulse {
    from { transform: scale(1);    filter: drop-shadow(0 0 20px rgba(251,113,133,0.5)); }
    to   { transform: scale(1.1);  filter: drop-shadow(0 0 45px rgba(251,113,133,1)); }
}

.boss-warn-title {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--red);
    text-shadow: 0 0 20px rgba(251,113,133,0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.boss-warn-quest {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.boss-warn-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.boss-warn-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

body.boss-warn-active::after {
    content: '';
    position: fixed;
    inset: 0;
    box-shadow: inset 0 0 180px rgba(225,29,72,0.45);
    pointer-events: none;
    z-index: 699;
    animation: bossVignette 1s ease-in-out infinite alternate;
}

@keyframes bossVignette {
    from { box-shadow: inset 0 0 150px rgba(225,29,72,0.3); }
    to   { box-shadow: inset 0 0 210px rgba(225,29,72,0.6); }
}

/* =============================================
   Sport Battle-Cry Overlay
   ============================================= */

#sportWarnOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

.sport-warn-content {
    text-align: center;
    max-width: 360px;
    animation: sportWarnReveal 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes sportWarnReveal {
    from { transform: scale(0.7) translateY(30px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.sport-warn-icon {
    font-size: 4.5rem;
    display: block;
    margin-bottom: 1rem;
    animation: sportIconPulse 0.9s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 18px rgba(14,165,233,0.7));
}

@keyframes sportIconPulse {
    from { transform: scale(1);    filter: drop-shadow(0 0 18px rgba(14,165,233,0.5)); }
    to   { transform: scale(1.12); filter: drop-shadow(0 0 40px rgba(14,165,233,1)); }
}

.sport-warn-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0ea5e9;
    text-shadow: 0 0 20px rgba(14,165,233,0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sport-warn-cry {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.75rem;
    line-height: 1.65;
    padding: 0 0.5rem;
}

.sport-warn-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   Achievement Unlock Overlay
   ============================================= */

#achievementOverlay {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    pointer-events: none;
}

#achievementOverlay.ach-showing {
    animation: achReveal 3.2s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

@keyframes achReveal {
    0%   { opacity: 0; transform: translateX(-50%) scale(0.6) translateY(-20px); }
    12%  { opacity: 1; transform: translateX(-50%) scale(1.04) translateY(0); }
    20%  { transform: translateX(-50%) scale(1) translateY(0); }
    78%  { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) scale(0.9) translateY(-16px); }
}

.ach-overlay-content {
    background: linear-gradient(135deg, rgba(30,21,53,0.98), rgba(40,28,68,0.98));
    border: 1px solid rgba(240,192,64,0.5);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    text-align: center;
    min-width: 240px;
    max-width: 320px;
    box-shadow: 0 0 40px rgba(240,192,64,0.2), 0 8px 32px rgba(0,0,0,0.6);
}

.ach-overlay-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 12px rgba(240,192,64,0.6));
}

.ach-overlay-unlocked {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.ach-overlay-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.ach-overlay-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* =============================================
   Nat-20 Flash
   ============================================= */

#nat20Flash {
    position: fixed;
    inset: 0;
    z-index: 800;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nat20FlashAnim 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes nat20FlashAnim {
    0%   { background: rgba(255,255,255,0); }
    7%   { background: rgba(255,255,255,0.9); }
    18%  { background: rgba(34,211,238,0.3); }
    100% { background: rgba(0,0,0,0); opacity: 0; }
}

.nat20-flash-text {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 40px rgba(34,211,238,1), 0 0 80px rgba(34,211,238,0.6), 0 2px 4px rgba(0,0,0,0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    animation: nat20TextAnim 1.8s ease forwards;
    line-height: 1.3;
    padding: 1rem;
}

@keyframes nat20TextAnim {
    0%   { transform: scale(0.25) rotate(-12deg); opacity: 0; }
    15%  { transform: scale(1.18) rotate(2deg);   opacity: 1; }
    28%  { transform: scale(0.96) rotate(0deg);   opacity: 1; }
    55%  { transform: scale(1) rotate(0deg);       opacity: 1; }
    82%  { opacity: 1; }
    100% { opacity: 0; transform: scale(1.25); }
}

#nat1Flash {
    position: fixed;
    inset: 0;
    z-index: 800;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nat1FlashAnim 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes nat1FlashAnim {
    0%   { background: rgba(0,0,0,0); }
    8%   { background: rgba(139,0,0,0.85); }
    25%  { background: rgba(80,0,0,0.55); }
    60%  { background: rgba(40,0,0,0.3); }
    100% { background: rgba(0,0,0,0); opacity: 0; }
}

.nat1-flash-text {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 9vw, 5rem);
    font-weight: 900;
    color: #ff2040;
    text-shadow: 0 0 60px rgba(220,0,0,1), 0 0 120px rgba(180,0,0,0.7), 0 2px 6px rgba(0,0,0,0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1.2;
    padding: 1rem;
    animation: nat1TextAnim 2.4s ease forwards;
}

.nat1-flash-sub {
    font-size: clamp(0.85rem, 2.5vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: rgba(255,120,120,0.85);
    margin-top: 0.4rem;
    text-shadow: 0 0 20px rgba(200,0,0,0.8);
}

@keyframes nat1TextAnim {
    0%   { transform: scale(1.8); opacity: 0; filter: blur(12px); }
    14%  { transform: scale(1.04); opacity: 1; filter: blur(0); }
    30%  { transform: scale(1) rotate(-1deg); opacity: 1; }
    60%  { transform: scale(1) rotate(0deg); opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 0; transform: scale(0.9); }
}

/* =============================================
   Room HP Threat Display
   ============================================= */

.room-hp-threat {
    font-size: 0.68rem;
    margin-top: 0.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.threat-clean     { color: var(--hp-clean); }
.threat-ok        { color: var(--hp-ok); }
.threat-neglected { color: var(--hp-neglected); }
.threat-critical  { color: var(--hp-critical); }
.threat-chaos     {
    color: var(--hp-chaos);
    animation: chaosPulseText 1.5s ease-in-out infinite;
    text-transform: uppercase;
}

@keyframes chaosPulseText {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* =============================================
   Streak Flame Levels
   ============================================= */

/* 0 — Erloschen */
.streak-card.flame-cold { border-color: rgba(148,163,184,0.3); }
.streak-card.flame-cold .streak-value { color: var(--text-muted); }

/* 1 — Aktiv (orange) */
.streak-card.flame-active { border-color: rgba(249,115,22,0.45); }
.streak-card.flame-active .streak-value { color: #fb923c; }

/* 2 — Blaues Feuer (7+) */
.streak-card.flame-blue {
    border-color: rgba(96,165,250,0.5);
    box-shadow: 0 0 14px rgba(96,165,250,0.12);
}
.streak-card.flame-blue .streak-value {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96,165,250,0.7);
}
.streak-card.flame-blue .streak-icon { animation: blueFlame 1.2s ease-in-out infinite alternate; }

@keyframes blueFlame {
    from { filter: drop-shadow(0 0 4px rgba(96,165,250,0.5)); transform: scale(1) rotate(-3deg); }
    to   { filter: drop-shadow(0 0 16px rgba(96,165,250,1)); transform: scale(1.12) rotate(3deg); }
}

/* 3 — Legendär (30+) */
.streak-card.flame-legendary {
    border-color: rgba(240,192,64,0.65);
    background: linear-gradient(135deg, rgba(240,192,64,0.07), var(--bg-card));
    animation: legendaryPulse 2s ease-in-out infinite;
}
.streak-card.flame-legendary .streak-value {
    background: linear-gradient(135deg, #ffd700, #fffde7, #ffd700);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldTextShimmer 2s linear infinite;
}
.streak-card.flame-legendary .streak-icon { animation: legendaryFlame 0.9s ease-in-out infinite alternate; }

@keyframes legendaryPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(240,192,64,0.15); }
    50%       { box-shadow: 0 0 40px rgba(240,192,64,0.4); }
}
@keyframes goldTextShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes legendaryFlame {
    from { filter: drop-shadow(0 0 8px rgba(255,215,0,0.6));  transform: scale(1.04) rotate(-4deg); }
    to   { filter: drop-shadow(0 0 28px rgba(255,215,0,1));   transform: scale(1.2) rotate(4deg); }
}

/* =============================================
   Heldenprofil — Hero View
   ============================================= */

.hero-portrait {
    background: linear-gradient(145deg, rgba(124,58,237,0.2), rgba(15,11,26,0.9));
    border: 1px solid rgba(147,51,234,0.5);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.hero-portrait::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(147,51,234,0.22), transparent 70%);
    pointer-events: none;
}

.hero-level-display {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--purple-light);
    text-shadow: 0 0 30px rgba(192,132,252,0.55);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.hero-level-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.hero-prestige-stars {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.prestige-star {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(240,192,64,0.7));
    animation: legendaryFlame 1s ease-in-out infinite alternate;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .hero-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.hero-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.75rem;
    text-align: center;
    transition: all var(--transition);
}
.hero-stat-card:hover { border-color: var(--border-glow); transform: translateY(-1px); }
.hero-stat-icon { font-size: 1.4rem; display: block; margin-bottom: 0.2rem; }
.hero-stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--purple-light);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

.hero-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-flavor-text {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 0.4rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.hero-equip-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-equip-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.9rem;
    color: var(--text);
    transition: all var(--transition);
}
.hero-equip-chip:hover { border-color: var(--purple); background: rgba(139,92,246,0.2); }
.hero-equip-chip-icon { font-size: 1.3rem; flex-shrink: 0; }
.hero-equip-chip-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.hero-equip-chip-name { font-size: 0.85rem; font-weight: 600; color: var(--purple-light); }
.hero-equip-chip-desc { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero-equip-empty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-style: italic;
    padding: 0.5rem 0;
}
.hero-equip-empty-icon { font-size: 1.1rem; opacity: 0.5; }

.hero-achievements-preview {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.hero-ach-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(34,211,238,0.05);
    border: 1px solid rgba(34,211,238,0.15);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.8rem;
    transition: all var(--transition);
}
.hero-ach-card:hover { border-color: rgba(34,211,238,0.4); background: rgba(34,211,238,0.1); }
.hero-ach-card-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(34,211,238,0.5));
    flex-shrink: 0;
}
.hero-ach-card-name { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   Quest Cards — Pergament-Optik
   ============================================= */

/* Zierliche Topline auf allen Quest-Cards */
.quest-card::after {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.35), transparent);
    pointer-events: none;
}

/* Boss-Quest: dunklerer Hintergrund + roter Akzentstreifen oben */
.quest-card.boss {
    background: linear-gradient(170deg, rgba(35,8,8,0.98) 0%, rgba(30,21,53,0.92) 100%);
}
.quest-card.boss::after {
    background: linear-gradient(90deg, transparent, var(--red), var(--red-dark), var(--red), transparent);
    opacity: 0.7;
}
.quest-card.boss .quest-name {
    color: #fca5a5;
    text-shadow: 0 0 8px rgba(251,113,133,0.3);
}

/* Quick-Win: grüne Topline */
.quest-card.quick-win::after {
    background: linear-gradient(90deg, transparent, rgba(52,211,153,0.4), transparent);
}

/* =============================================
   Tägliche Intro-Animation
   ============================================= */

#dungeonIntro {
    position: fixed;
    inset: 0;
    background: #08041a;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    animation: introFadeOut 0.7s ease 2.6s forwards;
}

.intro-rune {
    font-size: 3.5rem;
    animation: introRunePulse 1s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(147,51,234,0.7));
}

@keyframes introRunePulse {
    from { transform: scale(0.94); filter: drop-shadow(0 0 10px rgba(147,51,234,0.4)); }
    to   { transform: scale(1.06); filter: drop-shadow(0 0 40px rgba(147,51,234,1)); }
}

.intro-line {
    width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
    animation: introReveal 0.7s ease 0.3s both;
}

.intro-day {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    animation: introReveal 0.7s ease 0.5s both;
}

.intro-text {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 5vw, 1.9rem);
    font-weight: 700;
    color: var(--purple-light);
    text-align: center;
    text-shadow: 0 0 28px rgba(192,132,252,0.55);
    animation: introReveal 0.7s ease 0.8s both;
    line-height: 1.4;
}

.intro-sub {
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    animation: introReveal 0.7s ease 1.1s both;
}

@keyframes introReveal {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes introFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; pointer-events: none; }
}

/* =============================================
   Equipment — Lore Text
   ============================================= */

.equip-item-lore {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.equip-modal-lore {
    font-size: 0.74rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(61,40,104,0.4);
    line-height: 1.5;
}

/* =============================================
   Logout nav button
   ============================================= */

.nav-btn-logout {
    text-decoration: none;
    margin-left: auto; /* push to far right */
    opacity: 0.55;
}

.nav-btn-logout:hover { opacity: 0.9; }

/* =============================================
   Vacation Banner
   ============================================= */

.vacation-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(90deg, rgba(139,92,246,0.12), rgba(59,130,246,0.08));
    border: 1px solid rgba(139,92,246,0.35);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    margin-bottom: 0.75rem;
}

.vacation-banner-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.vacation-banner-title {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple-light);
    letter-spacing: 0.05em;
}

.vacation-banner-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.1rem;
}

/* =============================================
   Rest Day Overlay
   ============================================= */

#restDayOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#restDayOverlay.hidden { display: none; }

.rest-day-content {
    background: linear-gradient(155deg, #0d0d20 0%, #0d0d15 60%, #101020 100%);
    border: 2px solid var(--purple-mid);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
    animation: encounterSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rest-day-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.6rem;
}

.rest-day-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple-light);
    margin-bottom: 0.75rem;
}

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

.rest-day-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* =============================================
   Random Encounter Overlay
   ============================================= */

#encounterOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#encounterOverlay.hidden { display: none; }

.encounter-content {
    background: linear-gradient(155deg, #1e0b0b 0%, #0d0d15 55%, #1a0a0a 100%);
    border: 2px solid var(--red);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.3), 0 0 80px rgba(239, 68, 68, 0.08);
    animation: encounterSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.encounter-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: encounterPulse 2.4s ease-in-out infinite;
}

.encounter-label {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.encounter-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.encounter-flavor {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.encounter-task-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.encounter-task {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.6rem 0.85rem;
    background: rgba(61, 40, 104, 0.25);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(139, 92, 246, 0.2);
    line-height: 1.45;
}

.encounter-xp {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
}

.encounter-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

@keyframes encounterSlideIn {
    from { opacity: 0; transform: scale(0.82) translateY(18px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes encounterPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.18); }
}

/* =============================================
   Freie Erkundung
   ============================================= */

.freie-erkundung-section {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 1rem;
}

.btn-explore {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    letter-spacing: 0.03em;
}
.btn-explore:hover { color: var(--text); border-color: var(--border-glow); }

.freie-erkundung-done {
    font-size: 0.82rem;
    color: var(--text-dim);
    opacity: 0.7;
    text-align: center;
    padding: 0.4rem 0;
}

#exploreOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#exploreOverlay.hidden { display: none; }

.explore-content {
    background: linear-gradient(155deg, #071a12 0%, #0a1f14 60%, #0d0d20 100%);
    border: 2px solid #10b981;
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    max-width: 400px;
    width: 92%;
    text-align: center;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
    animation: encounterSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.explore-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.explore-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #6ee7b7;
    margin-bottom: 0.6rem;
}

.explore-text {
    font-size: 0.83rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.explore-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(6, 78, 59, 0.2);
    border: 1px solid #10b981;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.75rem;
    outline: none;
}
.explore-input:focus { border-color: #6ee7b7; box-shadow: 0 0 8px rgba(110,231,183,0.2); }
.explore-input::placeholder { color: var(--text-muted); }

.explore-select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(6, 78, 59, 0.2);
    border: 1px solid #10b981;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
    margin-bottom: 0.75rem;
    outline: none;
    cursor: pointer;
}
.explore-select option { background: #0d1a14; }

.explore-xp-hint {
    font-size: 0.75rem;
    color: #10b981;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.explore-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
