.rfps-benchmarks {
    --rfps-bg: #07090f;
    --rfps-panel: #0c101a;
    --rfps-panel-soft: #111725;
    --rfps-border: rgba(255, 255, 255, 0.12);
    --rfps-border-strong: rgba(155, 123, 255, 0.72);
    --rfps-accent: #75e8be;
    --rfps-accent-2: #9b7bff;
    --rfps-text: #f5f7fb;
    --rfps-muted: rgba(245, 247, 251, 0.68);
    position: relative;
    width: 100%;
    margin: 28px 0;
    padding: clamp(16px, 2vw, 24px);
    color: var(--rfps-text);
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 8px;
    background: rgba(8, 10, 16, 0.42);
    box-shadow: none;
    overflow: hidden;
}

.rfps-benchmarks[hidden],
.rfps-benchmarks.is-empty {
    display: none;
}

.rfps-benchmarks * {
    box-sizing: border-box;
}

.rsp-single .rsp-tab-panel[data-panel="fps"] > .rfps-benchmarks,
.rsp-single .rsp-tab-panel[data-panel="fps"] > .rsp-rfps-full .rfps-benchmarks {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.rfps-shell {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.rfps-browser-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}

.rfps-heading-block {
    min-width: 0;
}

.rfps-eyebrow {
    margin: 0 0 6px;
    color: var(--rfps-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rfps-heading-block h2 {
    margin: 0;
    color: var(--rfps-text);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: 0;
}

.rfps-intro-text {
    max-width: 62ch;
    margin: 10px 0 0;
    color: var(--rfps-muted);
    font-size: 14px;
    line-height: 1.5;
}

.rfps-browser-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.rfps-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(260px, 34vw);
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--rfps-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.rfps-search span {
    width: 13px;
    height: 13px;
    border: 2px solid var(--rfps-accent);
    border-radius: 999px;
    position: relative;
    flex: 0 0 auto;
}

.rfps-search span::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: var(--rfps-accent);
    transform: rotate(45deg);
}

.rfps-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 14px;
}

.rfps-search input::placeholder {
    color: rgba(245, 247, 251, 0.5);
}

.rfps-scroll-actions {
    display: inline-flex;
    gap: 6px;
}

.rfps-scroll-button,
.rfps-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--rfps-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.rfps-scroll-button {
    width: 42px;
    padding: 0;
    font-size: 30px;
    line-height: 1;
}

.rfps-view-all {
    padding: 0 14px;
    font-size: 13px;
}

.rfps-scroll-button:hover,
.rfps-scroll-button:focus,
.rfps-view-all:hover,
.rfps-view-all:focus {
    border-color: var(--rfps-border-strong);
    background: rgba(117, 232, 190, 0.11);
    color: #fff;
}

.rfps-browser-window {
    position: relative;
    min-width: 0;
}

.rfps-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(220px, 31%, 285px);
    gap: 14px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.rfps-cards::-webkit-scrollbar {
    display: none;
}

.rfps-cards::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.rfps-cards::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

.rfps-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 360px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(155, 123, 255, 0.58);
    border-radius: 8px;
    background: rgba(9, 12, 19, 0.88);
    scroll-snap-align: start;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.rfps-card[hidden] {
    display: none;
}

.rfps-card:hover {
    transform: translateY(-2px);
    border-color: rgba(181, 148, 255, 0.9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.rfps-card.is-highlighted {
    border-color: rgba(181, 148, 255, 0.9);
}

.rfps-image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 145px;
    overflow: hidden;
    background: #151a25;
}

.rfps-image-wrap img,
.rfps-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rfps-image-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1d2636, #090c13);
}

.rfps-image-placeholder span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--rfps-border);
    border-radius: 8px;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
}

.rfps-badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.rfps-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(117, 232, 190, 0.5);
    border-radius: 8px;
    background: rgba(5, 12, 17, 0.86);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.rfps-badge-best {
    border-color: rgba(155, 123, 255, 0.62);
    background: rgba(18, 25, 46, 0.88);
}

.rfps-card-body {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 15px;
}

.rfps-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: 0;
}

.rfps-settings,
.rfps-test-label,
.rfps-fps-label,
.rfps-notes,
.rfps-version-details {
    color: var(--rfps-muted);
}

.rfps-settings {
    margin: 0 0 8px;
    font-size: 13px;
}

.rfps-test-label {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.rfps-fps-line {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
}

.rfps-fps-value {
    margin: 0 0 2px;
    color: #fff;
    font-size: clamp(30px, 2.6vw, 40px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
}

.rfps-fps-label {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rfps-trend {
    width: min(118px, 42%);
    min-width: 82px;
    opacity: 0.95;
}

.rfps-sparkline {
    width: 100%;
    height: 34px;
}

.rfps-sparkline polyline {
    fill: none;
    stroke: var(--rfps-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rfps-notes {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--rfps-border);
    font-size: 12px;
    line-height: 1.45;
}

.rfps-notes p {
    margin: 0;
}

.rfps-version-details {
    margin-top: 12px;
    font-size: 12px;
}

.rfps-version-details summary {
    cursor: pointer;
    color: #fff;
}

.rfps-version-details span {
    display: block;
    margin-top: 4px;
}

.rfps-no-results {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--rfps-border);
    border-radius: 8px;
    color: var(--rfps-muted);
    text-align: center;
}

.rfps-disclaimer {
    margin: 12px 0 0;
    padding: 0;
    color: rgba(245, 247, 251, 0.62);
    font-size: 13px;
    line-height: 1.45;
}

.rfps-loading {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(7, 9, 15, 0.76);
    color: #fff;
    font-weight: 900;
    backdrop-filter: blur(5px);
}

.rfps-benchmarks.is-loading .rfps-loading {
    display: grid;
}

@media (max-width: 900px) {
    .rfps-browser-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .rfps-browser-tools {
        justify-content: flex-start;
    }

    .rfps-search {
        width: min(100%, 320px);
    }

    .rfps-cards {
        grid-auto-columns: minmax(230px, 72%);
    }
}

@media (max-width: 560px) {
    .rfps-benchmarks {
        padding: 14px;
    }

    .rfps-browser-tools {
        display: grid;
        grid-template-columns: 1fr auto;
        width: 100%;
    }

    .rfps-search {
        grid-column: 1 / -1;
        width: 100%;
    }

    .rfps-view-all {
        grid-column: 1 / -1;
        width: 100%;
    }

    .rfps-cards {
        grid-auto-columns: minmax(220px, 88%);
    }
}
