/* Chilian site: the look of the interaction layer (script: site-feel.js).
   Low-specificity defaults for pages that have no feel styles of their own (the landings); the home page keeps its own
   .btn press and pulse rules, which win over the :where() ones here. */

:where(.btn, .wa, .wa-float, .to-top, .menu-btn, .x, .opt, .tab, .pp, [data-press]) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:where(.btn, .wa, .wa-float, .to-top, .menu-btn, .x, .opt, .tab, .pp, [data-press]).pressed { transform: scale(.965); transition-duration: .06s; }
:where(.btn, .wa, .wa-float, [data-press]):not(.pulse) { transition-property: transform, background-color, border-color, color, box-shadow; }
:where(.btn, .wa, .wa-float, [data-press]).pulse { animation: feel-ring .55s cubic-bezier(.16, 1, .3, 1); }
@keyframes feel-ring {
  from { box-shadow: 0 0 0 0 rgba(201, 146, 46, .75); }
  to   { box-shadow: 0 0 0 14px rgba(201, 146, 46, 0); }
}
.rb-spring { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
[data-rail] { overscroll-behavior-x: none; }

/* ---------- Liquid glass on the floating controls ---------- */
html .wa, html .wa-float, html .to-top, html .menu-btn {
  isolation: isolate; color: #F3EBDD; border: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .03) 62%, rgba(255, 255, 255, .15) 100%),
    linear-gradient(180deg, rgba(48, 43, 36, .62), rgba(14, 13, 12, .66));
  -webkit-backdrop-filter: blur(18px) saturate(1.7) brightness(1.08); backdrop-filter: blur(18px) saturate(1.7) brightness(1.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), inset 0 -1px 1px rgba(255, 255, 255, .1), inset 0 0 18px rgba(255, 255, 255, .05),
              0 18px 36px -16px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .35);
}
html .wa::before, html .wa-float::before, html .to-top::before, html .menu-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(120px 80px at var(--sx, 28%) var(--sy, 0%), rgba(255, 255, 255, .34), transparent 70%); mix-blend-mode: soft-light;
}
html .wa::after, html .to-top::after, html .menu-btn::after {   /* the light-catching rim; .wa-float keeps its own ring */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(145deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .06) 32%, rgba(255, 255, 255, .04) 68%, rgba(255, 255, 255, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (hover: hover) {
  html .to-top:hover, html .menu-btn:hover { color: #fff; background:
    linear-gradient(150deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .1) 40%, rgba(255, 255, 255, .05) 62%, rgba(255, 255, 255, .22) 100%),
    linear-gradient(180deg, rgba(60, 54, 45, .62), rgba(20, 18, 16, .66)); }
}
@media (prefers-reduced-motion: reduce) {
  :where(.btn, .wa, .wa-float, [data-press]).pulse { animation: none; }
  .rb-spring { transition: none; }
}
