/* Slide viewer for the PDF tab — styled to match the giveaway page. */
.deck { width: 100%; margin-top: 6px; }

.deck-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.deck-meta { font: 600 11px/1.3 var(--font); color: #666; letter-spacing: .02em; }
.deck-meta span { font-weight: 500; color: #888; }
.deck-actions { display: flex; gap: 8px; }

.deck-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border-radius: 4px;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
  font: 700 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, transform .15s;
}
.deck-btn:hover { background: var(--ink); color: #fff; }
.deck-btn:active { transform: scale(.97); }
.deck-btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.deck-btn-primary:hover { background: #c81a16; border-color: #c81a16; color: #fff; }

.deck-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: #0b0a0f; border: 1px solid #e3e3e3;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08), 0 24px 60px -30px rgba(0, 0, 0, .35);
  outline: none; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none;
}
.deck-stage:focus-visible { box-shadow: 0 0 0 3px rgba(227, 34, 30, .5); }
.deck-slide { display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }

.deck-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(17, 17, 17, .78); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .15s, background .15s;
}
.deck-nav:hover { background: var(--red); }
.deck-nav:disabled { opacity: 0; pointer-events: none; }
.deck-prev { left: 12px; }
.deck-next { right: 12px; }

.deck-count {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 3px;
  background: rgba(17, 17, 17, .78); color: #fff;
  font: 700 11px/1 var(--font); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.deck-close {
  display: none; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: rgba(17, 17, 17, .78); color: #fff;
  font: 600 16px/1 var(--font); cursor: pointer;
}

/* native fullscreen + overlay fallback */
.deck-stage:fullscreen { border: 0; border-radius: 0; background: #000; }
.deck-stage:-webkit-full-screen { border: 0; border-radius: 0; background: #000; width: 100%; height: 100%; }
.deck-stage:fullscreen .deck-close, .deck-stage.is-max .deck-close { display: grid; place-items: center; }
.deck-stage.is-max {
  position: fixed; inset: 0; z-index: 200; aspect-ratio: auto; border: 0; border-radius: 0; background: #000;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.deck-thumbs {
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto;
  padding: 3px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.deck-thumb {
  position: relative; flex: 0 0 128px; aspect-ratio: 16 / 9; padding: 0;
  border-radius: 4px; overflow: hidden; border: 2px solid transparent; background: #eee;
  cursor: pointer; opacity: .6; scroll-snap-align: center; transition: opacity .15s, border-color .15s;
}
.deck-thumb:hover { opacity: .9; }
.deck-thumb.is-active { opacity: 1; border-color: var(--red); }
.deck-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-thumb span {
  position: absolute; left: 4px; bottom: 4px; min-width: 18px; padding: 3px 4px; border-radius: 2px;
  background: rgba(17, 17, 17, .8); color: #fff; font: 700 9px/1 var(--font); text-align: center;
}
.deck-thumb.is-active span { background: var(--red); }

@media (max-width: 767px) {
  .deck-toolbar { flex-direction: column; align-items: stretch; }
  .deck-actions .deck-btn { flex: 1; }
  .deck-stage { border-radius: 6px; }
  .deck-nav { width: 34px; height: 34px; }
  .deck-nav svg { width: 18px; height: 18px; }
  .deck-prev { left: 6px; }
  .deck-next { right: 6px; }
  .deck-count { right: 6px; bottom: 6px; font-size: 10px; }
  .deck-thumb { flex-basis: 92px; }
}
