﻿body.playground-home {
    min-width: 320px;
    margin: 0;
    color: #101827;
    background: #ffffff;
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

.playground-home a {
    text-decoration: none;
}

.pg-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    width: min(640px, 100%);
    height: 104px;
    margin-inline: auto;
    padding-inline: 22px;
    border-bottom: 4px solid #d8dde5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.pg-logo,
.pg-detail-topbar__brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 50px;
    min-width: 0;
    overflow: visible;
}

.pg-logo img,
.pg-detail-topbar__brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.pg-logo .site-logo--dark,
.pg-detail-topbar__brand .site-logo--dark {
    display: none;
}

.pg-icon-button,
.pg-menu-button,
.pg-add-button,
.pg-cart-button {
    display: inline-grid;
    place-items: center;
    border: 0;
    cursor: pointer;
}

.pg-icon-button {
    width: 44px;
    height: 44px;
    padding: 0;
    color: #6b7280;
    background: transparent;
}

.pg-menu-button {
    justify-self: end;
    width: 54px;
    height: 54px;
    color: #374151;
    border: 2px solid #d9dee7;
    border-radius: 999px;
    background: #ffffff;
}

.pg-icon-button svg,
.pg-menu-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.pg-menu-button svg {
    width: 26px;
    height: 26px;
}

.pg-search-modal[hidden] {
    display: none !important;
}

.pg-search-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: Inter, "Plus Jakarta Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.pg-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 22, 0.68);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity 220ms ease;
}

.pg-search-modal__dialog {
    --pg-search-edge-space: 42px;
    position: relative;
    z-index: 1;
    width: min(672px, calc(100vw - 40px));
    max-height: min(720px, calc(100vh - 40px));
    overflow: hidden;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid rgba(209, 209, 209, 0.2);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: opacity 240ms ease, transform 240ms ease;
}

.pg-search-modal.is-open .pg-search-modal__backdrop,
.pg-search-modal.is-open .pg-search-modal__dialog {
    opacity: 1;
}

.pg-search-modal.is-open .pg-search-modal__dialog {
    transform: translateY(0) scale(1);
}

.pg-search-modal__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: var(--pg-search-edge-space) 32px;
    border-bottom: 1px solid #f5f5f5;
}

.pg-search-modal__form {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 42px;
    padding: 0 8px;
    color: #8c90a1;
    background: #e8e8e8;
    border: 1px solid rgba(209, 209, 209, 0.3);
    border-radius: 999px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.pg-search-modal__form:focus-within {
    background: #ffffff;
    border-color: rgba(0, 102, 255, 0.52);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.pg-search-modal__form > .material-symbols-outlined {
    flex: 0 0 auto;
    margin-left: 8px;
    font-size: 22px;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.pg-search-modal__form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 8px 12px;
    color: #1a1a1a;
    font: inherit;
    font-size: 16px;
    line-height: 1.6;
    border: 0;
    outline: 0;
    background: transparent;
}

.pg-search-modal__form input::placeholder {
    color: #8c90a1;
}

.pg-search-modal__form button {
    flex: 0 0 auto;
    height: 32px;
    margin-right: 4px;
    padding: 0 16px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    border: 0;
    border-radius: 999px;
    background: #0066ff;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.pg-search-modal__form button:hover {
    background: #0054d6;
    box-shadow: 0 10px 18px rgba(0, 102, 255, 0.18);
    transform: translateY(-1px);
}

.pg-search-modal__close {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: 0;
    padding: 0;
    color: #4a4a4a;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.pg-search-modal__close:hover {
    color: #1a1a1a;
    background: #f5f5f5;
    transform: none;
}

.pg-search-modal__body {
    max-height: min(614px, calc(100vh - 126px));
    overflow-y: auto;
    padding: 32px 32px var(--pg-search-edge-space);
}

.pg-search-modal__body::-webkit-scrollbar {
    width: 6px;
}

.pg-search-modal__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d1d1d1;
}

.pg-search-modal__top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.pg-search-modal__block + .pg-search-modal__block {
    margin-top: 0;
}

.pg-search-modal__top-grid + .pg-search-modal__block {
    margin-top: 32px;
}

.pg-search-modal__block h3,
.pg-search-modal__block-head h3 {
    margin: 0 0 16px;
    color: #5a5a5a;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pg-search-modal__block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pg-search-modal__block-head h3 {
    margin: 0;
}

.pg-search-modal__block-head button {
    padding: 0;
    color: #0066ff;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.pg-search-modal__block-head button:hover {
    color: #0054d6;
    text-decoration: underline;
}

.pg-search-modal__block-head button:active,
.pg-search-modal__block-head button.is-clearing {
    opacity: 0.55;
    transform: scale(0.94);
}

.pg-search-modal__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pg-search-modal__chips button {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    height: 38px;
    gap: 8px;
    padding: 0 16px;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    border: 1px solid rgba(209, 209, 209, 0.72);
    border-radius: 999px;
    background: #f0f0f0;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.pg-search-modal__chip-label {
    display: block;
    min-width: 0;
    max-width: 220px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pg-search-modal__chips button:hover {
    color: #0066ff;
    border-color: rgba(0, 102, 255, 0.45);
    background: #f5f5f5;
    transform: translateY(-1px);
}

.pg-search-modal__chips .material-symbols-outlined {
    color: #cc4204;
    font-size: 16px;
}

.pg-search-modal__recent-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-search-modal__recent-list button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    align-items: center;
    width: 100%;
    min-height: 40px;
    gap: 12px;
    padding: 8px;
    color: #1a1a1a;
    text-align: left;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background-color 180ms ease;
}

.pg-search-modal__recent-list button:hover {
    background: #f5f5f5;
}

.pg-search-modal__recent-list span:not(.material-symbols-outlined) {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pg-search-modal__recent-list .material-symbols-outlined {
    color: #8c90a1;
    font-size: 20px;
}

.pg-search-modal__recent-list .material-symbols-outlined:last-child {
    font-size: 18px;
    opacity: 0;
    transition: opacity 180ms ease;
}

.pg-search-modal__recent-list button:hover .material-symbols-outlined:last-child {
    opacity: 1;
}

.pg-search-modal__latest {
    padding: 16px 16px 0;
    border-top: 1px solid #f5f5f5;
}

.pg-search-modal__latest h3 {
    margin-bottom: 16px;
}

.pg-search-modal__latest-grid {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    overflow-x: auto;
    padding: 0 2px;
}

.pg-search-modal__latest-grid::-webkit-scrollbar {
    height: 6px;
}

.pg-search-modal__latest-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d1d1d1;
}

.pg-search-modal__game {
    flex: 0 0 100px;
    width: 100px;
    display: grid;
    gap: 8px;
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform 220ms ease, filter 220ms ease;
}

.pg-search-modal__game:hover {
    filter: brightness(1.04);
    transform: translateY(-3px);
}

.pg-search-modal__thumb {
    display: block;
    width: 100px;
    height: 64px;
    overflow: hidden;
    border: 1px solid rgba(209, 209, 209, 0.45);
    border-radius: 12px;
    background: #f0f0f0;
}

.pg-search-modal__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-search-modal__game-info {
    display: block;
    min-width: 0;
}

.pg-search-modal__game-info strong,
.pg-search-modal__game-info small {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pg-search-modal__game-info strong {
    color: #1a1a1a;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

.pg-search-modal__game-info small {
    display: none;
}

.pg-search-modal__game em {
    display: none;
}

.pg-search-modal__empty {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 640px) {
    .pg-search-modal {
        align-items: start;
        padding: 16px;
    }

    .pg-search-modal__dialog {
        --pg-search-edge-space: 28px;
        width: 100%;
        border-radius: 18px;
    }

    .pg-search-modal__header {
        gap: 10px;
        padding: var(--pg-search-edge-space) 14px;
    }

    .pg-search-modal__form {
        height: 46px;
    }

    .pg-search-modal__form input {
        font-size: 14px;
    }

    .pg-search-modal__form button {
        padding: 0 14px;
    }

    .pg-search-modal__body {
        padding: 22px 18px var(--pg-search-edge-space);
    }

    .pg-search-modal__top-grid {
        grid-template-columns: 1fr;
    }

    .pg-search-modal__block + .pg-search-modal__block {
        margin-top: 22px;
    }
}

.pg-app-shell {
    position: relative;
    width: min(640px, 100%);
    min-height: calc(100vh - 104px);
    margin-inline: auto;
    padding: 34px 22px 124px;
    box-sizing: border-box;
}

.pg-hero {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 18px;
    background: #101827;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.pg-hero__link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.pg-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0) 0%, rgba(7, 17, 31, 0.12) 52%, rgba(7, 17, 31, 0.82) 100%);
}

.pg-hero__content {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    color: #ffffff;
}

.pg-pill,
.pg-game-card__category,
.pg-game-card__size {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.pg-pill {
    background: #1068ea;
}

.pg-hero h1 {
    margin: 15px 0 8px;
    overflow: hidden;
    font-size: 23px;
    line-height: 1.18;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 500;
}

.pg-mobile-hero-slider {
    display: none;
}

.pg-section {
    margin-top: 44px;
}

.pg-section__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pg-section__heading h2 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    color: #101827;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-section__heading a {
    color: #1068ea;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.pg-game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 28px;
}

.pg-home-mobile-load-more {
    display: flex;
    justify-content: center;
    margin: 28px 0 0;
}

.pg-home-mobile-load-more[hidden] {
    display: none;
}

.pg-home-mobile-load-more__button {
    min-width: 128px;
    min-height: 42px;
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #0066d9;
    box-shadow: 0 10px 24px rgba(0, 102, 217, 0.18);
    font-size: 14px;
    line-height: 20px;
    font-weight: 800;
    cursor: pointer;
}

.pg-home-mobile-load-more__button:active {
    transform: scale(0.96);
}

.pg-home-mobile-load-more__text {
    color: #7d8594;
    font-size: 13px;
    font-weight: 700;
}

.pg-game-card {
    position: relative;
    min-width: 0;
}

.pg-game-card__link {
    display: block;
    color: inherit;
}

.pg-game-card__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #0f172a;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

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

.pg-game-card__category {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    max-width: calc(100% - 58px);
    height: 28px;
    min-height: 28px;
    padding: 4px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-game-card__language {
    top: 8px;
    left: 8px;
    min-width: 42px;
    height: 28px;
    padding: 4px 10px;
    font-size: 12px;
}

.pg-game-card__size {
    position: absolute;
    bottom: 10px;
    left: 10px;
    min-height: 32px;
    padding-inline: 11px;
    background: rgba(55, 65, 81, 0.84);
}

.pg-game-card h3 {
    margin: 12px 0 16px;
    overflow: hidden;
    color: #101827;
    font-size: 18px;
    line-height: 1.24;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-game-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pg-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7c8596;
    font-size: 14px;
    font-weight: 500;
}

.pg-views svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.pg-add-button {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 999px;
    background: #1068ea;
    box-shadow: 0 10px 20px rgba(16, 104, 234, 0.24);
}

.pg-add-button.is-unlocked,
.pg-add-button.is-in-cart {
    opacity: 0.55;
    background: #1068ea;
    box-shadow: 0 6px 14px rgba(16, 104, 234, 0.12);
    filter: saturate(0.75);
}

.pg-add-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.pg-cart-button {
    position: fixed;
    right: max(18px, calc(50vw - 320px + 18px));
    bottom: 96px;
    z-index: 30;
    width: 56px;
    height: 56px;
    color: #ffffff;
    border-radius: 999px;
    background: #1068ea;
    box-shadow: 0 8px 20px rgba(0, 88, 188, 0.4);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.pg-cart-button.is-active {
    background: #0d67ea;
}

.pg-cart-button.is-bumped {
    transform: scale(1.08);
    box-shadow: 0 22px 42px rgba(16, 104, 234, 0.38);
}

.pg-cart-button__count {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding-inline: 4px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ba1a1a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.pg-cart-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.pg-cart-panel[hidden] {
    display: none;
}

.pg-cart-panel {
    position: fixed;
    inset: 0;
    z-index: 44;
}

.pg-cart-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 15, 26, 0.34);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 180ms ease;
}

.pg-cart-panel__sheet {
    position: absolute;
    inset-inline: 0;
    bottom: calc(96px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    width: min(640px, 100%);
    height: min(calc(85vh - 96px), 820px);
    margin-inline: auto;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px 24px 0 0;
    background: rgba(250, 249, 254, 0.95);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(24px);
    opacity: 0;
    transform: translateY(24px);
    transition: transform 180ms ease, opacity 180ms ease;
}

.pg-cart-panel.is-open .pg-cart-panel__backdrop {
    opacity: 1;
}

.pg-cart-panel.is-open .pg-cart-panel__sheet {
    opacity: 1;
    transform: translateY(0);
}

.pg-cart-panel__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(227, 226, 231, 0.5);
    background: rgba(250, 249, 254, 0.65);
    backdrop-filter: blur(18px);
}

.pg-cart-panel__spacer {
    width: 40px;
    flex: 0 0 auto;
}

.pg-cart-panel__title {
    margin: 0;
    flex: 1 1 auto;
    color: #1a1b1f;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.pg-cart-panel__close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #f4f3f8;
    color: #414755;
    cursor: pointer;
}

.pg-cart-panel__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pg-cart-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px 20px 18px;
}

.pg-cart-list {
    display: grid;
    gap: 8px;
}

.pg-cart-list__item {
    display: grid;
    grid-template-columns: 22px 56px minmax(0, 1fr) 76px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(227, 226, 231, 0.2);
    border-radius: 16px;
    background: #faf9fe;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.pg-cart-list__item > div:not(.pg-cart-list__actions) {
    min-width: 0;
}

.pg-cart-list__item.is-dragging {
    opacity: 0.55;
}

.pg-cart-list__item.is-source-hidden {
    box-shadow: inset 0 0 0 1px #d8e2ff;
}

.pg-cart-list__item.is-drop-target {
    background: #e9f2ff;
    box-shadow: inset 0 0 0 1px #adc6ff;
}

.pg-cart-list__index {
    color: #c1c6d7;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.pg-cart-list__item img {
    display: block;
    width: 56px;
    height: 56px;
    border: 1px solid #eeedf3;
    border-radius: 12px;
    object-fit: cover;
}

.pg-cart-list__item strong,
.pg-cart-list__item span {
    display: block;
}

.pg-cart-list__item strong {
    overflow: hidden;
    color: #1a1b1f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-cart-list__item span {
    margin-top: 5px;
    color: #717786;
    font-size: 11px;
    font-weight: 500;
}

.pg-cart-list__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    width: 76px;
}

.pg-cart-list__remove {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 218, 214, 0.45);
    color: #ba1a1a;
    cursor: pointer;
}

.pg-cart-list__remove svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pg-cart-list__handle {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(113, 119, 134, 0.6);
    font-size: 20px;
    font-weight: 700;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.pg-cart-list__handle span {
    line-height: 1;
    transform: rotate(90deg);
}

.pg-cart-list__drag-proxy {
    position: fixed;
    z-index: 90;
    opacity: 0.96;
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.pg-cart-panel__footer {
    position: relative;
    flex: 0 0 auto;
    margin-top: auto;
    background: rgba(250, 249, 254, 0.82);
    border-top: 0;
    backdrop-filter: blur(24px);
    box-shadow: none;
}

.pg-cart-panel__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(227, 226, 231, 0.32);
}

.pg-cart-panel__summary span {
    color: #414755;
    font-size: 15px;
    font-weight: 500;
}

.pg-cart-panel__summary strong {
    color: #0058bc;
    font-size: 22px;
    font-weight: 700;
}

.pg-cart-panel__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
}

.pg-cart-panel__field {
    position: relative;
    flex: 1 1 auto;
}

.pg-cart-panel__field svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 20px;
    height: 20px;
    fill: #717786;
    transform: translateY(-50%);
}

.pg-cart-panel__field input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid rgba(193, 198, 215, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    color: #1a1b1f;
    font-size: 15px;
    box-sizing: border-box;
}

.pg-cart-panel__field input:focus {
    outline: none;
    border-color: #0058bc;
    box-shadow: 0 0 0 4px rgba(0, 88, 188, 0.12);
}

.pg-cart-panel__submit {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 12px;
    background: #0058bc;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 16px rgba(0, 88, 188, 0.2);
    cursor: pointer;
}

.pg-success-modal[hidden] {
    display: none;
}

.pg-success-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.pg-success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.pg-success-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90vw, 380px);
    padding: 24px;
    border-radius: 22px;
    background: #faf9fe;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
}

.pg-success-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #717786;
    cursor: pointer;
}

.pg-success-modal__close svg,
.pg-success-modal__copy svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pg-success-modal__icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin: 4px auto 24px;
    border-radius: 999px;
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.pg-success-modal__icon svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

.pg-success-modal__title {
    margin: 0 0 12px;
    color: #1a1b1f;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.pg-success-modal__text {
    margin: 0 0 18px;
    color: #414755;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

.pg-success-modal__text span,
.pg-success-modal__text strong {
    display: block;
}

.pg-success-modal__text span {
    color: #414755;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.pg-success-modal__text strong {
    margin: 2px 0;
    color: #1a1b1f;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pg-success-modal__copy-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px 2px;
    border-radius: 999px;
    background: rgba(0, 98, 255, 0.12);
    color: #0062ff;
    font-style: normal;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.pg-success-modal__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #eeedf3;
    margin-bottom: 18px;
}

.pg-success-modal__phone span {
    flex: 1 1 auto;
    color: #1a1b1f;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pg-success-modal__copy {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #0058bc;
    color: #ffffff;
    cursor: pointer;
}

.pg-success-modal__submit {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 999px;
    background: #0058bc;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(0, 88, 188, 0.2);
    cursor: pointer;
}

.pg-toast {
    position: fixed;
    bottom: 188px;
    left: 50%;
    z-index: 80;
    padding: 12px 22px;
    border-radius: 999px;
    background: #2f3034;
    color: #f1f0f5;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.pg-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.pg-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 8px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(227, 226, 231, 0.3);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-sizing: border-box;
}

.pg-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 64px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(65, 71, 85, 0.4);
    text-decoration: none;
    cursor: pointer;
}

.pg-bottom-nav__item:hover,
.pg-bottom-nav__item.is-active {
    color: #0058bc;
    background: transparent;
}

.pg-bottom-nav__item svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.pg-bottom-nav__item span {
    max-width: 76px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-modal[hidden] {
    display: none;
}

.pg-modal {
    position: fixed;
    inset: 0;
    z-index: 45;
}

.pg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.5);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 180ms ease;
}

.pg-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(340px, calc(100vw - 34px));
    padding: 24px 22px 22px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px);
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
    transition: transform 180ms ease, opacity 180ms ease;
    box-sizing: border-box;
}

.pg-modal.is-open .pg-modal__backdrop {
    opacity: 1;
}

.pg-modal.is-open .pg-modal__dialog {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pg-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #eef3fb;
    color: #64748b;
    cursor: pointer;
}

.pg-modal__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pg-modal__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 2px auto 18px;
    border-radius: 999px;
    background: rgba(16, 104, 234, 0.12);
    color: #1068ea;
}

.pg-modal__icon svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.pg-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #1068ea;
    font-size: 13px;
    font-weight: 800;
    margin: 0 auto;
}

.pg-modal__title {
    margin: 16px 0 10px;
    color: #101827;
    font-size: 22px;
    line-height: 1.22;
    font-weight: 900;
    text-align: center;
}

.pg-modal__text {
    margin: 0;
    color: #5b6577;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.pg-modal__form {
    margin-top: 20px;
}

.pg-modal__label {
    display: block;
    margin-bottom: 8px;
    color: #101827;
    font-size: 14px;
    font-weight: 800;
}

.pg-modal__input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d8e1ec;
    border-radius: 14px;
    background: #ffffff;
    color: #101827;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.pg-modal__input:focus {
    outline: none;
    border-color: #1068ea;
    box-shadow: 0 0 0 4px rgba(16, 104, 234, 0.12);
}

.pg-modal__hint {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.pg-modal__error {
    margin: 10px 0 0;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
}

.pg-modal__submit {
    width: 100%;
    height: 52px;
    margin-top: 18px;
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f67ea 0%, #2b8dff 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(16, 104, 234, 0.24);
}

.pg-modal__submit.is-loading {
    opacity: 0.94;
}

.pg-modal__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: pg-spin 700ms linear infinite;
}

.pg-modal__submit.is-loading .pg-modal__spinner {
    display: inline-block;
}

.pg-modal__submit.is-loading .pg-modal__submit-text {
    transform: translateX(2px);
}

.pg-flyer {
    position: fixed;
    z-index: 80;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
    pointer-events: none;
    transition: transform 620ms cubic-bezier(0.18, 0.78, 0.22, 1), opacity 620ms ease;
}

.pg-flyer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-modal__dialog.is-shaking {
    animation: pg-shake 220ms linear;
}

@keyframes pg-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pg-shake {
    0%,
    100% {
        transform: translate(-50%, -50%) translateX(0);
    }

    25% {
        transform: translate(-50%, -50%) translateX(-8px);
    }

    50% {
        transform: translate(-50%, -50%) translateX(8px);
    }

    75% {
        transform: translate(-50%, -50%) translateX(-6px);
    }
}

@media (max-width: 560px) {
    .pg-topbar {
        height: 72px;
        grid-template-columns: 40px 1fr 40px;
        padding-inline: 20px;
    }

    .pg-logo,
.pg-detail-topbar__brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 50px;
    min-width: 0;
    overflow: visible;
}

.pg-logo img,
.pg-detail-topbar__brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.pg-logo .site-logo--dark,
.pg-detail-topbar__brand .site-logo--dark {
    display: none;
}

    .pg-icon-button,
    .pg-menu-button {
        width: 34px;
        height: 34px;
    }

    .pg-icon-button svg,
    .pg-menu-button svg {
        width: 22px;
        height: 22px;
    }

    .pg-app-shell {
        min-height: calc(100vh - 72px);
        padding: 36px 22px 120px;
    }

    body.playground-home .pg-home-mobile > .pg-hero:not(.pg-mobile-hero-slider) {
        display: none;
    }

    body.playground-home .pg-mobile-hero-slider {
        display: block;
        width: 100vw;
        width: 100svw;
        max-width: none;
        height: var(--pg-mobile-hero-height, min(270px, 62.5vw));
        margin-top: 0;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        overflow: hidden;
        border-radius: 0;
        box-shadow: none;
    }

    .pg-mobile-hero-slider__track {
        position: relative;
        display: flex;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pg-mobile-hero-slider__track::-webkit-scrollbar {
        display: none;
    }

    .pg-mobile-hero-slider__slide {
        position: relative;
        flex: 0 0 100%;
        display: block;
        width: 100%;
        height: 100%;
        opacity: 1;
        pointer-events: auto;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        transition: none;
    }

    .pg-mobile-hero-slider__slide.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .pg-mobile-hero-slider__dots {
        position: absolute;
        right: 0;
        bottom: 12px;
        left: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        pointer-events: auto;
    }

    .pg-mobile-hero-slider__dots button {
        display: block;
        width: 6px;
        height: 6px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.52);
        cursor: pointer;
    }

    .pg-mobile-hero-slider__dots button.is-active {
        width: 18px;
        background: #ffffff;
    }

    .pg-mobile-hero-slider .pg-hero__content {
        bottom: 30px;
    }

    .pg-hero {
        height: 208px;
    }

    .pg-hero h1 {
        font-size: 20px;
    }

    .pg-hero p {
        font-size: 15px;
    }

    .pg-section__heading h2 {
        font-size: 24px;
    }

    .pg-game-grid {
        column-gap: 16px;
        row-gap: 26px;
    }

    .pg-game-card h3 {
        font-size: 16px;
    }

    .pg-cart-button {
        width: 64px;
        height: 64px;
        right: 24px;
        bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .pg-cart-button svg {
        width: 32px;
        height: 32px;
    }

    .pg-cart-panel__sheet {
        right: max(8px, env(safe-area-inset-right));
        left: max(8px, env(safe-area-inset-left));
        width: auto;
        max-width: none;
        margin-right: 0;
        margin-left: 0;
        height: calc(85vh - 96px - env(safe-area-inset-bottom));
    }

    .pg-cart-panel__body {
        max-height: none;
    }

    .pg-cart-panel__actions {
        gap: 10px;
    }

    .pg-cart-panel__submit {
        padding-inline: 22px;
    }

    .pg-modal__dialog {
        padding: 22px 18px 20px;
        border-radius: 22px;
    }

    .pg-modal__title {
        font-size: 22px;
    }

    .pg-toast {
        bottom: calc(156px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 561px) {
    .pg-bottom-nav {
        display: flex;
    }
}

@media (min-width: 900px) {
    .pg-cart-button,
    .pg-cart-panel,
    .pg-password-modal,
    button[data-add-game] {
        display: none !important;
    }
}

@media (max-width: 899px) {
    button[data-add-game].is-unlocked,
    button[data-add-game].is-in-cart {
        opacity: 0.55;
        filter: saturate(0.75);
    }
}

/* Mobile add-game verification modal with device and storage chooser. */
#pg-password-modal {
    z-index: 100;
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#pg-password-modal .pg-modal__backdrop {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#pg-password-modal .pg-modal__dialog {
    width: min(430px, calc(100vw - 32px));
    max-height: calc(100vh - 48px - env(safe-area-inset-bottom));
    padding: 0;
    overflow: hidden auto;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#pg-password-modal .pg-modal__dialog::-webkit-scrollbar {
    display: none;
}

#pg-password-modal .pg-modal__close {
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 38px;
    height: 38px;
    color: #94a3b8;
    background: transparent;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

#pg-password-modal .pg-modal__close:active {
    transform: scale(0.92);
}

#pg-password-modal .pg-modal__close:hover {
    color: #475569;
    background: rgba(15, 23, 42, 0.06);
}

#pg-password-modal .pg-modal__icon,
#pg-password-modal .pg-modal__text,
#pg-password-modal .pg-modal__hint {
    display: none !important;
}

#pg-password-modal .pg-modal__title {
    min-height: 66px;
    margin: 0;
    padding: 23px 64px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    text-align: left;
}

#pg-password-modal .pg-modal__form {
    margin: 0;
    padding: 22px 24px 24px;
}

.pg-device-modal__device-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pg-device-modal__device,
.pg-device-modal__storage-grid label {
    min-width: 0;
    cursor: pointer;
}

.pg-device-modal__device input,
.pg-device-modal__storage-grid input,
.pg-device-modal__other-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pg-device-modal__device-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 128px;
    padding: 12px 8px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #0f172a;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pg-device-modal__device-card:active {
    transform: scale(0.97);
}

.pg-device-modal__device input:checked + .pg-device-modal__device-card {
    border-color: rgba(0, 122, 255, 0.32);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.pg-device-modal__device-art {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    max-width: 78px;
    border-radius: 12px;
    color: #ffffff;
    overflow: hidden;
}

.pg-device-modal__device-art--switch {
    background: linear-gradient(135deg, #ff4d5d 0%, #1677ff 100%);
}

.pg-device-modal__device-art--oled {
    background: linear-gradient(135deg, #e2e8f0 0%, #111827 100%);
}

.pg-device-modal__device-art--lite {
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
}

.pg-device-modal__device-art .material-symbols-outlined {
    font-size: 34px;
    font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.pg-device-modal__storage {
    margin-top: 22px;
}

.pg-device-modal__storage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 4px 10px;
}

.pg-device-modal__storage-head > label:first-child,
#pg-password-modal .pg-modal__label {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

.pg-device-modal__other-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #007aff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.pg-device-modal__other-toggle .material-symbols-outlined {
    font-size: 17px;
    transition: transform 180ms ease;
}

.pg-device-modal__other-input:checked + .pg-device-modal__storage-head .pg-device-modal__other-toggle .material-symbols-outlined {
    transform: rotate(180deg);
}

.pg-device-modal__storage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pg-device-modal__storage-grid span {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 40px;
    padding: 11px 8px 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #0f172a;
    background: #f8fafc;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.pg-device-modal__storage-grid small {
    margin-left: 2px;
    color: currentColor;
    font-size: 10px;
    line-height: 1;
    opacity: 0.64;
    transform: translateY(-4px);
}

.pg-device-modal__storage-grid input:checked + span {
    border-color: rgba(0, 122, 255, 0.32);
    color: #007aff;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.pg-device-modal__extra-storage {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    overflow: hidden;
    transition: grid-template-rows 220ms ease, margin-top 220ms ease;
}

.pg-device-modal__extra-storage > .pg-device-modal__storage-grid {
    min-height: 0;
}

.pg-device-modal__other-input:checked ~ .pg-device-modal__extra-storage {
    grid-template-rows: 1fr;
    margin-top: 8px;
}

#pg-password-modal .pg-modal__label {
    display: block;
    margin: 22px 0 8px 4px;
}

#pg-password-modal .pg-modal__input {
    height: 48px;
    padding: 0 15px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #0f172a;
    background: #ffffff;
    font-size: 14px;
    line-height: 48px;
    font-weight: 600;
    text-align: left;
}

#pg-password-modal .pg-modal__input::placeholder {
    color: #94a3b8;
}

#pg-password-modal .pg-modal__input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 1px #007aff;
}

#pg-password-modal .pg-modal__error {
    margin: 8px 0 0 4px;
    color: #ef4444;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

#pg-password-modal .pg-modal__submit {
    height: 48px;
    margin-top: 18px;
    border-radius: 14px;
    background: #007aff;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(0, 122, 255, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

#pg-password-modal .pg-modal__submit:active {
    transform: scale(0.98);
}

#pg-password-modal .pg-modal__submit:hover {
    background: #006bea;
    box-shadow: 0 16px 30px rgba(0, 122, 255, 0.3);
}

@media (max-width: 420px) {
    #pg-password-modal .pg-modal__dialog {
        width: calc(100vw - 28px);
        border-radius: 22px;
    }

    #pg-password-modal .pg-modal__form {
        padding: 20px 18px 22px;
    }

    .pg-device-modal__device-grid {
        gap: 9px;
    }

    .pg-device-modal__device-card {
        min-height: 116px;
        padding: 10px 6px 12px;
        font-size: 13px;
    }

    .pg-device-modal__device-art {
        max-width: 68px;
    }
}

/* Final exact-pass for mobile device chooser modal based on provided code.html. */
#pg-password-modal {
    z-index: 100 !important;
}

#pg-password-modal .pg-modal__backdrop {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

#pg-password-modal .pg-modal__dialog {
    width: min(448px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 32px - env(safe-area-inset-bottom)) !important;
    padding: 0 !important;
    overflow: hidden auto !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.22) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#pg-password-modal .pg-modal__dialog::-webkit-scrollbar {
    display: none !important;
}

#pg-password-modal .pg-modal__icon,
#pg-password-modal .pg-modal__text,
#pg-password-modal .pg-modal__hint {
    display: none !important;
}

#pg-password-modal .pg-modal__title {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    height: 65px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 20px 64px 20px 24px !important;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9) !important;
    color: #0f172a !important;
    font-size: 20px !important;
    line-height: 24px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

#pg-password-modal .pg-modal__close {
    top: 14px !important;
    right: 16px !important;
    z-index: 3 !important;
    width: 36px !important;
    height: 36px !important;
    color: #94a3b8 !important;
    background: transparent !important;
}

#pg-password-modal .pg-modal__close svg {
    width: 20px !important;
    height: 20px !important;
}

#pg-password-modal .pg-modal__form {
    margin: 0 !important;
    padding: 24px !important;
}

#pg-password-modal .pg-device-modal__device-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

#pg-password-modal .pg-device-modal__device-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    height: 128px !important;
    min-height: 0 !important;
    padding: 16px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 500 !important;
    transition: border-color 300ms ease, background-color 300ms ease, box-shadow 300ms ease, transform 300ms ease !important;
}

#pg-password-modal .pg-device-modal__device-card:hover .pg-device-modal__device-art img {
    transform: scale(1.05) !important;
}

#pg-password-modal .pg-device-modal__device input:checked + .pg-device-modal__device-card {
    border-color: rgba(0, 122, 255, 0.3) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}

#pg-password-modal .pg-device-modal__device-art {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 0 12px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

#pg-password-modal .pg-device-modal__device-art img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 500ms ease !important;
}

#pg-password-modal .pg-device-modal__device-art .material-symbols-outlined {
    display: none !important;
}

#pg-password-modal .pg-device-modal__storage {
    margin-top: 24px !important;
}

#pg-password-modal .pg-device-modal__storage-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 8px 4px !important;
}

#pg-password-modal .pg-device-modal__storage-head > label:first-child,
#pg-password-modal .pg-modal__label {
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 600 !important;
}

#pg-password-modal .pg-device-modal__other-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #007aff !important;
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 500 !important;
}

#pg-password-modal .pg-device-modal__other-toggle .material-symbols-outlined {
    font-size: 16px !important;
    transition: transform 300ms ease !important;
}

#pg-password-modal .pg-device-modal__other-input:checked + .pg-device-modal__storage-head .pg-device-modal__other-toggle .material-symbols-outlined {
    transform: rotate(180deg) !important;
}

#pg-password-modal .pg-device-modal__storage-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

#pg-password-modal .pg-device-modal__storage-grid span {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    height: 40px !important;
    min-height: 0 !important;
    padding: 10px 8px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 500 !important;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease !important;
}

#pg-password-modal .pg-device-modal__storage-grid small {
    margin-left: 2px !important;
    color: currentColor !important;
    font-size: 10px !important;
    line-height: 1 !important;
    opacity: 0.6 !important;
    transform: translateY(-4px) !important;
}

#pg-password-modal .pg-device-modal__storage-grid input:checked + span {
    border-color: rgba(0, 122, 255, 0.3) !important;
    color: #007aff !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
}

#pg-password-modal .pg-device-modal__extra-storage {
    display: grid !important;
    grid-template-rows: 0fr !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    transition: grid-template-rows 300ms ease, margin-top 300ms ease !important;
}

#pg-password-modal .pg-device-modal__extra-storage > .pg-device-modal__storage-grid {
    min-height: 0 !important;
}

#pg-password-modal .pg-device-modal__other-input:checked ~ .pg-device-modal__extra-storage {
    grid-template-rows: 1fr !important;
    margin-top: 8px !important;
}

#pg-password-modal .pg-device-modal__capacity-preview {
    margin: 10px 4px 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 600 !important;
}

#pg-password-modal .pg-modal__label {
    display: block !important;
    margin: 24px 0 8px 4px !important;
}

#pg-password-modal .pg-modal__input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
}

#pg-password-modal .pg-modal__input::placeholder {
    color: #94a3b8 !important;
}

#pg-password-modal .pg-modal__input:focus {
    outline: none !important;
    border-color: #007aff !important;
    box-shadow: 0 0 0 1px #007aff !important;
}

#pg-password-modal .pg-modal__error {
    margin: 8px 0 0 4px !important;
    color: #ef4444 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

#pg-password-modal .pg-modal__submit {
    width: 100% !important;
    height: 48px !important;
    margin-top: 16px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #007aff !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.2) !important;
    transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease !important;
}

#pg-password-modal .pg-modal__submit:hover {
    background: #006ee8 !important;
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.3) !important;
}

#pg-password-modal .pg-modal__submit:active {
    transform: scale(0.98) !important;
}

@media (max-width: 420px) {
    #pg-password-modal .pg-modal__dialog {
        width: calc(100vw - 32px) !important;
    }

    #pg-password-modal .pg-modal__form {
        padding: 20px !important;
    }

    #pg-password-modal .pg-device-modal__device-card {
        min-height: 116px !important;
        padding: 12px !important;
    }
}

/* Softer verification modal finish inspired by the rounded password dialog reference. */
#pg-password-modal .pg-modal__dialog {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 26px !important;
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.28) !important;
}

#pg-password-modal .pg-modal__title {
    border-bottom-color: rgba(219, 234, 254, 0.78) !important;
}

#pg-password-modal .pg-modal__close {
    border-radius: 999px !important;
    color: #64748b !important;
    background: rgba(239, 246, 255, 0.86) !important;
}

#pg-password-modal .pg-modal__input {
    height: 56px !important;
    padding: 0 20px !important;
    border: 2px solid rgba(147, 197, 253, 0.55) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(37, 99, 235, 0.08) !important;
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

#pg-password-modal .pg-modal__input::placeholder {
    color: #94a3b8 !important;
    font-weight: 700 !important;
}

#pg-password-modal .pg-modal__input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.22), 0 12px 26px rgba(37, 99, 235, 0.14) !important;
}

#pg-password-modal .pg-modal__submit {
    height: 56px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #1473f8 0%, #268cff 100%) !important;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28) !important;
    font-size: 16px !important;
}

@media (max-width: 899px) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    .pg-keyboard-open .pg-bottom-nav {
        transform: translateY(100%) !important;
        pointer-events: none !important;
    }

    .pg-keyboard-open .pg-cart-button {
        transform: translateY(calc(var(--pg-keyboard-height, 0px) * -1)) !important;
    }

    .pg-keyboard-open .pg-cart-panel__sheet {
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
        height: min(calc(var(--pg-visual-height, 100vh) - 16px), 760px) !important;
        max-height: calc(var(--pg-visual-height, 100vh) - 16px) !important;
    }

    .pg-keyboard-open .pg-cart-panel__actions {
        padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }

    .pg-keyboard-open #pg-password-modal .pg-modal__dialog,
    .pg-keyboard-open .pg-search-modal__dialog,
    .pg-keyboard-open .pg-rating-modal__dialog,
    .pg-keyboard-open .pg-review-modal__dialog,
    .pg-keyboard-open .pg-review-success-modal__dialog,
    .pg-keyboard-open .pg-detail-pc-download-modal__dialog {
        max-height: calc(var(--pg-visual-height, 100vh) - 16px) !important;
    }
}

