.rtp-hist {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    align-items: end;
    min-height: 168px;
}

.rtp-hist__col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
}

.rtp-hist__bar {
    position: relative;
    background: var(--pd-accent-tint);
    border: 1px solid var(--pd-accent-border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 4px;
}

.rtp-hist__n {
    position: absolute;
    top: -21px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pd-text-body);
    font-variant-numeric: tabular-nums;
}

.rtp-hist__lab {
    text-align: center;
    font-size: 11.5px;
    color: var(--pd-text-muted);
    font-variant-numeric: tabular-nums;
}

.rtp-hist__bar--p0 { height: 3px; background: var(--pd-bg-track); border-color: var(--pd-border); }

.rtp-hist__bar--p5 { height: 5%; }

.rtp-hist__bar--p10 { height: 10%; }

.rtp-hist__bar--p15 { height: 15%; }

.rtp-hist__bar--p20 { height: 20%; }

.rtp-hist__bar--p25 { height: 25%; }

.rtp-hist__bar--p30 { height: 30%; }

.rtp-hist__bar--p35 { height: 35%; }

.rtp-hist__bar--p40 { height: 40%; }

.rtp-hist__bar--p45 { height: 45%; }

.rtp-hist__bar--p50 { height: 50%; }

.rtp-hist__bar--p55 { height: 55%; }

.rtp-hist__bar--p60 { height: 60%; }

.rtp-hist__bar--p65 { height: 65%; }

.rtp-hist__bar--p70 { height: 70%; }

.rtp-hist__bar--p75 { height: 75%; }

.rtp-hist__bar--p80 { height: 80%; }

.rtp-hist__bar--p85 { height: 85%; }

.rtp-hist__bar--p90 { height: 90%; }

.rtp-hist__bar--p95 { height: 95%; }

.rtp-hist__bar--p100 { height: 100%; }

.rtp-x {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rtp-x__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rtp-x__item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid var(--pd-border-soft);
}

.rtp-x__item:last-child {
    border-bottom: 0;
}

.rtp-x__name {
    font-size: 13.5px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rtp-x__cat {
    grid-column: 1;
    font-size: 11px;
    color: var(--pd-text-ghost);
}

.rtp-x__val {
    grid-row: 1;
    grid-column: 2;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--pd-text-h);
    font-variant-numeric: tabular-nums;
}

.rtp-multi {
    padding: 20px 24px;
    background: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    border-left: 3px solid var(--pd-accent);
    border-radius: var(--radius-lg);
}

.rtp-multi__lede {
    margin: 0 0 14px;
    max-width: 82ch;
    font-size: 14.5px;
    color: var(--pd-text-body);
}

.rtp-multi__lede strong {
    color: var(--pd-text-h);
}

.rtp-varstat {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rtp-varstat__item {
    padding: 5px 12px;
    border: 1px solid var(--pd-border);
    border-radius: 999px;
    background: var(--pd-bg-inset);
    font-size: 12.5px;
    color: var(--pd-text-sec);
}

.rtp-varstat__item b {
    color: var(--pd-text-h);
    font-variant-numeric: tabular-nums;
}

.rtp-api__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rtp-api__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 9px;
    padding: 16px 18px;
    background: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--radius-lg);
}

.rtp-api__card--cta {
    justify-content: center;
    background: var(--pd-accent-tint);
    border-color: var(--pd-accent-border);
}

.rtp-api__kind {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--pd-text-muted);
}

.rtp-code {
    margin: 0;
    padding: 11px 13px;
    background-color: var(--pd-bg-inset);
    background-image:
        linear-gradient(to left, var(--pd-bg-inset) 30%, rgba(255, 255, 255, 0)),
        radial-gradient(farthest-side at 100% 50%, var(--rtp-scroll-shadow), rgba(255, 255, 255, 0));
    background-position: right center, right center;
    background-repeat: no-repeat;
    background-size: 28px 100%, 18px 100%;
    background-attachment: local, scroll;
    border: 1px solid var(--pd-border-soft);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.rtp-code code {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    color: var(--pd-text-body);
    white-space: pre;
}

.rtp-api__note {
    margin: 0;
    font-size: 12.5px;
    color: var(--pd-text-muted);
}

.rtp-api__note code {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--pd-text-sec);
}

.rtp-api__note--warn {
    color: var(--color-warning);
}

.rtp-method {
    padding: 20px 24px;
    background: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--radius-lg);
}

.rtp-method__dl {
    margin: 10px 0 0;
}

.rtp-method__row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    padding: 11px 0;
    border-top: 1px solid var(--pd-border-soft);
}

.rtp-method__row dt {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pd-text-h);
}

.rtp-method__row dd {
    margin: 0;
    max-width: 78ch;
    font-size: 13.5px;
    color: var(--pd-text-sec);
}

.rtp-why__h3 {
    margin: 22px 0 8px;
    padding-top: 18px;
    border-top: 1px solid var(--pd-border-soft);
    font-size: 13px;
    color: var(--pd-text-h);
    text-transform: none;
    letter-spacing: 0;
}

.rtp-why__list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.rtp-why__item {
    display: grid;
    grid-template-columns: minmax(140px, auto) 68px 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 10px 12px;
    background: var(--pd-bg-inset);
    border-radius: var(--radius-md);
}

.rtp-why__game {
    font-size: 13.5px;
    font-weight: 550;
}

.rtp-why__rtp {
    font-size: 13.5px;
    font-weight: 650;
    color: var(--pd-text-h);
    font-variant-numeric: tabular-nums;
}

.rtp-why__note {
    font-size: 13px;
    color: var(--pd-text-sec);
    font-style: italic;
}

.rtp-wm__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
}

.rtp-wm__card {
    min-width: 0;
    padding: 16px 18px;
    background: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--radius-lg);
}

.rtp-wm__card .rtp-h3 {
    margin-bottom: 10px;
}

.rtp-wm__list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--pd-text-sec);
}

.rtp-wm__list li {
    margin-bottom: 5px;
}

.rtp-wm__list b {
    color: var(--pd-text-h);
    font-weight: 600;
}

.rtp-faq__list {
    display: grid;
    gap: 8px;
}

.rtp-faq__i {
    padding: 12px 18px;
    background: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--radius-lg);
}

.rtp-faq__q {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--pd-text-h);
    cursor: pointer;
    list-style: none;
}

.rtp-faq__q::-webkit-details-marker {
    display: none;
}

.rtp-faq__q::before {
    content: '+';
    display: inline-block;
    width: 16px;
    color: var(--pd-accent-text);
    font-weight: 700;
}

.rtp-faq__i[open] .rtp-faq__q::before {
    content: '\2212';
}

.rtp-faq__a {
    margin: 8px 0 0 16px;
    max-width: 82ch;
    font-size: 13.5px;
    color: var(--pd-text-sec);
}
