/* Restricted storefront: inherit the active app theme; no global restyling. */
html.shop-preview-enabled #topup-balance-btn,html.shop-preview-enabled #subscription-btn{display:none!important}
.shop-overlay[hidden],.shop-overlay [hidden]{display:none!important}
.shop-overlay{--shop-line:rgba(var(--fg-rgb),.1);position:fixed;inset:0;z-index:10010;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.6);color:var(--text-primary);font-family:inherit;box-sizing:border-box}
.shop-overlay *{box-sizing:border-box}
.shop-shell{width:min(450px,100%);height:80vh;max-height:80dvh;display:flex;flex-direction:column;background:rgba(var(--bg-secondary-rgb),.88);border:1px solid var(--border-color);border-radius:16px;overflow:hidden;contain:layout paint}
.shop-overlay button{font:inherit;cursor:pointer;border:0;transition:background .18s,color .18s,border-color .18s}
.shop-overlay button:focus-visible,.shop-overlay a:focus-visible,.shop-overlay [tabindex]:focus-visible{outline:2px solid var(--text-primary);outline-offset:2px}
.shop-header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid var(--border-color);flex-shrink:0}
.shop-header h2{font-size:18px;font-weight:600;line-height:1.3;margin:0;color:var(--text-primary)}
.shop-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:none;color:var(--text-secondary);font-size:24px!important;line-height:1}
.shop-close:hover{background:var(--bg-tertiary)}
.shop-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(var(--fg-rgb),.2) transparent;padding:16px;touch-action:pan-y}
.shop-toolbar{flex-shrink:0;border-bottom:1px solid var(--shop-line)}
.shop-tabs{display:flex;width:100%;gap:0;padding:0;background:transparent}
.shop-tabs button{flex:1;padding:12px 16px;min-height:46px;background:transparent;color:var(--text-secondary);font-size:14px;font-weight:500;border:0;border-bottom:2px solid transparent;border-radius:0;box-shadow:none;text-align:center}
.shop-tabs button[aria-selected=true]{color:var(--text-primary);border-bottom-color:var(--primary-color)}
.shop-tabs button:hover,.shop-tabs button:active{background:transparent;box-shadow:none}
.shop-tabs button:focus-visible{outline:none;text-decoration:underline;text-underline-offset:4px}
.shop-buy{display:flex;justify-content:center;align-items:center;gap:14px;width:100%;min-height:44px;border-radius:10px;padding:12px 16px;background:var(--primary-color);color:var(--text-primary);font-size:13px!important;font-weight:550!important;line-height:1.3}
.shop-buy:hover{background:var(--primary-dark)}
.shop-buy:active{transform:translateY(1px)}
.shop-buy span{font-size:16px;font-weight:400}
.shop-offer-price{font-size:14px;line-height:1.5;color:var(--text-secondary);margin:0;font-variant-numeric:tabular-nums}
.shop-comparison{--plan-color:var(--text-primary);--plan-tint:rgba(var(--fg-rgb),.06);max-width:820px;margin:0 auto}
.shop-plan-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:rgba(var(--bg-primary-rgb),.5);border:1px solid var(--shop-line);border-radius:12px;margin-bottom:12px}
.shop-plan-tabs button{min-height:42px;padding:10px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-secondary);font-size:14px;font-weight:500}
.shop-plan-tabs button[aria-selected=true]{background:var(--bg-tertiary);border-color:rgba(var(--fg-rgb),.2);color:var(--text-primary)}
.shop-plan-tabs button:hover:not([aria-selected=true]){background:rgba(var(--fg-rgb),.04)}
.shop-compare-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;line-height:1.5;font-size:12px;font-variant-numeric:tabular-nums}
.shop-compare-label{width:46%}
.shop-compare-table th,.shop-compare-table td{padding:13px 10px;text-align:center;vertical-align:middle;font-weight:400;color:var(--text-secondary);border-bottom:1px solid var(--shop-line)}
.shop-compare-table tbody th{text-align:left}
.shop-compare-table tbody td{font-size:13px;color:var(--text-primary)}
.shop-compare-table thead th,.shop-compare-table thead td{position:sticky;top:-16px;z-index:1;background:var(--bg-secondary);padding:0}
.shop-compare-table thead th.selected{background:var(--bg-tertiary);border-radius:8px 8px 0 0}
.shop-compare-table thead button{width:100%;min-height:44px;padding:10px 4px;background:transparent;color:inherit;font-size:12px;font-weight:500;overflow-wrap:anywhere}
.shop-compare-table .selected{background:var(--plan-tint);color:var(--text-primary);font-weight:600}
.shop-compare-table tbody tr:last-child td.selected{border-radius:0 0 8px 8px}
.shop-compare-check{font-size:18px;line-height:1;font-weight:400}.shop-compare-check.excluded{opacity:.55}
.shop-pack-list{display:flex;flex-direction:column;gap:10px;max-width:820px;margin:auto}
.shop-pack{min-width:0;display:grid;grid-template-columns:120px minmax(0,1fr) auto;align-items:center;gap:18px;border:1px solid rgba(var(--primary-color-rgb),.3);border-radius:12px;background:linear-gradient(105deg,rgba(var(--primary-color-rgb),.12),rgba(var(--bg-primary-rgb),.16));box-shadow:inset 0 1px 0 rgba(var(--fg-rgb),.04);padding:10px 16px;transition:border-color .18s,background .18s}
.shop-pack:hover{border-color:rgba(var(--primary-color-rgb),.6);background:linear-gradient(105deg,rgba(var(--primary-color-rgb),.18),rgba(var(--bg-primary-rgb),.16))}
.shop-pack-info{display:contents}
.shop-pack h4{font-size:26px;font-weight:600;letter-spacing:-.025em;color:var(--text-primary);margin:0;white-space:nowrap}
.shop-pack h4 span{font-size:12px;font-weight:500;letter-spacing:0;color:rgba(var(--text-primary-rgb),.7)}
.shop-pack .shop-offer-price{justify-self:center;text-align:center;font-size:17px;font-weight:500;white-space:nowrap;color:rgba(var(--text-primary-rgb),.94)}
.shop-pack .shop-buy{width:120px;box-shadow:0 2px 8px rgba(var(--primary-color-rgb),.15)}
.shop-payment{max-width:500px;margin:0 auto;padding:0 0 20px}
.shop-payment h3{font-size:25px;font-weight:500;letter-spacing:-.025em;margin:20px 0 10px;color:var(--text-primary)}
.shop-payment>p{color:var(--text-secondary);font-size:13px;margin:0 0 20px}
.shop-payment-options{display:grid;gap:10px}
.shop-payment-option{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;text-align:left;padding:18px;border:1px solid var(--shop-line)!important;border-radius:12px;background:rgba(var(--bg-primary-rgb),.2);color:var(--text-primary)}
.shop-payment-option:hover:not(:disabled){background:var(--bg-tertiary)}
.shop-payment-option span{font-size:14px}.shop-payment-option strong{font-size:18px;font-weight:500;font-variant-numeric:tabular-nums}
.shop-payment-option small{grid-column:1/-1;color:var(--text-secondary);font-size:11px}
.shop-payment-option:disabled{opacity:.45;cursor:default}
.shop-overlay .shop-website{justify-self:center;display:block;min-height:44px;padding:10px 12px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--text-primary);font-size:14px;text-align:center;text-decoration:underline;text-underline-offset:3px}
.shop-overlay .shop-website:hover{background:transparent;color:var(--text-secondary)}
.shop-checkout-confirm{display:grid;gap:18px;padding:12px 0}
.shop-checkout-confirm p{margin:0;color:var(--text-secondary);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.shop-checkout-confirm .shop-buy:disabled{opacity:.45;cursor:default}
.shop-footer{max-width:820px;margin:0 auto}
.shop-footer p{margin:22px 0 0;padding-top:16px;border-top:1px solid var(--shop-line);color:var(--text-secondary);font-size:11px;line-height:1.7}
.shop-state{min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--text-secondary);font-size:14px;text-align:center}
.shop-retry{border-radius:10px;padding:10px 20px;background:var(--primary-color);color:var(--text-primary)}
@media(max-width:700px){
.shop-overlay{padding:0;align-items:flex-end}.shop-shell{border-radius:16px 16px 0 0;width:100%;height:calc(100vh - var(--shop-header-offset,56px));height:calc(100dvh - var(--shop-header-offset,56px));max-height:calc(100dvh - var(--shop-header-offset,56px));border-bottom:0}
.shop-scroll{padding:16px 12px calc(16px + env(safe-area-inset-bottom))}
.shop-plan-tabs{gap:3px;padding:3px}.shop-plan-tabs button{font-size:13px;padding:10px 4px}
.shop-compare-label{width:43%}.shop-compare-table{font-size:11px}.shop-compare-table th,.shop-compare-table td{padding:12px 4px}.shop-compare-table tbody td{font-size:11px}.shop-compare-table tbody th{padding-right:8px;overflow-wrap:break-word}
.shop-compare-table thead button{font-size:10px;min-height:42px;padding:10px 2px}
.shop-pack{grid-template-columns:92px minmax(0,1fr) auto;padding:8px 10px;gap:8px}.shop-pack h4{font-size:22px}.shop-pack h4 span{font-size:11px}.shop-pack .shop-offer-price{font-size:15px}.shop-pack .shop-buy{width:70px;min-height:42px;padding:10px 8px;font-size:12px!important;gap:0}
.shop-payment h3{font-size:23px}.shop-payment-option{padding:16px 14px}
}
@media(prefers-reduced-motion:reduce){.shop-overlay button{transition:none}.shop-buy:active{transform:none}}

.shop-pack-reminder{text-align:center;max-width:820px;margin:0 auto 14px;color:var(--text-secondary);font-size:11px;line-height:1.7}

@media(max-width:380px){.shop-pack{grid-template-columns:84px minmax(0,1fr) auto;padding:8px;gap:6px}.shop-pack h4{font-size:20px}.shop-pack .shop-offer-price{font-size:14px}.shop-pack .shop-buy{width:62px}}
@media(max-width:340px){.shop-pack{grid-template-columns:74px minmax(0,1fr) auto;padding:8px 6px;gap:5px}.shop-pack h4{font-size:18px}.shop-pack h4 span{font-size:10px}.shop-pack .shop-offer-price{font-size:12.5px}}

.shop-overlay .shop-currency-star{color:#e7c66f;font:inherit}

@media(max-width:400px){.shop-tabs button{font-size:13px;padding:10px 12px}}

/* Shared currency columns keep slash alignment and equal outer spacing. */
.shop-pack .shop-package-price{justify-self:stretch;display:flex;justify-content:center;align-items:center;gap:4px}
@supports(grid-template-columns:subgrid){
.shop-pack-list{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content auto max-content minmax(0,1fr) auto;column-gap:6px;row-gap:10px}
.shop-pack{grid-column:1/-1;grid-template-columns:subgrid;column-gap:6px}
.shop-pack h4{grid-column:1}
.shop-pack .shop-package-price{grid-column:2/7;display:grid;grid-template-columns:subgrid;column-gap:6px}
.shop-price-stars{grid-column:2;text-align:right}
.shop-price-divider{grid-column:3;text-align:center}
.shop-price-rubles{grid-column:4;text-align:left}
.shop-pack .shop-buy{grid-column:7}
.shop-pack .shop-package-price:not(:has(.shop-price-divider)){display:block;text-align:center}
@media(max-width:700px){.shop-pack-list,.shop-pack,.shop-pack .shop-package-price{column-gap:3px}}
@media(max-width:380px){.shop-pack-list,.shop-pack,.shop-pack .shop-package-price{column-gap:2px}}
}
.shop-pack{--shop-package-font-size:26px}
.shop-pack h4,.shop-pack .shop-package-price{font-size:var(--shop-package-font-size);font-weight:600;letter-spacing:-.025em}
.shop-pack .shop-package-price{font-size:calc(var(--shop-package-font-size) - 2px)}
@media(max-width:700px){.shop-pack{--shop-package-font-size:22px}}
@media(max-width:380px){.shop-pack{--shop-package-font-size:20px}}
@media(max-width:340px){.shop-pack{--shop-package-font-size:18px}}

/* Coin storefront: the selected app palette still supplies all surface colours. */
.shop-shell{--shop-action:var(--text-primary);--shop-action-ink:var(--bg-primary);background:radial-gradient(ellipse at 85% 0,rgba(var(--fg-rgb),.045),transparent 45%),var(--bg-primary);border-color:rgba(var(--fg-rgb),.12)}
.shop-header{position:relative;min-height:116px;padding:18px 20px;border-bottom:0;isolation:isolate}
.shop-heading{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.shop-heading h2{font-size:26px;letter-spacing:-.025em}
.shop-heading-icon{width:46px;height:46px;flex-shrink:0;aspect-ratio:1;border-radius:50%;background:linear-gradient(145deg,rgba(var(--fg-rgb),.1),rgba(var(--fg-rgb),.03));display:flex;align-items:center;justify-content:center}
.shop-heading-icon svg{width:28px;height:28px;display:block;transform:translateY(-1px);flex-shrink:0}
.shop-coins{position:absolute;right:22px;bottom:-16px;width:234px;max-width:50.4%;height:auto;aspect-ratio:2.06;overflow:visible;pointer-events:none;z-index:0}
.shop-close{position:absolute;right:12px;top:10px;z-index:2;color:var(--text-primary);font-size:28px!important}
.shop-toolbar{position:relative;z-index:2;padding:0 16px 6px;border:0}
.shop-tabs{border:1px solid rgba(var(--fg-rgb),.12);border-radius:999px;background:linear-gradient(115deg,rgba(var(--fg-rgb),.1),rgba(var(--fg-rgb),.045));gap:0}
.shop-tabs button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:10px 12px;border:0;border-radius:999px;font-size:14px;font-weight:500;color:var(--text-primary);white-space:nowrap}
.shop-tabs button[aria-selected=true],.shop-tabs button[aria-selected=true]:hover,.shop-tabs button[aria-selected=true]:active{color:var(--shop-action-ink);background:linear-gradient(125deg,var(--shop-action),color-mix(in srgb,var(--shop-action) 85%,var(--bg-primary)));box-shadow:inset 0 1px 1px rgba(255,255,255,.45);font-weight:600}
.shop-tabs button:hover:not([aria-selected=true]){background:rgba(var(--fg-rgb),.04)}
.shop-tabs button:focus-visible{outline:2px solid var(--primary-color);outline-offset:-3px;text-decoration:none}
.shop-tab-coin{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1.7px solid currentColor;border-radius:50%;font-size:10px;font-weight:700;letter-spacing:-.06em;flex-shrink:0}
.shop-tab-crown{width:24px;height:24px;flex-shrink:0}
.shop-scroll{padding-top:4px}
.shop-pack-reminder{display:flex;align-items:center;justify-content:center;gap:10px;padding:6px 10px;margin-bottom:10px;border:1px solid rgba(var(--fg-rgb),.12);border-radius:14px;background:linear-gradient(115deg,rgba(var(--fg-rgb),.07),rgba(var(--fg-rgb),.035));font-size:13px;line-height:1.4;color:var(--text-primary)}
.shop-pack-reminder svg{width:19px;height:19px;flex-shrink:0}
.shop-pack{border-color:rgba(var(--fg-rgb),.1);border-radius:14px;background:linear-gradient(115deg,rgba(var(--fg-rgb),.035),rgba(var(--fg-rgb),.015));box-shadow:inset 0 1px 0 rgba(var(--fg-rgb),.025)}
.shop-pack:hover{border-color:rgba(var(--fg-rgb),.22);background:linear-gradient(115deg,rgba(var(--fg-rgb),.065),rgba(var(--fg-rgb),.03))}
.shop-buy{border-radius:999px;background:linear-gradient(135deg,var(--shop-action),color-mix(in srgb,var(--shop-action) 85%,var(--bg-primary)));color:var(--shop-action-ink);box-shadow:inset 0 1px 1px rgba(255,255,255,.45);font-weight:600!important}
.shop-buy:hover{background:var(--shop-action)}
.shop-pack .shop-buy{box-shadow:inset 0 1px 1px rgba(255,255,255,.45)}
.shop-pack .shop-package-price{font-weight:500}
.shop-overlay .shop-currency-star{display:inline-block;width:1.05em;height:1.05em;object-fit:contain;vertical-align:-.14em}
.shop-price-divider{color:rgba(var(--text-primary-rgb),.7)}
.shop-plan-tabs{background:rgba(var(--fg-rgb),.04);border-color:rgba(var(--fg-rgb),.1)}
.shop-plan-tabs button[aria-selected=true]{background:rgba(var(--fg-rgb),.12);border-color:rgba(var(--fg-rgb),.2)}
.shop-plan-offer{background:linear-gradient(115deg,rgba(var(--fg-rgb),.035),rgba(var(--fg-rgb),.015));border-color:rgba(var(--fg-rgb),.12)}
@media(max-width:700px){
.shop-header{min-height:104px;padding:16px 14px}
.shop-heading{gap:9px}.shop-heading h2{font-size:24px}
.shop-heading-icon{width:38px;height:38px}.shop-heading-icon svg{width:24px;height:24px}
.shop-coins{right:10px;width:207px;height:auto;max-width:54%}
.shop-toolbar{padding:0 12px 6px}.shop-scroll{padding-top:4px}
.shop-tabs button{gap:8px;font-size:14px;padding:10px 8px}
.shop-pack-reminder{font-size:12px;gap:8px}
}
@media(max-width:340px){
.shop-heading h2{font-size:21px}.shop-heading-icon{width:30px;height:30px}.shop-heading-icon svg{width:19px;height:19px}
.shop-coins{right:8px;max-width:53.1%}.shop-tabs button{font-size:13px;gap:7px}
.shop-pack-reminder{font-size:11px;padding:6px 7px;gap:6px}
}

/* Reflection is painted into the asset on the coins' contact plane. */
.shop-coins-image{display:block;width:100%;height:auto;position:absolute;top:0;left:0;z-index:1;mask-image:linear-gradient(to bottom,#000 90%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 90%,transparent 100%)}

/* The tab surface sits over the reflection, rather than cutting off the artwork above it. */
.shop-tabs{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

.shop-heading .shop-back{border:1px solid rgba(var(--fg-rgb),.1)}
.shop-heading .shop-back:active{border-color:rgba(var(--fg-rgb),.22)}

.shop-rolya-image{display:none}
.shop-payment-view{--shop-mascot-size:168px}
.shop-payment-view .shop-header{min-height:0;flex-direction:column;align-items:stretch;justify-content:flex-start}
.shop-payment-view .shop-coins{right:60px;top:20px;bottom:auto;width:auto;height:calc(100% - 38px);max-width:none;aspect-ratio:1}
.shop-payment-view .shop-coins-image{display:none}
.shop-payment-view .shop-rolya-image{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
@media(max-width:700px){.shop-payment-view{--shop-mascot-size:clamp(120px,38vw,160px)}.shop-payment-view .shop-coins{right:48px;height:calc(100% - 36px)}}


.shop-payment-view .shop-heading{align-self:flex-start;align-items:center}
.shop-heading-copy #shop-title{white-space:nowrap}
.shop-header-purchase{margin:0;font-size:23px;font-weight:500;line-height:1.3;letter-spacing:-.025em;color:var(--text-primary);overflow-wrap:break-word}

.shop-payment-intro{position:relative;z-index:1;margin-top:12px;max-width:calc(100% - var(--shop-mascot-size) - 48px)}
.shop-payment-intro p{margin:8px 0 0;color:var(--text-secondary);font-size:13px;line-height:1.4}

@media(max-width:700px){.shop-payment-intro{max-width:calc(100% - var(--shop-mascot-size) - 32px)}}

@media(max-width:380px){.shop-payment-view .shop-coins{right:14px}}

.shop-payment-option .shop-payment-label{display:flex;align-items:center;gap:9px;min-width:0;white-space:nowrap}
.shop-payment-option[data-pay="sbp"] .shop-payment-label span{white-space:normal}
.shop-payment-logo{display:block;width:24px;height:24px;flex:0 0 24px;object-fit:contain}
.shop-payment-option strong{white-space:nowrap}
@media(max-width:340px){.shop-payment-option .shop-payment-label{gap:7px}.shop-payment-option .shop-payment-label span{font-size:13px}}

/* Subscription comparison and purchase dock share the selected tariff accent. */
.shop-subscriptions-view{--shop-plan-accent:175,103,231}
.shop-subscriptions-view .shop-scroll{flex:1;scroll-padding-top:46px}
.shop-comparison{--plan-tint:rgba(var(--shop-plan-accent),.17)}
.shop-plan-tabs{gap:0;padding:0;border-radius:13px;margin-bottom:18px;background:linear-gradient(115deg,rgba(var(--fg-rgb),.08),rgba(var(--fg-rgb),.035))}
.shop-plan-tabs button{min-height:44px;border-radius:12px;color:var(--text-primary)}
.shop-plan-tabs button[aria-selected=true]{border-color:rgba(var(--shop-plan-accent),.9);background:linear-gradient(120deg,rgba(var(--shop-plan-accent),.28),rgba(var(--shop-plan-accent),.12));box-shadow:inset 0 0 14px rgba(var(--shop-plan-accent),.18),0 0 10px rgba(var(--shop-plan-accent),.15)}
.shop-compare-table{border:1px solid rgba(var(--fg-rgb),.16);border-radius:14px;background:rgba(var(--fg-rgb),.025)}
.shop-compare-table thead th{top:-4px;background:color-mix(in srgb,var(--text-primary) 7%,var(--bg-primary));font-weight:500}
.shop-compare-table thead th:first-child{border-top-left-radius:13px}
.shop-compare-table thead th:last-child{border-top-right-radius:13px}
.shop-compare-table thead th.selected{background:color-mix(in srgb,rgb(var(--shop-plan-accent)) 38%,var(--bg-primary));color:var(--text-primary);border-radius:12px 12px 0 0}
.shop-compare-table .shop-compare-heading{text-align:left;padding:10px;font-size:12px;color:var(--text-primary)}
.shop-compare-table th,.shop-compare-table td{border-bottom-color:rgba(var(--fg-rgb),.075)}
.shop-compare-table tbody tr:last-child>*{border-bottom:0}
.shop-compare-table tbody tr:last-child th{border-bottom-left-radius:13px}
.shop-compare-table tbody tr:last-child td:last-child{border-bottom-right-radius:13px}
.shop-plan-offer{flex-shrink:0;display:grid;grid-template-columns:minmax(100px,1fr) auto minmax(110px,1fr);align-items:center;gap:24px;padding:18px 24px calc(18px + env(safe-area-inset-bottom));margin:0;border-top:1px solid rgba(var(--shop-plan-accent),.35);border-radius:20px 20px 0 0;background:linear-gradient(110deg,rgba(var(--shop-plan-accent),.19),rgba(var(--shop-plan-accent),.08)),var(--bg-primary);box-shadow:0 -8px 24px rgba(0,0,0,.12);z-index:3}
.shop-selected-value{min-width:0;padding-right:14px;border-right:1px solid rgba(var(--shop-plan-accent),.25)}
.shop-selected-value strong{font-size:17px;font-weight:600;line-height:1.3;color:var(--text-primary)}
.shop-offer-duration{margin:2px 0 0;font-size:12px;line-height:1.4;color:var(--text-secondary)}
.shop-plan-offer .shop-offer-price{font-size:18px;font-weight:500;white-space:nowrap;text-align:center;color:var(--text-primary)}
.shop-plan-offer .shop-buy{width:140px;min-height:44px;justify-self:end}
@media(max-width:700px){
.shop-plan-offer{grid-template-columns:auto minmax(0,1fr) auto;gap:12px;padding:14px 12px calc(14px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0}
.shop-selected-value{padding-right:10px}.shop-selected-value strong{font-size:14px}.shop-offer-duration{font-size:11px}
.shop-plan-offer .shop-offer-price{font-size:15px;letter-spacing:-.025em}
.shop-plan-offer .shop-buy{width:88px;min-height:40px;padding:10px 12px}
.shop-compare-table .shop-compare-heading{padding:10px 6px;font-size:11px}
}
@media(max-width:380px){
.shop-plan-offer{gap:7px;padding-left:10px;padding-right:10px}
.shop-selected-value{padding-right:7px}.shop-selected-value strong{font-size:13px}
.shop-plan-offer .shop-offer-price{font-size:13px}
.shop-plan-offer .shop-buy{width:66px;font-size:12px!important}
}

/* Keep the table mounted so the highlight can glide from its current position. */
.shop-table-wrap{--shop-label-share:46%;position:relative;isolation:isolate}
.shop-column-highlight{position:absolute;pointer-events:none;z-index:-1;top:1px;bottom:1px;left:calc(1px + (100% - 2px)*.46);width:calc((100% - 2px)*.54/var(--shop-column-count));border-radius:12px;background:var(--plan-tint);transform:translateX(calc(var(--shop-column-index)*100%));transition:transform 650ms cubic-bezier(.22,.61,.36,1)}
.shop-table-wrap .shop-compare-label{width:var(--shop-label-share)}
.shop-table-wrap .shop-compare-table .selected{background:transparent}
.shop-table-wrap .shop-compare-table thead th,.shop-table-wrap .shop-compare-table thead th.selected{overflow:hidden;background:color-mix(in srgb,var(--text-primary) 7%,var(--bg-primary))}
.shop-table-wrap .shop-compare-table thead th.selected{border-radius:0}
.shop-table-wrap .shop-compare-table thead th:last-child{border-top-right-radius:13px}
.shop-table-wrap .shop-compare-table thead th:not(:first-child)::before{content:"";position:absolute;inset:0;pointer-events:none;background:rgba(var(--shop-plan-accent),.32);border-radius:12px 12px 0 0;transform:translateX(calc((var(--shop-column-index) - var(--shop-cell-index))*100%));transition:transform 650ms cubic-bezier(.22,.61,.36,1)}
.shop-table-wrap .shop-compare-table thead button{position:relative;z-index:1}
@media(max-width:700px){.shop-table-wrap{--shop-label-share:43%}.shop-column-highlight{left:calc(1px + (100% - 2px)*.43);width:calc((100% - 2px)*.57/var(--shop-column-count))}}
@media(prefers-reduced-motion:reduce){.shop-column-highlight,.shop-table-wrap .shop-compare-table thead th:not(:first-child)::before{transition:none}}

/* Move the header as one opaque layer: rows and side borders stay behind its corners. */
.shop-table-wrap .shop-compare-table thead{position:sticky;top:-4px;z-index:2;isolation:isolate}
.shop-table-wrap .shop-compare-table thead::before{content:"";position:absolute;inset:-1px -1px 0;z-index:-1;background:var(--bg-primary);pointer-events:none}
.shop-table-wrap .shop-compare-table thead::after{content:"";position:absolute;inset:-1px -1px 0;border:1px solid rgba(var(--fg-rgb),.16);border-bottom:0;border-radius:14px 14px 0 0;pointer-events:none;z-index:2}
.shop-table-wrap .shop-compare-table thead th{position:relative;top:auto}

.shop-compare-table td[data-plan-cell]{cursor:pointer}

.shop-header-purchase .shop-purchase-rc{display:block;white-space:nowrap}

/* На ПК магазин имеет ту же узкую ширину, что окно «Заработать RC». */
@media(min-width:701px){
.shop-header{min-height:104px;padding:16px 14px}
.shop-heading{gap:9px}.shop-heading h2{font-size:24px}
.shop-heading-icon{width:38px;height:38px}.shop-heading-icon svg{width:24px;height:24px}
.shop-coins{right:10px;width:207px;max-width:54%}
.shop-toolbar{padding:0 12px 6px}.shop-scroll{padding:4px 12px 16px}
.shop-pack{--shop-package-font-size:22px;padding:8px 10px;gap:8px}
.shop-pack-list,.shop-pack,.shop-pack .shop-package-price{column-gap:3px}
.shop-pack h4 span{font-size:11px}
.shop-pack .shop-buy{width:70px;min-height:42px;padding:10px 8px;font-size:12px!important;gap:0}
.shop-payment-view .shop-coins{right:48px;height:calc(100% - 36px)}
.shop-payment-intro{max-width:calc(100% - var(--shop-mascot-size) - 32px)}
.shop-plan-offer{grid-template-columns:auto minmax(0,1fr) auto;gap:12px;padding:14px 12px;border-radius:18px 18px 0 0}
.shop-selected-value{padding-right:10px}.shop-selected-value strong{font-size:14px}.shop-offer-duration{font-size:11px}
.shop-plan-offer .shop-offer-price{font-size:15px;letter-spacing:-.025em}
.shop-plan-offer .shop-buy{width:88px;min-height:40px;padding:10px 12px}
}

/* При сильном уменьшении на обычном мониторе сохраняем мелкие детали PNG. */
@media(min-width:701px) and (max-resolution:1.5dppx){
.shop-payment-view .shop-rolya-image{image-rendering:auto}
}

/* Изолируем исходные звёзды без перерисовки PNG и двигаем независимо от Роли. */
.shop-rolya-clips{position:absolute;pointer-events:none}
.shop-rolya-base{clip-path:url(#shop-rolya-clip-base)}
.shop-payment-view .shop-rolya-star{position:absolute;inset:0;pointer-events:none;will-change:transform}
.shop-rolya-star-left{clip-path:url(#shop-rolya-clip-left);transform-origin:23.5% 42.5%;animation:shop-rolya-star-left 7s ease-in-out infinite}
.shop-rolya-star-right{clip-path:url(#shop-rolya-clip-right);transform-origin:73.4% 51.8%;animation:shop-rolya-star-right 8.5s ease-in-out -2s infinite}
@keyframes shop-rolya-star-left{
0%,100%{transform:translate(0,0) rotate(-5deg)}
20%{transform:translate(-2.5%,-1.5%) rotate(3deg)}
45%{transform:translate(-3.5%,1%) rotate(9deg)}
70%{transform:translate(-1.5%,3%) rotate(1deg)}
85%{transform:translate(.5%,1.5%) rotate(-6deg)}
}
@keyframes shop-rolya-star-right{
0%,100%{transform:translate(0,0) rotate(5deg)}
25%{transform:translate(2.8%,-2%) rotate(-3deg)}
45%{transform:translate(4%,.7%) rotate(-9deg)}
65%{transform:translate(2%,2.8%) rotate(-1deg)}
85%{transform:translate(-.5%,1%) rotate(6deg)}
}
@media(prefers-reduced-motion:reduce){.shop-rolya-star-left,.shop-rolya-star-right{animation:none;transform:none;will-change:auto}}
