@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --background-color: #0A0A0A;
    --background-color-alt: #1a1a1a;
    --accent-color: #f47796;
    --accent-color-hover: #DF6D89;
    --accent-color-active: #f38ea7;
    --accent-color-blur: #f477962b;
    --text-color: #fff;
    --border-color: #404040;
    --border-color-alt: #4e4e4e;
    --background-color-blur: #0A0A0A2b;
    --card-bg: rgba(255, 255, 255, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --invert: 1;
}


[data-theme="light"] {
    --background-color: #ffffff;
    --background-color-alt: #f0f0f0;
    --accent-color: #e65f8a;
    --accent-color-hover: #DF6D89;
    --accent-color-active: #f38ea7;
    --accent-color-blur: #f477962b;
    --text-color: #1a1a1a;
    --border-color: #e0e0e0;
    --border-color-alt: #d0d0d0;
    --background-color-blur: rgba(183, 183, 183, 0.8);
    --card-bg: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --invert: 0;
}

.overlay {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    z-index: 1000;
    background: linear-gradient(to top, var(--background-color) 0%, rgba(0, 0, 0, 0) 100%);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    font-family: 'Geist', sans-serif;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}


html {
    scrollbar-width: 10px;
    scrollbar-color: var(--accent-color) var(--background-color);
}


html::-webkit-scrollbar {
    width: 16px;
}

html::-webkit-scrollbar-track {
    background: var(--background-color);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 6px;
    border: 2px solid var(--background-color);
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-hover);
}


body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.628) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    mask: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.6) 100px,
            rgba(255, 255, 255, 0.3) 200px,
            transparent 300px);
    -webkit-mask: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.6) 100px,
            rgba(255, 255, 255, 0.3) 200px,
            transparent 300px);
}

body:hover::before {
    opacity: 1;
}


[data-theme="light"] body::before {
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.3) 1px, transparent 1px);
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: height 0.3s ease;
}


header.scrolled {
    height: 130px;
}

.header-container {
    width: 100%;
    max-width: 100%;
    height: 30px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 10px 10px;
    padding: 30px;
    background-color: var(--accent-color-blur);
    backdrop-filter: blur(30px);
    transition: all 0.3s ease;
}


.header-container.scrolled {
    width: calc(100% - 60px);
    max-width: 1300px;
    margin: 0 30px;
    border-radius: 30px;
}

.header-logo img {
    height: 50px;
}

.header-menu {
    display: flex;
    gap: 30px;
}

.header-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 5px;
    border: 1px solid transparent;
}

.header-menu a:hover {
    background-color: var(--background-color-blur);
    color: var(--text-color);
    scale: 1.05;
    border: 1px solid var(--border-color);
}

.active {
    text-decoration: var(--accent-color-active) 3px underline !important;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    scale: 0.8;
    z-index: 1001;
}

.burger-menu span {
    width: 2.5rem;
    height: 0.25rem;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.burger-menu {
    rotate: 0 !important;
    background-color: transparent !important;
    scale: 0.8 !important;
    box-shadow: none !important;
}

.burger-menu span {
    rotate: 0 !important;
}

button {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    background-color: var(--accent-color-hover);
    scale: 1.05;
    transform: rotate(0deg);
    box-shadow: 0 5px 25px rgba(244, 119, 150, 0.3);
}

button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

main {
    margin-top: 90px;
    padding-top: 40px;
}

.main-container {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    gap: 70px;
}

.main-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-title {
    font-size: 60px;
    width: 100%;
    max-width: 1000px;
    font-weight: 800;
    text-align: center;
}

.title-line {
    display: inline-block;
    transition: all 0.5s ease;
    transform-origin: center;
}

.title-line.fade-out {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    filter: blur(5px);
}

.title-line.fade-out:nth-child(1) {
    transition-delay: 0s;
}

.title-line.fade-out:nth-child(3) {
    transition-delay: 0.2s;
}

.main-title-span {
    position: relative;
}

.main-title-span::after {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    background-image: url(assets/pop.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    margin-top: 10px;
    margin-left: 10px;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(80%, -40%);
    filter: invert(var(--invert));
}

.main-description {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
}

.desc-line {
    display: inline-block;
    transition: all 0.5s ease;
    transform-origin: center;
}

.desc-line.fade-out {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    filter: blur(5px);
}

.desc-line.fade-out:nth-child(1) {
    transition-delay: 0.4s;
}

.desc-line.fade-out:nth-child(3) {
    transition-delay: 0.6s;
}


::selection {
    background-color: var(--accent-color);
    color: var(--text-color);
}

::-moz-selection {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.main-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
}

.image-wrapper {
    position: relative;
    width: calc(100% - 80px);
    max-width: 1200px;
}

.main-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 30px;
    border-top: 1px solid var(--border-color-alt);
    border-left: 1px solid var(--border-color-alt);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transform: scale(0.7);
    transition: transform 0.1s ease;
}

.image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: var(--background-color);
    border-radius: 0 0 30px 30px;
    pointer-events: none;
    z-index: 100;
    mask: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}


.main-image-overlay {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 200;
}

.main-image-overlay.visible {
    opacity: 1;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
}

.stat-item {
    text-align: center;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.stat-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
    text-shadow: 0 0 20px rgba(244, 119, 150, 0.5);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.9;
}


.footer {
    background: linear-gradient(135deg, var(--background-color) 0%, var(--background-color-alt) 100%);
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
    position: relative;
    z-index: 1001;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 30px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-section h4 {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    border-radius: 8px;
}

.footer-logo h3 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.footer-description {
    color: #999;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--background-color-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--text-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(244, 119, 150, 0.3);
}

.main-buttons {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

.day-dark {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 10000;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--background-color-blur);
    backdrop-filter: blur(15px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.day-dark:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 12px 35px rgba(244, 119, 150, 0.3);
}

.day-dark svg {
    width: 18px;
    height: 18px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.day-dark .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.day-dark .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
    position: absolute;
}


[data-theme="light"] .day-dark .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .day-dark .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}


@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}


body {
    transition: background-color 0.3s ease, color 0.3s ease;
}


.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 99999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.theme-transition-overlay.active {
    transform: translateY(0);
}

.theme-transition-logo {
    height: 80px;
    opacity: 0;
    transition: opacity 0.2s ease;
    animation: logoPulse 0.3s ease-in-out;
}

.theme-transition-overlay.active .theme-transition-logo {
    opacity: 1;
}

@keyframes logoPulse {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}


.join-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px 60px;
}

.join-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.join-content h2,
.join-content h3 {
    text-align: center;
}

.join-header {
    text-align: center;
    margin-bottom: 40px;
}

.join-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px var(--shadow-color);
}

.join-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.join-header p {
    font-size: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

.server-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.ip-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.ip-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: var(--background-color-blur);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
}

.ip-text {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    flex: 1;
}

.copy-btn {
    background: var(--background-color-blur);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.copy-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.ip-note {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    text-align: center;
}

.server-status {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.server-status h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.status-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.player-count {
    text-align: center;
    padding: 20px;
    background: var(--background-color-blur);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.player-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.player-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.server-version {
    text-align: center;
    padding: 15px;
    background: var(--background-color-blur);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-top: 15px;
}

.version-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.9;
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.status-dot.checking {
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

.join-steps {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.join-steps h3 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: var(--background-color-blur);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(244, 119, 150, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.step p {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
}

.join-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.discord-btn,
.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(30px);
}

.discord-btn {
    background: #5865f2;
    color: white;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
}

.back-btn {
    background: var(--background-color-blur);
    color: var(--text-color);
}

.back-btn:hover {
    background: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 119, 150, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


@media (max-width: 768px) {
    .join-container {
        padding: 100px 20px 40px;
    }

    .join-header h1 {
        font-size: 36px;
    }

    .server-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .join-actions {
        flex-direction: column;
        align-items: center;
    }

    .ip-text {
        font-size: 20px;
    }
}


.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-color), var(--background-color-alt));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

.page-transition-logo {
    height: 80px;
    animation: pageTransitionPulse 1s ease-in-out infinite;
}


.page-change-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-color), var(--background-color-alt));
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.page-change-transition.active {
    opacity: 1;
    visibility: visible;
}

.page-change-transition-logo {
    height: 80px;
    animation: rotateAndScale 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.page-transition-text {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-top: 20px;
    animation: fadeInText 0.5s 0.2s ease-in forwards;
    opacity: 0;
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

/* Page entrance and exit animations */
@keyframes slideOutToTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}


.slide-out-up {
    animation: slideOutUp 0.4s ease-out forwards;
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}


.slide-in-from-top {
    animation: slideInFromTopBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInFromTopBounce {
    0% {
        opacity: 0;
        transform: translateY(-150px) scale(1.5);
    }

    50% {
        opacity: 0.8;
        transform: translateY(20px) scale(1.1);
    }

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


.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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


.map-section {
    margin-top: 60px;
    text-align: center;
}

.map-section h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-color);
}

.map-section p {
    font-size: 16px;
    color: var(--text-color-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#map-viewer {
    height: 600px;
    width: 100%;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    background-color: var(--background-color-secondary);
    z-index: 1;

}


.leaflet-container {
    border-radius: 16px;
}


.online-players-section {
    margin-top: 60px;
    text-align: center;
}

.online-players-section h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-color);
}

.players-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    background: radial-gradient(circle, var(--background-color-alt) 0%, var(--background-color-alt) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    min-height: 140px;
    align-items: center;
}

.player-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

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

.player-card:hover {
    transform: translateY(-5px);
}

.player-head {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-color: var(--border-color);
    margin: 0 auto;
    image-rendering: pixelated;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    transition: all 0.2s ease-out;
}

.player-card:hover .player-head {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.player-name {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-color-blur);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, bottom 0.2s ease-out;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.player-card:hover .player-name {
    opacity: 1;
    visibility: visible;
    bottom: -25px;
}

.player-placeholder {
    width: 100%;
    grid-column: 1 / -1;

    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color-secondary);
}


@media (max-width: 768px) {
    .join-container {
        padding: 100px 20px 40px;
    }

    .join-header h1 {
        font-size: 36px;
    }

    .server-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .join-actions {
        flex-direction: column;
        align-items: center;
    }

    .ip-text {
        font-size: 20px;
    }
}

/* Styles pour la page Galerie */
.gallery-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 30px;
    text-align: center;
}

.gallery-container h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
}

.gallery-container p {
    font-size: 18px;
    color: var(--text-color-secondary);
    margin-bottom: 40px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    grid-auto-rows: 200px;
    gap: 15px;
}

.screenshot-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    grid-row: span 1;
    grid-column: span 1;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 2px solid var(--accent-color);
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-card.card-vertical {
    grid-row: span 2;
}

.screenshot-card.card-horizontal {
    grid-column: span 2;
}

.screenshot-card.placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background-color: var(--background-color-secondary);
    color: var(--text-color-secondary);
    cursor: default;
}

.screenshot-card.placeholder:hover {
    transform: none;
    box-shadow: none;
}

/* Styles pour la Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.contributors-section {
    margin: 60px auto 40px auto;
    max-width: 900px;
    text-align: center;
}

.contributors-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contributors-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 10px;
    overflow: visible;
}

.contributor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color-secondary);
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    padding: 8px 12px;
    position: relative;
    z-index: 1;
}

.contributor:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    background: var(--background-color-secondary, #232323);
    color: var(--accent-color);
}

.contributor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 6px;
    border: 2px solid var(--accent-color, #4fc3f7);
    background: #fff;
}

.contributor-name {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 2px;
    word-break: break-all;
}

.contributor-info {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--background-color-blur, #232323cc);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    outline: none;
    transition: all 0.18s;
}

.contributor-info svg {
    width: 18px;
    height: 18px;
    background-color: var(--accent-color, #4fc3f7);
    color: var(--text-color, #fff);
    border-radius: 50%;
}

.contributor-info:hover,
.contributor-info:focus {
    background: var(--accent-color, #4fc3f7);
}

.contributor-info:hover svg,
.contributor-info:focus svg {
    color: #fff;
}

.contributor-tooltip {
    display: block;
    position: absolute;
    left: -50%;
    top: 38px;
    transform: translateX(0%) scale(0.95);
    background: var(--background-color-alt, var(--background-color));
    color: var(--text-color, #fff);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 300;
    white-space: nowrap;
}

.contributor-info:hover .contributor-tooltip,
.contributor-info:focus .contributor-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

/* === Nouveau style Changelog === */
.changelog-container {
    max-width: 900px;
    margin: 70px auto 50px auto;
    padding: 0 0 32px 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    text-align: left;
}

.changelog-container h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -1px;
        margin-inline: 10px;
}

.changelog-container h1::before {
    content: '';
    display: none;
}

.changelog-container p {
    font-size: 1.13rem;
    color: var(--text-color-secondary);
    margin-bottom: 36px;
    
    margin-inline: 20px;
}

.changelog-container a {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color-active);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: color 0.18s;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.changelog-repo {
    background: var(--background-color-alt);
    backdrop-filter: blur(16px) saturate(1.2);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
    padding: 32px 32px 24px 32px;
    margin-inline: 10px;
    margin-bottom: 0;
    position: relative;
    transition: box-shadow 0.22s, transform 0.22s;
    border: 1.5px solid var(--border-color-alt);
    overflow: hidden;
    animation: fadeIn 0.7s cubic-bezier(.4, 1.4, .6, 1) both;
}

.changelog-repo:hover {
    box-shadow: 0 16px 48px 0 var(--shadow-color);
    transform: translateY(-4px) scale(1.012);
    border-color: var(--accent-color);
}

.changelog-repo h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 2px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog-repo h2 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.18s;
}

.changelog-repo h2 a:hover {
    color: var(--accent-color-hover);
}

.changelog-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--accent-color) 60%, var(--accent-color-hover) 100%);
    color: #fff;
    margin-left: 6px;
    letter-spacing: 0.5px;
    opacity: 0.85;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}

.changelog-badge.private {
    background: linear-gradient(90deg, #444 60%, #222 100%);
    color: #fff;
}

.changelog-repo p {
    margin-bottom: 18px;
    color: var(--text-color-secondary);
    font-size: 1.04rem;
}

.changelog-entries {
    position: relative;
    margin-left: 0;
    padding-left: 18px;
}

.changelog-timeline {
    position: relative;
    margin-left: 0;
    padding-left: 24px;
    border-left: 2.5px dashed var(--accent-color-blur);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.changelog-timeline-entry {
    position: relative;
    padding-bottom: 8px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeIn 0.7s cubic-bezier(.4, 1.4, .6, 1) both;
}

.changelog-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--background-color-alt);
    margin-right: 2px;
    margin-top: 2px;
    box-shadow: 0 2px 8px 0 var(--accent-color-blur);
    flex-shrink: 0;
}

.changelog-timeline-content {
    flex: 1;
    min-width: 0;
}

.changelog-timeline-title {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.05rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.changelog-timeline-date {
    display: inline-block;
    font-size: 0.93rem;
    color: var(--text-color-secondary);
    background: var(--background-color-blur);
    border-radius: 6px;
    padding: 2px 10px;
    margin-left: 6px;
    font-weight: 500;
}

.changelog-timeline-body {
    color: var(--text-color-secondary);
    font-size: 0.98rem;
    margin-top: 2px;
    word-break: break-word;
}

.changelog-timeline-entry .changelog-timeline-title svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    opacity: 0.8;
}

.changelog-timeline-entry:last-child {
    padding-bottom: 0;
}

@media (max-width: 700px) {
    .changelog-container {
        padding: 0 0 16px 0;
    }

    .changelog-repo {
        padding: 20px 10px 16px 10px;
    }

    .changelog-timeline {
        padding-left: 14px;
    }
}

/* === Responsive pour mobile === */
@media (max-width: 768px) {

    .header.scrolled {
        padding: 10px 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        border-radius: 0;
    }

    .header-container.scrolled {
        width: calc(100% - 60px);
        margin: 0 auto;
        border-radius: 20px;
    }

    .header-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        background: var(--background-color);
        position: fixed;
        top: -50px !important;
        left: calc(-100% - 60px);
        height: 100vh;
        width: 100vw;
        text-align: center;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
    }

    .header-logo img {
        height: 40px;
    }

    .header-menu.open {
        left: 0;
    }

    .header-menu a {
        font-size: 24px;
        font-weight: 600;
    }

    .header-menu .cta-button {
        font-size: 20px;
    }

    .cta {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu.open span:nth-child(1) {
        transform: rotate(45deg);
    }

    .burger-menu.open span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .burger-menu.open span:nth-child(3) {
        transform: rotate(-45deg);
    }

    main {
        margin-top: 0;
        padding-top: 90px;
    }

    .main-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .main-title-span::after {
        transform: translate(65%, -50%);
    }

    .main-description {
        font-size: 16px;
        width: 90%;
    }

    .main-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .image-wrapper {
        width: calc(100% - 40px);
    }

    .main-image img {
        transform: scale(1);
        border-radius: 16px;
    }

    .main-image-overlay {
        opacity: 1;
        position: relative;
        transform: translateY(0);
        bottom: auto;
        left: auto;
        margin-top: 20px;
        width: 100%;
    }

    .image-wrapper::after {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0;
    }

    .stat-item {
        transform: none;
        opacity: 1;
        padding: 15px 10px;
        background: var(--card-bg);
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .stat-item:hover {
        transform: none;
        text-shadow: none;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    .contributors-section {
        padding: 0 20px;
        margin-top: 40px;
    }

    .changelog-repo h2 {
        font-size: 1rem;

    }

    .changelog-repo h1 {
        font-size: 1.35rem;
    }

    .changelog-repo button {
        position: relative;
        top: 25px;
    }

    .lstr {
        display: none;
    }

}