/* Quality changes only presentation. Main content and media remain available. */
.ndes-quality{color-scheme:dark;box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:20px;border:1px solid #ffffff24;border-radius:22px;background:#12151e;color:#f6f3f0;font:inherit;box-shadow:0 20px 65px #0008;z-index:2147483646;text-align:start}
.ndes-quality:not([open]){display:none}
.ndes-quality[open]{position:fixed;inset:0;display:block;height:fit-content}
.ndes-quality::backdrop{background:#060911b8}
.ndes-quality header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.ndes-quality h2{margin:0;font-size:19px;line-height:1.8;color:#fff}
.ndes-quality [data-performance-close]{display:grid;place-items:center;line-height:1;text-align:center;width:38px;height:38px;padding:0;border:1px solid #ffffff20;border-radius:12px;background:#ffffff08;color:#ddd;font-size:25px;cursor:pointer}
.ndes-quality fieldset{border:0;padding:0;margin:0;display:grid;gap:9px}
.ndes-quality label{display:flex;align-items:flex-start;gap:11px;margin:0;padding:12px;border:1px solid #ffffff16;border-radius:14px;background:#ffffff03;cursor:pointer}
.ndes-quality label:has(input:checked){border-color:#ff995f99;background:#ff782d0b}
.ndes-quality input{appearance:auto!important;width:18px!important;height:18px!important;padding:0!important;flex:none;margin:5px 0 0;accent-color:#ff8f4e}
.ndes-quality label>span{min-width:0}
.ndes-quality strong{display:block;font-size:14px;color:#f9eee8}
.ndes-quality small{display:block;font-size:11px;line-height:1.9;color:#b1b7c5}
.ndes-quality .ndes-quality__status{color:#ffb383;margin-top:5px;font-size:10px}
.ndes-quality [hidden]{display:none!important}
.ndes-quality :focus-visible{outline:2px solid #ffb383;outline-offset:3px}
.ndes-quality__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:480px){.ndes-quality{padding:16px;border-radius:19px}.ndes-quality label{padding:10px}.ndes-quality header{margin-bottom:10px}}


/* iOS/WebKit paint-safety guard. Independent of Auto/Full/Lite; it only removes unsafe compositor blur paths. */
html[data-webkit-ios="true"] *,
html[data-webkit-ios="true"] *::before,
html[data-webkit-ios="true"] *::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-webkit-ios="true"] :is(.hm-market__orb,.mp-orb,.ambient-orb,.red-ball){animation:none!important;will-change:auto!important}

/* Reduced keeps the visual design, with bounded blur and static backgrounds. */
html[data-performance="reduced"] :is(.mobile-store-nav,.ndx-header,.ndx-dd-panel,.search-overlay .search-wrapper,.cart-modal-content,.mp-glass,.hm-market__search,.pdx-mobile-buybar,.pdx-compare-float,.checkout-command-v3,.checkout-payment-pass-v3,.toast-message){-webkit-backdrop-filter:blur(5px)!important;backdrop-filter:blur(5px)!important}
html[data-performance="reduced"] :is(.hm-market__orb,.mp-orb,.catalog-hero__glow){filter:none!important;animation:none!important}
html:is([data-performance="reduced"],[data-performance="lite"],[data-reduced-motion="true"]) :is(.hm-market__orb,.mp-orb,.red-ball,.big-star,.small-star,.rotate-award,.comments-dot,.checkout-total-visual-v3)::before,
html:is([data-performance="reduced"],[data-performance="lite"],[data-reduced-motion="true"]) :is(.hm-market__orb,.mp-orb,.red-ball,.big-star,.small-star,.rotate-award,.comments-dot,.checkout-total-visual-v3),
html:is([data-performance="reduced"],[data-performance="lite"],[data-reduced-motion="true"]) :is(.line,.tournament-wrapper-border)::before,
html:is([data-performance="reduced"],[data-performance="lite"],[data-reduced-motion="true"]) :is(.line,.tournament-wrapper-border)::after{animation:none!important}
html:is([data-performance="reduced"],[data-performance="lite"]) :is([data-particles],.particles-js,#particles-js){display:none!important}
html:is([data-performance="reduced"],[data-performance="lite"],[data-reduced-motion="true"]) :is(.parallax-img,[data-tilt],.card-tilt,.card-tilt2){transform:none!important;will-change:auto!important}
html[data-performance="lite"] :is(.hm-market__orb,.mp-orb,.catalog-hero__glow,.checkout-ambient-v3,.red-ball,.cursor){display:none!important}
html[data-performance="lite"] :is(.mobile-store-nav,.ndx-header,.ndx-dd-panel,.search-overlay,.search-wrapper,.cart-modal-content,.mp-glass,.mp-select__panel,.hm-market__search,.pdx-mobile-buybar,.pdx-compare-float,.checkout-command-v3,.checkout-payment-pass-v3,.toast-message,.glass-modal,.lp-mode-panel,.lp-badge,.news-chip){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-performance="lite"] :is(.p-card,.account-card,.mp-card,.hm-market-card,.hero-card){box-shadow:0 3px 10px #0003!important;transition:opacity .12s ease,border-color .12s ease!important}
html[data-performance="lite"] :is(.p-card,.account-card,.mp-card,.hm-market-card,.hero-card):hover{transform:none!important}
html[data-reduced-motion="true"]{scroll-behavior:auto!important}
html[data-performance-paused="true"] *,html[data-performance-paused="true"] *::before,html[data-performance-paused="true"] *::after{animation-play-state:paused!important}

/* NEX: retain facial states/blink in Lite, limit large gestures in Reduced. */
.nex-buddy__blink{display:none}
.nex-blink .nex-buddy__blink{display:block}
html[data-performance="full"] .nex :is(.nex-buddy__spark,.nex-buddy__heart,.nex-buddy__question,.nex-buddy__sweat){animation-iteration-count:3}
html[data-performance="reduced"] .nex .nex-buddy__head{animation:nex-soft-nod .35s ease 1!important;transition:transform .16s ease}
html:is([data-performance="reduced"],[data-performance="lite"]) .nex :is(.nex-buddy__arm-a,.nex-buddy__arm-b,.nex-buddy__body,.nex-buddy__spark,.nex-buddy__heart,.nex-buddy__question,.nex-buddy__sweat,.nex-buddy__sleep){animation:none!important}
html[data-performance="lite"] .nex .nex-buddy__head{animation:none!important;transition:transform .12s ease;transform:translateY(0)}
html[data-performance="lite"] .nex:is([data-emotion=happy],[data-emotion=pleased],[data-emotion=curious],[data-emotion=empathetic],[data-emotion=tired],[data-emotion=sleepy]) .nex-buddy__head{transform:translateY(1px)!important}
html[data-performance="lite"] .nex .nex-buddy__talk{animation:nex-talk .6s ease 2!important}
html[data-performance="lite"] .nex :is(.nex-buddy__arm-a,.nex-buddy__arm-b){transform:none!important}
html[data-performance="lite"] .nex :is(.nex-message,.nex-nudge,.nex-panel){animation:nex-lite-reveal .12s ease!important}
html .nex:is(.nex-quiet,.nex-no-animation) *,html[data-reduced-motion="true"] .nex *{animation:none!important;transition:none!important}
html .nex:is(.nex-quiet,.nex-no-animation) .nex-buddy__blink,html[data-reduced-motion="true"] .nex-buddy__blink{display:none!important}
@keyframes nex-soft-nod{50%{transform:translateY(1px) rotate(2deg)}}
@keyframes nex-lite-reveal{from{opacity:.5}to{opacity:1}}

/* Keep this last: the iOS compatibility guard must win over Reduced/Full component rules. */
html[data-webkit-ios="true"][data-performance][data-performance-selected] *,
html[data-webkit-ios="true"][data-performance][data-performance-selected] *::before,
html[data-webkit-ios="true"][data-performance][data-performance-selected] *::after{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html[data-webkit-ios="true"] :is(.gradient-bg,.gradient-bg2,.red-ball,.hm-market__orb,.mp-orb,.catalog-hero__glow,.ambient-orb,.card-aura,.ndes-msg-call-glow){filter:none!important}
html[data-webkit-ios="true"] .mp-empty-hero::before,
html[data-webkit-ios="true"] .mp-me-card::before,
html[data-webkit-ios="true"] .swiper-cube-shadow::before{filter:none!important}
