/* Legacy product-page wizard styles */
.rnps2-front-wizard {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.rnps2-front-wizard__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.rnps2-front-wizard__header h3,
.rnps2-front-section__heading h4,
.rnps2-front-summary h4 {
    margin: 0.35rem 0 0;
    font-size: 1.25rem;
    line-height: 1.25;
}

.rnps2-front-wizard__intro {
    margin: 0.5rem 0 0;
    color: #4b5563;
}

.rnps2-front-wizard__intro p {
    margin: 0.5rem 0 0;
}

.rnps2-front-wizard__hint {
    min-width: 210px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #f3f6fb;
    color: #445063;
    font-size: 0.95rem;
}

.rnps2-step-pill,
.rnps2-store-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(147, 197, 253, 0.14);
    color: #dbeafe;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rnps2-front-wizard .rnps2-step-pill {
    background: #eef4ff;
    color: #3558a2;
}

.rnps2-front-wizard__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
}

.rnps2-front-wizard__main {
    display: grid;
    gap: 1rem;
}

.rnps2-front-section,
.rnps2-front-summary__inner {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
}

.rnps2-front-section__heading {
    margin-bottom: 0.9rem;
}

.rnps2-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
}

.rnps2-device-card,
.rnps2-storage-card {
    position: relative;
    display: block;
    cursor: pointer;
    border: 1px solid #d8dce4;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rnps2-device-card:hover,
.rnps2-storage-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border-color: #b8c4d8;
}

.rnps2-device-card.is-selected,
.rnps2-storage-card.is-selected {
    border-color: #3558a2;
    box-shadow: 0 0 0 3px rgba(53, 88, 162, 0.12);
}

.rnps2-device-card input[type="radio"],
.rnps2-storage-card input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.rnps2-device-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    overflow: hidden;
}

.rnps2-device-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rnps2-device-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.3rem;
    font-weight: 700;
    color: #475569;
}

.rnps2-device-card__body,
.rnps2-storage-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem;
}

.rnps2-device-card__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.rnps2-option-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #d8dce4;
    border-radius: 16px;
    background: #fcfcff;
}

.rnps2-request-wrap {
    margin-top: 0.9rem;
    padding: 1rem;
    border: 1px dashed #c5ccda;
    border-radius: 14px;
    background: #fafbfd;
}

.rnps2-request-wrap textarea,
.rnps2-request-box textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.rnps2-request-label,
.rnps2-request-box label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.rnps2-help-text {
    margin: 0.5rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.rnps2-front-summary__inner {
    position: sticky;
    top: 1rem;
}

.rnps2-summary-row,
.rnps2-summary-line,
.rnps2-review-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eef2f7;
}

.rnps2-summary-row.is-total,
.rnps2-summary-line.is-total,
.rnps2-review-list li.is-total {
    border-bottom: 0;
    margin-top: 0.25rem;
    padding-top: 1rem;
    font-weight: 700;
}

.rnps2-front-summary__note {
    margin: 0.75rem 0 0;
    color: #6b7280;
    font-size: 0.92rem;
}

/* New dedicated store and wizard styles */
.rnps2-store-shell {
    --rnps2-bg-1: #050816;
    --rnps2-bg-2: #101b38;
    --rnps2-panel: rgba(8, 15, 35, 0.82);
    --rnps2-panel-border: rgba(255, 255, 255, 0.08);
    --rnps2-text: #f8fafc;
    --rnps2-text-muted: #b6c2dc;
    --rnps2-accent: #60a5fa;
    --rnps2-accent-2: #a78bfa;
    margin: 2rem auto;
    color: var(--rnps2-text);
    max-width: 1280px;
}

.rnps2-store-shell * {
    box-sizing: border-box;
}

.rnps2-store-hero,
.rnps2-wizard-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.18), transparent 38%),
        linear-gradient(145deg, var(--rnps2-bg-2), var(--rnps2-bg-1));
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
}

.rnps2-store-hero__content,
.rnps2-wizard-hero__content {
    align-self: center;
}

.rnps2-store-hero__content h1,
.rnps2-wizard-hero__content h1 {
    margin: 0.8rem 0 0.8rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.rnps2-store-hero__content p,
.rnps2-wizard-hero__lead,
.rnps2-wizard-hero__intro,
.rnps2-wizard-hero__intro p,
.rnps2-store-empty p,
.rnps2-product-card__body p {
    color: var(--rnps2-text-muted);
}

.rnps2-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.rnps2-product-card,
.rnps2-wizard-card,
.rnps2-wizard-summary__inner,
.rnps2-store-empty {
    background: var(--rnps2-panel);
    border: 1px solid var(--rnps2-panel-border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.18);
}

.rnps2-product-card {
    overflow: hidden;
}

.rnps2-product-card__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.18), rgba(167, 139, 250, 0.12));
}

.rnps2-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rnps2-product-card__placeholder,
.rnps2-wizard-gallery__fallback,
.rnps2-game-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #dbeafe;
}

.rnps2-product-card__badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(8, 15, 35, 0.78);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.rnps2-product-card__body {
    padding: 1rem;
}

.rnps2-product-card__body h3 {
    margin: 0.65rem 0 0.55rem;
    font-size: 1.3rem;
}

.rnps2-product-card__body a {
    color: inherit;
    text-decoration: none;
}

.rnps2-product-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--rnps2-text-muted);
    font-size: 0.92rem;
}

.rnps2-store-button,
.rnps2-step-actions .button,
.rnps2-step-actions button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.9rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rnps2-accent), var(--rnps2-accent-2));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(96, 165, 250, 0.25);
}

.rnps2-store-button--primary {
    min-width: 190px;
}

.rnps2-store-backbar {
    margin-bottom: 1rem;
}

.rnps2-store-backlink {
    color: #c7d2fe;
    text-decoration: none;
    font-weight: 600;
}

.rnps2-stepbar {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.rnps2-stepbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--rnps2-panel-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--rnps2-text-muted);
    cursor: pointer;
}

.rnps2-stepbar__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.9rem;
}

.rnps2-stepbar__item.is-active {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(96, 165, 250, 0.12);
}

.rnps2-wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
}

.rnps2-wizard-main {
    display: grid;
}

.rnps2-wizard-step {
    display: none;
}

.rnps2-wizard-step.is-active {
    display: block;
}

.rnps2-wizard-card,
.rnps2-wizard-summary__inner {
    padding: 1.25rem;
}

.rnps2-wizard-card__heading h2,
.rnps2-wizard-summary__inner h3,
.rnps2-review-grid h3 {
    margin: 0.75rem 0 1rem;
    color: #fff;
}

.rnps2-wizard-gallery {
    display: grid;
    gap: 0.75rem;
}

.rnps2-wizard-gallery__main {
    aspect-ratio: 1.05 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.rnps2-wizard-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rnps2-wizard-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 0.65rem;
}

.rnps2-gallery-thumb {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.rnps2-gallery-thumb.is-active {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

.rnps2-gallery-thumb img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.rnps2-storage-grid,
.rnps2-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.95rem;
}

.rnps2-storage-card strong,
.rnps2-storage-card small,
.rnps2-storage-card span {
    color: #fff;
}

.rnps2-storage-card span,
.rnps2-storage-card small,
.rnps2-game-card__body span,
.rnps2-library-status,
.rnps2-selected-games__empty,
.rnps2-library-empty,
.rnps2-library-loading,
.rnps2-cart-modal__meta {
    color: var(--rnps2-text-muted);
}

.rnps2-library-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px auto;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.rnps2-library-tools input,
.rnps2-library-tools select,
.rnps2-request-box textarea {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0.85rem 0.95rem;
}

.rnps2-library-tools input::placeholder,
.rnps2-request-box textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.rnps2-library-tools option {
    color: #111827;
}

.rnps2-library-status {
    margin-bottom: 0.85rem;
}

.rnps2-game-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.rnps2-game-card.is-selected {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

.rnps2-game-card__media {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.03);
}

.rnps2-game-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rnps2-game-card__body {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
}

.rnps2-game-card__body strong {
    color: #fff;
    line-height: 1.3;
}

.rnps2-game-card__toggle,
.rnps2-selected-chip,
.rnps2-cart-summary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.12);
    color: #dbeafe;
    cursor: pointer;
    font-weight: 700;
}

.rnps2-selected-games,
.rnps2-review-games {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-height: 48px;
    margin-bottom: 0.85rem;
}

.rnps2-review-games {
    align-content: flex-start;
}

.rnps2-review-chip,
.rnps2-review-request,
.rnps2-selected-chip {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0.55rem 0.8rem;
}

.rnps2-review-request {
    border-radius: 16px;
    width: 100%;
    color: var(--rnps2-text-muted);
}

.rnps2-library-footer,
.rnps2-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.rnps2-wizard-summary__inner {
    position: sticky;
    top: 1rem;
}

.rnps2-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.rnps2-review-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rnps2-review-list li span,
.rnps2-summary-line span {
    color: var(--rnps2-text-muted);
}

.rnps2-cart-summary-link-wrap {
    margin-top: 0.5rem;
}

.rnps2-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.rnps2-cart-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.68);
}

.rnps2-cart-modal__dialog {
    position: relative;
    width: min(680px, calc(100vw - 2rem));
    margin: 8vh auto;
    padding: 1.35rem;
    border-radius: 24px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
}

.rnps2-cart-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.95rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.rnps2-cart-modal__dialog h3 {
    margin: 0 0 0.35rem;
}

.rnps2-cart-modal__section {
    margin-top: 1rem;
}

.rnps2-cart-modal__section ul {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
}

.rnps2-modal-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .rnps2-store-hero,
    .rnps2-wizard-hero,
    .rnps2-wizard-layout,
    .rnps2-front-wizard__layout {
        grid-template-columns: 1fr;
    }

    .rnps2-front-summary__inner,
    .rnps2-wizard-summary__inner {
        position: static;
    }
}

@media (max-width: 768px) {
    .rnps2-front-wizard__header,
    .rnps2-library-tools,
    .rnps2-review-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .rnps2-store-grid,
    .rnps2-storage-grid,
    .rnps2-library-grid,
    .rnps2-device-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .rnps2-store-grid,
    .rnps2-storage-grid,
    .rnps2-library-grid,
    .rnps2-device-grid {
        grid-template-columns: 1fr;
    }

    .rnps2-stepbar,
    .rnps2-step-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Phase 3.1 design refresh to better match the main RetroNaga storefront */
.rnps2-store-shell {
    --rnps2-page: #efefef;
    --rnps2-surface: #ffffff;
    --rnps2-surface-soft: #f7f7f8;
    --rnps2-surface-dark: #111214;
    --rnps2-surface-dark-2: #1e232c;
    --rnps2-border: #d7d9de;
    --rnps2-border-strong: #b7bcc6;
    --rnps2-text: #111214;
    --rnps2-text-muted: #666b75;
    --rnps2-text-inverse: #ffffff;
    --rnps2-shadow: 0 10px 24px rgba(15, 17, 20, 0.08);
    --rnps2-shadow-strong: 0 18px 40px rgba(15, 17, 20, 0.12);
    margin: 1.25rem auto 2rem;
    max-width: 1180px;
    color: var(--rnps2-text);
    font-family: inherit;
}

.rnps2-store-shell--archive,
.rnps2-store-shell--wizard {
    padding: 0 0.35rem;
}

.rnps2-store-hero {
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #050505 0%, #14161a 55%, #222734 100%);
    box-shadow: var(--rnps2-shadow-strong);
}

.rnps2-wizard-hero {
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--rnps2-border);
    background: var(--rnps2-surface);
    box-shadow: var(--rnps2-shadow);
}

.rnps2-store-hero__content h1,
.rnps2-wizard-hero__content h1 {
    margin: 0.45rem 0 0.55rem;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.02;
}

.rnps2-store-hero__content h1 {
    color: var(--rnps2-text-inverse);
}

.rnps2-wizard-hero__content h1 {
    color: var(--rnps2-text);
}

.rnps2-store-hero__content p,
.rnps2-store-empty p,
.rnps2-product-card__body p {
    color: rgba(255, 255, 255, 0.78);
}

.rnps2-wizard-hero__lead,
.rnps2-wizard-hero__intro,
.rnps2-wizard-hero__intro p {
    color: var(--rnps2-text-muted);
}

.rnps2-store-kicker,
.rnps2-step-pill {
    padding: 0.38rem 0.82rem;
    background: #3f4656;
    color: #ffffff;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
}

.rnps2-product-card,
.rnps2-wizard-card,
.rnps2-wizard-summary__inner,
.rnps2-store-empty {
    background: var(--rnps2-surface);
    border: 1px solid var(--rnps2-border);
    border-radius: 22px;
    box-shadow: var(--rnps2-shadow);
    backdrop-filter: none;
}

.rnps2-store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.rnps2-product-card {
    overflow: hidden;
}

.rnps2-product-card__media {
    aspect-ratio: 1 / 1.08;
    background: #f4f4f5;
}

.rnps2-product-card__media img {
    object-fit: cover;
}

.rnps2-product-card__placeholder,
.rnps2-wizard-gallery__fallback,
.rnps2-game-card__placeholder {
    color: #aeb3bd;
}

.rnps2-product-card__badge {
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(60, 66, 81, 0.95);
    color: #fff;
    font-size: 0.76rem;
}

.rnps2-product-card__body {
    padding: 0.8rem 0.8rem 0.95rem;
    text-align: center;
}

.rnps2-product-card__body h3 {
    margin: 0.45rem 0 0.4rem;
    color: var(--rnps2-text);
    font-size: 1.06rem;
    line-height: 1.2;
}

.rnps2-product-card__body p {
    color: var(--rnps2-text-muted);
    margin: 0.25rem 0 0.7rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.rnps2-product-card__meta {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--rnps2-text-muted);
    font-size: 0.82rem;
}

.rnps2-product-card__meta span {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rnps2-product-card__meta strong {
    color: var(--rnps2-text);
    font-size: 1rem;
}

.rnps2-store-button,
.rnps2-step-actions .button,
.rnps2-step-actions button.button,
.rnps2-library-tools .button,
.rnps2-library-footer .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.82rem 1rem;
    border: 1px solid #111214;
    border-radius: 999px;
    background: linear-gradient(180deg, #232731 0%, #111214 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.rnps2-store-button:hover,
.rnps2-step-actions .button:hover,
.rnps2-step-actions button.button:hover,
.rnps2-library-tools .button:hover,
.rnps2-library-footer .button:hover {
    background: linear-gradient(180deg, #313744 0%, #15171b 100%);
    color: #fff;
}

.rnps2-store-button--primary {
    min-width: 170px;
}

.rnps2-store-backbar {
    margin-bottom: 0.75rem;
}

.rnps2-store-backlink {
    color: #262c35;
}

.rnps2-stepbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0.95rem 0 0.9rem;
}

.rnps2-stepbar__item {
    justify-content: center;
    padding: 0.62rem 0.55rem;
    border: 1px solid var(--rnps2-border);
    border-radius: 999px;
    background: var(--rnps2-surface);
    color: var(--rnps2-text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.rnps2-stepbar__item span {
    width: 1.45rem;
    height: 1.45rem;
    background: #eef0f4;
    color: var(--rnps2-text);
    font-size: 0.78rem;
}

.rnps2-stepbar__item.is-active {
    color: #fff;
    border-color: #111214;
    background: linear-gradient(180deg, #232731 0%, #111214 100%);
}

.rnps2-stepbar__item.is-active span {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.rnps2-wizard-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
}

.rnps2-wizard-card,
.rnps2-wizard-summary__inner {
    padding: 1rem;
}

.rnps2-wizard-card__heading,
.rnps2-wizard-summary__inner {
    color: var(--rnps2-text);
}

.rnps2-wizard-card__heading h2,
.rnps2-wizard-summary__inner h3,
.rnps2-review-grid h3 {
    margin: 0.55rem 0 0.85rem;
    color: var(--rnps2-text);
    font-size: 1.42rem;
}

.rnps2-wizard-gallery {
    gap: 0.6rem;
}

.rnps2-wizard-gallery__main {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--rnps2-border);
    background: #f3f4f6;
}

.rnps2-wizard-gallery__main img {
    object-fit: cover;
}

.rnps2-wizard-gallery__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(58px, 70px));
    justify-content: start;
    gap: 0.5rem;
}

.rnps2-gallery-thumb {
    border: 1px solid var(--rnps2-border);
    border-radius: 14px;
    background: #fff;
}

.rnps2-gallery-thumb.is-active {
    border-color: #111214;
    box-shadow: 0 0 0 2px rgba(17, 18, 20, 0.1);
}

.rnps2-gallery-thumb img {
    height: 58px;
    object-fit: cover;
}

.rnps2-storage-grid {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 0.75rem;
}

.rnps2-storage-card {
    gap: 0.25rem;
    padding: 0.8rem;
    border-color: var(--rnps2-border);
    border-radius: 18px;
    background: var(--rnps2-surface-soft);
    box-shadow: none;
}

.rnps2-storage-card:hover {
    transform: translateY(-1px);
    border-color: var(--rnps2-border-strong);
    box-shadow: 0 10px 22px rgba(15, 17, 20, 0.05);
}

.rnps2-storage-card.is-selected {
    border-color: #111214;
    background: #fff;
    box-shadow: inset 0 0 0 1px #111214;
}

.rnps2-storage-card strong {
    color: var(--rnps2-text);
    font-size: 1.05rem;
}

.rnps2-storage-card span,
.rnps2-storage-card small,
.rnps2-game-card__body span,
.rnps2-library-status,
.rnps2-selected-games__empty,
.rnps2-library-empty,
.rnps2-library-loading,
.rnps2-cart-modal__meta,
.rnps2-review-list li span,
.rnps2-summary-line span {
    color: var(--rnps2-text-muted);
}

.rnps2-library-tools {
    grid-template-columns: minmax(0, 1fr) 150px auto;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
}

.rnps2-library-tools input,
.rnps2-library-tools select,
.rnps2-request-box textarea {
    border: 1px solid var(--rnps2-border);
    border-radius: 14px;
    background: #fff;
    color: var(--rnps2-text);
    padding: 0.72rem 0.8rem;
}

.rnps2-library-tools input::placeholder,
.rnps2-request-box textarea::placeholder {
    color: #959baa;
}

.rnps2-library-status {
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

.rnps2-selected-games,
.rnps2-review-games {
    gap: 0.45rem;
    min-height: 0;
    margin-bottom: 0.75rem;
}

.rnps2-selected-chip,
.rnps2-review-chip,
.rnps2-review-request,
.rnps2-cart-summary-link {
    border: 1px solid var(--rnps2-border);
    background: #f4f5f7;
    color: var(--rnps2-text);
    box-shadow: none;
}

.rnps2-selected-chip strong {
    font-size: 1rem;
    line-height: 1;
}

.rnps2-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 0.8rem 0.65rem;
    align-items: start;
}

.rnps2-game-card {
    display: grid;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.rnps2-game-card__media {
    position: relative;
    aspect-ratio: 0.68 / 1;
    border: 1px solid #d4d8df;
    border-radius: 5px 12px 12px 5px;
    overflow: hidden;
    background: #eef0f2;
    box-shadow: 0 10px 18px rgba(15, 17, 20, 0.14);
    transform: perspective(900px) rotateY(-9deg);
    transform-origin: left center;
    margin-left: 9px;
}

.rnps2-game-card__media::before {
    content: '';
    position: absolute;
    top: 1.5%;
    bottom: 1.5%;
    left: -10px;
    width: 11px;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(180deg, #243047 0%, #3b4556 100%);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.3), 2px 0 8px rgba(0, 0, 0, 0.16);
}

.rnps2-game-card__spine {
    position: absolute;
    left: -9px;
    top: 8px;
    bottom: 8px;
    z-index: 2;
    width: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    text-transform: uppercase;
    pointer-events: none;
}

.rnps2-game-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rnps2-game-card.is-selected .rnps2-game-card__media {
    border-color: #111214;
    box-shadow: 0 12px 20px rgba(15, 17, 20, 0.18), 0 0 0 2px rgba(17, 18, 20, 0.18);
}

.rnps2-game-card.is-selected .rnps2-game-card__media::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111214;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 2;
}

.rnps2-game-card__body {
    gap: 0.3rem;
    padding: 0 0.1rem;
}

.rnps2-game-card__body strong {
    color: var(--rnps2-text);
    line-height: 1.28;
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.1em;
}

.rnps2-game-card__body span {
    font-size: 0.72rem;
}

.rnps2-game-card__toggle {
    width: 100%;
    padding: 0.46rem 0.58rem;
    border: 1px solid #111214;
    border-radius: 999px;
    background: #fff;
    color: #111214;
    font-size: 0.74rem;
    font-weight: 700;
}

.rnps2-game-card.is-selected .rnps2-game-card__toggle {
    background: #111214;
    color: #fff;
}

.rnps2-step-actions,
.rnps2-library-footer {
    margin-top: 0.85rem;
}

.rnps2-request-box label {
    color: var(--rnps2-text);
}

.rnps2-request-box textarea {
    min-height: 96px;
}

.rnps2-review-grid {
    gap: 0.9rem;
}

.rnps2-review-list {
    margin: 0;
}

.rnps2-summary-line,
.rnps2-review-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid #eceef2;
}

.rnps2-summary-line strong,
.rnps2-review-list strong {
    color: var(--rnps2-text);
}

.rnps2-summary-line.is-total,
.rnps2-review-list li.is-total {
    padding-top: 0.85rem;
}

@media (max-width: 1180px) {
    .rnps2-store-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .rnps2-wizard-layout {
        grid-template-columns: 1fr;
    }

    .rnps2-wizard-summary {
        display: none;
    }
}

@media (max-width: 820px) {
    .rnps2-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rnps2-store-hero {
        grid-template-columns: 1fr;
        padding: 1.1rem 1.15rem;
    }

    .rnps2-wizard-hero {
        grid-template-columns: 132px minmax(0, 1fr);
        align-items: start;
        gap: 0.8rem;
        padding: 0.85rem;
    }

    .rnps2-wizard-gallery__main {
        aspect-ratio: 4 / 5;
        border-radius: 16px;
    }

    .rnps2-wizard-gallery__thumbs {
        display: flex;
        gap: 0.45rem;
        overflow-x: auto;
        padding-bottom: 0.1rem;
        scrollbar-width: thin;
    }

    .rnps2-gallery-thumb {
        min-width: 46px;
        width: 46px;
        border-radius: 12px;
    }

    .rnps2-gallery-thumb img {
        height: 46px;
    }

    .rnps2-wizard-hero__content h1 {
        font-size: 1.55rem;
        margin: 0.15rem 0 0.3rem;
    }

    .rnps2-wizard-hero__lead,
    .rnps2-wizard-hero__intro,
    .rnps2-wizard-hero__intro p {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .rnps2-stepbar__item {
        padding: 0.52rem 0.25rem;
        gap: 0.35rem;
        font-size: 0.76rem;
    }

    .rnps2-stepbar__item span {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.72rem;
    }

    .rnps2-wizard-card,
    .rnps2-wizard-summary__inner {
        padding: 0.9rem;
    }

    .rnps2-wizard-card__heading h2,
    .rnps2-review-grid h3 {
        font-size: 1.28rem;
    }

    .rnps2-library-tools {
        grid-template-columns: minmax(0, 1fr) 110px auto;
    }

    .rnps2-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem 0.55rem;
    }

    .rnps2-product-card__body {
        padding: 0.7rem 0.65rem 0.85rem;
    }

    .rnps2-product-card__body h3 {
        font-size: 0.98rem;
    }

    .rnps2-product-card__body p {
        display: none;
    }
}

@media (max-width: 560px) {
    .rnps2-store-shell {
        margin-top: 0.9rem;
    }

    .rnps2-store-hero__content h1 {
        font-size: 1.95rem;
    }

    .rnps2-wizard-hero {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .rnps2-library-tools {
        grid-template-columns: minmax(0, 1fr) 96px auto;
    }

    .rnps2-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rnps2-storage-grid {
        grid-template-columns: 1fr;
    }

    .rnps2-step-actions {
        flex-direction: row;
        align-items: center;
    }

    .rnps2-store-button,
    .rnps2-step-actions .button,
    .rnps2-step-actions button.button,
    .rnps2-library-tools .button,
    .rnps2-library-footer .button {
        padding: 0.74rem 0.82rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 420px) {
    .rnps2-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .rnps2-product-card__meta strong {
        font-size: 0.92rem;
    }

    .rnps2-product-card__body h3 {
        font-size: 0.93rem;
    }

    .rnps2-stepbar__item {
        font-size: 0.7rem;
        gap: 0.25rem;
    }

    .rnps2-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem 0.5rem;
    }

    .rnps2-game-card__media {
        margin-left: 8px;
        box-shadow: 0 8px 14px rgba(15, 17, 20, 0.12);
    }

    .rnps2-game-card__body span {
        display: none;
    }

    .rnps2-request-box textarea {
        min-height: 84px;
    }
}

@media (max-width: 360px) {
    .rnps2-store-grid,
    .rnps2-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rnps2-wizard-hero {
        grid-template-columns: 1fr;
    }

    .rnps2-stepbar__item {
        font-size: 0.66rem;
    }
}

/* Phase 3.2 wizard usability fixes */
.rnps2-store-button,
.rnps2-step-actions .button,
.rnps2-step-actions button.button,
.rnps2-library-tools .button,
.rnps2-library-footer .button,
.rnps2-selected-modal__remove {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.rnps2-store-button:hover,
.rnps2-store-button:focus,
.rnps2-step-actions .button:hover,
.rnps2-step-actions button.button:hover,
.rnps2-library-tools .button:hover,
.rnps2-library-footer .button:hover,
.rnps2-selected-modal__remove:hover,
.rnps2-selected-modal__remove:focus {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.rnps2-store-button *,
.rnps2-step-actions .button *,
.rnps2-step-actions button.button *,
.rnps2-library-tools .button *,
.rnps2-library-footer .button * {
    color: inherit !important;
}

.rnps2-library-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.rnps2-library-status__meta {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
    min-width: 0;
}

.rnps2-selected-games {
    min-height: 0;
}

.rnps2-selected-preview-list,
.rnps2-review-games__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.rnps2-selected-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.46rem 0.72rem;
    border: 1px solid var(--rnps2-border);
    border-radius: 999px;
    background: #f4f5f7;
    color: var(--rnps2-text);
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
}

.rnps2-selected-chip span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rnps2-selected-chip--more {
    background: #111214;
    border-color: #111214;
    color: #fff;
}

.rnps2-review-games {
    display: grid;
    gap: 0.65rem;
}

.rnps2-review-games__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.rnps2-review-games__meta strong {
    color: var(--rnps2-text);
}

.rnps2-overlay-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
}

.rnps2-overlay-modal[hidden],
.rnps2-cart-modal[hidden] {
    display: none !important;
}

.rnps2-overlay-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 20, 0.72);
}

.rnps2-overlay-modal__dialog {
    position: relative;
    width: min(92vw, 700px);
    max-height: min(86vh, 820px);
    margin: 6vh auto;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--rnps2-border);
    box-shadow: 0 28px 60px rgba(15, 17, 20, 0.24);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rnps2-overlay-modal__dialog--gallery {
    width: min(94vw, 980px);
}

.rnps2-overlay-modal__header {
    padding: 1rem 1rem 0.7rem;
    border-bottom: 1px solid #eceef2;
}

.rnps2-overlay-modal__header h3 {
    margin: 0;
    color: var(--rnps2-text);
    font-size: 1.3rem;
}

.rnps2-overlay-modal__header p {
    margin: 0.35rem 0 0;
    color: var(--rnps2-text-muted);
}

.rnps2-overlay-modal__body {
    padding: 1rem;
    overflow: auto;
}

.rnps2-overlay-modal__body--gallery {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.rnps2-overlay-modal__body--gallery img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.rnps2-overlay-modal__footer {
    padding: 0 1rem 1rem;
    display: flex;
    justify-content: flex-end;
}

.rnps2-overlay-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.95rem;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rnps2-border);
    border-radius: 999px;
    background: #fff;
    color: #111214;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    z-index: 2;
}

.rnps2-selected-modal__list {
    display: grid;
    gap: 0.6rem;
}

.rnps2-selected-modal__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--rnps2-border);
    border-radius: 16px;
    background: var(--rnps2-surface-soft);
}

.rnps2-selected-modal__title {
    color: var(--rnps2-text);
    font-weight: 600;
    line-height: 1.35;
}

.rnps2-selected-modal__remove {
    flex: 0 0 auto;
    padding: 0.42rem 0.78rem;
    border: 1px solid #111214;
    border-radius: 999px;
    background: #111214;
    font-size: 0.78rem;
    font-weight: 700;
}

.rnps2-wizard-gallery__main img,
.rnps2-gallery-thumb {
    cursor: zoom-in;
}

.rnps2-cart-modal__section ul {
    max-height: min(52vh, 420px);
    overflow: auto;
    padding-right: 0.2rem;
}

.rnps2-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 0.75rem 0.55rem;
}

.rnps2-game-card__body strong {
    font-size: 0.78rem;
    min-height: 2em;
}

@media (max-width: 820px) {
    .rnps2-cart-summary-link {
        padding: 0.52rem 0.78rem;
        font-size: 0.78rem;
    }

    .rnps2-overlay-modal__dialog {
        width: min(94vw, 640px);
        margin: 4vh auto;
        max-height: 88vh;
        border-radius: 20px;
    }
}

@media (max-width: 560px) {
    .rnps2-library-status,
    .rnps2-review-games__meta {
        align-items: flex-start;
    }

    .rnps2-selected-chip {
        padding: 0.42rem 0.62rem;
        font-size: 0.74rem;
    }

    .rnps2-overlay-modal__header {
        padding: 0.9rem 0.9rem 0.6rem;
    }

    .rnps2-overlay-modal__body {
        padding: 0.9rem;
    }

    .rnps2-selected-modal__item {
        padding: 0.64rem 0.72rem;
    }
}


/* Phase 3.3 compact cleanup */
.rnps2-game-card__body span {
    display: none !important;
}

.rnps2-store-shell.is-submitting .rnps2-store-button--primary {
    opacity: 0.9;
}

.rnps2-product-card .rnps2-store-button,
.rnps2-product-card .rnps2-store-button:link,
.rnps2-product-card .rnps2-store-button:visited,
.rnps2-wizard-card .rnps2-store-button,
.rnps2-wizard-card .rnps2-store-button:link,
.rnps2-wizard-card .rnps2-store-button:visited {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

/* Phase 3.4 search + screenshots */
.rnps2-game-card__media {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.rnps2-game-card__media:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 18, 20, 0.22);
}

.rnps2-overlay-modal__dialog--game {
    width: min(94vw, 920px);
}

.rnps2-game-detail {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.rnps2-game-detail__cover {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--rnps2-border);
    background: #f3f4f6;
    aspect-ratio: 0.7 / 1;
}

.rnps2-game-detail__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.rnps2-game-detail__content {
    min-width: 0;
}

.rnps2-game-detail__content h3 {
    margin: 0;
    color: var(--rnps2-text);
    font-size: 1.4rem;
    line-height: 1.15;
}

.rnps2-game-detail__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.rnps2-game-detail__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--rnps2-border);
    background: #f4f5f7;
    color: var(--rnps2-text);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

.rnps2-game-detail__section {
    margin-top: 1rem;
}

.rnps2-game-detail__section h4 {
    margin: 0 0 0.7rem;
    color: var(--rnps2-text);
    font-size: 0.98rem;
}

.rnps2-game-detail__shot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.rnps2-game-detail__shot {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--rnps2-border);
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: zoom-in;
}

.rnps2-game-detail__shot img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rnps2-game-detail__shot:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 18, 20, 0.16);
}

@media (max-width: 820px) {
    .rnps2-overlay-modal__dialog--game {
        width: min(96vw, 760px);
    }

    .rnps2-game-detail {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 560px) {
    .rnps2-game-detail {
        grid-template-columns: 1fr;
    }

    .rnps2-game-detail__cover {
        max-width: 180px;
    }

    .rnps2-game-detail__shot-grid {
        grid-template-columns: 1fr;
    }
}


/* Phase 3.5 featured + autofill */
.rnps2-library-helper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.55rem 0 0.45rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--rnps2-border);
    border-radius: 18px;
    background: #f7f8fa;
}

.rnps2-library-helper__meta {
    display: flex;
    align-items: baseline;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.rnps2-library-helper__meta strong {
    color: var(--rnps2-text);
    font-size: 1rem;
    line-height: 1;
}

.rnps2-library-helper__meta span,
.rnps2-library-helper__note {
    color: var(--rnps2-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.rnps2-library-helper__note {
    margin: 0 0 0.8rem;
}

.rnps2-game-card__badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    background: rgba(17, 18, 20, 0.94);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

@media (max-width: 560px) {
    .rnps2-library-helper {
        padding: 0.7rem 0.78rem;
    }

    .rnps2-library-helper__actions {
        width: 100%;
    }

    .rnps2-library-helper__actions .rnps2-cart-summary-link {
        width: 100%;
        justify-content: center;
    }
}

.rnps2-fill-button,
.rnps2-fill-button:link,
.rnps2-fill-button:visited {
    background: #111214;
    border-color: #111214;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(17, 18, 20, 0.12);
}

.rnps2-fill-button:hover,
.rnps2-fill-button:focus {
    background: #181a1f;
    border-color: #181a1f;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

/* Phase 4.0 product category picker */
.rnps2-product-picker-box {
    margin: 0 0 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--rnps2-border);
    border-radius: 18px;
    background: #fafbfc;
}

.rnps2-product-picker-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.rnps2-product-picker-actions__or {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    padding: 0;
    color: var(--rnps2-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rnps2-product-picker-actions--with-preinstalled {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
}

.rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-actions__secondary {
    align-self: center;
    width: min(52%, 420px);
    justify-content: center;
    text-align: center;
}

.rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-actions__or {
    align-self: center;
    margin-top: -0.1rem;
    margin-bottom: -0.05rem;
}

.rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-actions__primary {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-actions__fee {
    width: 100%;
    text-align: center;
}

.rnps2-product-picker-actions__primary,
.rnps2-product-picker-actions__secondary {
    min-height: 44px;
    padding: 0.78rem 1.15rem !important;
    border-radius: 999px !important;
    font-weight: 700;
}

.rnps2-product-picker-actions__primary,
.rnps2-product-picker-actions__primary:link,
.rnps2-product-picker-actions__primary:visited,
.rnps2-product-picker-modal__footer .button-primary,
.rnps2-product-picker-modal__footer .button-primary:link,
.rnps2-product-picker-modal__footer .button-primary:visited {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.rnps2-product-picker-actions__fee {
    color: var(--rnps2-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.rnps2-product-picker-summary {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e5e7eb;
}

.rnps2-product-picker-summary__meta,
.rnps2-product-picker-summary__actions,
.rnps2-product-picker-status,
.rnps2-product-picker-review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.rnps2-product-picker-summary__chips {
    margin-top: 0.65rem;
}

.rnps2-product-picker-summary__actions {
    margin-top: 0.7rem;
}

.rnps2-product-picker-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.rnps2-product-picker-modal__quota {
    flex: 0 0 auto;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #111214;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
}

.rnps2-overlay-modal__dialog--picker {
    width: min(96vw, 1080px);
    max-height: 90vh;
}

.rnps2-product-picker-modal__body {
    padding-top: 0.85rem;
}

.rnps2-product-picker-panel {
    display: none;
}

.rnps2-product-picker-panel.is-active {
    display: block;
}

.rnps2-stepbar--compact {
    margin-bottom: 0.95rem;
}

.rnps2-product-picker-status {
    margin-bottom: 0.85rem;
}

.rnps2-product-picker-status__actions .rnps2-store-button {
    min-width: 150px;
}

.rnps2-product-picker-modal__footer {
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.rnps2-product-picker-modal__footer .button,
.rnps2-product-picker-modal__footer .button.button-primary,
.rnps2-product-picker-modal__footer .button.button-secondary {
    min-height: 44px;
    border-radius: 999px;
}

.rnps2-library-grid--readonly .rnps2-game-card__body {
    gap: 0;
}

.rnps2-library-grid--readonly .rnps2-game-card__body strong {
    min-height: 2.6em;
}

@media (max-width: 640px) {
    .rnps2-product-picker-box {
        padding: 0.85rem 0.85rem 0.9rem;
    }

    .rnps2-product-picker-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rnps2-product-picker-actions__primary,
    .rnps2-product-picker-actions__secondary {
        text-align: center;
        justify-content: center;
    }

    .rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-actions__secondary {
        width: min(58%, 360px);
    }

    .rnps2-product-picker-actions--single .rnps2-product-picker-actions__primary {
        width: 100%;
    }

    .rnps2-product-picker-actions__fee {
        text-align: center;
    }

    .rnps2-product-picker-modal__header {
        flex-direction: column;
    }

    .rnps2-product-picker-status__actions {
        width: 100%;
    }

    .rnps2-product-picker-status__actions .rnps2-store-button,
    .rnps2-product-picker-modal__footer .button {
        width: 100%;
    }

    .rnps2-product-picker-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }
}


/* Phase 4.2 PSPVault picker compact modal */
.rnps2-overlay-modal--picker-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
}

.rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker {
    margin: 0;
    width: min(94vw, 760px);
    max-height: min(88vh, 860px);
    overflow: hidden;
}

.rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__body {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.rnps2-product-picker-panel--single {
    display: block;
}

.rnps2-library-tools--picker {
    grid-template-columns: minmax(0, 1fr) 170px auto;
    gap: 0.6rem;
}

.rnps2-product-picker-status {
    margin-bottom: 0.65rem;
}

.rnps2-selected-games--compact {
    margin-bottom: 0.65rem;
}

.rnps2-product-picker-status__actions {
    margin-left: auto;
}

.rnps2-product-picker-modal__footer {
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid #eceef2;
    background: #fff;
    position: sticky;
    bottom: 0;
}

.rnps2-product-picker-modal__clear {
    min-width: 86px;
    padding-inline: 0.95rem;
}

.rnps2-product-picker-modal__save {
    min-width: 154px;
    padding-inline: 1.15rem;
}

.rnps2-overlay-modal--picker-shell .rnps2-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 0.75rem 0.6rem;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media {
    aspect-ratio: 0.84 / 1;
    border-radius: 18px 18px 12px 12px;
    transform: none;
    margin-left: 0;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media::before,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media::before {
    display: none;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__spine,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__spine {
    top: 0.42rem;
    left: 0.42rem;
    bottom: auto;
    width: auto;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    background: rgba(17, 18, 20, 0.88);
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__placeholder,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__placeholder {
    border-radius: 18px 18px 12px 12px;
}


.rnps2-product-picker-modal__clear,
.rnps2-product-picker-modal__clear:link,
.rnps2-product-picker-modal__clear:visited {
    background: #eef0f3;
    border-color: #d8dce3;
    color: #111214 !important;
    -webkit-text-fill-color: #111214;
    box-shadow: none;
}

.rnps2-product-picker-modal__clear:hover,
.rnps2-product-picker-modal__clear:focus {
    background: #e6e9ee;
    border-color: #cfd5de;
    color: #111214 !important;
    -webkit-text-fill-color: #111214;
}

.rnps2-product-picker-modal__save,
.rnps2-product-picker-modal__save:link,
.rnps2-product-picker-modal__save:visited {
    background: linear-gradient(180deg, #232731 0%, #111214 100%);
    border-color: #111214;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 10px 22px rgba(17, 18, 20, 0.12);
}

.rnps2-product-picker-modal__save:hover,
.rnps2-product-picker-modal__save:focus {
    background: linear-gradient(180deg, #2b303b 0%, #15171b 100%);
    border-color: #15171b;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media img,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media img,
[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-detail__cover img,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-detail__cover img {
    object-fit: contain;
    background: #fff;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-detail__cover,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-detail__cover {
    aspect-ratio: 0.84 / 1;
    border-radius: 22px 22px 14px 14px;
}

@media (max-width: 680px) {
    .rnps2-overlay-modal--picker-shell {
        padding: 0.55rem;
    }

    .rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker {
        width: min(96vw, 680px);
        max-height: 90vh;
        border-radius: 22px;
    }

    .rnps2-library-tools--picker {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .rnps2-library-tools--picker input {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .rnps2-overlay-modal--picker-shell {
        align-items: flex-start;
        padding: 0.4rem;
    }

    .rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker {
        width: min(96vw, 640px);
        max-height: 92vh;
        border-radius: 20px;
    }

    .rnps2-product-picker-modal__header {
        gap: 0.55rem;
    }

    .rnps2-product-picker-modal__header h3 {
        font-size: 1.1rem;
    }

    .rnps2-product-picker-modal__header p {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .rnps2-library-tools--picker {
        grid-template-columns: minmax(0, 1fr) 110px;
        gap: 0.5rem;
    }

    .rnps2-library-tools--picker input {
        grid-column: 1 / -1;
    }

    .rnps2-overlay-modal--picker-shell .rnps2-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.55rem;
    }

    .rnps2-product-picker-status {
        align-items: center;
    }

    .rnps2-product-picker-status > div:first-child {
        min-width: 0;
    }

    .rnps2-product-picker-status strong {
        font-size: 0.96rem;
    }

    .rnps2-product-picker-status__actions {
        width: auto;
    }

    .rnps2-product-picker-status__actions .rnps2-cart-summary-link {
        width: auto;
        padding: 0.58rem 0.82rem;
        font-size: 0.76rem;
    }

    .rnps2-product-picker-modal__footer {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        padding: 0.78rem 0.85rem 0.9rem;
    }

    .rnps2-product-picker-modal__footer .button {
        width: auto;
        min-height: 42px;
    }

    .rnps2-product-picker-modal__clear {
        min-width: 82px;
        padding-inline: 0.82rem;
    }

    .rnps2-product-picker-modal__save {
        min-width: 138px;
        padding-inline: 0.95rem;
    }

    .rnps2-selected-games--compact .rnps2-selected-chip {
        font-size: 0.72rem;
        padding: 0.38rem 0.58rem;
    }
}


/* Phase 4.4 PSPVault mobile density and header fixes */
.rnps2-library-tools input,
.rnps2-library-tools select,
.rnps2-library-tools .button {
    min-width: 0;
}

.rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__header {
    padding-right: 5.35rem;
}

.rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__close {
    top: 0.9rem;
    right: 0.9rem;
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
}

.rnps2-product-picker-modal__header p {
    max-width: 100%;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-library-grid,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media,
[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-detail__cover,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-detail__cover {
    aspect-ratio: 0.66 / 1;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__body strong,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__body strong {
    min-height: 2.35em;
}

@media (max-width: 560px) {
    .rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__header {
        padding: 1rem 4.5rem 0.7rem 1rem;
    }

    .rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__close {
        top: 0.85rem;
        right: 0.95rem;
    }

    .rnps2-library-tools--picker {
        grid-template-columns: minmax(0, 1fr) 108px;
    }

    .rnps2-library-tools--picker select {
        width: 100%;
        padding-right: 2rem;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-library-grid,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem 0.45rem;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media {
        aspect-ratio: 0.64 / 1;
        border-radius: 14px 14px 10px 10px;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__body strong,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__body strong {
        font-size: 0.72rem;
        line-height: 1.22;
        min-height: 2.45em;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__toggle,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__toggle {
        min-height: 34px;
        padding: 0.4rem 0.25rem;
        font-size: 0.66rem;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__spine,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__spine {
        left: 0.35rem;
        top: 0.35rem;
        padding: 0.15rem 0.36rem;
        font-size: 0.46rem;
    }
}

/* Phase 4.6 PSPVault option highlights, FOX currency sync, and fixed preinstalled modal */
.rnps2-product-picker-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    width: 100%;
}

.rnps2-product-picker-choice .button {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-choice--preinstalled {
    align-self: center;
    width: min(46%, 320px);
}

.rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-choice--custom {
    width: 100%;
}

.rnps2-product-picker-choice.is-selected .button {
    border-color: #111214 !important;
    box-shadow: 0 0 0 2px rgba(17, 18, 20, 0.18), 0 10px 22px rgba(17, 18, 20, 0.12);
}

.rnps2-product-picker-choice--preinstalled.is-selected .button {
    background: #f5f6f9;
    color: #111214 !important;
    -webkit-text-fill-color: #111214;
}

.rnps2-product-picker-choice--custom.is-selected .button {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.rnps2-product-picker-actions__price {
    display: block;
    margin-top: 0.08rem;
    color: var(--rnps2-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.rnps2-product-picker-choice.is-selected .rnps2-product-picker-actions__price {
    color: #111214;
}

.rnps2-product-picker-actions__price--free {
    font-size: 0.84rem;
}

.rnps2-product-picker-actions__secondary {
    min-height: 38px;
    padding: 0.6rem 0.9rem !important;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
}

.rnps2-product-picker-actions__primary {
    min-height: 46px;
}

.rnps2-product-picker-actions__or {
    margin-top: -0.18rem;
    margin-bottom: -0.18rem;
}

.rnps2-overlay-modal--preinstalled-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
}

.rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled {
    margin: 0;
    width: min(94vw, 760px);
    max-height: min(88vh, 840px);
    overflow: hidden;
}

.rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__body {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__header,
.rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled .rnps2-overlay-modal__header {
    padding: 1rem 4.3rem 0.78rem 1rem !important;
}

.rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__close,
.rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled .rnps2-overlay-modal__close {
    top: 0.82rem;
    right: 0.9rem;
    width: 34px;
    height: 34px;
    font-size: 1.12rem;
}

.rnps2-product-picker-modal__header,
.rnps2-product-picker-modal__header--preinstalled {
    gap: 0.65rem;
}

.rnps2-product-picker-modal__header > div:first-child,
.rnps2-product-picker-modal__header--preinstalled > div:first-child {
    min-width: 0;
    max-width: 100%;
}

.rnps2-product-picker-modal__header h3,
.rnps2-product-picker-modal__header--preinstalled h3 {
    line-height: 1.12;
}

.rnps2-product-picker-modal__header p,
.rnps2-product-picker-modal__header--preinstalled p {
    max-width: 100%;
    overflow-wrap: break-word;
}

.rnps2-product-picker-modal__quota--free {
    background: #eef0f4;
    color: #111214;
}

@media (max-width: 680px) {
    .rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-choice--preinstalled {
        width: min(54%, 260px);
    }

    .rnps2-overlay-modal--preinstalled-shell {
        padding: 0.55rem;
    }

    .rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled {
        width: min(96vw, 680px);
        max-height: 90vh;
        border-radius: 22px;
    }
}

@media (max-width: 560px) {
    .rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-choice--preinstalled {
        width: min(58%, 210px);
    }

    .rnps2-product-picker-actions__secondary {
        min-height: 36px;
        padding: 0.52rem 0.72rem !important;
        font-size: 0.74rem;
        letter-spacing: 0.04em;
    }

    .rnps2-product-picker-actions__price {
        font-size: 0.82rem;
    }

    .rnps2-product-picker-actions__price--free {
        font-size: 0.76rem;
    }

    .rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__header,
    .rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled .rnps2-overlay-modal__header {
        padding: 0.95rem 4rem 0.72rem 0.95rem !important;
    }

    .rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__close,
    .rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled .rnps2-overlay-modal__close {
        top: 0.78rem;
        right: 0.82rem;
        width: 32px;
        height: 32px;
    }

    .rnps2-overlay-modal--preinstalled-shell {
        align-items: flex-start;
        padding: 0.4rem;
    }

    .rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled {
        width: min(96vw, 640px);
        max-height: 92vh;
        border-radius: 20px;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-library-grid,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.58rem 0.38rem !important;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card {
        min-width: 0;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media,
    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-detail__cover,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-detail__cover {
        aspect-ratio: 0.56 / 1 !important;
        border-radius: 12px 12px 9px 9px;
        margin-left: 0 !important;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__body,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__body {
        padding-inline: 0;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__body strong,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__body strong {
        font-size: 0.68rem !important;
        line-height: 1.18;
        min-height: 2.36em;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__toggle,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__toggle {
        min-height: 31px !important;
        padding: 0.36rem 0.18rem !important;
        font-size: 0.62rem !important;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__spine,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__spine {
        top: 0.3rem;
        left: 0.3rem;
        padding: 0.12rem 0.28rem;
        font-size: 0.42rem;
    }
}

/* Phase 4.7 PSPVault stacked choices, saved state, and tighter PSP covers */
.rnps2-product-picker-box {
    --rnps2-picker-button-subtitle-gap: 2px;
}

.rnps2-product-picker-actions,
.rnps2-product-picker-actions--with-preinstalled,
.rnps2-product-picker-actions--single {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

.rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-choice--preinstalled,
.rnps2-product-picker-actions--with-preinstalled .rnps2-product-picker-choice--custom,
.rnps2-product-picker-actions--single .rnps2-product-picker-choice--custom {
    width: 100% !important;
    align-self: stretch !important;
}

.rnps2-product-picker-choice {
    align-items: stretch;
    gap: 0.24rem;
}

.rnps2-product-picker-choice__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 18px;
    margin: 0 0 0.06rem;
}

.rnps2-product-picker-choice__meta-spacer {
    flex: 1 1 auto;
}

.rnps2-product-picker-choice__info {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666b75;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
}

.rnps2-product-picker-choice__info:hover,
.rnps2-product-picker-choice__info:focus {
    color: #111214;
    text-decoration: none;
}

.rnps2-product-picker-choice__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
}

.rnps2-product-picker-actions__primary,
.rnps2-product-picker-actions__secondary,
.rnps2-product-picker-actions__primary:link,
.rnps2-product-picker-actions__secondary:link,
.rnps2-product-picker-actions__primary:visited,
.rnps2-product-picker-actions__secondary:visited {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 74px;
    padding: 0.9rem 1rem !important;
    border-radius: 999px !important;
    border: 1.6px solid #111214 !important;
    background: transparent !important;
    color: #111214 !important;
    -webkit-text-fill-color: #111214;
    box-shadow: none !important;
}

.rnps2-product-picker-actions__button-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: none;
}

.rnps2-product-picker-actions__button-subtitle {
    display: block;
    margin-top: var(--rnps2-picker-button-subtitle-gap, 2px);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.78;
}

.rnps2-product-picker-actions__button-subtitle--free {
    letter-spacing: 0.09em;
}

.rnps2-product-picker-choice.is-selected .rnps2-product-picker-actions__primary,
.rnps2-product-picker-choice.is-selected .rnps2-product-picker-actions__secondary,
.rnps2-product-picker-choice.is-selected .rnps2-product-picker-actions__primary:link,
.rnps2-product-picker-choice.is-selected .rnps2-product-picker-actions__secondary:link,
.rnps2-product-picker-choice.is-selected .rnps2-product-picker-actions__primary:visited,
.rnps2-product-picker-choice.is-selected .rnps2-product-picker-actions__secondary:visited {
    background: #111214 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 18, 20, 0.14) !important;
}

.rnps2-product-picker-choice.is-selected .rnps2-product-picker-actions__button-subtitle {
    color: #ffffff !important;
    opacity: 0.92;
}

.rnps2-product-picker-actions__or {
    display: block;
    align-self: center;
    margin: -0.05rem 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #111214;
}

.rnps2-picker-genre-select {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 18px;
    border: 1px solid #cdd3dd;
    background: #f3f5f8;
    color: #111214;
    font-weight: 600;
    padding: 0.82rem 2.5rem 0.82rem 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.rnps2-picker-genre-select:focus {
    border-color: #111214;
    box-shadow: 0 0 0 2px rgba(17, 18, 20, 0.1);
    outline: none;
}

.rnps2-overlay-modal--picker-shell,
.rnps2-overlay-modal--preinstalled-shell {
    position: fixed !important;
    inset: 0 !important;
    overflow: hidden !important;
    touch-action: none;
}

.rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker,
.rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled {
    position: relative;
}

.rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__header,
.rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled .rnps2-overlay-modal__header {
    padding: 1rem 4.8rem 0.78rem 1rem !important;
}

.rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__close,
.rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled .rnps2-overlay-modal__close {
    top: 0.82rem !important;
    right: 0.82rem !important;
    z-index: 4;
}

.rnps2-product-picker-modal__header h3,
.rnps2-product-picker-modal__header p,
.rnps2-product-picker-modal__header--preinstalled h3,
.rnps2-product-picker-modal__header--preinstalled p {
    padding-right: 0.4rem;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-library-grid,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.6rem 0.34rem !important;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card {
    width: 92%;
    justify-self: center;
    min-width: 0;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media,
[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-detail__cover,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-detail__cover {
    width: 88%;
    margin-left: auto !important;
    margin-right: auto !important;
    aspect-ratio: 0.58 / 1 !important;
    border-radius: 13px 13px 10px 10px;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__body,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__body {
    padding-top: 0.28rem;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__body strong,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__body strong {
    font-size: 0.68rem !important;
    line-height: 1.18;
    min-height: 2.38em;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__toggle,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__toggle {
    min-height: 30px !important;
    padding: 0.35rem 0.18rem !important;
    font-size: 0.62rem !important;
}

@media (max-width: 560px) {
    .rnps2-product-picker-choice__info {
        font-size: 0.68rem;
    }

    .rnps2-product-picker-actions__primary,
    .rnps2-product-picker-actions__secondary,
    .rnps2-product-picker-actions__primary:link,
    .rnps2-product-picker-actions__secondary:link,
    .rnps2-product-picker-actions__primary:visited,
    .rnps2-product-picker-actions__secondary:visited {
        min-height: 68px;
        padding: 0.82rem 0.88rem !important;
    }

    .rnps2-product-picker-actions__button-title {
        font-size: 0.92rem;
    }

    .rnps2-product-picker-actions__button-subtitle {
        font-size: 0.66rem;
    }

    .rnps2-product-picker-actions__or {
        font-size: 0.92rem;
    }

    .rnps2-library-tools--picker {
        grid-template-columns: minmax(0, 1fr) 120px !important;
        gap: 0.5rem;
    }

    .rnps2-picker-genre-select {
        padding: 0.74rem 2rem 0.74rem 0.8rem;
        font-size: 0.82rem;
    }

    .rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__header,
    .rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled .rnps2-overlay-modal__header {
        padding: 0.95rem 4.7rem 0.72rem 0.95rem !important;
    }

    .rnps2-overlay-modal--picker-shell .rnps2-overlay-modal__dialog--picker .rnps2-overlay-modal__close,
    .rnps2-overlay-modal--preinstalled-shell .rnps2-overlay-modal__dialog--preinstalled .rnps2-overlay-modal__close {
        top: 0.78rem !important;
        right: 0.78rem !important;
        width: 32px;
        height: 32px;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-library-grid,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.55rem 0.3rem !important;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card {
        width: 94%;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media,
    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-detail__cover,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-detail__cover {
        width: 86%;
        aspect-ratio: 0.56 / 1 !important;
    }
}


/* Phase 4.8 PSPVault picker polish: visible genre select, auto-load friendliness, no PSP badge */
.rnps2-picker-genre-wrap {
    position: relative;
    min-width: 0;
}

.rnps2-picker-genre-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.58rem;
    height: 0.58rem;
    border-right: 2px solid #111214;
    border-bottom: 2px solid #111214;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    opacity: 0.75;
}

.rnps2-picker-genre-select {
    display: block !important;
    width: 100% !important;
    min-height: 52px !important;
    height: 52px !important;
    line-height: 1.2 !important;
    box-sizing: border-box;
    padding: 0 2.55rem 0 1rem !important;
    border-radius: 18px !important;
    border: 1px solid #d2d7df !important;
    background: #ffffff !important;
    color: #111214 !important;
    -webkit-text-fill-color: #111214;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 8px 18px rgba(17,18,20,0.04);
    background-image: none !important;
    text-indent: 0 !important;
    text-overflow: ellipsis;
    opacity: 1 !important;
}

.rnps2-picker-genre-select option {
    color: #111214;
}

.rnps2-picker-genre-select:focus {
    border-color: #111214 !important;
    box-shadow: 0 0 0 2px rgba(17, 18, 20, 0.08) !important;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__spine,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__spine {
    display: none !important;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card {
    width: 100% !important;
    gap: 0.16rem !important;
    align-content: start;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media,
[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-detail__cover,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-detail__cover {
    width: 100% !important;
    aspect-ratio: 0.71 / 1 !important;
    margin: 0 auto !important;
    border-radius: 10px !important;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media img,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media img,
[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-detail__cover img,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-detail__cover img {
    object-fit: cover !important;
    object-position: center top !important;
    background: #fff;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__body,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__body {
    display: flex !important;
    flex-direction: column;
    gap: 0.16rem !important;
    padding: 0 !important;
    margin-top: -0.02rem;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__body strong,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__body strong {
    display: block;
    margin: 0;
    line-height: 1.08 !important;
    min-height: 2.08em !important;
}

[data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__toggle,
[data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__toggle {
    margin-top: 0.08rem;
}

.rnps2-library-loadmore {
    min-height: 1px;
}

@media (max-width: 560px) {
    .rnps2-picker-genre-select {
        min-height: 48px !important;
        height: 48px !important;
        padding: 0 2.35rem 0 0.88rem !important;
        font-size: 0.88rem !important;
    }

    .rnps2-picker-genre-wrap::after {
        right: 0.88rem;
        width: 0.52rem;
        height: 0.52rem;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-library-grid,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.52rem 0.34rem !important;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__media,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__media,
    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-detail__cover,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-detail__cover {
        aspect-ratio: 0.7 / 1 !important;
    }

    [data-rnps2-product-picker="1"][data-platform="psp"] .rnps2-game-card__body strong,
    [data-rnps2-product-picker="1"][data-platform="playstation-portable"] .rnps2-game-card__body strong {
        font-size: 0.69rem !important;
        line-height: 1.08 !important;
        min-height: 2.08em !important;
    }
}
