* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #0b0614;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.city-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 6, 20, 0.85), rgba(11, 6, 20, 0.95)), 
                url('assets/background.jpg') no-repeat center center/cover;
    z-index: -2;
}

.particle {
    position: fixed;
    top: -20px;
    z-index: -1;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    20% { opacity: 0.8; }
    100% {
        transform: translateY(105vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(18, 10, 32, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 128, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff0080, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
}

.menu-container {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    color: #00ffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
    transition: transform 0.2s;
}

.menu-btn:active {
    transform: scale(0.9);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 50px;
    background: rgba(22, 12, 38, 0.95);
    border: 1px solid #ff0080;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 0, 128, 0.3);
    display: flex;
    flex-direction: column;
    width: 200px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dropdown-menu.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.dropdown-menu a {
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 0, 128, 0.2);
    color: #00ffff;
}

.main-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-card, .hero-card {
    background: rgba(22, 14, 38, 0.65);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 0, 128, 0.05);
    text-align: center;
}

.hero-card h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.neon-text {
    color: #ff0080;
    text-shadow: 0 0 15px rgba(255, 0, 128, 0.7);
}

.hero-card p, .glass-card p {
    color: #bfaedc;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-btn, .copy-btn {
    background: linear-gradient(135deg, #ff0080, #7928ca);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover, .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
    text-align: left;
}

.info-box {
    background: rgba(10, 5, 20, 0.5);
    border: 1px solid rgba(255, 0, 128, 0.15);
    padding: 20px;
    border-radius: 12px;
}

.info-box h3 {
    color: #00ffff;
    margin-bottom: 10px;
}

.info-box code {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 2px 6px;
    border-radius: 4px;
}

.ip-block {
    background: rgba(10, 5, 20, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 20px;
    border-radius: 14px;
    margin: 20px 0;
    text-align: center;
}

.ip-block h3 {
    color: #ff0080;
    margin-bottom: 10px;
}

.server-address {
    font-family: monospace;
    font-size: 1.2rem;
    color: #00ffff;
    background: rgba(0,0,0,0.3);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
}

.game-container {
    background: rgba(10, 5, 20, 0.5);
    border: 1px solid rgba(121, 40, 202, 0.3);
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}

#reaction-box {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 15px 0;
    user-select: none;
    transition: background 0.2s;
}

.reaction-idle { background: #7928ca; color: #fff; }
.reaction-ready { background: #ff0080; color: #fff; }
.reaction-click { background: #00ffff; color: #0b0614; }

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 15px auto;
}

.memory-card {
    aspect-ratio: 1;
    background: #1a0b2e;
    border: 2px solid #7928ca;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.memory-card.flipped {
    background: #ff0080;
    border-color: #00ffff;
}

.chat-card {
    display: flex;
    flex-direction: column;
    height: 450px;
    padding: 20px !important;
}

.chat-box {
    flex: 1;
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid rgba(255, 0, 128, 0.2);
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.bot-msg, .user-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-msg {
    background: rgba(121, 40, 202, 0.3);
    border: 1px solid #7928ca;
    align-self: flex-start;
}

.user-msg {
    background: rgba(255, 0, 128, 0.3);
    border: 1px solid #ff0080;
    align-self: flex-end;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(10, 5, 20, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    color: #fff;
    outline: none;
}

.chat-input-area button {
    background: #00ffff;
    color: #0b0614;
    border: none;
    padding: 0 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}
