.demo-page {
  background: #f1f5f7;
  --deck-line: #d6dde1;
  --deck-dim: #475463;
  --deck-red: #b90022;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.deck {
  width: min(1600px, calc(100% - 60px));
  min-height: 100svh;
  margin-inline: auto;
  padding: 22px 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.deck:fullscreen {
  width: 100%;
  padding: 24px 4vw 15px;
  overflow: auto;
  background: #f1f5f7;
}
.deck-header, .deck-footer, .deck-controls, .deck-transport, .deck-options {
  display: flex;
  align-items: center;
}
.deck-header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.deck-brand {
  display: flex;
  align-items: center;
  gap: 17px;
  text-decoration: none;
}
.deck-brand > span {
  font-family: Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.32rem);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: 1;
}
.deck-brand small {
  border-inline-start: 1px solid #b7c2ca;
  padding-inline-start: 17px;
  color: var(--deck-dim);
  line-height: 1.3;
  font-size: .85rem;
}
.deck-modes {
  justify-content: flex-end;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--deck-line);
  border-radius: 6px;
  background: #fff;
}
.deck-modes a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  border-radius: 3px;
  padding: 7px 12px;
  font-weight: 750;
  font-size: .85rem;
  white-space: nowrap;
}
.deck-modes a[aria-current] {
  color: #fff;
  background: var(--deck-red);
}
.deck-modes small {
  font-size: .72rem;
  font-weight: 550;
}
.deck-player {
  background: #fff;
  border: 1px solid var(--deck-line);
  border-top: 4px solid var(--case-red);
  border-radius: 7px;
  box-shadow: 0 18px 42px #1e293b13;
}
.deck-slide {
  padding: clamp(22px, 4.1vw, 69px);
  border-bottom: 1px solid var(--deck-line);
}
.deck[data-ready] .deck-slide { border-bottom: 0; }
.deck-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(25px, 4.4vw, 76px);
  min-height: clamp(300px, 60svh - 130px, 480px);
}
.deck-copy, .deck-panel, .deck-photo { min-width: 0; }
.deck[data-ready] .deck-slide:not([hidden]) .deck-layout {
  animation: deck-appear .3s ease-out both;
}
@keyframes deck-appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.deck-kicker {
  margin: 0 0 .8em;
  color: var(--deck-red);
  font-size: clamp(.85rem, 1.3vw, 1.12rem);
  font-weight: 800;
}
.deck-slide h2 {
  font-size: clamp(2rem, 4.3vw, 4.95rem);
  letter-spacing: -.055em;
  line-height: 1.13;
  margin: 0;
  text-wrap: balance;
}
.deck-cover h2 { font-size: clamp(2.5rem, 4.85vw, 5.35rem); }
.deck-desc {
  margin: .85em 0 0;
  color: var(--deck-dim);
  font-size: clamp(1rem, 1.65vw, 1.55rem);
  line-height: 1.52;
}
.deck-photo { margin: 0; }
.deck-photo > div {
  background: #e5eff6;
  border-radius: 4px;
  overflow: hidden;
}
.deck-photo img {
  width: 100%;
  max-height: min(48svh, 520px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.deck-photo figcaption {
  margin-top: 7px;
  text-align: right;
  color: var(--deck-dim);
  font-size: .8rem;
}
.deck-tags {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.deck-tags li {
  padding: 5px 10px;
  border: 1px solid #e6ced3;
  border-radius: 3px;
  color: #7d1530;
  background: #fff6f7;
  font-weight: 750;
  font-size: clamp(.8rem, 1.1vw, 1rem);
}
.deck-steps {
  display: grid;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  gap: 0;
}
.deck-steps li {
  display: grid;
  grid-template-columns: minmax(3.5em, auto) 1fr;
  align-items: baseline;
  gap: 11px;
  padding: 7px 0;
  border-bottom: 1px solid var(--deck-line);
  line-height: 1.38;
}
.deck-steps li:last-child { border-bottom: 0; }
.deck-steps strong { font-weight: 800; }
.deck-steps span { color: var(--deck-dim); }
.deck-panel {
  border: 1px solid #cddce5;
  border-radius: 5px;
  background: #edf5fa;
  padding: clamp(17px, 2.6vw, 39px);
  font-size: clamp(.95rem, 1.35vw, 1.2rem);
}
.deck-panel-label {
  margin: 0 0 .65em;
  font-weight: 800;
  color: #3d4e5e;
  font-size: .85em;
}
.deck-panel .deck-steps { margin-top: 3px; }
.deck-quote {
  margin: .25em 0 .7em;
  font-size: clamp(1.1rem, 2vw, 1.9rem);
  line-height: 1.35;
  font-weight: 750;
}
.deck-evidence { margin: 0; }
.deck-evidence > div {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 12px;
  border-top: 1px solid #cfdae2;
  padding: .45em 0;
  align-items: baseline;
}
.deck-evidence dt { font-weight: 800; }
.deck-evidence dd { margin: 0; }
.deck-panel .deck-box-title {
  font-size: clamp(1.5rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.055em;
  margin: .35em 0;
}
.timeline {
  padding: 9px;
  background: #fff;
  border: 1px solid #d3e0e8;
  border-radius: 4px;
}
.timeline > div {
  display: grid;
  grid-template-columns: 2.9em repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
  margin: 4px 0;
  font-size: .82em;
}
.timeline b { padding-inline-start: 4px; }
.timeline i {
  font-style: normal;
  font-weight: 680;
  text-align: center;
  padding: .46em .15em;
  border-radius: 3px;
  background: #dbeefa;
}
.timeline div:nth-child(2) i { background: #f9e0e5; }
.timeline div:nth-child(3) i { background: #dbeee7; }
.timeline div:nth-child(2) i:first-of-type,
.timeline div:nth-child(3) i:last-of-type { grid-column: span 2; }
.deck-note { margin: .8em 0 0; }
.proof-group + .proof-group { margin-top: 11px; border-top: 1px solid #ccdae4; padding-top: 11px; }
.proof-group strong { color: #12533f; }
.proof-group.pending strong { color: #78391c; }
.proof-group p { margin: .35em 0 0; }
.deck-prompt {
  margin: .65em 0 1em;
  overflow-wrap: anywhere;
  line-height: 1.56;
}
.copy-status { display: inline-block; margin-inline-start: 8px; font-size: .83em; }
.deck-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
  margin-top: 17px;
  font-weight: 750;
  color: var(--deck-red);
}
.deck-action, .deck-button {
  font: inherit;
  font-size: .88rem;
  font-weight: 720;
  cursor: pointer;
  padding: 7px 11px;
  min-height: 38px;
  border: 1px solid #aab8c3;
  border-radius: 4px;
  background: white;
  color: #172534;
}
.deck-button:hover { background: #e8f0f5; }
.deck-button:disabled { opacity: .54; cursor: default; }
.deck-action, .deck-button.is-primary {
  color: #fff;
  background: var(--deck-red);
  border-color: var(--deck-red);
  text-decoration: none;
}
.deck-action:not([hidden]) { display: inline-block; margin-top: 13px; }
.deck-panel .deck-action { margin: 0; }
.deck-action:hover, .deck-button.is-primary:hover { background: #94001b; }
.deck-arrow { font-size: 1.12rem; padding-block: 4px; }
.deck-controls {
  padding: 10px clamp(10px, 2vw, 24px);
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #f0f5f8;
}
.deck-transport, .deck-options { flex-wrap: wrap; gap: 6px; }
.chapter-label select { max-width: 190px; }
.deck-count {
  display: flex;
  gap: 8px;
  font-size: .85rem;
  color: var(--deck-dim);
  font-variant-numeric: tabular-nums;
}
.deck-caption {
  margin: 0;
  padding: 10px clamp(14px, 2vw, 24px);
  min-height: 2.95em;
  background: #172634;
  color: #fff;
  text-align: center;
  font-weight: 650;
  font-size: clamp(.95rem, 1.55vw, 1.34rem);
  line-height: 1.42;
}
.deck-progress { height: 4px; background: #dce6ec; }
.deck-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--case-red);
  transform: scaleX(0);
  transform-origin: left;
}
.deck-transcript {
  border-inline-start: 3px solid #c9d8e2;
  padding-inline-start: 13px;
  margin-top: 17px;
  color: var(--deck-dim);
}
.deck-transcript p { margin: .3em 0; }
.deck[data-ready] .deck-transcript { display: none; }
.deck-footer {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 8px;
  font-size: .82rem;
  color: var(--deck-dim);
}
.deck-footer > div { display: flex; flex-wrap: wrap; gap: 5px 15px; }
.deck-qr-link { text-decoration: none; }
.deck-qr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 750;
}
.deck-qr img { width: clamp(57px, 5.45vw, 96px); height: auto; }
@media (max-height: 790px) and (min-width: 761px) {
  .deck { padding-top: 13px; }
  .deck-header { margin-bottom: 11px; }
  .deck-slide { padding-block: clamp(18px, 3.8vh, 32px); }
  .deck-slide h2 { font-size: clamp(2rem, 4.1vw, 3.75rem); }
  .deck-photo img { max-height: 44svh; }
}
@media (max-width: 760px) {
  .deck { width: calc(100% - 22px); padding-top: 14px; justify-content: flex-start; }
  .deck-header { align-items: flex-start; flex-direction: column; margin-bottom: 11px; }
  .deck-brand { gap: 10px; }
  .deck-brand small { padding-inline-start: 10px; font-size: .74rem; }
  .deck[data-ready] .deck-player {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    max-height: calc(100svh - 152px);
  }
  .deck[data-ready] .deck-stage { overflow-y: auto; }
  .deck-layout { grid-template-columns: 1fr; gap: 15px; min-height: 0; }
  .deck-slide { padding: 18px 15px; }
  .deck-slide h2 { font-size: clamp(1.85rem, 7vw, 3rem); }
  .deck-photo img { aspect-ratio: 2 / 1; max-height: 230px; }
  .deck-photo figcaption { font-size: .72rem; }
  .deck-desc { margin-top: .65em; }
  .deck-tags { margin-top: 11px; }
  .deck-steps li { padding-block: 5px; }
  .deck-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .deck-options { grid-column: 1 / -1; }
  .deck-count { justify-self: end; }
  .chapter-label select { max-width: 145px; }
  .deck:fullscreen { padding-inline: 12px; }
}
@media (max-width: 365px) {
  .deck-brand small { max-width: 11em; }
  .deck-button { padding-inline: 7px; }
  .deck-count { gap: 4px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .deck[data-ready] .deck-slide:not([hidden]) .deck-layout { animation: none; }
}

.booth-slide { padding: 0; }
.booth-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-height: clamp(340px, 58svh, 575px);
}
.booth-slide .deck-copy {
  align-self: center;
  padding: clamp(25px, 3.65vw, 59px);
}
.booth-slide h2 {
  font-size: clamp(2.55rem, 4.45vw, 5rem);
  text-wrap: wrap;
}
.booth-close { background: var(--deck-red); color: white; }
.booth-close .deck-kicker, .booth-close .deck-desc { color: #fff; }
.booth-photo { margin: 0; position: relative; overflow: hidden; background: #e6f0f6; }
.booth-photo > div { position: absolute; inset: 0; }
.booth-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.booth-photo figcaption {
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 4px 8px;
  border-radius: 3px;
  background: #15222de6;
  color: #fff;
  font-size: .78rem;
}
@media (max-width: 760px) {
  .booth-layout { grid-template-columns: 1fr; min-height: 0; }
  .booth-slide .deck-copy {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
  }
  .booth-slide h2 { font-size: clamp(2rem, 8.8vw, 3.35rem); }
  .booth-photo { height: clamp(150px, 28svh, 240px); }
}
