.picture-face {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 7;
  padding: 0;
  overflow: hidden;
  border: 1px solid #47382342;
  border-radius: 9px;
  background: #fff3d8;
  box-shadow: 0 2px 3px #35230f18, 0 14px 24px -13px #35230f72;
}
.picture-face > img, .picture-face > canvas {
  display: block;
  width: 88.889%;
  height: auto;
  max-height: 95.238%;
  object-fit: contain;
  border-radius: 0;
}
.hero-price a, .reveal-explore { text-underline-offset: 4px; }
.table-photo .art-card { max-width: 215px; margin: auto; transform: rotate(-2deg); }
.scene-tab img { border-radius: 6px; object-fit: cover; }
.source-preview { justify-content: center; background: #f3eee2; }
.source-preview canvas { display: block; width: min(100%, 230px); height: auto; border: 10px solid white; box-shadow: 0 4px 13px #24190f19; transform: rotate(2deg); }
.illustration-consent canvas { width: 48px; height: 48px; border-radius: 7px; flex: 0 0 48px; }
.illustration-consent {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f5;
  font-size: 13px;
  line-height: 1.5;
}
.illustration-label { text-transform: uppercase; }
.is-drawing .announcement, .is-drawing footer, .is-drawing .site-header { display: none; }
.art-status {
  width: min(calc(100% - 48px), 420px);
  margin: 0 auto;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
.is-drawing { background: #fff; }
.is-drawing .art-status { min-height: 100vh; min-height: 100svh; }
.art-status h1 { font: 750 clamp(32px, 6vw, 48px)/1.04 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.art-status p { margin: 12px 0 28px; color: #53574e; line-height: 1.55; }
.drawing-stage, .drawing-time { font-size: 13px; }
.drawing-stage { font-weight: 650; }
.drawing-time { color: #53574e; font-variant-numeric: tabular-nums; }
.art-status progress {
  appearance: none; border: 0; display: block; width: 100%; height: 8px;
  border-radius: 8px; overflow: hidden; margin: 9px 0; background: #e8ebf2; accent-color: var(--blue);
}
.art-status progress::-webkit-progress-bar { background: #e8ebf2; border-radius: 8px; }
.art-status progress::-webkit-progress-value { background: var(--blue); border-radius: 8px; }
.art-status progress::-moz-progress-bar { background: var(--blue); border-radius: 8px; }
.art-status progress:indeterminate { appearance: auto; }
.art-error-actions { display: grid; justify-items: start; gap: 16px; }
.order-summary .illustration-label { font-size: 10px; letter-spacing: .1em; font-weight: 700; }
.order-summary .order-illustration-note { margin-top: 14px; }
/* Show a playable pair at the same scale before offering the rest of the deck. */
.reveal-shell .flow-top { margin-bottom: clamp(15px, 2.4vw, 30px); }
.pair-heading { margin-bottom: clamp(14px, 2vw, 25px); }
.pair-heading .eyebrow { margin: 0; text-transform: uppercase; }
.pair-heading h1 {
  margin: 5px 0 8px;
  font: 800 clamp(30px, 4.2vw, 60px)/1.02 var(--display);
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}
.pair-heading > p:last-child { color: #4c4b45; line-height: 1.4; }
.reveal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, .85fr);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
}
.pair-stage {
  container-type: inline-size;
  border-radius: 14px;
  background: #eee6d6;
}
.pair-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 42%));
  justify-content: center;
  align-items: center;
  gap: 3.5%;
  padding: clamp(18px, 5cqw, 32px) 0 clamp(13px, 4cqw, 25px);
}
.pair-picture { position: relative; transform: rotate(-3deg); }
.picture-zoom {
  position: absolute; inset: 0; padding: 0; border: 0;
  border-radius: 9px; background: transparent; cursor: zoom-in;
}
.picture-zoom span {
  position: absolute; bottom: -3px; right: -3px; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; background: #fff9ec; color: #28251e;
  box-shadow: 0 1px 4px #37261040; font: 20px/1 sans-serif;
}
.picture-source { display: flex; gap: 10px; align-items: center; margin: 9px 2px 0; color: white; font-size: 13px; }
.picture-source canvas { width: 40px; height: 40px; border-radius: 5px; }
.pair-caption {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  aspect-ratio: 5 / 7;
  min-width: 0;
  padding: clamp(10px, 3.4cqw, 22px);
  border-radius: 9px;
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 18px -10px #241f3b66;
  transform: rotate(3deg);
}
.pair-caption > span, .pair-caption small {
  font-size: clamp(8px, 1.8cqw, 11px);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.pair-caption small { font-size: clamp(7px, 1.5cqw, 9px); }
.pair-caption p {
  margin: auto 0;
  padding: 4px 0;
  font: 750 clamp(15px, 4.1cqw, 27px)/1.12 var(--display);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.pair-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 5% 8px;
  border-top: 1px solid #35230f20;
}
#pair-count { font-size: 12px; color: #514a3f; font-variant-numeric: tabular-nums; }
.pair-next {
  display: inline-flex;
  min-height: 42px;
  gap: 7px;
  align-items: center;
  padding: 0 3px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: 700 14px var(--body);
}
.pair-next:hover { text-decoration: underline; text-underline-offset: 3px; }
.pair-next span { font: 22px/1 sans-serif; }
.deck-heading-row { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.deck-offer h2 { font: 780 clamp(26px, 3.2vw, 46px)/1.02 var(--display); letter-spacing: -.05em; }
.deck-offer p { margin-top: 9px; font-size: 15px; line-height: 1.5; color: #55564c; }
.deck-offer .button { margin-top: 17px; }
.deck-fan { position: relative; width: 83px; height: 76px; }
.deck-fan i {
  position: absolute; top: 3px; left: 20%; width: 50%; aspect-ratio: 5 / 7;
  display: grid; place-items: center; border: 1px solid #6b4b23;
  border-radius: 5px; background: #efb543; color: #352b22;
  font: 700 24px/1 var(--display); transform-origin: 50% 96%;
}
.deck-fan i:first-child { transform: rotate(-21deg); }
.deck-fan i:nth-child(2) { transform: rotate(-5deg); }
.deck-fan i:last-child { transform: rotate(13deg); outline: 1px solid #8d662d; outline-offset: -5px; }
.reveal-explore { display: inline-block; margin-top: 16px; }
.reveal-round { margin-top: 26px; border-block: 1px solid var(--line); }
.reveal-round summary { padding: 16px 0; font-weight: 650; cursor: pointer; }
.reveal-round .round-table { display: block; margin-bottom: 16px; }
.reveal-round [hidden] { display: none; }

@media (max-width: 720px) {
  .is-building:has(.reveal-shell) .site-header { height: 60px; }
  .reveal-shell { margin-top: 10px; }
  .reveal-shell .flow-top { margin-bottom: 8px; }
  .reveal-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pair-stage { width: 100%; max-width: 510px; justify-self: center; }
  .deck-heading-row { flex-direction: row; gap: 13px; align-items: center; }
  .deck-fan { width: 61px; height: 51px; flex: none; }
  .deck-offer p { margin-top: 3px; font-size: 13px; line-height: 1.35; }
  .deck-offer .button { width: 100%; margin-top: 10px; }
  .reveal-round { margin-top: 18px; }
  .table-photo .art-card { max-width: 170px; }
}
@media (max-width: 720px) and (max-height: 640px) {
  .deck-offer { display: flex; flex-direction: column; }
  .deck-offer .button { order: -1; margin: 0 0 12px; }
}
