@font-face {
  font-family: 'Zuniga Mission';
  src: url('assets/fonts/ZunigaMission-Regular-v3.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#zg-explore-amp,
#zg-home-amp {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Zuniga Mission', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #fff;
  background: rgba(14, 14, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  z-index: 4;
  position: fixed;
  transition: opacity 0.18s ease, visibility 0s linear 0s,
    background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
#zg-explore-amp:hover, #zg-home-amp:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.85);
}
#zg-explore-amp:active, #zg-home-amp:active { transform: scale(0.97); }
#zg-explore-amp:focus-visible, #zg-home-amp:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Home: Explore the Amp at bottom-left, so it doesn't cover Explore the Guitar (bottom-right). */
#zg-explore-amp {
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
}
#zg-home-amp {
  left: max(16px, env(safe-area-inset-left));
  top: max(16px, env(safe-area-inset-top));
  font-size: 15px;
  padding: 0 18px;
}

/* Visibility by body mode. 'amp' = exploring the amp. Anything else on a standalone
   page is treated as home. On the guitar site, 'show' is home and 'walk' hides both. */
body[data-mode="amp"] #zg-explore-amp,
body[data-mode="walk"] #zg-explore-amp,
body:not([data-mode="amp"]) #zg-home-amp {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s,
    background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
body:not([data-mode="amp"]):not([data-mode="walk"]) #zg-explore-amp,
body[data-mode="amp"] #zg-home-amp {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#zg-explore-amp[hidden], #zg-home-amp[hidden] { display: none !important; }

@media (max-width: 700px), (pointer: coarse) {
  #zg-explore-amp { font-size: 18px; min-height: 48px; }
}

/* amp6 walk: analog stick, same look as the guitar's #joy. Created by amp-walk.js;
   shown only in amp mode, after the fly-in lands (body.zg-amp-walk), on touch. */
#amp-joy {
  position: fixed;
  left: calc(18px + env(safe-area-inset-left));
  bottom: calc(26px + env(safe-area-inset-bottom));
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: none;
  z-index: 4;
  touch-action: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .05), rgba(255, 255, 255, .12));
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#amp-joy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .5);
  pointer-events: none;
  will-change: transform;
}
#amp-joy.on #amp-joy-knob { background: rgba(255, 255, 255, .42); }
body.touch[data-mode="amp"].zg-amp-walk #amp-joy { display: block; }
@media (pointer: coarse) {
  body[data-mode="amp"].zg-amp-walk #amp-joy { display: block; }
}
@media (max-height: 420px) {
  #amp-joy { width: 112px; height: 112px; }
}

/* amp6 walk hint: one short line, fades out after 6 s (amp-chrome.js). */
#zg-amp-hint {
  position: fixed;
  left: 50%;
  top: calc(max(16px, env(safe-area-inset-top)) + 58px);
  transform: translateX(-50%);
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  padding: 8px 14px;
  font: 500 12px/1.35 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(14, 14, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
body[data-mode="amp"] #zg-amp-hint.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  #zg-explore-amp, #zg-home-amp { transition: none !important; }
  #zg-amp-hint, body[data-mode="amp"] #zg-amp-hint.show { transition: none !important; }
}
