:root {
  --deck-red: #f04438;
  --deck-ink: #000;
  --deck-line: #2b2422;
  --deck-cream: #f2e9dd;
}

html { scroll-behavior: smooth; }

body.deck-page {
  margin: 0;
  background: var(--deck-ink);
  color: #fff;
  overflow-x: hidden;
}

.deck-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  padding: 0 clamp(18px, 3vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(0, 0, 0, .84);
  backdrop-filter: blur(18px);
}

.deck-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.deck-mark { width: 28px; height: 28px; }
.deck-wordmark { width: 112px; height: auto; }

.deck-status {
  color: #888;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.deck-status span { color: #fff; }

.deck-download {
  justify-self: end;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--deck-red);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.deck-download:hover { background: rgba(240, 68, 56, .1); color: #fff; transform: translateY(-1px); }

.deck-stream {
  padding: 88px clamp(16px, 3vw, 48px) 120px;
}

.deck-slide {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  scroll-margin-top: 82px;
}

.deck-frame {
  width: min(1320px, calc(100vw - 80px));
  aspect-ratio: 16 / 9;
  border: 1px solid var(--deck-line);
  border-radius: 12px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .5);
}

.deck-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deck-controls {
  position: fixed;
  z-index: 20;
  right: clamp(18px, 3vw, 48px);
  bottom: 22px;
  min-height: 46px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(8, 8, 8, .88);
  backdrop-filter: blur(16px);
}

.deck-controls button,
.deck-controls a {
  height: 34px;
  min-width: 36px;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.deck-controls a { padding: 0 12px; color: #aaa; font-size: 12px; font-weight: 750; }
.deck-controls button:hover,
.deck-controls a:hover { background: #201b19; color: #fff; }
.deck-controls button:disabled { opacity: .3; cursor: default; }

@media (max-width: 700px) {
  .deck-nav {
    height: 64px;
    padding: 0 14px;
    grid-template-columns: 1fr auto;
  }

  .deck-wordmark { width: 92px; }
  .deck-status { display: none; }
  .deck-download { min-height: 38px; padding: 0 13px; font-size: 12px; }
  .deck-stream { padding: 82px 12px 100px; }
  .deck-slide { min-height: auto; padding: 18px 0 44px; scroll-margin-top: 70px; }
  .deck-frame { width: 100%; border-radius: 8px; }
  .deck-controls { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .deck-download { transition: none; }
}
