body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    background: #2c3e50;
    color: white;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: auto;
    background: #34495e;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.setup-section, .confirm-section, .play-section {
    display: none;
}

.active {
    display: block;
}

button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin: 5px;
    transition: 0.2s;
}

button:hover {
    background: #d35400;
}

button:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
}

input[type="number"] {
    padding: 10px;
    border-radius: 5px;
    width: 60px;
    border: none;
    text-align: center;
}

.card-display { 
    width: 120px;
    height: 160px;
    background: white;
    color: #333;
    margin: 20px auto;
    border-radius: 12px;
    display: flex; 
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.5);
    cursor: pointer;
}

.secret {
    background: #7f8c8d;
    color: #7f8c8d;
}

.order-selector {
    background: #1a252f;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#field {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    min-height: 100px;
    padding: 15px;
    background: #1a252f;
    border-radius: 10px;
}

.played-card {
    width: 60px;
    height: 80px;
    background: #ecf0f1;
    color: #2c3e50;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    animation: pop 0.3s ease-out;
}

.error-card {
    background: #e74c3c !important;
    color: white !important;
}

@keyframes pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.topic-box {
    background: #1a252f;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #e67e22;
}

.reset-btn {
    background: #95a5a6;
    margin-top: 30px;
}