/* =========================================================
   Block Craft Blast — Level Arena landing
   Juicy emerald puzzle aesthetic · differentiated layout
   ========================================================= */

:root {
  --bg-mint: #e9f8ee;
  --bg-soft: #f4fcf6;
  --bg-deep: #0b3d1d;
  --bg-panel: #0f4a24;
  --emerald: #14994a;
  --lime: #7dff4a;
  --lime-soft: #b8ff8a;
  --gold: #ffb020;
  --gold-deep: #ff8a00;
  --ruby: #ff3b5c;
  --cyan: #3de8ff;
  --text: #0a2e1a;
  --text-soft: #2d5a3f;
  --text-on-dark: #f3fff6;
  --stroke: rgba(20, 153, 74, 0.18);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 40px rgba(11, 61, 29, 0.12);
  --shadow-neon: 0 0 0 3px rgba(125, 255, 74, 0.55), 0 0 36px rgba(125, 255, 74, 0.35);
  --shadow-gold: 0 0 0 3px rgba(255, 176, 32, 0.55), 0 12px 32px rgba(255, 138, 0, 0.35);
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --dock-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(125, 255, 74, 0.18), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(255, 176, 32, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-mint) 40%, #dff5e6 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bg-deep);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

/* ---------- Ambience ---------- */
.ambience {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambience__spark {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.55;
  animation: twinkle 3.2s ease-in-out infinite;
}

.ambience__spark.s1 { top: 18%; left: 12%; animation-delay: 0s; }
.ambience__spark.s2 { top: 42%; right: 16%; animation-delay: 0.8s; }
.ambience__spark.s3 { top: 68%; left: 28%; animation-delay: 1.4s; }
.ambience__spark.s4 { top: 24%; right: 32%; animation-delay: 2s; }

@keyframes twinkle {
  0%, 100% { transform: scale(0.6); opacity: 0.25; }
  50% { transform: scale(1.35); opacity: 0.8; }
}

/* ---------- Dock / Nav (fixed over full-bleed hero) ---------- */
.dock {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.85rem 1rem 0;
  pointer-events: none;
}

.dock__inner {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  min-height: var(--dock-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.85rem;
  background: rgba(8, 40, 20, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(125, 255, 74, 0.28);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.dock.is-scrolled .dock__inner {
  background: rgba(8, 40, 20, 0.82);
  border-color: rgba(125, 255, 74, 0.5);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(125, 255, 74, 0.2);
}

.dock__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.dock__logo {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(11, 61, 29, 0.2);
}

.dock__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.dock__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.55rem;
  border-radius: 16px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.step:hover,
.step.is-active {
  background: rgba(125, 255, 74, 0.22);
  transform: translateY(-1px);
}

.step__orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--lime-soft), var(--lime));
  color: var(--bg-deep);
  box-shadow: inset 0 -2px 0 rgba(11, 61, 29, 0.15), 0 4px 10px rgba(20, 153, 74, 0.25);
}

.step__orb svg {
  width: 16px;
  height: 16px;
}

.step__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(243, 255, 246, 0.85);
  letter-spacing: 0.02em;
}

.dock__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.dock__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(125, 255, 74, 0.18);
}

.dock__burger span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.dock__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dock__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.dock__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.7rem 1.25rem;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease), box-shadow 0.18s var(--ease);
  color: var(--bg-deep);
}

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

.btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn small {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.8;
}

.btn--sm {
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.btn--sm span {
  display: inline;
}

.btn--gold {
  background: linear-gradient(180deg, #ffd056 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: #3a2200;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(180, 90, 0, 0.35),
    0 10px 22px rgba(255, 138, 0, 0.35);
}

.btn--mint {
  background: linear-gradient(180deg, #f7fff8 0%, #d8f7e0 100%);
  color: var(--bg-deep);
  border: 2px solid rgba(20, 153, 74, 0.25);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(11, 61, 29, 0.1);
}

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

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

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

/* ---------- Hero Arena: full-bleed poster ---------- */
.arena {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text-on-dark);
  background: linear-gradient(165deg, #147a38 0%, var(--bg-deep) 48%, #061f10 100%);
  /* Room for fixed dock */
  padding-top: calc(var(--dock-h) + 1.5rem);
}

.arena__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.arena__rays {
  position: absolute;
  inset: -30%;
  background: repeating-conic-gradient(
    from 0deg at 35% 42%,
    rgba(184, 255, 138, 0.1) 0deg 7deg,
    transparent 7deg 14deg
  );
  animation: spin-rays 32s linear infinite;
  opacity: 0.75;
}

.arena__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 255, 74, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 74, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 55% 48%, #000 18%, transparent 72%);
}

.arena__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}

.arena__orb--a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  right: 4%;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 200, 60, 0.4) 0%, transparent 68%);
}

.arena__orb--b {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  left: -4%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(125, 255, 74, 0.28) 0%, transparent 70%);
}

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

.arena__stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.arena__emblem {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
}

.gold-frame {
  position: relative;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(145deg, #ffe566 0%, var(--gold) 42%, #c96a00 100%);
  box-shadow:
    0 0 0 4px rgba(255, 224, 102, 0.35),
    0 0 60px rgba(255, 176, 32, 0.45),
    0 28px 60px rgba(0, 0, 0, 0.4);
  animation: frame-pulse 3.8s ease-in-out infinite;
}

.gold-frame::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 100, 0.45) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.gold-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 32px;
  background: var(--bg-panel);
}

@keyframes frame-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(255, 224, 102, 0.35),
      0 0 60px rgba(255, 176, 32, 0.45),
      0 28px 60px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(255, 240, 150, 0.55),
      0 0 80px rgba(255, 176, 32, 0.65),
      0 28px 60px rgba(0, 0, 0, 0.4);
  }
}

.arena__copy {
  max-width: 34rem;
  padding-bottom: 0.5rem;
}

.arena__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 3px 0 #0a2e1a,
    0 10px 0 rgba(8, 40, 20, 0.4),
    0 22px 44px rgba(0, 0, 0, 0.35);
}

.arena__brand span {
  background: linear-gradient(180deg, #fff6b0 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #0a2e1a);
}

.arena__slogan {
  margin: 1.15rem 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 0 #0a2e1a, 0 10px 22px rgba(0, 0, 0, 0.28);
}

.arena__slogan em {
  font-style: normal;
  background: linear-gradient(180deg, #ffe566, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arena__lead {
  margin: 0 0 1.5rem;
  color: rgba(243, 255, 246, 0.9);
  font-size: 1.05rem;
  max-width: 30rem;
}

.arena__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

/* ---------- Shared heads ---------- */
.levels__head,
.kicker + h2 {
  text-align: center;
}

.levels__head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 153, 74, 0.12);
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker--on-dark {
  background: rgba(125, 255, 74, 0.16);
  color: var(--lime-soft);
}

.levels__head h2,
.howto__copy h2,
.download__portal h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bg-deep);
}

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

/* ---------- Level map features ---------- */
.levels {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
}

.levels__map {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  position: relative;
}

.levels__map::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1rem;
  bottom: 1rem;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--lime), var(--emerald), var(--gold));
  border-radius: 999px;
  opacity: 0.35;
}

.node {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
  position: relative;
}

.node__block {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  justify-self: center;
  background: linear-gradient(160deg, #f0d2a0, #c9955a);
  border: 3px solid #fff2c8;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 0 rgba(120, 70, 20, 0.25),
    0 10px 22px rgba(11, 61, 29, 0.18);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #4a2a00;
  z-index: 1;
}

.node__body {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.node__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  background: linear-gradient(180deg, var(--lime-soft), var(--lime));
  color: var(--bg-deep);
  box-shadow: 0 6px 14px rgba(20, 153, 74, 0.25);
}

.node__icon svg {
  width: 22px;
  height: 22px;
}

.node__body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--bg-deep);
}

.node__body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.node__shot {
  margin: 0;
  width: min(100%, 220px);
  border-radius: 28px;
  padding: 5px;
  background: linear-gradient(160deg, var(--lime), #2bb85a);
  box-shadow: var(--shadow-neon), 0 16px 30px rgba(11, 61, 29, 0.18);
  overflow: hidden;
}

.node__shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 23px;
  background: var(--bg-panel);
}

/* Zigzag: A = copy left / shot right; B = shot left / copy right */
.node--a .node__body { grid-column: 1; grid-row: 1; }
.node--a .node__block { grid-column: 2; grid-row: 1; }
.node--a .node__shot { grid-column: 3; grid-row: 1; justify-self: start; }

.node--b .node__shot { grid-column: 1; grid-row: 1; justify-self: end; }
.node--b .node__block { grid-column: 2; grid-row: 1; }
.node--b .node__body { grid-column: 3; grid-row: 1; }

.node--a .node__shot,
.node--b .node__body {
  transform: rotate(1.5deg);
}

.node--b .node__shot,
.node--a .node__body {
  transform: rotate(-1.5deg);
}

.node:hover .node__shot,
.node:hover .node__body {
  transform: rotate(0deg) translateY(-4px);
  transition: transform 0.25s var(--ease);
}

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 1rem;
}

.gallery__rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1rem max(1.25rem, calc((100vw - 1100px) / 2)) 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery__rail::-webkit-scrollbar {
  height: 8px;
}

.gallery__rail::-webkit-scrollbar-thumb {
  background: rgba(20, 153, 74, 0.35);
  border-radius: 999px;
}

.phone {
  flex: 0 0 min(220px, 70vw);
  margin: 0;
  scroll-snap-align: center;
  border-radius: 32px;
  padding: 6px;
  background: linear-gradient(160deg, rgba(125, 255, 74, 0.95), #0f6b35);
  box-shadow: 0 16px 36px rgba(11, 61, 29, 0.18);
  transition: transform 0.25s var(--ease);
}

.phone--lift {
  transform: translateY(-18px);
}

.phone:hover {
  transform: translateY(-8px) scale(1.02);
}

.phone--lift:hover {
  transform: translateY(-26px) scale(1.02);
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 26px;
  background: var(--bg-panel);
}

/* ---------- How to ---------- */
.howto {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 2rem 1.25rem;
}

.howto__panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(125, 255, 74, 0.22), transparent 50%),
    linear-gradient(145deg, #125c2c, var(--bg-deep));
  box-shadow: var(--shadow-neon), var(--shadow-soft);
  color: var(--text-on-dark);
}

.howto__copy h2 {
  color: #fff;
  text-shadow: 0 2px 0 #0a2e1a;
}

.howto__list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  counter-reset: how;
}

.howto__list li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.15rem 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(8, 40, 20, 0.35);
  border: 1px solid rgba(125, 255, 74, 0.22);
}

.howto__list li::before {
  content: counter(how);
  grid-row: 1 / span 2;
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(180deg, #ffe566, var(--gold-deep));
  color: #3a2200;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.howto__list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

.howto__list span {
  color: rgba(243, 255, 246, 0.82);
  font-size: 0.95rem;
}

.howto__art {
  justify-self: center;
  width: min(240px, 70%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: float-y 5s ease-in-out infinite;
}

.howto__art img {
  width: 100%;
  border-radius: 28px;
}

/* ---------- Download ---------- */
.download {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 1rem auto 0;
  padding: 2rem 1.25rem 3.5rem;
}

.download__portal {
  text-align: center;
  padding: 2.75rem 1.75rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 176, 32, 0.28), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #e8f8ee 100%);
  border: 3px solid rgba(125, 255, 74, 0.55);
  box-shadow: var(--shadow-neon), var(--shadow-soft);
}

.download__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(11, 61, 29, 0.2);
}

.download__portal p {
  margin: 0 auto 1.4rem;
  max-width: 28rem;
  color: var(--text-soft);
}

.download__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #0f4a24, #082814);
  color: rgba(243, 255, 246, 0.88);
  padding: 2.5rem 1.25rem 2rem;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.footer__brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer__brand img {
  border-radius: 14px;
}

.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
}

.footer__brand p {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer__links a {
  font-weight: 700;
  color: var(--lime-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.footer__links a:hover {
  color: #fff;
  border-bottom-color: var(--lime);
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

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

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 20, 0.62);
  backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  width: min(100%, 400px);
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff, #eefaf1);
  border: 3px solid rgba(125, 255, 74, 0.55);
  box-shadow: var(--shadow-neon);
  text-align: center;
  animation: modal-in 0.28s var(--ease);
}

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

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 153, 74, 0.1);
  color: var(--bg-deep);
}

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

.modal__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  border-radius: 18px;
}

.modal__card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--bg-deep);
}

.modal__card p {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .arena {
    min-height: auto;
  }

  .arena__stage {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 1rem 1.25rem 2.75rem;
    text-align: center;
    gap: 2rem;
  }

  .arena__emblem {
    width: min(70vw, 320px);
    justify-self: center;
    order: -1;
  }

  .arena__copy {
    max-width: none;
  }

  .arena__cta {
    justify-content: center;
  }

  .levels__map::before {
    left: 32px;
    transform: none;
  }

  .node,
  .node--a,
  .node--b {
    grid-template-columns: 64px 1fr;
    gap: 0.85rem 1rem;
  }

  .node--a .node__block,
  .node--b .node__block {
    grid-column: 1;
    grid-row: 1;
  }

  .node--a .node__body,
  .node--b .node__body {
    grid-column: 2;
    grid-row: 1;
  }

  .node--a .node__shot,
  .node--b .node__shot {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    width: min(180px, 55%);
    transform: none;
  }

  .node--a .node__body,
  .node--b .node__body {
    transform: none;
  }

  .howto__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .howto__list li {
    text-align: left;
  }

  .howto__art {
    order: -1;
  }
}

@media (max-width: 780px) {
  .dock {
    padding: 0.65rem 0.75rem 0;
  }

  .dock__inner {
    border-radius: 22px;
    flex-wrap: wrap;
  }

  .dock__name {
    font-size: 0.95rem;
  }

  .dock__burger {
    display: inline-flex;
  }

  .dock__steps {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.35rem 0 0.15rem;
  }

  .dock__steps.is-open {
    display: flex;
  }

  .step {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
  }

  .step__label {
    font-size: 0.9rem;
  }

  .btn span small {
    display: none;
  }

  .gold-frame {
    border-radius: 32px;
    padding: 7px;
  }

  .gold-frame img {
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .arena__brand {
    font-size: 2.6rem;
  }

  .arena__emblem {
    width: min(78vw, 260px);
  }

  .arena__cta .btn {
    width: 100%;
  }

  .download__cta .btn {
    width: 100%;
  }

  .phone--lift {
    transform: none;
  }

}

@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;
  }
}
