/* ═══════════════════════════════════════════════════════════════
   廢俱伺服器 - Cyberpunk Gaming Theme
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
    /* Core palette - Neon Cyberpunk */
    --bg-deep: #0a0e17;
    --bg-surface: #111827;
    --bg-elevated: #1a2332;
    --bg-card: rgba(17, 24, 39, 0.85);

    /* Neon accents */
    --neon-cyan: #00f5d4;
    --neon-pink: #f72585;
    --neon-yellow: #fee440;
    --neon-blue: #4cc9f0;
    --neon-green: #7ae582;

    /* Text */
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #5f6368;

    /* Glow effects */
    --glow-cyan: 0 0 20px rgba(0, 245, 212, 0.5), 0 0 40px rgba(0, 245, 212, 0.2);
    --glow-pink: 0 0 20px rgba(247, 37, 133, 0.5), 0 0 40px rgba(247, 37, 133, 0.2);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-deep);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   Animated Background
   ═══════════════════════════════════════════════════════════════ */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 245, 212, 0.03) 2px,
            rgba(0, 245, 212, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 245, 212, 0.03) 2px,
            rgba(0, 245, 212, 0.03) 4px
        );
    background-size: 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(0, 245, 212, 0.08) 0%,
        transparent 50%
    ),
    radial-gradient(
        ellipse at 70% 80%,
        rgba(247, 37, 133, 0.06) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: -1;
    animation: nebula 20s ease-in-out infinite alternate;
}

@keyframes nebula {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 5%) rotate(10deg); }
}

/* ═══════════════════════════════════════════════════════════════
   Container
   ═══════════════════════════════════════════════════════════════ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════════ */

.main-nav {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 245, 212, 0.15);
    flex-wrap: wrap;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-btn {
    padding: 12px 20px;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-btn:hover {
    color: var(--neon-cyan);
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-2px);
}

.nav-btn:hover::before {
    width: 80%;
}

.nav-btn.active {
    color: var(--bg-deep);
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    font-weight: 600;
    box-shadow: var(--glow-cyan);
}

.nav-btn.active::before {
    display: none;
}

/* Map buttons */
.nav-btn.map-btn {
    color: var(--neon-green);
    border-color: rgba(122, 229, 130, 0.3);
}

.nav-btn.map-btn:hover {
    background: rgba(122, 229, 130, 0.15);
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(122, 229, 130, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════════ */

.hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 40px;
    border: 1px solid rgba(0, 245, 212, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--neon-cyan),
        var(--neon-pink),
        var(--neon-yellow),
        var(--neon-cyan)
    );
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.server-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.server-icon {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--glow-cyan);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.server-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.server-subtitle {
    font-size: 1.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════════════════════════ */

.info-card, .rules-card, .connect-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 28px;
    border: 1px solid rgba(0, 245, 212, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardReveal 0.6s ease-out both;
}

.info-card { animation-delay: 0.3s; }
.rules-card { animation-delay: 0.4s; }
.connect-card { animation-delay: 0.5s; }

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card:hover, .rules-card:hover, .connect-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 212, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(0, 245, 212, 0.1);
}

.info-card h2, .rules-card h2, .connect-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   Server Info
   ═══════════════════════════════════════════════════════════════ */

.server-details {
    display: grid;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 245, 212, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--neon-cyan);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(0, 245, 212, 0.1);
    transform: translateX(8px);
}

.label {
    font-weight: 600;
    margin-right: 16px;
    min-width: 100px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.server-ip {
    font-family: 'Courier New', monospace;
    background: rgba(0, 245, 212, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

/* Server Status */
.server-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-loading {
    color: var(--text-muted);
    font-style: italic;
}

.status-online {
    color: var(--neon-green);
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(122, 229, 130, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(122, 229, 130, 0.3);
}

.status-offline {
    color: #ff6b6b;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(255, 107, 107, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.status-error {
    color: var(--neon-yellow);
    font-size: 0.95rem;
}

.status-players {
    color: var(--text-primary);
    font-weight: 600;
    padding: 4px 14px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.copy-btn {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: var(--bg-deep);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-cyan);
}

.copy-btn:active {
    transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════
   Announcements & Discord Row
   ═══════════════════════════════════════════════════════════════ */

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.announcements-card, .discord-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(0, 245, 212, 0.1);
    animation: cardReveal 0.6s ease-out 0.35s both;
}

.announcements-card h2, .discord-card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Announcements */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 280px;
    overflow-y: auto;
}

.announcement-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(0, 245, 212, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--neon-cyan);
    transition: all 0.3s ease;
}

.announcement-item:hover {
    background: rgba(0, 245, 212, 0.1);
    transform: translateX(5px);
}

.announcement-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.announcement-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-event {
    background: rgba(247, 37, 133, 0.2);
    color: var(--neon-pink);
    border: 1px solid rgba(247, 37, 133, 0.3);
}

.tag-update {
    background: rgba(0, 245, 212, 0.2);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.tag-notice {
    background: rgba(254, 228, 64, 0.2);
    color: var(--neon-yellow);
    border: 1px solid rgba(254, 228, 64, 0.3);
}

.announcement-text {
    flex: 1 1 100%;
    margin-top: 6px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Discord Card */
.discord-card {
    border-color: rgba(88, 101, 242, 0.2);
}

.discord-card h2 {
    color: #5865f2;
}

.discord-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 50px);
    gap: 24px;
}

.discord-info {
    text-align: center;
}

.discord-server-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.discord-members {
    font-size: 1.1rem;
}

.members-loading {
    color: var(--text-muted);
}

.members-online {
    color: var(--neon-green);
    font-weight: 500;
}

.discord-join-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #5865f2;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-join-btn:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

@media (max-width: 768px) {
    .info-row {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Features Section
   ═══════════════════════════════════════════════════════════════ */

.features {
    margin: 50px 0;
}

.features h2 {
    text-align: center;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 40px;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 245, 212, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 245, 212, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    margin-bottom: 12px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.35rem;
}

/* Staggered animation for feature cards */
.feature-card:nth-child(1) { animation: cardReveal 0.6s ease-out 0.2s both; }
.feature-card:nth-child(2) { animation: cardReveal 0.6s ease-out 0.3s both; }
.feature-card:nth-child(3) { animation: cardReveal 0.6s ease-out 0.4s both; }
.feature-card:nth-child(4) { animation: cardReveal 0.6s ease-out 0.5s both; }
.feature-card:nth-child(5) { animation: cardReveal 0.6s ease-out 0.6s both; }
.feature-card:nth-child(6) { animation: cardReveal 0.6s ease-out 0.7s both; }

/* ═══════════════════════════════════════════════════════════════
   Rules Section
   ═══════════════════════════════════════════════════════════════ */

.rules-list {
    list-style: none;
}

.rules-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.4rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding-left: 8px;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li:hover {
    color: var(--text-primary);
    padding-left: 16px;
    border-left: 2px solid var(--neon-pink);
}

/* ═══════════════════════════════════════════════════════════════
   Connect Section
   ═══════════════════════════════════════════════════════════════ */

.connect-steps {
    padding-left: 0;
    list-style: none;
    counter-reset: step-counter;
}

.connect-steps li {
    counter-increment: step-counter;
    padding: 20px 0;
    position: relative;
    padding-left: 60px;
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.connect-steps li:last-child {
    border-bottom: none;
}

.connect-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 20px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: var(--bg-deep);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--glow-cyan);
}

.connect-steps code {
    background: rgba(0, 245, 212, 0.15);
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.discord-link {
    color: #5865f2;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 8px;
}

.discord-link:hover {
    background: rgba(88, 101, 242, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */

footer {
    margin-top: 60px;
    padding: 40px 32px;
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 212, 0.1);
    animation: cardReveal 0.6s ease-out 0.8s both;
}

.footer-content p {
    color: var(--text-secondary);
    margin: 8px 0;
    font-size: 1.3rem;
}

.footer-content p:first-child {
    color: var(--text-primary);
    font-size: 1rem;
}

.privacy-notice {
    margin-top: 16px !important;
    color: var(--neon-green) !important;
    font-size: 0.9rem !important;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .main-nav {
        gap: 0.4rem;
        padding: 0.8rem;
    }

    .nav-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .server-title {
        font-size: 2rem;
    }

    .server-icon {
        width: 70px;
        height: 70px;
    }

    .hero-content {
        padding: 32px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .copy-btn {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
    }

    .connect-steps li {
        padding-left: 50px;
    }
}

@media (max-width: 480px) {
    .server-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .server-subtitle {
        font-size: 1.1rem;
    }

    .info-card, .rules-card, .connect-card {
        padding: 24px 20px;
    }

    .features h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Scrollbar Styling
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
    border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* ═══════════════════════════════════════════════════════════════
   Selection Styling
   ═══════════════════════════════════════════════════════════════ */

::selection {
    background: var(--neon-cyan);
    color: var(--bg-deep);
}


/* ═══════════════════════════════════════════════════════════════
   首頁輪播 Banner
   ═══════════════════════════════════════════════════════════════ */

.banner-carousel {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 245, 212, 0.15);
    animation: cardReveal 0.6s ease-out 0.15s both;
}

.banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 28px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.banner-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.banner-builder {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.banner-arrow:hover {
    background: rgba(0, 245, 212, 0.6);
    color: var(--bg-deep);
}

.banner-prev { left: 14px; }
.banner-next { right: 14px; }

.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.6);
    transform: scale(1.2);
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .banner-carousel {
        height: 220px;
        border-radius: 14px;
    }
    .banner-title { font-size: 1.1rem; }
    .banner-builder { font-size: 0.8rem; }
    .banner-arrow { width: 36px; height: 36px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .banner-carousel { height: 180px; }
    .banner-caption { padding: 12px 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   返回頂部按鈕
   ═══════════════════════════════════════════════════════════════ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 245, 212, 0.2);
    border: 1px solid rgba(0, 245, 212, 0.4);
    color: var(--neon-cyan);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--neon-cyan);
    color: var(--bg-deep);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.back-to-top-arrow {
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Back-to-top popIn animation */
.back-to-top.visible {
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   Hamburger Menu + Mobile Nav
   ============================================ */

/* Nav brand - hidden on desktop, visible on mobile */
.nav-brand {
    display: none;
    align-items: center;
    gap: 0.5rem;
}
.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.nav-title {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger X animation */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop: nav-links is just a flex wrapper */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-brand {
        display: flex;
    }
    .hamburger {
        display: flex;
    }

    .main-nav {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
        margin-top: 1rem;
        order: 3;
    }

    .nav-links.open {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-btn {
        width: 100%;
        text-align: left;
        padding: 0.6rem 1rem;
    }

    .map-btn {
        font-size: 0.8rem;
    }
}

/* ============================================
   Light Theme
   ============================================ */
[data-theme="light"] {
    --bg-deep: #f0f2f5;
    --bg-surface: #ffffff;
    --bg-elevated: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.92);
    --neon-cyan: #0891b2;
    --neon-pink: #db2777;
    --neon-yellow: #d97706;
    --neon-blue: #2563eb;
    --neon-green: #16a34a;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --glow-cyan: 0 2px 8px rgba(8, 145, 178, 0.15);
    --glow-pink: 0 2px 8px rgba(219, 39, 119, 0.15);
}

/* Light theme body background override */
[data-theme="light"] body::before {
    background: linear-gradient(180deg, #e8f4f8 0%, #f0f2f5 100%);
    opacity: 0.5;
}

/* Light theme nav adjustments */
[data-theme="light"] .main-nav {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .nav-btn {
    color: #374151;
}

[data-theme="light"] .nav-btn:hover,
[data-theme="light"] .nav-btn.active {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

/* Light theme cards */
[data-theme="light"] .info-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .rules-card,
[data-theme="light"] .connect-card,
[data-theme="light"] .announcements-card,
[data-theme="light"] .discord-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(8, 145, 178, 0.15);
}

/* Light theme footer */
[data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.85);
    border-top-color: rgba(8, 145, 178, 0.2);
}

/* Theme toggle button */
.theme-toggle,
.lang-toggle {
    background: none;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: var(--neon-cyan);
    color: var(--bg-deep);
}

/* Nav utility group for toggle buttons */
.nav-utils {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-utils {
        order: 2;
        gap: 0.3rem;
    }
    .theme-toggle,
    .lang-toggle {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}
