/* =========================================================
   Arrow Cash Master — Escape-Path Landing
   Unique layout: level-progress nav + vertical maze spine
   Palette from promo art: sky blue / lime / gold (light)
   ========================================================= */

:root {
  --acm-sky: #E8F4FF;
  --acm-sky-deep: #B8D9F5;
  --acm-maze: #3B9BE8;
  --acm-maze-dark: #1E6FBF;
  --acm-lime: #6EF52A;
  --acm-lime-deep: #4DC910;
  --acm-gold: #FFD23A;
  --acm-gold-deep: #E8B40A;
  --acm-navy: #0B2A4A;
  --acm-ink: #143652;
  --acm-muted: #4A6B88;
  --acm-lavender: #E4E8F6;
  --acm-lavender-2: #D5DCF0;
  --acm-white: #FFFFFF;
  --acm-heart: #FF4D5E;
  --acm-shadow: 0 12px 32px rgba(30, 111, 191, 0.14);
  --acm-radius: 22px;
  --acm-font-display: "Baloo 2", system-ui, sans-serif;
  --acm-font-body: "Outfit", system-ui, sans-serif;
  --acm-header-h: 72px;
  --acm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.acm-body {
  margin: 0;
  font-family: var(--acm-font-body);
  color: var(--acm-ink);
  background: var(--acm-sky);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.acm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--acm-navy);
  color: #fff;
}

.acm-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Atmosphere ---------- */
.acm-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #FFFFFF 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(110, 245, 42, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 60%, rgba(255, 210, 58, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #F2F8FF 0%, var(--acm-sky) 40%, #DCEEFF 100%);
}

.acm-sky__rays {
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  background: conic-gradient(
    from 200deg at 50% 0%,
    transparent 0deg,
    rgba(255, 255, 255, 0.55) 18deg,
    transparent 36deg,
    rgba(255, 255, 255, 0.35) 54deg,
    transparent 72deg,
    rgba(255, 255, 255, 0.45) 90deg,
    transparent 110deg
  );
  opacity: 0.55;
  animation: acm-ray-drift 18s ease-in-out infinite alternate;
}

.acm-sky__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(11, 42, 74, 0.07) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 75%, transparent);
}

.acm-sky__cash {
  position: absolute;
  width: 42px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #7CFF4A, #3DBE12);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 6px 14px rgba(61, 190, 18, 0.25);
  opacity: 0.55;
  animation: acm-float 7s ease-in-out infinite;
}

.acm-sky__cash::after {
  content: "$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--acm-font-display);
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.acm-sky__cash--1 { top: 18%; left: 8%; animation-delay: 0s; --r: -6deg; }
.acm-sky__cash--2 { top: 42%; right: 10%; animation-delay: -2.4s; --r: 12deg; }
.acm-sky__cash--3 { bottom: 22%; left: 16%; animation-delay: -4.2s; --r: -8deg; }

@keyframes acm-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}

@keyframes acm-ray-drift {
  from { transform: translateX(-3%) scale(1); }
  to { transform: translateX(3%) scale(1.04); }
}

/* ---------- Progress-track nav (game UI metaphor) ---------- */
.acm-track {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem 0.75rem;
  transition: background 0.25s var(--acm-ease), box-shadow 0.25s var(--acm-ease);
}

.acm-track.is-scrolled {
  background: rgba(232, 232, 246, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(11, 42, 74, 0.08);
}

.acm-track__bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem 0.55rem 0.65rem;
  background: linear-gradient(180deg, #F4F6FC 0%, var(--acm-lavender) 100%);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--acm-shadow);
}

.acm-track__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  cursor: pointer;
}

.acm-track__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(11, 42, 74, 0.15);
}

.acm-track__name {
  display: none;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--acm-font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.acm-track__word--arrow { color: var(--acm-navy); }
.acm-track__word--cash { color: var(--acm-lime-deep); }

@media (min-width: 520px) {
  .acm-track__name { display: flex; }
}

.acm-levels {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

@media (min-width: 880px) {
  .acm-levels { display: flex; }
}

.acm-levels__link {
  flex: 1;
  max-width: 36px;
  height: 4px;
  background: #C5CDDF;
  border-radius: 99px;
}

.acm-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
  color: var(--acm-muted);
  transition: color 0.2s ease;
}

.acm-level__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--acm-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  background: #C5CDDF;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(11, 42, 74, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.acm-level__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.acm-level:hover .acm-level__dot,
.acm-level.is-active .acm-level__dot,
.acm-level.is-done .acm-level__dot {
  background: var(--acm-lime-deep);
  transform: scale(1.06);
}

.acm-level.is-active,
.acm-level.is-done {
  color: var(--acm-lime-deep);
}

.acm-level--goal .acm-level__dot {
  background: var(--acm-heart);
  box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.2), 0 2px 8px rgba(255, 77, 94, 0.35);
}

.acm-level--goal.is-active .acm-level__dot,
.acm-level--goal:hover .acm-level__dot {
  background: var(--acm-heart);
  transform: scale(1.08);
}

.acm-level--goal.is-active,
.acm-level--goal:hover {
  color: var(--acm-heart);
}

.acm-burger {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--acm-white);
  color: var(--acm-navy);
  box-shadow: 0 2px 8px rgba(11, 42, 74, 0.1);
  flex-shrink: 0;
}

.acm-burger svg { width: 20px; height: 20px; }

@media (min-width: 880px) {
  .acm-burger { display: none; }
}

/* Mobile slide-out levels */
@media (max-width: 879px) {
  .acm-levels {
    display: flex;
    position: fixed;
    top: calc(var(--acm-header-h) + 0.5rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background: rgba(244, 246, 252, 0.96);
    backdrop-filter: blur(12px);
    border-radius: var(--acm-radius);
    border: 2px solid #fff;
    box-shadow: var(--acm-shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s var(--acm-ease);
    z-index: 99;
  }

  .acm-levels.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .acm-levels__link { display: none; }

  .acm-level {
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
  }

  .acm-level:hover,
  .acm-level.is-active {
    background: rgba(110, 245, 42, 0.12);
  }

  .acm-level__label {
    font-size: 0.9rem;
    text-transform: none;
  }
}

/* ---------- Buttons ---------- */
.acm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--acm-navy);
  transition: transform 0.2s var(--acm-ease), box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.acm-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.acm-btn:active {
  transform: translateY(1px);
}

.acm-btn:focus-visible {
  outline: 3px solid var(--acm-maze);
  outline-offset: 3px;
}

.acm-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.acm-btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.acm-btn--sm span { display: none; }

@media (min-width: 420px) {
  .acm-btn--sm span { display: inline; }
}

.acm-btn--cash {
  background: linear-gradient(180deg, #8CFF4A 0%, var(--acm-lime-deep) 100%);
  color: #0A2E08;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 0 #2F8A0A, 0 10px 20px rgba(77, 201, 16, 0.35);
}

.acm-btn--cash:hover {
  box-shadow: 0 8px 0 #2F8A0A, 0 14px 24px rgba(77, 201, 16, 0.4);
}

.acm-btn--cash:active {
  box-shadow: 0 2px 0 #2F8A0A, 0 4px 10px rgba(77, 201, 16, 0.3);
}

.acm-btn--gold {
  background: linear-gradient(180deg, #FFE56A 0%, var(--acm-gold-deep) 100%);
  color: #3A2A00;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 0 #B88900, 0 10px 20px rgba(232, 180, 10, 0.35);
}

.acm-btn--store {
  background: linear-gradient(180deg, #1A3558 0%, var(--acm-navy) 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 0 #061828, 0 10px 22px rgba(11, 42, 74, 0.28);
  text-align: left;
  min-width: 168px;
}

.acm-btn--store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.acm-btn--store small {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.75;
}

.acm-btn--play {
  background: linear-gradient(180deg, #4BB4F5 0%, var(--acm-maze-dark) 100%);
  box-shadow: 0 6px 0 #0E4A85, 0 10px 22px rgba(30, 111, 191, 0.3);
}

/* ---------- Typography helpers ---------- */
.acm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--acm-maze-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acm-kicker svg {
  width: 15px;
  height: 15px;
}

.acm-section-title {
  margin: 0 0 0.5rem;
  font-family: var(--acm-font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: var(--acm-navy);
  letter-spacing: -0.01em;
}

.acm-section-sub {
  margin: 0;
  color: var(--acm-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.acm-section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.acm-section-head .acm-section-sub {
  text-align: center;
}

/* ---------- Hero ---------- */
.acm-hero {
  position: relative;
  min-height: min(92svh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.25rem 4.5rem;
}

.acm-hero__stage {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .acm-hero__stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.acm-hero__copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 900px) {
  .acm-hero__copy {
    text-align: left;
    align-items: flex-start;
  }
}

.acm-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.acm-phone {
  width: min(280px, 72vw);
  padding: 0.55rem;
  background: linear-gradient(180deg, #F4F6FC, var(--acm-lavender));
  border-radius: 36px;
  border: 3px solid #fff;
  box-shadow:
    var(--acm-shadow),
    0 0 0 6px rgba(59, 155, 232, 0.12),
    0 28px 48px rgba(30, 111, 191, 0.18);
  animation: acm-phone-float 5.5s ease-in-out infinite;
}

.acm-phone img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #fff;
}

@keyframes acm-phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.acm-logo-title {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15em 0.35em;
  font-family: var(--acm-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 3px 0 rgba(11, 42, 74, 0.12));
}

@media (min-width: 900px) {
  .acm-logo-title { justify-content: flex-start; }
}

.acm-logo-title__arrow {
  color: var(--acm-navy);
  -webkit-text-stroke: 2px var(--acm-maze-dark);
  paint-order: stroke fill;
}

.acm-logo-title__cash {
  color: var(--acm-lime);
  -webkit-text-stroke: 2px #1F6E08;
  paint-order: stroke fill;
  position: relative;
}

.acm-logo-title__cash::after {
  content: "";
  position: absolute;
  right: -0.05em;
  top: 0.12em;
  width: 0.32em;
  height: 0.42em;
  background: var(--acm-lime);
  clip-path: polygon(50% 0%, 100% 55%, 68% 55%, 68% 100%, 32% 100%, 32% 55%, 0% 55%);
  filter: drop-shadow(0 2px 0 #1F6E08);
}

.acm-logo-title__master {
  color: var(--acm-gold-deep);
  -webkit-text-stroke: 2px #9A7400;
  paint-order: stroke fill;
}

.acm-lead {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--acm-muted);
}

.acm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .acm-hero__cta { justify-content: flex-start; }
}

.acm-hearts {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

@media (min-width: 900px) {
  .acm-hearts { justify-content: flex-start; }
}

.acm-heart {
  width: 28px;
  height: 26px;
  background: var(--acm-heart);
  border-radius: 50% 50% 48% 48%;
  position: relative;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(255, 77, 94, 0.4), inset 0 -3px 6px rgba(0, 0, 0, 0.15);
  animation: acm-heart-beat 2.4s ease-in-out infinite;
}

.acm-heart::before,
.acm-heart::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 26px;
  background: inherit;
  border-radius: 50%;
}

.acm-heart::before { top: -13px; left: 0; }
.acm-heart::after { top: 0; left: 13px; }

.acm-heart:nth-child(2) { animation-delay: 0.2s; }
.acm-heart:nth-child(3) { animation-delay: 0.4s; }

@keyframes acm-heart-beat {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  40% { transform: rotate(-45deg) scale(1.08); }
}

.acm-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 36px;
  height: 54px;
  color: var(--acm-lime);
  opacity: 0.9;
  cursor: pointer;
  animation: acm-bounce 1.8s var(--acm-ease) infinite;
}

.acm-scroll-cue svg {
  width: 100%;
  height: 100%;
}

.acm-scroll-cue__path,
.acm-scroll-cue__head {
  stroke: currentColor;
}

@keyframes acm-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Features / pathboard ---------- */
.acm-features {
  padding: 5rem 1.25rem 3rem;
  max-width: 980px;
  margin: 0 auto;
}

.acm-pathboard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 0.5rem 0 1rem;
}

.acm-pathboard__spine {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 80px;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 760px) {
  .acm-pathboard__spine { display: block; }
}

.acm-pathboard__track {
  fill: none;
  stroke: #C5D8EE;
  stroke-width: 10;
  stroke-linecap: round;
}

.acm-pathboard__draw {
  fill: none;
  stroke: var(--acm-lime);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  filter: drop-shadow(0 0 6px rgba(110, 245, 42, 0.65));
  transition: stroke-dashoffset 1.2s var(--acm-ease);
}

.acm-pathboard.is-drawn .acm-pathboard__draw {
  stroke-dashoffset: 0;
}

.acm-check {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  max-width: 420px;
}

@media (min-width: 760px) {
  .acm-check--left {
    margin-right: auto;
    margin-left: 0;
    padding-right: calc(50% + 2.5rem);
    max-width: none;
  }

  .acm-check--right {
    margin-left: auto;
    margin-right: 0;
    padding-left: calc(50% + 2.5rem);
    max-width: none;
    grid-template-columns: 1fr auto;
  }

  .acm-check--right .acm-check__node { order: 2; }
  .acm-check--right .acm-check__body { order: 1; text-align: right; }
}

.acm-check__node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #8CFF4A, var(--acm-lime-deep));
  color: #0A2E08;
  border: 3px solid #fff;
  box-shadow: 0 6px 0 #2F8A0A, 0 10px 18px rgba(77, 201, 16, 0.3);
  flex-shrink: 0;
}

.acm-check__node svg {
  width: 24px;
  height: 24px;
}

.acm-check__body {
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--acm-radius);
  box-shadow: var(--acm-shadow);
}

.acm-check__body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--acm-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--acm-navy);
}

.acm-check__body p {
  margin: 0;
  color: var(--acm-muted);
  font-size: 0.95rem;
}

/* ---------- How to play ---------- */
.acm-howto {
  padding: 3rem 1.25rem 4rem;
}

.acm-howto__grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .acm-howto__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.acm-steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.acm-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(30, 111, 191, 0.08);
}

.acm-steps__n {
  font-family: var(--acm-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--acm-maze-dark);
  line-height: 1;
  padding-top: 0.15rem;
}

.acm-steps strong {
  display: block;
  font-family: var(--acm-font-display);
  font-size: 1.1rem;
  color: var(--acm-navy);
  margin-bottom: 0.2rem;
}

.acm-steps p {
  margin: 0;
  color: var(--acm-muted);
  font-size: 0.92rem;
}

.acm-howto__frame {
  margin: 0 auto;
  width: min(300px, 78vw);
  padding: 0.55rem;
  background: linear-gradient(180deg, #F4F6FC, var(--acm-lavender));
  border-radius: 36px;
  border: 3px solid #fff;
  box-shadow: var(--acm-shadow), 0 0 0 6px rgba(59, 155, 232, 0.12);
}

.acm-howto__frame img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #fff;
}

/* ---------- Gallery ---------- */
.acm-gallery {
  padding: 3rem 1.25rem 4rem;
}

.acm-gallery .acm-section-head {
  padding: 0;
}

.acm-keyart {
  margin: 0 auto 2rem;
  max-width: 720px;
  width: 100%;
  padding: 0.4rem;
  background: #fff;
  border-radius: 22px;
  border: 3px solid #fff;
  box-shadow: var(--acm-shadow);
}

.acm-keyart img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.acm-gallery__rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 0 1.25rem;
}

.acm-shot {
  margin: 0;
  flex: 0 0 auto;
  width: 220px;
  transition: transform 0.25s var(--acm-ease);
}

.acm-shot:hover {
  transform: translateY(-6px);
}

.acm-shot img {
  width: 220px;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid #fff;
  box-shadow: var(--acm-shadow);
  background: #D6ECFF;
}

.acm-shot figcaption {
  margin-top: 0.65rem;
  text-align: center;
  font-family: var(--acm-font-display);
  font-weight: 700;
  color: var(--acm-navy);
  font-size: 0.95rem;
}

/* ---------- Download / portal ---------- */
.acm-download {
  padding: 2rem 1.25rem 6.5rem;
}

.acm-portal {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 210, 58, 0.45) 0%, transparent 60%),
    linear-gradient(180deg, #FFF8D6 0%, #FFE56A 40%, #F0C020 100%);
  border-radius: 32px;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 6px rgba(255, 210, 58, 0.25),
    0 20px 48px rgba(184, 137, 0, 0.28);
  overflow: hidden;
}

.acm-portal__glow {
  position: absolute;
  inset: -30% -20% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 65%);
  pointer-events: none;
  animation: acm-portal-pulse 3.2s ease-in-out infinite;
}

@keyframes acm-portal-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.acm-portal__icon {
  position: relative;
  margin: 0 auto 1rem;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(11, 42, 74, 0.2);
}

.acm-portal .acm-kicker {
  background: rgba(255, 255, 255, 0.65);
  color: #7A5A00;
}

.acm-portal .acm-section-sub {
  margin: 0 auto 1.5rem;
  color: #5C4500;
}

.acm-download__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Dock ---------- */
.acm-dock {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  background: linear-gradient(180deg, #F4F6FC, var(--acm-lavender-2));
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 12px 32px rgba(11, 42, 74, 0.18);
}

.acm-dock__orb,
.acm-dock__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--acm-navy);
  box-shadow: 0 2px 6px rgba(11, 42, 74, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.acm-dock__orb:hover,
.acm-dock__btn:hover {
  transform: translateY(-2px);
}

.acm-dock__orb svg,
.acm-dock__btn svg {
  width: 20px;
  height: 20px;
}

.acm-dock__tray {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem 0.45rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.acm-dock__btn--cash {
  background: linear-gradient(180deg, #8CFF4A, var(--acm-lime-deep));
  color: #0A2E08;
  box-shadow: 0 4px 0 #2F8A0A;
}

/* ---------- Footer ---------- */
.acm-footer {
  padding: 2.5rem 1.25rem 7rem;
  background: linear-gradient(180deg, transparent, rgba(180, 205, 235, 0.45));
}

.acm-footer__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.acm-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--acm-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--acm-navy);
}

.acm-footer__brand img {
  border-radius: 10px;
}

.acm-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.acm-footer__links a {
  color: var(--acm-maze-dark);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.acm-footer__links a:hover {
  color: var(--acm-lime-deep);
  text-decoration: underline;
}

.acm-footer__copy {
  margin: 0;
  color: var(--acm-muted);
  font-size: 0.85rem;
}

/* ---------- Modal ---------- */
.acm-modal[hidden] {
  display: none !important;
}

.acm-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.acm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 74, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.acm-modal__dialog {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 24px;
  border: 3px solid var(--acm-lavender);
  box-shadow: 0 24px 48px rgba(11, 42, 74, 0.25);
  text-align: center;
  animation: acm-modal-in 0.28s var(--acm-ease);
}

@keyframes acm-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.acm-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--acm-lavender);
  color: var(--acm-navy);
  cursor: pointer;
}

.acm-modal__close svg {
  width: 18px;
  height: 18px;
}

.acm-modal__logo {
  margin: 0 auto 0.75rem;
  border-radius: 14px;
}

.acm-modal__dialog h2 {
  margin: 0 0 0.5rem;
  font-family: var(--acm-font-display);
  font-size: 1.6rem;
  color: var(--acm-navy);
}

.acm-modal__dialog p {
  margin: 0 0 1.25rem;
  color: var(--acm-muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .acm-sky__rays,
  .acm-sky__cash,
  .acm-heart,
  .acm-scroll-cue,
  .acm-portal__glow,
  .acm-phone {
    animation: none !important;
  }

  .acm-pathboard__draw {
    transition: none;
    stroke-dashoffset: 0;
  }

  .acm-modal__dialog {
    animation: none;
  }
}
