:root {
  color-scheme: dark;
  --red: #ff3d38;
  --red-soft: rgba(255, 61, 56, .38);
  --ink: #080809;
  --paper: #fff;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  background: #15161b;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
}

.ambient {
  position: fixed;
  inset: -5vmax;
  background:
    linear-gradient(rgba(7,8,11,.18), rgba(7,8,11,.18)),
    url("assets/mogger-pepe-design.png") center / cover no-repeat;
  filter: blur(28px) saturate(.8) brightness(.6);
  transform: scale(1.08);
  z-index: -2;
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(5,6,8,.66) 100%);
}

.viewport {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: stretch;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  aspect-ratio: auto;
  flex: none;
  isolation: isolate;
  overflow: hidden;
  box-shadow: none;
}

.design {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* Real navigation: visible labels, click behavior, keyboard focus and a shared moving underline. */
.top-nav {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}
.nav-button {
  position: absolute;
  top: 2.05%;
  height: 4.25%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: rgba(255,255,255,.94);
  cursor: pointer;
  pointer-events: auto;
  font: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.nav-button span {
  display: inline-block;
  font-size: clamp(9px, min(.80vw, 1.55vh), 15px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .11em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.86);
  transition: color .18s ease, text-shadow .18s ease, transform .18s ease;
}
.nav-button:hover span,
.nav-button:focus-visible span,
.nav-button.is-active span {
  color: #fff;
  text-shadow:
    0 0 7px rgba(255,255,255,.24),
    0 0 12px rgba(255,55,50,.38);
  transform: translateY(-1px);
}
.nav-button:focus-visible {
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 0 18px rgba(255,47,42,.32);
}
.nav-button:active span { transform: translateY(0) scale(.97); }

.nav-home { left: 65.25%; width: 4.65%; }
.nav-about { left: 71.42%; width: 5.1%; }
.nav-faq { left: 77.7%; width: 3.85%; }
.nav-disclaimer { left: 82.7%; width: 7.8%; }

.nav-indicator {
  position: absolute;
  z-index: 10;
  height: clamp(2px, .24vh, 4px);
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.25), #fff 15%, #ff4a45 52%, #fff 85%, rgba(255,255,255,.25));
  box-shadow:
    0 0 5px rgba(255,255,255,.92),
    0 0 11px rgba(255,49,44,.95),
    0 0 22px rgba(255,34,30,.72);
  transition:
    left .32s cubic-bezier(.22,.9,.32,1),
    width .32s cubic-bezier(.22,.9,.32,1),
    top .22s ease,
    opacity .18s ease;
}
.nav-indicator::before,
.nav-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 17%;
  height: 1px;
  background: rgba(255,73,68,.7);
  filter: blur(.3px);
}
.nav-indicator::before { right: 100%; }
.nav-indicator::after { left: 100%; }
.nav-indicator.no-transition { transition: none !important; }

.hotspot {
  position: absolute;
  z-index: 4;
  border: 0;
  border-radius: 12px;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 18px rgba(255,45,40,.44);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,45,40,.045));
  transition: opacity .16s ease;
  pointer-events: none;
}
.hotspot:hover::after,
.hotspot:focus-visible::after { opacity: 1; }
.hotspot:active { transform: scale(.99); }

/* coordinates are percentages of the 1536×1024 generated reference */
.ca-hotspot { left: 29.8%; top: 59.2%; width: 40.4%; height: 5.4%; }

/* Live CA text replaces the address baked into the reference artwork. */
.ca-live {
  position: absolute;
  z-index: 5;
  left: 35.55%;
  top: 60.55%;
  width: 30.55%;
  height: 2.8%;
  display: flex;
  align-items: center;
  padding: 0 .15%;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(8,8,10,.98), rgba(9,8,10,.99) 70%, rgba(8,8,10,.98));
  color: rgba(255,255,255,.96);
  font-size: clamp(8px, min(1.02vw, 1.7vh), 17px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .006em;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  pointer-events: none;
}

.link-hotspot { top: 65.75%; height: 5.8%; }
.pump-hotspot { left: 17.85%; width: 16.2%; }
.dex-hotspot { left: 35.05%; width: 14.75%; }
.telegram-hotspot { left: 50.85%; width: 15.05%; }
.x-hotspot { left: 67.0%; width: 15.0%; }

.faq-row { left: 12.75%; width: 33.9%; height: 2.75%; border-radius: 2px; }
.faq-1 { top: 79.12%; }
.faq-2 { top: 81.9%; }
.faq-3 { top: 84.65%; }
.faq-4 { top: 87.45%; }
.faq-5 { top: 90.25%; }
.faq-6 { top: 93.05%; }

.focus-ring {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border: 2px solid transparent;
  border-radius: 13px;
  opacity: 0;
  transition: opacity .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.faq-ring { left: 10.15%; top: 73.3%; width: 39.0%; height: 24.2%; }
.disclaimer-ring { left: 50.95%; top: 73.3%; width: 39.0%; height: 24.2%; }
.focus-ring.flash {
  opacity: 1;
  border-color: rgba(255,66,61,.95);
  box-shadow: 0 0 34px rgba(255,48,45,.7), inset 0 0 28px rgba(255,48,45,.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  transform: translate(-50%, 18px);
  opacity: 0;
  padding: 11px 16px;
  border: 1px solid rgba(255,68,64,.8);
  border-radius: 12px;
  background: rgba(7,7,9,.92);
  box-shadow: 0 0 25px rgba(255,40,35,.32);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: .2s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal {
  width: min(620px, calc(100vw - 28px));
  max-height: min(82vh, 780px);
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
}
.modal::backdrop {
  background: rgba(3,4,7,.74);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  overflow: auto;
  max-height: min(82vh, 780px);
  border: 1px solid rgba(255,66,61,.96);
  border-radius: 18px;
  padding: 30px 30px 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(255,50,45,.15), transparent 35%),
    linear-gradient(145deg, rgba(17,17,20,.98), rgba(5,5,7,.98));
  box-shadow: 0 0 46px rgba(255,38,34,.28), inset 0 0 40px rgba(255,255,255,.018);
}
.modal-card::before {
  content: "";
  position: absolute;
  height: 1px;
  left: 25px;
  right: 25px;
  top: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: .45;
}
.modal-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  color: #ff6b68;
}
.modal h2 {
  margin: 8px 0 14px;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.03em;
  text-shadow: 0 0 22px rgba(255,43,39,.5);
}
.modal-copy {
  color: #e6e6e8;
  font-size: 15px;
  line-height: 1.62;
}
.modal-copy p { margin: 0 0 10px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.modal-cta {
  margin-top: 20px;
  min-width: 118px;
  padding: 11px 18px;
  border: 1px solid #ff4b47;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,48,44,.09);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255,43,39,.15);
}
.modal-close:hover, .modal-cta:hover { background: rgba(255,64,60,.17); }

.modal-faq {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.modal-faq details {
  border: 1px solid rgba(255,76,71,.25);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.modal-faq summary {
  position: relative;
  padding: 12px 40px 12px 14px;
  list-style: none;
  cursor: pointer;
  color: #fff;
  font-weight: 750;
  line-height: 1.25;
}
.modal-faq summary::-webkit-details-marker { display: none; }
.modal-faq summary::after {
  content: '+';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff625e;
  font-size: 20px;
  transition: transform .18s ease;
}
.modal-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.modal-faq details p {
  margin: 0;
  padding: 0 14px 14px;
  color: #d9d9dc;
  line-height: 1.55;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  body { background: #111216; }
  .viewport,
  .stage {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    min-height: 0;
  }
  .modal-card { padding: 26px 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
