/* v1.3 — square hero, dual sticky header, and living bottom navigation */
header {
  position: sticky;
  top: 0;
  z-index: 42;
}
.ticker {
  position: sticky;
  top: 80px;
  z-index: 40;
  box-shadow: 0 8px 20px #0008;
}
.hero {
  width: calc(100% - 24px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1/1;
}
.actions {
  padding-bottom: 8px;
}
.bottom {
  overflow: hidden;
  isolation: isolate;
}
.bottom:before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: -45%;
  width: 38%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #fff5bd,
    #d7a53b,
    transparent
  );
  filter: drop-shadow(0 0 7px #ffe17c);
  animation: nav-line 3.6s linear infinite;
  pointer-events: none;
}
.bottom a {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background 0.25s ease;
}
.bottom a:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 24%,
    rgba(255, 229, 143, 0.13) 48%,
    transparent 72%
  );
  transform: translateX(-115%);
  animation: nav-sheen 5.4s ease-in-out infinite;
  animation-delay: calc(var(--nav-i, 0) * 0.45s);
  pointer-events: none;
}
.bottom a:nth-child(1) {
  --nav-i: 0;
}
.bottom a:nth-child(2) {
  --nav-i: 1;
}
.bottom a:nth-child(3) {
  --nav-i: 2;
}
.bottom a:nth-child(4) {
  --nav-i: 3;
}
.bottom a:active {
  transform: scale(0.94);
  background: #2a210f;
}
.bottom .nav-icon {
  filter: drop-shadow(0 0 4px rgba(242, 199, 88, 0.35));
  animation: icon-breathe 2.8s ease-in-out infinite;
  animation-delay: calc(var(--nav-i, 0) * 0.28s);
}
.bottom .hot {
  background: linear-gradient(180deg, #e3b646, #9b6817);
  box-shadow: inset 0 0 20px rgba(255, 232, 158, 0.2);
}
.bottom .hot .nav-icon {
  filter: drop-shadow(0 0 5px rgba(20, 14, 3, 0.35));
}
@keyframes nav-line {
  to {
    left: 108%;
  }
}
@keyframes nav-sheen {
  0%,
  58% {
    transform: translateX(-115%);
  }
  82%,
  100% {
    transform: translateX(115%);
  }
}
@keyframes icon-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.84;
  }
  50% {
    transform: translateY(-2px) scale(1.08);
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .ticker {
    top: 64px;
  }
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 1/1;
    margin-bottom: 7px;
  }
  .actions {
    gap: 7px;
    padding-top: 2px;
    padding-bottom: 7px;
  }
  .cta {
    min-height: 51px;
  }
  .faq {
    padding-top: 27px;
  }
}
@media (max-width: 380px), (max-height: 680px) {
  .ticker {
    top: 58px;
  }
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 1/1;
  }
  .cta {
    min-height: 46px;
  }
  .actions {
    gap: 6px;
    padding-bottom: 5px;
  }
  .faq {
    padding-top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bottom:before,
  .bottom a:before,
  .bottom .nav-icon {
    animation: none;
  }
}

/* MVP Final v2 — top navigation permanently visible like bottom navigation */
html {
  scroll-padding-top: 140px;
}
.shell {
  padding-top: 128px;
}
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 100%);
  z-index: 80;
}
.ticker {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 100%);
  z-index: 78;
}
header nav {
  z-index: 84;
}
.menu-backdrop {
  z-index: 79;
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 114px;
  }
  .shell {
    padding-top: 102px;
  }
  .ticker {
    top: 64px;
  }
}
@media (max-width: 380px), (max-height: 680px) {
  html {
    scroll-padding-top: 104px;
  }
  .shell {
    padding-top: 92px;
  }
  .ticker {
    top: 58px;
  }
}
