:root {
  --ink: #2d2b29;
  --soft-ink: #57514a;
  --muted: #756d63;
  --paper: #fffdf8;
  --card: rgba(255, 255, 255, 0.88);
  --gold: #d5a135;
  --gold-2: #f0d184;
  --gold-3: #f7ead0;
  --sage: #dfead6;
  --rose: #f5ded8;
  --sky: #dcebf4;
  --line: rgba(213, 161, 53, 0.42);
  --shadow: 0 24px 80px rgba(86, 66, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(213, 161, 53, 0.18), transparent 20rem),
    radial-gradient(circle at 82% 20%, rgba(220, 235, 244, 0.72), transparent 22rem),
    radial-gradient(circle at 78% 76%, rgba(240, 209, 132, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(250, 245, 236, 0.92)),
    #f7f2e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(213, 161, 53, 0.13) 24.2% 25%, transparent 25.2%),
    linear-gradient(150deg, transparent 0 62%, rgba(172, 124, 28, 0.16) 62.2% 63%, transparent 63.2%),
    repeating-linear-gradient(105deg, rgba(255,255,255,0.28) 0 2px, transparent 2px 22px);
  opacity: 0.72;
}

body::after {
  content: "";
  position: fixed;
  left: -10vw;
  bottom: -20vh;
  width: 56vw;
  height: 56vw;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(213, 161, 53, 0.38), transparent 58%),
    conic-gradient(from 20deg, transparent, rgba(213, 161, 53, 0.36), transparent 28%, rgba(255, 255, 255, 0.12), transparent 55%);
  filter: blur(12px);
  opacity: 0.8;
}

button {
  font: inherit;
}

.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 360ms ease;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-card {
  position: relative;
  width: min(88rem, calc(100vw - 5rem));
  min-height: min(42rem, calc(100vh - 8rem));
  display: grid;
  align-content: center;
  gap: clamp(1rem, 2vw, 1.7rem);
  padding: clamp(2.2rem, 4.5vw, 4rem);
  background:
    linear-gradient(120deg, rgba(255,255,255,0.96), rgba(255,252,245,0.9)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 10%, rgba(213, 161, 53, 0.12), transparent 18rem),
    linear-gradient(90deg, rgba(213, 161, 53, 0.08), transparent 28%);
}

.slide-card > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 {
  max-width: 15ch;
  color: var(--gold);
  font-size: clamp(2.4rem, 5.2vw, 5.2rem);
  line-height: 1.06;
  text-align: center;
}

h2 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 3.9vw, 3.85rem);
  line-height: 1.08;
}

h3 {
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.2;
}

.eyebrow {
  width: fit-content;
  color: #9b6f12;
  background: rgba(247, 234, 208, 0.72);
  border: 1px solid rgba(213, 161, 53, 0.34);
  border-radius: 6px;
  padding: 0.42rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.warning {
  color: #a35e18;
  background: rgba(245, 222, 216, 0.68);
  border-color: rgba(184, 93, 52, 0.24);
}

.success {
  color: #5f7932;
  background: rgba(223, 234, 214, 0.7);
  border-color: rgba(95, 121, 50, 0.24);
}

.activity-tag {
  color: #7a5d0b;
  background: rgba(220, 235, 244, 0.76);
  border-color: rgba(91, 135, 162, 0.25);
}

.script {
  max-width: 48rem;
  color: var(--soft-ink);
  font-size: clamp(1.05rem, 1.55vw, 1.42rem);
  line-height: 1.55;
}

.script + .script {
  margin-top: 0.8rem;
}

.wide {
  max-width: 76rem;
}

.names {
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1.5;
  text-align: center;
}

.cover-layout {
  grid-template-columns: 0.06fr minmax(25rem, 1fr) minmax(18rem, 0.72fr);
  align-items: center;
}

.cover-copy {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}

.cover-copy .eyebrow {
  margin-bottom: 0.2rem;
}

.gold-rule {
  width: 2px;
  height: 12rem;
  justify-self: center;
  background: linear-gradient(var(--gold-2), var(--gold));
}

.people-scene {
  position: relative;
  min-height: 18rem;
  border-radius: 10px;
  background:
    radial-gradient(circle at 58% 34%, rgba(240, 209, 132, 0.74), transparent 5.8rem),
    linear-gradient(to top, rgba(247, 234, 208, 0.65), transparent 44%);
}

.people-scene::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 3.4rem;
  height: 2px;
  background: rgba(213, 161, 53, 0.46);
}

.people-scene span {
  position: absolute;
  bottom: 3.5rem;
  width: 1.45rem;
  height: 7rem;
  border: 2px solid rgba(45, 43, 41, 0.55);
  border-radius: 999px 999px 7px 7px;
  background: #fff8eb;
}

.people-scene span::before {
  content: "";
  position: absolute;
  top: -1.7rem;
  left: 50%;
  width: 1.45rem;
  height: 1.45rem;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(45, 43, 41, 0.55);
  background: #e0b36a;
}

.people-scene span:nth-child(1) { left: 10%; height: 6.2rem; background: #fff; }
.people-scene span:nth-child(2) { left: 20%; height: 7.6rem; background: #b37b2e; }
.people-scene span:nth-child(3) { left: 30%; height: 6.8rem; background: #f2dfb8; }
.people-scene span:nth-child(4) { left: 40%; height: 7.8rem; background: #fff; }
.people-scene span:nth-child(5) { left: 50%; height: 6.5rem; background: #d5a135; }
.people-scene span:nth-child(6) { left: 60%; height: 7.4rem; background: #fffaf2; }
.people-scene span:nth-child(7) { left: 70%; height: 6.7rem; background: #f1d391; }
.people-scene span:nth-child(8) { left: 80%; height: 7.5rem; background: #fff; }
.people-scene span:nth-child(9) { left: 90%; height: 6.1rem; background: #2d2b29; }

.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  align-items: center;
  column-gap: clamp(2rem, 4vw, 4rem);
}

.callout,
.quote-box,
.check-list,
.soft-grid article,
.number-list article,
.metrics article,
.timeline article,
.quiz-list details {
  background: rgba(240, 209, 132, 0.36);
  border: 1px solid rgba(213, 161, 53, 0.32);
  border-radius: 10px;
}

.callout,
.quote-box,
.check-list {
  padding: clamp(1.3rem, 2.2vw, 2rem);
}

.callout p,
.quote-box {
  color: var(--ink);
  font-size: clamp(1.18rem, 1.85vw, 1.75rem);
  font-weight: 750;
  line-height: 1.34;
}

.quote-box {
  border-left: 5px solid var(--gold);
  background: rgba(255, 252, 245, 0.76);
}

.quote-box.soft {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(247, 234, 208, 0.58));
}

.spark-list {
  display: grid;
  gap: 0.9rem;
}

.spark-list.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spark-list article {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(213, 161, 53, 0.26);
  border-radius: 12px;
}

.spark-list article > span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: #9b6f12;
  background: rgba(247, 234, 208, 0.88);
  border-radius: 50%;
  font-size: 1.1rem;
}

.spark-list h3 {
  margin-bottom: 0.35rem;
}

.spark-list p {
  color: var(--soft-ink);
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  line-height: 1.45;
}

.soft-grid {
  display: grid;
  gap: 1rem;
}

.soft-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.soft-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.soft-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.soft-grid article {
  padding: 1.25rem;
}

.soft-grid strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.soft-grid span,
.soft-grid p,
.metrics span,
.timeline p,
.quiz-list p,
.check-list p {
  color: var(--soft-ink);
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  line-height: 1.48;
}

.closing-line {
  color: #8d6518;
  background: rgba(247, 234, 208, 0.7);
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1rem;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  font-weight: 760;
  line-height: 1.35;
}

.number-list {
  display: grid;
  gap: 1rem;
}

.number-list article {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.72);
}

.number-list span {
  color: var(--gold);
  font-size: 2.2rem;
  font-weight: 850;
}

.number-list.stars article {
  grid-template-columns: 3.2rem minmax(0, 1fr);
}

.number-list.stars span {
  color: #9b6f12;
  font-size: 1.8rem;
}

.number-list p {
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.42;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
}

.check-list p {
  position: relative;
  padding-left: 1.45rem;
}

.check-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metrics article {
  display: grid;
  gap: 0.8rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.76);
}

.metrics strong {
  color: var(--gold);
  font-size: clamp(1.25rem, 1.75vw, 1.75rem);
  line-height: 1.08;
}

.chainline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chainline span {
  padding: 0.7rem 0.95rem;
  color: #7b5710;
  background: rgba(247, 234, 208, 0.82);
  border: 1px solid rgba(213, 161, 53, 0.32);
  border-radius: 999px;
  font-weight: 780;
}

.activity-slide .slide-card {
  background:
    linear-gradient(120deg, rgba(255,255,255,0.96), rgba(245, 249, 252, 0.92)),
    var(--paper);
  border-color: rgba(91, 135, 162, 0.28);
}

.activity-slide .slide-card::before {
  background:
    radial-gradient(circle at 8% 12%, rgba(220, 235, 244, 0.9), transparent 16rem),
    radial-gradient(circle at 88% 18%, rgba(247, 234, 208, 0.8), transparent 14rem);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.activity-grid article,
.prompt-card {
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(45, 43, 41, 0.08);
  box-shadow: 0 16px 40px rgba(86, 66, 28, 0.08);
}

.activity-grid strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.activity-grid p,
.prompt-card p,
.activity-tip {
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.45;
}

.activity-grid .green {
  background: rgba(223, 234, 214, 0.82);
}

.activity-grid .yellow {
  background: rgba(247, 234, 208, 0.9);
}

.activity-grid .red {
  background: rgba(245, 222, 216, 0.82);
}

.activity-tip {
  padding: 0.9rem 1rem;
  border-left: 4px solid #7aa7bf;
  background: rgba(220, 235, 244, 0.62);
  border-radius: 10px;
  font-weight: 650;
}

.prompt-card {
  max-width: 62rem;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(91, 135, 162, 0.22);
}

.prompt-card h3 {
  margin-bottom: 0.65rem;
  color: #4d7389;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.timeline article {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.timeline span {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #8d6518;
  font-weight: 850;
}

.timeline strong {
  display: block;
  margin-bottom: 0.5rem;
}

.quiz-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-card .quiz-list {
  gap: 0.85rem;
}

.quiz-card h2 {
  max-width: none;
  color: var(--gold);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.quiz-item,
.open-question {
  position: relative;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(213, 161, 53, 0.26);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(86, 66, 28, 0.08);
  overflow: hidden;
}

.quiz-item {
  display: grid;
  gap: 0.65rem;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.quiz-item:has(.answer-toggle[open]) {
  border-color: rgba(95, 121, 50, 0.38);
  box-shadow: 0 18px 42px rgba(86, 66, 28, 0.12);
}

.quiz-item:hover {
  transform: translateY(-2px);
}

.quiz-item h3 {
  color: var(--ink);
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  line-height: 1.3;
}

.answer-toggle summary {
  width: fit-content;
  color: var(--ink);
  cursor: pointer;
  font-weight: 760;
  line-height: 1.35;
  list-style: none;
}

.answer-toggle summary::-webkit-details-marker {
  display: none;
}

.answer-toggle summary {
  color: #6f580f;
  background: rgba(247, 234, 208, 0.9);
  border: 1px solid rgba(213, 161, 53, 0.28);
  border-radius: 999px;
  padding: 0.34rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 780;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.answer-toggle[open] summary {
  color: #3f5725;
  background: rgba(223, 234, 214, 0.84);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.options p {
  flex: 1 1 14rem;
  margin: 0;
  padding: 0.52rem 0.65rem;
  color: #4f4a44;
  background: rgba(247, 244, 238, 0.78);
  border: 1px solid rgba(45, 43, 41, 0.06);
  border-radius: 9px;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.3;
}

.answer {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  color: #3f5725;
  font-size: clamp(0.95rem, 1.08vw, 1.05rem);
  font-weight: 780;
  line-height: 1.35;
  overflow: hidden;
  opacity: 0;
  transition: grid-template-rows 260ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.answer > span {
  min-height: 0;
  overflow: hidden;
  display: block;
  background: rgba(223, 234, 214, 0.88);
  border-radius: 10px;
  padding: 0 0.85rem;
  transition: padding 220ms ease;
}

.answer > span::before {
  content: "";
  min-height: 0;
}

.answer-toggle[open] .answer {
  grid-template-rows: 1fr;
  margin-top: 0.7rem;
  opacity: 1;
}

.answer-toggle[open] .answer > span {
  padding: 0.7rem 0.85rem;
}

.open-question {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(220, 235, 244, 0.76), rgba(255, 255, 255, 0.82));
  border-color: rgba(91, 135, 162, 0.24);
}

.open-question h3 {
  color: #4d7389;
}

.open-question p {
  color: #4f4a44;
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  line-height: 1.42;
}

.closing-layout {
  text-align: left;
}

.final-line {
  max-width: 62rem;
  color: var(--gold);
  font-size: clamp(1.55rem, 2.6vw, 2.65rem);
  font-weight: 820;
  line-height: 1.14;
}

.notes {
  display: none;
  position: absolute;
  right: clamp(1.2rem, 3vw, 3rem);
  bottom: clamp(5.5rem, 7vw, 7rem);
  z-index: 6;
  width: min(30rem, calc(100vw - 2rem));
  color: var(--ink);
  background: #fff9eb;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--shadow);
  font-weight: 650;
  line-height: 1.45;
}

body.show-notes .slide.active .notes {
  display: block;
}

.controls {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(-50%);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(213, 161, 53, 0.3);
  border-radius: 10px;
  padding: 0.42rem;
  box-shadow: 0 12px 36px rgba(86, 66, 28, 0.14);
  backdrop-filter: blur(14px);
}

.controls button {
  min-width: 2.55rem;
  min-height: 2.25rem;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: rgba(247, 234, 208, 0.62);
  padding: 0 0.75rem;
  font-weight: 780;
  cursor: pointer;
}

.controls button:hover {
  background: rgba(240, 209, 132, 0.82);
}

.status {
  display: grid;
  min-width: 10.5rem;
  gap: 0.1rem;
  padding: 0 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

#slideIndex {
  color: var(--ink);
}

.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  height: 0.32rem;
  background: rgba(213, 161, 53, 0.16);
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #b98018, var(--gold-2));
  transition: width 220ms ease;
}

.timer,
.help {
  position: fixed;
  z-index: 10;
  color: var(--muted);
  font-weight: 780;
}

.timer {
  top: 1.25rem;
  right: 1.5rem;
  color: #8d6518;
  font-size: 1rem;
}

.help {
  left: 1.5rem;
  bottom: 1.35rem;
  font-size: 0.76rem;
}

kbd {
  border: 1px solid rgba(213, 161, 53, 0.34);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.64);
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .deck {
    height: auto;
    min-height: 100vh;
  }

  .slide {
    position: relative;
    min-height: 100vh;
    display: none;
    padding: 4.5rem 1rem 6.5rem;
  }

  .slide.active {
    display: grid;
  }

  .slide-card {
    width: 100%;
    min-height: calc(100vh - 9rem);
    padding: 1.35rem;
  }

  .cover-layout,
  .two-col,
  .spark-list.two,
  .soft-grid.four,
  .soft-grid.three,
  .soft-grid.two,
  .metrics,
  .timeline,
  .activity-grid,
  .quiz-card .quiz-list {
    grid-template-columns: 1fr;
  }

  .gold-rule,
  .people-scene {
    display: none;
  }

  h1,
  .names {
    text-align: left;
  }

  .cover-copy {
    justify-items: start;
  }

  .help {
    display: none;
  }

  .controls {
    width: calc(100% - 1rem);
    justify-content: center;
  }

  .controls button {
    min-width: 2.1rem;
    padding: 0 0.5rem;
  }

  .status {
    min-width: 7.6rem;
  }
}
