/* ===== Tier List & Usage ===== */
.format-switch {
    display: flex;
    gap: 4px;
    margin: 8px auto 4px;
    padding: 4px;
    width: fit-content;
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    border-radius: 999px;
}

.switch-btn {
    text-decoration: none;
    padding: 7px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--accent-secondary);
    background: transparent;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.switch-btn:hover {
    color: var(--accent-primary);
}

.switch-btn.active {
    background: var(--accent-primary);
    color: #04121f;
    border-color: var(--accent-primary);
}

.tier-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    overflow: hidden;
}

.tier-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 58px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    letter-spacing: 1px;
    background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.16));
}

.tier-badge-l {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.tier-badge-n {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

.tier-badge-S { background-color: #e0567a; }
.tier-badge-A { background-color: #e8934a; }
.tier-badge-B { background-color: #4FB0D9; }
.tier-badge-C { background-color: #7a94ad; }

.tier-row-S { border-left: 3px solid #e0567a; background-image: linear-gradient(90deg, rgba(224, 86, 122, 0.10), transparent 34%); }
.tier-row-A { border-left: 3px solid #e8934a; background-image: linear-gradient(90deg, rgba(232, 147, 74, 0.10), transparent 34%); }
.tier-row-B { border-left: 3px solid #4FB0D9; background-image: linear-gradient(90deg, rgba(79, 176, 217, 0.10), transparent 34%); }
.tier-row-C { border-left: 3px solid #7a94ad; background-image: linear-gradient(90deg, rgba(122, 148, 173, 0.10), transparent 34%); }

.tier-mons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 10px;
    padding: 12px;
    flex: 1;
}

.tier-mon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    padding: 26px 8px 10px;
    min-height: 150px;
    color: var(--text-main);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tier-mon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -10%, rgba(127, 224, 255, 0.22), transparent 70%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.tier-mon:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px rgba(95, 211, 240, 0.2);
}

.tier-mon:hover::before {
    opacity: 1;
}

.tier-mon:hover .tier-sprite {
    transform: scale(1.12);
}

.tier-mon:hover .tier-sprite-wrap {
    box-shadow: 0 0 22px rgba(127, 224, 255, 0.35);
}

.tier-corner {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tier-rank-badge {
    background: linear-gradient(135deg, var(--accent-primary), #2b8fc0);
    color: #04121f;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 2px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(95, 211, 240, 0.45);
}

.tier-rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffe27a, #e6a819);
    color: #3a2a00;
    box-shadow: 0 2px 12px rgba(240, 180, 41, 0.55);
}

.tier-rank-badge.rank-2 {
    background: linear-gradient(135deg, #eaeef2, #a9b6c4);
    color: #1e2733;
    box-shadow: 0 2px 12px rgba(180, 195, 210, 0.5);
}

.tier-rank-badge.rank-3 {
    background: linear-gradient(135deg, #e9a06b, #b9702f);
    color: #2a1500;
    box-shadow: 0 2px 12px rgba(185, 112, 47, 0.5);
}

/* Pergerakan peringkat pada ice-card */
.tier-move {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.2px;
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.move-up {
    background: linear-gradient(135deg, #4fe08b, #2fae66);
    color: #032414;
}

.move-down {
    background: linear-gradient(135deg, #ff7a90, #d84f66);
    color: #2a0710;
}

.move-new {
    background: linear-gradient(135deg, #ffd76a, #f0b429);
    color: #3a2a00;
}

.move-tier-up,
.move-tier-down {
    padding: 2px 6px;
    font-size: 0.72rem;
}

.move-tier-up {
    background: rgba(79, 224, 139, 0.18);
    color: #7beaa6;
    box-shadow: 0 0 0 1px rgba(79, 224, 139, 0.5) inset, 0 0 10px rgba(79, 224, 139, 0.35);
}

.move-tier-down {
    background: rgba(255, 122, 144, 0.18);
    color: #ff9fb0;
    box-shadow: 0 0 0 1px rgba(255, 122, 144, 0.5) inset, 0 0 10px rgba(255, 122, 144, 0.3);
}

.mega-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #b06bff, #6a2bd0);
    color: #fff;
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 999px;
    z-index: 2;
}

.tier-sprite-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 224, 255, 0.16), transparent 70%);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tier-mon-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-secondary);
    z-index: 1;
}

.tier-mon-move {
    font-size: 0.74rem;
    color: var(--text-soft);
    z-index: 1;
}

.tier-dex {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.5px;
    z-index: 1;
}

.tier-types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 2px;
    z-index: 1;
}

.type-badge {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.type-normal   { background: #9099a1; }
.type-fire     { background: #ff9d55; }
.type-water    { background: #4d90d5; }
.type-electric { background: #f4d23c; color: #3a2f00; text-shadow: none; }
.type-grass    { background: #63bc5a; }
.type-ice      { background: #73cec0; color: #04333b; text-shadow: none; }
.type-fighting { background: #ce4069; }
.type-poison   { background: #ab6ac8; }
.type-ground   { background: #d97845; }
.type-flying   { background: #8fa9de; }
.type-psychic  { background: #fa7179; }
.type-bug      { background: #90c12c; }
.type-rock     { background: #c5b78c; color: #2e2718; text-shadow: none; }
.type-ghost    { background: #5269ad; }
.type-dragon   { background: #0b6dc3; }
.type-dark     { background: #5a5366; }
.type-steel    { background: #5a8ea1; }
.type-fairy    { background: #ec8fe6; }

/* Sprite tipe bulat (Scarlet/Violet, sama dengan Teams). */
.tier-types .type-spr,
.more-types .type-spr {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.more-types .type-spr {
    width: 22px;
    height: 22px;
}

.info-table td a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Detail Pokemon */
.type-chip {
    display: inline-block;
    background: rgba(79, 176, 217, 0.18);
    color: var(--accent-secondary);
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 2px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 8px;
}

.detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    padding: 18px 20px;
}

.detail-card h3 {
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.detail-card ul {
    list-style: none;
    margin: 0;
}

.detail-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-ice);
}

.detail-card li:last-child {
    border-bottom: none;
}

.pct {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Sprite Pokemon */
.tier-sprite {
    width: 56px;
    height: 56px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
    transition: transform 0.18s ease;
}

.cell-mon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.row-sprite {
    width: 28px;
    height: 28px;
    object-fit: contain;
    image-rendering: pixelated;
}

.detail-header {
    padding: 26px 20px 6px;
}

.detail-sprite {
    width: 96px;
    height: 96px;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
    margin: 0 auto 2px;
}

.detail-header h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.detail-dex {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 4px 0 6px;
}

.detail-format {
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* Bar sticky judul Pokemon saat scroll */
.poke-sticky {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 9;
    background: rgba(10, 26, 44, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-ice);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    pointer-events: none;
}

.poke-sticky.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.poke-sticky-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.poke-sticky-spr {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
    flex: none;
}

.poke-sticky-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--accent-secondary);
}

.poke-sticky-dex {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-soft);
}

.poke-sticky-types {
    display: inline-flex;
    gap: 4px;
}

.poke-sticky-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

@media (max-width: 640px) {
    .poke-sticky-dex,
    .poke-sticky-types {
        display: none;
    }
}

/* Sprite held item */
.item-sprite {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    image-rendering: pixelated;
}

.cell-item,
.item-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Ringkasan & Form terkait (detail Pokemon) */
.summary-table th {
    width: 42%;
    white-space: nowrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 6px 0 18px;
}

.form-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    padding: 16px 10px 12px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px rgba(95, 211, 240, 0.2);
}

.form-sprite {
    width: 76px;
    height: 76px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.form-name {
    font-weight: 700;
    color: var(--accent-secondary);
}

.form-label {
    font-size: 0.74rem;
    color: var(--text-soft);
}

.form-types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 2px;
}

.form-mega {
    font-style: italic;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c99bff, #7a3ff0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: -2px;
}

/* Bar penggunaan (move / item / ability) */
.detail-card.usage li {
    position: relative;
    isolation: isolate;
}

.detail-card.usage li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--w, 0%);
    background: linear-gradient(90deg, rgba(95, 211, 240, 0.22), rgba(95, 211, 240, 0.04));
    border-radius: 6px;
    z-index: -1;
}

.detail-card .u-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.u-name .type-badge {
    flex: none;
}

.move-name {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.25;
}

.detail-card.usage .move-type-col {
    width: 24px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.move-type-ico {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* Sprite teammate */
.mate-sprite {
    width: 26px;
    height: 26px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Base stats sebagai bar berwarna */
.stats-card .stat-list {
    list-style: none;
    margin: 0;
}

.stats-card .stat-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border: none;
}

.stats-card .s-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-soft);
    width: 38px;
    flex: none;
}

.stats-card .s-track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(127, 224, 255, 0.1);
    overflow: hidden;
}

.stats-card .s-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--accent-primary);
}

.stats-card .s-val {
    width: 34px;
    text-align: right;
    font-weight: 800;
    color: var(--accent-secondary);
    flex: none;
}

.stats-card li.sb-low .s-fill {
    background: linear-gradient(90deg, #e0567a, #b83d5c);
}

.stats-card li.sb-mid .s-fill {
    background: linear-gradient(90deg, #e8934a, #d1732a);
}

.stats-card li.sb-high .s-fill {
    background: linear-gradient(90deg, #63bc5a, #3f9a49);
}

.stats-card li.sb-max .s-fill {
    background: linear-gradient(90deg, #5fd3f0, #2b8fc0);
}

/* Efek nature (+/- stat) */
.detail-card .nat-name {
    flex-wrap: wrap;
    gap: 6px;
}

.nat-eff {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nat-up {
    color: #7bd88f;
}

.nat-down {
    color: #e0708a;
}

/* EV spread berdampingan dengan form terkait */
.detail-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
    margin-top: 6px;
}

.detail-lower h2 {
    margin-bottom: 12px;
}

.spread-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spread-head,
.spread-row {
    display: grid;
    grid-template-columns: 46px repeat(6, 1fr);
    gap: 5px;
    align-items: center;
}

.spread-head {
    padding: 0 4px 2px;
}

.spread-head .spread-pct-h,
.spread-head .ev-h {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-soft);
    text-align: center;
    letter-spacing: 0.3px;
}

.spread-row {
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    border-radius: 10px;
    padding: 7px 4px;
}

.spread-pct {
    font-weight: 800;
    color: var(--accent-primary);
    font-size: 0.8rem;
    text-align: center;
}

.ev {
    font-size: 0.66rem;
    font-weight: 800;
    padding: 3px 0;
    border-radius: 6px;
    color: #04121f;
    text-align: center;
}

.ev.off {
    background: transparent;
    color: var(--text-soft);
    box-shadow: 0 0 0 1px var(--border-ice) inset;
    opacity: 0.55;
}

.ev-hp { background: #7bd88f; }
.ev-atk { background: #f0975a; }
.ev-def { background: #f4d23c; }
.ev-spa { background: #7aa7f0; }
.ev-spd { background: #73cec0; }
.ev-spe { background: #ec8fe6; }

@media (max-width: 640px) {
    .detail-lower {
        grid-template-columns: 1fr;
    }
}

/* ===== More Pokemon ===== */
.more-section {
    max-width: 1000px;
}

.more-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    padding: 16px 20px;
    color: var(--accent-secondary);
    font-size: 1.25rem;
    font-weight: 800;
    font-family: inherit;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.more-toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(127, 224, 255, 0.08);
}

.more-toggle-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #04121f;
    background: var(--accent-primary);
    padding: 2px 10px;
    border-radius: 999px;
}

.more-toggle-arrow {
    margin-left: auto;
    font-size: 1rem;
    color: var(--text-soft);
    transition: transform 0.2s ease;
}

.more-toggle.open .more-toggle-arrow {
    transform: rotate(180deg);
}

.more-panel {
    margin-top: 16px;
    animation: moreFade 0.25s ease;
}

@keyframes moreFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.more-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.more-search {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-ice);
    background: rgba(8, 21, 36, 0.55);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.more-search::placeholder {
    color: var(--text-soft);
}

.more-search:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(95, 211, 240, 0.15);
}

.more-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 7px;
}

.tfilter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-ice);
    background: var(--card-bg);
    color: var(--accent-secondary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tfilter:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.tfilter.active {
    background: var(--accent-primary);
    color: #04121f;
    border-color: var(--accent-primary);
}

.tfilter-all {
    padding: 5px 16px;
}

.tfilter-ico {
    padding: 4px;
}

.tfilter-spr {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: none;
}

.more-count {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.more-mon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-ice);
    border-radius: 16px;
    padding: 16px 10px 12px;
    color: var(--text-main);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.more-mon:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 26px rgba(95, 211, 240, 0.18);
}

.more-sprite-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 224, 255, 0.16), transparent 70%);
}

.more-stat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    padding: 2px 7px;
    background: linear-gradient(135deg, var(--accent-primary), #2b8fc0);
    color: #04121f;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    z-index: 2;
}

.more-sprite {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.more-dex {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.5px;
}

.more-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    line-height: 1.2;
}

.more-types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.more-modes {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.more-mode {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-ice);
    background: var(--card-bg);
    color: var(--accent-secondary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 12px;
    border-radius: 10px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.more-mode:hover {
    border-color: var(--accent-primary);
}

.more-mode.active {
    background: var(--accent-primary);
    color: #04121f;
    border-color: var(--accent-primary);
}

.more-mode.sel {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.more-mode-chip {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #04121f;
    background: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.more-subfilter {
    margin-bottom: 12px;
}

.more-statbtns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.statbtn {
    --sc: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    border: 1px solid var(--border-ice);
    background: var(--card-bg);
    color: var(--accent-secondary);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.statbtn::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sc);
    box-shadow: 0 0 6px var(--sc);
    flex: none;
}

.statbtn:hover {
    border-color: var(--sc);
    transform: translateY(-1px);
}

.statbtn.active {
    background: var(--sc);
    border-color: var(--sc);
    color: #04121f;
    box-shadow: 0 4px 14px -2px var(--sc);
}

.statbtn.active::before {
    background: rgba(4, 18, 31, 0.35);
    box-shadow: none;
}

.statbtn[data-stat="total"] { --sc: #5fd3f0; }
.statbtn[data-stat="hp"]    { --sc: #7bd88f; }
.statbtn[data-stat="atk"]   { --sc: #f0975a; }
.statbtn[data-stat="def"]   { --sc: #f4d23c; }
.statbtn[data-stat="spa"]   { --sc: #7aa7f0; }
.statbtn[data-stat="spd"]   { --sc: #73cec0; }
.statbtn[data-stat="spe"]   { --sc: #ec8fe6; }

.more-gens {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.genbtn {
    cursor: pointer;
    border: 1px solid var(--border-ice);
    background: linear-gradient(135deg, rgba(95, 211, 240, 0.10), rgba(127, 224, 255, 0.02));
    color: var(--accent-secondary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    padding: 6px 15px;
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.genbtn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px -4px rgba(95, 211, 240, 0.5);
}

.genbtn.active {
    background: linear-gradient(135deg, #7fe0ff, #2b8fc0);
    color: #04121f;
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(127, 224, 255, 0.6), 0 6px 18px -3px rgba(95, 211, 240, 0.6);
}

.genbtn-all {
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .more-grid {
        grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    }
}

/* ===== Bukti pemakaian di tim (cross-link halaman Pokemon) ===== */
.tim-insight {
    margin: 8px 0 20px;
}

.tim-insight h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.ti-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ti-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    color: var(--text-main);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ti-chip b {
    color: var(--accent-primary);
    font-weight: 800;
}

.ti-chip.ti-gold {
    background: rgba(255, 209, 102, 0.12);
    border-color: rgba(255, 209, 102, 0.55);
    color: #ffd166;
}

.ti-chip.ti-wr {
    background: rgba(79, 224, 139, 0.12);
    border-color: rgba(79, 224, 139, 0.5);
    color: #7beaa6;
}

.ti-note {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.75;
}

.ti-block {
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.ti-block h3 {
    color: var(--accent-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}

/* Partner tersering */
.ti-partners {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.ti-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    padding: 12px 6px 10px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ti-partner:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 24px rgba(95, 211, 240, 0.18);
}

.ti-partner-spr {
    width: 56px;
    height: 56px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.ti-partner-spr.spr-x {
    display: none;
}

.ti-partner-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-secondary);
    line-height: 1.2;
}

.ti-partner-n {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent-primary);
}

/* Daftar tim (juara & pemakai) */
.ti-teams {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ti-team {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-ice);
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ti-team:hover {
    border-color: var(--accent-primary);
    background: rgba(127, 224, 255, 0.07);
}

.ti-medal {
    font-size: 1.15rem;
    flex: none;
}

.ti-place {
    flex: none;
    min-width: 34px;
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #04121f;
    background: var(--accent-primary);
    border-radius: 999px;
    padding: 3px 8px;
}

.ti-team-main {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.ti-team-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ti-team-sub {
    font-size: 0.74rem;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ti-team-wr {
    flex: none;
    font-size: 0.74rem;
    font-weight: 800;
    color: #7beaa6;
}

.ti-seeall {
    display: inline-block;
    margin-top: 4px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.ti-seeall:hover {
    text-decoration: underline;
}

/* ===== Responsif: Tier List di layar kecil (mobile) ===== */
@media (max-width: 640px) {
    .tier-row {
        flex-direction: column;
        gap: 0;
    }

    .tier-badge {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        padding: 8px 16px;
        letter-spacing: 2px;
    }

    .tier-badge-l {
        font-size: 1.15rem;
    }

    .tier-mons {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .tier-mon {
        padding: 22px 6px 10px;
        border-radius: 13px;
        gap: 3px;
        min-height: 132px;
    }

    .tier-sprite-wrap {
        width: 60px;
        height: 60px;
        margin-top: 4px;
    }

    .tier-sprite {
        width: 52px;
        height: 52px;
    }

    .tier-mon-name {
        font-size: 0.8rem;
    }

    .tier-dex {
        font-size: 0.63rem;
    }

    .tier-types {
        gap: 3px;
    }

    .tier-types .type-spr {
        width: 13px;
        height: 13px;
    }

    .tier-corner {
        top: 5px;
        left: 5px;
        gap: 3px;
    }

    .tier-rank-badge {
        font-size: 0.62rem;
        padding: 2px 7px;
    }

    .mega-badge {
        top: 5px;
        right: 5px;
        font-size: 0.52rem;
        padding: 2px 6px;
    }

    .tier-move {
        font-size: 0.56rem;
        padding: 2px 6px;
    }
}

/* ===== Responsif: Tier List di layar sangat sempit ===== */
@media (max-width: 380px) {
    .tier-mons {
        gap: 6px;
        padding: 10px;
    }

    .tier-mon {
        padding: 20px 4px 9px;
    }
}