/* =====================================================
 * 天下情勢・合戦情報 — 専用ページスタイル
 * 既存の style.css (.world-*, .rank-*, .score-*, .diplo-*) パターンを踏襲
 * ===================================================== */

/* ワールド切替タブ */
.ws-world-tabs {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 4px;
    gap: 2px;
}
.ws-tab {
    padding: 8px 24px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.ws-tab:hover { color: #1e40af; }
.ws-tab.active {
    background: #1e40af;
    color: white;
    box-shadow: 0 1px 3px rgba(30,64,175,0.3);
}

/* セクションタイトル */
.ws-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid #1e40af;
}

/* パネル */
.ws-panel {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

/* ローディングスピナー */
.ws-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: ws-spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes ws-spin { to { transform: rotate(360deg); } }

/* メタ情報の更新時刻 */
.ws-meta-time {
    display: inline-block;
    margin-left: 12px;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #6b7280;
}

/* =====================================================
 * 進行中合戦カード
 * ===================================================== */
.ws-battle-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}
.ws-battle-name {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 4px;
}
.ws-battle-jinto {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 16px;
}
.ws-battle-forces {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}
.ws-battle-force {
    text-align: center;
}
.ws-battle-force-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.ws-battle-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}
.ws-status-advantage { background: #dcfce7; color: #166534; }
.ws-status-disadvantage { background: #fee2e2; color: #991b1b; }
.ws-status-even { background: #f3f4f6; color: #4b5563; }
.ws-battle-merit {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
}
.ws-battle-morale {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2px;
}
.ws-battle-vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d1d5db;
}
.ws-merit-bar {
    height: 8px;
    border-radius: 4px;
    background: #f3f4f6;
    margin-top: 12px;
    overflow: hidden;
    display: flex;
}
.ws-merit-bar-left {
    height: 100%;
    border-radius: 4px 0 0 4px;
    transition: width 0.5s ease;
}
.ws-merit-bar-right {
    height: 100%;
    border-radius: 0 4px 4px 0;
    transition: width 0.5s ease;
}

/* =====================================================
 * 総合力スコア・ランキング（トップページパターン踏襲）
 * ===================================================== */
.ws-score-row, .ws-rank-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}
.ws-score-label, .ws-rank-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    flex-shrink: 0;
}
.ws-rank-number {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}
.ws-score-row:nth-child(1) .ws-rank-number,
.ws-rank-row:nth-child(1) .ws-rank-number { background: #fef3c7; color: #92400e; }
.ws-score-row:nth-child(2) .ws-rank-number,
.ws-rank-row:nth-child(2) .ws-rank-number { background: #e5e7eb; color: #374151; }
.ws-score-row:nth-child(3) .ws-rank-number,
.ws-rank-row:nth-child(3) .ws-rank-number { background: #fed7aa; color: #9a3412; }

.ws-rank-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.ws-bar-wrap {
    flex: 1;
    height: 22px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.ws-bar {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    transition: width 0.5s ease;
    min-width: 20px;
}
.ws-bar-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.ws-score-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 70px;
    flex-shrink: 0;
}
.ws-score-territory { font-size: 0.7rem; color: #6b7280; }
.ws-rank-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 90px;
    flex-shrink: 0;
}
.ws-rank-winrate { font-size: 0.7rem; color: #6b7280; }
.ws-rank-points { font-size: 0.65rem; color: #9ca3af; }
.ws-momentum-up { color: #10b981; font-size: 0.7rem; }
.ws-momentum-down { color: #ef4444; font-size: 0.7rem; }
.ws-momentum-stay { color: #d1d5db; font-size: 0.7rem; }

/* =====================================================
 * 家紋アイコン
 * ===================================================== */
.ws-kamon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}
.ws-kamon svg, .ws-kamon img { display: block; }
.ws-battle-kamon {
    margin-bottom: 8px;
}
.ws-battle-kamon svg, .ws-battle-kamon img { display: block; margin: 0 auto; }

/* =====================================================
 * レーダーチャート
 * ===================================================== */
.ws-radar-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.ws-radar-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.ws-radar-canvas { width: 100%; height: auto; }

/* =====================================================
 * 支配関係ツリー
 * ===================================================== */
.ws-tree-root {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ws-tree-node {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ws-tree-name {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    white-space: nowrap;
}
.ws-tree-name.ws-tree-root-name {
    background: #1e40af;
    color: white;
}
.ws-tree-children {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
    margin-left: 8px;
}
.ws-tree-arrow {
    color: #d1d5db;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 5px;
}

/* =====================================================
 * 外交関係 — ブロック表示
 * ===================================================== */
.ws-diplo-blocs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ws-diplo-bloc {
    border-radius: 10px;
    border: 1px solid rgba(16,185,129,0.2);
    background: rgba(209,250,229,0.08);
    overflow: hidden;
}
.ws-diplo-bloc.solo {
    border-color: rgba(239,68,68,0.2);
    background: rgba(254,226,226,0.06);
}
.ws-diplo-bloc-allies {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
}
.ws-diplo-bloc-enemies {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(239,68,68,0.06);
    border-top: 1px dashed rgba(239,68,68,0.15);
}
.ws-diplo-bloc-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.ws-diplo-bloc-tag.alliance {
    color: #059669;
    background: rgba(16,185,129,0.12);
}
.ws-diplo-bloc-tag.hostile {
    color: #dc2626;
    background: rgba(239,68,68,0.1);
}
.ws-diplo-bloc-tag.neutral {
    color: #6b7280;
    background: rgba(107,114,128,0.1);
}
.ws-diplo-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--chip-color, #6b7280);
    background: rgba(107,114,128,0.08);
    background: color-mix(in srgb, var(--chip-color, #6b7280) 8%, transparent);
    border: 1px solid rgba(107,114,128,0.18);
    border-color: color-mix(in srgb, var(--chip-color, #6b7280) 18%, transparent);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ws-diplo-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ws-diplo-chip.hostile {
    opacity: 0.85;
}
.ws-diplo-chip.neutral {
    opacity: 0.7;
}
.ws-diplo-link-icon {
    color: #10b981;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.ws-diplo-neutral-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* 外交力分析バー */
.ws-diplo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.ws-diplo-name { font-size: 0.8rem; font-weight: 600; min-width: 60px; }
.ws-diplo-bars { flex: 1; display: flex; gap: 2px; height: 14px; }
.ws-diplo-bar-alliance {
    height: 100%;
    background: #10b981;
    border-radius: 3px;
    transition: width 0.3s;
}
.ws-diplo-bar-hostile {
    height: 100%;
    background: #ef4444;
    border-radius: 3px;
    transition: width 0.3s;
}
.ws-diplo-balance { font-size: 0.75rem; font-weight: 600; min-width: 30px; text-align: right; }
.ws-diplo-positive { color: #10b981; }
.ws-diplo-negative { color: #ef4444; }
.ws-diplo-neutral-text { color: #9ca3af; }

/* =====================================================
 * 領土分布
 * ===================================================== */
.ws-territory-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ws-territory-row:last-child { border-bottom: none; }
.ws-territory-name {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 80px;
}
.ws-territory-bar-wrap {
    flex: 1;
    display: flex;
    gap: 4px;
    align-items: center;
}
.ws-territory-bar {
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    transition: width 0.5s ease;
}
.ws-territory-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.ws-territory-countries {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* =====================================================
 * 合戦履歴
 * ===================================================== */
.ws-history-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f3f4f6;
}
.ws-history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f9fafb;
}
.ws-history-item:last-child { border-bottom: none; }
.ws-history-icon { flex-shrink: 0; font-size: 0.85rem; }
.ws-history-text { flex: 1; color: #374151; }
.ws-history-winner {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #dcfce7;
    color: #166534;
    white-space: nowrap;
}
.ws-history-draw {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
}
.ws-history-ongoing {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #fef3c7;
    color: #92400e;
}

/* =====================================================
 * トレンドチャート
 * ===================================================== */
.ws-trend-btn {
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.ws-trend-btn:hover { color: #1e40af; background: #eff6ff; }
.ws-trend-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}
#ws-trend-chart-wrap { position: relative; width: 100%; }
#ws-trend-canvas { width: 100%; height: auto; display: block; }

/* =====================================================
 * ビュー切替タブ
 * ===================================================== */
.ws-view-tab {
    padding: 8px 24px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.ws-view-tab:hover { color: #1e40af; }
.ws-view-tab.active {
    background: #1e40af;
    color: white;
    box-shadow: 0 1px 3px rgba(30,64,175,0.3);
}

/* =====================================================
 * 検索入力
 * ===================================================== */
.ws-search-input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #374151;
    background: white;
    transition: border-color 0.2s;
}
.ws-search-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}
.ws-search-input::placeholder { color: #9ca3af; }

/* =====================================================
 * 週セレクタ
 * ===================================================== */
.ws-week-selector {
    padding: 6px 32px 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #374151;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s;
}
.ws-week-selector:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

/* =====================================================
 * 功名帳ランキング
 * ===================================================== */
.ws-merit-btn {
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.ws-merit-btn:hover { color: #1e40af; background: #eff6ff; }
.ws-merit-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

/* トップ3サマリー */
.ws-podium {
    margin-bottom: 12px;
}
.ws-podium-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8rem;
}
.ws-podium-label {
    font-weight: 600;
    color: #9ca3af;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.ws-podium-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}
.ws-podium-chip:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.ws-podium-pos {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ws-podium-chip:nth-child(2) .ws-podium-pos { background: #fef3c7; color: #92400e; }
.ws-podium-chip:nth-child(3) .ws-podium-pos { background: #e5e7eb; color: #374151; }
.ws-podium-chip:nth-child(4) .ws-podium-pos { background: #fed7aa; color: #9a3412; }
.ws-podium-pts {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-left: 2px;
}

/* プレイヤーカード */
.ws-player-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.ws-player-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.ws-player-card-name {
    font-size: 1.2rem;
    font-weight: 800;
}
.ws-player-card-faction {
    font-size: 0.8rem;
    color: #6b7280;
}
.ws-player-card-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.ws-player-card-close:hover { background: #f3f4f6; color: #374151; }
.ws-player-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.ws-player-card-stat {
    text-align: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.ws-player-card-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
}
.ws-player-card-stat-label {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 2px;
}
.ws-player-card-radar-wrap {
    display: flex;
    justify-content: center;
}

.ws-merit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
}
.ws-merit-row:hover { background: rgba(30,64,175,0.03); border-radius: 6px; }
.ws-merit-row:last-child { border-bottom: none; }
.ws-merit-name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
}
.ws-merit-formations {
    font-size: 0.7rem;
    color: #9ca3af;
    white-space: nowrap;
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* 折りたたみボタン */
.ws-merit-fold {
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ws-merit-fold-btn {
    display: inline-block;
    padding: 6px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.ws-merit-fold-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

/* =====================================================
 * 勢力チップセレクタ
 * ===================================================== */
.ws-faction-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fc, #6b7280);
    background: #f9fafb;
    border: 1.5px solid var(--fc, #e5e7eb);
    cursor: pointer;
    transition: all 0.2s;
}
.ws-faction-chip:hover {
    background: color-mix(in srgb, var(--fc) 10%, white);
}
.ws-faction-chip.active {
    background: var(--fc, #1e40af);
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ws-faction-clickable { cursor: pointer; transition: background 0.15s; }
.ws-faction-clickable:hover { background: rgba(30,64,175,0.04); border-radius: 8px; }

/* =====================================================
 * 勢力詳細パネル
 * ===================================================== */
.ws-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}
.ws-detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ws-detail-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}
.ws-detail-close:hover { background: #f3f4f6; color: #374151; }
.ws-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.ws-detail-stat {
    text-align: center;
    min-width: 70px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.ws-detail-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
}
.ws-detail-stat-label {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 2px;
}
.ws-detail-section {
    margin-bottom: 16px;
}
.ws-detail-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

/* =====================================================
 * ポイント内訳テーブル
 * ===================================================== */
.ws-points-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ws-points-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.ws-points-table th {
    padding: 6px 10px;
    text-align: right;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}
.ws-points-table th:first-child { text-align: center; }
.ws-points-table td {
    padding: 6px 10px;
    text-align: right;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}
.ws-points-table td:first-child { text-align: center; font-weight: 600; }
.ws-points-table tbody tr:hover { background: #f9fafb; }
.ws-delta-up { color: #10b981; font-size: 0.7rem; margin-left: 2px; }
.ws-delta-down { color: #ef4444; font-size: 0.7rem; margin-left: 2px; }

/* =====================================================
 * 勝敗ストリーク
 * ===================================================== */
.ws-streak-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.ws-streak-marker {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.ws-streak-w { background: #dcfce7; color: #166534; }
.ws-streak-l { background: #fee2e2; color: #991b1b; }
.ws-streak-d { background: #f3f4f6; color: #6b7280; }

/* (外交リデザイン styles merged into main block above) */

/* =====================================================
 * レスポンシブ
 * ===================================================== */
/* =====================================================
 * アナウンス
 * ===================================================== */
.ws-announcement-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 18px;
}
.ws-announcement-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 6px;
}
.ws-announcement-icon { margin-right: 4px; }
.ws-announcement-body {
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ws-score-row, .ws-rank-row { flex-wrap: wrap; }
    .ws-score-detail, .ws-rank-stats { flex-direction: row; gap: 8px; min-width: auto; }
    .ws-battle-forces { grid-template-columns: 1fr; gap: 12px; }
    .ws-battle-vs { display: none; }
    .ws-territory-countries { max-width: 120px; }
    .ws-score-label, .ws-rank-label { min-width: 80px; }
    .ws-merit-row { flex-wrap: wrap; }
    .ws-merit-name { min-width: 60px; }
    .ws-detail-stats { gap: 8px; }
    .ws-detail-stat { min-width: 55px; padding: 8px 10px; }
    .ws-faction-chip { padding: 5px 10px; font-size: 0.75rem; }
    .ws-diplo-bloc-allies { gap: 4px; padding: 8px 10px; }
    .ws-diplo-bloc-enemies { gap: 4px; padding: 6px 10px; }
    .ws-diplo-chip { padding: 3px 7px; font-size: 0.75rem; }
    .ws-podium-summary { gap: 4px; }
    .ws-podium-chip { padding: 2px 6px; font-size: 0.75rem; }
    .ws-player-card-stats { grid-template-columns: repeat(3, 1fr); }
    .ws-player-card-name { font-size: 1rem; }
    .ws-week-selector { font-size: 0.8rem; max-width: 250px; }
}
