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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    z-index: 1000;
    overflow: hidden;
}

.intro-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(101, 84, 192, 0.3) 0%,
        rgba(240, 84, 168, 0.2) 25%,
        rgba(66, 179, 245, 0.3) 50%,
        rgba(101, 84, 192, 0.2) 75%,
        rgba(240, 84, 168, 0.3) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    filter: blur(20px);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.intro-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6554c0, transparent);
    top: -150px;
    left: -150px;
    animation: float1 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f054a8, transparent);
    bottom: -200px;
    right: -200px;
    animation: float2 10s ease-in-out infinite;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #42b3f5, transparent);
    top: 50%;
    right: 10%;
    animation: float3 9s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -50px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, 60px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 40px); }
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.intro-logo {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6554c0, #f054a8, #42b3f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoZoom 3s ease-out forwards;
}

@keyframes logoZoom {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.intro-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    animation: subtitleFadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
    text-transform: uppercase;
}

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

.intro-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(240, 84, 168, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 3s ease-in-out 2s infinite;
    opacity: 0;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
}

.enter-btn {
    margin-top: 40px;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    background: linear-gradient(135deg, #6554c0, #f054a8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: buttonPulse 2s ease-in-out infinite;
    text-transform: uppercase;
    will-change: transform, box-shadow;
}

.enter-btn:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(101, 84, 192, 0.6);
}

.enter-btn:active {
    transform: scale(0.95);
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(101, 84, 192, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(101, 84, 192, 0.6);
    }
}

@keyframes dotsBlink {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes introFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.intro-container.fade-out {
    animation: introFadeOut 0.8s ease-out forwards;
}

.dashboard-container {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    padding: 40px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.dashboard-container.show {
    opacity: 1;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6554c0, #f054a8, #42b3f5);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: linear-gradient(135deg, rgba(101, 84, 192, 0.1), rgba(240, 84, 168, 0.1));
    border: 2px solid rgba(101, 84, 192, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
    will-change: transform;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }

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

.game-card:hover {
    transform: translateY(-10px);
    border-color: rgba(66, 179, 245, 0.6);
    box-shadow: 0 10px 20px rgba(101, 84, 192, 0.3);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.game-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.game-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.message-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.message-modal-content {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
    border: 2px solid rgba(101, 84, 192, 0.5);
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(101, 84, 192, 0.3);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

.message-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #6554c0, #f054a8);
    padding: 20px;
}

.message-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.message-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-modal-close:hover {
    transform: scale(1.2);
}

.message-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.message-modal-body p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

.message-modal-footer {
    display: flex;
    justify-content: center;
    padding: 0 20px 20px 20px;
}

.message-modal-btn {
    background: linear-gradient(135deg, #6554c0, #42b3f5);
    color: #ffffff;
    border: 2px solid rgba(101, 84, 192, 0.5);
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message-modal-btn:hover {
    border-color: rgba(101, 84, 192, 0.8);
    box-shadow: 0 0 20px rgba(101, 84, 192, 0.5);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .intro-logo {
        font-size: 2.5rem;
    }

    .intro-subtitle {
        font-size: 1rem;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-container {
        padding: 20px;
    }
}
