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

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #0f3460;
    --accent: #e94560;
    --accent-light: #ff6b8a;
    --text-primary: #eee;
    --text-secondary: #aaa;
    --border: #2d3561;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

h1 {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

h2 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.rules-section {
    background: var(--bg-secondary);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.rules-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.rules-section ul {
    list-style: none;
    padding-left: 0;
}

.rules-section ul li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.rules-section ul li::before {
    content: "▸";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.special-cards {
    background: var(--bg-primary);
}

.card-rule {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-rule:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2);
}

.card-rule:last-child {
    margin-bottom: 0;
}

.card-icon {
    font-size: 2.5rem;
    min-width: 50px;
    text-align: center;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 8px;
}

.card-description {
    flex: 1;
}

.card-description p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.card-description strong {
    color: var(--accent-light);
}

.tips {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}

.advanced {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
}

.advanced h3 {
    color: var(--accent-light);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.advanced h3:first-of-type {
    margin-top: 0;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

footer p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

footer a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .rules-section {
        padding: 1.5rem;
    }

    .card-rule {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }

    .card-icon {
        font-size: 2rem;
        min-width: auto;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .rules-section {
        padding: 1.2rem;
    }

    .card-rule {
        padding: 1rem;
    }
}
