:root {
  --paper: #f3efe5;
  --paper-deep: #e9e1d2;
  --card: #fbf8ef;
  --ink: #18243a;
  --ink-soft: #4e5867;
  --navy: #1c2d4b;
  --terracotta: #a85e43;
  --sage: #8b9b7a;
  --olive: #77784f;
  --mustard: #c49b4d;
  --dusty-blue: #78909f;
  --line: rgba(24, 36, 58, 0.16);
  --line-strong: rgba(24, 36, 58, 0.28);
  --shadow-card: 0 24px 70px rgba(42, 38, 31, 0.14), 0 3px 10px rgba(42, 38, 31, 0.08);
  --shadow-small: 0 12px 30px rgba(42, 38, 31, 0.1);
  --radius-card: 30px;
  --content: 1180px;
  --ease-card: cubic-bezier(0.22, 0.76, 0.24, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(93deg, rgba(32, 42, 52, 0.018) 0 1px, transparent 1px 6px),
    var(--paper);
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  color: white;
  background: var(--navy);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

.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;
}

.paper-glow {
  position: fixed;
  z-index: -1;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.34;
  pointer-events: none;
}

.paper-glow--one {
  top: -260px;
  right: -160px;
  background: radial-gradient(circle, rgba(184, 109, 82, 0.45), rgba(184, 109, 82, 0));
}

.paper-glow--two {
  bottom: -340px;
  left: -220px;
  background: radial-gradient(circle, rgba(120, 144, 159, 0.38), rgba(120, 144, 159, 0));
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  min-height: 90px;
  padding: calc(18px + env(safe-area-inset-top)) 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand-button {
  min-height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.brand-button strong,
.brand-button small {
  display: block;
}

.brand-button strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand-button small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.22em;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--navy);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.header-count {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.header-count i {
  width: 4px;
  height: 4px;
  background: var(--terracotta);
  border-radius: 50%;
}

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

.screen {
  padding: clamp(64px, 8vw, 110px) 0;
  animation: screen-enter 500ms var(--ease-card) both;
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.19em;
  line-height: 1.4;
}

.button {
  min-height: 52px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-card),
    box-shadow 180ms var(--ease-card),
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-small);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.button--primary {
  color: #fffdf7;
  background: var(--navy);
  border-color: var(--navy);
}

.button--primary:hover {
  background: #243957;
}

.button--quiet {
  background: rgba(251, 248, 239, 0.7);
}

.button--reveal {
  color: var(--navy);
  background: #f7f0df;
  border-color: rgba(184, 109, 82, 0.5);
}

.text-button {
  min-height: 48px;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  font-weight: 750;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
}

/* Opening */
.opening {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  align-items: center;
  column-gap: clamp(54px, 8vw, 112px);
  row-gap: 72px;
}

.opening-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.4vw, 100px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.opening-copy h1 em {
  display: block;
  margin-top: 8px;
  color: var(--terracotta);
  font-style: italic;
  font-weight: 400;
}

.opening-lead {
  margin: 30px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: -0.035em;
  line-height: 1.52;
}

.opening-product-copy {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.65;
}

.product-stats {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-stats span,
.intro-meta span {
  min-height: 32px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  background: rgba(251, 248, 239, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.opening-cta {
  margin-top: 34px;
  min-width: 190px;
}

.opening-deck {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 0.9;
  margin-inline: auto;
  perspective: 1000px;
}

.opening-card {
  position: absolute;
  inset: 4% 11%;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(24, 36, 58, 0.18);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.opening-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(24, 36, 58, 0.12);
  border-radius: calc(var(--radius-card) - 7px);
  pointer-events: none;
}

.opening-card--back {
  color: #f7f2e7;
  background: var(--dusty-blue);
  transform: translate(-54px, 30px) rotate(-8deg);
}

.opening-card--back span,
.opening-card--middle span {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.opening-card--back p {
  position: absolute;
  left: 34px;
  bottom: 34px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.45;
}

.opening-card--middle {
  padding: 0;
  background: #d4cab9;
  transform: translate(48px, -14px) rotate(7deg);
}

.opening-card--middle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opening-card--middle span {
  position: absolute;
  z-index: 1;
  left: 27px;
  bottom: 27px;
  padding: 8px 10px;
  color: var(--card);
  background: rgba(28, 45, 75, 0.78);
  border-radius: 999px;
}

.opening-card--front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 82% 20%, rgba(184, 109, 82, 0.13), transparent 26%),
    var(--card);
  transform: rotate(-1.5deg);
}

.opening-card--front .card-index {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.opening-card--front p {
  margin: auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.48;
}

.card-seal {
  align-self: flex-end;
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff8ec;
  background: var(--terracotta);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  box-shadow: 0 8px 18px rgba(127, 65, 43, 0.18);
}

.talk-rules {
  grid-column: 1 / -1;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.talk-rules h2 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.talk-rule-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.talk-rule-list article {
  padding: 0 30px;
  border-left: 1px solid var(--line);
}

.talk-rule-list article:first-child {
  padding-left: 0;
  border-left: 0;
}

.talk-rule-list strong {
  color: var(--terracotta);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.talk-rule-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* Theme selection */
.section-heading {
  max-width: 770px;
  margin-bottom: clamp(56px, 7vw, 82px);
}

.section-heading h2,
.intro-copy h2,
.closing-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.section-heading h2 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.16;
}

.section-heading > p:last-child {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.deck-group + .deck-group {
  margin-top: clamp(84px, 11vw, 132px);
}

.deck-group-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.deck-group-heading .eyebrow {
  margin-bottom: 8px;
}

.deck-group-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.deck-group-heading > p {
  max-width: 370px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.theme-card {
  position: relative;
  min-width: 0;
  min-height: 390px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: rgba(251, 248, 239, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.55) inset;
  text-align: left;
  cursor: pointer;
  transition:
    transform 240ms var(--ease-card),
    box-shadow 240ms var(--ease-card),
    border-color 240ms ease;
}

.theme-card:hover {
  z-index: 1;
  transform: translateY(-7px) rotate(-0.7deg);
  border-color: rgba(24, 36, 58, 0.34);
  box-shadow: var(--shadow-card);
}

.theme-card:nth-child(even):hover {
  transform: translateY(-7px) rotate(0.7deg);
}

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

.theme-card-type {
  color: var(--terracotta);
}

.deck-preview {
  position: relative;
  height: 176px;
  margin: 24px 8px 22px;
}

.deck-preview--text span,
.image-thumb {
  position: absolute;
  inset: 10px 22px;
  background: var(--card);
  border: 1px solid rgba(24, 36, 58, 0.16);
  border-radius: 16px;
  box-shadow: var(--shadow-small);
}

.deck-preview--text span:nth-child(1) {
  background: #c8b783;
  transform: translate(-14px, 7px) rotate(-7deg);
}

.deck-preview--text span:nth-child(2) {
  background: #8c9c8a;
  transform: translate(13px, -3px) rotate(6deg);
}

.deck-preview--text span:nth-child(3) {
  display: grid;
  place-items: center;
  transform: rotate(-1deg);
}

.deck-preview--text span:nth-child(3)::before,
.deck-preview--text span:nth-child(3)::after {
  content: "";
  position: absolute;
}

.deck-preview--text span:nth-child(3)::before {
  width: 54px;
  height: 1px;
  background: var(--terracotta);
}

.deck-preview--text span:nth-child(3)::after {
  width: 10px;
  height: 10px;
  background: var(--terracotta);
  border-radius: 50%;
}

.deck-preview--image {
  height: 190px;
}

.image-thumb {
  width: auto;
  height: auto;
  object-fit: cover;
}

.image-thumb:nth-child(1) {
  transform: translate(-18px, 7px) rotate(-7deg);
}

.image-thumb:nth-child(2) {
  transform: translate(17px, -2px) rotate(6deg);
}

.image-thumb:nth-child(3) {
  transform: rotate(-1deg);
}

.theme-card h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.theme-card-description {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.55;
  word-break: keep-all;
}

.theme-card-footer {
  margin-top: auto;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.theme-card-footer b {
  width: 30px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--card);
  background: var(--navy);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
}

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

.intro-layout {
  min-height: 600px;
  padding: clamp(30px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(52px, 8vw, 112px);
  background: rgba(251, 248, 239, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.intro-visual {
  position: relative;
  min-height: 430px;
}

.intro-visual .intro-card,
.intro-visual img {
  position: absolute;
  inset: 4% 12%;
  width: 76%;
  height: 92%;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.intro-visual > :nth-child(1) {
  transform: translate(-36px, 14px) rotate(-7deg);
}

.intro-visual > :nth-child(2) {
  transform: translate(38px, -8px) rotate(7deg);
}

.intro-visual > :nth-child(3) {
  transform: rotate(-1deg);
}

.intro-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-card:nth-child(1) {
  color: #fffaf0;
  background: var(--sage);
}

.intro-card:nth-child(2) {
  color: #fffaf0;
  background: var(--dusty-blue);
}

.intro-card:nth-child(3) {
  color: var(--ink);
  background: var(--card);
}

.intro-card span {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.intro-card p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.45;
}

.intro-copy h2 {
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.12;
}

.intro-description {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.intro-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intro-note {
  max-width: 530px;
  margin: 28px 0 34px;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: rgba(139, 155, 122, 0.11);
  border-left: 3px solid var(--sage);
  font-size: 13px;
  line-height: 1.7;
}

/* Card play */
.card-play {
  max-width: 960px;
  margin-inline: auto;
}

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

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

.play-identity span {
  padding: 6px 8px;
  color: var(--card);
  background: var(--terracotta);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

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

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

.play-card {
  position: relative;
  min-height: 610px;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 82% 14%, rgba(184, 109, 82, 0.09), transparent 25%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.play-card::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;
}

.play-card.is-changing > * {
  animation: card-shift 360ms var(--ease-card) both;
}

@keyframes card-shift {
  from {
    opacity: 0;
    transform: translateX(13px) rotate(0.45deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

.text-card-view {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

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

.text-card-view h2 {
  max-width: 760px;
  margin: 38px auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.48;
  word-break: keep-all;
}

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

.image-card-view {
  position: relative;
  z-index: 1;
  width: 100%;
}

.image-frame {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
}

.image-frame img {
  display: block;
  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);
}

.image-frame figcaption {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.image-fallback {
  position: absolute;
  inset: 0 0 38px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e8dfcf;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  text-align: center;
}

.image-fallback strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.image-fallback p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.image-question-panel {
  max-width: 720px;
  margin: 46px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  text-align: center;
  animation: question-reveal 420ms var(--ease-card) both;
}

@keyframes question-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-question-panel h2 {
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.5;
  word-break: keep-all;
}

.followup {
  max-width: 600px;
  margin: 28px auto 0;
  padding: 20px 22px;
  background: rgba(139, 155, 122, 0.12);
  border-radius: 16px;
  animation: question-reveal 340ms var(--ease-card) both;
}

.followup span {
  color: var(--olive);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.followup p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

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

.play-actions > :last-child {
  justify-self: end;
}

/* Closing */
.closing {
  max-width: 920px;
  margin-inline: auto;
}

.closing-card {
  position: relative;
  min-height: 620px;
  padding: clamp(44px, 9vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(196, 155, 77, 0.16), transparent 29%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.closing-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(24, 36, 58, 0.1);
  border-radius: calc(var(--radius-card) - 9px);
}

.closing-card > * {
  position: relative;
  z-index: 1;
}

.closing-mark {
  width: 58px;
  aspect-ratio: 1;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  color: #fff9ef;
  background: var(--terracotta);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.closing-card h2 {
  max-width: 700px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.25;
}

.closing-question {
  margin: 34px 0 0;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.5;
}

.closing-copy {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.closing-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-footer {
  min-height: 90px;
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.site-footer p {
  margin: 0;
}

.noscript-message {
  position: fixed;
  z-index: 99;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  color: white;
  background: var(--navy);
  border-radius: 12px;
  text-align: center;
}

@media (max-width: 1040px) {
  .opening {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
    column-gap: 44px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-card {
    min-height: 370px;
  }

  .intro-layout {
    gap: 52px;
  }
}

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

  .screen {
    padding: 58px 0 76px;
  }

  .opening {
    grid-template-columns: 1fr;
  }

  .opening-copy {
    text-align: center;
  }

  .product-stats {
    justify-content: center;
  }

  .opening-deck {
    width: min(100%, 430px);
  }

  .talk-rule-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .talk-rule-list article,
  .talk-rule-list article:first-child {
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .talk-rule-list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .deck-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    width: min(100%, 420px);
    min-height: 430px;
    margin-inline: auto;
  }

  .intro-copy {
    text-align: center;
  }

  .intro-description,
  .intro-note {
    margin-inline: auto;
  }

  .intro-meta {
    justify-content: center;
  }

  .play-card {
    min-height: 560px;
  }
}

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

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

  .brand-button strong {
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
  }

  .header-count span:last-child,
  .header-count i {
    display: none;
  }

  .screen {
    padding: 46px 0 64px;
  }

  .opening-copy h1 {
    font-size: clamp(50px, 18vw, 72px);
  }

  .opening-lead {
    font-size: 20px;
  }

  .opening-deck {
    aspect-ratio: 0.86;
  }

  .opening-card {
    inset: 6% 12%;
    border-radius: 24px;
  }

  .opening-card--back {
    transform: translate(-28px, 25px) rotate(-7deg);
  }

  .opening-card--middle {
    transform: translate(27px, -11px) rotate(6deg);
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .theme-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .theme-card {
    min-height: 350px;
  }

  .deck-preview {
    height: 166px;
  }

  .deck-preview--image {
    height: 184px;
  }

  .intro-layout {
    min-height: 0;
    padding: 24px 18px 38px;
    border-radius: 24px;
  }

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

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

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

  .play-header .text-button {
    font-size: 0;
  }

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

  .play-identity {
    justify-self: center;
  }

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

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

  .play-card {
    min-height: 520px;
    padding: 34px 22px;
    border-radius: 24px;
  }

  .text-card-view h2 {
    margin-block: 30px;
    font-size: clamp(28px, 8.4vw, 40px);
    line-height: 1.5;
  }

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

  .image-question-panel {
    margin-top: 34px;
    padding-top: 26px;
  }

  .image-question-panel h2 {
    font-size: 29px;
  }

  .play-actions {
    position: sticky;
    z-index: 5;
    bottom: calc(10px + env(safe-area-inset-bottom));
    grid-template-columns: auto 1fr auto;
    padding: 8px;
    background: rgba(243, 239, 229, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(10px);
  }

  .play-actions .button {
    min-height: 48px;
    padding: 12px 16px;
  }

  .play-actions .button--reveal {
    justify-self: stretch;
  }

  .closing-card {
    min-height: 570px;
    padding: 50px 24px;
    border-radius: 24px;
  }

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

  .closing-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .closing-actions .button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .product-stats span {
    padding-inline: 9px;
    font-size: 8px;
  }

  .opening-card--front p {
    font-size: 26px;
  }

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

  .play-actions .button {
    padding-inline: 13px;
  }

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

@media (orientation: landscape) and (max-height: 620px) {
  .screen {
    padding-block: 34px;
  }

  .play-card {
    min-height: 430px;
  }

  .image-frame img {
    max-height: 62vh;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
