body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f8f8f8;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px 20px;
}

h1 {
    text-align: center;
    color: #185a9d;
    font-size: 48px;
    margin-bottom: 30px;
}

.event-header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-header h2 {
    color: #185a9d;
    font-size: 36px;
    margin-bottom: 5px;
}

.event-year {
    font-size: 24px;
    color: #185a9d;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.event-description {
    font-size: 18px;
    color: #666;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.game-card.answered {
    border: 2px solid #185a9d;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e6ef;
}

.game-header h3 {
    color: #185a9d;
    font-size: 24px;
    margin: 0;
}

.game-date {
    color: #666;
    font-size: 14px;
}

.players {
    margin-bottom: 20px;
}

.player {
    margin: 10px 0;
    font-size: 18px;
}

.player.white {
    color: #333;
    font-weight: 600;
}

.player.black {
    color: #555;
    font-weight: 600;
}

.players-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.player-name {
    font-size: 18px;
    font-weight: 600;
}

.player-name.white {
    color: #333;
}

.player-name.black {
    color: #555;
}

.vs {
    font-weight: bold;
    color: #999;
    font-size: 16px;
}

.elo {
    color: #888;
    font-size: 16px;
    font-weight: normal;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.eco-full {
    color: #185a9d;
    font-weight: 600;
    line-height: 1.4;
}

.fen-preview {
    margin: 15px 0;
}

.fen-hover-container {
    position: relative;
    display: inline-block;
}

.fen-button {
    background: #185a9d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.fen-button:hover {
    background: #0d3a5f;
}

.fen-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding: 10px;
    width: 300px;
}

.fen-hover-container:hover .fen-tooltip {
    display: block;
}

.fen-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.guess-form {
    margin-top: 20px;
}

.guess-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.guess-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #185a9d;
    background: white;
    color: #185a9d;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.guess-btn:hover {
    background: #185a9d;
    color: white;
    transform: scale(1.05);
}

.guess-btn.white-win:hover {
    background: #4a90e2;
    border-color: #4a90e2;
}

.guess-btn.draw:hover {
    background: #888;
    border-color: #888;
}

.guess-btn.black-win:hover {
    background: #333;
    border-color: #333;
}

.result {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.result.correct {
    background: #d4edda;
    border: 2px solid #28a745;
}

.result.incorrect {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.result-inline {
    display: inline-block;
    font-size: 16px;
    color: inherit;
}

.result.correct .result-inline {
    color: #155724;
}

.result.incorrect .result-inline {
    color: #721c24;
}

.result-inline strong {
    font-weight: 700;
}

.score-summary {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.score-summary h3 {
    color: #185a9d;
    font-size: 32px;
    margin: 0;
}

.no-event {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.no-event p {
    font-size: 24px;
    color: #666;
}

.footer {
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: #185a9d;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}
