* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #00d4ff;
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.2);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00d4ff, #ff00ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-highlight {
    color: #00d4ff !important;
    -webkit-text-fill-color: #00d4ff !important;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 10px #00d4ff); }
    to { filter: drop-shadow(0 0 20px #ff00ff); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-links a:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Welcome Section */
.welcome {
    text-align: center;
    padding: 140px 2rem 80px;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 255, 0.1));
    position: relative;
    overflow: hidden;
}

.welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.welcome h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #00d4ff, #ff00ff, #00ff88, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 20px #00d4ff); }
    to { filter: drop-shadow(0 0 30px #ff00ff); }
}

.official-notice {
    background: rgba(255, 68, 68, 0.15);
    border: 2px solid #ff4444;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    animation: pulseWarning 2s infinite;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3);
    position: relative;
    z-index: 2;
}

.official-notice h3 {
    color: #ff4444;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.official-notice p {
    color: #ffaaaa;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
}

@keyframes pulseWarning {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 15px 40px rgba(255, 68, 68, 0.5); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3); }
}

/* Games Section */
.games-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #00d4ff, #ff00ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sectionGlow 2s ease-in-out infinite alternate;
}

@keyframes sectionGlow {
    from { filter: drop-shadow(0 0 10px #00d4ff); }
    to { filter: drop-shadow(0 0 20px #ff00ff); }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-20px) scale(1.03);
    border-color: #00d4ff;
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.4);
}

.game-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-info {
    padding: 1.8rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.game-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.play-btn {
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.5);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.95);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid #00d4ff;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.footer-section h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-section p, .footer-section a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.8;
    font-size: 1rem;
}

.footer-section a:hover {
    color: #00d4ff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-links a:hover {
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .welcome {
        padding: 120px 1rem 60px;
    }

    .official-notice {
        margin: 1.5rem 1rem;
        padding: 1.5rem;
    }

    .footer {
        padding: 3rem 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00aaff, #ff00cc);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease forwards;
}

.game-card:nth-child(odd) { animation-delay: 0.1s; }
.game-card:nth-child(even) { animation-delay: 0.2s; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 2% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #00d4ff;
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
}

.modal-header h2 {
    color: #00d4ff;
    font-size: 1.8rem;
    margin: 0;
}

.close {
    color: #ff4444;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.2);
}

.close:hover {
    color: #ffffff;
    background: #ff4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem 2.5rem 2.5rem;
}

.terms-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-left: 4px solid #00d4ff;
}

.terms-section h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.terms-section ul {
    list-style: none;
    padding-left: 0;
}

.terms-section ul li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.terms-section ul li::before {
    content: "➤";
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

.warning-box {
    border-left-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
    border: 2px solid #ff4444;
}

.warning-box h3 {
    color: #ff4444 !important;
}

.warning-box p {
    color: #ffaaaa;
    font-weight: 600;
}

.terms-agree {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 15px;
    border: 2px solid #00ff88;
    margin-top: 2rem;
}

.terms-agree label {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.terms-agree input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    accent-color: #00ff88;
}

.accept-btn {
    background: #666;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.accept-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.4);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1.5rem 2rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem 2rem 2rem;
    }
    
    .terms-section {
        padding: 1.2rem;
    }
}