:root {
    --primary: #007bff;
    --success: #28a745;
    --error: #dc3545;
    --bg: #f0f2f5;
    --text: #212529;
    --card-bg: #ffffff;
}

body {
    font-family: Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    font-size: 1.4rem;
}

#app {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    color: #212529;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 20px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.4s ease-out;
    cursor: pointer;
    border: 2px solid #ccc;
}

.card.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 10px;
    z-index: 1000;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    border: 2px solid var(--primary);
}

.card.win {
    border: 4px solid gold;
    box-shadow: 0 0 20px gold;
}

.card.correct {
    border: 6px solid var(--success);
    box-shadow: 0 0 30px var(--success);
}

.card.wrong {
    border: 6px solid var(--error);
    box-shadow: 0 0 30px var(--error);
}

.card h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.card .revealed-content {
    animation: fadeIn 0.5s ease-in;
}

.card .date {
    color: #555;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-style: italic;
}

.card .description {
    font-size: 1.2rem;
    line-height: 1.6;
}

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

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

button {
    padding: 20px 40px;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.place-button {
    background-color: #eee;
    color: #555;
    padding: 10px;
    font-size: 1rem;
    margin: 5px 0;
    width: 100%;
    border: 2px dashed #ccc;
    box-shadow: none;
}

.place-button:hover {
    background-color: #e0e0e0;
    border-color: #999;
    color: #333;
}

input {
    padding: 15px;
    font-size: 1.3rem;
    border-radius: 10px;
    border: 2px solid #ddd;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.setup-screen {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.setup-screen h1 {
    color: var(--primary);
    margin-bottom: 40px;
}

.setup-screen .field-group {
    margin-bottom: 30px;
}

.setup-screen label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.setup-screen select {
    padding: 10px;
    font-size: 1.1rem;
    border-radius: 8px;
    width: 100%;
}

.setup-screen .player-input-wrapper {
    margin-bottom: 15px;
}

.setup-screen .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.button-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.button-secondary:hover {
    background-color: #f8f9fa;
}

.scoreboard {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.scoreboard-item {
    padding: 10px 20px;
    border-radius: 10px;
    background-color: white;
    color: black;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.scoreboard-item.current {
    background-color: var(--primary);
    color: white;
    border: none;
}

.scoreboard-item .count {
    margin-left: 10px;
}

.turn-message {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.result-banner {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease-in;
    text-align: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.result-banner.win { background-color: gold; color: black; }
.result-banner.correct { background-color: var(--success); color: white; }
.result-banner.wrong { background-color: var(--error); color: white; }

.button-black { background-color: black; color: white; }
.button-white { background-color: white; color: black; }

.timeline-container {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
