/* LOCKED SHELL GEOMETRY — DO NOT CHANGE FOR FEATURE WORK */

.phone-frame {
  position: relative;
  width: var(--frame-width);
  aspect-ratio: var(--artwork-ratio);
  max-height: 100svh;
  overflow: hidden;
  border-radius: var(--frame-radius);
  background: var(--obsidian);
  border: 1px solid rgba(255, 213, 106, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 240, 166, 0.12) inset,
    0 0 22px rgba(255, 213, 106, 0.42),
    0 0 42px rgba(102, 244, 255, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.82);
  transform: translateZ(0);
  animation: appFramePulse var(--fuzzy-cycle) ease-in-out infinite;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--frame-radius) - 8px);
  border: 1px solid rgba(102, 244, 255, 0.18);
  box-shadow: 0 0 18px rgba(102, 244, 255, 0.18) inset;
  pointer-events: none;
  z-index: 20;
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 21;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 13%, transparent 87%, rgba(255,255,255,0.055)),
    radial-gradient(circle at 50% 0%, rgba(255, 240, 166, 0.15), transparent 18rem);
  mix-blend-mode: screen;
}


.frame-effects {
  position: absolute;
  inset: 0;
  z-index: 22;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}

.frame-effects::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 130, 0.76),
    inset 0 0 22px rgba(255, 224, 130, 0.16),
    0 0 18px rgba(255, 224, 130, 0.30),
    0 0 34px rgba(255, 77, 227, 0.14),
    0 0 42px rgba(102, 244, 255, 0.12);
  opacity: 0.82;
  animation: appFrameGlow var(--fuzzy-cycle) ease-in-out infinite;
}

.frame-spark {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  border-radius: 999px;
  filter:
    drop-shadow(0 0 3px rgba(255, 244, 185, 0.62))
    drop-shadow(0 0 7px rgba(255, 213, 106, 0.30));
}

.frame-spark--top {
  top: 0;
  left: 12%;
  width: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 235, 0.62), rgba(255, 204, 80, 0.42), transparent);
  animation: sparkTop var(--fuzzy-cycle) linear infinite;
}

.frame-spark--right {
  top: 12%;
  right: 0;
  width: 2px;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 235, 0.62), rgba(255, 204, 80, 0.42), transparent);
  animation: sparkRight var(--fuzzy-cycle) linear infinite;
}

.frame-spark--bottom {
  right: 12%;
  bottom: 0;
  width: 22%;
  height: 2px;
  background: linear-gradient(270deg, transparent, rgba(255, 255, 235, 0.62), rgba(255, 204, 80, 0.42), transparent);
  animation: sparkBottom var(--fuzzy-cycle) linear infinite;
}

.frame-spark--left {
  bottom: 12%;
  left: 0;
  width: 2px;
  height: 22%;
  background: linear-gradient(0deg, transparent, rgba(255, 255, 235, 0.62), rgba(255, 204, 80, 0.42), transparent);
  animation: sparkLeft var(--fuzzy-cycle) linear infinite;
}

@keyframes appFramePulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 240, 166, 0.16) inset,
      0 0 20px rgba(255, 213, 106, 0.38),
      0 0 38px rgba(102, 244, 255, 0.16),
      0 30px 80px rgba(0, 0, 0, 0.82);
  }

  44% {
    box-shadow:
      0 0 0 1px rgba(255, 245, 190, 0.28) inset,
      0 0 32px rgba(255, 224, 130, 0.62),
      0 0 58px rgba(102, 244, 255, 0.25),
      0 30px 80px rgba(0, 0, 0, 0.82);
  }
}

@keyframes appFrameGlow {
  0%, 100% {
    opacity: 0.66;
    box-shadow:
      inset 0 0 0 1px rgba(255, 224, 130, 0.58),
      inset 0 0 18px rgba(255, 224, 130, 0.10),
      0 0 12px rgba(255, 224, 130, 0.18),
      0 0 28px rgba(255, 77, 227, 0.10),
      0 0 34px rgba(102, 244, 255, 0.08);
  }

  44% {
    opacity: 1;
    box-shadow:
      inset 0 0 0 1px rgba(255, 244, 180, 0.96),
      inset 0 0 26px rgba(255, 224, 130, 0.18),
      0 0 20px rgba(255, 224, 130, 0.42),
      0 0 40px rgba(255, 77, 227, 0.16),
      0 0 48px rgba(102, 244, 255, 0.14);
  }
}

@keyframes sparkTop {
  0% {
    opacity: 0;
    transform: translateX(-140%);
  }
  4% {
    opacity: 0.42;
  }
  18% {
    opacity: 0.42;
    transform: translateX(420%);
  }
  22%, 100% {
    opacity: 0;
    transform: translateX(420%);
  }
}

@keyframes sparkRight {
  0%, 18% {
    opacity: 0;
    transform: translateY(-140%);
  }
  22% {
    opacity: 0.42;
  }
  38% {
    opacity: 0.42;
    transform: translateY(420%);
  }
  42%, 100% {
    opacity: 0;
    transform: translateY(420%);
  }
}

@keyframes sparkBottom {
  0%, 38% {
    opacity: 0;
    transform: translateX(140%);
  }
  42% {
    opacity: 0.42;
  }
  58% {
    opacity: 0.42;
    transform: translateX(-420%);
  }
  62%, 100% {
    opacity: 0;
    transform: translateX(-420%);
  }
}

@keyframes sparkLeft {
  0%, 58% {
    opacity: 0;
    transform: translateY(140%);
  }
  62% {
    opacity: 0.42;
  }
  78% {
    opacity: 0.42;
    transform: translateY(-420%);
  }
  82%, 100% {
    opacity: 0;
    transform: translateY(-420%);
  }
}

@media (max-width: 520px) {
  :root {
    --frame-width: min(100vw, calc(100svh * 941 / 1672));
    --frame-radius: 0px;
  }

  .app-stage {
    padding: 0;
  }

  .phone-frame {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    max-height: 100svh;
  }

  .phone-frame::before {
    inset: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}


@media (prefers-reduced-motion: reduce) {
  .phone-frame,
  .frame-effects::before,
  .frame-spark {
    animation: none !important;
  }
}

.scene-stack {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020202;
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}

.scene__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

.scene__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 38%, rgba(0, 0, 0, 0.24) 72%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, transparent 34%, rgba(0, 0, 0, 0.20) 71%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 2;
}

.scene__vignette--interior {
  background:
    radial-gradient(circle at 50% 42%, transparent 42%, rgba(0, 0, 0, 0.18) 75%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, transparent 48%, rgba(0, 0, 0, 0.38) 100%);
}

.scene--exterior {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transition:
    transform 0.66s cubic-bezier(0.18, 0.84, 0.28, 1),
    filter 0.66s ease,
    opacity 0.58s ease;
}

.scene--interior {
  z-index: 1;
  opacity: 0;
  filter: brightness(0.88) saturate(0.96);
  transform: scale(1.025);
  pointer-events: none;
  transition:
    opacity 0.7s ease,
    filter 0.7s ease,
    transform 0.9s cubic-bezier(0.18, 0.84, 0.28, 1);
}

.step-inside-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(4.6rem, calc(env(safe-area-inset-bottom) + 4.25rem));
  z-index: 8;
  display: flex;
  justify-content: center;
  padding: 0 1.4rem;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.step-inside-button {
  position: relative;
  min-width: min(78%, 310px);
  min-height: 64px;
  border: 1px solid rgba(255, 240, 166, 0.94);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;
  color: #120b00;
  letter-spacing: 0.12em;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 6vw, 1.72rem);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(180deg, #fff3a8 0%, #ffd05a 38%, #b97214 100%);
  box-shadow:
    0 0 0 2px rgba(76, 49, 4, 0.72) inset,
    0 0 12px rgba(255, 240, 166, 0.90),
    0 0 30px rgba(255, 213, 106, 0.74),
    0 0 48px rgba(102, 244, 255, 0.26),
    0 12px 24px rgba(0, 0, 0, 0.64);
  transform: translateZ(0);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease, opacity 220ms ease;
}

.step-inside-button::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22) inset;
  pointer-events: none;
}

.step-inside-button::after {
  content: "";
  position: absolute;
  inset: -40% -70%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.72) 50%, transparent 65%);
  transform: translateX(-56%) rotate(0.001deg);
  opacity: 0;
  animation: buttonSweep var(--fuzzy-cycle) ease-in-out infinite;
  pointer-events: none;
}

.step-inside-button__text {
  position: relative;
  z-index: 2;
  display: inline-block;
}

.step-inside-button__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.46), transparent 28%);
  opacity: 0.7;
}

.step-inside-button:hover,
.step-inside-button:focus-visible {
  transform: translateY(-2px) scale(1.018);
  filter: brightness(1.05) saturate(1.08);
  outline: none;
  box-shadow:
    0 0 0 2px rgba(76, 49, 4, 0.72) inset,
    0 0 16px rgba(255, 240, 166, 1),
    0 0 38px rgba(255, 213, 106, 0.9),
    0 0 58px rgba(102, 244, 255, 0.34),
    0 14px 28px rgba(0, 0, 0, 0.68);
}

.step-inside-button:active {
  transform: translateY(1px) scale(0.992);
}

.step-inside-button.is-hidden,
.shop-shell.is-entering .step-inside-button,
.shop-shell.is-entering .step-inside-wrap {
  opacity: 0;
  pointer-events: none;
}

.step-inside-button.is-hidden,
.shop-shell.is-entering .step-inside-button {
  transform: translateY(10px) scale(0.92);
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.7);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: clamp(6rem, 29vw, 10rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 12px rgba(255, 240, 166, 0.95),
    0 0 30px rgba(255, 213, 106, 0.80),
    0 0 52px rgba(102, 244, 255, 0.70),
    0 0 80px rgba(255, 72, 229, 0.28);
}

.countdown-overlay.is-flashing {
  animation: countdownFlash 0.66s ease forwards;
}

.portal-glow {
  position: absolute;
  inset: 0;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 49%, rgba(255, 242, 172, 0.42), transparent 16rem),
    radial-gradient(circle at 50% 49%, rgba(102, 244, 255, 0.22), transparent 23rem);
  mix-blend-mode: screen;
}

.shop-shell.is-entering .portal-glow {
  animation: portalPulse 2.32s ease forwards;
}

.scene--exterior.zoom-1 {
  transform: scale(1.08);
  filter: brightness(1.07) saturate(1.08);
}

.scene--exterior.zoom-2 {
  transform: scale(1.18);
  filter: brightness(1.13) saturate(1.14);
}

.scene--exterior.zoom-3 {
  transform: scale(1.32);
  filter: brightness(1.24) saturate(1.22);
}

.shop-shell.is-inside .scene--exterior {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.shop-shell.is-inside .scene--interior {
  z-index: 2;
  opacity: 1;
  filter: brightness(1) saturate(1.03);
  transform: scale(1);
  pointer-events: auto;
}

.shop-shell.is-inside .countdown-overlay {
  opacity: 0;
}

@keyframes countdownFlash {
  0% {
    opacity: 0;
    transform: scale(0.62);
    filter: blur(7px);
  }
  22% {
    opacity: 1;
    transform: scale(1.08);
    filter: blur(0);
  }
  72% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.31);
    filter: blur(5px);
  }
}

@keyframes portalPulse {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  12%, 38%, 64% {
    opacity: 0.66;
    transform: scale(1.02);
  }
  26%, 52% {
    opacity: 0.22;
    transform: scale(0.95);
  }
  88% {
    opacity: 0.98;
    transform: scale(1.16);
  }
  100% {
    opacity: 0;
    transform: scale(1.26);
  }
}

@keyframes buttonSweep {
  0% {
    transform: translateX(-56%);
    opacity: 0;
  }

  18% {
    opacity: 0.72;
  }

  42% {
    transform: translateX(56%);
    opacity: 0.22;
  }

  100% {
    transform: translateX(56%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-scene-button::before,
  .step-inside-button::after,
  .step-inside-button__shine {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.interior-nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  height: 10%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.3rem, 1.6vw, 0.52rem);
  padding: clamp(0.44rem, 1.75vw, 0.64rem) clamp(0.5rem, 2.1vw, 0.76rem) max(clamp(0.38rem, 1.5vw, 0.54rem), env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 209, 0.34), transparent 58%),
    linear-gradient(
      180deg,
      rgba(255, 232, 150, 0.82) 0%,
      rgba(202, 137, 35, 0.88) 46%,
      rgba(90, 48, 10, 0.92) 100%
    );
  border-top: 1px solid rgba(255, 248, 210, 0.66);
  box-shadow:
    0 -4px 18px rgba(255, 224, 130, 0.20),
    0 -1px 0 rgba(46, 23, 0, 0.72) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -10px 18px rgba(38, 18, 0, 0.35),
    inset 0 0 22px rgba(255, 222, 113, 0.10);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.42s ease 0.16s, transform 0.42s cubic-bezier(0.18, 0.84, 0.28, 1) 0.16s;
}

.interior-nav-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 38%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 45%, rgba(0, 0, 0, 0.16));
  opacity: 0.35;
  pointer-events: none;
}

.interior-nav-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 244, 255, 0.44), rgba(255, 240, 166, 0.52), transparent);
  pointer-events: none;
}

.shop-shell.is-inside .interior-nav-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.interior-nav-button {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(255, 220, 115, 0.82);
  border-radius: clamp(0.52rem, 2vw, 0.82rem);
  color: rgba(255, 225, 126, 0.98);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 232, 150, 0.16), transparent 42%),
    linear-gradient(
      180deg,
      rgba(27, 25, 20, 0.98) 0%,
      rgba(9, 9, 8, 0.99) 54%,
      rgba(0, 0, 0, 0.99) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 180, 0.25),
    inset 0 -5px 10px rgba(0, 0, 0, 0.58),
    0 3px 8px rgba(0, 0, 0, 0.48),
    0 0 7px rgba(255, 220, 115, 0.10);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  font-family: "Arial Black", "Trebuchet MS", Arial, system-ui, sans-serif;
  font-size: clamp(0.68rem, 2.58vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.92),
    0 0 5px rgba(255, 220, 115, 0.28);
  cursor: pointer;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transition:
    transform 120ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.interior-nav-button::before {
  content: "";
  position: absolute;
  inset: 4px 5px auto;
  height: 34%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 239, 180, 0.16), transparent);
  pointer-events: none;
}

.interior-nav-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.46) inset,
    0 0 11px rgba(255, 220, 115, 0.08) inset;
  opacity: 1;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    box-shadow 140ms ease;
}

.interior-nav-button:hover {
  color: rgba(255, 239, 174, 1);
  border-color: rgba(255, 239, 174, 0.96);
  filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 195, 0.36),
    inset 0 -5px 10px rgba(0, 0, 0, 0.56),
    inset 0 0 12px rgba(255, 220, 115, 0.20),
    inset 0 0 18px rgba(102, 244, 255, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.48);
}

.interior-nav-button:hover::after {
  box-shadow:
    0 0 0 1px rgba(255, 239, 174, 0.28) inset,
    0 0 13px rgba(255, 220, 115, 0.34) inset,
    0 0 18px rgba(102, 244, 255, 0.10) inset;
}

.interior-nav-button:focus-visible {
  outline: 2px solid rgba(102, 244, 255, 0.75);
  outline-offset: 2px;
}

.interior-nav-button:active {
  transform: translate3d(0, 3px, 0) scale(0.97);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.78),
    inset 0 -1px 3px rgba(255, 220, 115, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.30);
}

.interior-nav-button:active::after {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.54) inset,
    0 0 10px rgba(0, 0, 0, 0.38) inset;
}