:root {
    --bg-dark: #06060c;
    --bg-surface: rgba(14, 14, 26, 0.78);
    --bg-surface-elevated: rgba(22, 22, 40, 0.85);
    --bg-card: rgba(18, 18, 34, 0.75);
    --bg-card-hover: rgba(28, 28, 52, 0.9);
    
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.09);
    --color-border-bright: rgba(255, 255, 255, 0.22);
    
    /* Vibrant Electric Neon Accents */
    --accent-purple: #8b5cf6;
    --accent-violet: #a855f7;
    --accent-pink: #ec4899;
    --accent-magenta: #d946ef;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #f43f5e;
    --accent-gold: #f59e0b;
    
    /* Category Gradients */
    --cat-sluts: linear-gradient(135deg, #ec4899, #be185d);
    --cat-trans: linear-gradient(135deg, #d946ef, #7c3aed);
    --cat-twinks: linear-gradient(135deg, #06b6d4, #3b82f6);
    --cat-mix: linear-gradient(135deg, #8b5cf6, #ec4899, #06b6d4);
    
    /* Radiant Glows */
    --glow-purple: 0 0 25px rgba(139, 92, 246, 0.5);
    --glow-pink: 0 0 25px rgba(236, 72, 153, 0.5);
    --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.5);
    --glow-green: 0 0 25px rgba(16, 185, 129, 0.5);
    --glow-red: 0 0 25px rgba(244, 63, 94, 0.5);
    
    /* Dimensions & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --header-height: 68px;
    --bottom-nav-height: 64px;
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(236, 72, 153, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.07) 0%, transparent 60%);
    background-attachment: fixed;
}

h1, h2, h3, .nav-brand, .char-name, .logo, .btn-primary, .btn-secondary, .round-counter {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.score-circular-text, #game-timer-text, .result-stat-value, .stat-number {
    font-family: 'JetBrains Mono', 'Outfit', monospace;
    font-weight: 700;
}

body.modal-open {
    overflow: hidden;
}

/* Utilities & Typography */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-1 { flex: 1; }

.cursor-pointer { cursor: pointer; }
.color-text-muted { color: var(--color-text-muted); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.view {
    width: 100%;
    min-height: 100vh;
}

.mobile-only {
    display: none !important;
}

.glow-text {
    background: linear-gradient(135deg, #f472b6, #c084fc, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(192, 132, 252, 0.35);
    font-weight: 800;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-trans { background: rgba(192, 38, 211, 0.2); color: #e879f9; border: 1px solid rgba(192, 38, 211, 0.4); }
.badge-sluts { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.4); }
.badge-twinks { background: rgba(6, 182, 212, 0.2); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.4); }
.badge-mix { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.4); }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-border-bright);
}

.btn-icon {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.btn-huge {
    font-size: 1.25rem;
    padding: 1.1rem 2rem;
    border-radius: var(--radius-lg);
    letter-spacing: 1px;
}

/* App Container */
#app-container {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.top-nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    background: rgba(10, 10, 20, 0.84);
    backdrop-filter: blur(20px) saturate(160%);
    position: sticky;
    top: 0.75rem;
    margin: 0.75rem 1rem 0;
    border-radius: var(--radius-xl);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    cursor: pointer;
    background: linear-gradient(135deg, #fff 30%, var(--accent-purple) 70%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    user-select: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-brand:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
}

.nav-links {
    display: flex;
    gap: 0.35rem;
    background: rgba(14, 14, 24, 0.75);
    padding: 0.35rem 0.45rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    user-select: none;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.25));
    color: #fff;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#streak-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(225, 29, 72, 0.15));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
    transition: all 0.25s ease;
    user-select: none;
}

#streak-badge:hover {
    transform: scale(1.06);
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.45);
    border-color: #fbbf24;
}

.top-nav .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-nav .btn-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

#btn-profile:hover {
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

#btn-logout:hover {
    color: var(--accent-red);
    background: rgba(225, 29, 72, 0.18);
    border-color: rgba(225, 29, 72, 0.4);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.35);
}

/* Mobile Bottom Nav */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    height: calc(var(--bottom-nav-height) - 4px);
    background: rgba(10, 10, 20, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.4rem 0.6rem;
    gap: 0.2rem;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.bottom-nav .nav-item span:first-child {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.bottom-nav .nav-item.active {
    color: #fff;
    background: transparent;
    box-shadow: none;
    border: none;
}

.bottom-nav .nav-item.active span:first-child {
    transform: translateY(-2px) scale(1.15);
    filter: drop-shadow(0 0 8px var(--accent-purple));
}

.bottom-nav .nav-item.active::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-pink);
    box-shadow: 0 0 8px var(--accent-pink);
    margin-top: 2px;
}

/* Main Content Area */
#main-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 100%;
}

/* Auth View */
#view-auth {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    background: #06060c;
}

/* Real Characters Fullscreen Animated Stream Background */
.auth-collage-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.collage-stream-container {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 130vw;
    height: 140vh;
    position: absolute;
    top: -20vh;
    left: -15vw;
    transform: rotate(-6deg);
    filter: brightness(0.68) saturate(1.35) contrast(1.15);
}

.stream-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 21vw;
    min-width: 160px;
    flex-shrink: 0;
    will-change: transform;
}

.stream-card {
    height: 28vh;
    min-height: 180px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animations for each column */
.stream-down-fast {
    animation: streamDown 28s linear infinite;
}
.stream-up-slow {
    animation: streamUp 38s linear infinite;
}
.stream-down-slow {
    animation: streamDown 42s linear infinite;
}
.stream-up-fast {
    animation: streamUp 26s linear infinite;
}
.stream-down-med {
    animation: streamDown 34s linear infinite;
}

@keyframes streamDown {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0%);
    }
}

@keyframes streamUp {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-50%);
    }
}

.collage-mesh-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(8, 8, 18, 0.38) 0%, rgba(6, 6, 12, 0.88) 75%),
                linear-gradient(135deg, rgba(139, 92, 246, 0.28) 0%, rgba(236, 72, 153, 0.22) 50%, rgba(56, 189, 248, 0.25) 100%);
    backdrop-filter: blur(3px);
    z-index: 2;
}

/* Floating Hype Streetwear Typography Layer */
.hype-text-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.hype-title {
    position: absolute;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    user-select: none;
    mix-blend-mode: overlay;
    filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.7));
}

.title-1 {
    top: 12%;
    left: 4%;
    transform: rotate(-7deg);
    color: #fff;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.9);
}

.title-2 {
    top: 18%;
    right: 4%;
    transform: rotate(6deg);
    color: #f43f5e;
    text-shadow: 0 0 35px rgba(244, 63, 94, 0.9);
}

.title-3 {
    bottom: 12%;
    left: 6%;
    transform: rotate(4deg);
    color: #38bdf8;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.9);
}

.hype-sticker {
    position: absolute;
    padding: 0.45rem 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    user-select: none;
    z-index: 4;
}

.sticker-1 {
    top: 6%;
    left: 8%;
    transform: rotate(-12deg);
    border-color: var(--accent-purple);
    color: #c084fc;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
}

.sticker-2 {
    top: 8%;
    right: 8%;
    transform: rotate(10deg);
    border-color: var(--accent-pink);
    color: #fb7185;
    box-shadow: 0 0 20px rgba(251, 113, 133, 0.5);
}

.sticker-3 {
    bottom: 8%;
    right: 6%;
    transform: rotate(-6deg);
    border-color: var(--accent-cyan);
    color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

@media (max-width: 768px) {
    .collage-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hype-title {
        font-size: 1.8rem;
        opacity: 0.5;
    }
}

.auth-box {
    background: rgba(12, 12, 24, 0.78);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: clamp(1.4rem, 4vw, 2.5rem) clamp(1.2rem, 3.5vw, 2.25rem);
    border-radius: var(--radius-xl);
    width: 90vw;
    max-width: 410px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.auth-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-purple);
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.auth-box .logo {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff 20%, var(--accent-purple) 65%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.5));
}

.auth-subtitle {
    font-size: clamp(0.72rem, 1.8vw, 0.82rem);
    color: var(--color-text-muted);
    line-height: 1.35;
}

.auth-tabs {
    display: flex;
    background: rgba(6, 6, 12, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 0.3rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.auth-tabs button {
    flex: 1;
    padding: 0.7rem 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tabs button:hover {
    color: #fff;
}

.auth-tabs button.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.25));
    color: #fff;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrap input {
    padding-right: 3rem !important;
}

.btn-toggle-pwd {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    user-select: none;
    z-index: 5;
}

.btn-toggle-pwd:hover {
    color: #fff;
    transform: scale(1.15);
}

.btn-toggle-pwd.active {
    filter: drop-shadow(0 0 6px var(--accent-cyan));
}

.auth-submit-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.35rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transition: all 0.25s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.55);
}

/* Responsive scaling for mobile & tablets so background is clearly visible */
@media (max-width: 768px) {
    .auth-box {
        max-width: 340px;
        padding: 1.5rem 1.25rem;
        background: rgba(12, 12, 24, 0.72);
        backdrop-filter: blur(16px);
    }
    .auth-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.65rem;
    }
    .auth-tabs {
        margin-bottom: 1.15rem;
        padding: 0.2rem;
    }
    .auth-tabs button {
        padding: 0.55rem 0.35rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .auth-box {
        max-width: 290px;
        width: 84vw;
        padding: 1.15rem 0.95rem;
        background: rgba(10, 10, 20, 0.65);
        border-radius: var(--radius-lg);
    }
    .auth-header {
        margin-bottom: 0.8rem;
    }
    .auth-box .logo {
        font-size: 1.85rem;
    }
    .auth-badge {
        display: none;
    }
    .auth-submit-btn {
        padding: 0.75rem 0.9rem;
        font-size: 0.85rem;
    }
    input[type="text"], input[type="password"] {
        padding: 0.7rem 0.85rem;
        font-size: 0.85rem;
    }
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
input[type="text"], input[type="password"], select, textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

/* Home Screen Category Cards */
#page-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 60px);
    padding: 1.5rem 1rem 3rem;
    width: 100%;
    box-sizing: border-box;
}

.home-hero {
    text-align: center;
    margin: 0 auto 2.25rem;
    max-width: 800px;
}
.home-hero h1 {
    font-size: 2.65rem;
    margin-bottom: 0.6rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.home-hero p {
    color: var(--color-text-muted);
    font-size: 1.15rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.85rem;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    justify-content: center;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    height: 400px; /* 25% larger than 320px */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0.6;
    z-index: 1;
}
.category-card:hover {
    transform: translateY(-8px) scale(1.025);
    border-color: var(--color-border-bright);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}
.category-card:hover::before {
    transform: scale(1.1);
    opacity: 0.82;
}

.category-card[data-category="trans"]:hover { box-shadow: var(--glow-purple); border-color: var(--accent-magenta); }
.category-card[data-category="sluts"]:hover { box-shadow: var(--glow-pink); border-color: var(--accent-pink); }
.category-card[data-category="twinks"]:hover { box-shadow: var(--glow-cyan); border-color: var(--accent-cyan); }
.category-card[data-category="mix"]:hover { box-shadow: 0 0 35px rgba(236, 72, 153, 0.5); border-color: var(--accent-purple); }

.category-card-overlay {
    position: relative;
    z-index: 2;
    padding: 1rem 1.15rem;
    background: linear-gradient(to top, rgba(6, 6, 12, 0.95) 0%, rgba(6, 6, 12, 0.6) 60%, transparent 100%);
}
.category-card-title {
    font-size: 0.95rem; /* Reduced 50% */
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
}
.category-card-count {
    color: var(--color-text-muted);
    font-size: 0.65rem; /* Reduced 50% */
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Modals & Bottom Sheets */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}
.modal-content,
#modal-settings .modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--color-border-bright);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.7);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar,
#modal-settings .modal-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.close-modal {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}
.close-modal:hover { color: #fff; }

.pill-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1.5rem;
}
.pill {
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.pill:hover { color: #fff; border-color: var(--color-border-bright); }
.pill.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-purple);
}

/* Enhanced Setup Modal Overlay */
.setup-modal-content {
    max-width: 580px;
    padding: 2.25rem 2rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top, rgba(26, 26, 44, 0.95), var(--bg-surface) 70%);
    border: 1px solid var(--color-border-bright);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.setup-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--color-border);
}

.setup-category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.setup-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
}

.setup-modal-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.setup-section-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

/* Mode Cards 2x2 Grid */
.mode-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.mode-card {
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.mode-card:hover {
    border-color: var(--color-border-bright);
    background: var(--bg-surface-elevated);
    transform: translateY(-2px);
}

.mode-card.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.18));
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mode-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-card.active .mode-card-icon {
    background: rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.mode-card-details {
    flex: 1;
    min-width: 0;
}

.mode-card-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: #fff;
    margin-bottom: 0.15rem;
}

.mode-card-desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.25;
}

.mode-card.active .mode-card-desc {
    color: rgba(255, 255, 255, 0.88);
}

/* Rounds Selection Row */
.rounds-pills-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.round-pill {
    flex: 1;
    min-width: 55px;
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.round-pill:hover {
    color: #fff;
    border-color: var(--color-border-bright);
    background: var(--bg-surface-elevated);
}

.round-pill.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.round-pill-unlimited {
    flex: 1.3;
    min-width: 85px;
    font-size: 0.85rem;
}

/* Big Start Button */
.btn-start-game-glow {
    width: 100%;
    padding: 1.05rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 50%, var(--accent-cyan) 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-start-game-glow:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.6);
}

.btn-start-game-glow:active {
    transform: translateY(0) scale(0.99);
}

.rocket-icon {
    font-size: 1.25rem;
    transition: transform 0.25s ease;
}

.btn-start-game-glow:hover .rocket-icon {
    transform: translateX(4px) translateY(-3px) scale(1.15);
}

/* Category-specific modal top accents */
#setup-modal-box[data-category="trans"] .setup-category-icon {
    border-color: var(--accent-magenta);
    box-shadow: var(--glow-purple);
}
#setup-modal-box[data-category="sluts"] .setup-category-icon {
    border-color: var(--accent-pink);
    box-shadow: var(--glow-pink);
}
#setup-modal-box[data-category="twinks"] .setup-category-icon {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

@media (max-width: 540px) {
    .mode-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Gameplay Screen */
#view-game {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
}
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.progress-bar-container {
    flex: 1;
    height: 10px;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
    border-radius: var(--radius-full);
    transition: width 0.35s ease;
}
.round-counter {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-muted);
    min-width: 80px;
    text-align: center;
}

/* Timer Bar */
.game-timer-container {
    height: 4px;
    width: 100%;
    background: var(--bg-surface-elevated);
    margin-bottom: 1rem;
    border-radius: var(--radius-full);
    overflow: hidden;
}
.game-timer-fill {
    height: 100%;
    background: var(--accent-cyan);
    width: 100%;
    transition: width 0.1s linear, background-color 0.3s ease;
}
.game-timer-fill.warning { background: var(--accent-gold); }
.game-timer-fill.danger { background: var(--accent-red); }

/* Classic & Sudden Death Gameplay Layout (Split on Desktop) */
.game-content-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.game-image-card {
    position: relative;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    max-height: 78vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    line-height: 0;
}
.game-image-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease;
}
.game-image-card:hover img {
    transform: scale(1.02);
}
.zoom-trigger-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.zoom-trigger-btn:hover {
    background: rgba(139, 92, 246, 0.8);
    transform: scale(1.1);
}

.game-options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.btn-option {
    background: var(--bg-card);
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    padding: 1.15rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
}
.btn-option:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--accent-purple);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}
.btn-option.correct {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: var(--accent-green) !important;
    color: #34d399 !important;
    box-shadow: var(--glow-green) !important;
}
.btn-option.wrong {
    background: rgba(225, 29, 72, 0.25) !important;
    border-color: var(--accent-red) !important;
    color: #fb7185 !important;
    box-shadow: var(--glow-red) !important;
    animation: shake 0.4s ease;
}
.btn-option:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Hot or Not Mode Layout */
.hon-target-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}
.hon-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.hon-card {
    background: var(--bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}
.hon-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hon-card:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.03);
    box-shadow: var(--glow-cyan);
}
.hon-card.correct {
    border-color: var(--accent-green) !important;
    box-shadow: var(--glow-green) !important;
}
.hon-card.wrong {
    border-color: var(--accent-red) !important;
    box-shadow: var(--glow-red) !important;
    animation: shake 0.4s ease;
}

/* Lifelines */
.game-lifelines {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.btn-lifeline {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.btn-lifeline:hover:not(:disabled) {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
.btn-lifeline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 3-Stage Results Screen */
.results-stage {
    max-width: 650px;
    margin: 1.5rem auto;
    background: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.score-circular-container {
    width: 180px;
    height: 180px;
    margin: 1.5rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.score-circular-svg {
    transform: rotate(-90deg);
}
.score-circular-bg {
    fill: none;
    stroke: var(--bg-surface-elevated);
    stroke-width: 12;
}
.score-circular-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1.2s ease-out;
}
.score-circular-text {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 800;
}

.results-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}
.result-stat-box {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
}
.result-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
}
.result-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Wrong Answers Review Carousel */
.carousel-container {
    position: relative;
    margin: 1.5rem 0;
}
.carousel-card {
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.carousel-card img {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--accent-red);
    cursor: pointer;
}
.review-correct-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-green);
    text-shadow: var(--glow-green);
}
.review-wrong-guess {
    font-size: 1rem;
    color: var(--accent-red);
    text-decoration: line-through;
}
.carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Gallery & Manager */
.gallery-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.gallery-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.gallery-controls input {
    flex: 1;
    min-width: 200px;
}
.gallery-controls select {
    height: 42px;
    padding: 0 1rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 170px;
}
.gallery-controls select:focus {
    border-color: var(--accent-purple);
    outline: none;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}
.gallery-controls #btn-train-due {
    height: 42px;
    padding: 0 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: auto;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .gallery-controls select,
    .gallery-controls input,
    .gallery-controls #btn-train-due {
        width: 100%;
        margin-left: 0;
    }
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.char-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.char-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-bright);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.char-img-container {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.char-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.char-card:hover .char-img-container img {
    transform: scale(1.05);
}
.char-info {
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.char-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.char-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}
.char-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.char-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.char-action-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}
.char-action-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

/* Character Detail Modal */
.detail-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.detail-gallery::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.detail-gallery-thumb {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-border);
}
.detail-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-gallery-thumb .thumb-del {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.8);
    color: var(--accent-red);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}
.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.detail-stat-item {
    background: var(--bg-surface-elevated);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}
.detail-stat-item .val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}
.detail-stat-item .lbl {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.danger-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-red);
    object-fit: cover;
}

/* Weak Spotlight Banner */
.weak-spotlight-banner {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(225, 29, 72, 0.35);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.weak-avatars-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.weak-avatar-item {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-red);
    object-fit: cover;
    box-shadow: var(--glow-red);
}

/* Character Stats & Mastery Stars */
.star-rating {
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-size: 0.95rem;
}
.pulsing-red-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
    animation: pulse 1.5s infinite;
}

/* Leaderboard Specific Styles */
.leaderboard-header-section {
    margin-bottom: 1.5rem;
}

.leaderboard-type-switch {
    margin: 0 !important;
    display: inline-flex;
    background: var(--bg-surface);
    padding: 0.3rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    gap: 0.25rem;
}

.leaderboard-type-switch .pill {
    padding: 0.55rem 1.15rem;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
}

.leaderboard-type-switch .pill:hover {
    color: #fff;
}

.leaderboard-type-switch .pill.active {
    background: var(--bg-surface-elevated);
    color: #fff;
    border-color: var(--color-border-bright);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.leaderboard-controls-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.leaderboard-tabs {
    display: flex;
    gap: 0.35rem;
    background: var(--bg-surface);
    padding: 0.35rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.leaderboard-tab {
    flex: 1;
    min-width: 80px;
    padding: 0.55rem 0.85rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.leaderboard-tab:hover {
    color: #fff;
}
.leaderboard-tab.active {
    background: var(--bg-surface-elevated);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-color: var(--color-border-bright);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-row {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}
.leaderboard-row.me {
    border-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
    background: rgba(139, 92, 246, 0.1);
}

/* Star/Pornstar Specific Row */
.star-rank-row {
    position: relative;
    padding: 0.9rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.star-rank-row:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-bright);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.star-rank-row.rank-1 {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, var(--bg-card) 60%);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.12);
}

.star-rank-row.rank-2 {
    border-color: rgba(203, 213, 225, 0.35);
    background: linear-gradient(135deg, rgba(203, 213, 225, 0.06) 0%, var(--bg-card) 60%);
}

.star-rank-row.rank-3 {
    border-color: rgba(249, 115, 22, 0.35);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, var(--bg-card) 60%);
}

.star-main-col {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.rank-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    flex-shrink: 0;
}

.rank-badge {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.trend-indicator {
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 3px;
}

.trend-indicator.trend-up {
    color: #34d399;
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.6));
}

.trend-indicator.trend-down {
    color: #f43f5e;
    filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.6));
}

.trend-indicator.trend-same {
    color: var(--color-text-muted);
    font-size: 0.65rem;
}

.star-avatar-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    background: var(--bg-surface-elevated);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.star-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.25s ease;
}

.star-avatar-box:hover .star-avatar-img {
    transform: scale(1.12);
}

.star-info-box {
    flex: 1;
    min-width: 0;
}

.star-name-text {
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.duration-badge {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.75rem;
}

.star-stats-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.accuracy-badge {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.accuracy-badge.accuracy-high {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

.accuracy-badge.accuracy-med {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.accuracy-badge.accuracy-low {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.answers-breakdown-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.stat-correct {
    color: #34d399;
}

.stat-wrong {
    color: #fb7185;
}

@media (max-width: 640px) {
    .star-rank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }
    .star-stats-col {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 0.6rem;
    }
}

.user-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    margin-right: 0.5rem;
}

/* Universal Zoom Lightbox */
#zoom-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1.5rem;
}
#close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
#close-lightbox:hover {
    background: rgba(225, 29, 72, 0.8);
    transform: rotate(90deg);
}
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
#lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-caption {
    background: rgba(20, 20, 34, 0.9);
    border: 1px solid var(--color-border);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.lightbox-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}
.lightbox-strip {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 4px;
}
.lightbox-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: var(--transition);
}
.lightbox-thumb:hover {
    opacity: 0.85;
}
.lightbox-thumb.active {
    border-color: var(--accent-pink);
    opacity: 1;
    box-shadow: var(--glow-pink);
}
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(14, 14, 24, 0.75);
    border: 1px solid var(--color-border-bright);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}
.lightbox-nav-btn:hover {
    background: rgba(139, 92, 246, 0.85);
    box-shadow: var(--glow-purple);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
    width: calc(100% - 40px);
}
.toast {
    background: rgba(20, 20, 34, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid var(--color-border-bright);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}
.toast.toast-success { border-color: rgba(16, 185, 129, 0.6); box-shadow: var(--glow-green); }
.toast.toast-error { border-color: rgba(225, 29, 72, 0.6); box-shadow: var(--glow-red); }
.toast.toast-info { border-color: rgba(6, 182, 212, 0.6); box-shadow: var(--glow-cyan); }
.toast.toast-warning { border-color: rgba(245, 158, 11, 0.6); }
.toast.toast-hiding { opacity: 0; transform: translateY(-10px); }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card Actions & Moderation */
.char-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
    padding-top: 6px;
}
.btn-card-action {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-card-action:hover {
    color: var(--color-text);
    border-color: var(--color-border-bright);
    background: var(--bg-card-hover);
}
.btn-card-action.danger:hover {
    color: #fb7185;
    border-color: rgba(225, 29, 72, 0.5);
    background: rgba(225, 29, 72, 0.15);
}
.btn-card-action.report:hover {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.5);
}

/* Skeleton Loading Shimmer */
.skeleton {
    background: linear-gradient(90deg, #161624 25%, #252538 50%, #161624 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Stats Overview 4 Boxes Horizontal Grid */
.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2rem 0;
}

.stat-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-summary-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-bright);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.stat-summary-card.card-mastered {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(20, 20, 36, 0.8) 100%);
}

.stat-summary-card.card-learning {
    border-color: rgba(56, 189, 248, 0.35);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(20, 20, 36, 0.8) 100%);
}

.stat-summary-card.card-weak {
    border-color: rgba(251, 113, 133, 0.35);
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.08) 0%, rgba(20, 20, 36, 0.8) 100%);
}

.stat-summary-card.card-due {
    border-color: rgba(168, 85, 247, 0.35);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, rgba(20, 20, 36, 0.8) 100%);
}

.stat-card-value {
    font-family: 'JetBrains Mono', 'Outfit', monospace;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-card-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.2px;
}

@media (max-width: 860px) {
    .stats-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-card-value {
        font-size: 1.5rem;
    }
    .stat-card-label {
        font-size: 0.72rem;
    }
}

/* Smart Import Top Fixed Controls Bar */
.crawler-top-toolbar {
    position: sticky;
    top: calc(var(--header-height) - 1px);
    z-index: 75;
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.crawler-controls-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.toolbar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.toolbar-select {
    height: 40px;
    min-width: 150px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-md);
    padding: 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.toolbar-select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
    outline: none;
}

.crawler-page-stepper {
    display: flex;
    align-items: center;
    height: 40px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2px 4px;
    gap: 4px;
    transition: var(--transition);
}

.crawler-page-stepper:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.crawler-page-stepper .btn-step {
    height: 32px;
    min-width: 32px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.crawler-page-stepper .btn-step:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
}

.crawler-page-stepper input[type="number"] {
    width: 50px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    padding: 0;
    outline: none;
    -moz-appearance: textfield;
}

.crawler-page-stepper input[type="number"]::-webkit-inner-spin-button,
.crawler-page-stepper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.page-pills {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 40px;
}

.page-pill {
    height: 34px;
    min-width: 34px;
    padding: 0 0.55rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.page-pill:hover {
    color: var(--color-text);
    border-color: var(--color-border-bright);
    background: var(--bg-card-hover);
}

.page-pill.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.btn-fetch-action {
    height: 40px;
    padding: 0 1.5rem;
    margin-left: auto;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.crawler-ribbon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.direct-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 440px;
}

.direct-search-input {
    height: 36px;
    padding: 0 0.85rem;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    flex: 1;
}

.direct-search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
    outline: none;
}

.btn-scrape-action {
    height: 36px;
    padding: 0 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: var(--radius-md);
}

.ribbon-actions-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-compact {
    height: 32px;
    padding: 0 0.75rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

.stats-pills-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.crawler-stat-pill {
    height: 32px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--color-border);
    padding: 0 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.crawler-stat-pill.pill-new {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.08);
}

.crawler-stat-pill.pill-exists {
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.08);
}

.crawler-stat-pill.pill-selected {
    border-color: rgba(6, 182, 212, 0.45);
    background: rgba(6, 182, 212, 0.12);
}

/* Row-by-Row Character Cards Layout */
.crawler-rows-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.crawler-row-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.crawler-row-card:hover {
    border-color: var(--color-border-bright);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.crawler-row-card.is-duplicate {
    opacity: 0.6;
    filter: grayscale(0.4);
}

/* Card Header: Avatar on Left + Details on Right */
.row-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.row-main-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    border: 2px solid var(--color-border);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.row-main-avatar:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.04);
}

.row-main-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-info-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 240px;
}

.row-title-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.row-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
}

.row-meta-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.photos-selected-tag {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Photos Strip (Below Name & Header) */
.row-photos-strip-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.row-photos-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 0.75rem 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.row-photos-strip::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.img-strip-thumb {
    position: relative;
    width: 175px;
    height: 175px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    background: var(--bg-surface-elevated);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.img-strip-thumb:hover {
    border-color: var(--color-border-bright);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.img-strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-strip-thumb:hover img {
    transform: scale(1.05);
}

.img-strip-thumb.selected {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.7), inset 0 0 0 1px var(--accent-cyan);
}

.img-strip-thumb .thumb-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    transition: var(--transition);
    z-index: 2;
}

.img-strip-thumb.selected .thumb-check {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.9);
}

.img-strip-thumb .thumb-zoom-btn {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.img-strip-thumb:hover .thumb-zoom-btn {
    opacity: 1;
}

.img-strip-thumb .thumb-zoom-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: scale(1.15);
}

/* Photo Picker Modal & Multi-Photo Selection */
.modal-photo-picker {
    max-width: 860px !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.photo-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem 0.25rem;
}

.photo-picker-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    background: var(--bg-surface-elevated);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.photo-picker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.photo-picker-item:hover {
    border-color: var(--color-border-bright);
    transform: scale(1.03);
}

.photo-picker-item:hover img {
    transform: scale(1.08);
}

.photo-picker-item.selected {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
}

.photo-picker-item .picker-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    transition: var(--transition);
}

.photo-picker-item.selected .picker-badge {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.8);
}

.btn-open-gallery {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: var(--accent-cyan);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
    width: 100%;
    margin-top: 4px;
}

.btn-open-gallery:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.direct-crawler-box {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}


.img-strip-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    background: var(--bg-surface-elevated);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.img-strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-strip-thumb:hover {
    border-color: var(--color-border-bright);
    transform: scale(1.03);
}

.img-strip-thumb.selected {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.img-strip-thumb .thumb-check {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    opacity: 0.7;
    transition: var(--transition);
}

.img-strip-thumb.selected .thumb-check {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    opacity: 1;
    color: #000;
    font-weight: bold;
}

.img-strip-thumb.failed {
    display: none !important;
}

/* Card Selection Footer */
.crawler-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.crawler-select-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

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

/* Floating Sticky Footer */
.crawler-sticky-footer {
    position: sticky;
    bottom: 80px;
    background: rgba(14, 14, 24, 0.95);
    backdrop-filter: blur(16px);
    padding: 1rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-purple);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--glow-purple);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 85;
    margin-top: 2rem;
    transition: var(--transition);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .smart-import-container {
        grid-template-columns: 1fr;
    }
    .smart-import-sidebar {
        position: static;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(260px, 340px));
        gap: 1.75rem;
        justify-content: center;
    }
    .game-content-split {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .game-image-card {
        width: fit-content;
        max-width: 100%;
        height: fit-content;
        max-height: 60vh;
        margin: 0 auto;
    }
    .game-image-card img {
        max-height: 60vh;
        max-width: 100%;
        width: auto;
        height: auto;
    }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    .bottom-nav { display: flex !important; }
    #main-content { padding-bottom: calc(var(--bottom-nav-height) + 1.5rem); }
    
    .bottom-sheet {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    .bottom-sheet .modal-content {
        max-width: 100% !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
        animation: slideUp 0.3s ease-out;
        padding-bottom: calc(env(safe-area-inset-bottom, 1rem) + 1.5rem);
    }
}

@media (max-width: 580px) {
    .category-grid {
        grid-template-columns: minmax(260px, 380px);
        justify-content: center;
        gap: 1.5rem;
    }
    .category-card {
        height: 360px;
    }
    .hon-cards-grid {
        grid-template-columns: 1fr;
    }
    .results-stats-row {
        grid-template-columns: 1fr;
    }
    .img-strip-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }
}

/* ==========================================================================
   Random Celebrity Picker Modal & Card (Zero-Scroll Viewport Fitted)
   ========================================================================== */
.random-picker-modal-content {
    max-width: 480px;
    width: 92%;
    max-height: 94vh;
    padding: 0.75rem 1rem 1rem;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 50px rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    animation: zoomInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.random-picker-modal-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@keyframes zoomInModal {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.random-picker-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.random-card-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.random-loader-wrap {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.random-img-box {
    position: relative;
    width: fit-content;
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    line-height: 0;
    margin: 0 auto;
    flex: 0 1 auto;
    min-height: 0;
}

.random-img-box img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease;
}

.random-img-box:hover img {
    transform: scale(1.02);
}

.random-info-bar {
    text-align: center;
    width: 100%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.random-winner-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.4px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.random-actions-row {
    margin-top: 0.5rem;
    gap: 0.45rem;
    flex-shrink: 0;
}

.random-actions-row button {
    padding: 0.42rem 0.8rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
}

@media (max-height: 700px) {
    .random-picker-modal-content {
        max-height: 98vh;
        padding: 0.5rem 0.75rem 0.75rem;
    }
    .random-img-box, .random-img-box img {
        max-height: 50vh;
    }
    .random-winner-name {
        font-size: 1.1rem;
    }
    .random-actions-row button {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.78rem !important;
    }
}

#btn-random-pick {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    font-size: 1.15rem;
    transition: var(--transition);
}

#btn-random-pick:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.4));
    border-color: rgba(236, 72, 153, 0.7);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

/* ==========================================================================
   Worship Page (The Royal Devotion Shrine)
   ========================================================================== */
.worship-page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.worship-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.45rem 1.15rem;
    background: rgba(15, 15, 30, 0.65);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-full);
    width: fit-content;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.worship-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}

.worship-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.worship-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.worship-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

input:checked + .worship-slider {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

input:checked + .worship-slider:before {
    transform: translateX(20px);
    background: #fff;
}

.worship-selectors-wrapper {
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
    max-height: 250px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
}

.worship-selectors-wrapper.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateY(-12px) !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.worship-category-ribbon {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.worship-cat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.worship-cat-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.worship-cat-pill.active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.3), rgba(236, 72, 153, 0.3));
    border-color: #f59e0b;
    color: #fff;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
    font-weight: 700;
}

.worship-stars-strip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.worship-stars-strip::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.worship-star-avatar-card {
    flex: 0 0 auto;
    background: rgba(15, 15, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.worship-star-avatar-card:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
}

.worship-star-avatar-card.active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.3), rgba(139, 92, 246, 0.3));
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.worship-star-avatar-badge {
    font-size: 0.85rem;
}

.worship-star-name-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
}

.worship-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.worship-altar-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.worship-portrait-card {
    position: relative;
    background: radial-gradient(circle at center, rgba(30, 27, 75, 0.4) 0%, #070711 100%);
    border: 2px solid rgba(245, 158, 11, 0.45);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.2);
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 480px;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.worship-portrait-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: var(--radius-xl);
    transition: transform 0.25s ease;
}

.worship-portrait-card:hover img {
    transform: scale(1.015);
}

.worship-portrait-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.25rem 1rem;
    background: linear-gradient(0deg, rgba(6, 6, 12, 0.95) 0%, rgba(6, 6, 12, 0.6) 70%, transparent 100%);
    pointer-events: none;
}

.worship-star-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    color: #fff;
}

.worship-rank-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
}

.worship-card-section {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.worship-card-section:hover {
    border-color: rgba(245, 158, 11, 0.35);
}

.worship-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.worship-section-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.worship-phrase-bubble {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fef08a;
    text-align: center;
    font-style: italic;
    transition: all 0.3s ease;
}

.glow-pulse {
    animation: textGlowPulse 0.6s ease-out;
}

@keyframes textGlowPulse {
    0% { transform: scale(0.97); color: #fff; text-shadow: 0 0 20px #f59e0b; }
    50% { transform: scale(1.03); color: #fde047; text-shadow: 0 0 30px #f59e0b; }
    100% { transform: scale(1); color: #fef08a; }
}

.praise-flash {
    animation: praiseGlow 0.7s ease-out;
}

@keyframes praiseGlow {
    0% { box-shadow: 0 0 50px rgba(245, 158, 11, 0.8), 0 0 80px rgba(236, 72, 153, 0.6); }
    100% { box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.2); }
}

.submission-pulse {
    animation: submissionGlow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes submissionGlow {
    0% { transform: scale(0.96); box-shadow: 0 0 60px rgba(236, 72, 153, 0.9), 0 0 100px rgba(139, 92, 246, 0.8); }
    50% { transform: scale(1.02); box-shadow: 0 0 45px rgba(236, 72, 153, 0.7); }
    100% { transform: scale(1); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.2); }
}

@media (max-width: 860px) {
    .worship-grid-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .worship-portrait-card, .worship-portrait-card img {
        max-height: 52vh;
    }
}

/* ==========================================================================
   Throne of the Goddesses & Worship Navigation Tabs
   ========================================================================== */

.worship-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 0.35rem;
    background: rgba(15, 15, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.worship-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.worship-tab-btn .tab-sub {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.75;
    margin-top: 0.15rem;
}

.worship-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.worship-tab-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(236, 72, 153, 0.35));
    border-color: #f59e0b;
    color: #fff;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

/* Throne View Container */
.worship-throne-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Throne Summary Stats */
.throne-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.throne-stat-card {
    background: rgba(15, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.throne-stat-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.throne-stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.throne-stat-title {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.throne-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

/* Throne Filter & Search Bar */
.throne-controls-bar {
    background: rgba(15, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.throne-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.throne-chip {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.throne-chip:hover {
    color: #fff;
    border-color: rgba(245, 158, 11, 0.4);
}

.throne-chip.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(236, 72, 153, 0.25));
    border-color: #f59e0b;
    color: #fcd34d;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.throne-search-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.85rem;
    width: 240px;
    outline: none;
    transition: var(--transition);
}

.throne-search-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

/* Tier Sections */
.throne-tier-section {
    background: rgba(12, 12, 24, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.throne-tier-section.tier-10 { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 35px rgba(245, 158, 11, 0.15); }
.throne-tier-section.tier-9 { border-color: rgba(236, 72, 153, 0.5); box-shadow: 0 0 25px rgba(236, 72, 153, 0.12); }
.throne-tier-section.tier-8 { border-color: rgba(168, 85, 247, 0.45); }
.throne-tier-section.tier-7 { border-color: rgba(99, 102, 241, 0.4); }
.throne-tier-section.tier-6 { border-color: rgba(56, 189, 248, 0.35); }
.throne-tier-section.tier-5 { border-color: rgba(52, 211, 153, 0.35); }
.throne-tier-section.tier-4 { border-color: rgba(251, 191, 36, 0.3); }
.throne-tier-section.tier-3 { border-color: rgba(249, 115, 22, 0.3); }
.throne-tier-section.tier-2 { border-color: rgba(244, 63, 94, 0.25); }
.throne-tier-section.tier-1 { border-color: rgba(148, 163, 184, 0.2); }

.throne-tier-header {
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.throne-tier-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.throne-tier-badge-icon {
    font-size: 2rem;
    line-height: 1;
}

.throne-tier-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.throne-tier-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.throne-tier-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.throne-tier-points-pill {
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.throne-tier-count-pill {
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

/* Character Cards Grid inside Tier */
.throne-cards-grid {
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.throne-char-card {
    background: rgba(18, 18, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.throne-char-card:hover {
    transform: translateY(-4px);
    border-color: #f59e0b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.25);
}

.throne-char-thumb-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: #090915;
    overflow: hidden;
}

.throne-char-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.throne-char-card:hover .throne-char-thumb-wrap img {
    transform: scale(1.05);
}

.throne-char-category-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.throne-char-score-badge {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fcd34d;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.throne-char-info {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    justify-content: space-between;
}

.throne-char-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.throne-btn-enter {
    width: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef08a;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.throne-btn-enter:hover {
    background: linear-gradient(135deg, #d97706, #ec4899);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Empty Tier State */
.throne-empty-chamber {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.throne-empty-chamber-icon {
    font-size: 1.75rem;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .throne-tier-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .throne-tier-meta {
        width: 100%;
        justify-content: space-between;
    }
    .throne-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.85rem;
        padding: 1rem;
    }
    .throne-char-thumb-wrap {
        height: 170px;
    }
    .throne-search-input {
        width: 100%;
    }
}

/* ==========================================================================
   The Rosary of the Goddesses (مسبحة الآلهة)
   ========================================================================== */

.worship-rosary-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.rosary-arena-card {
    background: radial-gradient(circle at center, rgba(30, 27, 75, 0.6) 0%, rgba(10, 10, 22, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
}

.rosary-arena-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: slowAuraRotate 25s linear infinite;
}

.rosary-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr);
    gap: 2rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Category Themed Glows */
.rosary-theme-sluts .rosary-arena-card { border-color: rgba(236, 72, 153, 0.5); box-shadow: 0 0 35px rgba(236, 72, 153, 0.25); }
.rosary-theme-trans .rosary-arena-card { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 0 35px rgba(168, 85, 247, 0.25); }
.rosary-theme-twinks .rosary-arena-card { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 35px rgba(56, 189, 248, 0.25); }

/* Left Column: Full Uncropped Goddess Portrait Altar */
.rosary-portrait-altar {
    position: relative;
    background: radial-gradient(circle at center, rgba(30, 27, 75, 0.4) 0%, #070711 100%);
    border: 2px solid rgba(245, 158, 11, 0.45);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.2);
    width: 100%;
    max-width: 100%;
    min-height: 480px;
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.rosary-portrait-altar img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: var(--radius-xl);
    transition: transform 0.25s ease;
}

.rosary-portrait-altar:hover img {
    transform: scale(1.015);
}

.rosary-portrait-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 0.85rem;
    background: linear-gradient(0deg, rgba(6, 6, 12, 0.95) 0%, rgba(6, 6, 12, 0.6) 70%, transparent 100%);
    pointer-events: none;
}

/* Right Column: Rites, Beads, & Chants */
.rosary-rites-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Litany Mode Selector */
.rosary-litany-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.rosary-litany-btn {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rosary-litany-btn:hover {
    color: #fff;
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.rosary-litany-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(236, 72, 153, 0.35));
    border-color: #f59e0b;
    color: #fcd34d;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

/* Central Circular Rosary Bead Ring */
.rosary-ring-container {
    position: relative;
    width: 290px;
    height: 290px;
    margin: 0.5rem auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rosary-bead-item {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.rosary-bead-item.active {
    background: radial-gradient(circle at 30% 30%, #fef08a, #f59e0b);
    border-color: #fff;
    box-shadow: 0 0 12px #f59e0b, 0 0 20px rgba(245, 158, 11, 0.6);
    transform: scale(1.15);
}

.rosary-theme-sluts .rosary-bead-item.active {
    background: radial-gradient(circle at 30% 30%, #fbcfe8, #ec4899);
    box-shadow: 0 0 12px #ec4899, 0 0 20px rgba(236, 72, 153, 0.6);
}

.rosary-theme-trans .rosary-bead-item.active {
    background: radial-gradient(circle at 30% 30%, #e9d5ff, #a855f7);
    box-shadow: 0 0 12px #a855f7, 0 0 20px rgba(168, 85, 247, 0.6);
}

.rosary-theme-twinks .rosary-bead-item.active {
    background: radial-gradient(circle at 30% 30%, #bae6fd, #0284c7);
    box-shadow: 0 0 12px #0284c7, 0 0 20px rgba(2, 132, 199, 0.6);
}

.rosary-bead-item.current {
    transform: scale(1.4);
    animation: beadPulse 0.6s infinite alternate;
}

@keyframes beadPulse {
    0% { box-shadow: 0 0 10px #f59e0b; }
    100% { box-shadow: 0 0 25px #f59e0b, 0 0 35px #ec4899; }
}

/* Central Grand Keystone Medallion */
.rosary-keystone {
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(88, 28, 135, 0.6) 0%, #090915 80%);
    border: 3px solid #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.35), inset 0 0 20px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    user-select: none;
    text-align: center;
    padding: 0.5rem;
}

.rosary-keystone:active {
    transform: scale(0.95);
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.7);
}

.rosary-keystone-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.rosary-keystone-counter {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fef08a;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
    line-height: 1.2;
}

.rosary-keystone-target {
    font-size: 0.72rem;
    color: #e2e8f0;
    font-weight: 700;
    margin-top: 0.15rem;
}

@media (max-width: 900px) {
    .rosary-grid-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .rosary-portrait-altar, .rosary-portrait-altar img {
        max-height: 55vh;
        min-height: auto;
    }
}

/* Floating Litany Chanting Bubble */
.rosary-chant-bubble {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.75rem;
    max-width: 650px;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    color: #fef08a;
    font-style: italic;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.25rem;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.25s ease;
}

/* Big Chant Trigger Button */
.rosary-main-action-btn {
    background: linear-gradient(135deg, #d97706, #ec4899, #8b5cf6);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 0.95rem 2.5rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.15s ease;
    user-select: none;
    z-index: 2;
}

.rosary-main-action-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.6);
}

.rosary-main-action-btn:active {
    transform: translateY(1px) scale(0.98);
}

.rosary-key-hint {
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Milestones & Badges Shelf */
.rosary-milestones-card {
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.rosary-milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.rosary-badge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--transition);
}

.rosary-badge-item.unlocked {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(236, 72, 153, 0.15));
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

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

.rosary-badge-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
}

.rosary-badge-target {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

@media (max-width: 480px) {
    .rosary-ring-container {
        width: 270px;
        height: 270px;
    }
    .rosary-keystone {
        width: 140px;
        height: 140px;
    }
    .rosary-bead-item {
        width: 15px;
        height: 15px;
    }
    .rosary-chant-bubble {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }
}

/* ==========================================================================
   Clean Scrollbar-free Dropdown Selects
   ========================================================================== */

#rosary-goddess-select,
.worship-select-clean,
select.form-select {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#rosary-goddess-select::-webkit-scrollbar,
.worship-select-clean::-webkit-scrollbar,
select.form-select::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

#rosary-goddess-select option {
    background: #0f0e1e;
    color: #fef08a;
    padding: 0.5rem 0.75rem;
}



