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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #0f0f2e 100%);
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated starfield background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

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

/* Content wrapper */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 40px;
    background: rgba(15, 15, 46, 0.8);
    border-bottom: 2px solid #4a7c9e;
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out;
    border-radius: 0 0 20px 20px;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(74, 124, 158, 0.2);
    padding: 10px;
    border: 3px solid #4a7c9e;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.title-section h1 {
    font-size: 3em;
    color: #4a9eff;
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.title-section p {
    font-size: 1.2em;
    color: #a0a0c0;
}

/* Main content */
.rules-container {
    background: rgba(20, 20, 50, 0.9);
    border: 2px solid #4a7c9e;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.3s backwards;
    box-shadow: 0 8px 32px rgba(74, 124, 158, 0.2);
}

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

.rules-container h2 {
    color: #4a9eff;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(74, 158, 255, 0.4);
    border-bottom: 2px solid #4a7c9e;
    padding-bottom: 15px;
}

.rule-section {
    margin-bottom: 30px;
}

.rule-section h3 {
    color: #7fd3ff;
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-section ul {
    list-style: none;
    margin-left: 20px;
}

.rule-section li {
    margin: 10px 0;
    padding: 10px 15px;
    background: rgba(74, 124, 158, 0.1);
    border-left: 4px solid #4a7c9e;
    border-radius: 5px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.rule-section li:hover {
    background: rgba(74, 124, 158, 0.2);
    border-left-color: #4a9eff;
    transform: translateX(5px);
}

.important {
    background: rgba(255, 100, 100, 0.1);
    border-left-color: #ff6464;
}

.important:hover {
    background: rgba(255, 100, 100, 0.2);
}

.rule-section ol {
    margin-left: 20px;
    list-style-position: inside;
}

.rule-section ol li {
    margin: 10px 0;
    padding: 10px 15px;
    background: rgba(74, 124, 158, 0.1);
    border-left: 4px solid #4a7c9e;
    border-radius: 5px;
}

/* Footer */
footer {
    background: rgba(15, 15, 46, 0.9);
    border-top: 2px solid #4a7c9e;
    padding: 40px 20px;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

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

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4a7c9e 0%, #3a6c8e 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #4a9eff;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.footer-button:hover {
    background: linear-gradient(135deg, #5a8cae 0%, #4a7c9e 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.5);
}

.footer-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-text {
    color: #a0a0c0;
    font-size: 1em;
    margin-bottom: 20px;
}

.footer-note {
    color: #888;
    font-size: 0.9em;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #4a7c9e;
}

/* Responsive */
@media (max-width: 768px) {
    .title-section h1 {
        font-size: 2em;
    }

    .header-content {
        gap: 15px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .rules-container {
        padding: 20px;
    }

    .rules-container h2 {
        font-size: 1.4em;
    }

    .rule-section h3 {
        font-size: 1.1em;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}
