/**
 * TALK CARD 180 v2.1 — THEMELESS 180
 * Two user-facing decks: 120 sequential questions + 60 pick-and-flip images.
 */

/* Opening deck */
.v21-opening-back {
  padding: clamp(22px, 3vw, 34px);
  color: #f8f3e8;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 35px, rgba(255, 255, 255, 0.2) 36px 37px, transparent 38px),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.055) 14px 15px),
    var(--navy);
}

.v21-opening-back--image {
  background:
    radial-gradient(circle at 50% 45%, transparent 0 35px, rgba(255, 255, 255, 0.22) 36px 37px, transparent 38px),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.06) 14px 15px),
    var(--dusty-blue);
}

.opening-card--middle.v21-opening-back {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v21-opening-back span {
  position: static;
  padding: 0;
  color: inherit;
  background: transparent;
}

.v21-opening-back b {
  margin: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 66px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}

/* Two-deck selection */
.deck-select-v21 {
  max-width: 1080px;
  margin-inline: auto;
}

.deck-select-heading {
  max-width: 760px;
  margin: 0 auto clamp(42px, 6vw, 70px);
  text-align: center;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 42px);
}

.mode-card {
  position: relative;
  min-height: 480px;
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 10%, rgba(168, 94, 67, 0.09), transparent 28%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-small);
  cursor: pointer;
  text-align: left;
  transition:
    transform 220ms var(--ease-card),
    box-shadow 220ms var(--ease-card),
    border-color 220ms ease;
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(24, 36, 58, 0.08);
  border-radius: 21px;
  pointer-events: none;
}

.mode-card:hover,
.mode-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-8px) rotate(-0.25deg);
}

.mode-card--images {
  background:
    radial-gradient(circle at 85% 10%, rgba(120, 144, 159, 0.15), transparent 30%),
    var(--card);
}

.mode-card-top,
.mode-card-copy,
.mode-card-action {
  position: relative;
  z-index: 2;
}

.mode-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.mode-card-top strong {
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.mode-card--images .mode-card-top strong {
  color: var(--dusty-blue);
}

.mode-deck-preview {
  position: relative;
  z-index: 1;
  width: min(82%, 290px);
  aspect-ratio: 7 / 4.8;
  margin: clamp(32px, 5vw, 54px) auto 34px;
  display: block;
}

.mode-deck-preview i {
  position: absolute;
  inset: 0 16%;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 30px, rgba(255, 255, 255, 0.22) 31px 32px, transparent 33px),
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(255, 255, 255, 0.06) 11px 12px),
    var(--navy);
  border: 1px solid rgba(24, 36, 58, 0.2);
  border-radius: 18px;
  box-shadow: var(--shadow-small);
}

.mode-deck-preview--images i {
  background:
    radial-gradient(circle at 50% 45%, transparent 0 30px, rgba(255, 255, 255, 0.23) 31px 32px, transparent 33px),
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(255, 255, 255, 0.065) 11px 12px),
    var(--dusty-blue);
}

.mode-deck-preview i:nth-child(1) {
  transform: translate(-22px, 7px) rotate(-7deg);
}

.mode-deck-preview i:nth-child(2) {
  transform: translate(22px, -4px) rotate(6deg);
}

.mode-deck-preview i:nth-child(3) {
  transform: rotate(-1deg);
}

.mode-card-copy {
  display: grid;
  gap: 10px;
}

.mode-card-copy > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 45px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.mode-card-copy > span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.mode-card-action {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Closed deck intro */
.intro-visual--closed .intro-back-card {
  position: absolute;
  inset: 4% 12%;
  width: 76%;
  height: 92%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fffaf0;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 50px, rgba(255, 255, 255, 0.23) 51px 52px, transparent 53px),
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, 0.06) 16px 17px),
    var(--navy);
  border: 1px solid rgba(24, 36, 58, 0.2);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.intro-visual--closed .intro-back-card--image {
  background:
    radial-gradient(circle at 50% 48%, transparent 0 50px, rgba(255, 255, 255, 0.24) 51px 52px, transparent 53px),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(255, 255, 255, 0.065) 16px 17px),
    var(--dusty-blue);
}

.intro-back-card::after,
.table-card-inner::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.intro-back-top,
.intro-back-bottom {
  position: relative;
  z-index: 1;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.intro-back-mark {
  position: relative;
  z-index: 1;
  align-self: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-style: italic;
  font-weight: 400;
}

/* Shared play header */
.question-play-screen,
.card-table-screen,
.image-reveal-screen {
  max-width: 1080px;
  margin-inline: auto;
}

.play-header {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.play-identity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.play-identity > span {
  width: 28px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--card);
  background: var(--terracotta);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
}

.card-table-screen .play-identity > span,
.image-reveal-screen .play-identity > span {
  background: var(--dusty-blue);
}

.play-identity p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.play-progress {
  justify-self: end;
  margin: 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* Sequential question card */
.question-stage,
.image-reveal-stage {
  perspective: 1400px;
}

.question-paper {
  position: relative;
  min-height: 590px;
  padding: clamp(38px, 7vw, 78px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(168, 94, 67, 0.1), transparent 26%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.question-paper::after,
.image-paper::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(24, 36, 58, 0.09);
  border-radius: calc(var(--radius-card) - 9px);
  pointer-events: none;
}

.question-paper.is-entering {
  animation: question-card-in 520ms var(--ease-card) both;
}

@keyframes question-card-in {
  0% {
    opacity: 0.3;
    transform: translateX(30px) rotateY(-9deg) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateY(0) scale(1);
  }
}

.question-kicker {
  margin: 0;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.19em;
}

.question-paper h3 {
  max-width: 790px;
  margin: 44px auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.45;
  word-break: keep-all;
}

.question-pass {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.question-actions,
.image-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.question-actions > :first-child,
.image-actions > :first-child {
  min-width: 140px;
  justify-self: start;
}

.question-actions > :last-child,
.image-actions > :last-child {
  justify-self: end;
}

.play-finish {
  margin: 18px auto 0;
  display: flex;
  text-decoration: underline;
  text-decoration-color: rgba(78, 88, 103, 0.35);
  text-underline-offset: 6px;
}

/* Image hand */
.table-copy {
  margin: 0 auto 38px;
  text-align: center;
}

.table-copy .eyebrow {
  margin-bottom: 12px;
}

.table-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.24;
  word-break: keep-all;
}

.table-copy > p:last-child {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.card-table-cloth {
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 40%, rgba(255, 255, 255, 0.5), transparent 52%),
    repeating-linear-gradient(92deg, rgba(52, 62, 54, 0.018) 0 1px, transparent 1px 7px),
    #ded6c6;
  border: 1px solid rgba(24, 36, 58, 0.16);
  border-radius: 34px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.66), var(--shadow-card);
}

.card-table {
  width: min(100%, 920px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 22px);
  isolation: isolate;
}

.table-slot {
  position: relative;
  min-width: 0;
  aspect-ratio: 7 / 10;
}

.table-slot--empty::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px dashed rgba(24, 36, 58, 0.1);
  border-radius: 16px;
}

.table-card {
  position: absolute;
  z-index: var(--card-z, 1);
  inset: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: #fffaf0;
  background: transparent;
  border: 0;
  border-radius: clamp(14px, 1.7vw, 22px);
  box-shadow: 0 14px 30px rgba(42, 38, 31, 0.15), 0 2px 7px rgba(42, 38, 31, 0.1);
  cursor: pointer;
  transform: translate(var(--card-x, 0), var(--card-y, 0)) rotate(var(--card-rotate, 0deg));
  transform-origin: 50% 66%;
  transition:
    transform 220ms var(--ease-card),
    box-shadow 220ms var(--ease-card),
    opacity 220ms ease;
}

.table-card:hover,
.table-card:focus-visible {
  z-index: 40;
  box-shadow: 0 25px 44px rgba(42, 38, 31, 0.24), 0 4px 10px rgba(42, 38, 31, 0.12);
  transform: translate(var(--card-x, 0), calc(var(--card-y, 0px) - 10px)) rotate(0deg) scale(1.035);
}

.table-card.is-picking {
  z-index: 100;
  box-shadow: 0 36px 64px rgba(42, 38, 31, 0.28), 0 5px 14px rgba(42, 38, 31, 0.14);
  transform: translate(var(--card-x, 0), calc(var(--card-y, 0px) - 24px)) rotate(0deg) scale(1.14);
}

.card-table.is-selecting .table-card:not(.is-picking) {
  opacity: 0.58;
  transform: translate(var(--card-x, 0), var(--card-y, 0)) rotate(var(--card-rotate, 0deg)) scale(0.975);
}

.table-card-inner {
  position: absolute;
  inset: 0;
  padding: clamp(12px, 1.5vw, 20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, transparent 0 23%, rgba(255, 255, 255, 0.23) 23.5% 24%, transparent 24.5%),
    repeating-linear-gradient(45deg, transparent 0 13px, rgba(255, 255, 255, 0.06) 13px 14px),
    var(--dusty-blue);
  border: 1px solid rgba(24, 36, 58, 0.22);
  border-radius: inherit;
}

.table-card-topline,
.table-card-bottomline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: clamp(6px, 0.7vw, 8px);
  font-weight: 850;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.table-card-motif {
  position: relative;
  width: 32%;
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
}

.table-card-motif::before,
.table-card-motif::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.48);
  transform: translate(-50%, -50%);
}

.table-card-motif::before {
  width: 1px;
  height: 44%;
}

.table-card-motif::after {
  width: 44%;
  height: 1px;
}

.table-card-number {
  position: absolute;
  right: clamp(12px, 1.5vw, 20px);
  bottom: clamp(12px, 1.5vw, 20px);
  color: rgba(255, 255, 255, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 1.3vw, 17px);
  font-style: italic;
}

.table-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.end-conversation {
  text-decoration: underline;
  text-decoration-color: rgba(78, 88, 103, 0.35);
  text-underline-offset: 6px;
}

/* Image-only reveal */
.image-paper {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
}

.image-paper.is-entering {
  animation: picked-card-reveal 620ms var(--ease-card) both;
}

@keyframes picked-card-reveal {
  0% {
    opacity: 0.45;
    transform: translateY(32px) scale(0.78) rotateY(84deg);
  }
  62% {
    opacity: 1;
    transform: translateY(-4px) scale(1.018) rotateY(-2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateY(0deg);
  }
}

.reveal-image-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  margin: 0 auto;
}

.reveal-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
  object-fit: cover;
  background: #e8dfcf;
  border: 1px solid rgba(24, 36, 58, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow-small);
}

.closing-unit {
  margin: -18px 0 26px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.2em;
}

@media (max-width: 768px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 410px;
  }

  .mode-deck-preview {
    width: min(76%, 280px);
    margin-block: 30px;
  }

  .card-table-cloth {
    padding: 28px 20px;
  }

  .card-table {
    gap: 10px;
  }

  .table-card-inner {
    padding: 12px;
  }

  .table-card-number {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 640px) {
  .play-header {
    margin-bottom: 24px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .play-header > .text-button {
    width: 44px;
    padding-inline: 0;
    overflow: hidden;
    font-size: 0;
    white-space: nowrap;
  }

  .play-header > .text-button span {
    font-size: 20px;
  }

  .play-identity {
    min-width: 0;
    justify-self: center;
  }

  .play-identity p {
    max-width: 126px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .play-progress {
    font-size: 13px;
  }

  .question-paper {
    min-height: 510px;
    padding: 38px 22px;
    border-radius: 24px;
  }

  .question-paper h3 {
    margin-block: 34px;
    font-size: clamp(29px, 8.5vw, 41px);
    line-height: 1.48;
  }

  .question-actions,
  .image-actions {
    padding: 8px;
    background: rgba(243, 239, 229, 0.94);
    border: 1px solid var(--line);
    border-radius: 24px;
    backdrop-filter: blur(10px);
  }

  .question-actions .button,
  .image-actions .button {
    min-height: 48px;
    padding: 12px 15px;
  }

  .question-actions > :first-child,
  .image-actions > :first-child {
    min-width: 0;
    justify-self: stretch;
  }

  .question-actions > :last-child,
  .image-actions > :last-child {
    width: 100%;
    justify-self: stretch;
  }

  .table-copy {
    margin-bottom: 28px;
  }

  .table-copy h2 {
    font-size: clamp(29px, 8vw, 39px);
  }

  .card-table-cloth {
    margin-inline: -4px;
    padding: 22px 13px 28px;
    border-radius: 24px;
  }

  .card-table {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 7px;
  }

  .table-card {
    border-radius: 14px;
  }

  .table-card-inner {
    padding: 10px;
  }

  .table-card-inner::after {
    inset: 6px;
  }

  .table-card-topline {
    font-size: 5.5px;
    letter-spacing: 0.07em;
  }

  .table-card-topline > span:first-child {
    max-width: 60px;
    overflow: hidden;
  }

  .table-card-bottomline {
    font-size: 5.5px;
    letter-spacing: 0.08em;
  }

  .table-card-number {
    right: 10px;
    bottom: 9px;
    font-size: 12px;
  }

  .image-paper {
    padding: 18px;
    border-radius: 24px;
  }

  .reveal-image-frame img {
    border-radius: 17px;
  }
}

@media (max-width: 390px) {
  .mode-card {
    min-height: 390px;
    padding: 24px;
  }

  .mode-card-copy > strong {
    font-size: 32px;
  }

  .card-table-cloth {
    padding-inline: 10px;
  }

  .card-table {
    gap: 7px 5px;
  }

  .table-card-topline > span:first-child {
    max-width: 52px;
  }

  .question-actions .button,
  .image-actions .button {
    padding-inline: 12px;
  }
}

/* Keep editorial Latin type while guaranteeing a readable Korean fallback. */
.opening-lead,
.opening-card p,
.deck-select-heading h2,
.mode-card-copy > strong,
.intro-copy h2,
.play-identity p,
.play-progress,
.question-paper h3,
.table-copy h2,
.closing-card h2,
.closing-question {
  font-family: Georgia, "Times New Roman", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .mode-card,
  .table-card {
    transition-duration: 0.01ms;
  }

  .question-paper.is-entering,
  .image-paper.is-entering {
    animation-duration: 0.01ms;
  }
}

/* =========================================================
   v2.1.4 — EDITORIAL QUIET
   Keep only the copy that helps the participant act.
   ========================================================= */

:root {
  --paper: #f1ece2;
  --paper-deep: #e6ddcf;
  --card: #fcfaf4;
  --ink: #17233a;
  --ink-soft: #626873;
  --navy: #182b49;
  --terracotta: #a66249;
  --dusty-blue: #6f8793;
  --line: rgba(23, 35, 58, 0.12);
  --line-strong: rgba(23, 35, 58, 0.24);
  --shadow-card: 0 34px 90px rgba(38, 34, 28, 0.11), 0 3px 12px rgba(38, 34, 28, 0.06);
  --shadow-small: 0 14px 38px rgba(38, 34, 28, 0.09), 0 2px 7px rgba(38, 34, 28, 0.05);
  --radius-card: 27px;
}

body {
  background:
    radial-gradient(circle at 86% 4%, rgba(166, 98, 73, 0.09), transparent 31%),
    radial-gradient(circle at 6% 92%, rgba(111, 135, 147, 0.08), transparent 29%),
    repeating-linear-gradient(93deg, rgba(28, 34, 41, 0.012) 0 1px, transparent 1px 7px),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.7) 0 0.5px, transparent 0.7px),
    radial-gradient(circle at 70% 60%, rgba(26, 30, 37, 0.22) 0 0.45px, transparent 0.65px);
  background-position: 0 0, 5px 7px;
  background-size: 11px 13px, 13px 11px;
  mix-blend-mode: soft-light;
}

.paper-glow {
  opacity: 0.2;
  filter: blur(18px);
}

.site-header {
  min-height: 84px;
  padding-block: calc(17px + env(safe-area-inset-top)) 16px;
  border-bottom-color: rgba(23, 35, 58, 0.1);
}

.brand-mark {
  width: 39px;
  background: #172945;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.19),
    0 5px 16px rgba(23, 41, 69, 0.12);
}

.brand-button strong {
  letter-spacing: 0.11em;
}

.brand-button small {
  opacity: 0.72;
}

main {
  min-height: calc(100vh - 84px);
}

.screen {
  padding-block: clamp(58px, 7.5vw, 104px);
}

.button {
  min-height: 54px;
  padding: 14px 25px;
  border-color: rgba(23, 35, 58, 0.22);
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.46);
}

.button--primary {
  background: linear-gradient(145deg, #1b3153, #152743);
  border-color: #172b49;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.13),
    0 12px 28px rgba(23, 43, 73, 0.16);
}

.button--primary:hover {
  background: linear-gradient(145deg, #213a61, #182c4b);
}

.button--quiet {
  background: rgba(252, 250, 244, 0.58);
}

.text-button {
  color: rgba(49, 58, 73, 0.72);
  font-size: 13px;
}

/* Quiet copy: preserved in source where useful, absent from the participant view. */
.header-count,
.product-stats,
.opening-copy > .eyebrow,
.deck-select-heading > .eyebrow,
.deck-select-heading > p:last-child,
.mode-card-top,
.mode-card-action,
.intro-code,
.intro-meta,
.intro-note,
.intro-back-top,
.intro-back-bottom,
.play-identity,
.question-kicker,
.question-pass,
.table-copy .eyebrow,
.table-copy > p:last-child,
.table-card-topline,
.table-card-bottomline,
.image-actions [data-action="pass-image"],
.closing-card > .eyebrow,
.closing-mark,
.closing-unit,
.closing-question,
.site-footer {
  display: none;
}

/* Opening */
.opening {
  column-gap: clamp(68px, 9vw, 132px);
}

.opening-copy h1 {
  letter-spacing: -0.055em;
}

.opening-lead {
  margin-top: 34px;
  line-height: 1.58;
}

.opening-product-copy {
  margin-top: 18px;
  color: rgba(54, 63, 77, 0.72);
  font-size: 14px;
  line-height: 1.75;
}

.opening-cta {
  margin-top: 38px;
}

.opening-card {
  border-color: rgba(23, 35, 58, 0.14);
  border-radius: 25px;
  box-shadow: 0 30px 76px rgba(38, 34, 28, 0.13), 0 3px 10px rgba(38, 34, 28, 0.06);
}

.opening-card::after {
  inset: 7px;
  border-color: rgba(23, 35, 58, 0.09);
  border-radius: 18px;
}

.opening-card--front {
  background:
    radial-gradient(circle at 82% 18%, rgba(166, 98, 73, 0.09), transparent 25%),
    linear-gradient(150deg, #fdfbf6, #f7f1e7);
}

.card-seal {
  width: 58px;
  background: #a66249;
  box-shadow: 0 10px 24px rgba(123, 66, 46, 0.15);
}

.talk-rules {
  padding-top: 30px;
  border-top-color: rgba(23, 35, 58, 0.1);
}

.talk-rule-list article {
  border-left-color: rgba(23, 35, 58, 0.1);
}

.talk-rule-list p {
  color: rgba(65, 72, 84, 0.72);
}

/* Two choices, treated as physical deck objects. */
.deck-select-v21 {
  max-width: 1020px;
}

.deck-select-heading {
  max-width: 680px;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.deck-select-heading h2 {
  font-size: clamp(39px, 5vw, 62px);
  line-height: 1.18;
}

.mode-grid {
  gap: clamp(22px, 3vw, 34px);
}

.mode-card {
  min-height: 510px;
  padding: clamp(30px, 3.6vw, 40px);
  background:
    radial-gradient(circle at 76% 12%, rgba(166, 98, 73, 0.055), transparent 29%),
    linear-gradient(150deg, rgba(255, 254, 250, 0.98), rgba(247, 242, 232, 0.96));
  border-color: rgba(23, 35, 58, 0.13);
  border-radius: 27px;
  box-shadow: 0 22px 56px rgba(38, 34, 28, 0.085), 0 2px 8px rgba(38, 34, 28, 0.045);
}

.mode-card--images {
  background:
    radial-gradient(circle at 76% 12%, rgba(111, 135, 147, 0.11), transparent 30%),
    linear-gradient(150deg, rgba(255, 254, 250, 0.98), rgba(244, 241, 233, 0.96));
}

.mode-card::after {
  inset: 7px;
  border-color: rgba(23, 35, 58, 0.08);
  border-radius: 20px;
}

.mode-card:hover,
.mode-card:focus-visible {
  border-color: rgba(23, 35, 58, 0.25);
  box-shadow: 0 34px 76px rgba(38, 34, 28, 0.13), 0 4px 12px rgba(38, 34, 28, 0.055);
  transform: translateY(-6px) rotate(-0.18deg);
}

.mode-deck-preview {
  width: min(72%, 250px);
  aspect-ratio: 4 / 3.9;
  margin: 12px auto 42px;
}

.mode-deck-preview i {
  inset: 0 14%;
  border-radius: 17px;
  box-shadow: 0 20px 40px rgba(28, 32, 38, 0.15), 0 2px 7px rgba(28, 32, 38, 0.08);
}

.mode-card-copy {
  margin-top: auto;
  gap: 9px;
}

.mode-card-copy > strong {
  font-size: clamp(34px, 3.6vw, 44px);
  letter-spacing: -0.04em;
}

.mode-card-copy > span {
  color: rgba(64, 72, 84, 0.7);
  font-size: 13px;
  line-height: 1.65;
}

/* Deck intro */
.back-button {
  margin-bottom: 28px;
}

.intro-layout {
  min-height: 610px;
  background:
    radial-gradient(circle at 78% 18%, rgba(166, 98, 73, 0.055), transparent 27%),
    rgba(252, 250, 244, 0.64);
  border-color: rgba(23, 35, 58, 0.11);
  border-radius: 27px;
  box-shadow: 0 28px 72px rgba(38, 34, 28, 0.095), 0 2px 8px rgba(38, 34, 28, 0.045);
}

.intro-visual--closed .intro-back-card {
  border-color: rgba(19, 31, 52, 0.24);
  border-radius: 20px;
  box-shadow: 0 25px 55px rgba(26, 31, 39, 0.16), 0 2px 8px rgba(26, 31, 39, 0.08);
}

.intro-back-card::after {
  inset: 7px;
  border-color: rgba(255, 255, 255, 0.16);
}

.intro-back-mark {
  margin-block: auto;
  font-size: 54px;
  opacity: 0.92;
}

.intro-copy h2 {
  font-size: clamp(43px, 5vw, 65px);
}

.intro-description {
  margin-top: 22px;
  color: rgba(65, 72, 84, 0.74);
  font-size: 15px;
  line-height: 1.75;
}

.intro-copy .button {
  margin-top: 35px;
}

/* Play chrome */
.play-header {
  margin-bottom: 28px;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.play-progress {
  color: rgba(65, 72, 84, 0.7);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.question-paper {
  min-height: 570px;
  background:
    radial-gradient(circle at 78% 15%, rgba(166, 98, 73, 0.065), transparent 24%),
    linear-gradient(155deg, #fefcf7, #f8f3e9);
  border-color: rgba(23, 35, 58, 0.12);
  border-radius: 27px;
  box-shadow: 0 32px 82px rgba(38, 34, 28, 0.105), 0 3px 10px rgba(38, 34, 28, 0.05);
}

.question-paper::after,
.image-paper::after {
  inset: 7px;
  border-color: rgba(23, 35, 58, 0.075);
  border-radius: 20px;
}

.question-paper h3 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(35px, 5vw, 58px);
  letter-spacing: -0.042em;
  line-height: 1.48;
}

.question-actions,
.image-actions {
  margin-top: 22px;
}

.play-finish,
.end-conversation {
  color: rgba(49, 58, 73, 0.68);
  text-decoration: none;
}

.play-finish:hover,
.end-conversation:hover {
  color: var(--ink);
}

/* Image table */
.table-copy {
  margin-bottom: 30px;
}

.table-copy h2 {
  font-size: clamp(34px, 4.5vw, 51px);
}

.card-table-cloth {
  padding: clamp(32px, 5vw, 58px);
  background:
    radial-gradient(circle at 48% 34%, rgba(255, 255, 255, 0.45), transparent 46%),
    repeating-linear-gradient(88deg, rgba(44, 47, 43, 0.015) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, #ded5c6, #d8cfbf);
  border-color: rgba(36, 42, 49, 0.13);
  border-radius: 28px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.62),
    inset 0 0 0 7px rgba(255, 255, 255, 0.09),
    0 28px 66px rgba(38, 34, 28, 0.11);
}

.card-table {
  gap: clamp(12px, 1.7vw, 21px);
}

.table-card {
  border-radius: clamp(13px, 1.45vw, 18px);
  box-shadow: 0 16px 32px rgba(30, 35, 42, 0.17), 0 2px 7px rgba(30, 35, 42, 0.1);
}

.table-card:hover,
.table-card:focus-visible {
  box-shadow: 0 27px 50px rgba(30, 35, 42, 0.23), 0 4px 10px rgba(30, 35, 42, 0.11);
}

.table-card-inner {
  padding: clamp(11px, 1.35vw, 18px);
  background:
    radial-gradient(circle at 50% 44%, transparent 0 21%, rgba(255, 255, 255, 0.24) 21.5% 22%, transparent 22.5%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.035) 14px 15px),
    linear-gradient(150deg, #7c929d, #637c89 56%, #5c7481);
  border-color: rgba(23, 35, 58, 0.2);
}

.table-card-inner::after {
  inset: 6px;
  border-color: rgba(255, 255, 255, 0.17);
}

.table-card-motif {
  width: 36%;
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.045),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.table-card-number {
  right: clamp(11px, 1.35vw, 18px);
  bottom: clamp(10px, 1.35vw, 17px);
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(11px, 1.15vw, 15px);
}

/* Image is the entire interpretation surface. */
.image-paper {
  padding: clamp(17px, 3vw, 30px);
  background: rgba(252, 250, 244, 0.76);
  border-color: rgba(23, 35, 58, 0.11);
  border-radius: 27px;
  box-shadow: 0 32px 82px rgba(38, 34, 28, 0.105), 0 3px 10px rgba(38, 34, 28, 0.05);
}

.reveal-image-frame {
  width: min(100%, 640px);
}

.reveal-image-frame img {
  border-color: rgba(23, 35, 58, 0.12);
  border-radius: 17px;
  box-shadow: 0 18px 42px rgba(38, 34, 28, 0.1);
}

.image-actions {
  display: flex;
  justify-content: center;
}

.image-actions > :last-child {
  min-width: 218px;
  justify-self: auto;
}

/* Closing */
.closing-card {
  min-height: 550px;
  background:
    radial-gradient(circle at 50% 17%, rgba(166, 98, 73, 0.08), transparent 27%),
    linear-gradient(155deg, #fefcf7, #f7f2e8);
  border-color: rgba(23, 35, 58, 0.11);
  border-radius: 27px;
  box-shadow: 0 32px 82px rgba(38, 34, 28, 0.105), 0 3px 10px rgba(38, 34, 28, 0.05);
}

.closing-card::before {
  inset: 7px;
  border-color: rgba(23, 35, 58, 0.075);
  border-radius: 20px;
}

.closing-mark {
  width: 48px;
  margin-bottom: 28px;
  background: #a66249;
}

.closing-card h2 {
  max-width: 660px;
  font-size: clamp(38px, 5.6vw, 63px);
  line-height: 1.3;
}

.closing-copy {
  margin-top: 22px;
  color: rgba(65, 72, 84, 0.7);
}

@media (max-width: 768px) {
  .screen {
    padding-block: 52px 70px;
  }

  .mode-card {
    min-height: 420px;
  }

  .mode-deck-preview {
    width: min(66%, 238px);
    margin-block: 4px 34px;
  }

  .intro-layout {
    min-height: 0;
    gap: 34px;
  }

  .intro-copy .button {
    margin-top: 30px;
  }
}

@media (max-width: 640px) {
  .site-header,
  main {
    width: min(calc(100% - 24px), var(--content));
  }

  .site-header {
    min-height: 74px;
  }

  .screen {
    padding-block: 42px 58px;
  }

  .opening {
    row-gap: 58px;
  }

  .opening-lead {
    margin-top: 26px;
  }

  .opening-cta {
    margin-top: 30px;
  }

  .talk-rules {
    padding-top: 26px;
  }

  .deck-select-heading {
    margin-bottom: 30px;
  }

  .mode-card {
    min-height: 388px;
    padding: 26px;
    border-radius: 24px;
  }

  .mode-deck-preview {
    width: min(64%, 218px);
    margin-bottom: 28px;
  }

  .mode-card-copy > strong {
    font-size: 33px;
  }

  .intro-layout {
    padding: 22px 18px 34px;
    border-radius: 24px;
  }

  .intro-visual {
    min-height: 330px;
  }

  .intro-copy h2 {
    font-size: 40px;
  }

  .intro-description {
    margin-top: 16px;
    font-size: 14px;
  }

  .play-header {
    margin-bottom: 20px;
    grid-template-columns: 1fr auto;
  }

  .play-progress {
    font-size: 13px;
  }

  .question-paper {
    min-height: 500px;
    padding: 42px 23px;
    border-radius: 23px;
  }

  .question-paper h3 {
    font-size: clamp(29px, 8.2vw, 39px);
    line-height: 1.5;
  }

  .question-actions {
    border-color: rgba(23, 35, 58, 0.11);
    background: rgba(241, 236, 226, 0.9);
  }

  .table-copy {
    margin-bottom: 24px;
  }

  .table-copy h2 {
    font-size: clamp(29px, 8vw, 38px);
  }

  .card-table-cloth {
    margin-inline: -3px;
    padding: 19px 11px 24px;
    border-radius: 22px;
  }

  .card-table {
    gap: 8px 6px;
  }

  .table-card {
    border-radius: 13px;
  }

  .table-card-number {
    right: 9px;
    bottom: 8px;
    font-size: 11px;
  }

  .image-paper {
    padding: 13px;
    border-radius: 22px;
  }

  .reveal-image-frame img {
    border-radius: 13px;
  }

  .image-actions {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
  }

  .image-actions > :last-child {
    width: 100%;
  }

  .closing-card {
    min-height: 520px;
    padding: 48px 24px;
    border-radius: 23px;
  }

  .closing-card h2 {
    font-size: 38px;
  }
}

@media (max-width: 390px) {
  .mode-card {
    min-height: 372px;
    padding: 24px;
  }

  .mode-deck-preview {
    width: min(62%, 205px);
  }

  .question-actions .button {
    padding-inline: 12px;
  }
}
