/* ハイスコア画面スタイル */

/* ハイスコア入力画面 */
#highscore-input-screen .screen-content {
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

#highscore-input-screen h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#highscore-input-screen p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.player-name-input {
    width: 200px;
    padding: 0.75rem;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    background: #000000;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.player-name-input:focus {
    outline: none;
    border-color: #ffffff;
    background: #111111;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.player-name-input::placeholder {
    color: #666666;
    text-transform: none;
}

/* 入力欄のラベルを追加 */
.player-name-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1rem;
}

/* ハイスコア表示画面 *//* ハイスコア表示画面 */
#highscore-screen .screen-content {
    max-width: 800px;
    width: 95%;
}

#highscore-screen h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.highscore-table-container {
    margin-bottom: 2rem;
}

.highscore-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.highscore-table th,
.highscore-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.highscore-table th {
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: bold;
}

.highscore-table tr:last-child td {
    border-bottom: none;
}

.highscore-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.highscore-table tr.current-score {
    background: rgba(255, 215, 0, 0.2);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .highscore-table {
        font-size: 0.9rem;
    }
    
    .highscore-table th,
    .highscore-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .player-name-input {
        width: 180px;
        font-size: 1.1rem;
        padding: 0.6rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .button-group button {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .highscore-table {
        font-size: 0.8rem;
    }
    
    #highscore-screen h2 {
        font-size: 1.5rem;
    }
    
    .player-name-input {
        width: 160px;
        font-size: 1rem;
        padding: 0.5rem;
    }
}
