body {
    background-color: #16161a; /* 💡 画面全体の背景を少し明るめのダークグレーに */
    color: #e2e8f0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 40px 24px;
    min-width: 1200px; 
}

header {
    text-align: center;
    margin-bottom: 45px;
}

h1 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* 🔄 タブUI */
.tab-container {
    display: inline-flex;
    background-color: #1f1f26; /* 💡 タブの背景も微調整 */
    padding: 5px;
    border-radius: 30px;
    border: 1px solid #2e2e3a;
}

.tab-btn {
    background-color: transparent;
    color: #a1a1aa; /* 💡 非アクティブ文字を少し明るく */
    border: none;
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    background-color: #3f3f46; /* 💡 アクティブタブをより際立たせる */
    color: #ffffff;
    border: 1px solid #52525b;
}

/* 📊 ティア表全体のコンテナ（横5列） */
.ranking-board {
    max-width: 100%; 
    margin: 0 auto;
    display: flex;
    flex-direction: row; 
    gap: 16px;
    align-items: flex-start;
    flex-wrap: nowrap !important; 
}

/* 📛 1つのTier列 */
.tier-row {
    flex: 1; 
    display: flex;
    flex-direction: column; 
    background-color: #1b1b22; /* 💡 各列のベース背景をトーンアップ */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a35;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    min-width: 200px; 
}

/* 列の最上部のバッジ */
.tier-badge {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.t1 .tier-badge { background: #d4af37; color: #000000; }
.t2 .tier-badge { background: #a1a1aa; color: #000000; }
.t3 .tier-badge { background: #cd7f32; color: #ffffff; }
.t4 .tier-badge { background: #3b82f6; color: #ffffff; }
.t5 .tier-badge { background: #4b5563; color: #ffffff; }

/* 各列のコンテンツエリア */
.tier-content {
    padding: 10px; 
}

/* 👤 プレイヤーリスト（真下に突き抜ける縦並び） */
.player-list {
    display: flex;
    flex-direction: column; 
    gap: 6px; 
    width: 100%;
}

/* 👤 プレイヤーの名札 */
.player-item {
    display: flex;
    align-items: center;
    padding: 2px 10px 2px 4px; 
    border-radius: 6px;
    width: 100%; 
    height: 46px; 
    box-sizing: border-box;
    transition: all 0.12s ease;
    gap: 10px;
}

.player-item:hover {
    transform: translateX(4px);
    cursor: pointer;
    filter: brightness(1.15);
}

/* 💡 HTプレイヤー：明るい上位枠 */
.player-item.is-ht {
    background-color: #32323f; /* 💡 名札背景を少し明るく */
    border: 1px solid #434355;
}
.player-item.is-ht .player-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

/* 💡 LTプレイヤー：暗めの下位枠 */
.player-item.is-lt {
    background-color: #22222a; /* 💡 名札背景を少し明るくして沈みすぎないように */
    border: 1px solid #2e2e3a;
}
.player-item.is-lt .player-name {
    color: #9ca3af; /* 💡 文字色も少し明るめのグレーに変更 */
    font-size: 0.85rem;
    font-weight: 600;
}

/* 💡 3Dバストアップ画像用の補正設定 */
.player-avatar-3d {
    width: 38px;         
    height: 38px;        
    object-fit: contain;
    flex-shrink: 0;
}

/* プレイヤー名溢れ対策 */
.player-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}