/* Static rebuild helpers: mobile nav, toast, canvas fallback, anchors. */

section[id],
div[id] {
  scroll-margin-top: 96px;
}

/* The seat card is drawn to a canvas on the reference build; the still is a
   pixel match, so show the still and retire the canvas. */
.card-enter canvas,
[role="img"] canvas {
  display: none !important;
}

.card-enter img.opacity-0,
[role="img"] img.opacity-0 {
  opacity: 1 !important;
}

.mobile-nav {
  position: fixed;
  inset: 80px 0 auto;
  z-index: 45;
  padding-inline: 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.mobile-nav[data-open="true"] {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--surface-1);
  box-shadow: 0 24px 48px -24px #000000d9;
}

.mobile-nav-inner a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color var(--dur) ease-out, color var(--dur) ease-out;
}

.mobile-nav-inner a:hover {
  background: var(--surface-2);
  color: var(--text);
}

@media (min-width: 64rem) {
  .mobile-nav {
    display: none;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 18px 40px -20px #000;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease-out, transform 0.18s var(--ease);
  pointer-events: none;
}

.toast[data-show="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

.form-error {
  color: var(--bad);
}

.slot[data-invalid="true"] {
  border-color: var(--bad);
}

.motion-paused .row-enter {
  animation-play-state: paused;
}

.hype-row[hidden],
.token-row[hidden] {
  display: none;
}