/* 13-counter.css — Counter Finder (WIP heuristik). Mobile-first. */

.cf-wrap { max-width: 960px; margin: 0 auto; padding: 8px 0 40px; }
.cf-head { text-align: center; margin-bottom: 18px; }
.cf-title { font-size: 1.9rem; color: var(--accent-secondary); margin: 0 0 6px; }
.cf-sub { color: var(--text-soft); margin: 0 auto 12px; max-width: 560px; }
.cf-about {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(95, 211, 240, 0.07);
    border: 1px solid var(--border-ice);
    border-radius: 12px;
    text-align: left;
    overflow: hidden;
    transition: background 0.2s ease;
}
.cf-about[open] { background: rgba(95, 211, 240, 0.1); }
.cf-about-sum {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    font-size: 0.86rem;
    color: var(--text-main);
    line-height: 1.5;
}
.cf-about-sum::-webkit-details-marker { display: none; }
.cf-about-ic { flex: none; }
.cf-about-lead { flex: 1; }
.cf-about-chev { flex: none; color: var(--text-soft); transition: transform 0.2s ease; }
.cf-about[open] .cf-about-chev { transform: rotate(180deg); }
.cf-about-body {
    padding: 4px 16px 14px;
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.6;
    border-top: 1px solid var(--border-ice);
}
.cf-about-body p { margin: 10px 0; }
.cf-about-body ul { margin: 10px 0; padding-left: 18px; }
.cf-about-body li { margin: 4px 0; }
.cf-about-body b { color: var(--text-main); }
.cf-about-note {
    background: rgba(243, 210, 59, 0.1);
    border-left: 3px solid rgba(243, 210, 59, 0.5);
    padding: 8px 12px;
    border-radius: 6px;
}

.cf-modes { display: flex; gap: 8px; justify-content: center; margin: 18px 0 14px; flex-wrap: wrap; }
.cf-mode {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit; font-weight: 600; cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cf-mode:hover { color: var(--text-main); border-color: rgba(255, 255, 255, 0.3); }
.cf-mode.on {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #04121f; border-color: transparent;
}

.cf-input { margin-bottom: 22px; }
.cf-slots { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; min-height: 10px; }
.cf-slot {
    position: relative;
    width: 116px; padding: 10px 8px;
    border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cf-slot.filled { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.cf-slot.empty {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-soft); justify-content: center; min-height: 120px;
    font-size: 0.8rem; text-align: center;
}
.cf-slot-hint { padding: 0 6px; }
.cf-slot-spr { width: 72px; height: 72px; object-fit: contain; }
.cf-slot-name { font-size: 0.82rem; font-weight: 700; color: var(--text-main); text-align: center; }
.cf-slot-types { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.cf-tt {
    font-size: 0.6rem; font-weight: 800; color: #fff;
    padding: 1px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.3px;
}
.cf-slot-del {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px; border-radius: 50%;
    border: none; background: rgba(0, 0, 0, 0.45); color: #fff;
    cursor: pointer; font-size: 0.7rem; line-height: 1;
}
.cf-slot-del:hover { background: #d9534f; }

.cf-search {
    display: block; width: 100%; max-width: 480px; margin: 0 auto 14px;
    padding: 11px 16px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 36, 56, 0.6); color: var(--text-main);
    font: inherit;
}
.cf-search:focus { outline: none; border-color: var(--accent-primary); }

.cf-pick-lbl { font-size: 0.8rem; color: var(--text-soft); font-weight: 700; margin: 6px 0; text-align: center; }
.cf-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.cf-pick-btn, .cf-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px; padding: 8px 4px;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    cursor: pointer; text-decoration: none; color: var(--text-main);
    font: inherit; transition: transform 0.15s ease, border-color 0.15s ease;
}
.cf-pick-btn:hover, .cf-card:hover { transform: translateY(-2px); border-color: var(--accent-primary); }
.cf-pick-btn img { width: 56px; height: 56px; object-fit: contain; }
.cf-pick-btn span { font-size: 0.72rem; text-align: center; }
.cf-pick-rank, .cf-card-rank {
    position: absolute; top: 4px; left: 4px;
    font-size: 0.6rem; font-weight: 800; color: var(--accent-secondary);
    background: rgba(0, 0, 0, 0.4); padding: 1px 5px; border-radius: 999px;
}

.cf-result { margin-top: 10px; }
.cf-result-head { text-align: center; margin-bottom: 14px; }
.cf-result-title { font-size: 1.3rem; color: var(--accent-secondary); margin: 0 0 4px; }
.cf-result-note { color: var(--text-soft); font-size: 0.86rem; margin: 0 auto; max-width: 560px; }
.cf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.cf-card-spr { width: 76px; height: 76px; object-fit: contain; }
.cf-card-name { font-size: 0.82rem; font-weight: 700; text-align: center; }
.cf-card-types { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.cf-card-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 3px; }
.cf-card-wr { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.cf-card-meta { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px; justify-content: center; margin-top: 4px; white-space: nowrap; }
.cf-card-dmg { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.cf-dmg {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.64rem; font-weight: 800;
    padding: 2px 8px; border-radius: 999px;
    white-space: nowrap;
}
.cf-dmg-hi { background: rgba(242, 139, 130, 0.2); color: #f28b82; }
.cf-dmg-mid { background: rgba(255, 255, 255, 0.06); color: var(--text-soft); }
.cf-dmg-lo { background: rgba(120, 122, 220, 0.18); color: #b6b4f2; }
.cf-wr {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.64rem; font-weight: 800;
    padding: 2px 8px; border-radius: 999px;
    background: rgba(95, 211, 240, 0.16); color: var(--accent-secondary);
    border: 1px solid var(--border-ice);
    white-space: nowrap;
}
.cf-wr-n { font-style: normal; font-weight: 700; opacity: 0.7; font-size: 0.58rem; }
.cf-wr-off { background: rgba(255, 255, 255, 0.05); color: var(--text-soft); border-color: rgba(255, 255, 255, 0.12); }
.cf-cf { font-size: 0.58rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.3px; }
.cf-cf-very-low { background: rgba(255, 255, 255, 0.06); color: var(--text-soft); }
.cf-cf-low { background: rgba(120, 122, 220, 0.2); color: #b6b4f2; }
.cf-cf-medium { background: rgba(77, 144, 213, 0.2); color: #86bff0; }
.cf-cf-high { background: rgba(99, 187, 91, 0.2); color: #8fe08a; }
.cf-cf-very-high { background: rgba(243, 210, 59, 0.22); color: #f6d94b; }
.cf-delta {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.62rem; font-weight: 800;
    padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.cf-delta-up { background: rgba(99, 187, 91, 0.2); color: #8fe08a; }
.cf-delta-down { background: rgba(242, 139, 130, 0.2); color: #f28b82; }
.cf-delta-flat { background: rgba(255, 255, 255, 0.06); color: var(--text-soft); }
.cf-b { font-size: 0.62rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cf-b-off { background: rgba(99, 187, 91, 0.2); color: #8fe08a; }
.cf-b-def { background: rgba(77, 144, 213, 0.2); color: #86bff0; }
.cf-b-xeff { background: rgba(243, 210, 59, 0.22); color: #f6d94b; }
.cf-b-eff { background: rgba(99, 187, 91, 0.2); color: #8fe08a; }
.cf-b-nve { background: rgba(77, 144, 213, 0.2); color: #86bff0; }
.cf-b-mie { background: rgba(120, 122, 220, 0.22); color: #b6b4f2; }
.cf-b-imm { background: rgba(163, 120, 200, 0.22); color: #d6aef0; }
.cf-empty { grid-column: 1 / -1; text-align: center; color: var(--text-soft); padding: 24px; }

/* Legend arti label efektivitas */
.cf-legend {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px 12px; justify-content: center;
    max-width: 700px; margin: 12px auto 0;
    font-size: 0.72rem; color: var(--text-soft);
}
.cf-leg-t { font-weight: 700; color: var(--text-main); }
.cf-leg-i { display: inline-flex; align-items: center; gap: 5px; }

/* Seksi hasil: meta vs luar meta */
.cf-secs { display: flex; flex-direction: column; gap: 22px; }
.cf-sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.cf-sec-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cf-sec-dot.meta { background: var(--accent-primary); box-shadow: 0 0 8px rgba(95, 211, 240, 0.6); }
.cf-sec-dot.nonmeta { background: #b6b4f2; box-shadow: 0 0 8px rgba(150, 148, 230, 0.5); }
.cf-sec-title { font-size: 1.02rem; color: var(--text-main); margin: 0; font-weight: 800; }
.cf-sec-cnt {
    font-size: 0.64rem; font-weight: 800; color: var(--accent-secondary);
    background: rgba(95, 211, 240, 0.14); border: 1px solid var(--border-ice);
    padding: 1px 8px; border-radius: 999px;
}
.cf-sec-sub { color: var(--text-soft); font-size: 0.78rem; margin: 0 0 10px; }

@media (max-width: 520px) {
    .cf-title { font-size: 1.5rem; }
    .cf-slot { width: 104px; }
    .cf-cards { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}

/* Legenda label dilipat agar area hasil tetap rapi (pola panel "Cara kerja") */
.cf-legwrap {
    max-width: 640px;
    margin: 12px auto 0;
    background: rgba(95, 211, 240, 0.07);
    border: 1px solid var(--border-ice);
    border-radius: 12px;
    text-align: left;
    overflow: hidden;
    transition: background 0.2s ease;
}
.cf-legwrap[open] { background: rgba(95, 211, 240, 0.1); }
.cf-legwrap-sum {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
    list-style: none;
    font-size: 0.82rem;
    color: var(--text-main);
}
.cf-legwrap-sum::-webkit-details-marker { display: none; }
.cf-legwrap-ic { flex: none; }
.cf-legwrap-lead { flex: 1; font-weight: 700; }
.cf-legwrap-chev { flex: none; color: var(--text-soft); transition: transform 0.2s ease; }
.cf-legwrap[open] .cf-legwrap-chev { transform: rotate(180deg); }
.cf-legwrap-body {
    padding: 4px 14px 14px;
    border-top: 1px solid var(--border-ice);
}

/* Bar melayang saat scroll + tombol ke atas (acuan halaman Teams) */
.cf-sticky {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 9;
    background: rgba(10, 26, 44, 0.82);
    backdrop-filter: blur(14px);
    -webkit-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;
}
.cf-sticky.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cf-sticky-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.cf-sticky-ic { flex: 0 0 auto; font-size: 0.95rem; opacity: 0.85; }
.cf-sticky-mons { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.cf-sticky-spr { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.cf-sticky-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--accent-secondary);
}
.cf-sticky-top {
    flex: 0 0 auto;
    margin-left: auto;
    cursor: pointer;
    border: 1px solid var(--border-ice);
    background: rgba(95, 211, 240, 0.14);
    color: var(--accent-secondary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cf-sticky-top:hover {
    background: var(--accent-primary);
    color: #04121f;
    border-color: var(--accent-primary);
}

@media (max-width: 640px) {
    .cf-sticky-ic { display: none; }
    .cf-sticky-spr { width: 26px; height: 26px; }
}