/* ranking.css ランキング全体のコンテナ */
.leaderboard-container {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
    color: #0f0;
    padding: 15px;
    max-width: 360px; /* スマホの横幅に合わせる */
    margin: 0 auto;
}

.ranking-section {
    margin-bottom: 25px;
}

.ranking-section h3 {
    text-align: center;
    color: #ff0;
    margin-bottom: 10px;
    border-bottom: 1px dashed #0f0;
    font-size: 18px;
}

/* ランキングのリスト */
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    display: flex;
    justify-content: space-between; /* 左右に引き離す */
    font-size: 16px;
    line-height: 1.5;
}

/* 左側：順位と名前 */
.rank-name {
    flex-grow: 1;
    text-align: left;
}

/* 右側：スコア（右寄せ・6桁分の幅を確保） */
.rank-score {
    text-align: right;
    width: 80px; /* 6桁が綺麗に収まる幅 */
}

/* 🔥 自分が今送ったスコアのハイライト表示 */
.ranking-item.my-score {
    color: #ff00ff; /* ネオンピンクに変えて目立たせる */
    font-weight: bold;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 名前入力エリアのスタイル */
#name-input-container {
    text-align: center;
    margin: 15px 0;
    font-family: 'Courier New', Courier, monospace;
}

.rankin-notice {
    color: #ff00ff;
    font-weight: bold;
    font-size: 18px;
    margin: 5px 0;
    animation: blink 0.8s infinite alternate;
}

.rankin-sub {
    color: #fff;
    font-size: 12px;
    margin-bottom: 8px;
}

#ranking-player-name {
    background-color: #111;
    border: 2px solid #ff00ff;
    color: #ff00ff;
    padding: 6px;
    font-size: 20px;
    width: 120px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 0 8px #ff00ff;
    border-radius: 4px;
    outline: none;
}

#ranking-submit-btn {
    display: block;
    background-color: #ff00ff;
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    margin: 12px auto 0 auto;
    cursor: pointer;
    box-shadow: 0 0 10px #ff00ff;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

#ranking-submit-btn:disabled {
    background-color: #444;
    color: #888;
    box-shadow: none;
}

/* 点滅アニメーション */
@keyframes blink {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* --- タブ切り替えUI --- */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tab-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

/* 選択中のタブはネオンカラーに光らせる */
.tab-btn.active {
    border-color: #00ffff;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
