/* 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: #dee2e4;
  --ov-plate: #e4e5e6;
  --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-plate);
  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);
  max-height: calc(100dvh - 100px);
  overflow: auto;
  padding: 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); }
/* Head of the cases: the label with the position, the two steps to the
   neighbouring cases (wrapping around: no dead step at either end), close. */
.skarr-ov-head { display: flex; align-items: center; gap: 2px; min-height: 44px; margin: 0 0 6px; padding-left: 12px; }
.skarr-ov-k { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; margin: 0; font: 500 11px/14px "Inter", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ov-mute); }
.skarr-ov-count { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--ov-ink); }
.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-plate); 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 .site-offers > summary { list-style: none; cursor: pointer; }
.skarr-ov .site-offers > summary::-webkit-details-marker { display: none; }
.skarr-ov .offers-chevron { margin-left: auto; flex: none; }
.skarr-ov .site-offers[open] .offers-chevron { transform: rotate(180deg); }
.skarr-ov nav .offers-links { padding-left: 12px; margin: 4px 0 8px; }
.skarr-ov .offers-links .skarr-ov-route { font-weight: 400; }
/* The current case carries a mark, not a second fill: hover and current differ. */
.skarr-ov-route[aria-current]::before { content: ""; flex: none; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: currentColor; }

/* The site menu, folded under the cases; it opens on demand and upward,
   above its own row, so the row stays under the finger. */
.skarr-ov-more { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(234, 234, 234, 0.12); }
.skarr-ov-site { padding-bottom: 2px; }
.skarr-ov-sum {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ov-mute);
  font: 500 15px/20px "Inter", system-ui, sans-serif;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--ov-out) linear;
}
.skarr-ov-sum::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ov-plate); clip-path: inset(0 100% 0 0 round 12px); transition: clip-path var(--ov-out) var(--ov-ease); }
.skarr-ov-sum:hover::after, .skarr-ov-sum:active::after, .skarr-ov-sum:focus-visible::after { clip-path: inset(0 round 12px); transition-duration: var(--ov-in); }
.skarr-ov-sum:hover, .skarr-ov-sum:active, .skarr-ov-sum:focus-visible { color: var(--ov-ground); transition-duration: var(--ov-in); }
.skarr-ov-sum[aria-expanded="true"] { color: var(--ov-ink); }
.skarr-ov-sum[aria-expanded="true"]:hover, .skarr-ov-sum[aria-expanded="true"]:active, .skarr-ov-sum[aria-expanded="true"]:focus-visible { color: var(--ov-ground); }
.skarr-ov-sum:focus-visible { outline: 2px solid var(--ov-ink); outline-offset: -2px; }
/* Folded: the mark points up, where the menu opens; open: down, where it folds. */
.skarr-ov-sum-chev { flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(2px) rotate(-135deg); transition: transform var(--ov-out) var(--ov-ease); }
.skarr-ov-sum[aria-expanded="true"] .skarr-ov-sum-chev { transform: translateY(-2px) rotate(45deg); }

/* Round controls of the head: the two steps and close, one size. */
.skarr-ov-step, .skarr-ov-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ov-ink);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--ov-out) linear, background-color var(--ov-out) var(--ov-ease);
}
.skarr-ov-step:hover, .skarr-ov-step:active, .skarr-ov-step:focus-visible { background: rgba(234, 234, 234, 0.1); transition-duration: var(--ov-in); }
.skarr-ov-step:focus-visible { outline: 2px solid var(--ov-ink); outline-offset: -3px; }
.skarr-ov-step-i { display: block; }
.skarr-ov-step--prev .skarr-ov-step-i { transform: translateX(-1.2px); }
.skarr-ov-step--next .skarr-ov-step-i { transform: translateX(1.2px); }
.skarr-ov-close { color: var(--ov-mute); font: 400 22px/1 "Inter", system-ui, sans-serif; }
.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: -3px; }

@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, .skarr-ov-sum, .skarr-ov-step { border: 1px solid ButtonText; }
  .skarr-ov-btn::after, .skarr-ov-route::after, .skarr-ov-sum::after { display: none; }
}
