:root {
    --primary-color: #ff85c0;
    /* Hot Pink / Sakura */
    --primary-glow: rgba(255, 133, 192, 0.4);
    --secondary-color: #ffb7d5;
    /* Lighter Pink */
    --bg-dark: #050505;
    /* Pure Black-ish */
    --text-main: #ffffff;
    /* Pure White for best contrast */
    --text-muted: #d0d0d0;
    /* Light Gray */
    --glass-bg: rgba(20, 10, 15, 0.85);
    /* Darker, more opaque background for boxes */
    --glass-border: rgba(255, 133, 192, 0.3);

    --font-heading: 'Press Start 2P', cursive;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Handling */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 133, 192, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(160, 50, 200, 0.1) 0%, transparent 40%),
        url('assets/images/background.jpg') no-repeat center center/cover;
    filter: brightness(0.6) blur(3px);
    /* Darker filter */
}

/* If the image fails to load or doesn't exist, the gradients provide a nice fallback */
.background-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0.5;
}

.container {
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    z-index: 1;
}

/* Typography & Hero */
h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: -1px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Server Status */
.server-status {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 133, 192, 0.7);
    }

    70% {
        opacity: 1;
        box-shadow: 0 0 0 10px rgba(255, 133, 192, 0);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 133, 192, 0);
    }
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
    .button-group {
        flex-direction: row;
    }
}

.btn {
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: #4a0025;
    /* Dark text for contrast against pink */
    box-shadow: 0 0 20px rgba(255, 133, 192, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 133, 192, 0.5);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* IP Copy Section */
.ip-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.ip-container:hover {
    border-color: var(--primary-color);
}

.ip-container:active {
    transform: scale(0.98);
}

#server-ip {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.ip-container:hover .copy-btn {
    color: var(--text-main);
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch Effect placeholder (simple hover) */
.glitch-text:hover {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--primary-color);
}

@keyframes glitch-anim {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

/* Cute Decoration */
.cute-divider {
    margin: 2rem 0;
    text-align: center;
}

.floating-icon {
    filter: drop-shadow(0 0 10px var(--primary-glow));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }

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

/* Welcome Section */
.welcome-section {
    margin: 4rem auto;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.welcome-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Tutorial Section */
.tutorial-section {
    margin: 4rem 0;
    width: 100%;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.step-card {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    position: relative;
    text-align: left;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 0 10px var(--primary-glow);
}

.step-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-image-placeholder {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Video Tutorial */
.video-tutorial-box {
    margin-top: 4rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: #000;
}

.video-container iframe,
.video-container object,
.video-container embed,
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Rules & Discord Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 4rem 0;
    width: 100%;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.rules-box,
.discord-box {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.rules-list {
    list-style: none;
    margin-top: 1rem;
}

.rules-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.rules-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.discord-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-discord {
    background: #5865F2;
    /* Discord Color */
    color: white;
    margin-top: 1rem;
    width: 100%;
}

.btn-discord:hover {
    background: #4752C4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}