.deck-page,
.story-overlay {
  --deck-navy: #102c33;
  --deck-mint: #d9eee6;
  --deck-cream: #f5ead5;
  --deck-sky: #dcebf4;
  --deck-salmon: #f1d7cd;
}

.deck-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(22, 133, 111, 0.1), transparent 28rem),
    var(--paper);
}

.deck-main {
  width: min(100%, 1320px);
  padding-top: clamp(34px, 6vw, 78px);
}

.deck-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.deck-intro h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.7rem, 7.2vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.deck-intro > p {
  margin: 0 0 5px;
  color: #40534d;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}

.deck-shell {
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #cfdad6;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 32px 80px rgba(16, 44, 51, 0.13);
}

.deck-toolbar,
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.deck-toolbar {
  padding: 4px 4px 16px;
}

.deck-toolbar > div {
  display: grid;
  gap: 3px;
}

.deck-kicker,
.deck-counter {
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deck-instruction {
  color: var(--muted);
  font-size: 0.88rem;
}

.deck-counter {
  min-width: 72px;
  text-align: right;
}

.deck-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}

.deck-viewport::-webkit-scrollbar {
  display: none;
}

.deck-viewport:focus-visible {
  box-shadow: 0 0 0 4px rgba(22, 133, 111, 0.3);
}

.deck-track {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deck-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.deck-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 5vw, 78px);
  align-items: center;
  min-height: clamp(520px, 64svh, 680px);
  padding: clamp(30px, 6vw, 76px);
  overflow: hidden;
  border-radius: 12px;
  background: var(--deck-navy);
  color: #fff;
}

.deck-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -130px;
  top: -170px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.deck-copy,
.deck-visual {
  position: relative;
  z-index: 1;
}

.deck-screenshot {
  display: grid;
  align-items: stretch;
  margin: 0;
  min-height: 0;
  aspect-ratio: 16 / 10;
  padding: 10px;
  background: rgba(255, 255, 255, .1);
}

.deck-screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  object-fit: cover;
  object-position: top left;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.deck-visual-fallback {
  display: none;
}

.deck-step {
  display: block;
  margin-bottom: 18px;
  color: #9ad8c7;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deck-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.deck-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #edf7f3;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  line-height: 1.48;
}

.deck-detail {
  max-width: 720px;
  margin: 15px 0 0;
  color: #b9ccc6;
  font-size: 0.98rem;
  line-height: 1.58;
}

.deck-detail a {
  color: #fff;
  font-weight: 850;
  text-underline-offset: 3px;
}

.deck-visual {
  isolation: isolate;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.journey-visual {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-content: center;
  gap: 10px;
  padding: 26px;
}

.journey-visual span {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 12px;
  border-radius: 14px;
  background: #e8f4ef;
  color: var(--deep);
  font-weight: 950;
  text-align: center;
}

.journey-visual i {
  position: relative;
  align-self: center;
  height: 2px;
  background: #80c5b3;
}

.journey-visual i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border-width: 5px 0 5px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #80c5b3;
}

.journey-visual i:nth-of-type(2) {
  display: none;
}

.journey-visual i:nth-of-type(3) {
  grid-column: 2;
  grid-row: 2;
}

.deck-card--small {
  background: #133d37;
}

.size-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 12px;
  padding: 26px;
}

.size-visual span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  min-height: 150px;
  padding: 18px 12px;
  border-radius: 14px;
  background: var(--deck-mint);
  color: #133d37;
}

.size-visual span:nth-child(2) {
  min-height: 205px;
  background: #b9dfd2;
}

.size-visual span:nth-child(3) {
  min-height: 260px;
  background: #8bc8b5;
}

.size-visual b {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.size-visual small {
  line-height: 1.3;
}

.deck-card--setup {
  background: #3a334d;
}

.setup-visual {
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 30px;
}

.setup-visual span {
  position: relative;
  padding: 16px 18px 16px 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #d7d2e4;
  font-weight: 850;
}

.setup-visual span::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  border: 2px solid #aaa3bc;
  border-radius: 50%;
}

.setup-visual .is-done::before {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: #9bd3c1;
  background: #9bd3c1;
  color: #273042;
  font-size: 0.75rem;
}

.setup-visual .is-current {
  border-color: #f3d397;
  background: rgba(243, 211, 151, 0.12);
  color: #fff;
}

.setup-visual .is-current::before {
  border: 5px solid #f3d397;
}

.deck-card--collaboration {
  background: #443328;
}

.collaboration-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-content: center;
  padding: 28px;
}

.collaboration-visual span {
  display: grid;
  gap: 7px;
  min-height: 130px;
  align-content: center;
  padding: 16px;
  border-radius: 14px;
  background: var(--deck-cream);
  color: #443328;
  text-align: center;
}

.collaboration-visual i {
  align-self: center;
  color: #f3d397;
  font-size: 2rem;
  font-style: normal;
  font-weight: 900;
}

.collaboration-visual strong {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f0c979;
  color: #443328;
}

.deck-card--roles {
  background: #263852;
}

.roles-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 12px;
  padding: 25px;
}

.role-person {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.role-person i {
  display: block;
  width: 112px;
  height: 104px;
  margin-bottom: 4px;
  font-style: normal;
}

.role-figure {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.role-figure__head,
.role-figure__body {
  fill: var(--deck-sky);
}

.role-figure__badge {
  fill: #9ad8c7;
  stroke: #263852;
  stroke-width: 4;
}

.role-figure__mark {
  fill: none;
  stroke: #263852;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-person b {
  margin-top: 2px;
}

.role-person small {
  color: #bed1e2;
  line-height: 1.25;
}

.deck-card--teams {
  background: #213d42;
}

.team-visual {
  position: relative;
}

.team-visual strong,
.team-node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  z-index: 2;
}

.team-visual strong {
  left: 50%;
  top: 50%;
  width: 126px;
  height: 126px;
  transform: translate(-50%, -50%);
  background: #a9dccd;
  color: #17363b;
}

.team-node {
  width: 62px;
  height: 62px;
  background: #f2e8d4;
  color: #17363b;
  font-weight: 950;
}

.team-node--one { left: 10%; top: 15%; }
.team-node--two { right: 10%; top: 16%; }
.team-node--three { left: 14%; bottom: 12%; }
.team-node--hidden {
  right: 8%;
  bottom: 11%;
  width: 72px;
  height: 52px;
  border: 1px dashed #b6c7c3;
  border-radius: 10px;
  background: transparent;
  color: #b6c7c3;
  font-size: 0.72rem;
}

.team-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 41%;
  height: 1px;
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.26);
}

.team-line--one { transform: rotate(218deg); }
.team-line--two { transform: rotate(322deg); }
.team-line--three { transform: rotate(145deg); }

.deck-card--action {
  background: #4a3435;
}

.action-visual {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
}

.action-visual span {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-radius: 10px;
  background: var(--deck-salmon);
  color: #4a3435;
}

.action-visual small {
  font-weight: 850;
  text-transform: uppercase;
}

.action-visual strong {
  justify-self: start;
  margin-top: 5px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #f0c5b6;
  color: #4a3435;
  font-size: 0.84rem;
}

.deck-card--compare {
  background: #2b3e33;
}

.compare-visual {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px;
}

.compare-visual span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
}

.compare-visual i {
  display: block;
  width: var(--bar);
  height: 26px;
  border-radius: 999px;
  background: #a9dccd;
}

.compare-visual span:nth-child(2) i {
  background: #f0ca7b;
}

.compare-visual strong {
  justify-self: start;
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e5efe8;
  font-size: 0.8rem;
}

.deck-card--privacy {
  background: #173c4a;
}

.privacy-visual {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 30px;
}

.privacy-shield {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.privacy-shield i {
  position: relative;
  width: 112px;
  height: 132px;
  border-radius: 56px 56px 42px 42px;
  background: #9fd6d1;
  clip-path: polygon(50% 0, 96% 18%, 88% 72%, 50% 100%, 12% 72%, 4% 18%);
}

.privacy-shield i::after {
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #173c4a;
  font-size: 2.4rem;
  font-style: normal;
  font-weight: 950;
}

.privacy-shield span {
  color: #d7ece9;
  font-weight: 900;
}

.privacy-visual ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-visual li {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #c5dcdb;
  font-size: 0.76rem;
  text-align: center;
}

.deck-card--rules {
  background: #34333d;
}

.rules-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 12px;
  padding: 28px;
}

.rules-visual span {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1e8d8;
  font-weight: 850;
  text-align: center;
}

.deck-controls {
  padding: 16px 4px 3px;
}

.deck-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #b8cbc5;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-weight: 900;
  cursor: pointer;
}

.deck-arrow:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.deck-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.deck-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b9c8c4;
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease;
}

.deck-dot[aria-current="true"] {
  width: 30px;
  background: var(--deep);
}

.deck-conclusion,
.deck-basis {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(38px, 7vw, 90px);
  padding: clamp(28px, 5vw, 60px);
  border-radius: 14px;
}

.deck-conclusion {
  align-items: end;
  background: #e6f1ed;
}

.deck-conclusion h2,
.deck-basis h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1;
}

.deck-conclusion p,
.deck-basis p {
  margin: 14px 0 0;
  color: #43544e;
  line-height: 1.58;
}

.deck-conclusion-actions {
  display: grid;
  gap: 10px;
}

.deck-basis {
  align-items: start;
  margin-top: 18px;
  border: 1px solid #d5dfdc;
  background: #fff;
}

.deck-basis h2 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.deck-sources {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.deck-sources a {
  color: var(--deep);
  font-weight: 850;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .deck-intro,
  .deck-card,
  .deck-conclusion,
  .deck-basis {
    grid-template-columns: 1fr;
  }

  .deck-card {
    align-content: start;
    min-height: auto;
  }

  .deck-visual {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .deck-main {
    padding-inline: 10px;
  }

  .deck-intro {
    padding-inline: 8px;
  }

  .deck-intro h1 {
    font-size: clamp(2.65rem, 15vw, 4.25rem);
  }

  .deck-shell {
    padding: 8px;
    border-radius: 14px;
  }

  .deck-toolbar {
    padding: 5px 4px 12px;
  }

  .deck-instruction {
    display: none;
  }

  .deck-card {
    gap: 24px;
    min-height: calc(100svh - 184px);
    padding: 28px 20px 22px;
  }

  .deck-copy h2 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .deck-lead {
    margin-top: 19px;
    font-size: 1.03rem;
  }

  .deck-detail {
    font-size: 0.9rem;
  }

  .deck-visual {
    min-height: 236px;
  }

  .journey-visual,
  .setup-visual,
  .collaboration-visual,
  .roles-visual,
  .action-visual,
  .compare-visual,
  .privacy-visual,
  .rules-visual {
    padding: 18px;
  }

  .journey-visual span {
    min-height: 66px;
    font-size: 0.8rem;
  }

  .size-visual {
    gap: 7px;
    padding: 16px;
  }

  .size-visual span {
    min-height: 122px;
    padding: 12px 8px;
  }

  .size-visual span:nth-child(2) { min-height: 160px; }
  .size-visual span:nth-child(3) { min-height: 198px; }

  .size-visual small,
  .role-person small {
    font-size: 0.66rem;
  }

  .collaboration-visual span {
    min-height: 110px;
    padding: 9px;
  }

  .collaboration-visual small {
    font-size: 0.65rem;
  }

  .role-person i {
    width: 76px;
    height: 71px;
  }

  .role-person b {
    margin-top: 0;
    font-size: 0.73rem;
  }

  .team-node--one { left: 7%; }
  .team-node--two { right: 7%; }

  .team-visual strong {
    width: 100px;
    height: 100px;
    font-size: 0.8rem;
  }

  .action-visual span {
    grid-template-columns: 62px 1fr;
    font-size: 0.78rem;
  }

  .privacy-visual ul {
    grid-template-columns: 1fr;
  }

  .privacy-shield i {
    width: 80px;
    height: 94px;
  }

  .rules-visual span {
    min-height: 82px;
    font-size: 0.76rem;
  }

  .deck-arrow span {
    display: none;
  }

  .deck-arrow {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .deck-dots {
    gap: 5px;
  }

  .deck-dot {
    width: 8px;
    height: 8px;
  }

  .deck-dot[aria-current="true"] {
    width: 20px;
  }

  .deck-conclusion,
  .deck-basis {
    margin-inline: 2px;
    padding: 26px 22px;
  }
}

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

  .deck-dot {
    transition: none;
  }
}

@media print {
  .deck-page .site-header,
  .deck-toolbar,
  .deck-controls,
  .deck-conclusion,
  .deck-page .site-footer {
    display: none !important;
  }

  .deck-page,
  .deck-main,
  .deck-shell,
  .deck-viewport {
    overflow: visible;
    width: auto;
    max-width: none;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .deck-track {
    display: block;
  }

  .deck-slide {
    break-after: page;
  }

  .deck-slide[aria-hidden="true"] {
    display: block !important;
  }

  .deck-card {
    min-height: 90vh;
    print-color-adjust: exact;
  }
}
