﻿:root {
    --bg-dark: #09090b;
    --bg-soft: #111119;
    --accent: #ffffff;
    --glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --island-bg: rgba(15, 15, 18, 0.86);
    --discord-blurple: #5865f2;
    --online-green: #23a559;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    color: #ececec;
    background:
        radial-gradient(circle at 20% 15%, #1a1a22 0%, rgba(26, 26, 34, 0) 35%),
        radial-gradient(circle at 85% 80%, #1f1408 0%, rgba(31, 20, 8, 0) 40%),
        var(--bg-dark);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

#loading-screen {
    position: fixed;
    inset: 0;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2500;
    transition: opacity 0.8s ease;
}

.loader-log {
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    color: #666;
    border-left: 2px solid #2f2f2f;
    padding-left: 15px;
    line-height: 1.7;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.46;
    pointer-events: none;
}

.island-container {
    position: fixed;
    top: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1200;
    padding: 0 16px;
}

.dynamic-island {
    background: var(--island-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease;
}

.dynamic-island:hover {
    transform: translateY(-1px);
}

.island-btn {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
}

.island-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.discord-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #929292;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.discord-state-icon {
    width: 12px;
    text-align: center;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.discord-state-online {
    color: var(--online-green);
    text-shadow: 0 0 8px rgba(35, 165, 89, 0.8);
}

.discord-state-offline {
    color: #8d8d8d;
}

.discord-state-warning {
    color: #f1c40f;
}

.discord-state-error {
    color: #ff5f5f;
}

.discord-icon {
    color: var(--discord-blurple);
    font-size: 18px;
}

#dev-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(18px);
    z-index: 2300;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.dev-card {
    background: #111218;
    border: 1px solid var(--border);
    padding: 46px;
    border-radius: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.dev-title {
    font-size: 2rem;
    margin: 0;
}

.dev-tag {
    background: var(--glass);
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
    margin: 10px;
    font-family: Consolas, "Courier New", monospace;
    border: 1px solid var(--border);
    color: #fff;
    font-size: 1.05rem;
}

.dev-text {
    margin-top: 25px;
    opacity: 0.74;
    line-height: 1.8;
    font-size: 1.05rem;
}

.close-btn {
    margin-top: 30px;
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.05);
}

.wrapper {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px 120px;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(3.2rem, 10vw, 8rem);
    font-weight: 900;
    margin: 0;
    letter-spacing: -4px;
    color: #fff;
    text-transform: uppercase;
}

.hero-subtitle {
    opacity: 0.62;
    font-size: 1.2rem;
    margin-top: 12px;
    margin-bottom: 0;
}

.script-box {
    margin-top: 30px;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(6px);
    max-width: 100%;
}

.script-code {
    color: #9a9a9a;
    font-family: "Courier New", Courier, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(68vw, 820px);
}

.copy-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
}

.copy-btn:hover {
    color: #f0d18f;
}

.main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 42px;
    border-radius: 32px;
    backdrop-filter: blur(10px);
}

.card h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    opacity: 0.25;
}

.muted-copy {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.82;
    margin-top: 20px;
    margin-bottom: 0;
}

.feature-list {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.feature-icon {
    margin-right: 8px;
}

.icon-gold {
    color: #ffd700;
}

.icon-blue {
    color: #00b3ff;
}

.icon-red {
    color: #ff4747;
}

.icon-pink {
    color: #ff85a1;
}

.game-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.game-row {
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    font-size: 10px;
    opacity: 0.55;
    border: 1px solid #fff;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.04em;
}

.full-width {
    grid-column: span 2;
}

.centered {
    justify-content: center;
    text-align: center;
    margin-bottom: 36px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    text-align: center;
}

.why-item i {
    font-size: 1.95rem;
    margin-bottom: 12px;
    opacity: 0.85;
}

.why-item h3 {
    margin: 0;
    font-size: 1.16rem;
}

.why-item p {
    opacity: 0.64;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .wrapper {
        padding: 0 24px 90px;
    }

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

    .full-width {
        grid-column: span 1;
    }

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

    .script-code {
        max-width: min(65vw, 520px);
    }
}

@media (max-width: 760px) {
    .dynamic-island {
        width: 100%;
        justify-content: space-between;
        padding: 10px 12px;
        gap: 8px;
    }

    .island-btn {
        padding: 8px 10px;
    }

    .discord-status {
        min-width: 112px;
        justify-content: center;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 28px;
    }

    .script-box {
        width: 100%;
    }

    .script-code {
        max-width: 100%;
    }
}
