/* Aura: frosted surfaces, specular edges and restrained tactile zoom. */
body[data-theme="apple"][data-theme-system="8"]{
 --aura-blur:18px;
 --aura-glass:color-mix(in srgb,var(--white) 80%,transparent);
 --aura-muted:color-mix(in srgb,var(--surface-ink) 78%,var(--white));
 --aura-glass-nav:color-mix(in srgb,var(--white) 78%,transparent);
 --aura-edge:color-mix(in srgb,var(--surface-ink) 12%,var(--white));
 --aura-shine:color-mix(in srgb,var(--white) 90%,transparent);
 --aura-shadow:0 12px 32px color-mix(in srgb,var(--ink) 8%,transparent),inset 0 1px 0 var(--aura-shine),inset 0 -1px 0 color-mix(in srgb,var(--surface-ink) 5%,transparent);
 background:radial-gradient(ellipse 340px 450px at 105% 160px,color-mix(in srgb,var(--accent) 24%,transparent),transparent 76%),radial-gradient(ellipse 320px 380px at -8% 560px,color-mix(in srgb,var(--accent) 14%,transparent),transparent 76%),var(--paper)!important;
}
body[data-theme="apple"][data-theme-system="8"] :is(#home .hero,#home .home-product,#menuScreen .item,#rewardsScreen .club-reward-card,#home .home-club-card,#home .review-prompt-card,#home .secondary-grid a,.comm-card:not(.style-immersive),#modal .panel){
 background:var(--aura-glass)!important;
 border:1px solid var(--aura-edge)!important;
 box-shadow:var(--aura-shadow)!important;
 -webkit-backdrop-filter:blur(var(--aura-blur)) saturate(145%);
 backdrop-filter:blur(var(--aura-blur)) saturate(145%);
 color:var(--surface-ink);
 --surface-muted:var(--aura-muted);
}
body[data-theme="apple"][data-theme-system="8"] #home .hero{padding:28px 22px!important;margin:12px 0 26px;border-radius:30px!important;--primary-text:var(--surface-primary)}
body[data-theme="apple"][data-theme-system="8"] #home .hero :is(h2,.hero-eyebrow){color:var(--surface-ink)}
body[data-theme="apple"][data-theme-system="8"] #home .hero p{color:var(--surface-muted)}
body[data-theme="apple"][data-theme-system="8"] #home .hero-benefit{background:color-mix(in srgb,var(--white) 52%,transparent)!important;border:1px solid var(--aura-edge)!important;border-radius:20px;box-shadow:inset 0 1px 0 var(--aura-shine)}
body[data-theme="apple"][data-theme-system="8"] #home .hero-benefit small{color:var(--surface-muted)}
body[data-theme="apple"][data-theme-system="8"] :is(#home .home-product,#menuScreen .item,#rewardsScreen .club-reward-card){border-radius:28px!important}
body[data-theme="apple"][data-theme-system="8"] .app-dock{
 background:var(--aura-glass-nav)!important;
 border:1px solid var(--aura-edge)!important;
 box-shadow:0 10px 38px color-mix(in srgb,var(--ink) 14%,transparent),inset 0 1px 0 var(--aura-shine)!important;
 -webkit-backdrop-filter:blur(26px) saturate(160%);
 backdrop-filter:blur(26px) saturate(160%);
 --surface-muted:var(--aura-muted);
 padding:7px;
}
body[data-theme="apple"][data-theme-system="8"][data-v4-nav="tabs"] .app-dock{border-radius:27px}
body[data-theme="apple"][data-theme-system="8"][data-v4-nav="tabs"] .app-dock button.on{
 background:color-mix(in srgb,var(--white) 60%,transparent)!important;
 color:var(--surface-primary)!important;
 border-radius:20px!important;
 box-shadow:0 3px 10px color-mix(in srgb,var(--ink) 10%,transparent),inset 0 1px 0 var(--aura-shine)!important;
 outline:1px solid var(--aura-edge);
}
body[data-theme="apple"][data-theme-system="8"] :is(#menuSearch,#rewardsScreen .reward-tabs){background:var(--aura-glass)!important;border:1px solid var(--aura-edge)!important;box-shadow:inset 0 1px 0 var(--aura-shine);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body[data-theme="apple"][data-theme-system="8"] :is(#homeCategoryPreview .home-cat,#menuScreen .chip){box-shadow:inset 0 1px 0 var(--aura-shine)!important}
body[data-theme="apple"][data-theme-system="8"] #rewardsScreen .club-reward-art:before{background:color-mix(in srgb,var(--white) 65%,transparent);border:1px solid var(--aura-edge);box-shadow:0 7px 22px color-mix(in srgb,var(--accent) 10%,transparent),inset 0 1px 0 var(--aura-shine)}
body[data-theme="apple"][data-theme-system="8"] :is(#openMenu,.club-reward-action,.app-dock button,.home-product,.hero-benefit,.chip){transition:transform 180ms cubic-bezier(.2,.7,.2,1),box-shadow 180ms ease;transform-origin:center}
body[data-theme="apple"][data-theme-system="8"] :is(#openMenu,.club-reward-action,.app-dock button,.home-product,.hero-benefit,.chip):active{transform:scale(.965)}
body[data-theme="apple"][data-theme-system="8"] :is(.item-thumb img,.home-product-visual img){transition:transform 380ms cubic-bezier(.2,.7,.2,1)}
body[data-theme="apple"][data-theme-system="8"] :is(#modal.open .panel,.comm-sheet.open .comm-card:not(.style-immersive)){animation:aura-glass-open 240ms cubic-bezier(.2,.7,.2,1)}
@keyframes aura-glass-open{from{transform:translateY(8px) scale(.975);opacity:.65}to{transform:none;opacity:1}}
@media(hover:hover) and (pointer:fine){
 body[data-theme="apple"][data-theme-system="8"] :is(.item:hover .item-thumb img,.home-product:hover .home-product-visual img){transform:scale(1.045)}
 body[data-theme="apple"][data-theme-system="8"] .app-dock button:hover{transform:scale(1.025)}
}
@media(max-width:600px){body[data-theme="apple"][data-theme-system="8"]{--aura-blur:12px}}
/* Graceful fallback also serves users who request reduced transparency. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body[data-theme="apple"][data-theme-system="8"]{--aura-glass:var(--white);--aura-glass-nav:var(--white)}}
@media(prefers-reduced-transparency:reduce){
 body[data-theme="apple"][data-theme-system="8"]{--aura-glass:var(--white);--aura-glass-nav:var(--white)}
 body[data-theme="apple"][data-theme-system="8"] :is(.hero,.home-product,.item,.club-reward-card,.app-dock,.panel,.comm-card,#menuSearch,.reward-tabs,.home-club-card,.review-prompt-card,.secondary-grid a){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
@media(prefers-reduced-motion:reduce){body[data-theme="apple"][data-theme-system="8"] :is(#openMenu,.club-reward-action,.app-dock button,.home-product,.hero-benefit,.chip,.item-thumb img,.home-product-visual img,.panel,.comm-card){animation:none!important;transition:none!important;transform:none!important}}
/* Explicit radius and card choices stay stronger than the default glass shape. */
body[data-theme="apple"][data-theme-system="8"][data-radius-override="true"] :is(#home .hero,#menuScreen .item,#home .home-product,#rewardsScreen .club-reward-card){border-radius:var(--v4-radius)!important}
body[data-theme="apple"][data-theme-system="8"][data-card-override="flat"] :is(#menuScreen .item,#home .home-product){background:transparent!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}

/* The Club invitation sits on glass, not on the legacy primary gradient. */
body[data-theme="apple"][data-theme-system="8"] #home .home-club-card{--club-ink:var(--surface-ink)}
body[data-theme="apple"][data-theme-system="8"] #home .home-club-card :is(h3,.section-kicker){color:var(--surface-ink);opacity:1}
body[data-theme="apple"][data-theme-system="8"] #home .home-club-card p{color:var(--surface-muted);opacity:1}
body[data-theme="apple"][data-theme-system="8"] #home .home-club-card button{background:var(--olive);color:var(--on-primary);border:1px solid var(--olive);min-height:44px}
body[data-theme="apple"][data-theme-system="8"] #home .home-club-card button:focus-visible{outline:3px solid var(--surface-ink);outline-offset:3px}

/* Optical feedback lives inside the control and inherits its actual contour.
   Neutral specular light dominates; dispersion only appears in a narrow edge. */
body[data-theme="apple"][data-theme-system="8"] :is(#openMenu,#openBenefitsHero,.app-dock button,.club-reward-action,.home-club-card button,.chip,.home-cat,#modal .primary,#modal .cta){
 transition:transform 320ms cubic-bezier(.16,1,.3,1),box-shadow 180ms ease;
 transform-origin:center;
}
body[data-theme="apple"][data-theme-system="8"] .aura-optical{position:relative!important;isolation:isolate}
body[data-theme="apple"][data-theme-system="8"] .aura-pressed{
 transform:scale(.985)!important;
 transition:transform 170ms cubic-bezier(.2,.8,.2,1)!important;
}
body[data-theme="apple"][data-theme-system="8"] .aura-touch-lens{
 position:absolute!important;inset:0!important;z-index:1;pointer-events:none;
 display:block!important;box-sizing:border-box;width:auto!important;height:auto!important;
 grid-area:auto!important;align-self:stretch!important;justify-self:stretch!important;
 min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:inherit!important;overflow:hidden;
 background:transparent!important;box-shadow:none!important;
 opacity:1;transition:opacity 260ms ease;
}
body[data-theme="apple"][data-theme-system="8"] .aura-touch-lens::before{
 content:'';position:absolute;inset:0;border-radius:inherit;padding:2.5px;
 background:radial-gradient(circle var(--aura-light-size,48px) at var(--aura-touch-x,50%) var(--aura-touch-y,50%),#ffffff18,transparent 72%);
 -webkit-backdrop-filter:blur(.35px) saturate(110%);backdrop-filter:blur(.35px) saturate(110%);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
}
body[data-theme="apple"][data-theme-system="8"] .aura-touch-lens::after{
 content:'';position:absolute;inset:0;border-radius:inherit;padding:1.25px;
 background:conic-gradient(from var(--aura-light-angle,0deg),#ffffff40 0deg,#ffffff80 18deg,#c4f6ff38 23deg,#ffd6ec20 27deg,transparent 42deg,transparent 125deg,#00000012 170deg,#ffffff10 230deg,transparent 275deg,#ffffff40 360deg);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
}
body[data-theme="apple"][data-theme-system="8"] .aura-touch-lens.aura-releasing{opacity:0}
@media(prefers-reduced-motion:reduce),(prefers-reduced-transparency:reduce){
 body[data-theme="apple"][data-theme-system="8"] .aura-touch-lens{display:none}
 body[data-theme="apple"][data-theme-system="8"] .aura-pressed{transform:none!important}
}
