.game-info-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.game-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 40px;
}

.game-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 18px;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #333;
}

.players-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin: 40px 0;
    align-items: center;
}

.player-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.white-player {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
}

.black-player {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: white;
}

.player-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.player-name {
    font-size: 28px;
    font-weight: bold;
    margin: 20px 0;
    min-height: 40px;
    text-align: center;
}

.player-title {
    font-size: 20px;
    opacity: 0.9;
}

.player-elo {
    font-size: 18px;
    margin: 10px 0;
}

.result-box {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    min-width: 150px;
}

.result-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.result {
    font-size: 48px;
    font-weight: bold;
}

.reveal-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: inherit;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.reveal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.reveal-btn:active {
    transform: translateY(0);
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.error-container {
    text-align: center;
    padding: 60px 40px;
}

.error-text {
    font-size: 24px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-subtext {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* New layout styles */
.guessgame-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 1920px;
    height: 1080px;
    padding: 30px 0px 0px 340px;
    gap: 20px;
    position: relative;
}

/* Left sidebar now contains moves (was right sidebar) */
.moves-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 575px;
    padding: 8px;
    background: #fafdff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(24,90,157,0.08);
    border: 1.5px solid #e0e6ef;
    margin-top: 100px;
    height: 775px;
    gap: 12px;
}

/* Right sidebar now contains game info (was left sidebar) */
.game-info-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    width: 575px;
    padding: 20px;
    background: #fafdff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(24,90,157,0.08);
    border: 1.5px solid #e0e6ef;
    margin-top: 100px;
    height: 775px;
}

/* Player info box with image */
.player-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.player-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    align-items: stretch;
    text-align: center;
}

.player-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.black-player-box {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.black-player-box .player-name {
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    flex: 1;
}

.black-player-box .player-rating {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    flex: 1;
}

.black-player-box .reveal-btn-small {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.black-player-box .reveal-btn-small:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.black-player-box .reveal-btn-inline {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.black-player-box .reveal-btn-inline:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.black-player-box .player-info-row {
    background: rgba(255, 255, 255, 0.05);
}

.white-player-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.white-player-box .player-name {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    flex: 1;
}

.white-player-box .player-rating {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    flex: 1;
}

.white-player-box .reveal-btn-small {
    background: rgba(24, 90, 157, 0.1);
    border: 1px solid #185a9d;
    color: #185a9d;
}

.white-player-box .reveal-btn-small:hover {
    background: #185a9d;
    color: white;
}

.white-player-box .reveal-btn-inline {
    background: rgba(24, 90, 157, 0.15);
    border: 1px solid #185a9d;
    color: #185a9d;
}

.white-player-box .reveal-btn-inline:hover {
    background: #185a9d;
    color: white;
}

.white-player-box .player-info-row {
    background: rgba(24, 90, 157, 0.05);
}

.reveal-btn-small {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reveal-btn-inline {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 60px;
}

/* Event name above board */
.event-name {
    font-size: 28px;
    font-weight: 700;
    color: #185a9d;
    text-align: center;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Opening info box at bottom of moves */
.opening-info-box {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.opening-eco {
    font-size: 20px;
    font-weight: 700;
    color: #185a9d;
    margin-bottom: 8px;
}

.opening-name {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

#previous-moves-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    padding: 0 0 12px 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
    height: 475px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    position: relative;
    border: 1.5px solid #e0e6ef;
}

.game-info-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex: 1;
    overflow-y: auto;
}

.info-title {
    font-weight: 700;
    font-size: 24px;
    color: #185a9d;
    margin-bottom: 20px;
    text-align: center;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-label {
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.info-value {
    font-size: 16px;
    color: #222;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.reveal-btn {
    background: rgba(24, 90, 157, 0.1);
    border: 1px solid #185a9d;
    color: #185a9d;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.reveal-btn:hover {
    background: #185a9d;
    color: white;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 20px;
}

.error-text {
    font-size: 32px;
    color: #e74c3c;
}

.error-subtext {
    font-size: 18px;
    color: #666;
}

.guessing-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.hearts-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 32px;
}

.heart.lost {
    opacity: 0.5;
    filter: grayscale(100%);
}

.guess-input-container {
    position: relative;
    margin-bottom: 16px;
}

#player-guess-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e6ef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

#player-guess-input:focus {
    outline: none;
    border-color: #185a9d;
}

#player-guess-input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #185a9d;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.suggestion-item:hover {
    background: #e8f4ff;
}

.give-up-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    width: 100%;
}

.give-up-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
}

.feedback-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: transparent;
    z-index: 10000;
    justify-content: flex-end;
    align-items: flex-end;
}

.feedback-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 400px;
}

#feedback-title {
    font-size: 32px;
    font-weight: 700;
    color: #185a9d;
    margin-bottom: 30px;
}

#feedback-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.fb-btn {
    width: 100px;
    height: 100px;
    font-size: 48px;
    border-radius: 50%;
    border: 3px solid #e0e6ef;
    background: #fafdff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

#fb-up:hover {
    background: #d4edda;
    border-color: #28a745;
}

#fb-down:hover {
    background: #f8d7da;
    border-color: #dc3545;
}
