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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background: #667eea;
    color: white;
}

/* Main Content */
main {
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.text-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 1rem;
}

.info-box h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-box li:last-child {
    border-bottom: none;
}

/* Playing Cards Display */
.card-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.playing-card {
    width: 120px;
    height: 170px;
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.playing-card:hover {
    transform: translateY(-10px) rotate(5deg);
}

.card-corner {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.card-center {
    font-size: 4rem;
    text-align: center;
}

.playing-card.red {
    color: #dc3545;
}

.playing-card.black {
    color: #000;
}

.playing-card.joker {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ff6b6b;
}

/* Rule Cards */
.rule-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.rule-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.rule-card ol, .rule-card ul {
    margin-left: 1.5rem;
}

.rule-card li {
    margin: 0.5rem 0;
}

.highlight {
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    margin-top: 1rem;
    font-weight: 500;
}

/* Steps */
.steps {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.step {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

/* Special Cards */
.special-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.special-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.special-card h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

/* Points Section */
.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.points-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid #667eea;
}

.points-card.full-width {
    grid-column: 1 / -1;
}

.points-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    text-align: center;
}

.points-table {
    width: 100%;
    border-collapse: collapse;
}

.points-table tr {
    border-bottom: 1px solid #dee2e6;
}

.points-table tr:last-child {
    border-bottom: none;
}

.points-table td {
    padding: 0.75rem;
}

.points-table .points {
    text-align: right;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tip-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tip-card p {
    opacity: 0.95;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 8px;
}

.cta-section h2 {
    border: none;
    margin-bottom: 1rem;
}

.game-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.summary-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-item strong {
    color: #1e3c72;
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        border-bottom: 1px solid #eee;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .points-grid,
    .tips-grid,
    .game-summary {
        grid-template-columns: 1fr;
    }

    .card-display {
        flex-direction: column;
    }

    .playing-card {
        width: 100px;
        height: 140px;
    }

    .card-center {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
        margin: 1rem auto;
    }

    .section {
        margin-bottom: 2rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

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