/* Liquid Glass — optical layers adapted from the supplied WWAKE demo.
   All controls keep their existing hit areas, geometry and visibility states. */
:root { --pg-glass-shine: inset 2.317px 1.622px 4px -1px rgba(255,255,255,0),
    inset 2.317px 1.622px 2px -1px rgba(255,255,255,1),
    inset -2.317px -1.622px 4px -1px rgba(255,255,255,0),
    inset -2.317px -1.622px 2px -1px rgba(255,255,255,1); }
.pg-services :is(.pg-service-progress,.pg-service-toggle),
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.centered-button) { position:relative; }
.pg-services :is(.pg-service-progress,.pg-service-toggle),
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.centered-button,.pg-film-close),
#app-sheet .sheet-close { isolation:isolate; }
.pg-services :is(.pg-service-progress,.pg-service-toggle)::before,
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.centered-button,.pg-film-close)::before,
#app-sheet .sheet-close::before,
.pg-services :is(.pg-service-progress,.pg-service-toggle)::after,
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.centered-button,.pg-film-close)::after,
#app-sheet .sheet-close::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .18s ease; }
.pg-services :is(.pg-service-progress,.pg-service-toggle)::before,
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.centered-button,.pg-film-close)::before,
#app-sheet .sheet-close::before { z-index:-2; -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px); filter:url(#pg-glass-distortion); overflow:hidden; }
.pg-services :is(.pg-service-progress,.pg-service-toggle)::after,
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.centered-button,.pg-film-close)::after,
#app-sheet .sheet-close::after { z-index:-1; background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.02)),hsl(0deg 0% 100% / 10%); box-shadow:var(--pg-glass-shine); }
.pg-services :is(.pg-service-progress,.pg-service-toggle).pg-over-card::before,
#local-highlight-film .centered-button::before,
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing):is(:active,:focus-within:has(:focus-visible))::before,
#local-highlight-film .pg-film-close:is(:active,:focus-visible)::before,
#app-sheet .sheet-close:is(:active,:focus-visible)::before,
.pg-services :is(.pg-service-progress,.pg-service-toggle).pg-over-card::after,
#local-highlight-film .centered-button::after,
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing):is(:active,:focus-within:has(:focus-visible))::after,
#local-highlight-film .pg-film-close:is(:active,:focus-visible)::after,
#app-sheet .sheet-close:is(:active,:focus-visible)::after { opacity:1; }
.pg-services :is(.pg-service-progress,.pg-service-toggle).pg-over-card, #local-highlight-film .centered-button, #local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing):is(:active,:focus-within:has(:focus-visible)), #local-highlight-film .pg-film-close:is(:active,:focus-visible), #app-sheet .sheet-close:is(:active,:focus-visible) { -webkit-backdrop-filter:none; backdrop-filter:none; }
#local-highlight-film .centered-button { border-radius:50%; }
@media (hover:hover) and (pointer:fine) {
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.pg-film-close):hover::before,
#app-sheet .sheet-close:hover::before,
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.pg-film-close):hover::after,
#app-sheet .sheet-close:hover::after { opacity:1; }
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.pg-film-close):hover, #app-sheet .sheet-close:hover { -webkit-backdrop-filter:none; backdrop-filter:none; }
}
/* Moving membership-duration lens. Keep the original pseudo-element geometry. */
#club-cards .terms::before,#club-cards .terms.term-dragging::before {
 background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,.22)),hsl(0deg 0% 100% / 10%);
 border-color:rgba(255,255,255,.55); box-shadow:var(--pg-glass-shine),0 2px 6px #00000014;
 -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);
}
@supports (backdrop-filter: url(#pg-glass-distortion)) {
 #club-cards .terms::before,#club-cards .terms.term-dragging::before { backdrop-filter:blur(5px) url(#pg-glass-distortion); }
}
/* Native seek/volume thumbs: preserve native interaction and track metrics. */
#local-highlight-film input[type=range]::-webkit-slider-thumb { background:linear-gradient(180deg,#ffffffed,#ffffff8c); box-shadow:var(--pg-glass-shine); }
#local-highlight-film input[type=range]::-moz-range-thumb { background:linear-gradient(180deg,#ffffffed,#ffffff8c); box-shadow:var(--pg-glass-shine); }
@media(prefers-reduced-motion:reduce) { .pg-services :is(.pg-service-progress,.pg-service-toggle)::before,
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.centered-button,.pg-film-close)::before,
#app-sheet .sheet-close::before,
.pg-services :is(.pg-service-progress,.pg-service-toggle)::after,
#local-highlight-film :is(.main-controls-leading,.main-controls-center,.main-controls-trailing,.centered-button,.pg-film-close)::after,
#app-sheet .sheet-close::after { transition:none; } }

/* Tinted Liquid Glass — reception swipe and desktop contacts. */
:is(.protein-welcome,.pw-contact-dock) .protein-welcome__call:is(:link,:visited,:hover,:active,:focus-visible) {
 isolation:isolate;
 background:transparent;
 --pg-call-top:#0a84ff;
 --pg-call-bottom:#0077ed;
 -webkit-backdrop-filter:none;
 backdrop-filter:none;
}
:is(.protein-welcome,.pw-contact-dock) .protein-welcome__call::before,
:is(.protein-welcome,.pw-contact-dock) .protein-welcome__call::after {
 content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
}
:is(.protein-welcome,.pw-contact-dock) .protein-welcome__call::before {
 z-index:-2;
 -webkit-backdrop-filter:blur(5px) saturate(150%);
 backdrop-filter:blur(5px) saturate(150%);
 filter:url(#pg-glass-distortion);
}
:is(.protein-welcome,.pw-contact-dock) .protein-welcome__call::after {
 z-index:-1;
 background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.015)),linear-gradient(180deg,color-mix(in srgb,var(--pg-call-top) 88%,transparent),color-mix(in srgb,var(--pg-call-bottom) 90%,transparent));
 box-shadow:inset 0 1px 1px rgba(255,255,255,.5),inset 0 -1px 2px rgba(255,255,255,.26),inset 1px 0 2px rgba(255,255,255,.24),inset -1px 0 2px rgba(255,255,255,.24);
}
@media(max-width:767px){
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile:is(:link,:visited,:hover,:active,:focus-visible){
 --pg-call-top:var(--pw-swipe-top,#0a84ff);
 --pg-call-bottom:var(--pw-swipe-bottom,#0077ed);
 }
}
@supports not (background:color-mix(in srgb,blue 88%,transparent)) {
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call::after{background:linear-gradient(180deg,var(--pg-call-top),var(--pg-call-bottom));opacity:.9;}
}

/* Download button — same transparent glass material as the duration lens. */
.pg-footer a.pg-footer__app-trigger:is(:link,:visited,:hover,:active,:focus-visible) {
 position:relative; isolation:isolate; background:transparent; border-radius:999px; text-decoration:none;
 box-shadow:0 2px 6px #00000014;
}
.pg-footer .pg-footer__app-trigger::before {
 content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none;
 box-sizing:border-box; border:1px solid rgba(255,255,255,.55);
 background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,.22)),hsl(0deg 0% 100% / 10%);
 box-shadow:var(--pg-glass-shine);
 -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);
}
@supports (backdrop-filter: url(#pg-glass-distortion)) {
 .pg-footer .pg-footer__app-trigger::before { backdrop-filter:blur(5px) url(#pg-glass-distortion); }
}

/* Download glass: tactile press feedback. */
.pg-footer a.pg-footer__app-trigger:is(:link,:visited,:hover,:active,:focus-visible) {
 transform-origin:center;
 transition:transform 260ms cubic-bezier(.2,.75,.25,1),box-shadow 260ms ease,color 180ms ease;
 -webkit-tap-highlight-color:transparent;
}
.pg-footer a.pg-footer__app-trigger:active {
 transform:scale(.95);
 box-shadow:0 1px 2px #0000000b;
 transition-duration:100ms;
}
@media(prefers-reduced-motion:reduce){
 .pg-footer a.pg-footer__app-trigger:is(:link,:visited,:hover,:active,:focus-visible){transition:none;transform:none;}
}

/* Mobile call — clear duration-lens glass, colour confined to the moving thumb. */
@media (max-width:767px) {
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile:is(:link,:visited,:hover,:active,:focus-visible) {
  background:transparent; color:#1d1d1f; border:0;
  box-shadow:0 2px 6px #00000014;
  -webkit-backdrop-filter:none; backdrop-filter:none;
  transition:box-shadow 260ms ease;
 }
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile::before {
  z-index:-2; filter:none; -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);
 }
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile::after {
  z-index:-1; box-sizing:border-box; border:1px solid rgba(255,255,255,.55);
  background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,.22)),hsl(0deg 0% 100% / 10%);
  box-shadow:var(--pg-glass-shine); opacity:1;
 }
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile .pw-swipe-thumb {
  background:linear-gradient(180deg,var(--pw-swipe-top,#0a84ff),var(--pw-swipe-bottom,#0077ed));
  color:#fff; box-shadow:inset 0 1px 2px #ffffff40,0 1px 3px #00000012;
 }
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile .pw-swipe-label {
  color:#1d1d1f; background-image:linear-gradient(100deg,#1d1d1f 38%,#a0a0a7 50%,#1d1d1f 62%);
 }
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile:is(.pw-swiping,.pw-swipe-complete) .pw-swipe-label {
  color:#1d1d1f; background-image:none; -webkit-text-fill-color:currentColor;
 }
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile .pw-swipe-number {color:#1d1d1f;}
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile:active {box-shadow:0 1px 2px #0000000b;}
 @supports (backdrop-filter:url(#pg-glass-distortion)) {
  :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile::before {backdrop-filter:blur(5px) url(#pg-glass-distortion);}
 }
 @media(prefers-reduced-motion:reduce) {
  :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile .pw-swipe-label {background-image:none;-webkit-text-fill-color:currentColor;animation:none;}
 }
}

/* Reception: coloured text, clear glass remains unchanged. */
@media (max-width:767px) {
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile .pw-swipe-label {
  color:#0071e3; background-image:linear-gradient(100deg,#0071e3 38%,#83c7ff 50%,#0071e3 62%);
 }
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile:is(.pw-swiping,.pw-swipe-complete) .pw-swipe-label {
  color:#0071e3; background-image:none; -webkit-text-fill-color:currentColor;
 }
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile .pw-swipe-number {color:#24803c;}
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile.pw-club-closed .pw-swipe-number {color:#d92d20;}
 @media(prefers-reduced-motion:reduce) {
  :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--mobile .pw-swipe-label {background-image:none;-webkit-text-fill-color:currentColor;animation:none;}
 }
}
/* All store links — same clear glass and press response as footer download. */
#app-sheet .store-button:is(:link,:visited,:hover,:active,:focus-visible) {
 position:relative; isolation:isolate; background:transparent; color:#111;
 box-shadow:0 2px 6px #00000014; text-decoration:none; filter:none;
 transform-origin:center; transition:transform 260ms cubic-bezier(.2,.75,.25,1),box-shadow 260ms ease;
 -webkit-tap-highlight-color:transparent;
}
#app-sheet .store-button::before {
 content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
 box-sizing:border-box;border:1px solid rgba(255,255,255,.55);
 background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,.22)),hsl(0deg 0% 100% / 10%);
 box-shadow:var(--pg-glass-shine);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
}
@supports (backdrop-filter:url(#pg-glass-distortion)) {
 #app-sheet .store-button::before {backdrop-filter:blur(5px) url(#pg-glass-distortion);}
}
#app-sheet .store-button:active {transform:scale(.95);box-shadow:0 1px 2px #0000000b;transition-duration:100ms;}
#app-sheet .store-button:focus-visible {outline:2px solid #0071e3;outline-offset:3px;}
@media(prefers-reduced-motion:reduce) {
 #app-sheet .store-button:is(:link,:visited,:hover,:active,:focus-visible) {transition:none;transform:none;}
}

/* Desktop contacts — same clear material and tactile feedback as download. */
:is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--desktop:is(:link,:visited,:hover,:active,:focus-visible) {
 position:relative; isolation:isolate; background:transparent; color:#0071e3; border:0;
 box-shadow:0 2px 6px #00000014; text-decoration:none;
 transform-origin:center; transition:scale 260ms cubic-bezier(.2,.75,.25,1),box-shadow 260ms ease;
 -webkit-tap-highlight-color:transparent;
}
:is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--desktop::before {
 z-index:-2; filter:none; -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);
}
:is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--desktop::after {
 z-index:-1; box-sizing:border-box; border:1px solid rgba(255,255,255,.55);
 background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,.22)),hsl(0deg 0% 100% / 10%);
 box-shadow:var(--pg-glass-shine); opacity:1;
}
@supports (backdrop-filter:url(#pg-glass-distortion)) {
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--desktop::before {backdrop-filter:blur(5px) url(#pg-glass-distortion);}
}
:is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--desktop:active {scale:.95;box-shadow:0 1px 2px #0000000b;transition-duration:100ms;}
@media(prefers-reduced-motion:reduce) {
 :is(.protein-welcome,.pw-contact-dock) .protein-welcome__call--desktop:is(:link,:visited,:hover,:active,:focus-visible) {transition:none;scale:1;}
}

/* Magnetic hover, additive to press scale and swipe transforms. */
@media (any-hover:hover) and (any-pointer:fine) and (prefers-reduced-motion:no-preference) {
 .pg-magnetic:not(#cc-terms) { translate:var(--pg-mx,0px) var(--pg-my,0px); }
 .pg-magnetic:not(#cc-terms) svg { translate:calc(var(--pg-mx,0px)*.75) calc(var(--pg-my,0px)*.75); }
 #club-cards #cc-terms.pg-magnetic:not(.term-holding):not(.term-dragging)::before { translate:var(--pg-mx,0px) var(--pg-my,0px); }
 #club-cards #cc-terms.pg-magnetic:not(.term-holding):not(.term-dragging) button[aria-pressed=true] { translate:var(--pg-mx,0px) var(--pg-my,0px); }
}

/* Promo link — clear glass matching the store and download buttons. */
.pg-services a.pg-promo-link:is(:link,:visited,:hover,:active,:focus-visible) {
 position:relative; isolation:isolate; box-sizing:border-box; display:inline-flex;
 align-items:center; justify-content:center; gap:9px; min-height:62px; padding:12px 24px;
 border:0; border-radius:999px; background:transparent; text-decoration:none;
 box-shadow:0 2px 6px #00000014; transform-origin:center;
 transition:transform 260ms cubic-bezier(.2,.75,.25,1),box-shadow 260ms ease,opacity .7s cubic-bezier(.2,.65,.25,1);
 -webkit-tap-highlight-color:transparent;
}
.pg-services .pg-promo-link::before {
 content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none;
 box-sizing:border-box; border:1px solid rgba(255,255,255,.55);
 background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,.22)),hsl(0deg 0% 100% / 10%);
 box-shadow:var(--pg-glass-shine); -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);
}
@supports (backdrop-filter:url(#pg-glass-distortion)) {
 .pg-services .pg-promo-link::before {backdrop-filter:blur(5px) url(#pg-glass-distortion);}
}
.pg-services a.pg-promo-link:active {transform:scale(.95);box-shadow:0 1px 2px #0000000b;transition-duration:100ms;}
@media (any-hover:hover) and (any-pointer:fine) and (prefers-reduced-motion:no-preference) {
 .pg-services.pg-entrance-ready .pg-promo-link.pg-entrance-visible.pg-magnetic {translate:var(--pg-mx,0px) var(--pg-my,0px);}
}
@media(prefers-reduced-motion:reduce) {
 .pg-services a.pg-promo-link:is(:link,:visited,:hover,:active,:focus-visible) {transition:none;transform:none;}
}

/* iOS Safari: keep pinned UI away from browser chrome sampling edges. */
@supports (-webkit-touch-callout: none) {
    html { background: transparent; }
    body { background: #fff; }
    .pw-contact-dock.is-pinned {
        top: max(24px, calc(env(safe-area-inset-top) + 12px));
        background: transparent;
    }
    .pw-contact-dock.is-pinned.is-hidden,
    html:has(#local-highlight-film[open]) .pw-contact-dock.is-pinned {
        translate: none;
    }
    #club-cards.cc-ready .stage {
        --pg-safari-edge: 16px;
        top: var(--pg-safari-edge);
        height: calc(100svh - 2 * var(--pg-safari-edge));
    }
    #club-cards.cc-ready #club-cards-title { position: static; }
    .pg-service-controls { bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); }
    .pg-services.pg-entrance-ready .pg-service-controls:not(.pg-entrance-visible) { translate: none; }
}
