body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #0B4C3A;
    color: #fff;
}

header {
    background-color: #062b21;
    color: #ffd700;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

h2 {
    border-bottom: 2px solid #ffd700;
    padding-bottom: 0.5rem;
    margin-top: 0;
    color: #ffd700;
}

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

.card-info {
    background: #fff;
    color: #333;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-info strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

ol {
    padding-left: 1.5rem;
}

ol li {
    margin-bottom: 1rem;
}

#game-container {
    background: #0d5e48;
    border: 3px solid #ffd700;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.hand-display {
    margin-bottom: 1.5rem;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.card {
    background: #fff;
    color: #333;
    width: 60px;
    height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    position: relative;
}

.card.red {
    color: #d40000;
}

#controls {
    margin: 1.5rem 0;
}

button {
    background-color: #ffd700;
    color: #062b21;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin: 0.3rem;
    transition: background 0.2s, transform 0.1s;
}

button:hover:not(:disabled) {
    background-color: #ffea70;
    transform: scale(1.05);
}

button:active:not(:disabled) {
    transform: scale(0.95);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
}

.hidden {
    display: none;
}

#next-btn {
    background-color: #fff;
    color: #0b4c3a;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #ccc;
}

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