/* ═══ Halaman RPG (Rare Log & Leaderboard) ═══ */
.rpg-hero {
    padding: 150px 0 40px;
    text-align: center;
}
.rpg-hero .pill {
    margin: 0 auto 22px;
}
.rpg-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.rpg-sub {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 640px;
    margin: 0 auto 32px;
}
.rpg-hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}
.rhs {
    text-align: center;
}
.rhs-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(120deg, #fff, var(--brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rhs-label {
    font-size: 0.84rem;
    color: var(--faint);
}

/* Leaderboards */
.lb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.lb-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition:
        border-color 0.3s var(--ease),
        transform 0.3s var(--ease);
}
.lb-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}
.lb-card-wide {
    grid-column: 1 / -1;
}
.lb-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.lb-head h3 {
    font-size: 1.06rem;
    font-weight: 600;
}
.lb-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.16), rgba(185, 140, 255, 0.12));
    border: 1px solid var(--border);
}
.lb-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: rank;
}
.lb-card-wide .lb-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}
.lb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    counter-increment: rank;
}
.lb-item .lb-rank {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
}
.lb-item:nth-child(1) .lb-rank {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #1a1200;
    border: none;
}
.lb-item:nth-child(2) .lb-rank {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #111;
    border: none;
}
.lb-item:nth-child(3) .lb-rank {
    background: linear-gradient(135deg, #f0b27a, #b06a34);
    color: #1a0d00;
    border: none;
}
.lb-item .lb-meta {
    flex: 1;
    min-width: 0;
}
.lb-item .lb-name {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-item .lb-sub {
    font-size: 0.74rem;
    color: var(--faint);
    font-family: var(--font-display);
}
.lb-item .lb-val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--accent);
    flex-shrink: 0;
    text-align: right;
}

/* Rare Fish Log */
.rare-log {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.rare-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.rare-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.rare-item.r-secret::before {
    background: #f472b6;
}
.rare-item.r-ephemeral::before {
    background: linear-gradient(180deg, #f472b6, #60a5fa);
}
.rare-item.r-unreal::before {
    background: #ef4444;
    box-shadow: 0 0 12px #ef4444;
}
.rare-badge {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.rare-body {
    flex: 1;
    min-width: 0;
}
.rare-fish {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rare-who {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 2px;
}
.rare-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 6px;
}
.rare-tag.r-secret {
    background: rgba(244, 114, 182, 0.18);
    color: #f9a8d4;
}
.rare-tag.r-ephemeral {
    background: rgba(96, 165, 250, 0.18);
    color: #93c5fd;
}
.rare-tag.r-unreal {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}
.rare-side {
    text-align: right;
    flex-shrink: 0;
}
.rare-val {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--green);
    font-size: 0.92rem;
}
.rare-time {
    font-size: 0.72rem;
    color: var(--faint);
    margin-top: 3px;
}
.rpg-empty {
    text-align: center;
    color: var(--faint);
    padding: 50px 0;
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .lb-grid {
        grid-template-columns: 1fr;
    }
    .lb-card-wide .lb-list {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .rare-log {
        grid-template-columns: 1fr;
    }
    .rpg-hero {
        padding: 120px 0 30px;
    }
    .rpg-hero-stats {
        gap: 28px;
    }
}
