/* TAB avatars - Minecraft Avatar API - Modern Design */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --border: #2a2a3a;
    --border-light: #3a3a4a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #9090a0;
    --accent: #3f7d37;
    --accent-light: #4a9440;
    --accent-glow: rgba(63, 125, 55, 0.4);
    --success: #10b981;
    --gradient-1: linear-gradient(135deg, #3f7d37 0%, #346b3e 50%, #2d5a35 100%);
    --gradient-2: linear-gradient(135deg, #4a9440 0%, #3f7d37 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(63, 125, 55, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(52, 107, 62, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(74, 148, 64, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Wrapper */
.wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-btn {
    background: var(--gradient-1);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white !important;
}

.nav-github {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.nav-github:hover {
    background: var(--bg-card);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    display: block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 30px;
}

/* Hero Avatars */
.hero-avatars-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-avatars {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.hero-avatars img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    border: 2px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.hero-avatars img:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Demo Container */
.demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.demo-preview {
    position: relative;
}

.demo-avatar-wrapper {
    position: relative;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.demo-avatar-wrapper:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.demo-avatar-wrapper img {
    display: block;
    image-rendering: pixelated;
    border-radius: var(--radius-sm);
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    border-radius: 50%;
}

.demo-avatar-wrapper:hover .avatar-glow {
    opacity: 1;
}

.demo-username {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.demo-input-wrapper {
    width: 100%;
    max-width: 500px;
}

/* Platform Toggle */
.platform-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.platform-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.platform-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.platform-btn.active {
    background: var(--gradient-1);
    color: white;
}

.demo-input {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-icon {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.demo-input input {
    flex: 1;
    padding: 14px 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.demo-input input::placeholder {
    color: var(--text-muted);
}

.demo-input button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin: 4px;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.demo-input button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.demo-url {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.demo-url code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.copy-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    color: var(--accent-light);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Docs Grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.doc-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.doc-card.full-width {
    grid-column: 1 / -1;
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.doc-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.doc-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.doc-card > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.code-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.code-block code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    overflow-x: auto;
}

/* Params List */
.params-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.param {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.param code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    min-width: 80px;
}

.param span {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.param em {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Examples List */
.examples-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.example-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.example-item code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-light);
}

.example-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s;
}

.player-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.1);
}

.player-card img {
    image-rendering: pixelated;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.player-card:hover img {
    transform: scale(1.1);
}

.player-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(63, 125, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(63, 125, 55, 0.08) 0%, rgba(52, 107, 62, 0.15) 50%, rgba(74, 148, 64, 0.08) 100%);
    border: 1px solid rgba(63, 125, 55, 0.3);
    border-radius: var(--radius-xl);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 60px rgba(63, 125, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.cta-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(63, 125, 55, 0.3);
    border: 1px solid rgba(63, 125, 55, 0.5);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.cta-content .btn:hover {
    transform: translateY(-2px);
    background: rgba(63, 125, 55, 0.4);
    border-color: rgba(63, 125, 55, 0.7);
}

.cta-content .btn:hover::before {
    left: 100%;
}

.cta-content .btn:active {
    transform: translateY(0);
}

.cta-code {
    display: inline-block;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.cta-code code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-light);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

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

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.footer-brand span {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-content > p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    background: var(--success);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

/* Responsive */
@media (max-width: 900px) {
    .types-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero {
        padding: 50px 0 40px;
    }
    
    .hero-avatars {
        gap: 8px;
    }
    
    .hero-avatars img {
        width: 48px;
        height: 48px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .players-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .types-slider-container {
        gap: 10px;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    
    .type-card {
        min-width: 140px;
        padding: 16px 12px;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-avatars {
        gap: 6px;
        padding: 0 5px;
    }
    
    .hero-avatars img {
        width: 40px;
        height: 40px;
    }
    
    .demo-input {
        flex-direction: column;
        padding: 8px;
    }
    
    .demo-input input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .input-icon {
        display: none;
    }
    
    .demo-input button {
        width: 100%;
        justify-content: center;
    }
    
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
}

/* Stats Section */
.stats-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.stats-big-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.stats-big-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-big-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-big-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    text-align: center;
}

.stats-big-label {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.stats-top-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.stats-top-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-players-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.top-player-item:hover {
    background: var(--bg-card-hover);
}

.top-player-rank {
    font-weight: 700;
    color: var(--accent-light);
    min-width: 28px;
    font-size: 0.9rem;
}

/* Leaderboard rank styles - 1st to 5th place */
.top-player-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}
.top-player-item.rank-1 .top-player-rank {
    color: #FFD700;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.top-player-item.rank-1 .top-player-name {
    color: #FFD700;
    font-weight: 700;
}

.top-player-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.12) 0%, rgba(169, 169, 169, 0.06) 100%);
    border: 1px solid rgba(192, 192, 192, 0.25);
}
.top-player-item.rank-2 .top-player-rank {
    color: #C0C0C0;
    font-size: 1.05rem;
}
.top-player-item.rank-2 .top-player-name {
    color: #D4D4D4;
    font-weight: 600;
}

.top-player-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.12) 0%, rgba(184, 115, 51, 0.06) 100%);
    border: 1px solid rgba(205, 127, 50, 0.25);
}
.top-player-item.rank-3 .top-player-rank {
    color: #CD7F32;
    font-size: 1rem;
}
.top-player-item.rank-3 .top-player-name {
    color: #DDA15E;
    font-weight: 600;
}

.top-player-item.rank-4 {
    border-left: 3px solid #7dd275;
}
.top-player-item.rank-4 .top-player-rank {
    color: #7dd275;
}

.top-player-item.rank-5 {
    border-left: 3px solid #8eda87;
}
.top-player-item.rank-5 .top-player-rank {
    color: #8eda87;
}

/* Hover effects for ranked items */
.top-player-item.rank-1:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.22) 0%, rgba(255, 193, 7, 0.12) 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
}
.top-player-item.rank-2:hover {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.18) 0%, rgba(169, 169, 169, 0.1) 100%);
}
.top-player-item.rank-3:hover {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.18) 0%, rgba(184, 115, 51, 0.1) 100%);
}

.top-player-item img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.top-player-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.top-player-count {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.no-data {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

@media (max-width: 768px) {
    .stats-section-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-big-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
    
    .scroll-top-btn svg {
        width: 20px;
        height: 20px;
    }
}
