* {
    margin: 0;
    padding: 0;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: auto;
}

/* Prevent anchor link scrolling */
html {
    scroll-behavior: auto !important;
}

:target {
    scroll-margin-top: 0;
}

html {
    color-scheme: dark;
}

header {
    height: 64px;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #374151;
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    z-index: 100;
}

header nav {
    width: 70vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav .logo {
    display: flex;
    align-items: center;
    gap: 1vw;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

header nav .logo:hover {
    opacity: 0.8;
}

header nav .logo img {
    max-height: 48px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

header nav .logo .logotext span {
    display: flex;
    color: #19c558;
    font-weight: 600;
}

.blue {
    color: #3b82f6;
}

.turquoise {
    color: #14b8a6;
}

.green {
    color: #22c55e;
    margin-right: 4px;
}

header nav .logo .logotext p {
    font-weight: 300;
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    color: #d1d5db;
    font-weight: 500;
}

.divider {
    margin-left: 1rem;
    margin-right: 1rem;
    height: 2rem;
    width: 1px;
    background-color: #374151;
    flex-shrink: 0;
}

header nav .side {
    display: flex;
    align-items: center;
}

header nav .side .members {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

header nav .side .members i {
    font-size: 0.5rem;
}

header nav .side .links ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

header nav .side .links ul li a {
    text-decoration: none;
    color: #d1d5db;
    font-weight: 500;
    transition: color 0.2s;
}

header nav .side .links ul li ul {
    position: absolute;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #374151;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    min-width: 8rem;
    z-index: 10;
}

header nav .side .links ul li {
    position: relative;
    cursor: pointer;
}

header nav .side .links ul li:hover > a,
header nav .side .links ul li:hover {
    color: #22c55e;
}

header nav .side .links ul li i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

header nav .side .links ul li .dropdown {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: none; /* Initially hidden, controlled by JavaScript */
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    flex-direction: column;
    min-width: 8rem;
    z-index: 999;
}

header nav .side .links ul li .dropdown li {
    padding: 0;
}

header nav .side .links ul li .dropdown li a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #d1d5db;
    white-space: nowrap;
    border-radius: 0.25rem;
    margin: 0.125rem;
}

header nav .side .links ul li .dropdown li a:hover {
    background-color: rgba(55, 65, 81, 0.5);
    color: #22c55e;
}

header nav .side .links ul li .dropdown li a i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

header nav .side .other {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
}

header nav .side .other a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s;
}

header nav .side .other .discordbtn {
    background-color: #5865f2;
    color: white;
}

header nav .side .other .discordbtn:hover {
    background-color: #4752c4;
    transform: translateY(-1px);
}

header nav .side .other .tiktokbtn {
    background-color: #000000;
    color: white;
}

header nav .side .other .tiktokbtn:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
}

header nav .side .other .instagrambtn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

header nav .side .other .instagrambtn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

header nav .side .other .playbtn {
    background-color: #22c55e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

header nav .side .other .playbtn:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
}

/* Mobile Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background-color: #d1d5db;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(17, 24, 39, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu.show {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu .mobile-members {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
}

.mobile-menu .mobile-links {
    margin-bottom: 1.5rem;
}

.mobile-menu .mobile-links ul {
    list-style: none;
}

.mobile-menu .mobile-links ul li {
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid rgba(75, 85, 99, 0.4);
}

.mobile-menu .mobile-links ul li:last-child {
    margin-bottom: 0;
}

.mobile-menu .mobile-links ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #e5e7eb;
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu .mobile-links ul li a .link-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.mobile-menu .mobile-links ul li a .dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #9ca3af;
    font-size: 0.75rem;
}

.mobile-menu .mobile-links ul li a.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-menu .mobile-links ul li a:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.mobile-menu .mobile-links ul li a i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
    color: #22c55e;
}

.mobile-menu .mobile-dropdown {
    margin-top: 0;
    padding: 0;
    background: rgba(17, 24, 39, 0.8);
    border-radius: 0 0 0.5rem 0.5rem;
    border-top: 1px solid rgba(75, 85, 99, 0.4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.mobile-menu .mobile-dropdown.active {
    max-height: 300px;
    opacity: 1;
}

.mobile-menu .mobile-dropdown li {
    margin-bottom: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.mobile-menu .mobile-dropdown li:first-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.mobile-menu .mobile-dropdown li a {
    font-size: 0.875rem;
    color: #d1d5db;
    padding: 0.75rem 1.5rem;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu .mobile-dropdown li a i.fa-map {
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

/* Mobile: keep external link icon before Map text (no changes needed) */
.mobile-menu .mobile-dropdown li a span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Desktop: reverse order so Map comes before external link icon */
@media (min-width: 1201px) {
    .more-dropdown li a span {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        gap: 0.25rem;
        justify-content: flex-end;
    }
}

.mobile-menu .mobile-dropdown li a .fa-external-link,
.more-dropdown li a .fa-external-link {
    opacity: 0.6;
    font-size: 0.7em;
}

.mobile-menu .mobile-dropdown li a:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
}

.mobile-menu .mobile-dropdown li a:hover .fa-external-link {
    opacity: 0.9;
}

.mobile-menu .mobile-other {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(75, 85, 99, 0.4);
}

.mobile-menu .mobile-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.mobile-menu .mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu .mobile-social a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.3);
}

.mobile-menu .mobile-social .discordbtn {
    background-color: #5865f2;
    color: white;
}

.mobile-menu .mobile-social .discordbtn:hover {
    background-color: #4752c4;
}

.mobile-menu .mobile-social .tiktokbtn {
    background-color: #000000;
    color: white;
}

.mobile-menu .mobile-social .tiktokbtn:hover {
    background-color: #1a1a1a;
}

.mobile-menu .mobile-social .instagrambtn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.mobile-menu .mobile-social .instagrambtn:hover {
    opacity: 0.8;
}

.mobile-menu .mobile-play {
    display: flex;
    justify-content: center;
}

.mobile-menu .mobile-play button {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu .mobile-play button:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(34, 197, 94, 0.4);
}

.page {
    width: 100vw;
    min-height: 100vh;
}

#home {
    background-image: url(/assets/homepageGlobe.png);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100vw;
    overflow-x: hidden;
    padding-bottom: 2rem;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-section {
    position: relative;
    z-index: 2;
    width: min(90vw, 1200px);
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .server-name {
    background: linear-gradient(45deg, #3b82f6, #14b8a6, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.cta-section .playbtn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-section .playbtn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.server-ip-btn {
    background: rgba(55, 65, 81, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 85, 99, 0.4);
    color: #d1d5db;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-ip-btn:hover {
    background: rgba(75, 85, 99, 0.6);
    border-color: #22c55e;
    color: #22c55e;
    transform: translateY(-2px);
}

/* Mobile responsiveness for homepage */
@media (max-width: 768px) {
    #home {
        background-attachment: scroll;
    }
    
    .hero-section {
        width: 90vw;
        text-align: center;
        padding: 0;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        white-space: normal;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cta-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
    }
    
    .cta-section .playbtn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .server-ip-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.1;
        white-space: normal;
    }
    
    .hero-description {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem);
        margin-bottom: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
    
    .cta-section {
        gap: 0.5rem;
    }
    
    .cta-section .playbtn,
    .server-ip-btn {
        width: 100%;
        max-width: 250px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
}

/* Mobile Media Queries */
@media (max-width: 1200px) {
    header nav {
        width: 95vw;
    }
    
    .hamburger {
        display: flex;
    }
    
    header nav .side {
        display: none;
    }
    
    header nav .logo .logotext p {
        font-size: 0.7rem;
    }
    
    header nav .logo .logotext span {
        font-size: 1.2rem;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .mobile-menu {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    header nav .logo .logotext p {
        font-size: 0.6rem;
    }
    
    header nav .logo .logotext span {
        font-size: 1rem;
    }
    
    header nav .logo img {
        max-height: 40px;
    }
    
    header nav .logo {
        gap: 0.5rem;
    }
    
    .mobile-menu {
        padding: 1rem 0.75rem;
    }
    
    .mobile-menu .mobile-social a {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .mobile-menu .mobile-play button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Reviews Page Styling */
#reviews {
    background: #111827;
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
}

#reviews h2 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #3b82f6, #14b8a6, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.review {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
}

.review p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    font-weight: 300;
    text-align: center;
}

.review span {
    display: block;
    text-align: center;
    font-weight: 500;
    color: #22c55e;
    font-size: 1.1rem;
    margin-top: 1rem;
    position: relative;
}

.review span::before {
    content: '';
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Rules Page Styling */
.rules-page {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(17, 24, 39, 0.9), #111827);
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
    width: 100vw;
}

.rules-page h2 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #3b82f6, #14b8a6, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e5e7eb; /* Fallback color */
}

.rules-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.rules-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.rules-page .rules-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.rule-section {
    margin-bottom: 3rem;
}

.rule-section h3 {
    font-size: 1.8rem;
    color: var(--orange-web);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #22c55e;
    padding-bottom: 0.5rem;
}

.rule-item {
    margin-bottom: 2rem;
    margin-left: 1rem;
}

.rule-item h4 {
    font-size: 1.3rem;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.rule-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d1d5db;
    margin-left: 1rem;
    font-weight: 300;
}

.tba {
    font-size: 1.1rem;
    color: #9ca3af;
    font-style: italic;
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .rules-page .rules-content {
        padding: 0 1rem;
    }
    
    .rule-item {
        margin-left: 0.5rem;
    }
    
    .rule-item p {
        margin-left: 0.5rem;
    }
    
    .tba {
        margin-left: 0.5rem;
    }
}

/* Join Server Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-container {
    background: linear-gradient(135deg, rgba(33, 31, 34, 0.95), rgba(17, 24, 39, 0.9));
    border: 2px solid #374151;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.modal-icon {
    margin-right: 0.75rem;
    color: #22c55e;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #ffffff;
    background-color: rgba(75, 85, 99, 0.5);
}

.modal-content {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-step {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-step:last-child {
    margin-bottom: 0;
}

.modal-step h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.modal-step p {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.minecraft-download-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.minecraft-download-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
}

.minecraft-download-btn i:first-child {
    margin-right: 0.5rem;
}

.minecraft-download-btn i:last-child {
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.server-info-grid {
    margin-top: 1rem;
}

.server-info-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 1rem;
}

.server-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.server-detail:last-child {
    margin-bottom: 0;
}

.server-detail label {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.copy-container {
    display: flex;
    align-items: center;
}

.server-detail code {
    background: rgba(30, 41, 59, 0.8);
    color: #22c55e;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    margin-right: 0.5rem;
}

.version-code {
    color: #fbbf24 !important;
}

.copy-btn {
    background: rgba(75, 85, 99, 0.5);
    border: none;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(75, 85, 99, 0.8);
}

.server-status {
    display: flex;
    flex-direction: column;
}

.status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background-color: #22c55e;
}

.server-status h4 {
    margin: 0;
    font-size: 1.125rem;
    color: #ffffff;
}

.server-status p {
    color: #d1d5db;
    margin: 0;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 1px solid #374151;
}

.modal-footer p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.modal-got-it-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-got-it-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-content,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .server-detail code {
        font-size: 1rem;
    }
}

/* Join Us Page Styling */
#join {
    background-image: url(/assets/earth.png);
    background-size: cover;
    background-position: center;
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#join::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

#join .box {
    max-width: 800px;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

#join .box h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #3b82f6, #14b8a6, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#join .box > p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(75, 85, 99, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px -3px rgba(34, 197, 94, 0.2);
}

.feature-item i {
    font-size: 2rem;
    color: #22c55e;
}

.feature-item span {
    font-weight: 500;
    color: #e5e7eb;
    text-align: center;
}

.cta-buttons {
    margin-bottom: 3rem;
}

.main-cta {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px rgba(34, 197, 94, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.main-cta:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
}

.secondary-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.discord-link,
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    color: #d1d5db;
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px solid rgba(75, 85, 99, 0.4);
    transition: all 0.3s ease;
    font-weight: 500;
}

.discord-link:hover {
    background: #5865f2;
    border-color: #5865f2;
    color: white;
    transform: translateY(-2px);
}

.map-link:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sponsor-text {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

.sponsor-text a {
    color: #22c55e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sponsor-text a:hover {
    color: #16a34a;
}

/* Footer Styling */
footer {
    background: #000000;
    color: #e5e7eb;
    padding: 4rem 0 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 0 2rem 3rem 2rem;
}

.footer-section.brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-logotext span {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #19c558;
}

.footer-logotext .blue { color: #3b82f6; }
.footer-logotext .turquoise { color: #14b8a6; }
.footer-logotext .green { color: #22c55e; margin-right: 4px; }

.footer-logotext p {
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    color: #d1d5db;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
}

.brand-description {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #22c55e;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.social-media a:hover {
    background: #22c55e;
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -3px rgba(34, 197, 94, 0.3);
}

.social-media svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.server-info {
    background: rgba(17, 24, 39, 0.5);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.server-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #d1d5db;
}

.server-info p:last-child {
    margin-bottom: 0;
}

.server-info strong {
    color: #22c55e;
}

.server-info a {
    color: #22c55e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.server-info a:hover {
    color: #16a34a;
}

.footer-bottom {
    border-top: 1px solid rgba(75, 85, 99, 0.3);
    padding: 2rem;
    text-align: center;
    background: #000000;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom a {
    color: #22c55e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #16a34a;
}

/* Features Page Styling */
#features {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(17, 24, 39, 0.9), #111827);
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
}

#features h2 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #3b82f6, #14b8a6, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contents {
    max-width: 1200px;
    margin: 0 auto 6rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.contents::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(34, 197, 94, 0.3), transparent);
    transform: translateX(-50%);
}

.contents .lb,
.contents .rb {
    display: flex;
    flex-direction: column;
}

/* Only text sections get glassmorphism */
.contents .lb:has(h3),
.contents .rb:has(h3) {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contents .lb:has(h3):hover,
.contents .rb:has(h3):hover {
    transform: none;
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 20px 40px -10px rgba(34, 197, 94, 0.2);
}

.contents h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    background: linear-gradient(45deg, #22c55e, #16a34a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    position: relative;
}

.contents h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 1px;
}

.contents p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #e5e7eb;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contents p a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contents p a:hover {
    color: #16a34a;
    text-decoration: underline;
}

.contents img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.contents img:hover {
    transform: translateY(-5px);
}

.contents .lb img,
.contents .rb img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

/* Mobile styling for reviews */
@media (max-width: 768px) {
    #reviews {
        padding: 5rem 0 3rem 0;
    }
    
    #reviews h2 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 3rem;
    }
    
    .review {
        max-width: 90vw;
        margin: 0 auto 2.5rem auto;
        padding: 1.5rem 1rem;
    }
    
    .review p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }
    
    .review span {
        font-size: 1rem;
    }
    
    .review span::before {
        width: 30px;
        top: -0.5rem;
    }
}

/* Mobile styling for join us and footer */
@media (max-width: 768px) {
    #join {
        padding: 5rem 0 3rem 0;
        background-attachment: scroll;
    }
    
    #join .box {
        max-width: 90vw;
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    #join .box h2 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    #join .box > p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .feature-item {
        padding: 1.25rem 0.75rem;
    }
    
    .feature-item i {
        font-size: 1.75rem;
    }
    
    .main-cta {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .secondary-links {
        gap: 0.75rem;
    }
    
    .discord-link,
    .map-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 2.5rem 1.5rem;
        gap: 2rem;
    }
    
    .footer-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-logotext {
        text-align: center;
    }
    
    .brand-description {
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .social-media {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 1.5rem;
    }
}

/* Mobile styling for features */
@media (max-width: 768px) {
    #features {
        padding: 5rem 0 3rem 0;
    }
    
    #features h2 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 3rem;
    }
    
    .contents {
        width: 90vw;
        margin: 0 auto 4rem auto;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }
    
    .contents::before {
        display: none;
    }
    
    .contents .lb,
    .contents .rb {
        order: 0;
        width: 100%;
    }
    
    /* Specific ordering for mobile: text-image-text-image */
    .contents:nth-child(2) .lb { order: 1; } /* Skill Pass text first */
    .contents:nth-child(2) .rb { order: 2; } /* Skill Pass image second */
    
    .contents:nth-child(3) .lb { order: 2; } /* Earth image second */
    .contents:nth-child(3) .rb { order: 1; } /* Earth text first */
    
    .contents:nth-child(4) .lb { order: 1; } /* Economy text first */
    .contents:nth-child(4) .rb { order: 2; } /* Economy image second */
    
    .contents:nth-child(5) .lb { order: 2; } /* Campaigns image second */
    .contents:nth-child(5) .rb { order: 1; } /* Campaigns text first */
    
    .contents:nth-child(6) .lb { order: 1; } /* KOTH text first */
    .contents:nth-child(6) .rb { order: 2; } /* KOTH image second */
    
    .contents:nth-child(7) .lb { order: 2; } /* Crates image second */
    .contents:nth-child(7) .rb { order: 1; } /* Crates text first */
    
    .contents .lb:has(h3),
    .contents .rb:has(h3) {
        padding: 1.5rem;
        margin: 0 0 1rem 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Disable hover effects on mobile */
    .contents .lb:has(h3):hover,
    .contents .rb:has(h3):hover {
        transform: none;
        border-color: rgba(75, 85, 99, 0.3);
        box-shadow: none;
    }
    
    .contents img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        display: block;
        border-radius: 1rem;
    }
}

@media (max-width: 480px) {
    #reviews {
        padding: 4rem 0 2rem 0;
    }
    
    #reviews h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 2rem;
    }
    
    .review {
        max-width: 90vw;
        margin: 0 auto 2rem auto;
        padding: 1.25rem 0.75rem;
    }
    
    .review p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .review span {
        font-size: 0.95rem;
    }
    
    .review span::before {
        width: 25px;
        top: -0.5rem;
    }
}

@media (max-width: 480px) {
    #join {
        padding: 4rem 0 2rem 0;
        background-attachment: scroll;
    }
    
    #join .box {
        max-width: 95vw;
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    #join .box h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    #join .box > p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .feature-item {
        padding: 1rem 0.5rem;
        flex-direction: row;
        gap: 0.5rem;
        text-align: left;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .main-cta {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .secondary-links {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
    
    .discord-link,
    .map-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.25rem 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 1rem 2rem 1rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logotext span {
        font-size: 1.25rem;
    }
    
    .footer-logotext p {
        font-size: clamp(0.55rem, 1.2vw, 0.7rem);
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .social-media {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .social-media a {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .social-media svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .server-info {
        padding: 1rem;
    }
    
    .server-info p {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding: 1.25rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    #features {
        padding: 4rem 0 2rem 0;
    }
    
    #features h2 {
        margin-bottom: 2rem;
    }
    
    .contents {
        width: 90vw;
        gap: 1.5rem;
        margin: 0 auto 3rem auto;
        padding: 0;
    }
    
    .contents .lb:has(h3),
    .contents .rb:has(h3) {
        padding: 1.25rem;
        margin: 0 0 1rem 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contents .lb,
    .contents .rb {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    /* Disable hover effects on mobile */
    .contents .lb:has(h3):hover,
    .contents .rb:has(h3):hover {
        transform: none;
        border-color: rgba(75, 85, 99, 0.3);
        box-shadow: none;
    }
    
    .contents h3 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        margin-bottom: 1rem;
    }
    
    .contents p {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }
    
    .contents img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 0.75rem;
        margin: 0;
        display: block;
    }
}

/* External Link Icon Styling */
.fa-external-link {
    font-size: 0.7em;
    margin-left: 0.5rem;
    opacity: 0.6;
    transition: all 0.2s ease;
}

/* Hover effect for external links */
a:hover .fa-external-link {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Specific styling for navigation external links */
header nav .side .links ul li a .fa-external-link,
.mobile-dropdown a .fa-external-link,
.link-content .fa-external-link {
    font-size: 0.65em;
    margin-left: 0.4rem;
}

/* Styling for join us section external links */
.discord-link .fa-external-link,
.map-link .fa-external-link {
    font-size: 0.75em;
    margin-left: 0.6rem;
}

/* Footer external link icons */
.footer-section a .fa-external-link {
    font-size: 0.65em;
    margin-left: 0.4rem;
}

/* Guides Page Styling */
#guides {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(17, 24, 39, 0.9), #111827);
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
}

.guides-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.guides-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #3b82f6, #14b8a6, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guides-intro {
    font-size: 1.25rem;
    color: #d1d5db;
    line-height: 1.6;
    font-weight: 400;
}

.guides-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.guide-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    position: relative;
}

.guide-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(34, 197, 94, 0.3), transparent);
    transform: translateX(-50%);
}

/* Default order: text left, image right */
.guide-section .guide-text {
    order: 1;
}

.guide-section .guide-media {
    order: 2;
}

/* Reverse order for even sections: image left, text right */
.guide-section:nth-child(even) .guide-text {
    order: 2;
}

.guide-section:nth-child(even) .guide-media {
    order: 1;
}

.guide-text {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-text:hover {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 20px 40px -10px rgba(34, 197, 94, 0.2);
}

.guide-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    background: linear-gradient(45deg, #22c55e, #16a34a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    position: relative;
}

.guide-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 1px;
}

.guide-text p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #e5e7eb;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.guide-text p:last-child {
    margin-bottom: 0;
}

.guide-text strong {
    color: #22c55e;
    font-weight: 600;
}

.guide-text em {
    color: #14b8a6;
    font-style: italic;
}

.guide-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.guide-media img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px -3px rgba(0, 0, 0, 0.3);
}

.guide-media img:hover {
    transform: translateY(-5px);
}

/* API Page Styling */
#api {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(17, 24, 39, 0.9), #111827);
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
}

.api-doc-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.api-doc-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #3b82f6, #14b8a6, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.api-intro h2 {
    font-size: 1.75rem;
    color: #22c55e;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.api-intro p {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.api-intro code {
    background: rgba(31, 41, 55, 0.8);
    color: #22c55e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.api-info-list {
    text-align: left;
    display: inline-block;
    margin: 1.5rem 0;
}

.api-info-list li {
    font-size: 1rem;
    color: #e5e7eb;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.api-info-list strong {
    color: #22c55e;
    font-weight: 600;
}

.script-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.api-endpoints {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.endpoint-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.endpoint-btn {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.4);
    color: #d1d5db;
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
    width: 100%;
}

.endpoint-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.endpoint-btn.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.endpoint-btn .method {
    font-weight: 600;
    margin-right: 0.5rem;
}

.endpoint-btn code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.api-details {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    min-height: 400px;
}

.endpoint-detail h3 {
    font-size: 1.5rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.endpoint-detail .method {
    background: #22c55e;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.endpoint-detail code {
    background: rgba(0, 0, 0, 0.4);
    color: #22c55e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
}

.endpoint-detail p {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.endpoint-detail h4 {
    font-size: 1.25rem;
    color: #22c55e;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.endpoint-detail ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.endpoint-detail ul li {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.endpoint-detail ul li b {
    color: #22c55e;
    font-weight: 600;
}

.endpoint-detail pre {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #e5e7eb;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Mobile styling for guides */
@media (max-width: 768px) {
    #guides {
        padding: 5rem 0 3rem 0;
    }
    
    .guides-header {
        padding: 0 1.5rem;
        margin-bottom: 3rem;
    }
    
    .guides-header h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .guides-intro {
        font-size: 1.1rem;
    }
    
    .guides-content {
        padding: 0 1.5rem;
    }
    
    .guide-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .guide-section::before {
        display: none;
    }
    
    /* Reset ordering for mobile - always text first, then image */
    .guide-section .guide-text {
        order: 1;
    }
    
    .guide-section .guide-media {
        order: 2;
    }
    
    .guide-section:nth-child(even) .guide-text {
        order: 1;
    }
    
    .guide-section:nth-child(even) .guide-media {
        order: 2;
    }
    
    .guide-text {
        padding: 1.5rem;
    }
}

/* Mobile styling for API */
@media (max-width: 768px) {
    #api {
        padding: 5rem 0 3rem 0;
    }
    
    .api-doc-header {
        padding: 0 1.5rem;
        margin-bottom: 3rem;
    }
    
    .api-doc-header h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .api-intro h2 {
        font-size: 1.5rem;
    }
    
    .api-intro p {
        font-size: 1rem;
    }
    
    .script-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .api-endpoints {
        position: static;
        max-height: none;
        order: 2;
    }
    
    .api-details {
        order: 1;
        min-height: 300px;
    }
    
    .endpoint-btn {
        padding: 0.875rem;
        font-size: 0.85rem;
    }
    
    .endpoint-detail h3 {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .endpoint-detail pre {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    #guides {
        padding: 4rem 0 2rem 0;
    }
    
    .guides-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .guides-header h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .guides-intro {
        font-size: 1rem;
    }
    
    .guides-content {
        padding: 0 1rem;
    }
    
    .guide-section {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .guide-text {
        padding: 1.25rem;
    }
    
    .guide-text h3 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    .guide-text p {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }
}

@media (max-width: 480px) {
    #api {
        padding: 4rem 0 2rem 0;
    }
    
    .api-doc-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .api-doc-header h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .api-intro h2 {
        font-size: 1.25rem;
    }
    
    .api-intro p {
        font-size: 0.95rem;
    }
    
    .script-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .api-endpoints,
    .api-details {
        padding: 1.5rem;
    }
    
    .endpoint-detail h3 {
        font-size: 1.1rem;
    }
    
    .endpoint-detail p {
        font-size: 0.9rem;
    }
    
    .endpoint-detail h4 {
        font-size: 1.1rem;
    }
    
    .endpoint-detail pre {
        font-size: 0.75rem;
        padding: 0.875rem;
    }
}

/* Rules as Review Cards */
#reviews .rule {
    margin-bottom: 2rem;
}

#reviews .rule h3 {
    color: var(--orange-web);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

#reviews .rule p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

#reviews .rule p:last-child {
    margin-bottom: 0;
}

/* Stats Page Styling */
.stats-page {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(17, 24, 39, 0.9), #111827);
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
    width: 100vw;
}

.stats-page h2 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #3b82f6, #14b8a6, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e5e7eb; /* Fallback color */
}

.stats-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.stats-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.stats-page .stats-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .stats-page .stats-content {
        padding: 0 1rem;
    }
    
    .stats-intro {
        padding: 0 1rem;
    }
}

/* Player Search Box Styling */
.player-search-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.search-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.search-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon-wrapper {
    margin-right: 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(31, 41, 55, 0.6);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #22c55e;
}

.search-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.search-text p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.search-form {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
}

.input-wrapper {
    flex: 1;
    gap: 0.5rem;
}

.search-input {
    display: flex;
    height: 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid #374151;
    background-color: rgba(31, 41, 55, 0.4);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.search-input::placeholder {
    color: #6b7280;
}

.search-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-width: 100px;
    flex-shrink: 0;
}

.search-button:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.4), 0 4px 6px -2px rgba(34, 197, 94, 0.2);
    transform: translateY(-1px);
}

.search-glow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    z-index: 1;
    width: 5rem;
    height: 5rem;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1), transparent);
    filter: blur(1rem);
    pointer-events: none;
}

@media (min-width: 640px) {
    .search-content {
        flex-direction: row;
        align-items: center;
    }
    
    .search-form {
        width: auto;
    }
    
    .input-wrapper {
        width: auto;
    }
}

/* Player Search Results */
.player-results {
    margin-top: 2rem;
}

.player-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.2);
}

.player-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-avatar {
    width: 64px;
    height: 64px;
    border-radius: 0.5rem;
    background: #16a34a;
    flex-shrink: 0;
}

.player-name-section h4 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.player-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #22c55e;
}

.status-dot.offline {
    background: #6b7280;
}

.status-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.stat-value.highlight {
    color: #22c55e;
}

.player-ranks {
    margin-top: 1rem;
}

.ranks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rank-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Leaderboards Section */
.leaderboards-section {
    margin-top: 3rem;
}

.leaderboards-section h3 {
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.leaderboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.leaderboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.2);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.leaderboard-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.leaderboard-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.leaderboard-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.player-rank {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rank-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.rank-number.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.rank-number.silver {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.rank-number.bronze {
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.player-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.player-value {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9rem;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    color: #ef4444;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .leaderboards-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-card {
        padding: 1rem;
    }
    
    .leaderboards-section h3 {
        font-size: 1.5rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: calc(100% - 1.5rem);
    }
    
    .input-wrapper {
        width: 100%;
    }
    
    .search-button {
        width: 100%;
    }
    
    .player-search-box {
        padding: 1.5rem;
    }
    
    .search-content {
        flex-direction: column;
        align-items: stretch;
    }
}