body[data-view="deck"] {
  --explore-bg: #eeeae1;
  --explore-ink: #292b24;
  --explore-muted: #66685d;
  --explore-line: #cecec0;
  --explore-accent: #c4ee62;
  --explore-panel: #fcfaf3;
  background-color: var(--explore-bg);
}

body[data-view="deck"] .explore-intro {
  display: none;
}

.deck-view {
  color: var(--explore-ink);
  padding: clamp(24px, 4vw, 60px) 0 68px;
}

.deck-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(340px, 1.3fr);
  align-items: center;
  gap: clamp(32px, 7vw, 120px);
  max-width: 1160px;
  margin: 0 auto;
}

.deck-intro {
  align-self: center;
}
.deck-eyebrow,
.deck-meta,
.deck-session-heading,
.deck-art-label,
.deck-turn-note {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 750;
  letter-spacing: 0.13em;
}
.deck-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
}
.deck-mark {
  font-size: 28px;
  line-height: 1;
}
.deck-heading {
  font-size: clamp(32px, 3.5vw, 49px);
  line-height: 1.07;
  letter-spacing: -0.055em;
  font-weight: 750;
  margin: 0 0 20px;
}
.deck-heading em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.deck-description {
  max-width: 290px;
  color: var(--explore-muted);
  line-height: 1.75;
  font-size: 14px;
  margin: 0 0 32px;
}
.deck-session {
  max-width: 290px;
  margin: 0 0 24px;
}
.deck-session-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.deck-count {
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.deck-progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  margin: 11px 0 9px;
  background: #d5d6c9;
}
.deck-progress::-webkit-progress-bar {
  background: #d5d6c9;
}
.deck-progress::-webkit-progress-value {
  background: #59653b;
}
.deck-progress::-moz-progress-bar {
  background: #59653b;
}
.deck-remaining {
  color: var(--explore-muted);
  font-size: 11px;
  margin: 0;
  line-height: 1.6;
}
.deck-filters {
  display: grid;
  gap: 2px;
  margin: 0 0 16px;
}
.deck-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
  margin: 0;
}
/* The card's thumbs: under its actions, centred. */
.deck-vote {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.deck-vote[hidden] {
  display: none;
}
.deck-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #536626;
  margin: 0;
  cursor: pointer;
}
.deck-hint {
  color: var(--explore-muted);
  font-size: 10px;
  margin: 26px 0 0;
  line-height: 1.6;
}
.deck-hint kbd {
  font: inherit;
  background: #f8f6f0;
  border: 1px solid #d2d3c7;
  border-radius: 4px;
  padding: 1px 5px;
}
.deck-stage {
  min-width: 0;
  padding: 12px 10px 0;
}
.deck-stack {
  position: relative;
  isolation: isolate;
  margin: 0 0 22px;
}
.deck-stack::before,
.deck-stack::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px;
  border-radius: 18px;
  border: 1px solid #bbbfb1;
}
.deck-stack::before {
  background: #c4d6a1;
  transform: rotate(-3.3deg) translate(-3px, 3px);
}
.deck-stack::after {
  background: #dddacb;
  transform: rotate(2.2deg) translate(4px, 7px);
  z-index: -2;
}
.deck-card {
  overflow: hidden;
  border: 1px solid #babdae;
  border-radius: 16px;
  background: var(--explore-panel);
  box-shadow: 0 10px 26px #393d2520;
  touch-action: pan-y;
}
.deck-card--selected {
  outline: 3px solid #657e36;
  outline-offset: 4px;
}
.deck-art {
  position: relative;
  padding: 11px 11px 0;
}
.deck-art .deck-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: #dce3c8;
}
.deck-art .deck-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deck-art-label {
  position: absolute;
  inset-inline-start: 23px;
  top: 23px;
  background: #fafbf1ed;
  border-radius: 30px;
  padding: 5px 9px;
  color: #34372b;
  font-size: 8px;
  box-shadow: 0 1px 4px #1112;
}
.deck-card-copy {
  padding: 24px 28px 27px;
}
.deck-meta {
  color: #636855;
  margin: 0 0 9px;
  font-size: 9px;
}
.deck-title {
  font-size: clamp(25px, 2.9vw, 39px);
  line-height: 1.09;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.deck-tagline {
  color: var(--explore-muted);
  line-height: 1.65;
  margin: 0;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Play takes the room the others leave. A row with no room for every button
   (a narrow phone, a longer language) wraps instead of pushing past the card:
   the others, kept together, go under Play. */
.deck-actions,
.deck-actions__more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.deck-actions > .deck-button--play {
  flex: 1 1 auto;
}
.deck-actions__more {
  min-width: 0;
}
.deck-button[hidden] {
  display: none;
}
.deck-button--friends {
  text-decoration: none;
}
.deck-actions[hidden] {
  display: none;
}
.deck-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #bfc2b3;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  color: var(--explore-ink);
  background: #f8f7f0;
  transition:
    background 120ms,
    border-color 120ms,
    transform 120ms;
}
.deck-button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.deck-button:hover:not(:disabled) {
  background: #e3e9d3;
  border-color: #86936d;
}
.deck-button:active:not(:disabled) {
  transform: translateY(1px);
}
.deck-button--play {
  background: #c5e978;
  border-color: #a4c65c;
}
.deck-button--play:hover:not(:disabled) {
  background: #b9de6b;
}
.deck-button--favourite {
  width: 46px;
  padding: 10px;
}
.deck-button--favourite[aria-pressed="true"] {
  background: #e9efce;
  color: #546b20;
  border-color: #b4c184;
}
.deck-button--redeal {
  background: transparent;
  border-color: #b3b8a5;
  font-size: 11px;
}
.deck-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.deck-button:focus-visible,
.deck-checkbox:focus-visible,
.deck-card:focus-visible {
  outline: 3px solid #5c7533;
  outline-offset: 4px;
}
.deck-turn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 19px;
}
.deck-button--previous,
.deck-button--skip {
  border: 0;
  padding: 6px 0;
  min-height: 36px;
  background: transparent;
  font-size: 11px;
}
.deck-button--previous:hover:not(:disabled),
.deck-button--skip:hover:not(:disabled) {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.deck-forward {
  transform: rotate(180deg);
}
.deck-turn-note {
  color: #7a7e6d;
  font-size: 8px;
  text-align: center;
}
.deck-empty {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}
.deck-empty-symbol {
  display: block;
  font-size: 67px;
  line-height: 1;
  color: #6d7e42;
  margin-bottom: 24px;
}
.deck-empty .deck-eyebrow {
  margin: 0 0 12px;
}
.deck-empty h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.deck-empty p:not(.deck-eyebrow) {
  color: var(--explore-muted);
  line-height: 1.7;
  font-size: 13px;
  max-width: 320px;
  margin: 18px 0 24px;
}
.deck-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .deck-view {
    padding-top: 20px;
  }
  .deck-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 530px;
  }
  .deck-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 18px;
  }
  .deck-eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 14px;
  }
  .deck-heading {
    font-size: 32px;
    margin-bottom: 14px;
  }
  .deck-description,
  .deck-hint {
    display: none;
  }
  .deck-session {
    grid-column: 2;
    grid-row: 2;
    width: 125px;
    margin: 3px 0 14px;
  }
  .deck-filters {
    margin: 0;
  }
  .deck-button--redeal {
    justify-self: end;
    min-height: 34px;
    padding: 7px 10px;
  }
  .deck-stage {
    padding: 8px 6px 0;
  }
  .deck-art {
    padding: 8px 8px 0;
  }
  .deck-art-label {
    inset-inline-start: 18px;
    top: 18px;
  }
  .deck-card-copy {
    padding: 21px 22px 24px;
  }
  .deck-title {
    font-size: 31px;
  }
  .deck-empty {
    min-height: 350px;
    padding: 30px 22px;
  }
}

@media (max-width: 380px) {
  .deck-heading {
    font-size: 27px;
  }
  .deck-session {
    width: 110px;
  }
  .deck-intro {
    column-gap: 8px;
  }
  .deck-turn-note {
    display: none;
  }
  .deck-card-copy {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck-button {
    transition: none;
  }
}
