/* BestGame storefront — shared layout, controls and purchase surfaces. */
:root {
  color-scheme: dark;
  --bg: #080d1f;
  --surface: #121b30ed;
  --surface-2: #1c2943f5;
  --line: #30445c;
  --text: #f3f7fc;
  --muted: #adbbce;
  --accent: #69eda5;
  --accent-ink: #09291b;
  --blue: #9db9ff;
  --danger: #ffb9b1;
  --cosmic-art-size: 760px;
  --radius: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-height: 64px;
  --region-bar-height: 56px;
  --top-dock-height: calc(var(--header-height) + var(--region-bar-height) + env(safe-area-inset-top, 0px));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-padding-block: calc(var(--top-dock-height) + 16px) 100px; }
body { margin: 0; min-width: 280px; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; isolation: isolate; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-color: #080d1f; background-image: linear-gradient(180deg, #05091cbf, #05091ccc), radial-gradient(ellipse at 15% 12%, #6245bb3b, transparent 64%), radial-gradient(ellipse at 85% 80%, #1bbda52b, transparent 60%), url('/store-cosmic-bg-v1.webp'); background-position: center, center, center, center top; background-size: auto, auto, auto, var(--cosmic-art-size) var(--cosmic-art-size); background-repeat: no-repeat, no-repeat, no-repeat, repeat; }
@media (max-width: 760px) { :root { --cosmic-art-size: 600px; } }
button, input, textarea, select { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select, a { outline-offset: 4px; }
:where(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--accent); }
#main:focus { outline: none; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
button, .price-block, .detail-price, .balance-value { font-variant-numeric: tabular-nums; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* First paint uses the same local stylesheet and logo as the storefront. */
.app-loading { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; padding: calc(32px + env(safe-area-inset-top, 0px)) 24px calc(90px + env(safe-area-inset-bottom, 0px)); background: radial-gradient(ellipse at 50% 37%, #1843444d, transparent 58%), linear-gradient(#080d1fb3, #080d1fea), url('/store-cosmic-bg-v1.webp') center top / var(--cosmic-art-size) var(--cosmic-art-size) repeat, #080d1f; color: #f5f8ff; opacity: 1; transition: opacity .2s ease; }
.app-loading[hidden] { display: none; }
.app-loading.is-leaving { opacity: 0; pointer-events: none; }
.app-loading-content { display: flex; flex-direction: column; align-items: center; width: min(100%, 360px); text-align: center; }
.app-loading-logo { display: block; width: 136px; height: 136px; margin-bottom: 23px; object-fit: contain; animation: boot-breathe 3s ease-in-out infinite; }
.app-loading-brand { font-size: clamp(34px, 10vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -1.6px; }
.app-loading-brand > span { color: #5beaa0; }
.app-loading-tagline { margin: 11px 0 31px; color: #b6c7d2; font-size: 12px; line-height: 1.5; }
.app-loading-progress { overflow: hidden; width: 128px; height: 3px; border-radius: 3px; background: #24373b; }
.app-loading-progress > span { display: block; width: 45%; height: 100%; border-radius: inherit; background: #5beaa0; animation: boot-progress 1.7s ease-in-out infinite; }
.app-loading-message { min-height: 36px; margin: 16px 0 0; color: #99aebf; font-size: 12px; line-height: 1.5; }
.app-loading-retry { min-height: 44px; margin-top: 16px; padding: 10px 18px; border: 1px solid #548e76; border-radius: 11px; background: #183b30; color: #c6f9db; font: inherit; font-size: 13px; font-weight: 650; }
.app-loading-retry[hidden] { display: none; }
.app-loading-retry:focus-visible { outline: 2px solid #5beaa0; outline-offset: 4px; }
.app-loading-footer { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 20px; right: 20px; margin: 0; text-align: center; color: #758b9e; font-size: 10px; letter-spacing: .5px; }
.app-loading.has-error .app-loading-progress { visibility: hidden; }
.app-loading.has-error .app-loading-logo { animation: none; }
@keyframes boot-breathe { 50% { transform: scale(1.035); } }
@keyframes boot-progress { from { transform: translateX(-110%); } to { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) {
  .app-loading, .app-loading-logo, .app-loading-progress > span { animation: none; transition: none; }
}
.skip-link { position: fixed; top: 10px; left: 50%; transform: translate(-50%, -160%); z-index: 50; padding: 13px 18px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 650; }
.skip-link:focus { transform: translate(-50%, 0); }
.ui-icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app-shell { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 36px; }
.app-topbar { position: sticky; top: 0; z-index: 30; width: 100vw; margin-inline: calc(50% - 50vw); padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(110deg, #0b1d2af5, #11152cf5 55%, #1c1634f5); box-shadow: 0 8px 22px #02081145; backdrop-filter: blur(12px); }
.app-topbar .app-header { position: relative; top: auto; z-index: auto; width: min(100%, 1240px); min-height: var(--header-height); margin-inline: auto; padding: 0 36px; border-bottom: 0; background: transparent; backdrop-filter: none; }
.top-region-bar { display: grid; place-items: center; min-height: var(--region-bar-height); padding: 2px max(18px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid #414373; background: #0e1730ed; }
.top-region-bar .region-picker { width: min(100%, 600px); padding: 2px; border-radius: 12px; }
.top-region-bar .region-picker button { min-height: 44px; }
.app-header { position: sticky; top: 0; z-index: 20; min-height: var(--header-height); display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #263449b3; background: #0b1420f5; backdrop-filter: blur(12px); }
.header-tools { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; }
.header-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #30465d; border-radius: 12px; color: #ddf4ed; background: #152333; transition: background .16s ease, border-color .16s ease; }
.header-icon:hover { border-color: var(--line); background: #152235; }
.home-view { padding-top: 22px; }
.home-region { display: grid; gap: 9px; width: min(100%, 390px); margin: 0 auto 28px; text-align: center; }
.home-region .section-label { margin: 0; }
.home-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.home-section-heading h2 { margin: 0; font-size: clamp(23px, 3vw, 30px); line-height: 1.2; letter-spacing: -.7px; }
.home-section-heading .eyebrow { justify-content: flex-start; margin-bottom: 7px; font-size: 9px; }
.home-section-heading .muted { margin: 7px 0 0; font-size: 11px; }
.home-carousel { --collection-hue: 105 237 165; min-width: 0; margin: 0 0 28px; padding: 20px 18px 16px; border: 1px solid rgb(var(--collection-hue) / .62); border-radius: 23px; background: linear-gradient(145deg, #112941b8, #10142fc7); box-shadow: inset 0 0 0 1px rgb(var(--collection-hue) / .07), 0 0 18px rgb(var(--collection-hue) / .08); }
.home-carousel[data-home-carousel="new"] { --collection-hue: 110 178 255; }
.home-carousel[data-home-carousel="collections"] { --collection-hue: 169 146 255; }
.home-carousel[data-home-carousel="preorders"] { --collection-hue: 183 151 255; }
.home-carousel[data-home-carousel="bestsellers"] { --collection-hue: 255 209 110; }
.home-carousel[data-home-carousel="all"] { --collection-hue: 107 211 229; }
.home-carousel[data-home-carousel="rental"] { --collection-hue: 244 159 206; }
.home-carousel .home-section-heading .eyebrow { color: rgb(var(--collection-hue)); }
.home-section-link { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #498f71; border-radius: 13px; color: #d2ffe6; background: linear-gradient(135deg, #1b4635, #142f27); font-size: 12px; font-weight: 700; transition: background .16s ease, border-color .16s ease; }
.home-carousel .featured-offers-track { margin-bottom: 6px; }
.home-empty { grid-column: 1 / -1; margin: 0; padding: 24px 16px; border: 1px dashed #34495f; border-radius: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.home-plus { margin-bottom: 30px; padding: 20px; border: 1px solid #d0b35c99; border-radius: 23px; background: linear-gradient(155deg, #3a354caa, #11182dcc); box-shadow: inset 0 0 0 1px #ffe17a0a, 0 0 18px #e9c5580d; }
.home-subscription-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: #0a1320; }
.home-subscription-months > button { min-width: 0; min-height: 44px; padding: 8px 4px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 650; }
.home-subscription-months > button.active { border-color: #69eda5aa; background: #1d4b36; color: #e7fff1; box-shadow: inset 0 1px 0 #a2ffd522; }
.home-subscription-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-subscription-grid > .home-empty { grid-column: 1 / -1; }
.home-subscription-card.subscription-plan { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 10px; border-radius: 16px; }
.home-subscription-open { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); text-align: center; }
.home-subscription-open .subscription-plan-cover-name { font-size: clamp(15px, 4vw, 30px); }
.home-subscription-open .subscription-plan-cover-service { font-size: clamp(11px, 3vw, 20px); letter-spacing: 1px; }
.home-subscription-open .ea-play-cover .subscription-plan-cover-service { font-size: clamp(19px, 5vw, 36px); }
.home-subscription-open .subscription-plan-cover-region { display: none; }
.home-subscription-open .subscription-plan-cover-wordmark { display: none; }
.home-subscription-title { width: 100%; font-size: 17px; font-weight: 750; line-height: 1.3; }
.home-subscription-duration { color: var(--muted); font-size: 11px; line-height: 1.5; }
.home-subscription-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.home-subscription-bottom .price-block { min-width: 0; }
.home-subscription-price { font-size: clamp(15px, 3.5vw, 23px); line-height: 1.3; white-space: nowrap; }
.home-subscription-add.primary-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; margin-left: auto; padding: 0; border-radius: 11px; font-size: 24px; }
.home-subscription-games { min-width: 0; min-height: 44px; padding: 10px 7px; border: 1px solid #49826e; border-radius: 12px; background: #18392d80; color: #d0f6e1; font-size: 12px; line-height: 1.4; transition: background .16s ease, border-color .16s ease; }
.subscription-catalog-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.game-open { position: relative; }
.game-membership-badges { position: absolute; top: 7px; right: 7px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: calc(100% - 14px); pointer-events: none; }
.game-membership { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; max-width: 100%; min-height: 31px; padding: 3px 8px; border: 1px solid #ffffff30; border-radius: 8px; background: #090e17f2; color: #f7f8fa; box-shadow: 0 2px 8px #0006; }
.plus-membership { border-color: #f5cf4666; }
.ea-membership { border-color: #ff474766; }
.subscription-brand-logo { display: block; flex: 0 1 auto; width: 94px; height: 24px; max-width: 100%; fill: currentColor; stroke: none; }
.ea-play-brand { width: 70px; height: 23px; }
.detail-membership-badges { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 100%; margin: 0 0 16px; }
.home-plus > .home-section-link { margin-top: 14px; }
.home-plus .subscription-plan { min-width: 0; }
.brand { display: inline-flex; gap: 9px; align-items: center; flex-shrink: 0; min-height: 44px; text-align: left; }
.brand-logo { display: block; width: 44px; height: 44px; object-fit: contain; }
.brand-wordmark { font-size: 24px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.brand-wordmark > span, .accent { color: var(--accent); }
.brand small { display: block; font-size: 8px; letter-spacing: 1.8px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.account-pill { background: linear-gradient(145deg, #1b3040, #142231); border: 1px solid #3b5d68; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 15px; font-size: 12px; min-height: 44px; max-width: 260px; transition: background .16s ease, border-color .16s ease; }
#header-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-dot, .support-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; background: var(--accent); border-radius: 50%; }
.avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #22334b; display: grid; place-items: center; color: #d5e2ff; font-weight: 700; }
.avatar .ui-icon { width: 19px; height: 19px; }
body:has(dialog[open]) { overflow: hidden; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 248px; align-items: start; gap: 30px; }
#main, .view { min-width: 0; }
.catalog-heading { position: relative; display: flex; justify-content: center; align-items: center; text-align: center; min-height: 236px; padding: 38px 12px 32px; overflow: hidden; }
.catalog-heading > div:first-child, .hero-copy { position: relative; z-index: 1; width: 100%; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 1.6px; font-weight: 700; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.eyebrow-line { display: inline-block; width: 18px; height: 2px; background: var(--accent); }
.hero-kicker { color: #b4d9c9; }
h1 { font-size: clamp(34px, 4.2vw, 48px); letter-spacing: -1.7px; line-height: 1.12; margin: 0; font-weight: 800; }
h1 span { color: var(--accent); }
.intro { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 14px auto 0; max-width: 440px; }
.mobile-break { display: none; }
.hero-art { position: absolute; right: -58px; top: 18px; height: 200px; width: 200px; display: grid; place-items: center; opacity: .09; pointer-events: none; }
.hero-ring { position: absolute; border: 1px solid var(--accent); border-radius: 50%; width: 180px; height: 180px; transform: rotate(-35deg) scaleY(.75); }
.hero-ring-blue { transform: rotate(52deg) scaleY(.72); border-color: var(--blue); }
.hero-controller { width: 105px; height: 105px; fill: var(--bg); stroke: var(--text); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-12deg); }
.hero-spark { position: absolute; font-size: 24px; }
.spark-green { top: 10px; right: 18px; color: var(--accent); }
.spark-blue { bottom: 5px; left: 20px; color: var(--blue); }
.hero-benefits { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; color: #bed0dc; font-size: 11px; }
.hero-benefits > span { display: inline-flex; gap: 6px; align-items: center; }
.hero-benefits .ui-icon { width: 14px; height: 14px; color: var(--accent); }
.catalog-controls { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #111a27d9; margin-bottom: 24px; }
.region-row { display: flex; justify-content: center; text-align: center; margin-bottom: 16px; }
.region-row > div { width: 100%; max-width: 520px; }
.section-label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.region-hint { display: none; }
.region-picker { display: flex; padding: 4px; border: 1px solid #27364a; background: #0b121d; border-radius: 14px; gap: 4px; }
.region-picker button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; transition: background .18s, border-color .18s; }
.region-picker button.active { background: #1b4735; border-color: #60b98b; color: #e7fff0; box-shadow: inset 0 1px 0 #a2ffd522; }
.region-picker .flag { font-size: 17px; }
.categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.category-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 54px; border: 1px solid transparent; border-radius: 12px; background: #1a2637; padding: 12px 8px; font-size: 12px; color: #c0cddd; font-weight: 600; transition: background .18s, border-color .18s; }
.category-button svg { height: 21px; width: 21px; flex-shrink: 0; }
.category-button.active { color: #caffdf; background: #1c4433; border-color: #58a77e; box-shadow: inset 0 1px 0 #a2ffd51a; }
.category-button .soon, .section-soon { font-size: 9px; color: #c0cffa; background: #263655; padding: 2px 5px; border-radius: 5px; }
.category-button .soon { position: absolute; top: -6px; right: 8px; }
.game-sections { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.catalog-controls .game-sections { margin: 14px 0 0; }
.game-section-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #162638; border: 1px solid #354e66; border-radius: 12px; color: #c0cede; padding: 10px 14px; font-size: 12px; transition: background .16s ease, border-color .16s ease; }
.game-section-button.active { background: #1c4435; color: #d6ffe9; border-color: #61b88e; box-shadow: inset 0 1px 0 #a2ffd51a; }
.game-rating { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; max-width: 100%; color: #f3d785; font-size: 11px; line-height: 16px; }
.game-rating-star { width: 13px; height: 13px; flex: 0 0 13px; fill: currentColor; }
.game-rating-value { white-space: nowrap; }
.game-rating.is-unknown { color: #a5b4c6; }
.game-rating.is-unknown .game-rating-star { fill: none; stroke: currentColor; stroke-width: 1.5; }
.game-rating-detail { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 10px 0 18px; font-size: 14px; line-height: 20px; }
.game-rating-detail .game-rating-star { width: 17px; height: 17px; flex-basis: 17px; }
.game-rating-count { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.game-rating-detail.is-unknown { font-size: 12px; }
.catalog-status, .notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px 14px; padding: 14px 16px; border: 1px solid #425b7a; border-radius: 13px; background: #17283c; color: #d7e4f5; font-size: 12px; line-height: 1.7; text-align: center; }
.notice { margin-top: 16px; }
.notice p { margin: 0; }
.catalog-status { margin-bottom: 18px; }
.catalog-results { min-width: 0; }
.products-toolbar { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; margin: 26px 0 20px; text-align: center; }
.products-toolbar h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.7px; margin: 0 0 5px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.65; }
.search-box { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 460px; min-height: 50px; border: 1px solid #34465e; border-radius: 13px; background: #131e2c; padding: 9px 13px; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #69eda510; }
.search-box .ui-icon { width: 19px; height: 19px; color: var(--muted); }
.search-box input { min-width: 0; width: 100%; background: transparent; border: 0; outline: none; color: var(--text); font-size: 16px; min-height: 30px; }
.search-box input::placeholder { color: #a9b8ca; opacity: 1; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box .search-clear { display: grid; place-items: center; min-width: 44px; height: 44px; margin-block: -7px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #c0cee0; font-size: 24px; }
.game-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 10px; margin: 0 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #101c2a; }
.game-filter { display: grid; min-width: 0; gap: 6px; }
.game-filter > span { color: var(--muted); font-size: 11px; }
.game-filter select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 28px 9px 10px; border: 1px solid #34465e; border-radius: 9px; color: var(--text); background: #172537; font: inherit; font-size: 12px; text-overflow: ellipsis; }
.game-filter select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.game-filters-reset { grid-column: 1 / -1; justify-self: end; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: #a7edc6; font-size: 12px; }
.featured-offers { min-width: 0; margin: 22px 0 28px; }
.featured-offers-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.featured-offers-heading .eyebrow { margin: 0 0 6px; font-size: 10px; }
.featured-offers-heading h2 { margin: 0; font-size: clamp(20px, 4vw, 27px); line-height: 1.3; letter-spacing: -.5px; }
.featured-offers-heading .muted { margin: 7px 0 0; font-size: 11px; }
.featured-offers-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 228px); align-items: stretch; gap: 12px; min-width: 0; max-width: 100%; padding: 2px 1px 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 1px; scrollbar-width: thin; scrollbar-color: #38536e transparent; }
.featured-offers-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 15px; }
.featured-offer { scroll-snap-align: start; }
.featured-offers-track .game-row:not(.rental-row) .game-price-frame .product-price { font-size: 22px; }
@media (max-width: 500px) {
  .app-header { gap: 6px; }
  .app-header .brand { gap: 5px; min-width: 0; }
  .app-header .brand-logo { width: 32px; height: 32px; }
  .app-header .brand-wordmark { font-size: 20px; }
  .app-header .brand small { display: none; }
  .header-tools { gap: 0; }
  .game-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .game-filter:first-child { grid-column: 1 / -1; }
  .game-filter select { font-size: 12px; }
}
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.product-card, .game-row { min-width: 0; overflow: hidden; border: 1px solid #354b62; border-radius: 18px; background: linear-gradient(155deg, #152334, #111b2a); transition: border-color .18s ease, transform .18s ease; }
.product-open, .game-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; text-align: center; }
.product-open:focus-visible, .game-open:focus-visible { outline-offset: -3px; }
.product-art { min-height: 150px; position: relative; display: flex; align-items: center; flex-direction: column; justify-content: space-between; padding: 22px; overflow: hidden; background: radial-gradient(ellipse at 50% 0, #43a07535, transparent 80%), #13302e; }
.product-art.blue, .product-art.purple { background: radial-gradient(ellipse at 50% 0, #416cff45, transparent 80%), #182947; }
.art-brand { font-size: 11px; color: #c7dccc; z-index: 1; }
.art-value { font-size: 38px; font-weight: 800; letter-spacing: -1px; z-index: 1; line-height: 1.2; }
.art-value small { font-size: 14px; letter-spacing: 0; margin-left: 4px; color: #c7dccc; }
.art-flag { position: absolute; right: 12px; top: 12px; font-size: 16px; }
.product-body { display: flex !important; flex-direction: column; flex: 1; padding: 17px 14px; }
.product-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 9px; color: var(--muted); font-size: 11px; line-height: 1.5; margin-bottom: 10px; }
.stock-dot { width: 5px; height: 5px; display: inline-block; vertical-align: middle; border-radius: 50%; background: var(--accent); margin-right: 5px; }
.stock-dot.empty { background: #99a7b9; }
.stock-pending { color: #eed7a4; }
.product-title { display: block; font-size: 14px; font-weight: 600; margin: 0 0 14px; line-height: 1.5; overflow-wrap: anywhere; }
.product-bottom { display: flex; align-items: center; justify-content: center; gap: 9px 12px; flex-wrap: wrap; margin-top: auto; }
.price-block { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.product-price { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.base-price { color: #a7b5c7; font-size: 12px; font-weight: 400; }
.product-discover { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; color: #b3c9ff; font-size: 11px; }
.in-cart-label { display: block; font-size: 11px; color: #a0e9ba; line-height: 1.6; margin-top: 8px; }
.product-promotion { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 10px; }
.product-promotion:empty { display: none; }
.discount-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); border: 0; padding: 4px 7px; border-radius: 7px; font-size: 11px; line-height: 1.3; font-weight: 800; white-space: nowrap; }
.promotion-labels { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.promotion-badge-copy { display: grid; justify-items: center; gap: 1px; }
.promotion-badge-label { font-size: 8px; line-height: 10px; letter-spacing: .15px; }
.promotion-badge-value { font-size: 11px; line-height: 12px; }
.discount-badge.promotion-admin { background: #ffe39a; color: #33260b; }
.promotion-deadline { display: block; color: #c0cddd; font-size: 11px; line-height: 1.6; font-weight: 400; }
.platform-badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; border: 1px solid #445d83; border-radius: 7px; background: #1b2c47; color: #d4e2fc; font-size: 10px; line-height: 1.5; font-weight: 600; max-width: 100%; }
.product-grid.game-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-catalog-more { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 8px 0 12px; }
.game-catalog-more > p { margin: 0; color: var(--muted); font-size: 12px; }
.game-catalog-more > button { width: min(100%, 320px); min-height: 44px; }
.game-row-main { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 12px 0; min-width: 0; flex: 1; }
.game-row-title { display: block; font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.game-row-meta { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.game-row-main .in-cart-label { margin: 0; }
.game-row-offer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 15px 12px 16px; }
.game-row-offer .product-discover { flex-basis: 100%; }
/* Keep every game card on the same text and price baselines. Rentals retain
   their independent term/request layout. */
.game-row:not(.rental-row) { --game-card-inline-padding: 12px; display: flex; flex-direction: column; }
.game-row:not(.rental-row) .game-open { height: auto; flex: 1; border-radius: 18px 18px 0 0; }
.game-row:not(.rental-row) .game-row-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 2.6em 19px 26px 16px 28px; align-content: start; align-items: start; justify-items: center; gap: 1px; padding: 3px var(--game-card-inline-padding) 0; flex: 0 0 auto; font-size: 14px; }
.game-row:not(.rental-row) .game-row-title { grid-row: 1; width: 100%; height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: inherit; line-height: 1.3; }
.game-row:not(.rental-row) .game-row-main > .platform-badge { grid-row: 2; max-height: 19px; padding: 1px 7px; line-height: 15px; }
.game-row:not(.rental-row) .game-row-meta { grid-row: 3; width: 100%; min-height: 0; align-content: start; align-items: start; gap: 0 4px; font-size: 10px; line-height: 13px; }
.game-row:not(.rental-row) .game-row-main > .game-rating { grid-row: 4; width: 100%; height: 16px; }
.game-row:not(.rental-row) .game-row-main > .promotion-deadline { grid-row: 5; width: 100%; max-height: 28px; overflow: hidden; font-size: 10px; line-height: 14px; }
.game-row:not(.rental-row) .game-row-main > .in-cart-label { position: absolute; top: -22px; right: 6px; padding: 2px 6px; border-radius: 5px; background: #12392fee; color: #b3f7d3; font-size: 10px; line-height: 14px; }
.game-row:not(.rental-row) .game-row-offer { display: block; padding: 3px var(--game-card-inline-padding) 3px; }
.game-row:not(.rental-row) .game-price-frame { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 30px 23px; justify-items: center; align-items: center; gap: 1px; width: 100%; padding: 3px 5px; border: 1px solid #6a5a36; border-radius: 10px; background: #292a27; text-align: center; }
.game-row:not(.rental-row) .game-price-frame > .price-block { display: contents; }
.game-row:not(.rental-row) .game-price-frame.is-regular { grid-template-rows: 54px; border-color: #40576e; background: #192a3b; }
.game-row:not(.rental-row) .game-price-frame .base-price { grid-area: 1 / 1; align-self: end; margin: 0; font-size: 10px; line-height: 12px; }
.game-row:not(.rental-row) .game-price-frame .product-price { grid-area: 2 / 1; width: 100%; color: #ffdf6f; font-size: clamp(14px, 4.4vw, 22px); line-height: 23px; text-align: center; }
.game-row:not(.rental-row) .game-price-frame.is-regular .product-price { grid-area: 1 / 1; color: #fff; }
.game-row:not(.rental-row) .game-price-frame > .promotion-labels { grid-area: 1 / 1; align-self: start; justify-self: end; flex-direction: row; gap: 3px; }
.game-row:not(.rental-row) .game-price-frame .discount-badge { gap: 2px; min-height: 14px; padding: 1px 3px; border: 0; border-radius: 4px; background: #214b35; color: #91f3bd; font-size: 9px; line-height: 12px; }
.game-row:not(.rental-row) .game-price-frame .discount-icon { display: none; }
.game-row:not(.rental-row) .game-price-frame .promotion-badge-copy { display: inline-flex; align-items: center; gap: 2px; }
.game-row:not(.rental-row) .game-price-frame .promotion-badge-copy > span { font-size: 7px; line-height: 12px; }
.game-row:not(.rental-row) .game-price-frame .promotion-badge-copy > strong { font-size: 9px; line-height: 12px; }
.game-row:not(.rental-row) .game-price-frame .promotion-admin { background: #514224; color: #ffe39a; }
.discount-icon { display: block; flex: 0 0 11px; width: 11px; height: 11px; stroke-linejoin: round; }
.game-row:not(.rental-row) > .game-add-button { display: flex; justify-content: center; align-items: center; flex-shrink: 0; width: calc(100% - 2 * var(--game-card-inline-padding)); height: 44px; min-height: 44px; margin: 0 var(--game-card-inline-padding) 4px; padding: 6px 4px; border-radius: 10px; font-size: 11px; line-height: 1.25; font-weight: 800; letter-spacing: .25px; }
.game-row-icon { width: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center; border: 0; border-bottom: 1px solid var(--line); background: #0d1521; color: #b7c8e4; }
.game-row-icon .ui-icon { width: 56px; height: 56px; stroke-width: 1.2; }
.game-row-icon.has-cover { display: grid; height: auto; }
.game-row-icon .product-cover { width: 100%; height: 100%; object-fit: contain; }
.game-row:not(.rental-row) .game-row-icon { position: relative; flex: 0 0 auto; min-height: 0; aspect-ratio: 1; }
.game-row:not(.rental-row) .game-row-icon .product-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-media { position: relative; overflow: hidden; }
.cover-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.cover-media.has-cover > .cover-fallback { display: none; }
.product-cover { position: static; display: block; width: 100%; height: auto; object-fit: contain; background: #0d1521; }
.product-art .cover-fallback { position: absolute; inset: 0; display: flex; align-items: center; flex-direction: column; justify-content: space-between; padding: inherit; }
.product-art.has-cover { display: block; height: auto; min-height: 0; padding: 0; }
.detail-cover { display: block; width: 100%; height: auto; min-height: 0; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 15px; background: #0d1521; color: #adc3ec; }
.detail-cover .product-cover { object-fit: contain; }
.detail-cover.game-detail-cover { position: relative; aspect-ratio: 1; border: 0; }
.detail-cover.game-detail-cover .product-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-cover .cover-fallback { min-height: 150px; padding: 25px; }
.detail-cover .cover-fallback .ui-icon { width: 56px; height: 56px; }
.product-grid.subscription-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.subscription-plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; padding: 16px; border: 1px solid #415567; border-radius: 20px; background: linear-gradient(155deg, #182738, #111b29); }
.subscription-plan .subscription-art { display: block; width: 100%; min-height: 0; height: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #112333; }
.subscription-plan .subscription-art .product-cover { object-fit: contain; }
.subscription-plan .subscription-art .cover-fallback { position: static; width: 100%; height: auto; aspect-ratio: 1; padding: 16px; justify-content: center; align-items: center; }
.subscription-plan .subscription-art.has-cover > .cover-fallback { display: none; }
.subscription-plan .subscription-art .ui-icon { width: 46px; height: 46px; color: var(--accent); }
.subscription-plan .subscription-art.subscription-plan-cover { position: relative; isolation: isolate; aspect-ratio: 1; background: radial-gradient(ellipse at 80% 10%, #2d65e066, transparent 70%), linear-gradient(145deg, #163f31, #0c1a36); }
.subscription-plan-background { display: block; width: 100%; height: auto; }
.subscription-plan-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #04122422, transparent 24%, #06172a15 44%, #061222e6 78%, #051326fa); }
.subscription-plan-cover-wordmark { position: absolute; top: 6%; left: 8%; right: 8%; color: #d5ffe5; font-size: clamp(11px, 2.4vw, 16px); font-weight: 800; letter-spacing: 4px; text-align: center; text-shadow: 0 2px 8px #00140b; }
.subscription-plan-cover-copy { position: absolute; bottom: 7%; left: 7%; right: 7%; display: grid; justify-items: center; gap: 10px; text-align: center; }
.subscription-plan-cover-service { color: #f5f8ff; font-size: clamp(16px, 4.2vw, 26px); font-weight: 800; letter-spacing: 3px; line-height: 1.1; text-shadow: 0 3px 15px #0008; }
.subscription-plan-cover-name { display: block; max-width: 100%; color: #ffe073; font-size: clamp(25px, 7vw, 45px); font-weight: 850; letter-spacing: -.8px; line-height: 1.08; text-transform: uppercase; overflow-wrap: anywhere; text-shadow: 0 3px 15px #0008; }
.subscription-plan-cover-region { display: inline-flex; justify-content: center; align-items: center; min-height: 26px; padding: 5px 13px; border: 1px solid #6a9aaa88; border-radius: 20px; background: #102b3dd9; color: #e3f1ff; font-size: 12px; }
.ea-play-cover .subscription-plan-cover-service { font-size: clamp(28px, 8vw, 49px); letter-spacing: 1px; }
.cover-image-failed .subscription-plan-cover-shade { background: radial-gradient(ellipse at 50% 16%, #2fba703d, transparent 65%), linear-gradient(155deg, #164c4a, #101f40 60%, #061222); }
.subscription-plan-body { min-width: 0; }
.subscription-plan-heading { display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 6px; text-align: center; margin-bottom: 16px; }
.subscription-plan-heading h3 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.6px; }
.subscription-plan-heading > span { font-size: 12px; color: var(--muted); }
.subscription-terms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.subscription-term { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; min-height: 68px; min-width: 0; padding: 13px 29px 13px 14px; background: #0e1724; border: 1px solid #314259; border-radius: 12px; text-align: left; transition: border-color .18s, background .18s; }
.subscription-term.is-selected { border-color: var(--accent); background: #183729; }
.subscription-term-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.subscription-term-main > strong { font-size: 14px; line-height: 1.4; }
.subscription-stock { color: #b0c7b9; font-size: 11px; line-height: 1.5; }
.subscription-term.unavailable .subscription-stock { color: var(--muted); }
.subscription-term-offer { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 5px; }
.subscription-price { font-size: 18px; white-space: nowrap; line-height: 1.3; }
.subscription-term .discount-badge { font-size: 10px; padding: 3px 5px; }
.subscription-term-deadline { grid-column: 1 / -1; color: #c0d0bc; font-size: 10px; }
.subscription-term-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #b0c7b9; font-size: 15px; }
.topup-digital-media { display: block; width: 100%; height: auto; min-height: 0; padding: 0; background: #0a214b; }
.topup-digital-card { position: relative; display: block; width: 100%; height: auto; overflow: hidden; }
.topup-digital-media .cover-fallback { position: static; display: block; width: 100%; height: auto; padding: 0; }
.topup-digital-media.has-cover > .cover-fallback { display: none; }
.digital-code-art { display: block; position: static; width: 100%; height: auto; object-fit: contain; }
.digital-code-label { position: absolute; top: 73.6%; left: 28%; right: 28%; height: 13%; display: flex; align-items: center; justify-content: center; font-size: clamp(10px, 3.2vw, 20px); font-weight: 800; line-height: 1.1; letter-spacing: -.3px; color: #fff; text-align: center; white-space: nowrap; overflow: hidden; }
.digital-code-region { position: absolute; top: 86%; left: 25%; right: 25%; height: 5.2%; display: flex; align-items: center; justify-content: center; font-size: clamp(7px, 1.8vw, 10px); line-height: 1; color: #d7e9ff; text-align: center; white-space: nowrap; }
.detail-cover .digital-code-label { font-size: clamp(19px, 5.4vw, 32px); }
.detail-cover .digital-code-region { font-size: 12px; }
.how-it-works { display: flex; justify-content: center; align-items: center; gap: 13px; padding: 20px; margin: 28px 0 34px; border: 1px solid var(--line); border-radius: 16px; background: #111d2b; text-align: center; }
.how-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; background: #1b3a2c; color: var(--accent); }
.how-it-works strong { font-size: 13px; }
.how-it-works p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.how-arrow { color: var(--muted); width: 18px; }
.desktop-sidebar { position: sticky; top: calc(var(--top-dock-height) + 16px); padding-top: 30px; }
.desktop-nav { display: grid; gap: 5px; margin-bottom: 18px; padding: 7px; border: 1px solid var(--line); border-radius: 17px; background: #111a27; }
.desktop-nav button { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 11px 13px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); font-size: 13px; text-align: left; }
.desktop-nav button.active { background: #1a372b; color: var(--accent); border-color: #30583e; }
.desktop-nav .ui-icon { width: 20px; height: 20px; }
.cart-badge { display: grid; place-items: center; min-width: 21px; height: 21px; padding-inline: 4px; margin-left: auto; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; }
.sidebar-cart { padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.sidebar-cart h3 { font-size: 15px; margin: 0 0 13px; text-align: center; }
.sidebar-cart h3 .muted { display: block; margin-top: 6px; font-weight: 400; }
.sidebar-empty { padding: 6px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.75; text-align: center; }
.sidebar-empty .empty-icon { display: block; font-size: 28px; color: #a6bad6; margin-bottom: 8px; }
.sidebar-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sidebar-line b { font-weight: 600; color: var(--text); white-space: nowrap; }
.sidebar-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0; font-size: 13px; }
.sidebar-total strong { font-size: 23px; color: var(--accent); white-space: nowrap; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 13px 18px; border-radius: 13px; border: 1px solid transparent; font-size: 13px; font-weight: 750; line-height: 1.5; text-align: center; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease; }
.primary-button { background: linear-gradient(135deg, #8af3bb, #4ce49b); color: #08281b; border-color: #82f3b7; box-shadow: inset 0 1px 0 #ffffff45; }
.primary-button:disabled { background: #254838; color: #abc7b8; border-color: #375e49; box-shadow: none; opacity: 1; }
.secondary-button { background: linear-gradient(145deg, #25384d, #1a2b3f); color: #e5eefc; border-color: #4a647e; box-shadow: inset 0 1px 0 #ffffff0a; }
.primary-button.full, .secondary-button.full { width: 100%; }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: #bfd7ff; font-size: 12px; line-height: 1.6; text-align: center; transition: background .16s ease, color .16s ease; }
.add-button { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; border: 1px solid #82f3b7; border-radius: 13px; background: linear-gradient(135deg, #8af3bb, #4ce49b); color: #08281b; box-shadow: inset 0 1px 0 #ffffff45; font-size: 27px; transition: background .16s ease, transform .12s ease; }
.add-button:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); box-shadow: none; opacity: 1; }
.support-card { display: grid; justify-items: center; gap: 8px; margin: 18px 0 0; padding: 16px 8px; text-align: center; }
.support-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.support-card div > span { font-size: 12px; color: var(--muted); }
.support-dot { margin-bottom: 2px; }
.support-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #1b2c41; color: #c3d6ed; margin-bottom: 3px; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 12px; padding: 24px 0 32px; border-top: 1px solid #263449b3; color: #a0b0c6; font-size: 11px; text-align: center; }
.bottom-nav { display: none; }
.page-heading { padding: 36px 10px 28px; text-align: center; }
.page-heading h1 { font-size: 36px; }
.page-heading .intro { margin-top: 10px; }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; padding: 38px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-align: center; }
.empty-illustration { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid #35516d; border-radius: 22px; background: #1b2b40; color: #bdd0ff; font-size: 35px; margin-bottom: 19px; }
.empty-illustration .ui-icon { width: 31px; height: 31px; }
.empty-state h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; letter-spacing: -.5px; }
.empty-state p { max-width: 380px; margin: 0 auto 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.empty-state-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.loading { grid-column: 1 / -1; min-height: 150px; padding: 46px 20px; color: var(--muted); text-align: center; font-size: 14px; }
.loading::before { content: ''; display: block; width: 25px; height: 25px; margin: 0 auto 15px; border: 2px solid #365242; border-top-color: var(--accent); border-radius: 50%; animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.cart-layout { display: grid; gap: 20px; }
.cart-main, .cart-checkout, .cart-items { min-width: 0; }
.cart-context { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cart-items-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 5px; font-size: 13px; }
.cart-items-heading h2 { font-size: 16px; font-weight: 650; letter-spacing: -.3px; margin: 17px 0 8px; }
.cart-items { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding-inline: 18px; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item-art { display: grid; place-items: center; width: 64px; height: 80px; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #354965; border-radius: 11px; background: #142338; color: #dce9fa; font-size: 12px; font-weight: 700; text-align: center; }
.cart-item-art .cover-media, .cart-item-art .game-row-icon { width: 100%; height: 100%; aspect-ratio: auto; min-height: 0; border: 0; }
.cart-item-art .product-cover { height: 100%; object-fit: contain; }
.cart-item-art .ui-icon { width: 27px; height: 27px; }
.cart-item-art .topup-digital-card { width: 100%; }
.cart-item-art .digital-code-label, .cart-item-art .digital-code-region { display: none; }
.cart-item-info { min-width: 0; }
.cart-item-info h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.cart-item-info p { margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.cart-item-right { display: grid; justify-items: end; gap: 9px; text-align: right; }
.cart-item-right strong { font-size: 18px; white-space: nowrap; }
.remove-item { min-height: 44px; padding: 7px 0; border: 0; background: transparent; color: #c0cddd; font-size: 12px; }
.quantity-control { display: inline-flex; align-items: center; gap: 0; width: max-content; max-width: 100%; padding: 1px; border: 1px solid #3a4e69; border-radius: 11px; background: #0f1927; }
.quantity-control button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--accent); font-size: 24px; }
.quantity-control span { min-width: 25px; font-size: 14px; font-weight: 700; text-align: center; }
.cart-region { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #3d516e; border-radius: 9px; background: #1a2a41; font-size: 12px; line-height: 1.5; }
.cart-warning, .product-stale { padding: 14px; margin: 15px 0; border: 1px solid #8b744e; border-radius: 12px; background: #3b302122; color: #f0d8ae; font-size: 12px; line-height: 1.7; text-align: center; }
.product-stale .text-button { display: flex; margin: 7px auto 0; }
.checkout-box { padding: 22px; margin: 18px 0 28px; border: 1px solid #3f6551; border-radius: 18px; background: linear-gradient(150deg, #1c3e2d33, transparent 65%), var(--surface); text-align: center; }
.checkout-box h2 { margin: 0 0 17px; font-size: 18px; letter-spacing: -.4px; }
.checkout-next-step { margin: 0 0 15px; padding: 11px; border: 1px solid #7b7048; border-radius: 10px; background: #3b321f66; color: #f2deb0; font-size: 12px; line-height: 1.7; }
.checkout-details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.checkout-details summary { padding: 12px 2px; min-height: 44px; color: #bed0e9; font-size: 12px; line-height: 1.6; cursor: pointer; }
.checkout-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.checkout-row { display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 6px; margin-bottom: 20px; font-size: 13px; }
.checkout-row > span { color: var(--muted); }
.checkout-row strong { color: var(--accent); font-size: 34px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.checkout-box .primary-button { min-height: 52px; }
.checkout-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; text-align: center; }
.cost-row { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 11px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.cost-row strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.cost-row.bonus-discount strong { color: var(--accent); }
.checkout-box .cost-row:last-of-type { padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.bonus-panel { padding: 18px; margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: #13251f; }
.bonus-toggle { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; gap: 14px; cursor: pointer; text-align: left; }
.bonus-toggle strong { display: block; font-size: 14px; font-weight: 650; }
.bonus-toggle small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.bonus-toggle input { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 46px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.toggle-track { position: relative; width: 46px; height: 28px; border: 1px solid #62748a; border-radius: 20px; background: #34465c; pointer-events: none; transition: background .18s; }
.toggle-track::before { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #d9e2ef; transition: transform .18s; }
.bonus-toggle input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.bonus-toggle input:checked + .toggle-track::before { background: var(--accent-ink); transform: translateX(18px); }
.bonus-toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 4px; }
.bonus-toggle input:disabled { cursor: default; }
.bonus-toggle input:disabled + .toggle-track { opacity: .5; }
.bonus-hint { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.bonus-applied { display: flex; justify-content: space-between; gap: 12px; padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line); font-size: 12px; }
.bonus-applied strong { color: var(--accent); white-space: nowrap; }
.bonus-reward { padding: 11px 12px; margin: 14px 0 0; border: 1px solid #366849; border-radius: 10px; background: #1a3526; color: #b3efc8; font-size: 12px; line-height: 1.7; text-align: center; }
.fulfillment-choice { padding: 22px; margin: 20px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: center; }
.fulfillment-choice h3 { margin: 0 0 9px; font-size: 21px; letter-spacing: -.5px; }
.fulfillment-choice > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.fulfillment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
.fulfillment-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 132px; padding: 18px 12px; border: 1px solid #3a506b; border-radius: 14px; background: #0f1927; text-align: center; }
.fulfillment-option strong { display: block; font-size: 14px; }
.fulfillment-option-copy { display: grid; gap: 6px; }
.fulfillment-option-check { position: absolute; top: 9px; right: 10px; color: var(--accent) !important; font-size: 14px !important; font-weight: 750; }
.fulfillment-help { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.fulfillment-option span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.fulfillment-option-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #bcd1ff !important; background: #1e304a; }
.fulfillment-option-icon .ui-icon { width: 20px; height: 20px; }
.fulfillment-option.active { border-color: var(--accent); background: #183628; box-shadow: inset 0 0 0 1px #69eda526; }
.fulfillment-option.active .fulfillment-option-icon { color: var(--accent) !important; background: #254d35; }
.fulfillment-choice > .secondary-button { margin: 16px auto 0; }
.orders-toolbar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 20px; }
.refresh-orders { margin: 0; }
.order-card { padding: 21px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.order-card-date { color: var(--muted); font-size: 11px; line-height: 1.6; }
.order-status { display: inline-flex; justify-content: center; align-items: center; min-height: 29px; max-width: 100%; padding: 5px 9px; border: 1px solid #587497; border-radius: 8px; background: #243751; color: #dce9ff; font-size: 11px; line-height: 1.5; font-weight: 600; text-align: center; }
.order-status[data-status="awaiting_payment"], .order-status[data-status="awaiting_account"] { border-color: #8c7749; background: #3b321f; color: #f5ddaa; }
.order-status[data-status="reviewing"] { border-color: #5e78a3; background: #233758; color: #d9e5ff; }
.order-status[data-status="manual_paid"], .order-status[data-status="fulfilled"] { border-color: #4e865f; background: #1c3c2b; color: #b7f2cd; }
.order-status[data-status="cancelled"], .order-status[data-status="expired"], .order-status[data-status="rejected"] { border-color: #6d5c67; background: #302730; color: #e4c9d1; }
.order-summary { margin: 17px 0; padding-block: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #c1cedf; font-size: 13px; line-height: 1.9; }
.order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-card-bottom strong, .order-card-total { font-size: 22px; font-weight: 750; white-space: nowrap; }
.purchase-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 24px 0; list-style: none; }
.purchase-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 5px 0; border-top: 3px solid #34465f; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.purchase-step.is-current { border-color: var(--accent); color: #d1f7df; }
.purchase-step.is-complete { border-color: #427655; color: #b3d5c0; }
.purchase-step-number { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #49627e; border-radius: 50%; font-size: 11px; font-weight: 700; }
.purchase-step.is-current .purchase-step-number { border-color: var(--accent); color: var(--accent); background: #244733; }
.purchase-step.is-complete .purchase-step-number { border-color: #4c8060; color: #c1efd0; }
.purchase-step .ui-icon { width: 18px; height: 18px; }
.profile-card { padding: 25px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); text-align: center; }
.profile-avatar { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid #5b799d; border-radius: 21px; margin: 0 auto 16px; background: #233d60; color: #e8f0ff; font-size: 26px; font-weight: 750; }
.profile-card h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.5px; }
.profile-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.profile-card .primary-button { margin-inline: auto; }
.balance-value { color: var(--accent); font-size: 44px; font-weight: 800; letter-spacing: -1.4px; }
.balance-value small { display: block; margin: 4px 0 20px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.wallet-reserve { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.wallet-reserve strong { color: var(--text); font-weight: 600; }
.bonus-rules { padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); }
.bonus-rules > strong { font-size: 14px; }
.bonus-rules p { margin-bottom: 0; }
.profile-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.profile-card-heading h2 { margin-bottom: 0; font-size: 20px; }
.bonus-history-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); text-align: left; }
.bonus-history-row:first-child { margin-top: 17px; }
.bonus-history-row:last-child { padding-bottom: 0; }
.bonus-history-row > div { min-width: 0; }
.bonus-history-type { color: var(--text); font-size: 13px; font-weight: 600; }
.bonus-history-row p { margin: 5px 0; font-size: 12px; line-height: 1.7; }
.bonus-history-row time { color: var(--muted); font-size: 11px; }
.bonus-history-row > strong { font-size: 19px; white-space: nowrap; }
.bonus-earned { color: var(--accent); }
.bonus-spent { color: #c0d0ff; }
.profile-card .bonus-history-empty { margin: 16px 0 0; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 30; width: max-content; max-width: min(500px, calc(100% - 32px)); padding: 15px 19px; border: 1px solid #92ddb0; border-radius: 14px; background: #e9fff0; color: #133b23; box-shadow: 0 16px 60px #0005; font-size: 13px; line-height: 1.7; text-align: center; }
dialog { width: min(520px, calc(100% - 32px)); max-height: 90vh; max-height: calc(100dvh - env(safe-area-inset-top) - var(--safe-bottom) - 28px); padding: 28px; border: 1px solid #405573; border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 30px 100px #0008; overflow-y: auto; overscroll-behavior: contain; text-align: center; scrollbar-width: thin; scrollbar-color: #45607a transparent; }
dialog::backdrop { background: #030812c9; backdrop-filter: blur(9px); }
.account-drawer { position: fixed; inset: 0 0 0 auto; width: min(390px, calc(100% - 28px)); height: 100vh; height: 100dvh; max-height: none; max-width: none; margin: 0; padding: 0; border: 0; border-left: 1px solid #3c506b; border-radius: 22px 0 0 22px; background: var(--surface); text-align: left; overflow: hidden; box-shadow: -20px 0 90px #0006; }
.account-drawer[open] { display: flex; flex-direction: column; animation: account-drawer-enter .22s ease-out; }
.account-drawer::backdrop { animation: account-backdrop-enter .22s ease-out; }
.store-drawer { inset: 0 auto 0 0; border-left: 0; border-right: 1px solid #8b79d477; border-radius: 0 22px 22px 0; background: linear-gradient(150deg, #0e1833de, #12132deb), url('/store-cosmic-bg-v1.webp') center top / 600px 600px repeat, #0d1328; box-shadow: 20px 0 90px #0008, inset -1px 0 0 #9e85ff1a; }
.store-drawer[open] { animation-name: store-drawer-enter; }
.store-drawer-header { position: relative; border-bottom-color: #8c82cf55; background: linear-gradient(125deg, #153345ad, #231b45b8); }
.store-drawer-header::after { content: ''; position: absolute; right: 18px; bottom: 0; left: 22px; height: 1px; pointer-events: none; background: linear-gradient(90deg, #69eda500, #69eda5b3, #9375ffb3, #9375ff00); }
.store-brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.store-drawer-logo { display: block; flex: 0 0 64px; width: 64px; height: 64px; padding: 4px; object-fit: contain; border: 1px solid #7baaaf66; border-radius: 19px; background: radial-gradient(circle, #21474e88, #161c3a88); box-shadow: 0 0 19px #8965ff26; }
.store-drawer-brand-copy { min-width: 0; }
.store-drawer .store-drawer-header .store-drawer-brand-copy h2 { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.8px; }
.store-drawer-tagline { margin: 5px 0 0; max-width: 150px; color: #c7d3e9; font-size: 10px; line-height: 1.5; }
.store-drawer .store-drawer-header .account-close { flex-shrink: 0; border-color: #8270b68c; background: #282642b3; }
.store-drawer-links { display: grid; align-content: start; gap: 10px; padding: 16px 14px max(20px, var(--safe-bottom)); }
.store-menu-item { --menu-hue: 105 237 165; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 9px 10px; border: 1px solid rgb(var(--menu-hue) / .33); border-radius: 15px; background: linear-gradient(115deg, rgb(var(--menu-hue) / .15), #111b31e6 86%); color: #f3f7fc; text-align: left; font-weight: 650; list-style: none; cursor: pointer; box-shadow: inset 0 1px 0 rgb(var(--menu-hue) / .06); }
.store-menu-item::-webkit-details-marker { display: none; }
.store-menu-item[data-store-destination="home"] { --menu-hue: 105 237 165; }
.store-games-menu > summary { --menu-hue: 94 196 255; }
.store-subscriptions-menu > summary { --menu-hue: 255 213 98; }
.store-menu-item[data-store-destination="subscriptions"] { --menu-hue: 255 213 98; }
.store-menu-item[data-store-destination="support"] { --menu-hue: 194 155 255; }
.store-menu-item[data-store-destination="reviews"] { --menu-hue: 255 179 116; margin-top: 5px; }
.store-menu-item:hover, .store-games-menu[open] > summary, .store-subscriptions-menu[open] > summary { border-color: rgb(var(--menu-hue) / .65); background: linear-gradient(115deg, rgb(var(--menu-hue) / .24), #18213ceb 86%); }
.store-menu-icon { flex: 0 0 40px; width: 40px; height: 40px; padding: 8px; border: 1px solid rgb(var(--menu-hue) / .5); border-radius: 12px; background: rgb(var(--menu-hue) / .13); color: rgb(var(--menu-hue)); stroke-width: 1.65; }
.store-menu-chevron { width: 18px; height: 18px; margin-left: auto; color: rgb(var(--menu-hue) / .8); }
.store-games-menu > summary .store-menu-chevron, .store-subscriptions-menu > summary .store-menu-chevron { transform: rotate(90deg); }
.store-games-menu[open] > summary .store-menu-chevron, .store-subscriptions-menu[open] > summary .store-menu-chevron { transform: rotate(-90deg); }
.store-subscription-services { display: grid; gap: 7px; margin-left: 17px; padding: 9px 0 5px 10px; border-left: 1px solid #ddc37766; }
.store-subscription-services > button { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 52px; padding: 10px; border: 1px solid #dac36d4d; border-radius: 12px; background: linear-gradient(110deg, #6a552024, #131c31d9); color: #f3d46a; text-align: left; }
.store-subscription-services > button[data-subscription-service="ea_play"] { border-color: #ed6e6e4d; background: linear-gradient(110deg, #78333324, #131c31d9); color: #ff8585; }
.store-subscription-services > button:hover, .store-subscription-services > button[aria-current] { border-color: currentColor; background-color: #27334d; }
.store-subscription-services > button > span { margin-left: auto; color: #d5ddeb; font-size: 12px; line-height: 1.3; }
.store-subscription-services .store-menu-chevron { flex: 0 0 16px; width: 16px; height: 16px; margin-left: 0; }
.subscription-service-logo { display: block; width: 112px; height: 30px; max-width: 100%; fill: currentColor; stroke: none; }
.ea-play-service-logo { width: 89px; }
.store-game-sections { display: grid; gap: 5px; margin-left: 17px; padding: 8px 0 5px 10px; border-left: 1px solid #7182c357; }
.store-game-sections > button { --menu-hue: 107 211 229; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px; border: 1px solid rgb(var(--menu-hue) / .18); border-radius: 11px; background: linear-gradient(110deg, rgb(var(--menu-hue) / .08), #131c31b3); color: #d6e1f0; text-align: left; font-size: 12px; }
.store-game-sections > button[data-store-section="sales"] { --menu-hue: 255 153 181; }
.store-game-sections > button[data-store-section="preorders"] { --menu-hue: 183 151 255; }
.store-game-sections > button[data-store-section="new"] { --menu-hue: 105 237 165; }
.store-game-sections > button[data-store-section="bestsellers"] { --menu-hue: 255 209 110; }
.store-game-sections > button[data-store-section="rental"] { --menu-hue: 158 176 255; }
.store-game-sections .store-menu-icon { flex-basis: 32px; width: 32px; height: 32px; padding: 5px; border-radius: 9px; }
.store-game-sections > button:hover, .store-game-sections > button[aria-current] { border-color: rgb(var(--menu-hue) / .58); background: linear-gradient(110deg, rgb(var(--menu-hue) / .22), #1b2642d9); color: #f3f7fc; }
.store-menu-item:focus-visible, .store-game-sections > button:focus-visible { outline-color: rgb(var(--menu-hue)); outline-offset: -2px; }
.store-subscription-services > button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.support-dialog { padding: 22px; text-align: left; border-color: #447461; background: linear-gradient(145deg, #172b2c, #121e2d 65%); }
.support-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.support-dialog-header > div { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; }
.support-dialog-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border: 1px solid #43795f; border-radius: 12px; background: #1b3d30; color: var(--accent); }
.support-dialog .support-dialog-header h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; text-align: left; }
.support-dialog #support-hint, .support-dialog #reviews-hint { margin: 17px 0 22px; font-size: 13px; line-height: 1.7; }
.support-channels { display: grid; gap: 12px; }
.support-channel { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 78px; padding: 15px; border: 1px solid #448362; border-radius: 15px; background: #1b3d30; text-align: left; transition: background .16s ease, border-color .16s ease; }
.support-telegram { border-color: #397ca2; background: #173449; }
.support-vk { border-color: #476da7; background: #1a3150; }
.review-avito { border-color: #6d759e; background: linear-gradient(110deg, #263650, #283245); }
.reviews-dialog { border-color: #93724f; }
.reviews-dialog .support-dialog-icon { border-color: #9a744c; background: #4b3827; color: #ffd09a; }
.support-channel:not(:disabled):hover { border-color: #80d7aa; background: #23543e; }
.support-telegram:not(:disabled):hover { border-color: #7bc9ed; background: #204660; }
.support-vk:not(:disabled):hover { border-color: #8ab7ff; background: #264773; }
.review-avito:not(:disabled):hover { border-color: #bba6f7; background: #344660; }
.messenger-logo { display: block; flex: 0 0 30px; width: 30px; height: 30px; fill: currentColor; stroke: none; color: #76ec9f; }
.support-telegram .messenger-logo { color: #6ec9f6; }
.support-vk .messenger-logo { color: #88b8ff; }
.support-channel > span { flex: 1; min-width: 0; }
.support-channel strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.5; }
.support-channel small { display: block; margin-top: 3px; color: #bdcfd5; font-size: 11px; line-height: 1.5; }
.support-channel-arrow { width: 18px; height: 18px; color: #c9e6da; }
.support-channel:disabled { opacity: .5; }
.support-channel:disabled .support-channel-arrow { visibility: hidden; }
@keyframes store-drawer-enter { from { transform: translateX(-100%); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.account-drawer-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 10px; padding: max(18px, env(safe-area-inset-top)) 18px 16px 22px; border-bottom: 1px solid var(--line); }
.account-drawer .account-drawer-header h2 { font-size: 18px; letter-spacing: -.4px; margin: 0; text-wrap: initial; }
.account-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #3b526e; border-radius: 12px; background: #1b2c41; color: #e0eafb; font-size: 27px; line-height: 1; }
.account-drawer-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 14px 12px; }
.account-drawer-person { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0 8px 24px; }
.account-drawer-avatar { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; background: #244f40; color: #a9f9c9; border: 1px solid #3b7860; border-radius: 16px; font-size: 20px; font-weight: 750; }
.account-drawer-person > div { min-width: 0; }
.account-drawer-person strong { display: block; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; }
.account-drawer-person > div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.account-drawer-links { display: grid; gap: 7px; }
.account-menu-item { display: flex; align-items: center; width: 100%; gap: 12px; min-height: 74px; padding: 12px 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; color: var(--text); }
.account-menu-item:hover { background: #1b2a3c; border-color: #30465f; }
.account-menu-item:focus-visible { outline-offset: -2px; }
.account-menu-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #344c65; border-radius: 12px; background: #1b2b3e; color: #c0d5ed; }
.account-menu-copy { min-width: 0; flex: 1; }
.account-menu-copy strong { display: block; font-size: 13px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.account-menu-copy small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 3px; }
.account-menu-chevron { color: #93a7bd; font-size: 23px; line-height: 1; }
.account-drawer-footer { margin-top: auto; flex-shrink: 0; border-top: 1px solid var(--line); padding: 14px 14px max(18px, var(--safe-bottom)); background: #111c2a; }
.account-manager .account-menu-icon { color: #98ebba; background: #18372c; border-color: #38654f; }
.account-manager .account-menu-chevron { font-size: 20px; color: var(--accent); }
.account-panel-dialog { width: min(520px, calc(100% - 24px)); padding: 0; text-align: left; scroll-padding-top: 76px; }
.account-panel-content { padding: 24px; }
.account-section-heading { text-align: center; margin-bottom: 24px; }
.account-section-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; margin: 0 auto 16px; background: #1b3d30; border: 1px solid #3d6d52; color: var(--accent); }
.account-section-heading h2 { font-size: 23px; line-height: 1.4; margin-bottom: 8px; }
.account-section-heading p { margin: 0; }
.account-panel-content h3 { margin-top: 22px; font-size: 14px; }
.account-information { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; padding: 3px 14px; background: #0f1926; }
.account-information > div { display: grid; grid-template-columns: minmax(90px, .85fr) minmax(0, 1.15fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-information > div:last-child { border-bottom: 0; }
.account-information dt { color: var(--muted); font-size: 11px; }
.account-information dd { margin: 0; font-size: 12px; font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.account-panel-content fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
.account-field { display: grid; gap: 8px; margin-bottom: 20px; text-align: left; }
.account-field > span { font-size: 13px; font-weight: 600; }
.account-field input, .account-field select { display: block; width: 100%; min-width: 0; min-height: 48px; border: 1px solid #42566f; border-radius: 12px; padding: 11px 13px; background: #0c1521; color: var(--text); font-size: 16px; }
.account-field input::placeholder { color: #8194aa; opacity: 1; }
.account-field select { color-scheme: dark; }
.account-field small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.account-panel-content .account-form-status { padding: 12px 14px; margin: 0 0 18px; background: #173b2c; border: 1px solid #3a6a50; color: #baf8d2; border-radius: 12px; text-align: left; }
.account-panel-content .account-form-status.is-error { color: var(--danger); background: #3c2326; border-color: #765058; }
.account-panel-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding-block: 20px; }
.account-panel-empty > .ui-icon { width: 36px; height: 36px; color: var(--blue); }
.profile-settings-button { margin-inline: auto; margin-top: 12px; }
#profile-bonus-wallet { scroll-margin-top: 22px; }
#profile-bonus-wallet:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@keyframes account-drawer-enter { from { transform: translateX(100%); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
@keyframes account-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 380px) { .account-panel-content { padding: 22px 18px; } .account-drawer-header { padding-left: 18px; } .account-menu-item { gap: 9px; padding-inline: 8px; } .account-menu-copy strong { font-size: 12px; } .account-menu-icon { flex-basis: 36px; width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .account-drawer[open], .account-drawer::backdrop { animation: none; } }
dialog h2 { margin: 0 0 14px; font-size: 27px; letter-spacing: -.8px; line-height: 1.3; }
dialog h3 { margin: 22px 0 11px; font-size: 16px; line-height: 1.5; }
dialog p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; border: 1px solid #526f9b; border-radius: 15px; background: #203652; color: #c3d5ff; }
.dialog-actions { display: grid; gap: 10px; margin-top: 24px; }
#product-dialog, #order-dialog, #ps-account-dialog { width: min(560px, calc(100% - 24px)); padding: 0; scroll-padding-top: 76px; }
.product-dialog-nav, .dialog-nav { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: #121e2df5; backdrop-filter: blur(12px); }
.dialog-nav > span { color: #c4d2e5; font-size: 12px; font-weight: 600; }
.product-dialog-nav .product-back-button, .product-dialog-nav .product-dialog-back, .close-dialog, .close-product-dialog, .close-ps-accounts { position: static; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #3b526e; border-radius: 12px; background: #1b2c41; color: #e0eafb; font-size: 28px; font-weight: 400; line-height: 1; }
.product-dialog-nav .product-back-button, .product-dialog-nav .product-dialog-back { width: auto; padding-inline: 14px; font-size: 12px; font-weight: 600; }
#product-detail, #order-detail, #ps-account-content { padding: 24px 25px 28px; }
#product-dialog h2 { margin-bottom: 13px; padding-right: 0; font-size: 27px; }
.product-detail-tags { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
#product-detail > .game-detail-cover { margin-bottom: 10px; }
.game-detail-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 34px; gap: 0; margin: 0 0 18px; }
.game-detail-tags > .platform-badge { grid-column: 1; justify-self: start; max-width: 100%; padding: 4px 7px; text-align: left; }
.game-detail-tags > .cart-region { grid-column: 2; justify-self: center; max-width: 100%; padding: 4px 6px; font-size: 11px; text-align: center; }
.product-detail-price { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 21px 0; }
.detail-price { font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1.25; white-space: nowrap; }
.product-detail-purchase { padding: 17px; margin-bottom: 23px; border: 1px solid #3d694e; border-radius: 16px; background: #153025; }
.product-detail-purchase > .primary-button { min-height: 52px; width: 100%; }
.product-detail-quantity { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px 14px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.product-detail-purchase .text-button { display: flex; margin: 8px auto 0; }
.product-detail-facts { margin: 20px 0; border-block: 1px solid var(--line); }
.product-detail-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 12px; line-height: 1.7; }
.product-detail-facts > div + div { border-top: 1px solid var(--line); }
.product-detail-facts > div > span { color: var(--muted); }
.product-detail-facts strong { font-weight: 550; text-align: right; }
.product-detail-facts .game-genres strong { max-width: 65%; overflow-wrap: anywhere; }
.product-description { white-space: pre-wrap; margin: 10px 0 0; color: #c6d3e4; font-size: 14px; line-height: 1.85; text-align: center; }
.game-editions { margin-top: 18px; }
.game-editions h3, .game-screenshots h3 { text-align: left; }
.game-edition-options { display: grid; gap: 8px; }
.game-edition-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #142335; text-align: left; }
.game-edition-option.is-selected { border-color: var(--accent); background: #193c2b; }
.game-edition-copy { display: grid; min-width: 0; gap: 5px; }
.game-edition-copy > strong { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.game-edition-copy > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.game-edition-price { display: grid; justify-items: end; flex-shrink: 0; gap: 5px; font-size: 14px; white-space: nowrap; }
.game-edition-price .price-block { align-items: flex-end; }
.game-edition-price .base-price { font-size: 11px; }
.game-edition-price .discount-badge { padding: 3px 6px; font-size: 10px; }
.game-screenshots { min-width: 0; margin-top: 24px; }
.game-screenshot-list { display: flex; gap: 10px; max-width: 100%; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
.game-screenshot { position: relative; flex: 0 0 70%; min-width: 100px; min-height: 90px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 11px; background: #0d1521; }
.game-screenshot > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.game-screenshot > span { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: #0a1324d9; color: white; font-size: 11px; }
#screenshot-dialog { width: min(980px, calc(100% - 20px)); padding: 0; }
#screenshot-dialog-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.close-screenshot-dialog { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #1b2c41; font-size: 28px; }
#screenshot-content { padding: 12px; }
.game-screenshot-full { display: block; width: 100%; max-height: calc(80dvh - 150px); min-height: 120px; object-fit: contain; }
.screenshot-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.screenshot-controls > button { min-width: 48px; min-height: 44px; padding: 8px 16px; }
.screenshot-controls > span { color: var(--muted); font-size: 12px; }
.detail-items { margin: 22px 0; padding-block: 6px; border-block: 1px solid var(--line); }
.detail-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin: 14px 0; font-size: 13px; line-height: 1.7; text-align: left; }
.detail-line span { color: var(--muted); font-size: 11px; }
.detail-line strong { white-space: nowrap; }
.order-costs { margin: 22px 0; }
.order-costs .checkout-row { margin-bottom: 14px; }
.payment-details { padding: 17px; margin: 15px 0; border: 1px solid #3c5472; border-radius: 13px; background: #0c1522; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.upload-label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 16px 14px; margin: 18px 0 11px; border: 1px dashed #679a7a; border-radius: 13px; background: #19372944; color: #b5f2ca; font-size: 13px; line-height: 1.7; cursor: pointer; overflow: hidden; }
.upload-label input { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.upload-label:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.account-form { margin: 22px 0; text-align: left; }
.account-form label { display: block; margin: 17px 0 7px; color: #c4d1e1; font-size: 12px; font-weight: 550; line-height: 1.6; }
.account-form input, .account-form textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 13px; border: 1px solid #425a7b; border-radius: 11px; background: #0c1522; color: var(--text); font-size: 16px; line-height: 1.6; text-align: left; }
.account-form input:focus, .account-form textarea:focus { border-color: var(--accent); }
.account-form .primary-button { margin-top: 20px; }
.account-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.account-form h3, .account-form p, .account-form .eyebrow { text-align: center; }
.account-form .upload-label { display: flex; color: #b5f2ca; }
.account-form .upload-label input { min-height: 0; padding: 0; }
.personal-account-form { padding: 20px; border: 1px solid #3d5475; border-radius: 16px; background: #142238; }
.personal-account-region { margin: 20px 0 25px; }
.personal-account-region > strong { display: block; margin-bottom: 15px; text-align: center; }
.personal-account-form textarea { resize: vertical; min-height: 120px; }
.personal-image-name { display: block; margin-top: 9px; color: #b9c9dc; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; text-align: center; }
.order-payment { margin-top: 25px; }
.receipt-state, .order-progress-notice { padding: 16px; margin: 20px 0; border: 1px solid #4c6e96; border-radius: 14px; background: #1a304a; text-align: center; }
.receipt-state { font-size: 12px; }
.payment-locked { padding: 15px; border: 1px dashed #5c7595; border-radius: 12px; }
.order-progress-notice > strong { color: #e2edfd; font-size: 17px; line-height: 1.6; }
.order-progress-notice p:last-child { margin-bottom: 0; }
.order-progress-notice .secondary-button { margin: 16px auto 0; }
.order-ready { border-color: #4c9868; background: #193a27; }
.order-ready > strong { color: #b1f1c7; }
.order-detail-actions { display: grid; gap: 10px; margin-top: 23px; }
.code-block { padding: 18px; margin: 16px 0; border: 1px solid #4b805e; border-radius: 13px; background: #0d1c16; }
.code-block p { margin: 0 0 10px; font-size: 12px; }
.code-value { display: block; margin-bottom: 8px; color: var(--accent); font-family: ui-monospace, monospace; font-size: 19px; letter-spacing: .8px; overflow-wrap: anywhere; }
.error-box { padding: 15px; margin: 16px 0; border: 1px solid #9e6465; border-radius: 12px; background: #3e242a; color: #ffd0cb; font-size: 13px; line-height: 1.75; }
.error-box .text-button { display: flex; color: #d8e3ff; margin: 8px auto 0; }
.ps-account-banner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 21px; margin: 0 0 24px; border: 1px solid #3b6250; border-radius: 18px; background: linear-gradient(130deg, #1a3b2c66, #182a3d66), #111c29; text-align: center; }
.ps-account-banner .eyebrow { margin-bottom: 8px; color: #b2d9c2; }
.ps-account-banner h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; line-height: 1.35; }
.ps-account-banner p { margin: 8px 0 0; color: #bbccca; font-size: 12px; line-height: 1.7; }
.ps-account-banner > button { justify-self: center; }
.ps-account-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ps-account-option { min-width: 0; min-height: 46px; padding: 10px 6px; border: 1px solid #3d5472; border-radius: 11px; background: #0e1927; font-size: 12px; }
.ps-account-option.active, .ps-account-kind.active { border-color: var(--accent); background: #1b3b2c; }
.ps-account-kind-options { display: grid; gap: 10px; }
.ps-account-kind { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 18px; border: 1px solid #425a78; border-radius: 14px; background: #0e1927; text-align: left; }
.ps-account-kind strong { font-size: 14px; }
.ps-account-kind > span { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 12px; line-height: 1.7; }
.ps-account-kind > b { grid-column: 2; grid-row: 1; font-size: 18px; white-space: nowrap; }
.ps-account-kind > small { grid-column: 2; grid-row: 2; color: #b5dbc3; font-size: 11px; text-align: right; }
.ps-account-price-summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 0; margin: 22px 0; border-block: 1px solid var(--line); }
.ps-account-price-summary > span { color: var(--muted); font-size: 12px; line-height: 1.7; text-align: left; }
.ps-account-price-summary > strong { font-size: 26px; white-space: nowrap; }
.ps-account-form .secondary-button { margin-top: 10px; }
.ps-account-form .ps-account-confirmation { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 12px; line-height: 1.7; }
.ps-account-confirmation input { width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin-top: 3px; accent-color: var(--accent); }
.ps-account-field-note { margin: 7px 0 0; font-size: 11px !important; }
.ps-account-footer { display: grid; gap: 8px; margin-top: 22px; }
.ps-account-cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 20px; margin: 18px 0; border: 1px solid #417254; border-radius: 16px; background: #172c23; text-align: left; }
.ps-account-cart-item h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.6; }
.ps-account-cart-item p { margin: 6px 0; color: #b8cbbf; font-size: 12px; line-height: 1.7; }
.ps-account-cart-item > strong { font-size: 22px; white-space: nowrap; }
.ps-account-cart-item > button { grid-column: 1 / -1; justify-self: center; }
.ps-account-add-games { margin-top: 12px; }
.ps-account-linked-note { padding: 13px; border: 1px solid #4b6791; border-radius: 11px; background: #1c2e48; }
.rental-filters { margin-bottom: 20px; }
.rental-catalog-note { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.rental-filter-row, .rental-filter-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.rental-filter-row { gap: 10px; }
.rental-option { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #142135; color: var(--muted); font-size: 12px; }
.rental-option.active, .rental-price-option.active { border-color: var(--accent); background: #1d3c2d; color: #e1f9e9; }
.rental-option:disabled, .rental-price-option:disabled { cursor: wait; opacity: .6; }
.rental-price-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 16px 0 24px; }
.rental-price-option { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 85px; padding: 14px 8px; border: 1px solid #405675; border-radius: 12px; background: #142135; color: #bdcce0; font-size: 12px; text-align: center; }
.rental-price-option strong { color: var(--text); font-size: 17px; }
.rental-confirmation-note { padding: 16px; margin: 22px 0; border: 1px solid #4e8f65; border-radius: 13px; background: #193c28; color: #d8f6e2; font-size: 13px; line-height: 1.8; }
.rental-badge { display: inline-flex; padding: 7px 13px; border: 1px solid #5976a5; border-radius: 20px; margin-bottom: 18px; background: #233351; color: #d4e1ff; font-size: 11px; }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover, .game-row:hover { border-color: #658c7a; transform: translateY(-3px); }
  .category-button:hover, .game-section-button:hover, .region-picker button:hover { border-color: #617a96; }
  .primary-button:not(:disabled):hover { background: #8cf4bc; }
  .secondary-button:not(:disabled):hover { background: #273c57; border-color: #718cae; }
  .text-button:hover { color: #dce6ff; background: #9db9ff0a; }
  .subscription-term:hover { border-color: #68a17e; background: #172c24; }
  .fulfillment-option:hover, .ps-account-kind:hover { border-color: #719282; }
  .quantity-control button:not(:disabled):hover { background: #213c2d; }
}
@media (min-width: 1200px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, .88fr); align-items: start; gap: 18px; }
  .cart-checkout { position: sticky; top: 24px; }
  .cart-checkout .bonus-panel { margin-top: 0; }
  .cart-item { grid-template-columns: 48px minmax(0, 1fr); gap: 11px; align-items: start; }
  .cart-item-art { width: 48px; height: 64px; grid-row: 1 / 3; }
  .cart-item-right { display: flex; grid-column: 2; justify-content: space-between; align-items: center; width: 100%; gap: 8px; }
  .fulfillment-options { grid-template-columns: minmax(0, 1fr); }
  .fulfillment-option { flex-direction: row; min-height: 90px; text-align: left; justify-content: flex-start; padding: 16px; }
  .fulfillment-option-icon { flex-shrink: 0; }
  .fulfillment-choice { padding: 18px 14px; }
}
body:has(#cart-view:not([hidden])) #sidebar-cart { display: none; }
@media (max-width: 1080px) {
  .app-shell { padding-inline: 26px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 224px; gap: 22px; }
  .product-grid, .product-grid.game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-grid.subscription-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html { scroll-padding-bottom: 110px; }
  .app-shell { padding-inline: 18px; }
  .home-plus { padding: 12px; }
  .home-subscription-grid { gap: 10px; }
  .home-subscription-card.subscription-plan { padding: 8px; gap: 9px; }
  :root { --header-height: 56px; }
  .app-header { min-height: var(--header-height); gap: 12px; }
  .brand { gap: 9px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-wordmark { font-size: 22px; }
  .brand small { display: none; }
  .account-pill { min-width: 44px; min-height: 44px; padding: 4px; }
  .account-pill #header-name, .account-pill .online-dot { display: none; }
  .avatar { width: 34px; height: 34px; background: #1a2a3e; }
  .workspace { display: block; }
  .desktop-sidebar { display: none; }
  .catalog-heading { min-height: 218px; padding: 30px 2px 27px; }
  .catalog-heading h1 { font-size: 38px; letter-spacing: -1.5px; }
  .hero-art { right: -110px; top: 12px; opacity: .08; }
  .eyebrow { font-size: 9px; letter-spacing: 1.3px; margin-bottom: 10px; }
  .intro { font-size: 13px; max-width: 330px; margin-top: 12px; }
  .hero-benefits { gap: 8px 13px; margin-top: 16px; font-size: 10px; }
  .catalog-controls { padding: 13px; border-radius: 18px; margin-bottom: 20px; }
  .region-row { margin-bottom: 12px; }
  .region-picker button { padding-inline: 6px; font-size: 12px; }
  .region-picker .flag { font-size: 16px; }
  .section-label { font-size: 11px; margin-bottom: 8px; }
  .categories { gap: 7px; }
  .category-button { flex-direction: column; gap: 7px; min-height: 70px; padding: 10px 5px; font-size: 11px; }
  .game-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px; }
  .game-section-button { min-width: 0; font-size: 11px; line-height: 1.35; padding-inline: 6px; }
  .products-toolbar { gap: 15px; margin-top: 22px; margin-bottom: 18px; }
  .products-toolbar h2 { font-size: 24px; }
  .search-box { max-width: none; }
  .product-grid, .product-grid.game-list { gap: 12px; }
  .product-art { min-height: 130px; padding: 16px; }
  .product-body { padding: 14px 11px; }
  .product-title, .game-row-title { font-size: 13px; }
  .product-meta, .game-row-meta { font-size: 10px; }
  .product-price { font-size: 21px; }
  .game-row-main { padding: 14px 10px 0; gap: 8px; }
  .game-row-offer { padding: 13px 10px 15px; }
  .game-row:not(.rental-row) { --game-card-inline-padding: 10px; }
  .game-row:not(.rental-row) .game-row-main { font-size: 13px; }
  .product-discover { font-size: 11px; }
  .product-grid.subscription-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .subscription-plan { padding: 15px; gap: 17px; }
  .subscription-plan-heading h3 { font-size: 24px; }
  .subscription-term { min-height: 69px; padding-block: 13px; }
  .subscription-price { font-size: 19px; }
  .how-it-works { display: grid; grid-template-columns: 32px minmax(0, 1fr); padding: 18px; gap: 11px; margin-block: 24px 30px; align-items: flex-start; text-align: left; }
  .how-it-works > .text-button { grid-column: 1 / -1; justify-self: center; }
  .how-arrow { display: none; }
  .how-icon { width: 32px; height: 32px; border-radius: 10px; }
  .app-footer { flex-direction: column; align-items: center; gap: 6px; padding: 24px 0 calc(108px + var(--safe-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; bottom: 0; left: 0; right: 0; z-index: 15; gap: 4px; padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + var(--safe-bottom)) max(10px, env(safe-area-inset-right)); border-top: 1px solid #33435b; background: #111c2bf5; backdrop-filter: blur(12px); }
  .bottom-nav > button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 58px; padding: 7px 3px; border: 0; border-radius: 13px; background: transparent; color: #bdcadd; font-size: 10px; font-weight: 500; }
  .bottom-nav > button.active { background: #1c382c; color: var(--accent); }
  .bottom-nav .ui-icon { width: 22px; height: 22px; stroke-width: 1.8; }
  .bottom-cart-icon { display: block; position: relative; }
  .bottom-cart-icon .cart-badge { position: absolute; top: -9px; right: -12px; min-width: 18px; height: 18px; margin: 0; padding-inline: 4px; border: 2px solid #111c2b; border-radius: 7px; font-size: 9px; box-sizing: content-box; }
  .toast { bottom: calc(91px + var(--safe-bottom)); }
  .page-heading { padding: 28px 0 24px; }
  .page-heading h1 { font-size: 32px; letter-spacing: -1.1px; }
  .page-heading .intro { margin-top: 8px; }
  .cart-items { padding-inline: 15px; }
  .cart-item { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 13px; align-items: start; padding-block: 18px; }
  .cart-item-art { width: 56px; height: 74px; grid-row: 1 / 3; }
  .cart-item-info { text-align: left; }
  .cart-item-info h3 { font-size: 14px; }
  .cart-item-info p { font-size: 11px; margin-bottom: 10px; }
  .cart-item-right { grid-column: 2; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .cart-item-right strong { font-size: 19px; }
  .quantity-control button { width: 44px; height: 44px; }
  .checkout-box { padding: 21px 18px; margin-top: 16px; }
  .checkout-row strong { font-size: 34px; }
  .bonus-panel { padding: 17px; margin-top: 16px; }
  .fulfillment-choice { padding: 20px 16px; }
  .fulfillment-choice h3 { font-size: 20px; }
  .fulfillment-options { gap: 9px; }
  .fulfillment-option { min-height: 144px; padding: 15px 10px; }
  .fulfillment-option strong { font-size: 13px; }
  .fulfillment-option span { font-size: 11px; }
  .order-card { padding: 19px 17px; }
  .order-card-top { flex-wrap: wrap; gap: 10px; }
  .order-card-top > div { flex: 1 1 140px; }
  .order-card-top > .order-status { flex: 0 1 auto; }
  .order-card-bottom strong { font-size: 21px; }
  .order-card-bottom .secondary-button { font-size: 12px; padding-inline: 13px; }
  .profile-card { padding: 23px 20px; }
  .profile-card-heading h2 { font-size: 19px; }
  .ps-account-banner { padding: 19px 17px; }
  .ps-account-banner h2 { font-size: 19px; }
  .ps-account-banner > button { justify-self: stretch; }
  dialog { padding: 25px 21px; }
  #product-detail, #order-detail, #ps-account-content { padding: 22px 20px 25px; }
  #product-dialog h2, dialog h2 { font-size: 25px; }
  .detail-price { font-size: 34px; }
  .detail-cover { margin-bottom: 21px; }
  .product-detail-purchase { padding: 15px; }
  .personal-account-form { padding: 17px; }
  .ps-account-kind { padding: 16px 13px; gap: 8px 10px; }
  .ps-account-kind > b { font-size: 17px; }
  .ps-account-kind > small { font-size: 10px; }
  .ps-account-price-summary > strong { font-size: 24px; }
  .rental-option { font-size: 11px; }
}
@media (min-width: 761px) and (max-width: 850px) {
  .app-shell { padding-inline: 22px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .desktop-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 0; }
  .desktop-nav { align-self: start; }
  .support-card { grid-column: 1 / -1; margin: 0; }
  .product-grid.subscription-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 370px) {
  .app-shell { padding-inline: 14px; }
  .catalog-heading { min-height: 210px; }
  .catalog-heading h1 { font-size: 33px; letter-spacing: -1.3px; }
  .hero-benefits { gap: 6px 10px; font-size: 9px; }
  .catalog-controls { padding: 10px; }
  .region-picker button { font-size: 11px; gap: 4px; padding-inline: 4px; }
  .category-button { font-size: 10px; }
  .product-grid, .product-grid.game-list { gap: 10px; }
  .product-body { padding: 12px 9px; }
  .product-price { font-size: 19px; }
  .product-title, .game-row-title { font-size: 12px; }
  .game-row-main { padding-inline: 9px; }
  .game-row:not(.rental-row) { --game-card-inline-padding: 9px; }
  .game-row:not(.rental-row) .game-row-main { font-size: 12px; }
  .game-row-meta { font-size: 10px; }
  .subscription-plan { padding: 12px; }
  .subscription-term { padding-left: 11px; padding-right: 25px; gap: 7px; }
  .subscription-price { font-size: 17px; }
  .subscription-term-main > strong { font-size: 13px; }
  .subscription-stock { font-size: 10px; }
  .cart-items { padding-inline: 12px; }
  .cart-item { gap: 10px; grid-template-columns: 48px minmax(0, 1fr); }
  .cart-item-art { width: 48px; height: 64px; }
  .fulfillment-options { grid-template-columns: minmax(0, 1fr); }
  .fulfillment-option { min-height: 84px; flex-direction: row; gap: 12px; text-align: left; padding: 15px; }
  .fulfillment-option-icon { flex-shrink: 0; }
  .order-card-bottom { flex-wrap: wrap; justify-content: center; }
  .order-card-top { justify-content: center; text-align: center; }
  .order-card-top > div { flex-basis: 100%; }
  .order-card-bottom .secondary-button { width: 100%; }
  #product-detail, #order-detail, #ps-account-content { padding-inline: 16px; }
  .detail-price { font-size: 30px; }
  .detail-line { flex-wrap: wrap; gap: 5px; }
  .detail-line > div { flex-basis: 100%; }
  .personal-account-form { padding: 14px; }
  .ps-account-kind { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .ps-account-kind > span, .ps-account-kind > b, .ps-account-kind > small { grid-column: 1; grid-row: auto; text-align: center; }
  .ps-account-cart-item { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .rental-price-options { gap: 6px; }
  .rental-price-option strong { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Official-store style purchase choices with BestGame's existing palette. */
.game-publisher { margin: -4px 0 10px; color: #c9d6e7; font-size: 12px; letter-spacing: .025em; }
.game-pro-badge { display: inline-block; margin: 0 0 6px; padding: 3px 7px; border: 1px solid #526276; border-radius: 4px; color: #d5dfeb; font-size: 10px; }
.game-rating-stars { display: inline-block; position: relative; width: 110px; height: 20px; overflow: hidden; color: #ffd45a; }
.game-rating-stars > span { display: flex; width: 110px; height: 20px; gap: 2px; }
.game-rating-stars .game-rating-star { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; }
.game-rating-stars > .game-rating-stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.game-rating-stars-fill .game-rating-star { fill: currentColor; }
.game-purchase-options { display: grid; gap: 10px; margin: 18px 0 14px; }
.game-purchase-option { display: flex; align-items: flex-start; width: 100%; min-width: 0; gap: 12px; padding: 15px 13px; border: 1px solid #394b62; border-radius: 13px; background: #172334; color: var(--text); text-align: left; }
.game-purchase-option.is-selected { border-color: #65e6a5; background: #233647; box-shadow: inset 0 0 0 1px #65e6a540; }
.game-purchase-radio { flex: 0 0 20px; width: 20px; height: 20px; border: 2px solid #9aaabd; border-radius: 50%; margin-top: 3px; }
.is-selected > .game-purchase-radio { border-color: #65e6a5; background: radial-gradient(circle, #65e6a5 0 42%, transparent 47%); }
.game-purchase-copy { display: grid; min-width: 0; gap: 6px; }
.game-purchase-copy > strong { font-size: 17px; line-height: 1.3; }
.game-plus-label { color: #ffdb63; font-size: 14px; font-weight: 750; }
.game-plus-help { color: var(--muted); font-size: 11px; line-height: 1.6; }
.game-purchase-copy .product-detail-price { justify-content: flex-start; margin: 0; gap: 7px; }
.game-purchase-copy .detail-price { font-size: clamp(23px, 5.5vw, 32px); }
.game-purchase-copy .promotion-deadline { width: 100%; }
.subscription-detail-terms { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; gap: 12px; margin: 20px 0; }
.subscription-detail-terms button { width: 100%; min-width: 0; min-height: 48px; padding: 12px 4px; border: 1px solid #405976; border-radius: 9px; background: #1b2c41; color: #e0eafb; text-align: center; }
.subscription-detail-terms button.is-selected { border-color: #65e6a5; background: #153e31; }

/* Homepage previews use the official sale tile width; full catalog cards keep
   their independent platform, stock, term and purchase layout. */
#home-view .home-carousel { margin-block: 0 20px; padding-block: 14px 12px; border-radius: 20px; }
#home-view .home-carousel .home-section-heading { gap: 8px; margin-bottom: 10px; }
#home-view .home-carousel .home-section-heading h2 { font-size: clamp(20px, 3vw, 26px); }
#home-view .home-carousel .home-section-heading .eyebrow { margin-bottom: 5px; }
#home-view .home-carousel .home-section-link { min-height: 44px; padding-block: 10px; border-radius: 11px; }
#home-view .home-carousel .featured-offers-track { grid-auto-columns: min(240px, calc((100% - 12px) / 2)); padding: 7px 5px 10px; scroll-padding-inline: 5px; margin-bottom: 3px; }
#home-view .home-carousel .featured-offer { position: relative; border-radius: 15px; }
#home-view .home-carousel .featured-offer .game-open { flex: 1; height: 100%; border-radius: inherit; }
#home-view .home-carousel .featured-offer .game-row-icon { position: relative; flex: 0 0 auto; min-height: 0; aspect-ratio: 6 / 5; }
#home-view .home-carousel .featured-offer .game-row-icon .product-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#home-view .home-carousel .featured-offer .game-row-main { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 2.6em 16px auto; align-items: start; align-content: start; justify-items: center; gap: 2px; padding: 4px 7px 0; flex: 0 0 auto; font-size: 12px; }
#home-view .home-carousel .featured-offer .game-row-title { grid-row: 1; width: 100%; min-height: 0; height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.3; }
#home-view .home-carousel .featured-offer .game-row-main > .platform-badge,
#home-view .home-carousel .featured-offer:not(.rental-row) .game-row-meta { display: none; }
#home-view .home-carousel .featured-offer .game-row-main > .game-rating { grid-row: 2; height: 16px; font-size: 12px; }
#home-view .home-carousel .featured-offer .game-row-main > .promotion-deadline { grid-row: 3; max-height: 28px; font-size: 10px; line-height: 14px; }
#home-view .home-carousel .featured-offer .game-row-offer { display: block; margin-top: auto; padding: 3px 7px 4px; }
#home-view .home-carousel .featured-offer .game-price-frame { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 12px 22px; justify-items: center; align-items: center; gap: 1px; width: 100%; min-height: 44px; padding: 3px; border: 1px solid #6a5a36; border-radius: 9px; background: #292a27; text-align: center; }
#home-view .home-carousel .featured-offer .game-price-frame > .price-block { display: contents; }
#home-view .home-carousel .featured-offer .game-price-frame .base-price { grid-area: 2 / 1; align-self: center; margin: 0; font-size: 10px; line-height: 12px; }
#home-view .home-carousel .featured-offer .game-price-frame .product-price { grid-area: 3 / 1; width: 100%; color: #ffdf6f; font-size: clamp(14px, 3.8vw, 19px); line-height: 22px; white-space: nowrap; text-align: center; }
#home-view .home-carousel .featured-offer .game-price-frame > .promotion-labels { grid-area: 1 / 1; position: static; align-self: center; justify-self: center; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; }
#home-view .home-carousel .featured-offer .game-price-frame.is-regular { grid-template-rows: 36px; border-color: #40576e; background: #192a3b; }
#home-view .home-carousel .featured-offer .game-price-frame.is-regular .product-price { grid-area: 1 / 1; color: #fff; }
#home-view .home-carousel .featured-offer > .game-add-button { align-self: flex-end; flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: 0 7px 7px; padding: 0; border: 1px solid #8cf8bc; border-radius: 11px; box-shadow: 0 2px 8px #061b0f77; }
#home-view .home-carousel .featured-offer > .game-add-button .ui-icon { width: 23px; height: 23px; stroke-width: 2.2; }
#home-view .home-carousel .featured-offer .game-membership-badges { top: 6px; right: 6px; gap: 2px; max-width: calc(100% - 12px); }
#home-view .home-carousel .featured-offer .game-membership { min-height: 18px; padding: 1px 5px; border-radius: 5px; }
#home-view .home-carousel .featured-offer .subscription-brand-logo { width: 64px; height: 13px; }
#home-view .home-carousel .featured-offer .ea-play-brand { width: 51px; height: 13px; }
#home-view .home-carousel .featured-offer .game-row-main > .in-cart-label { display: inline-flex; align-items: center; justify-content: center; gap: 4px; top: -26px; right: auto; left: 6px; min-height: 20px; max-width: calc(100% - 64px); padding: 2px 5px; font-size: 10px; line-height: 14px; }
#home-view .home-carousel .featured-offer .in-cart-label > .ui-icon { width: 12px; height: 12px; }
#home-view .home-carousel .rental-row .game-row-main { grid-template-rows: 2.6em auto; }
#home-view .home-carousel .rental-row .game-row-meta { grid-row: 2; min-height: 28px; font-size: 10px; line-height: 14px; }
#home-view .home-carousel .rental-row .product-discover { width: 100%; min-height: 22px; margin-top: 3px; font-size: 10px; line-height: 14px; }
@supports (width: 1cqw) {
  #home-view .home-carousel .featured-offer { container-type: inline-size; }
  #home-view .home-carousel .featured-offer > .game-add-button { position: absolute; z-index: 3; top: calc(100cqw * 5 / 6 - 50px); right: 6px; margin: 0; }
}

/* Official sale banners share the existing autoplay and swipe lifecycle. */
.sale-collections-track { grid-auto-columns: min(240px, calc((100% - 12px) / 2)); }
.sale-collection-card { --card-neon: 169 146 255; display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; color: var(--text); text-align: left; background: linear-gradient(145deg, #1a263c, #141e2e); border: 1px solid rgb(var(--card-neon) / .8); border-radius: 17px; box-shadow: inset 0 0 0 1px rgb(var(--card-neon) / .1), 0 0 12px rgb(var(--card-neon) / .12); scroll-snap-align: start; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease; }
.sale-collection-card:nth-child(3n + 2) { --card-neon: 105 237 165; }
.sale-collection-card:nth-child(3n) { --card-neon: 110 178 255; }
.sale-collection-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sale-collection-art { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #17324a; }
.sale-collection-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sale-collection-copy { display: grid; gap: 7px; padding: 13px 12px; }
.sale-collection-copy strong { min-height: 2.6em; font-size: clamp(13px, 3.5vw, 17px); line-height: 1.3; overflow-wrap: anywhere; }
.sale-collection-copy > span { color: #c8d5e6; font-size: 11px; line-height: 1.5; }
.sale-collection-selection { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #61b98e; border-radius: 16px; background: linear-gradient(135deg, #1d3f32, #142d29); box-shadow: inset 0 0 0 1px #69eda50a, 0 0 12px #69eda50a; }
.sale-collection-selection > div { display: grid; gap: 5px; min-width: 0; }
.sale-collection-selection strong { font-size: 15px; overflow-wrap: anywhere; }
.sale-collection-selection span { color: #bfd4c9; font-size: 12px; }
.sale-collection-selection .text-button { flex-shrink: 0; }
.subscription-catalog-selection { display: grid; gap: 10px; padding: 12px; border-color: #d9c1678c; background: linear-gradient(135deg, #2a3044eb, #141f31ed); box-shadow: inset 0 0 0 1px #f1d7680a, 0 0 14px #dbc36c10; }
.subscription-catalog-selection > .subscription-catalog-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.subscription-service-button { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 46px; padding: 7px 9px; border: 1px solid #536179; border-radius: 11px; background: #121e31; color: #ccd6e4; }
.subscription-service-button.is-selected { border-color: #e4c665; background: #4e432b; color: #ffe17a; box-shadow: inset 0 0 0 1px #ffe17a22; }
.subscription-service-button[data-subscription-service="ea_play"].is-selected { border-color: #f18b8b; background: #492e38; color: #ff9b9b; box-shadow: inset 0 0 0 1px #ff9b9b22; }
.subscription-catalog-selection > .subscription-catalog-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.subscription-catalog-tiers > button { min-width: 0; min-height: 44px; padding: 8px 4px; border: 1px solid #485a74; border-radius: 10px; background: #142238; color: #d8e1ee; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.subscription-catalog-tiers > button.is-selected { border-color: #e7ca6b; background: #433e2b; color: #ffe392; }
.subscription-catalog-selection > .subscription-catalog-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.subscription-catalog-caption > strong { font-size: 13px; }
.subscription-catalog-region { display: flex; align-items: center; min-width: 0; min-height: 44px; padding: 0; border: 1px solid #52738b; border-radius: 10px; background: #172c3e; color: #dce8f6; font-size: 12px; }
.subscription-catalog-region > select { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 0; border-radius: inherit; background: transparent; color: inherit; color-scheme: dark; font: inherit; cursor: pointer; }
.subscription-catalog-selection > .subscription-catalog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
.subscription-catalog-buy { grid-column: 1 / -1; min-width: 0; min-height: 46px; padding: 10px 12px; font-size: 14px; }
.subscription-catalog-selection .subscription-catalog-buy > span { color: inherit; font-size: inherit; }
.subscription-catalog-actions > .text-button { min-width: 0; min-height: 44px; padding: 8px 4px; font-size: 12px; }
.subscription-game-list > .error-box { grid-column: 1 / -1; }
.subscription-service-button:focus-visible, .subscription-catalog-tiers > button:focus-visible, .subscription-catalog-region:focus-within { outline: 2px solid #ffe17a; outline-offset: 2px; }
@media (max-width: 360px) { .sale-collection-copy { padding: 10px; } .sale-collection-selection { flex-wrap: wrap; } }

.home-subscription-discount { position: absolute; top: 6px; right: 6px; z-index: 1; }
.home-subscription-discount .discount-badge { font-size: 10px; padding: 3px 5px; }

/* Compact catalog controls and a dedicated sort/filter sheet. */
.catalog-search-area { width: 100%; max-width: 640px; min-width: 0; }
.catalog-tools { display: flex; align-items: stretch; gap: 10px; width: 100%; min-width: 0; }
.catalog-tools > .catalog-search-area { flex: 1 1 auto; }
.catalog-tools .search-box { flex: 1 1 auto; min-width: 0; max-width: none; }
.sort-trigger { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; min-height: 50px; max-width: 100%; padding: 11px 15px; border: 1px solid #5aa889; border-radius: 13px; background: linear-gradient(145deg, #1d4636, #15382c); color: #d9ffea; font-size: 13px; font-weight: 700; line-height: 1.3; transition: background .16s ease, border-color .16s ease; }
.sort-trigger .ui-icon { width: 19px; height: 19px; }
.sort-trigger-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding-inline: 5px; border-radius: 7px; background: #92f3be; color: #102c1e; font-size: 11px; font-weight: 800; }
.game-filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; width: 100%; margin: 0 0 16px; text-align: left; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 8px 10px; border: 1px solid #4d6e79; border-radius: 11px; background: #19303b; color: #d7eae9; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; transition: background .16s ease, border-color .16s ease; }
.filter-chip .ui-icon { width: 13px; height: 13px; }
.game-sort-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--safe-bottom) - 32px); padding: 0; border: 1px solid #4b866f; border-radius: 24px; background: #121e2d; overflow: hidden; text-align: left; box-shadow: 0 20px 64px #0008, 0 0 20px #69eda50a; }
.game-sort-dialog[open] { display: flex; flex-direction: column; }
.game-sort-dialog::backdrop { background: #030812c7; backdrop-filter: blur(4px); }
.game-sort-header { position: relative; display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 14px; padding: 19px 20px 16px; border-bottom: 1px solid #2d4557; background: linear-gradient(135deg, #1b342f, #152332); }
.game-sort-header > div { min-width: 0; }
.game-sort-header .eyebrow { justify-content: flex-start; margin: 0 0 5px; color: #9aebc3; font-size: 9px; letter-spacing: 1.2px; }
.game-sort-header h2, .game-sort-dialog .game-sort-header h2 { margin: 0; font-size: 22px; letter-spacing: -.55px; line-height: 1.25; }
.game-sort-header .account-close { flex-shrink: 0; border-color: #4c6d78; background: #203c43; }
.game-sort-body { flex: 1 1 auto; min-height: 0; padding: 18px 20px 22px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4d766a transparent; }
.game-sort-dialog #game-sort-hint { margin: 0 0 19px; color: #b8cbd3; font-size: 12px; line-height: 1.65; }
.game-sort-body .game-filters { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 17px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.game-sort-body .game-filter { gap: 7px; }
.game-sort-body .game-filter > span { color: #d0dfeb; font-size: 12px; font-weight: 650; }
.game-sort-body .game-filter select { min-height: 49px; padding: 11px 34px 11px 13px; border: 1px solid #4b657d; border-radius: 12px; background: #1a2b3e; color: #f0f6ff; font-size: 16px; line-height: 1.5; }
.game-sort-body .game-filter select:focus-visible { border-color: #69eda5; outline-offset: 2px; }
.game-sort-body .game-filters-reset { display: flex; margin: 16px 0 0 auto; padding: 8px 10px; border: 1px solid #46655b; border-radius: 10px; background: #18342b; color: #c4f2d9; }
.game-sort-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 0 0 auto; gap: 11px; padding: 16px 20px max(18px, var(--safe-bottom)); border-top: 1px solid #2d4557; background: #142130; }
.game-sort-actions > button { min-width: 0; min-height: 49px; padding-inline: 10px; }

/* States use colour and small inset highlights; no animated neon or filters. */
.primary-button:not(:disabled):active, .secondary-button:not(:disabled):active, .add-button:not(:disabled):active { transform: translateY(1px); }
.primary-button:focus-visible, .secondary-button:focus-visible, .sort-trigger:focus-visible { outline-width: 2px; outline-offset: 3px; }
.product-card:focus-within, .game-row:focus-within { border-color: #69eda5; }
.sale-collections .featured-offers-track { padding: 7px 5px 14px; scroll-padding-inline: 5px; }

@media (hover: hover) and (pointer: fine) {
  .primary-button:not(:disabled):hover, .add-button:not(:disabled):hover { background: #9bf7c8; border-color: #b8ffdb; }
  .secondary-button:not(:disabled):hover { background: #304961; border-color: #7c9bb6; }
  .home-section-link:not(:disabled):hover, .home-subscription-games:not(:disabled):hover, .sort-trigger:not(:disabled):hover { background: #26533f; border-color: #88e9b5; }
  .header-icon:hover, .account-pill:hover { border-color: #6ac79e; background: #1d3a3e; }
  .text-button:not(:disabled):hover { background: #24394c; color: #e3efff; }
  .region-picker button:not(:disabled):not(.active):hover, .category-button:not(:disabled):not(.active):hover, .game-section-button:not(:disabled):not(.active):hover { border-color: #6c8e94; background: #21384a; color: #e0eef3; }
  .product-card:hover, .game-row:hover { border-color: #69ba9c; }
  .sale-collection-card:hover { border-color: rgb(var(--card-neon)); box-shadow: inset 0 0 0 1px rgb(var(--card-neon) / .16), 0 0 14px rgb(var(--card-neon) / .19); }
  .filter-chip:hover { border-color: #75cda8; background: #22473c; }
}

@media (max-width: 600px) {
  .header-tools { gap: 6px; }
  .home-carousel { padding: 17px 12px 12px; border-radius: 20px; }
  .home-plus { padding: 17px 12px 14px; border-radius: 20px; }
  .home-section-heading h2 { font-size: 23px; }
  .home-section-heading { gap: 10px; margin-bottom: 14px; }
  .home-section-link { min-height: 46px; font-size: 12px; }
  .catalog-tools { gap: 8px; }
  .sort-trigger { gap: 6px; padding-inline: 12px; font-size: 12px; }
  .game-sort-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: calc(100dvh - max(20px, env(safe-area-inset-top, 0px))); margin: 0; padding: 0; border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px #0008; }
  .game-sort-header { padding: 25px 17px 15px; }
  .game-sort-header::before { content: ''; position: absolute; top: 9px; left: 50%; width: 36px; height: 4px; border-radius: 4px; background: #6c9386; transform: translateX(-50%); }
  .game-sort-body { padding: 17px 17px 20px; }
  .game-sort-actions { padding: 14px 17px max(18px, var(--safe-bottom)); }
}
@media (max-width: 370px) {
  .app-header { gap: 5px; }
  .header-tools { gap: 4px; }
  .app-header .brand { flex: 1 1 auto; justify-content: center; gap: 4px; overflow: hidden; }
  .app-header .brand-logo { flex: 0 0 28px; width: 28px; height: 28px; }
  .app-header .brand-wordmark { min-width: 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .home-carousel { padding-inline: 10px; }
  .home-section-heading h2 { font-size: 21px; }
  .sort-trigger { gap: 5px; padding-inline: 9px; }
  .sort-trigger .ui-icon { width: 17px; height: 17px; }
  .sort-trigger-count { min-width: 18px; height: 18px; padding-inline: 3px; }
  .catalog-tools .search-box { gap: 7px; padding-inline: 10px; }
  .catalog-tools .search-box input { text-overflow: ellipsis; }
}

/* One edge-to-edge sticky region selector, shared by every customer view. */
.app-topbar .app-header { display: flex; }
.top-region-bar .region-picker { box-shadow: inset 0 1px 0 #7bc9ad09; }
.home-carousel .home-empty p { margin: 0; }
.home-carousel .home-empty .secondary-button { margin-top: 12px; }
.home-carousel .rental-row .game-open { height: 100%; }
.home-carousel .rental-row .game-row-main { flex: 1 1 auto; }
.home-carousel .rental-row .game-row-title { min-height: 2.6em; }
.home-carousel .rental-row .game-row-offer { margin-top: auto; }
@media (max-width: 1100px) { .app-topbar .app-header { padding-inline: 26px; } }
@media (max-width: 900px) { .app-topbar .app-header { padding-inline: 18px; } }
@media (max-width: 760px) {
  .app-topbar .app-header { min-height: var(--header-height); padding-inline: max(18px, env(safe-area-inset-left, 0px)); }
  .top-region-bar { padding-inline: max(18px, env(safe-area-inset-left, 0px)); }
}
@media (max-width: 360px) {
  .app-topbar .app-header { padding-inline: 14px; }
  .top-region-bar { padding-inline: 14px; }
  .top-region-bar .region-picker button { gap: 5px; padding-inline: 6px; font-size: 12px; }
}
/* Content keeps its reading width while the complete top dock spans the viewport. */
.app-shell { max-width: none; padding-inline: 0; }
.app-content { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 36px; }
.app-topbar { width: 100%; margin-inline: 0; }
@media (max-width: 1080px) { .app-content, .app-topbar .app-header { padding-inline: 26px; } }
@media (min-width: 761px) and (max-width: 850px) { .app-content, .app-topbar .app-header { padding-inline: 22px; } }
@media (max-width: 760px) { .app-content, .app-topbar .app-header { padding-inline: max(18px, env(safe-area-inset-left, 0px)); } }
@media (max-width: 370px) { .app-content, .app-topbar .app-header { padding-inline: max(14px, env(safe-area-inset-left, 0px)); } }
@media (min-width: 1200px) { .cart-checkout { top: calc(var(--top-dock-height) + 24px); } }
