/* SKARR.PRO overlay on a published case. Self-contained: its own tokens, its
   own font request, nothing inherited from the example site. Buttons law: the
   capsule fills left→right, 300 ms in / 240 ms out, the site's curve; 1 ms
   under reduced motion; fixed heights, no text selection, no tap flash. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.skarr-ov {
  --ov-in: 300ms;
  --ov-out: 240ms;
  --ov-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ov-ground: #171719;
  --ov-panel: #232325;
  --ov-ink: #eaeaea;
  --ov-mute: #a8a8ad;
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font: 500 14px/16px "Inter", system-ui, sans-serif;
  color: var(--ov-ink);
  -webkit-text-size-adjust: 100%;
}
.skarr-ov *, .skarr-ov *::before, .skarr-ov *::after { box-sizing: border-box; }
.skarr-ov button, .skarr-ov a {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Trigger: mark + wordmark in a dark capsule. */
.skarr-ov-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ov-ink);
  font: 600 13px/16px "Inter", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: color var(--ov-out) linear;
}
.skarr-ov-btn::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--ov-ground); box-shadow: inset 0 0 0 1px rgba(234, 234, 234, 0.18); }
.skarr-ov-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ov-ink);
  clip-path: inset(0 100% 0 0 round 999px);
  transition: clip-path var(--ov-out) var(--ov-ease);
}
.skarr-ov-btn:hover::after, .skarr-ov-btn:active::after, .skarr-ov-btn:focus-visible::after, .skarr-ov-btn[aria-expanded="true"]::after { clip-path: inset(0 round 999px); transition-duration: var(--ov-in); }
.skarr-ov-btn:hover, .skarr-ov-btn:active, .skarr-ov-btn:focus-visible, .skarr-ov-btn[aria-expanded="true"] { color: var(--ov-ground); transition-duration: var(--ov-in); }
.skarr-ov-btn:focus-visible { outline: 2px solid var(--ov-ink); outline-offset: 3px; }
.skarr-ov-mark { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.skarr-ov-word { white-space: nowrap; }
.skarr-ov-chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(2px) rotate(-135deg); transition: transform var(--ov-out) var(--ov-ease); }
.skarr-ov-btn[aria-expanded="true"] .skarr-ov-chev { transform: translateY(-2px) rotate(45deg); }

/* Panel: opens upward from the trigger, width-limited, over the content. */
.skarr-ov-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding: 16px 8px 8px;
  border-radius: 20px;
  background: var(--ov-panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(234, 234, 234, 0.12);
  transform-origin: left bottom;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity var(--ov-out) var(--ov-ease), transform var(--ov-out) var(--ov-ease);
}
.skarr-ov-panel.is-open { opacity: 1; transform: none; transition-duration: var(--ov-in); }
.skarr-ov-case { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; padding: 0 12px 12px; border-bottom: 1px solid rgba(234, 234, 234, 0.12); font: 500 15px/20px "Inter", system-ui, sans-serif; }
.skarr-ov-case span { font: 500 11px/14px "Inter", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ov-mute); }
.skarr-ov-panel nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.skarr-ov-route {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ov-ink);
  text-decoration: none;
  font: 500 15px/20px "Inter", system-ui, sans-serif;
  transition: color var(--ov-out) linear;
}
.skarr-ov-route::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ov-ink); clip-path: inset(0 100% 0 0 round 12px); transition: clip-path var(--ov-out) var(--ov-ease); }
.skarr-ov-route:hover::after, .skarr-ov-route:active::after, .skarr-ov-route:focus-visible::after { clip-path: inset(0 round 12px); transition-duration: var(--ov-in); }
.skarr-ov-route:hover, .skarr-ov-route:active, .skarr-ov-route:focus-visible { color: var(--ov-ground); transition-duration: var(--ov-in); }
.skarr-ov-route:focus-visible { outline: 2px solid var(--ov-ink); outline-offset: -2px; }
.skarr-ov-panel li:first-child .skarr-ov-route { font-weight: 600; }
.skarr-ov-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ov-mute);
  font: 400 22px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: color var(--ov-out) linear, background-color var(--ov-out) var(--ov-ease);
}
.skarr-ov-close:hover, .skarr-ov-close:active, .skarr-ov-close:focus-visible { color: var(--ov-ink); background: rgba(234, 234, 234, 0.1); transition-duration: var(--ov-in); }
.skarr-ov-close:focus-visible { outline: 2px solid var(--ov-ink); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .skarr-ov { --ov-in: 1ms; --ov-out: 1ms; }
}
@media (forced-colors: active) {
  .skarr-ov-btn, .skarr-ov-panel, .skarr-ov-route { border: 1px solid ButtonText; }
  .skarr-ov-btn::after, .skarr-ov-route::after { display: none; }
}
