
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1729;
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-primary: rgba(148, 163, 184, 0.1);
    --border-glow: rgba(52, 211, 153, 0.3);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #10b981;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #8b5cf6;
    --glow-emerald: rgba(16, 185, 129, 0.4);
    --glow-cyan: rgba(6, 182, 212, 0.4);
    --glow-purple: rgba(139, 92, 246, 0.4);
}

/* Light Theme Variables */
body.theme-light {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --border-primary: rgba(51, 65, 85, 0.15);
    --border-glow: rgba(16, 185, 129, 0.4);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-primary: #059669;
    --accent-secondary: #0891b2;
    --accent-tertiary: #7c3aed;
    --glow-emerald: rgba(16, 185, 129, 0.25);
    --glow-cyan: rgba(6, 182, 212, 0.25);
    --glow-purple: rgba(139, 92, 246, 0.25);
}

/* ========================================
   BASE STYLES & ANIMATIONS
======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* Animated Background */
.animated-bg {
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.animated-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, var(--glow-emerald) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--glow-cyan) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--glow-purple) 0%, transparent 50%);
    opacity: 0.3;
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Floating Particles Effect */
.animated-bg::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, var(--text-secondary), transparent),
        radial-gradient(2px 2px at 60% 70%, var(--accent-secondary), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--accent-primary), transparent),
        radial-gradient(1px 1px at 80% 10%, var(--text-secondary), transparent),
        radial-gradient(2px 2px at 90% 60%, var(--accent-tertiary), transparent);
    background-size: 200% 200%;
    animation: particlesFloat 20s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

/* ========================================
   PARTICLE SWARM ACCENTS
======================================== */
.particle-swarm {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle-swarm span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.5;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
    animation: particleDrift linear infinite;
}

.particle-swarm span:nth-child(odd) {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.9) 0%, rgba(16, 185, 129, 0) 70%);
}

.particle-swarm span:nth-child(1) {
    top: 10%;
    left: 22%;
    animation-duration: 18s;
    animation-delay: -2s;
}

.particle-swarm span:nth-child(2) {
    top: 30%;
    left: 40%;
    animation-duration: 12s;
    animation-delay: -1s;
}

.particle-swarm span:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-duration: 22s;
    animation-delay: -6s;
}

.particle-swarm span:nth-child(4) {
    top: 45%;
    left: 70%;
    animation-duration: 16s;
    animation-delay: -8s;
}

.particle-swarm span:nth-child(5) {
    top: 75%;
    left: 55%;
    animation-duration: 20s;
    animation-delay: -4s;
}

.particle-swarm span:nth-child(6) {
    top: 5%;
    left: 80%;
    animation-duration: 14s;
    animation-delay: -9s;
}

.particle-swarm span:nth-child(7) {
    top: 50%;
    left: 30%;
    animation-duration: 24s;
    animation-delay: -10s;
}

.particle-swarm span:nth-child(8) {
    top: 85%;
    left: 20%;
    animation-duration: 19s;
    animation-delay: -3s;
}

.particle-swarm span:nth-child(9) {
    top: 25%;
    left: 73%;
    animation-duration: 17s;
    animation-delay: -7s;
}

.particle-swarm span:nth-child(10) {
    top: 55%;
    left: 90%;
    animation-duration: 21s;
    animation-delay: -5s;
}

.particle-swarm span:nth-child(11) {
    top: 12%;
    left: 55%;
    animation-duration: 15s;
    animation-delay: -11s;
}

.particle-swarm span:nth-child(12) {
    top: 40%;
    left: 5%;
    animation-duration: 18s;
    animation-delay: -12s;
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) scale(0.6);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-60px) translateX(10px) scale(1.3);
        opacity: 0;
    }
}

@keyframes particlesFloat {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* ========================================
   CARD 3D EFFECTS
======================================== */

.card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(20px);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--glow-emerald) 0%, var(--glow-cyan) 50%, var(--glow-purple) 100%);
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(20px);
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--border-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-3d:hover::before {
    opacity: 0.15;
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.theme-light .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ========================================
   NEON BUTTON EFFECTS
======================================== */

.btn-neon {
    position: relative;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-neon:hover::before {
    width: 300px;
    height: 300px;
}

.btn-neon:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 30px var(--glow-cyan),
        0 0 60px var(--glow-emerald),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-neon-inner {
    position: relative;
    z-index: 1;
    background: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* ========================================
   THEME TOGGLE SWITCH (ADVANCED)
======================================== */

.theme-toggle {
    position: relative;
    width: 64px;
    height: 32px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.theme-toggle::before {
    content: '🌙';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-toggle::after {
    content: '☀️';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.3;
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-toggle-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    top: 4px;
    left: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 20px var(--glow-purple),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.theme-toggle.theme-light-mode {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.theme-toggle.theme-light-mode::before {
    opacity: 0.3;
}

.theme-toggle.theme-light-mode::after {
    opacity: 1;
}

.theme-toggle.theme-light-mode .theme-toggle-thumb {
    transform: translateX(32px);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(251, 191, 36, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ========================================
   EMOJI AVATAR OPTIONS
======================================== */

.emoji-option {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid var(--border-primary);
    color: #f8fafc;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        inset 0 -4px 10px rgba(15, 23, 42, 0.6),
        0 6px 12px rgba(15, 23, 42, 0.3);
}

.emoji-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.emoji-option:hover {
    transform: scale(1.1);
    border-color: var(--accent-primary);
    box-shadow:
        inset 0 -4px 10px rgba(15, 23, 42, 0.8),
        0 0 25px rgba(16, 185, 129, 0.25),
        inset 0 0 15px rgba(16, 185, 129, 0.4);
}

.emoji-option:hover::before {
    opacity: 1;
}

.emoji-option:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.emoji-option.selected {
    border-color: var(--accent-secondary);
    box-shadow:
        inset 0 -4px 10px rgba(15, 23, 42, 0.9),
        0 0 30px rgba(5, 150, 105, 0.45),
        inset 0 0 20px rgba(14, 165, 233, 0.5);
}

.chat-message-avatar {
    position: relative;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.45),
        0 0 20px rgba(16, 185, 129, 0.45);
}

.chat-avatar-wrapper {
    position: relative;
    display: inline-flex;
    overflow: visible;
}

/* ========================================
   CHAT EMOJI BURST
======================================== */

.emoji-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.emoji-burst span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1) rotate(var(--burst-rotate-start, 0deg)) skewX(var(--burst-skew, 0deg));
    font-size: 1rem;
    pointer-events: none;
    opacity: 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(219, 67, 255, 0.55),
        0 0 24px rgba(16, 185, 129, 0.45);
    animation-name: emojiBurst;
    animation-duration: var(--burst-duration, 1.3s);
    animation-delay: var(--burst-delay, 0s);
    animation-timing-function: cubic-bezier(0.25, 0, 0.35, 1);
    animation-iteration-count: 1;
    animation-fill-mode: both;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.45));
}

.emoji-burst.extra-burst span {
    filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.6));
}

@keyframes emojiBurst {
    0% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--burst-start-x, 0px)), calc(-50% + var(--burst-start-y, 0px))) rotate(var(--burst-rotate-start, 0deg)) skewX(var(--burst-skew, 0deg)) scale(0.4);
    }

    30% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--burst-end-x, 0px)), calc(-50% + var(--burst-end-y, 0px))) rotate(var(--burst-rotate-end, var(--burst-rotate-start, 0deg))) skewX(var(--burst-skew, 0deg)) scale(1.4);
    }
}

.message-avatar-emoji {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
    background: transparent;
    border: none;
}

.message-avatar-emoji.own {
    right: -6px;
    bottom: -6px;
}

.message-avatar-emoji.other {
    left: -6px;
    bottom: -6px;
}

#chatPanel {
    max-height: 80vh;
    min-height: 340px;
    height: 440px;
}

#chatContent {
    min-height: 210px;
    max-height: calc(80vh - 140px);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#chatMessages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-modal-cover {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(8, 8, 16, 0.45);
}

.profile-modal-cover {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(8, 8, 16, 0.45);
}

.profile-achievement-gallery .achievement-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.65);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.profile-achievement-gallery .achievement-card.earned {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.achievement-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.4rem;
}

@keyframes emojiBurstSwirl {
    0% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--burst-start-x, 0px)), calc(-50% + var(--burst-start-y, 0px))) rotate(var(--burst-rotate-start, 0deg)) skewX(var(--burst-skew, 0deg)) scale(0.35);
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: 1;
        transform:
            translate(calc(-50% + var(--burst-start-x, 0px)), calc(-50% + var(--burst-start-y, 0px))) rotate(calc(var(--burst-rotate-start, 0deg) + 60deg)) skewX(calc(var(--burst-skew, 0deg) * 0.8)) scale(1.1);
    }

    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--burst-end-x, 0px)), calc(-50% + var(--burst-end-y, 0px))) rotate(var(--burst-rotate-end, var(--burst-rotate-start, 0deg))) skewX(var(--burst-skew, 0deg)) scale(1.5);
    }
}

@keyframes emojiBurstSlide {
    0% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--burst-start-x, 0px)), calc(-50% + var(--burst-start-y, 0px))) rotate(var(--burst-rotate-start, 0deg)) skewX(var(--burst-skew, 0deg)) scale(0.5);
    }

    25% {
        opacity: 0.95;
    }

    65% {
        transform:
            translate(calc(-50% + var(--burst-start-x, 0px) * 0.4), calc(-50% + var(--burst-start-y, 0px) * 0.4)) rotate(calc(var(--burst-rotate-start, 0deg) - 30deg)) skewX(var(--burst-skew, 0deg)) scale(1.4);
    }

    90% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--burst-end-x, 0px)), calc(-50% + var(--burst-end-y, 0px))) rotate(var(--burst-rotate-end, var(--burst-rotate-start, 0deg))) skewX(var(--burst-skew, 0deg)) scale(1.6);
    }
}

@keyframes emojiBurstZoom {
    0% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--burst-start-x, 0px)), calc(-50% + var(--burst-start-y, 0px))) rotate(var(--burst-rotate-start, 0deg)) skewX(var(--burst-skew, 0deg)) scale(0.25);
    }

    50% {
        opacity: 1;
        transform:
            translate(calc(-50% + var(--burst-start-x, 0px)), calc(-50% + var(--burst-start-y, 0px))) rotate(calc(var(--burst-rotate-start, 0deg) + 30deg)) skewX(var(--burst-skew, 0deg)) scale(1.4);
    }

    90% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--burst-end-x, 0px)), calc(-50% + var(--burst-end-y, 0px))) rotate(var(--burst-rotate-end, var(--burst-rotate-start, 0deg))) skewX(var(--burst-skew, 0deg)) scale(1.8);
    }
}

/* ========================================
   FADE IN ANIMATIONS
======================================== */

.fade-in {
    animation: fadeInScale 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================
   SCROLLBAR STYLING
======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* ========================================
   HOVER EFFECTS FOR BUTTONS
======================================== */

button,
a {
    position: relative;
    overflow: hidden;
}

button::after,
a.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

button:active::after,
a.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   LEADERBOARD ENTRY EFFECTS
======================================== */

.card-3d .space-y-2>div {
    transition: all 0.3s ease;
    position: relative;
}

.card-3d .space-y-2>div::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.card-3d .space-y-2>div:hover {
    transform: translateX(8px);
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: var(--border-glow) !important;
}

.card-3d .space-y-2>div:hover::before {
    opacity: 1;
}

/* ========================================
   GLOW TEXT EFFECTS
======================================== */

.glow-text {
    text-shadow:
        0 0 10px var(--glow-emerald),
        0 0 20px var(--glow-cyan),
        0 0 30px var(--glow-purple);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow:
            0 0 10px var(--glow-emerald),
            0 0 20px var(--glow-cyan);
    }

    50% {
        text-shadow:
            0 0 20px var(--glow-emerald),
            0 0 40px var(--glow-cyan),
            0 0 60px var(--glow-purple);
    }
}

/* ========================================
   LOADING ANIMATION
======================================== */

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */

@media (max-width: 768px) {
    .card-3d:hover {
        transform: translateY(-4px);
    }

    .animated-bg::before,
    .animated-bg::after {
        opacity: 0.2;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

.backdrop-blur-strong {
    backdrop-filter: blur(30px) saturate(180%);
}

.shadow-glow-emerald {
    box-shadow: 0 0 40px var(--glow-emerald);
}

.shadow-glow-cyan {
    box-shadow: 0 0 40px var(--glow-cyan);
}

.shadow-glow-purple {
    box-shadow: 0 0 40px var(--glow-purple);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SIDEBAR ACCORDION PANELS
======================================== */
.sidebar-accordion {
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(15, 23, 42, 0.85);
    border-radius: 1.75rem;
    overflow: hidden;
    transition: border 0.4s ease, box-shadow 0.4s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sidebar-accordion[open] {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
        0 0 40px rgba(16, 185, 129, 0.15),
        inset 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.sidebar-accordion summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    gap: 0.75rem;
    list-style: none;
}

.sidebar-accordion summary::-webkit-details-marker {
    display: none;
}

.sidebar-accordion-summary {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.7rem;
}

.sidebar-accordion-summary span {
    letter-spacing: normal;
}

.accordion-indicator {
    transition: transform 0.35s ease;
}

.sidebar-accordion[open] .accordion-indicator {
    transform: rotate(180deg);
}

.sidebar-accordion>div {
    padding: 0.5rem 1.4rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-accordion[open]>div {
    background: rgba(5, 9, 18, 0.65);
}

.sidebar-accordion ul {
    padding-inline-start: 0;
    margin: 0;
}

/* ========================================
   FLOATING FRIENDS ACCESS
======================================== */
.floating-friends-trigger {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    left: auto !important;
    z-index: 45;
    pointer-events: auto;
    overflow: visible;
}

@media (max-width: 640px) {
    .floating-friends-trigger {
        bottom: 1rem !important;
        right: 1rem !important;
        left: auto !important;
    }
}

#friendsSidebarBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
    text-align: center;
    padding: 0.1rem 0.1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    border: 2px solid var(--bg-primary);
    top: 0;
    right: -0.75rem;
    transform: translate(35%, -45%);
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}

#friendsSidebarBadge.hidden {
    display: none !important;
}

#friendsSidebarBadge::after {
    content: '';
    position: absolute;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    top: 0.25rem;
    right: 0.25rem;
    opacity: 0.7;
    filter: blur(1px);
}

/* ========================================
   PULSE ANIMATION FOR BADGES
======================================== */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-custom {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   INPUT FOCUS EFFECTS
======================================== */

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 3px var(--glow-emerald),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* ========================================
   MODAL OVERLAY EFFECTS
======================================== */

.fixed.inset-0.bg-black\/60 {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   NAVBAR STICKY EFFECT
======================================== */

header {
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: rgba(10, 14, 26, 0.9) !important;
}

/* ========================================
   GRID HOVER EFFECTS
======================================== */

.grid>div {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.grid>div:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.emoji-burst {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    pointer-events: none;
    opacity: 0;
    animation: floatEmoji 1.2s ease-out forwards;
}

@keyframes floatEmoji {
    0% {
        transform: translate(-50%, 0) scale(0.9);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--x-move, 0px)), -70px) scale(1.2);
        opacity: 0;
    }
}

/* keep friends sidebar spaced from edges and above hover styles */
/* keep friends sidebar spaced from edges and above hover styles */
#friendsPanelColumn {
    display: none;
    position: fixed;
    top: 7.5rem;
    right: 0.9rem;
    bottom: 1.2rem;
    width: min(360px, 92vw);
    min-height: min(1000px, calc(100vh - 2.5rem));
    max-height: calc(100vh - 1rem);
    background: linear-gradient(180deg, #0f172a, #020617 85%);
    border-radius: 1.75rem;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 70px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 75;
    opacity: 0;
    transform: translateX(15px);

}

#friendsPanelColumn::-webkit-scrollbar {
    width: 0;
}
#friendsPanelColumn {
    scrollbar-width: none;
}

.friends-panel-actions {
    display: flex;
    justify-content: space-between;
}

#lobbyModal {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 9, 0.92);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    z-index: 120;
    overflow-y: auto;
}


.lobby-modal {
    display: none;
    pointer-events: none;
}

.lobby-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.lobby-modal-panel {
    width: min(960px, 100%);
    max-width: 980px;
    background: linear-gradient(180deg, rgba(6, 11, 32, 0.95), rgba(2, 7, 24, 0.92));
    border-radius: 2rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.lobby-chat-messages {
    max-height: 320px;
}

.lobby-chat-message {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.65);
}

.lobby-chat-message span {
    font-size: 10px;
    color: var(--text-secondary);
}

.lobby-chat-message--own {
    align-items: flex-end;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
}

.lobby-participant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 22, 40, 0.75);
}

.lobby-participant span {
    font-size: 11px;
}

.lobby-status-pill {
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.lobby-status-pill.ready {
    background: rgba(16, 185, 129, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.lobby-status-pill.not-ready {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.lobby-action-btn {
    text-align: center;
    transition: transform 0.25s ease;
}

#friendsPanelColumn.friends-visible {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

body.chat-expanded #mainLayout {
    grid-template-columns: minmax(380px, 380px) minmax(0, 1fr);
    gap: 10px;
}

body.chat-expanded #sidePanel {
    transform: translateX(10px);
    transition: transform 0.3s ease;
}

body.chat-expanded #rightSection {
    margin-left: 10px;
    max-width: none;
}

#rightSection {
    padding-bottom: 3rem;
}

#bottomPanels {
    margin-bottom: 3rem;
}

#mainLayout {
    display: grid;
    align-items: start;
    min-height: calc(100vh - 220px);
    transition: margin 0.3s ease;
    position: relative;
    padding-bottom: 1rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    #mainLayout {
        grid-template-columns: minmax(320px, 320px) minmax(0, 1fr);
    }
}

body.friends-sidebar-visible #mainLayout {
    margin-right: calc(min(360px, 92vw) + 1.5rem);
}

#mainLayout>* {
    min-height: 0;
}

#sidePanel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: min(1180px, calc(100vh - 2.5rem));
    max-height: calc(100vh - 2.5rem);
    padding-bottom: 3.25rem;
}

#sidePanel>* {
    width: 100%;
}

#chatPanel {
    flex: 1 1 auto;
    min-height: 480px;
}

#scoreboardPanel,
#newsPanel {
    flex: 0 0 auto;
}

#newsPanel {
    margin-bottom: 3rem;
}

#privateChatContainer {
    pointer-events: none;
}

#chatContent {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#chatContent::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

#privateChatContainer .private-chat-bubble {
    pointer-events: auto;
    width: min(360px, 96vw);
    max-width: 360px;
    border-radius: 1.75rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(7, 10, 24, 0.95), rgba(2, 6, 23, 0.9));
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow:
        0 30px 60px rgba(2, 6, 23, 0.7),
        0 0 0 1px rgba(16, 185, 129, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

#privateChatContainer .private-chat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 10%, rgba(16, 185, 129, 0.12), transparent 40%);
    pointer-events: none;
    opacity: 0.65;
}

#privateChatContainer .private-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#privateChatContainer .private-chat-header-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #94a3b8;
    text-transform: uppercase;
}

#privateChatContainer .private-chat-status-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    background: rgba(248, 250, 252, 0.6);
    box-shadow: 0 0 0 2px rgba(2, 6, 23, 0.8);
}

#privateChatContainer .private-chat-status-dot.online {
    background: #34d399;
    box-shadow: 0 0 0 2px rgba(7, 10, 24, 0.9);
}

#privateChatContainer .private-chat-status-dot.offline {
    background: #f97316;
    box-shadow: 0 0 0 2px rgba(7, 10, 24, 0.9);
}

#privateChatContainer .private-chat-body {
    position: relative;
    border-radius: 1.25rem;
    padding: 0.6rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    min-height: 220px;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#privateChatContainer .private-chat-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent 60%);
    pointer-events: none;
    opacity: 0.6;
}

#privateChatContainer .private-chat-messages {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-right: 0.4rem;
}

#privateChatContainer .private-chat-messages::-webkit-scrollbar {
    width: 6px;
}

#privateChatContainer .private-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.45);
    border-radius: 999px;
}

#privateChatContainer .private-chat-footer {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

#privateChatContainer .private-chat-form {
    display: flex;
    gap: 0.65rem;
}

#privateChatContainer .private-chat-input-field {
    flex: 1;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.94);
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: border 0.3s ease, transform 0.3s ease;
}

#privateChatContainer .private-chat-input-field:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.7);
    transform: translateY(-1px);
}

#privateChatContainer .private-chat-send-btn {
    border-radius: 1rem;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(6, 182, 212, 0.95));
    color: #0f172a;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#privateChatContainer .private-chat-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.55);
}

#privateChatContainer .private-chat-send-btn:active {
    transform: translateY(1px);
}

#privateChatContainer .private-chat-close-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5f5;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border 0.2s ease, transform 0.2s ease;
}

#privateChatContainer .private-chat-close-btn:hover {
    border-color: rgba(94, 234, 212, 0.6);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    #privateChatContainer .private-chat-bubble {
        width: calc(100vw - 2rem);
    }
}

#privateChatContainer {
    pointer-events: none;
}

#chatContent {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#chatContent::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

#privateChatContainer .private-chat-bubble {
    pointer-events: auto;
    width: min(360px, 96vw);
    max-width: 360px;
    border-radius: 1.75rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(7, 10, 24, 0.95), rgba(2, 6, 23, 0.9));
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow:
        0 30px 60px rgba(2, 6, 23, 0.7),
        0 0 0 1px rgba(16, 185, 129, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

#privateChatContainer .private-chat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 10%, rgba(16, 185, 129, 0.12), transparent 40%);
    pointer-events: none;
    opacity: 0.65;
}

#privateChatContainer .private-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#privateChatContainer .private-chat-header-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #94a3b8;
    text-transform: uppercase;
}

#privateChatContainer .private-chat-status-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    background: rgba(248, 250, 252, 0.6);
    box-shadow: 0 0 0 2px rgba(2, 6, 23, 0.8);
}

#privateChatContainer .private-chat-status-dot.online {
    background: #34d399;
    box-shadow: 0 0 0 2px rgba(7, 10, 24, 0.9);
}

#privateChatContainer .private-chat-status-dot.offline {
    background: #f97316;
    box-shadow: 0 0 0 2px rgba(7, 10, 24, 0.9);
}

#privateChatContainer .private-chat-body {
    position: relative;
    border-radius: 1.25rem;
    padding: 0.6rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    min-height: 220px;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#privateChatContainer .private-chat-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent 60%);
    pointer-events: none;
    opacity: 0.6;
}

#privateChatContainer .private-chat-messages {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-right: 0.4rem;
}

#privateChatContainer .private-chat-messages::-webkit-scrollbar {
    width: 6px;
}

#privateChatContainer .private-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.45);
    border-radius: 999px;
}

#privateChatContainer .private-chat-footer {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

#privateChatContainer .private-chat-form {
    display: flex;
    gap: 0.65rem;
}

#privateChatContainer .private-chat-input-field {
    flex: 1;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.94);
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: border 0.3s ease, transform 0.3s ease;
}

#privateChatContainer .private-chat-input-field:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.7);
    transform: translateY(-1px);
}

#privateChatContainer .private-chat-send-btn {
    border-radius: 1rem;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(6, 182, 212, 0.95));
    color: #0f172a;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#privateChatContainer .private-chat-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.55);
}

#privateChatContainer .private-chat-send-btn:active {
    transform: translateY(1px);
}

#privateChatContainer .private-chat-close-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5f5;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border 0.2s ease, transform 0.2s ease;
}

#privateChatContainer .private-chat-close-btn:hover {
    border-color: rgba(94, 234, 212, 0.6);
    transform: translateY(-1px);
}

.achievement-showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.achievement-showcase-btn .achievement-showcase-icon {
    font-size: 0.85rem;
}

.achievement-showcase-btn.active {
    background: rgba(16, 185, 129, 0.95);
    border-color: rgba(16, 185, 129, 0.8);
    color: #0f172a;
}

.achievement-showcase-btn:hover:not(:disabled) {
    border-color: rgba(16, 185, 129, 0.8);
}

.achievement-showcase-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.vitrine-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(2, 6, 23, 0.6);
}

.vitrine-pill.active {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.9));
    border-color: rgba(16, 185, 129, 0.35);
}

.vitrine-pill strong {
    font-size: 0.85rem;
    color: #f8fafc;
}

.profile-modal-header {
    backdrop-filter: blur(20px);
}

.profile-modal-tabs button {
    min-width: 90px;
}

.profile-modal-body {
    padding-top: 0;
}

.profile-view-grid {
    display: grid;
    gap: 1.5rem;
}

.profile-view-left {
    display: flex;
    flex-direction: column;
}

.profile-view-right {
    display: flex;
    flex-direction: column;
}

.shadow-inner {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .profile-view-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .private-chat-bubble {
        width: calc(100vw - 2rem);
    }
}

/* ========================================
       OYUN & LOBİ PANELLERİ
    ======================================== */
#gamesLobbyPanel {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.95);
}

.game-panel-tab {
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-secondary);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    transition: border 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.game-panel-tab.active {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-primary);
}

.game-card {
    min-height: 180px;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.game-card--selected {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.25);
    transform: translateY(-4px);
}

#gamesPanelBody .lobby-card {
    transition: transform 0.3s ease, border 0.3s ease;
}

#gamesPanelBody .lobby-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.join-lobby-btn {
    letter-spacing: 0.3em;
    font-size: 0.65rem;
}

#lobbyFeedback {
    transition: color 0.3s ease;
}

.lobby-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.lobby-detail-card {
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-height: 120px;
}

.lobby-insight-panel {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.65);
    padding: 1rem 1.25rem;
}

.lobby-steps {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.lobby-steps li {
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 1rem;
    background: rgba(14, 20, 35, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lobby-steps strong {
    font-size: 0.6rem;
    letter-spacing: 0.35em;
}

.lobby-steps span {
    font-size: 0.85rem;
}
