/* v16.53 — iOS-inspired touch feel: restrained, responsive, accessible */
:root {
  --touch-ease: cubic-bezier(.2,.75,.25,1);
  --touch-fast: 160ms;
  --touch-normal: 240ms;
  --touch-surface: rgba(255,255,255,.055);
  --touch-border: rgba(255,255,255,.105);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: contain; -webkit-font-smoothing: antialiased; }
button, [role="button"], a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}
button, [role="button"], a, summary {
  touch-action: manipulation;
}
button, [role="button"], summary {
  transition: transform var(--touch-fast) var(--touch-ease),
              background-color var(--touch-normal) var(--touch-ease),
              border-color var(--touch-normal) var(--touch-ease),
              box-shadow var(--touch-normal) var(--touch-ease),
              opacity var(--touch-fast) ease;
}
button:not(:disabled):active, [role="button"]:active, summary:active {
  transform: scale(.975);
}
a:active { opacity: .82; }
:where(button, a, input, select, textarea, [role="button"], summary):focus-visible {
  outline: 2px solid rgba(224,185,74,.88);
  outline-offset: 3px;
}
:where(button, [role="button"], summary) { min-height: 42px; }
:where(input, select, textarea) { scroll-margin-block: 24px; }
::selection { background: rgba(212,175,55,.28); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.17) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 999px; }
.touch-pressing {
  transform: scale(.975) !important;
  filter: brightness(1.08);
}
.touch-ripple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.touch-ripple-wave {
  position: absolute; z-index: 3; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  transform: translate(-50%,-50%) scale(0);
  animation: touch-ripple .48s var(--touch-ease) forwards;
}
@keyframes touch-ripple {
  to { transform: translate(-50%,-50%) scale(18); opacity: 0; }
}
/* Keep blur selective and cheaper on touch / constrained devices. */
@media (hover: none), (pointer: coarse) {
  .glass, .glass-pill {
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
  }
  .glass { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px -16px rgba(0,0,0,.6); }
}
@media (max-width: 640px) {
  button, [role="button"], summary { min-height: 44px; }
  input, select, textarea { font-size: 17px; } /* prevents iOS Safari auto-zoom */
  .glass, .glass-pill { background-color: rgba(22,22,25,.78); }
  .touch-ripple-wave { display: none; } /* reduce paint work on phones */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
