.page-content.scroll-deck-mode {
  width: 100%;
  max-width: none;
  padding-top: 12px;
  padding-bottom: 24px;
}

.scroll-deck {
  /* Flat stacked cards: no perspective, depth animation or zoom. */
  padding-bottom: 12px;
}

.deck-panel {
  position: sticky;
  top: 87px;
  z-index: var(--deck-layer, 1);
  min-height: calc(100vh - 103px);
  min-height: calc(100svh - 103px);
  margin: 0 0 18px;
  scroll-margin-top: 87px;
}

.deck-panel__surface {
  min-height: inherit;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid #28506a;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #0d1b2bfa, #091522fa 62%, #0b1c2bfa);
  /* Small static shadow is less expensive to repaint than 3D layered glow. */
  box-shadow: 0 8px 20px #0005;
  transform: none;
}

.deck-panel__surface > .page-heading {
  margin-bottom: clamp(20px, 4vh, 42px);
}

.deck-panel__surface > .page-heading h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.deck-feature {
  max-width: 1040px;
  margin: clamp(28px, 8vh, 88px) auto 0;
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid #2b536d;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b1a29, #0c1c2b);
  box-shadow: 0 16px 42px #0005, 0 1px 0 #c5f8ff12 inset;
}

.deck-feature h2 {
  margin: 15px 0 8px;
  font-size: clamp(23px, 3vw, 38px);
  letter-spacing: -.035em;
}

.deck-feature p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.75;
}

.deck-feature .btn-row {
  margin-top: 22px;
}

.deck-vault {
  display: grid;
  grid-template-columns: minmax(110px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
}

.deck-vault > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #7e704b;
  border-radius: 12px;
  box-shadow: 0 12px 32px #0008;
}

.deck-vault .data-pill {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .page-content.scroll-deck-mode {
    padding: 10px 12px 96px;
  }

  .deck-panel {
    top: 68px;
    min-height: calc(100vh - 150px - env(safe-area-inset-bottom));
    min-height: calc(100svh - 150px - env(safe-area-inset-bottom));
    margin-bottom: 14px;
    scroll-margin-top: 68px;
  }

  .deck-panel__surface {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .deck-panel__surface > .page-heading {
    display: block;
    margin-bottom: 24px;
  }

  .deck-panel__surface > .page-heading h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .deck-feature {
    margin-top: 28px;
    padding: 22px 18px;
  }

  .deck-vault {
    grid-template-columns: minmax(76px, 112px) minmax(0, 1fr);
    gap: 18px;
  }

  .deck-vault .btn-row {
    align-items: stretch;
  }
}

@media (max-width: 420px) {
  .deck-vault {
    grid-template-columns: 1fr;
  }

  .deck-vault > img {
    width: min(112px, 38vw);
  }
}

/* Transparent sticky panel boxes must not intercept mobile taps.
   The visible card surface and its controls remain interactive. */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .deck-panel { pointer-events: none; }
  .deck-panel__surface { pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .page-content.scroll-deck-mode {
    scroll-behavior: auto;
  }

  .deck-panel {
    position: relative;
    top: auto;
    min-height: 0;
    margin-bottom: 16px;
    scroll-margin-top: 0;
  }

  .deck-panel__surface {
    min-height: 0;
    box-shadow: 0 8px 20px #0005;
  }
}
