@font-face {
  font-family: DM;
  src: url("assets/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 900;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  background: #141413;
  color: #e9e7e2;
  font-family: DM, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.deck-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  font-size: 13px;
}
.deck-back,
.deck-button {
  color: #e9e7e2;
  text-decoration: none;
  border: 1px solid #3a3a36;
  border-radius: 30px;
  padding: 8px 14px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.deck-back:hover,
.deck-button:hover {
  border-color: #8a8a82;
}
.deck-title {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deck-title span {
  font-weight: 400;
  color: #9d9d95;
}
.deck-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.deck-count {
  min-width: 64px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #9d9d95;
  margin-right: 8px;
}
.deck-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 0;
}
.deck-slide {
  position: relative;
  margin: 0 auto;
  width: min(100%, calc((100vh - 120px) * 16 / 9));
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  touch-action: pan-y;
}
.deck-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
}
.deck-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #3a3a36;
  background: transparent;
  color: #e9e7e2;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
/* Only where hover is real, so a tapped arrow doesn't stay lit on a phone. */
@media (hover: hover) {
  .deck-nav:hover:not(:disabled) {
    border-color: #8a8a82;
  }
}
.deck-nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.deck-play {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 4px;
  background: rgba(20, 20, 19, 0.25);
  color: #fff;
  font: 600 15px DM, Arial, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.deck-play span {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d11f26;
  font-size: 20px;
  padding-left: 4px;
}
.deck-play:hover {
  background: rgba(20, 20, 19, 0.1);
}
.deck-play[hidden] {
  display: none;
}
.deck-hint {
  margin: 10px 0 14px;
  text-align: center;
  font-size: 12px;
  color: #6f6f68;
}
:focus-visible {
  outline: 2px solid #d11f26;
  outline-offset: 3px;
}
.deck-trailer {
  padding: 0;
  border: 0;
  background: #000;
  width: min(92vw, 1400px);
  max-height: 92vh;
}
.deck-trailer::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
.deck-trailer video {
  display: block;
  width: 100%;
  max-height: 92vh;
}
.deck-trailer iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 92vh;
  border: 0;
}
.deck-trailer [hidden] {
  display: none;
}
.deck-close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 20, 19, 0.7);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
:fullscreen .deck-bar,
:fullscreen .deck-hint {
  display: none;
}
:fullscreen .deck-slide {
  width: min(100%, calc(100vh * 16 / 9));
  box-shadow: none;
}
:fullscreen .deck-stage {
  padding: 0;
}
@media (max-width: 760px) {
  .deck-title span,
  .deck-hint,
  #deck-fullscreen {
    display: none;
  }
  .deck-bar {
    padding: 10px 12px;
  }
  /* The arrows sit together under the slide. */
  .deck-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "slide slide"
      "prev next";
    align-content: center;
    gap: 16px 24px;
    padding: 8px;
  }
  .deck-slide {
    grid-area: slide;
    width: 100%;
  }
  .deck-prev {
    grid-area: prev;
    justify-self: end;
  }
  .deck-next {
    grid-area: next;
    justify-self: start;
  }
  /* The Code Is Law frame is small on a phone: keep the label on one line. */
  .deck-play {
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .deck-play span {
    width: 44px;
    height: 44px;
    font-size: 15px;
    padding-left: 3px;
  }
}
