* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Georgia', serif;
  background: #0d0d0d;
  color: #f0ece4;
  /* 100dvh accounts for iOS Safari toolbar; -webkit-fill-available is the fallback */
  min-height: -webkit-fill-available;
  height: 100dvh;
  overflow: hidden;
}

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

.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  /* clamp(min, preferred, max): shrinks gracefully on narrow screens */
  padding: clamp(40px, 6vh, 60px) clamp(20px, 7vw, 80px) clamp(72px, 10vh, 96px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* allow long slides to scroll rather than clip */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.slide.active {
  display: flex;
}

/* ─── TITLE SLIDE ─── */
.slide-title {
  background: #0d0d0d;
  align-items: center;
  text-align: center;
}

.slide-title .club-name {
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.7rem, 2.2vw, 1rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f7931a;
  margin-bottom: clamp(20px, 4vh, 32px);
}

.slide-title h1 {
  font-size: clamp(2rem, 6.5vw, 3.8rem);
  font-weight: normal;
  line-height: 1.1;
  color: #f0ece4;
  margin-bottom: clamp(12px, 2.5vh, 20px);
}

.slide-title h1 em {
  font-style: italic;
  color: #f7931a;
}

.slide-title .author {
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  color: #a09880;
  letter-spacing: 0.1em;
}

.slide-title .divider {
  width: 80px;
  height: 3px;
  background: #f7931a;
  margin: clamp(18px, 3.5vh, 28px) auto;
}

/* ─── DISCUSSION SLIDES ─── */
.slide-discussion {
  background: #111111;
  justify-content: flex-start;
  padding-top: clamp(52px, 8vh, 72px);
}

.slide-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f7931a;
  margin-bottom: clamp(20px, 3.5vh, 36px);
  flex-shrink: 0;
}

.slide-discussion h2 {
  font-size: clamp(1.05rem, 3vw, 1.6rem);
  font-weight: normal;
  color: #f7931a;
  margin-bottom: clamp(14px, 2.5vh, 22px);
  line-height: 1.3;
  flex-shrink: 0;
}

.slide-discussion p {
  font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  line-height: 1.75;
  color: #c8c0b0;
  max-width: min(820px, 100%);
  margin-bottom: clamp(12px, 2vh, 20px);
}

.slide-discussion p strong {
  color: #f0ece4;
  font-weight: normal;
}

.discussion-question {
  background: rgba(247, 147, 26, 0.08);
  border-left: 3px solid #f7931a;
  padding: clamp(12px, 2vh, 18px) clamp(14px, 3vw, 24px);
  margin-top: 8px;
  max-width: min(820px, 100%);
  border-radius: 0 4px 4px 0;
  flex-shrink: 0;
}

.discussion-question p {
  font-size: clamp(0.875rem, 2.1vw, 1.1rem);
  color: #f0ece4;
  margin: 0;
  font-style: italic;
}

/* ─── SECTION HEADER ─── */
.slide-section {
  background: #0d0d0d;
  align-items: center;
  text-align: center;
}

.slide-section h2 {
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  font-weight: normal;
  color: #f7931a;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.slide-section p {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  color: #a09880;
  font-style: italic;
  max-width: min(640px, 100%);
}

.slide-section p.bio {
  color: #c8c0b0;
  font-style: normal;
  line-height: 1.7;
}

.slide-section .divider {
  width: 60px;
  height: 3px;
  background: #f7931a;
  margin: clamp(16px, 3vh, 24px) auto;
}

/* ─── TRIVIA SLIDES ─── */
.slide-trivia {
  background: #111111;
  justify-content: flex-start;
  padding-top: clamp(52px, 8vh, 72px);
}

.trivia-number {
  font-family: 'Arial', sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: rgba(247, 147, 26, 0.12);
  position: absolute;
  top: clamp(24px, 4vh, 40px);
  right: clamp(20px, 5vw, 80px);
  line-height: 1;
}

.slide-trivia h2 {
  font-size: clamp(1.05rem, 3vw, 1.9rem);
  font-weight: normal;
  color: #f0ece4;
  max-width: min(750px, 100%);
  line-height: 1.45;
  margin-bottom: clamp(24px, 4vh, 48px);
  flex-shrink: 0;
}

.answer-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: clamp(14px, 2.5vh, 24px) clamp(16px, 3.5vw, 32px);
  max-width: min(600px, 100%);
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.answer-box:hover {
  border-color: #f7931a;
}

/* Larger tap target on touch devices */
@media (hover: none) {
  .answer-box:active {
    border-color: #f7931a;
    background: #1f1f1f;
  }
}

.answer-box .answer-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f7931a;
  margin-bottom: 10px;
}

.answer-box .answer-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #f0ece4;
  opacity: 0;
  transition: opacity 0.35s ease;
  line-height: 1.5;
}

.answer-box .answer-text.revealed {
  opacity: 1;
}

.answer-box .answer-hint {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  color: #666;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.answer-box .answer-hint.revealed {
  opacity: 1;
}

.answer-box .click-prompt {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: #555;
  font-style: italic;
  transition: opacity 0.2s ease;
}

.answer-box.revealed-box .click-prompt {
  display: none;
}

/* ─── NEXT BOOK SLIDE ─── */
.slide-next {
  background: #0d0d0d;
  align-items: center;
  text-align: center;
}

.slide-next h2 {
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f7931a;
  margin-bottom: clamp(16px, 3vh, 24px);
}

.slide-next h1 {
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  font-weight: normal;
  color: #f0ece4;
  margin-bottom: 16px;
}

.slide-next .divider {
  width: 60px;
  height: 3px;
  background: #f7931a;
  margin: clamp(16px, 3vh, 24px) auto;
}

/* ─── OVERVIEW LIST (used in decks with summary/breakdown slides) ─── */
.overview-list {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 18px);
  max-width: min(820px, 100%);
  margin-top: 4px;
  flex-shrink: 0;
}

.overview-item {
  display: flex;
  gap: clamp(12px, 2.5vw, 24px);
  align-items: baseline;
}

.overview-item .ov-label {
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7931a;
  min-width: clamp(72px, 11vw, 110px);
  flex-shrink: 0;
  padding-top: 2px;
}

.overview-item .ov-desc {
  font-size: clamp(0.88rem, 2vw, 1.08rem);
  line-height: 1.6;
  color: #c8c0b0;
}

.overview-item .ov-desc strong {
  color: #f0ece4;
  font-weight: normal;
}

.overview-item .ov-desc em {
  color: #a09880;
  font-style: italic;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  bottom: clamp(16px, 3vh, 32px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 100;
  user-select: none;
}

.nav button {
  background: rgba(247, 147, 26, 0.1);
  border: 1px solid rgba(247, 147, 26, 0.3);
  color: #f7931a;
  width: clamp(48px, 8vw, 56px);
  height: clamp(48px, 7vh, 56px);
  border-radius: 8px;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.nav button:hover {
  background: rgba(247, 147, 26, 0.25);
  border-color: #f7931a;
}

.nav button:active {
  background: rgba(247, 147, 26, 0.35);
}

.nav button:disabled {
  opacity: 0.2;
  cursor: default;
}

/* progress bar hidden — slide counter already shows this */
.progress { display: none; }

/* ─── SLIDE COUNT ─── */
.slide-counter {
  position: fixed;
  top: clamp(12px, 2.5vh, 28px);
  right: clamp(16px, 4vw, 48px);
  font-family: 'Arial', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #444;
  user-select: none;
}

/* Orange bar top */
.top-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: #f7931a;
  z-index: 50;
}

/* ─── BACK NAV ─── */
.back-nav {
  position: fixed;
  top: clamp(10px, 2vh, 20px);
  left: clamp(12px, 3vw, 24px);
  z-index: 100;
  user-select: none;
}

.back-nav a {
  font-family: 'Arial', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #444;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.back-nav a:hover {
  color: #f7931a;
}

/* ─── SWIPE HINT (mobile only, slide 1) ─── */
.swipe-hint {
  position: fixed;
  bottom: clamp(72px, 11vh, 96px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Arial', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #333;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease;
  user-select: none;
}

@media (hover: hover) {
  /* hide swipe hint on non-touch devices */
  .swipe-hint { display: none; }
}
