:root {
  --paper: #f7f0e5;
  --paper-deep: #eee1d2;
  --card: #fffaf3;
  --ink: #332c29;
  --muted: #756a64;
  --line: rgba(78, 56, 45, 0.16);
  --wine: #8c3042;
  --wine-dark: #6e2132;
  --apricot: #f0c66d;
  --apricot-soft: #f8e5b7;
  --sage: #94a783;
  --sage-soft: #dce6d5;
  --blue: #8fa9bd;
  --blue-soft: #dce8ef;
  --warm-wine: #a34d5d;
  --warm-wine-soft: #efd8dc;
  --shadow: 0 18px 50px rgba(82, 52, 38, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(240, 198, 109, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 22%, rgba(143, 169, 189, 0.18), transparent 26rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(140, 48, 66, 0.28);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 240, 229, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px 13px 13px 5px;
  background: var(--wine);
  color: #fff8ef;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-button,
.print-button,
.primary-button,
.secondary-button,
.back-button {
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.text-button,
.back-button {
  border: 0;
  background: transparent;
  color: var(--wine-dark);
  font-weight: 650;
}

.text-button {
  padding: 8px 12px;
}

.back-button {
  padding: 8px 0;
}

.print-button {
  padding: 9px 16px;
  border: 1px solid rgba(140, 48, 66, 0.34);
  background: rgba(255, 250, 243, 0.7);
  color: var(--wine);
  font-weight: 650;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 24px;
  font-weight: 700;
}

.primary-button {
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fffaf3;
  box-shadow: 0 10px 24px rgba(140, 48, 66, 0.18);
}

.secondary-button {
  border: 1px solid rgba(140, 48, 66, 0.32);
  background: rgba(255, 250, 243, 0.7);
  color: var(--wine);
}

.primary-button:hover,
.stage-option button:hover,
.random-all-button:hover {
  transform: translateY(-2px);
}

[data-view] {
  display: none;
}

[data-view].is-active {
  display: block;
}

.hero,
.instructions,
.stage-picker,
.draw-view,
.all-view {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: 34px;
  padding: 70px 0 82px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(64px, 20vw, 104px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.hero h1 span {
  color: var(--wine);
}

.hero-subtitle {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.55;
}

.hero-promise {
  margin: 14px 0 0;
  font-size: clamp(17px, 4vw, 21px);
  font-weight: 720;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: center;
}

.deck-card {
  min-height: 174px;
  padding: 20px;
  border: 1px solid rgba(60, 45, 38, 0.12);
  border-radius: 10px 26px 10px 26px;
  box-shadow: var(--shadow);
}

.deck-card span {
  display: block;
  margin-bottom: 38px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
}

.deck-card strong,
.deck-card small {
  display: block;
}

.deck-card strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
}

.deck-card small {
  margin-top: 4px;
  color: rgba(51, 44, 41, 0.68);
}

.stage-1 {
  --stage-color: var(--apricot);
  --stage-soft: var(--apricot-soft);
}

.stage-2 {
  --stage-color: var(--sage);
  --stage-soft: var(--sage-soft);
}

.stage-3 {
  --stage-color: var(--blue);
  --stage-soft: var(--blue-soft);
}

.stage-4 {
  --stage-color: var(--warm-wine);
  --stage-soft: var(--warm-wine-soft);
}

.deck-card.stage-1,
.deck-card.stage-2,
.deck-card.stage-3,
.deck-card.stage-4 {
  background: linear-gradient(145deg, var(--stage-soft), rgba(255, 250, 243, 0.9));
}

.instructions,
.stage-picker {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.draw-heading h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 9vw, 58px);
  font-weight: 600;
  line-height: 1.15;
}

.section-heading > p:last-child,
.draw-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.instruction-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instruction-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 243, 0.58);
}

.instruction-list li > span {
  color: var(--wine);
  font-family: ui-monospace, monospace;
  font-weight: 750;
}

.instruction-list strong {
  font-size: 18px;
}

.instruction-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.boundary-note {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--wine);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(140, 48, 66, 0.07);
  color: #5f4e48;
}

.stage-grid {
  display: grid;
  gap: 16px;
}

.stage-option {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(57, 45, 39, 0.13);
  border-radius: 14px 34px 14px 34px;
  background: linear-gradient(150deg, var(--stage-soft), rgba(255, 250, 243, 0.94));
  box-shadow: 0 14px 34px rgba(75, 50, 38, 0.06);
}

.stage-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-option-top > span {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  font-weight: 750;
}

.stage-option-top small {
  color: var(--muted);
}

.stage-option h3 {
  margin: 30px 0 10px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
  line-height: 1.2;
}

.stage-option > p {
  margin: 0;
  color: #5f554f;
}

.stage-suggestion {
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(70, 54, 45, 0.12);
  color: var(--wine-dark);
  font-size: 14px;
  font-weight: 680;
}

.stage-option button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 16px;
  border: 1px solid rgba(60, 45, 38, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.7);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease;
}

.random-all-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin-top: 18px;
  padding: 14px 20px;
  border: 1px dashed rgba(140, 48, 66, 0.55);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 243, 0.55);
  color: var(--wine);
  cursor: pointer;
  font-weight: 750;
  transition: transform 160ms ease;
}

.view-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
}

.view-top p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.draw-view {
  padding-bottom: 70px;
}

.draw-heading {
  margin: 24px auto 34px;
  text-align: center;
}

.drawn-card-wrap {
  width: min(760px, 100%);
  margin-inline: auto;
}

.action-card {
  overflow: hidden;
  border: 1px solid rgba(59, 43, 37, 0.16);
  border-radius: 18px 46px 18px 46px;
  background: var(--card);
  box-shadow: 0 26px 70px rgba(83, 52, 38, 0.15);
}

.action-card.card-turn {
  animation: card-turn 220ms ease;
}

@keyframes card-turn {
  from {
    opacity: 0.55;
    transform: rotateY(4deg) scale(0.99);
  }
  to {
    opacity: 1;
    transform: rotateY(0) scale(1);
  }
}

.card-side {
  min-height: 570px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--stage-soft) 75%, white), var(--card) 42%);
}

.card-topline,
.card-front-footer,
.card-back-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.card-topline {
  border-bottom: 1px solid rgba(67, 48, 40, 0.12);
}

.card-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--stage-color);
  color: var(--ink);
  font-family: ui-monospace, monospace;
  font-weight: 800;
}

.stage-4 .card-number {
  color: #fffaf3;
}

.stage-label {
  color: #655a54;
  font-size: 13px;
  font-weight: 680;
}

.card-front {
  display: flex;
  flex-direction: column;
}

.card-front-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 44px 26px 30px;
}

.card-category {
  margin: 0;
  color: var(--wine);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.card-front h3 {
  margin: 12px 0 38px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(44px, 12vw, 70px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.key-question {
  padding: 22px 0;
  border-block: 1px solid rgba(64, 48, 40, 0.14);
}

.key-question span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.key-question p {
  margin: 8px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(23px, 6vw, 31px);
  font-weight: 600;
  line-height: 1.45;
}

.card-front blockquote,
.back-context blockquote {
  margin: 26px 0 0;
  color: var(--wine-dark);
  font-size: 18px;
  font-weight: 700;
}

.card-front-footer,
.card-back-footer {
  border-top: 1px solid rgba(67, 48, 40, 0.12);
}

.card-front-footer > span {
  color: var(--muted);
  font-size: 14px;
}

.flip-button,
.copy-button {
  border: 0;
  cursor: pointer;
  font-weight: 720;
}

.flip-button {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--stage-color);
  color: var(--ink);
}

.stage-4 .flip-button {
  color: #fffaf3;
}

.card-back-content {
  display: grid;
  gap: 24px;
  padding: 28px 22px 34px;
}

.back-context {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--stage-soft);
}

.back-context p {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  font-weight: 650;
}

.back-context blockquote {
  margin-top: 8px;
  font-size: 15px;
}

.detail-label {
  margin: 0 0 7px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.card-back-content h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
}

.card-back-content h4 {
  margin: 0 0 10px;
  color: var(--wine-dark);
  font-size: 15px;
}

.action-steps,
.result-grid ul {
  margin: 0;
  padding-left: 24px;
}

.action-steps li,
.result-grid li {
  margin: 7px 0;
}

.prompt-box {
  padding: 18px;
  border: 1px dashed rgba(68, 50, 43, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.52);
}

.prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.prompt-heading h4 {
  margin: 0;
}

.copy-button {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--wine);
  color: #fffaf3;
}

.prompt-box pre,
.wall-print-details pre {
  margin: 0;
  overflow-x: auto;
  color: #4f4641;
  font: inherit;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-grid {
  display: grid;
  gap: 12px;
}

.result-grid section {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--stage-soft) 58%, white);
}

.result-grid p {
  margin: 0;
}

.avoid-box {
  padding: 16px 18px;
  border-left: 4px solid var(--wine);
  background: rgba(140, 48, 66, 0.06);
}

.avoid-box p {
  margin: 5px 0 0;
  color: #62534d;
}

.draw-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 0;
}

.all-view {
  padding-bottom: 80px;
}

.all-heading {
  padding: 34px 0 28px;
}

.all-heading h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(42px, 10vw, 68px);
  font-weight: 600;
  line-height: 1.12;
}

.all-heading > p:last-child {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  padding-bottom: 6px;
  overflow-x: auto;
}

.filter-bar button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid rgba(68, 50, 43, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
  color: var(--ink);
  cursor: pointer;
}

.filter-bar button.is-active {
  border-color: var(--wine);
  background: var(--wine);
  color: #fffaf3;
}

.filter-bar button.stage-1:not(.is-active),
.filter-bar button.stage-2:not(.is-active),
.filter-bar button.stage-3:not(.is-active),
.filter-bar button.stage-4:not(.is-active) {
  background: var(--stage-soft);
}

.card-wall {
  display: grid;
  gap: 16px;
}

.wall-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(62, 46, 39, 0.14);
  border-radius: 14px 34px 14px 34px;
  background: linear-gradient(155deg, var(--stage-soft), rgba(255, 250, 243, 0.97) 54%);
  box-shadow: 0 14px 36px rgba(78, 51, 38, 0.07);
}

.wall-card-top,
.wall-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.wall-card-top {
  border-bottom: 1px solid rgba(62, 46, 39, 0.12);
}

.wall-card-top > span {
  font-family: ui-monospace, monospace;
  font-weight: 800;
}

.wall-card-top small {
  color: var(--muted);
}

.wall-card-main {
  flex: 1;
  padding: 28px 20px 22px;
}

.wall-card-main h3 {
  margin: 0 0 20px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 31px;
  line-height: 1.2;
}

.wall-card-main > p {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.55;
}

.wall-card-main blockquote {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(62, 46, 39, 0.14);
  color: var(--wine-dark);
  font-weight: 700;
}

.wall-card-bottom {
  border-top: 1px solid rgba(62, 46, 39, 0.12);
}

.wall-card-bottom > span {
  color: var(--muted);
  font-size: 13px;
}

.wall-card-bottom button {
  border: 0;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-weight: 750;
}

.wall-print-details,
.print-guide {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 50;
  max-width: min(390px, calc(100% - 36px));
  padding: 14px 18px;
  border: 1px solid rgba(140, 48, 66, 0.2);
  border-radius: 999px;
  background: #fffaf3;
  box-shadow: var(--shadow);
  color: var(--wine-dark);
  font-weight: 650;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 30px;
  padding: 30px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 680px) {
  .instruction-list,
  .stage-grid,
  .card-wall,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-front-content,
  .card-back-content {
    padding-inline: 42px;
  }
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    align-items: center;
    min-height: calc(100vh - 72px);
    padding-block: 58px;
  }

  .hero-deck {
    transform: rotate(1.2deg);
  }

  .hero-deck .deck-card:nth-child(2),
  .hero-deck .deck-card:nth-child(3) {
    transform: translateY(26px);
  }

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

  .card-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .instruction-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .instruction-list li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .brand > span:last-child {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-actions .text-button {
    display: none;
  }

  .print-button {
    padding-inline: 12px;
    font-size: 13px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .deck-card {
    min-height: 148px;
    padding: 16px;
  }

  .deck-card span {
    margin-bottom: 22px;
  }

  .deck-card strong {
    font-size: 16px;
  }

  .deck-card small {
    font-size: 11px;
    line-height: 1.35;
  }

  .view-top {
    align-items: flex-start;
  }

  .view-top p {
    max-width: 55%;
    text-align: right;
  }

  .draw-heading {
    text-align: left;
  }

  .action-card {
    border-radius: 13px 34px 13px 34px;
  }

  .card-side {
    min-height: 540px;
  }

  .card-front h3 {
    font-size: 48px;
  }

  .card-front-footer {
    align-items: flex-end;
  }

  .draw-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .prompt-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@page {
  size: A4 portrait;
  margin: 12mm;
}

@media print {
  :root {
    background: #fff;
  }

  body {
    background: #fff;
    color: #231f1d;
    font-size: 10pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .no-print,
  .site-header,
  .site-footer,
  .toast {
    display: none !important;
  }

  main,
  [data-view],
  [data-view].is-active {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body.print-all [data-view],
  body.print-all .home-view,
  body.print-all .draw-view {
    display: none !important;
  }

  body.print-all .all-view,
  body.print-all .print-guide {
    display: block !important;
  }

  .print-guide {
    min-height: 260mm;
    padding: 18mm 14mm;
    break-after: page;
    border: 1px solid #b9aaa1;
    background:
      linear-gradient(140deg, #f8e5b7, #fffaf3 42%, #dce8ef);
  }

  .print-kicker {
    margin: 0;
    color: var(--wine);
    font-weight: 750;
    letter-spacing: 0.12em;
  }

  .print-guide h1 {
    margin: 16mm 0 3mm;
    color: var(--wine);
    font-family: "Songti SC", "STSong", serif;
    font-size: 40pt;
    line-height: 1;
  }

  .print-subtitle {
    margin: 0 0 18mm;
    font-family: "Songti SC", "STSong", serif;
    font-size: 16pt;
  }

  .print-guide ol {
    display: grid;
    gap: 5mm;
    padding-left: 7mm;
    font-size: 12pt;
  }

  .print-stage-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4mm;
    margin-top: 16mm;
  }

  .print-stage-legend span {
    padding: 4mm;
    border: 1px solid rgba(70, 54, 45, 0.16);
    background: var(--stage-soft);
    font-weight: 700;
  }

  .print-boundary {
    margin-top: 16mm;
    padding: 5mm;
    border-left: 3px solid var(--wine);
    background: rgba(140, 48, 66, 0.07);
  }

  .all-heading,
  .filter-bar {
    display: none !important;
  }

  .card-wall {
    display: block;
  }

  .wall-card {
    display: block;
    min-height: 0;
    height: 270mm;
    margin: 0;
    padding: 8mm 10mm;
    overflow: hidden;
    break-inside: avoid;
    break-after: page;
    border: 1px solid #aa9c94;
    border-radius: 3mm 12mm 3mm 12mm;
    background: linear-gradient(155deg, var(--stage-soft), #fff 48%);
    box-shadow: none;
  }

  .wall-card:last-child {
    break-after: auto;
  }

  .wall-card-top {
    padding: 0 0 4mm;
  }

  .wall-card-main {
    padding: 6mm 0 4mm;
  }

  .wall-card-main h3 {
    margin-bottom: 3mm;
    font-size: 24pt;
  }

  .wall-card-main > p {
    font-size: 12pt;
    line-height: 1.35;
  }

  .wall-card-main blockquote {
    margin-top: 3mm;
    padding-top: 2.5mm;
  }

  .wall-print-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3mm 7mm;
    font-size: 8.7pt;
    line-height: 1.35;
  }

  .wall-print-details section {
    break-inside: avoid;
  }

  .wall-print-details h4 {
    margin: 0 0 1mm;
    color: var(--wine-dark);
    font-size: 9pt;
  }

  .wall-print-details p,
  .wall-print-details ol,
  .wall-print-details ul {
    margin: 0;
  }

  .wall-print-details ol,
  .wall-print-details ul {
    padding-left: 5mm;
  }

  .print-prompt {
    grid-column: 1 / -1;
    padding: 3mm;
    border: 1px dashed #ae9f97;
    background: rgba(255, 255, 255, 0.66);
  }

  .wall-print-details pre {
    overflow: visible;
    font-size: 7.8pt;
    line-height: 1.32;
  }

  .print-avoid {
    grid-column: 1 / -1;
    padding: 2.5mm 3mm;
    border-left: 3px solid var(--wine);
    background: rgba(140, 48, 66, 0.05);
  }

  body.print-current [data-view],
  body.print-current .print-guide,
  body.print-current .all-view,
  body.print-current .home-view {
    display: none !important;
  }

  body.print-current .draw-view {
    display: block !important;
  }

  body.print-current .draw-heading {
    display: none;
  }

  body.print-current .drawn-card-wrap {
    width: 100%;
  }

  body.print-current .action-card {
    height: 270mm;
    overflow: hidden;
    break-inside: avoid;
    border: 1px solid #aa9c94;
    border-radius: 3mm 12mm 3mm 12mm;
    box-shadow: none;
  }

  body.print-current .card-front {
    display: none !important;
  }

  body.print-current .card-back {
    display: block !important;
    min-height: 0;
    background: linear-gradient(155deg, var(--stage-soft), #fff 48%);
  }

  body.print-current .card-back-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3mm 7mm;
    padding: 5mm 8mm;
    font-size: 8.7pt;
    line-height: 1.35;
  }

  body.print-current .back-context,
  body.print-current .prompt-box,
  body.print-current .avoid-box {
    grid-column: 1 / -1;
  }

  body.print-current .back-context {
    padding: 3mm;
  }

  body.print-current .back-context p {
    font-size: 12pt;
  }

  body.print-current .back-context blockquote {
    font-size: 9pt;
  }

  body.print-current .card-back-content h3 {
    font-size: 12pt;
  }

  body.print-current .action-steps li,
  body.print-current .result-grid li {
    margin: 1mm 0;
  }

  body.print-current .prompt-box {
    padding: 3mm;
  }

  body.print-current .prompt-box pre {
    overflow: visible;
    font-size: 7.8pt;
    line-height: 1.32;
  }
}
