/* Arrow Tangle: Logic Puzzle — bright casual puzzle aesthetic */

:root {
  --atl-sky-top: #7dd3fc;
  --atl-sky-mid: #bae6fd;
  --atl-sky-bottom: #e0f2fe;
  --atl-grass: #4ade80;
  --atl-grass-dark: #16a34a;
  --atl-primary: #0ea5e9;
  --atl-primary-dark: #0284c7;
  --atl-secondary: #38bdf8;
  --atl-cta: #f97316;
  --atl-cta-dark: #ea580c;
  --atl-yellow: #fbbf24;
  --atl-yellow-light: #fde047;
  --atl-purple: #a855f7;
  --atl-red: #ef4444;
  --atl-text: #0c4a6e;
  --atl-text-muted: #0369a1;
  --atl-white: #ffffff;
  --atl-shadow: rgba(12, 74, 110, 0.18);
  --atl-radius: 1.25rem;
  --atl-radius-lg: 1.75rem;
  --atl-font-head: "Baloo 2", system-ui, sans-serif;
  --atl-font-body: "Nunito", system-ui, sans-serif;
  --atl-header-h: 4.5rem;
  --atl-ribbon-h: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--atl-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--atl-text);
  background: var(--atl-sky-bottom);
  overflow-x: hidden;
}

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

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

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

.atl-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--atl-text);
  color: var(--atl-white);
  border-radius: 0.5rem;
}

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

/* ===== Scene backdrop ===== */
.atl-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atl-scene__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--atl-sky-top) 0%, var(--atl-sky-mid) 45%, var(--atl-sky-bottom) 100%);
}

.atl-scene__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  filter: blur(1px);
}

.atl-scene__cloud--1 {
  width: 140px;
  height: 48px;
  top: 8%;
  left: 10%;
  box-shadow: 60px 8px 0 -4px rgba(255, 255, 255, 0.7), 30px -12px 0 -8px rgba(255, 255, 255, 0.6);
}

.atl-scene__cloud--2 {
  width: 180px;
  height: 56px;
  top: 14%;
  right: 8%;
  box-shadow: 70px 10px 0 -6px rgba(255, 255, 255, 0.65);
}

.atl-scene__cloud--3 {
  width: 100px;
  height: 36px;
  top: 22%;
  left: 45%;
  opacity: 0.7;
}

.atl-scene__hill {
  position: absolute;
  left: -10%;
  right: -10%;
  border-radius: 50% 50% 0 0;
}

.atl-scene__hill--back {
  bottom: -2%;
  height: 28vh;
  background: linear-gradient(180deg, #86efac 0%, var(--atl-grass) 100%);
  opacity: 0.55;
}

.atl-scene__hill--front {
  bottom: -6%;
  height: 18vh;
  background: linear-gradient(180deg, var(--atl-grass) 0%, var(--atl-grass-dark) 100%);
  opacity: 0.35;
}

.atl-scene__dots {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(14, 165, 233, 0.25) 1px, transparent 1px);
  background-size: 24px 24px;
}

.atl-scene__tangle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 900px);
  height: 100%;
  opacity: 0.35;
}

.atl-scene__path-bg {
  fill: none;
  stroke: rgba(14, 165, 233, 0.15);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atl-scene__path-active {
  fill: none;
  stroke: url(#atl-path-gradient);
  stroke: var(--atl-primary);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.15s linear;
}

.atl-scene__spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--atl-yellow);
  box-shadow: 0 0 12px var(--atl-yellow-light);
}

.atl-scene__spark--1 { top: 18%; left: 22%; }
.atl-scene__spark--2 { top: 42%; right: 18%; }
.atl-scene__spark--3 { top: 68%; left: 30%; }

@media (prefers-reduced-motion: no-preference) {
  .atl-scene__cloud--1 { animation: atl-float 14s ease-in-out infinite; }
  .atl-scene__cloud--2 { animation: atl-float 18s ease-in-out infinite reverse; }
  .atl-scene__spark { animation: atl-spark 3s ease-in-out infinite; }
  .atl-scene__spark--2 { animation-delay: 1s; }
  .atl-scene__spark--3 { animation-delay: 2s; }
}

@keyframes atl-float {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(24px); }
}

@keyframes atl-spark {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ===== Bottom ribbon nav ===== */
.atl-ribbon {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(calc(100% - 2rem), 520px);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.atl-ribbon__track {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 3px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  box-shadow: 0 12px 32px var(--atl-shadow);
}

.atl-ribbon__fill {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  height: 4px;
  width: 0;
  max-width: calc(100% - 2.5rem);
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--atl-primary), var(--atl-cta));
  border-radius: 999px;
  transition: width 0.2s ease-out;
  pointer-events: none;
}

.atl-ribbon__nodes {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.atl-ribbon__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.atl-ribbon__node:hover,
.atl-ribbon__node:focus-visible {
  color: var(--atl-primary);
  outline: none;
}

.atl-ribbon__node.is-active {
  color: var(--atl-cta);
}

.atl-ribbon__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.25);
  border: 2px solid var(--atl-primary);
  transition: background 0.2s ease, transform 0.2s ease;
}

.atl-ribbon__node.is-active .atl-ribbon__dot {
  background: var(--atl-cta);
  border-color: var(--atl-cta-dark);
  transform: scale(1.15);
}

.atl-ribbon__label {
  font-family: var(--atl-font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Header ===== */
.atl-header {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  transition: transform 0.25s ease, top 0.25s ease;
}

.atl-header.is-scrolled .atl-header__inner {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px var(--atl-shadow);
}

.atl-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.55rem 0.85rem 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.atl-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  cursor: pointer;
}

.atl-brand__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px var(--atl-shadow);
}

.atl-brand__name {
  font-family: var(--atl-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--atl-text);
  white-space: nowrap;
}

.atl-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.atl-nav__link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--atl-text-muted);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.atl-nav__link:hover,
.atl-nav__link:focus-visible {
  background: rgba(14, 165, 233, 0.12);
  color: var(--atl-primary-dark);
  outline: none;
}

.atl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-family: var(--atl-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.atl-btn:focus-visible {
  outline: 3px solid var(--atl-primary);
  outline-offset: 2px;
}

.atl-btn--cta {
  background: linear-gradient(180deg, var(--atl-yellow-light) 0%, var(--atl-cta) 100%);
  color: var(--atl-white);
  text-shadow: 0 1px 2px rgba(124, 45, 18, 0.35);
  box-shadow: 0 4px 0 var(--atl-cta-dark), 0 8px 20px rgba(249, 115, 22, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.atl-btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--atl-cta-dark), 0 12px 28px rgba(249, 115, 22, 0.4);
}

.atl-btn--cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--atl-cta-dark), 0 4px 12px rgba(249, 115, 22, 0.3);
}

.atl-header .atl-btn--cta {
  display: none;
}

.atl-btn--block {
  width: 100%;
}

.atl-btn--store {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: var(--atl-white);
  box-shadow: 0 4px 0 #020617, 0 8px 20px rgba(15, 23, 42, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.12);
  min-width: 160px;
}

.atl-btn--store:hover {
  transform: translateY(-2px);
}

.atl-btn--store-alt {
  background: linear-gradient(180deg, var(--atl-primary) 0%, var(--atl-primary-dark) 100%);
  box-shadow: 0 4px 0 #0369a1, 0 8px 20px rgba(14, 165, 233, 0.35);
}

.atl-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  cursor: pointer;
}

.atl-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--atl-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.atl-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.atl-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.atl-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer */
.atl-drawer[hidden] {
  display: none;
}

.atl-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 74, 110, 0.45);
  z-index: 110;
}

.atl-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 320px);
  z-index: 120;
  background: var(--atl-white);
  padding: 1.5rem;
  box-shadow: -8px 0 32px var(--atl-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.atl-drawer__close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.atl-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.atl-drawer__links a {
  padding: 0.75rem 1rem;
  border-radius: var(--atl-radius);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.atl-drawer__links a:hover {
  background: rgba(14, 165, 233, 0.1);
}

/* ===== Main sections ===== */
main {
  position: relative;
  padding-bottom: calc(var(--atl-ribbon-h) + 2rem);
}

.atl-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--atl-font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atl-cta);
}

.atl-section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.atl-section-title {
  margin: 0 0 0.75rem;
  font-family: var(--atl-font-head);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--atl-text);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.atl-section-sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--atl-text-muted);
}

/* Hero */
.atl-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--atl-header-h) + 2rem) 1.25rem 4rem;
}

.atl-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

.atl-title {
  margin: 0 0 1rem;
  font-family: var(--atl-font-head);
  font-weight: 800;
  line-height: 1.05;
}

.atl-title__line {
  display: block;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  color: var(--atl-text);
}

.atl-title__line--accent {
  background: linear-gradient(180deg, var(--atl-yellow-light) 0%, var(--atl-cta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 4px 0 rgba(234, 88, 12, 0.35));
}

.atl-lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  max-width: 34rem;
  color: var(--atl-text-muted);
}

.atl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.atl-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.atl-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(14, 165, 233, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--atl-text-muted);
}

.atl-hero__badges svg {
  width: 16px;
  height: 16px;
  color: var(--atl-primary);
}

/* Hero poster — single key art */
.atl-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 900px;
}

.atl-hero__poster {
  position: relative;
  margin: 0;
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: 1.75rem;
  overflow: hidden;
  background: var(--atl-white);
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 24px 48px rgba(12, 74, 110, 0.22),
    0 0 0 1px rgba(14, 165, 233, 0.12);
  cursor: default;
}

.atl-hero__poster:hover {
  transform: rotateY(-3deg) rotateX(1deg) translateY(-4px);
  box-shadow:
    0 32px 56px rgba(12, 74, 110, 0.26),
    0 0 0 1px rgba(14, 165, 233, 0.18);
}

.atl-hero__poster img {
  display: block;
  width: min(400px, 94vw);
  height: auto;
  object-fit: cover;
}

.atl-hero__poster-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 55%);
}

.atl-deco-arrows {
  position: absolute;
  top: -5%;
  right: -5%;
  width: 120px;
  opacity: 0.85;
  animation: atl-spin-slow 20s linear infinite;
}

@keyframes atl-spin-slow {
  to { transform: rotate(360deg); }
}

/* Features zigzag */
.atl-features {
  padding: 5rem 1.25rem;
}

.atl-zigzag {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.atl-tile {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--atl-radius-lg);
  border: 3px solid transparent;
  box-shadow: 0 12px 32px var(--atl-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.atl-tile:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 0 18px 40px rgba(12, 74, 110, 0.22);
}

.atl-tile--cyan { border-color: rgba(14, 165, 233, 0.35); transform: rotate(-1.5deg); }
.atl-tile--orange { border-color: rgba(249, 115, 22, 0.35); transform: rotate(1.5deg) translateX(1rem); }
.atl-tile--purple { border-color: rgba(168, 85, 247, 0.35); transform: rotate(-1deg); }
.atl-tile--green { border-color: rgba(74, 222, 128, 0.45); transform: rotate(1.2deg) translateX(0.5rem); }

.atl-tile__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--atl-sky-top), var(--atl-primary));
  color: var(--atl-white);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

.atl-tile--orange .atl-tile__icon { background: linear-gradient(135deg, var(--atl-yellow-light), var(--atl-cta)); }
.atl-tile--purple .atl-tile__icon { background: linear-gradient(135deg, #c084fc, var(--atl-purple)); }
.atl-tile--green .atl-tile__icon { background: linear-gradient(135deg, #86efac, var(--atl-grass-dark)); }

.atl-tile__icon svg {
  width: 26px;
  height: 26px;
}

.atl-tile__title {
  margin: 0 0 0.5rem;
  font-family: var(--atl-font-head);
  font-size: 1.35rem;
  font-weight: 700;
}

.atl-tile__text {
  margin: 0;
  color: var(--atl-text-muted);
}

.atl-tile__tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(14, 165, 233, 0.12);
  color: var(--atl-primary-dark);
}

/* Showcase: stage-challenge layout */
.atl-showcase {
  padding: 4rem 1.25rem 5rem;
}

.atl-stage {
  max-width: 56rem;
  margin: 0 auto;
}

/* Progress rail — mirrors in-game Stage Challenge bar */
.atl-stage__rail {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 2rem;
  padding: 1rem 0.75rem 0.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 249, 255, 0.88) 100%);
  border: 3px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--atl-radius-lg);
  box-shadow: 0 12px 32px var(--atl-shadow);
}

.atl-stage__rail-track {
  position: absolute;
  top: 2.05rem;
  left: 10%;
  right: 10%;
  height: 6px;
  background: rgba(14, 165, 233, 0.15);
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}

.atl-stage__rail-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--atl-grass), var(--atl-primary));
  border-radius: 999px;
  transition: width 0.35s ease-out;
}

.atl-stage__node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
  padding: 0.25rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.atl-stage__node:hover {
  transform: translateY(-2px);
}

.atl-stage__node:focus-visible {
  outline: 3px solid var(--atl-primary);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.atl-stage__node-ring {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--atl-white);
  border: 3px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.atl-stage__node-num {
  font-family: var(--atl-font-head);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--atl-text);
  line-height: 1;
}

.atl-stage__node.is-active .atl-stage__node-num,
.atl-stage__node[aria-selected="true"] .atl-stage__node-num {
  color: var(--atl-white);
  text-shadow: 0 1px 2px rgba(124, 45, 18, 0.4);
}

.atl-stage__node.is-active .atl-stage__node-ring,
.atl-stage__node[aria-selected="true"] .atl-stage__node-ring {
  background: linear-gradient(180deg, var(--atl-yellow-light), var(--atl-cta));
  border-color: var(--atl-cta-dark);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.atl-stage__node-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--atl-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.atl-stage__node.is-active .atl-stage__node-label {
  color: var(--atl-cta);
}

/* Preview + thumb strip */
.atl-stage__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

.atl-stage__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid rgba(14, 165, 233, 0.18);
  border-radius: var(--atl-radius-lg);
  box-shadow: 0 16px 40px var(--atl-shadow);
}

.atl-stage__hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 280px;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(180deg, #fef2f2, #fee2e2);
  border: 2px solid rgba(239, 68, 68, 0.25);
  border-radius: 999px;
  font-family: var(--atl-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--atl-red);
}

.atl-stage__hud-hearts {
  display: flex;
  gap: 0.15rem;
  color: var(--atl-red);
}

.atl-stage__phone {
  margin: 0;
  padding: 10px;
  background: linear-gradient(145deg, #334155, #1e293b);
  border-radius: 1.75rem;
  box-shadow: 0 20px 48px rgba(12, 74, 110, 0.28);
  transition: opacity 0.25s ease;
}

.atl-stage__phone.is-fading {
  opacity: 0.4;
}

.atl-stage__phone img {
  display: block;
  width: min(260px, 72vw);
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.35rem;
}

.atl-stage__meta {
  text-align: center;
  max-width: 28rem;
  margin-top: 1.25rem;
}

.atl-stage__title {
  margin: 0 0 0.35rem;
  font-family: var(--atl-font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--atl-text);
}

.atl-stage__caption {
  margin: 0;
  font-size: 0.95rem;
  color: var(--atl-text-muted);
  line-height: 1.55;
}

.atl-stage__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.atl-stage__arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  color: var(--atl-primary-dark);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.atl-stage__arrow:hover {
  background: rgba(14, 165, 233, 0.22);
  transform: scale(1.05);
}

.atl-stage__arrow:focus-visible {
  outline: 3px solid var(--atl-primary);
  outline-offset: 2px;
}

.atl-stage__arrow svg {
  width: 22px;
  height: 22px;
}

.atl-stage__counter {
  font-family: var(--atl-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--atl-text-muted);
  min-width: 3.5rem;
  text-align: center;
}

/* Five-up thumb grid — all screenshots visible without clipping */
.atl-stage__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.35rem;
  overflow: visible;
}

.atl-stage__thumb {
  width: 100%;
  min-width: 0;
  scroll-snap-align: unset;
  padding: 5px;
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid transparent;
  border-radius: 0.85rem;
  box-shadow: 0 6px 16px rgba(12, 74, 110, 0.12);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.atl-stage__thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(12, 74, 110, 0.18);
}

.atl-stage__thumb.is-active,
.atl-stage__thumb[aria-selected="true"] {
  border-color: var(--atl-cta);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
}

.atl-stage__thumb:focus-visible {
  outline: 3px solid var(--atl-primary);
  outline-offset: 2px;
}

.atl-stage__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.55rem;
}

/* Download arrow CTA */
.atl-download {
  padding: 3rem 1.25rem 5rem;
}

.atl-download__wrap {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.atl-download__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.atl-arrow-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100px;
  padding: 1.5rem 4rem 1.5rem 2rem;
  background: linear-gradient(180deg, var(--atl-yellow-light) 0%, var(--atl-yellow) 45%, var(--atl-cta) 100%);
  clip-path: polygon(0 15%, 88% 15%, 100% 50%, 88% 85%, 0 85%);
  border: none;
  cursor: pointer;
  box-shadow:
    0 8px 0 var(--atl-cta-dark),
    0 16px 40px rgba(249, 115, 22, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.atl-arrow-cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 11px 0 var(--atl-cta-dark),
    0 20px 48px rgba(249, 115, 22, 0.4);
}

.atl-arrow-cta:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--atl-cta-dark);
}

.atl-arrow-cta__text {
  font-family: var(--atl-font-head);
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 800;
  color: var(--atl-white);
  text-align: center;
  text-shadow:
    0 2px 0 rgba(124, 45, 18, 0.5),
    0 0 12px rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
}

/* Footer */
.atl-footer {
  padding: 2rem 1.25rem calc(var(--atl-ribbon-h) + 1.5rem);
  background: rgba(255, 255, 255, 0.65);
  border-top: 2px solid rgba(14, 165, 233, 0.15);
}

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

.atl-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--atl-font-head);
  font-weight: 700;
}

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

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

.atl-footer__links a {
  font-weight: 700;
  color: var(--atl-text-muted);
  transition: color 0.2s ease;
  cursor: pointer;
}

.atl-footer__links a:hover {
  color: var(--atl-primary-dark);
}

.atl-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--atl-text-muted);
}

/* Modal */
.atl-modal[hidden] {
  display: none;
}

.atl-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.atl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 74, 110, 0.55);
  cursor: pointer;
}

.atl-modal__panel {
  position: relative;
  width: min(100%, 400px);
  padding: 2rem 1.75rem;
  background: var(--atl-white);
  border-radius: var(--atl-radius-lg);
  border: 3px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 24px 64px var(--atl-shadow);
  text-align: center;
}

.atl-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.atl-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--atl-sky-top), var(--atl-primary));
  color: var(--atl-white);
}

.atl-modal__icon svg {
  width: 32px;
  height: 32px;
}

.atl-modal__title {
  margin: 0 0 0.5rem;
  font-family: var(--atl-font-head);
  font-size: 1.65rem;
  font-weight: 800;
}

.atl-modal__text {
  margin: 0 0 1.25rem;
  color: var(--atl-text-muted);
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .atl-header .atl-btn--cta {
    display: inline-flex;
  }

  .atl-menu-btn {
    display: none;
  }

  .atl-nav {
    display: flex;
  }

  .atl-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .atl-hero__poster img {
    width: min(440px, 42vw);
  }

  .atl-tile--orange { transform: rotate(1.5deg) translateX(2.5rem); }
  .atl-tile--green { transform: rotate(1.2deg) translateX(1.5rem); }

  .atl-stage__thumbs {
    max-width: 42rem;
    gap: 0.65rem;
  }

  .atl-download__wrap {
    grid-template-columns: 1fr 1.1fr;
  }
}

@media (min-width: 768px) {
  .atl-zigzag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .atl-tile--cyan { grid-column: 1; transform: rotate(-2deg); }
  .atl-tile--orange { grid-column: 2; transform: rotate(2deg) translateY(1.5rem); }
  .atl-tile--purple { grid-column: 1; transform: rotate(1.5deg) translateY(-0.5rem); }
  .atl-tile--green { grid-column: 2; transform: rotate(-1.5deg) translateY(1rem); }
}

@media (min-width: 1024px) {
  .atl-header {
    top: 1.25rem;
    left: 2rem;
    right: 2rem;
  }

  .atl-hero {
    padding-top: calc(var(--atl-header-h) + 3rem);
  }

  .atl-hero__poster img {
    width: min(520px, 44vw);
  }

  .atl-stage__thumbs {
    max-width: 48rem;
    gap: 0.75rem;
  }

  .atl-stage__phone img {
    width: min(300px, 28vw);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .atl-scene__path-active {
    stroke-dashoffset: 0 !important;
  }

  .atl-hero__poster {
    transform: none;
  }

  .atl-hero__poster:hover {
    transform: none;
  }

  .atl-deco-arrows {
    animation: none;
  }

  .atl-stage__phone.is-fading {
    opacity: 1;
  }
}
