/* TOCプラグイン非表示（ポケモン詳細ページはJS動的コンテンツのため自動目次不要） */
#sugoitoc,
.st-toc-container,
.ez-toc-container-direction,
[id^="st_toc"] {
    display: none !important;
}

.wp-block-post-title {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    text-wrap: auto;
    word-break: keep-all;
}

#pokego-pokemon-detail {
    --pkd-ink: #1f2430;
    --pkd-soft: #667085;
    --pkd-line: #d8dde6;
    --pkd-paper: #ffffff;
    --pkd-surface: #f4f6fb;
    --pkd-accent: #0c6d7d;
    --pkd-accent-soft: #d9eff2;
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 16px 48px;
    color: var(--pkd-ink);
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

.pkd-section {
    margin: 18px 0 26px;
}

.pkd-section-title {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pkd-hero {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
    border: 1px solid var(--pkd-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, #e7f4f7 0, #f7fbfc 35%, #ffffff 80%);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.06);
}

.pkd-hero-media,
.pkd-img-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e9f0;
}

.pkd-pokemon-img {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.pkd-img-placeholder-no {
    font-size: 26px;
    font-weight: 800;
    color: #98a2b3;
}

/* 未実装ポケモン バナー */
.pkd-unreleased-banner {
    background: linear-gradient(135deg, #ff6b35, #d32f2f);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 8px 0 16px;
    text-align: center;
}
.pkd-unreleased-title {
    font-size: 1.1rem;
    font-weight: 700;
}
.pkd-unreleased-note {
    font-size: 0.85rem;
    margin-top: 4px;
    opacity: 0.9;
}

.pkd-hero-kicker {
    margin: 0 0 6px;
    color: var(--pkd-accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pkd-name {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 800;
}

.pkd-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pkd-fact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--pkd-paper);
    border: 1px solid var(--pkd-line);
}

.pkd-fact-pill-label {
    color: var(--pkd-soft);
    font-size: 12px;
    font-weight: 700;
}

.pkd-fact-pill-value {
    font-size: 13px;
    font-weight: 700;
}

.pkd-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pkd-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pkd-type-chip--ノーマル { background: #9fa19f; }
.pkd-type-chip--ほのお { background: #e62829; }
.pkd-type-chip--みず { background: #2980ef; }
.pkd-type-chip--でんき { background: #fac000; color: #3a2e00; }
.pkd-type-chip--くさ { background: #3fa129; }
.pkd-type-chip--こおり { background: #3dcef3; color: #003a48; }
.pkd-type-chip--かくとう { background: #ff8000; }
.pkd-type-chip--どく { background: #9141cb; }
.pkd-type-chip--じめん { background: #915121; }
.pkd-type-chip--ひこう { background: #81b9ef; color: #001848; }
.pkd-type-chip--エスパー { background: #ef4179; }
.pkd-type-chip--むし { background: #91a119; }
.pkd-type-chip--いわ { background: #b0ab82; color: #2a2000; }
.pkd-type-chip--ゴースト { background: #704170; }
.pkd-type-chip--ドラゴン { background: #5060e1; }
.pkd-type-chip--あく { background: #624d4e; }
.pkd-type-chip--はがね { background: #60a1b8; color: #001830; }
.pkd-type-chip--フェアリー { background: #ef70ef; }

.pkd-type-icon-sm {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.pkd-cat-normal { background: #d9edf7; color: #164863; }
.pkd-cat-legendary { background: #fde8a8; color: #7a5200; }
.pkd-cat-mega { background: #ffd8ba; color: #8a3d00; }
.pkd-cat-gmax { background: #ffd0d8; color: #8a0030; }
.pkd-cat-shadow { background: #e5dbff; color: #4c2788; }

.pkd-forms-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* 前進化→フォームを繋ぐ矢印 */
.pkd-forms-arrow {
    font-size: 18px;
    color: #9aa4b2;
    flex-shrink: 0;
    line-height: 1;
}

.pkd-form-chip {
    min-width: 84px;
    padding: 10px 10px 8px;
    border-radius: 16px;
    border: 1px solid var(--pkd-line);
    background: var(--pkd-paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pkd-form-chip:hover:not(.pkd-form-chip--active) {
    transform: translateY(-1px);
    border-color: #a8b4c6;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.pkd-form-chip--active {
    cursor: default;
    border-width: 2px;
}

.pkd-form-chip--active.pkd-cat-normal { border-color: #7fb4d6; }
.pkd-form-chip--active.pkd-cat-legendary { border-color: #c99721; }
.pkd-form-chip--active.pkd-cat-mega { border-color: #d9680e; }
.pkd-form-chip--active.pkd-cat-gmax { border-color: #c0003a; }
.pkd-form-chip--active.pkd-cat-shadow { border-color: #7a48c7; }

.pkd-form-chip-img-wrap,
.pkd-form-chip-placeholder {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pkd-form-chip-shadow-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 18px;
    height: auto;
    pointer-events: none;
}

.pkd-form-chip-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.pkd-form-chip-placeholder {
    border-radius: 12px;
    background: #eef2f7;
    color: #9aa4b2;
    font-size: 16px;
    font-weight: 700;
}

.pkd-form-chip-label {
    max-width: 110px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
}

.pkd-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pkd-section-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--pkd-accent-soft);
    color: var(--pkd-accent);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.pkd-section-nav-link:hover {
    filter: brightness(0.96);
}

/* ---- PvP セクション ---- */
.pkd-pvp-active-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.pkd-pvp-active-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--pkd-soft);
}

.pkd-pvp-league-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.pkd-pvp-league-badge--gl   { background: #e3f2fd; color: #1565c0; }
.pkd-pvp-league-badge--ul   { background: #fce4ec; color: #880e4f; }
.pkd-pvp-league-badge--ml   { background: #fff8e1; color: #e65100; }
.pkd-pvp-league-badge--mega { background: #f3e5f5; color: #6a1b9a; }

/* リーグアイコン（活躍バッジ内） */
.pkd-pvp-league-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
}

/* リーグアイコン（カードヘッダ内・小） */
.pkd-pvp-league-icon-sm {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 3px;
}

/* カードラベルをアイコン+テキスト並列に */
.pkd-battle-metric-label {
    display: inline-flex;
    align-items: center;
}

.pkd-pvp-moves {
    font-size: 11px;
    color: var(--pkd-soft);
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pkd-pvp-move-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pkd-pvp-move-sep {
    display: none;
}

.pkd-pvp-reference-note {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
}
.pkd-pvp-nodata {
    font-size: 13px;
    color: #aaa;
    padding: 8px 0;
}

.pkd-pvp-shadow-note {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: #f3e5f5;
    color: #6a1b9a;
}

/* ---- バトル評価 ---- */
.pkd-battle-summary-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pkd-battle-metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pkd-battle-metric-card {
    padding: 14px 16px;
    border: 1px solid var(--pkd-line);
    border-radius: 16px;
    background: var(--pkd-paper);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.pkd-battle-metric-label {
    display: block;
    color: var(--pkd-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.pkd-battle-metric-rank {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.pkd-battle-metric-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--pkd-soft);
}

.pkd-battle-metric-step10 {
    font-size: 14px;
    font-weight: 800;
    color: var(--pkd-soft);
    margin-top: 2px;
}

.pkd-battle-type-rank-list {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pkd-battle-type-rank {
    font-size: 11px;
    color: #777;
}

.pkd-battle-summary-card,
.pkd-panel-card {
    padding: 18px;
    border: 1px solid var(--pkd-line);
    border-radius: 18px;
    background: var(--pkd-paper);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pkd-battle-summary-title {
    margin: 0 0 6px;
    color: var(--pkd-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pkd-battle-summary-rank {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.pkd-score-rank--Splus,
.pkd-score-rank--SS {
    color: transparent;
    background: linear-gradient(135deg, #ff6b35, #d32f2f, #ff4081);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(211,47,47,0.3);
}
.pkd-score-rank--S { color: #ef7b17; }
.pkd-score-rank--Aplus { color: #e67e00; }
.pkd-score-rank--A { color: #2e8b57; }
.pkd-score-rank--B { color: #1f6fd7; }
.pkd-score-rank--C { color: #7b8794; }
.pkd-score-rank--D { color: #b0b0b0; }

.pkd-battle-summary-er {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.pkd-battle-summary-metric {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #edf1f6;
}

.pkd-battle-summary-metric-label {
    color: var(--pkd-soft);
    font-size: 13px;
}

.pkd-battle-summary-metric-value {
    font-size: 13px;
    font-weight: 800;
}

.pkd-card-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--pkd-soft);
}

.pkd-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* ---- 技情報タブ ---- */
.pkd-move-tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.pkd-move-tab {
    padding: 5px 16px;
    border-radius: 6px;
    border: 2px solid #ddd;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    color: #555;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pkd-move-tab--active {
    background: var(--pkd-accent, #1976d2);
    color: #fff;
    border-color: var(--pkd-accent, #1976d2);
}

.pkd-pvp-effect-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: #e8f5e9;
    color: #2e7d32;
    vertical-align: middle;
}

.pkd-move-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pkd-panel-card--wide {
    grid-column: 1 / -1;
}

.pkd-panel-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
}

.pkd-stat-row {
    margin-bottom: 12px;
}

.pkd-stat-row:last-child {
    margin-bottom: 0;
}

.pkd-stat-row-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.pkd-stat-label {
    font-weight: 700;
}

.pkd-stat-values {
    color: var(--pkd-soft);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.pkd-bar-wrap {
    height: 10px;
    border-radius: 999px;
    background: #e9edf3;
    overflow: hidden;
}

.pkd-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2fb9c4 0%, #1d7f95 100%);
}

.pkd-stat-value-num {
    font-size: 13px;
    color: var(--pkd-soft);
    font-weight: 600;
}

.pkd-stat-row-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.pkd-stat-blocks {
    display: flex;
    gap: 3px;
}

.pkd-stat-block {
    width: 14px;
    height: 10px;
    border-radius: 3px;
    background: #e0e6ef;
}

.pkd-stat-block--on {
    background: linear-gradient(90deg, #2fb9c4 0%, #1d7f95 100%);
}

.pkd-stat-step10 {
    font-size: 12px;
    font-weight: 700;
    color: var(--pkd-soft);
    min-width: 30px;
}

.pkd-matchup-group + .pkd-matchup-group {
    margin-top: 14px;
}

.pkd-matchup-title {
    margin: 0 0 8px;
    color: var(--pkd-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pkd-matchup-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pkd-matchup-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.pkd-matchup-badge--weak {
    background: #ffe0d5;
    color: #8b3518;
}

.pkd-matchup-badge--resist {
    background: #dff4e4;
    color: #25613b;
}

.pkd-matchup-badge--weak2 {
    background: #ff8a65;
    color: #5c1c07;
    font-weight: 900;
}

.pkd-matchup-badge--weak1 {
    background: #ffe0d5;
    color: #8b3518;
}

.pkd-matchup-badge--resist1 {
    background: #dff4e4;
    color: #25613b;
}

.pkd-matchup-badge--resist2 {
    background: #a5d6a7;
    color: #1b5e20;
}

.pkd-matchup-badge--resist3 {
    background: #66bb6a;
    color: #0d3b10;
}

.pkd-matchup-empty,
.pkd-card-empty {
    color: var(--pkd-soft);
    font-size: 13px;
}

.pkd-evolution-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pkd-evolution-step {
    min-width: 110px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #e7ecf2;
    background: #f9fbfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pkd-evolution-step:not(.pkd-evolution-step--current):hover {
    border-color: #7dc5d1;
    background: #eef9fb;
    transition: border-color 0.15s, background 0.15s;
}

.pkd-evolution-step--current {
    border-color: #7dc5d1;
    background: #eef9fb;
}

.pkd-evolution-thumb,
.pkd-evolution-placeholder {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.pkd-evolution-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf2f7;
    color: #9aa4b2;
    font-size: 18px;
    font-weight: 800;
}

.pkd-evolution-name {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.pkd-evolution-arrow {
    color: #93a1b2;
    font-size: 18px;
    font-weight: 900;
}

.pkd-move-recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.pkd-ranking-card {
    min-width: 0;
    padding: 14px;
}

.pkd-ranking-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 12px;
}

.pkd-ranking-toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkd-ranking-toggle-label {
    color: var(--pkd-soft);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.pkd-ranking-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pkd-ranking-toggle-btn {
    appearance: none;
    border: 1px solid #d9e1eb;
    border-radius: 999px;
    background: #fff;
    color: var(--pkd-soft);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    padding: 7px 12px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.pkd-ranking-toggle-btn:hover {
    border-color: #b9c8d8;
    color: var(--pkd-ink);
}

.pkd-ranking-toggle-btn.is-active {
    background: linear-gradient(180deg, #ff8b36 0%, #ef5a24 100%);
    border-color: #ef5a24;
    box-shadow: 0 6px 14px rgba(239, 90, 36, 0.18);
    color: #fff;
}

.pkd-ranking-single-panel {
    min-width: 0;
}

.pkd-ranking-card-caption {
    margin: -4px 0 8px;
    color: var(--pkd-soft);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.pkd-recommended-combo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.pkd-recommended-fast,
.pkd-recommended-charge {
    padding: 8px 12px;
    border-radius: 12px;
    background: #f2f6fa;
    font-size: 14px;
    font-weight: 800;
}

.pkd-recommended-plus {
    color: var(--pkd-soft);
    font-size: 18px;
    font-weight: 900;
}

.pkd-recommended-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pkd-inline-meta {
    color: var(--pkd-soft);
    font-size: 13px;
    font-weight: 700;
}

.pkd-move-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pkd-move-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f7f9fc;
    border: 1px solid #e8edf4;
}

.pkd-move-item--elite {
    background: #fffbea;
    border-color: #f0c040;
}

.pkd-move-item-main {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.pkd-move-name {
    font-weight: 800;
}

.pkd-move-type,
.pkd-move-item-stats {
    color: var(--pkd-soft);
    font-size: 12px;
    font-weight: 700;
}

.pkd-move-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #9fa19f;
}

/* ---- 技情報テーブル ---- */
.pkd-move-table-card {
    overflow-x: auto;
}

.pkd-move-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pkd-move-th {
    padding: 5px 8px;
    background: #f0f4f8;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid #d0d8e4;
}

.pkd-move-th--sortable {
    cursor: pointer;
    user-select: none;
}

.pkd-move-th--sortable:hover {
    background: #e4eaf2;
}

.pkd-move-th--asc::after {
    content: ' ▲';
    font-size: 9px;
}

.pkd-move-th--desc::after {
    content: ' ▼';
    font-size: 9px;
}

.pkd-move-td {
    padding: 6px 8px;
    border-bottom: 1px solid #edf0f5;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* 技名セルは左寄せ */
.pkd-move-td:first-child {
    text-align: left;
    font-weight: 700;
    min-width: 80px;
}

.pkd-move-tr:hover {
    background: #f7f9fc;
}

.pkd-move-tr--elite {
    background: #fffbea;
}

.pkd-move-tr--elite:hover {
    background: #fff5cc;
}

.pkd-elite-star {
    color: #e6a000;
    margin-right: 2px;
}

.pkd-battle-table-wrap {
    overflow-x: auto;
}

.pkd-battle-table,
.pkd-ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--pkd-paper);
    border: 1px solid var(--pkd-line);
    border-radius: 18px;
    overflow: hidden;
}

.pkd-battle-table th,
.pkd-battle-table td,
.pkd-ranking-table th,
.pkd-ranking-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #edf1f6;
    text-align: center;
}

.pkd-battle-table th,
.pkd-ranking-table th {
    background: #f3f6fa;
    color: var(--pkd-soft);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.pkd-battle-label {
    text-align: left !important;
    font-weight: 700;
}

.pkd-battle-gym {
    color: #1d63d8;
    font-weight: 800;
}

.pkd-battle-raid {
    color: #cb4b16;
    font-weight: 800;
}

.pkd-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf1f6;
    font-size: 12px;
    font-weight: 800;
}

.pkd-rank-badge--1 {
    background: #ffe27a;
    color: #6f4c00;
}

.pkd-rank-badge--2 {
    background: #d9e1ea;
    color: #364152;
}

.pkd-rank-badge--3 {
    background: #efc09c;
    color: #6f3718;
}

.pkd-card-note--compact {
    margin-top: -4px;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.45;
}

.pkd-ranking-type-cell {
    width: 110px;
}

.pkd-ranking-type-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pkd-ranking-kind-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--pkd-soft);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.pkd-ranking-moves-cell {
    min-width: 210px;
    text-align: left !important;
}

.pkd-ranking-moves {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 6px;
}

.pkd-ranking-moves-plus {
    color: var(--pkd-soft);
    font-weight: 900;
}

.pkd-ranking-move {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pkd-ranking-move-name {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
}

.pkd-ranking-metric-cell {
    min-width: 92px;
    white-space: nowrap;
}

.pkd-ranking-metric-main {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.pkd-ranking-metric-sub {
    margin-top: 3px;
    color: var(--pkd-soft);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.pkd-stars { color: #f29f05; letter-spacing: 1px; }
.pkd-stars-empty { color: #d5dbe3; letter-spacing: 1px; }

.pkd-ranking-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    margin-bottom: 16px;
    background: var(--pkd-accent);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: opacity 0.15s;
}

.pkd-ranking-banner:hover {
    opacity: 0.85;
}

.pkd-ranking-banner-text {
    flex: 1;
}

.pkd-ranking-banner-arrow {
    font-size: 16px;
}

.pkd-back-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--pkd-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.pkd-back-link:hover {
    color: var(--pkd-accent);
}

.pkd-loading,
.pkd-error {
    padding: 48px 20px;
    text-align: center;
    font-size: 14px;
}

.pkd-loading { color: var(--pkd-soft); }
.pkd-error { color: #c62828; }

@media (max-width: 760px) {
    .pkd-hero {
        grid-template-columns: 1fr;
    }

    .pkd-hero-media,
    .pkd-img-placeholder {
        width: 128px;
        height: 128px;
    }

    .pkd-pokemon-img {
        width: 112px;
        height: 112px;
    }

    .pkd-name {
        font-size: 28px;
    }

    .pkd-battle-summary-row,
    .pkd-battle-metric-row,
    .pkd-info-grid,
    .pkd-move-recommend-grid,
    .pkd-move-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    #pokego-pokemon-detail {
        padding: 16px 12px 36px;
    }

    .pkd-hero {
        padding: 18px;
    }

    .pkd-forms-nav {
        gap: 8px;
    }

    .pkd-form-chip {
        min-width: 72px;
    }

    .pkd-form-chip-img-wrap,
    .pkd-form-chip-img,
    .pkd-form-chip-placeholder {
        width: 44px;
        height: 44px;
    }

    .pkd-battle-table th,
    .pkd-battle-table td,
    .pkd-ranking-table th,
    .pkd-ranking-table td {
        padding: 9px 8px;
        font-size: 12px;
    }

    .pkd-ranking-card {
        padding: 12px;
    }

    .pkd-ranking-controls,
    .pkd-ranking-toggle-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pkd-ranking-type-cell {
        width: 92px;
    }

    .pkd-ranking-moves-cell {
        min-width: 180px;
    }

    .pkd-ranking-move-name {
        font-size: 12px;
    }
}

/* ============================================================
   SCP 個体値ランキング (renderScpTable)
   ============================================================ */
.pkd-section--scp_table .pkd-scp-intro {
    font-size: 12px;
    color: #555;
    margin: 4px 0 8px;
    line-height: 1.5;
}
.pkd-scp-leagues {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}
.pkd-scp-league-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #fafafa;
    color: #333;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.pkd-scp-league-btn.pkd-scp-league--active {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}
.pkd-scp-league-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
.pkd-scp-league-btn img {
    width: 18px;
    height: 18px;
}
.pkd-scp-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0;
    align-items: center;
    font-size: 12px;
}
.pkd-scp-ctrl-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.pkd-scp-ctrl-group input[type="radio"] {
    margin: 0 2px 0 6px;
}
.pkd-scp-ctrl-group label {
    cursor: pointer;
    user-select: none;
}
.pkd-scp-ctrl-label {
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}
.pkd-scp-mirror-desc {
    font-size: 12px;
    color: #555;
    padding: 8px 12px;
    background: #f6f6f6;
    border-left: 3px solid #1976d2;
    margin: 6px 0;
    border-radius: 2px;
}
.pkd-scp-mirror-desc summary {
    cursor: pointer;
    font-weight: 600;
    color: #1976d2;
}
.pkd-scp-mirror-desc p {
    margin: 8px 0 0;
    line-height: 1.6;
}
.pkd-scp-search-box {
    margin: 12px 0;
    padding: 12px 14px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
}
@media (max-width: 560px) {
    .pkd-scp-search-box {
        padding: 10px 8px;
    }
}
.pkd-scp-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #1976d2;
    margin: 0 0 4px;
}
.pkd-scp-search-note {
    font-size: 12px;
    color: #555;
    margin: 0 0 10px;
    line-height: 1.5;
}
/* --- IV 入力ゲージ (タップで 0-15 を選択・16 セル 1 列固定) --- */
.pkd-scp-iv-gauges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.pkd-scp-iv-gauge {
    border: 1px solid #d0d7e1;
    border-radius: 6px;
    background: #fafbfd;
    padding: 6px 6px 7px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
.pkd-scp-iv-gauge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.pkd-scp-iv-gauge-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}
.pkd-scp-iv-gauge-value {
    font-size: 16px;
    font-weight: 700;
    color: #ef6c00;
    min-width: 24px;
    text-align: right;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.pkd-scp-iv-gauge-track {
    display: flex;
    flex-wrap: nowrap;   /* 絶対に改行しない */
    gap: 1px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}
.pkd-scp-iv-gauge-track:focus-visible {
    box-shadow: 0 0 0 2px rgba(239, 108, 0, 0.35);
    border-radius: 3px;
}
.pkd-scp-iv-gauge-cell {
    flex: 1 1 0;            /* 16 セル均等割り */
    min-width: 0;           /* flex 子の最小幅制限を外す */
    width: 0;               /* 初期幅 0 にして flex-basis に従わせる */
    height: 24px;
    padding: 0;
    margin: 0;
    font-size: 0;           /* 保険: 中に文字があっても表示しない */
    line-height: 0;
    color: transparent;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.1s linear, border-color 0.1s linear;
}
.pkd-scp-iv-gauge-cell:hover {
    background: #fff3e0;
    border-color: #ffb74d;
}
.pkd-scp-iv-gauge-cell--filled {
    background: #ff9800;   /* オレンジ塗り */
    border-color: #f57c00;
}
.pkd-scp-iv-gauge-cell--filled:hover {
    background: #fb8c00;
    border-color: #ef6c00;
}
.pkd-scp-iv-gauge-cell--active {
    border-color: #e65100;
    box-shadow: inset 0 0 0 1px #e65100;
}
/* IV 15 (最強個体) のときはピンク塗りに切替 */
.pkd-scp-iv-gauge-cell.pkd-scp-iv-gauge-cell--pink {
    background: #ec407a;
    border-color: #d81b60;
}
.pkd-scp-iv-gauge-cell.pkd-scp-iv-gauge-cell--pink:hover {
    background: #e91e63;
    border-color: #c2185b;
}
/* 5 / 10 番目のセル後ろに目盛り縦線を描画 (長めに・目立つように) */
.pkd-scp-iv-gauge-cell[data-val="5"],
.pkd-scp-iv-gauge-cell[data-val="10"] {
    margin-right: 7px;
    position: relative;
}
.pkd-scp-iv-gauge-cell[data-val="5"]::after,
.pkd-scp-iv-gauge-cell[data-val="10"]::after {
    content: "";
    position: absolute;
    top: -7px;
    bottom: -7px;
    right: -5px;
    width: 3px;
    background: #333;
    pointer-events: none;
    border-radius: 1.5px;
}
@media (max-width: 560px) {
    .pkd-scp-iv-gauge {
        padding: 5px 4px 6px;
    }
    .pkd-scp-iv-gauge-track {
        gap: 1px;
    }
    .pkd-scp-iv-gauge-cell {
        height: 22px;
        border-radius: 2px;
    }
    .pkd-scp-iv-gauge-value {
        font-size: 16px;
    }
}
.pkd-scp-iv-result-wrap {
    margin-top: 4px;
}
.pkd-scp-iv-result-table {
    border-collapse: collapse;
    font-size: 13px;
}
.pkd-scp-iv-result-table th,
.pkd-scp-iv-result-table td {
    border: 1px solid #ccc;
    padding: 6px 12px;
    text-align: center;
    background: #fff;
}
.pkd-scp-iv-result-table th {
    background: #eef3f9;
    font-weight: 600;
    color: #333;
    min-width: 72px;
}
.pkd-scp-iv-result-table tr:first-child th {
    background: #1976d2;
    color: #fff;
}
.pkd-scp-iv-result-table tr:first-child th:first-child {
    background: #eef3f9;
    color: #333;
}
.pkd-scp-iv-result-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}
.pkd-scp-mirror-note {
    font-size: 11px;
    color: #666;
    margin: 6px 0 0;
    line-height: 1.5;
}
.pkd-scp-table tbody tr.pkd-scp-search-sep td {
    text-align: center;
    background: #eef3f9;
    color: #1976d2;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
}
.pkd-scp-table tbody tr.pkd-scp-search-hit,
.pkd-scp-table tbody tr.pkd-scp-search-hit:nth-child(even) {
    background: #fff4e0;
}
.pkd-scp-table th.pkd-scp-th-sortable {
    cursor: pointer;
    user-select: none;
}
.pkd-scp-table th.pkd-scp-th-sortable:hover {
    background: #e4ecf5;
}
.pkd-scp-table th.pkd-scp-th-sorted {
    background: #1976d2;
    color: #fff;
}
.pkd-scp-sort-arrow {
    font-size: 10px;
    margin-left: 2px;
}
.pkd-scp-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
    -webkit-overflow-scrolling: touch;
}
.pkd-scp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 560px;
}
.pkd-scp-table th,
.pkd-scp-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
    white-space: nowrap;
}
.pkd-scp-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}
.pkd-scp-table th:first-child,
.pkd-scp-table td:first-child,
.pkd-scp-table th:last-child,
.pkd-scp-table td:last-child {
    text-align: center;
}
.pkd-scp-table tbody tr:nth-child(even) {
    background: #fafafa;
}
.pkd-scp-table tbody tr.pkd-scp-highlight,
.pkd-scp-table tbody tr.pkd-scp-highlight:nth-child(even) {
    background: #fff4e0;
}
.pkd-scp-note {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
}
@media (max-width: 640px) {
    .pkd-scp-league-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    .pkd-scp-table {
        font-size: 12px;
    }
    .pkd-scp-table th,
    .pkd-scp-table td {
        padding: 5px 6px;
    }
}
