/* ==========================================================================
   LISITSA REAL EMBOSSED POSTCARDS & VELVET ENVELOPE (1:1 FROM PRODUCT)
   Ember Gatefold 3D Matte Shutters + Gold-Foil Ivory Cardstock + Velvet Envelope
   ========================================================================== */
:root {
  --m-font-serif: var(--lis-font-display);
  --m-font-script: var(--lis-font-script);
  --m-font-sc: var(--lis-font-sc);
  --m-font-sans: var(--lis-font-sans);
  --sb-cream-text: #fdf4e7;
  --sb-gold-bright: #ffe9b0;
  --sb-gold-foil: linear-gradient(135deg, #fff0ba 0%, #e1af52 50%, #f7da8c 100%);
  --sb-burgundy: #7e1930;
  --sb-ink: #2b1a14;
  --sb-ink-soft: #4e372b;
  --sb-ink-muted: #7b6050;
}

/* Ensure 3D shutters and ember burn clip horizontally on narrow phones (0 horizontal scroll) while preserving full vertical flame/shadow headroom */
.ds-ember-preview-wrap {
  width: 100%;
  padding: 40px 0 38px;
  overflow-x: clip;
  overflow-y: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  container-type: inline-size;
}
.art-pc-filigree-stamp { color: #9d6d34; }
.art-pc-filigree-stamp text { fill: #7e4f21; }
.ds-sleeve-standalone {
  position: relative;
  width: min(360px, 100%);
  height: 506px;
  margin: 0 auto;
}
.ds-shutter-standalone {
  position: relative;
  width: 240px;
  min-height: 420px;
  margin: 0 auto;
}
.ds-shutter-standalone .gatefold-shutter {
  position: relative;
  width: 100%;
  height: 420px;
}
.ds-shutter-standalone .shutter-back {
  transform: none;
  position: relative;
  height: 100%;
}
.ds-spread-standalone {
  position: relative;
  width: min(416px, 100%);
  min-height: 560px;
  margin: 0 auto;
}
.ds-spread-standalone .gatefold-center-panel {
  position: relative;
  min-height: 560px;
}
@media (max-width: 980px) {
  .ds-ember-preview-wrap { padding: 28px 0 26px; }
}

.sb-btn-royal {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #91213a 0%, #5c1021 100%) padding-box,
    var(--sb-gold-foil) border-box;
  color: #ffefc8;
  font-family: var(--m-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48), 0 0 18px rgba(247, 217, 139, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sb-btn-royal:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.sb-btn-royal--card {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.84rem;
}

/* ==================== PHASE 2: REAL EMBER GATEFOLD POSTCARD ==================== */
.art-pc-line .lis-input {
  min-height: 0;
  min-width: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #36171a;
}
.art-pc-wish-box .lis-textarea {
  min-height: 128px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--lis-font-handwriting, "Marck Script", cursive);
  font-size: 1.08rem;
  line-height: 1.28;
  color: #36181a;
  resize: none;
  overflow: hidden;
}
.ember-sleeve-prompt .lis-badge {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}
.shutter-lining-epigraph .lis-body {
  color: inherit;
  font-size: inherit;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}
.gatefold-center-paper .gatefold-actions-row .lis-btn {
  width: 100%;
  min-height: 38px;
}


.ember-gatefold-stage {
  position: relative;
  /* Strict locked 412:582 postcard proportion (NEVER squishes or stretches on phones!)
     On narrow phones: fills ~84% width so opened shutter edges peek symmetrically on left & right */
  width: min(412px, 84cqi);
  aspect-ratio: 412 / 582;
  height: auto;
  margin: 0 auto;
  perspective: 2200px;
  flex-shrink: 0;
}

.gatefold-envelope {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.88s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Steady 1:1 camera framing — zero zoom-out / zoom-in jitter; shutters swing open and fade cleanly away */
.ember-gatefold-stage[data-ember-stage="opened"][data-camera="reveal"] .gatefold-envelope,
.ember-gatefold-stage[data-ember-stage="opened"][data-camera="focus"] .gatefold-envelope {
  transform: scale(1);
}

.gatefold-center-panel {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(170deg, #fcf6ec 0%, #f5ead9 60%, #ecdec8 100%);
  border: 1.5px solid rgba(196, 150, 74, 0.62);
  box-shadow:
    0 28px 66px rgba(0, 0, 0, 0.56),
    inset 0 0 0 6px rgba(252, 246, 236, 0.92),
    inset 0 0 0 7.5px rgba(196, 150, 74, 0.38);
  overflow: hidden;
  container-type: inline-size;
  z-index: 1;
}

.ember-gatefold-stage:not([data-ember-stage="opened"]) .gatefold-center-panel {
  pointer-events: none;
}

.ember-gatefold-stage[data-ember-stage="opened"] .gatefold-center-panel {
  pointer-events: auto;
}

.gatefold-envelope > [data-lis-component="LisPostcardGatefoldShuttersOrgan"] {
  position: absolute;
  inset: 0;
  z-index: 4;
  transform-style: preserve-3d;
  pointer-events: none;
}

.gatefold-paper-emboss {
  position: absolute;
  inset: 0;
  background: url("/src/assets/compare/card-ivory.webp") center center / cover no-repeat;
  opacity: 0.24;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* Pure clean cream paper over the center -> keeps ornate pattern strictly along the outer frame edges! */
.gatefold-paper-clean-center {
  position: absolute;
  inset: 17px;
  border-radius: 10px;
  background: linear-gradient(176deg, #fcf7ee 0%, #f7eee0 100%);
  box-shadow: 0 0 18px 8px rgba(250, 243, 230, 0.94);
  pointer-events: none;
  z-index: 1;
}

.gatefold-paper-border {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(176, 128, 56, 0.36);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}

.gatefold-crease {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(168, 122, 48, 0.25), transparent);
  z-index: 2;
  pointer-events: none;
}

.gatefold-crease-left { left: 8px; }
.gatefold-crease-right { right: 8px; }

.gatefold-cast-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gatefold-cast-left { left: 0; background: linear-gradient(90deg, rgba(28, 14, 4, 0.14), transparent); }
.gatefold-cast-right { right: 0; background: linear-gradient(270deg, rgba(28, 14, 4, 0.14), transparent); }
.ember-gatefold-stage[data-ember-stage="opened"] .gatefold-cast-shadow { opacity: 1; }

.gatefold-center-paper {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: clamp(14px, 5.5cqi, 24px) clamp(14px, 6cqi, 26px) clamp(14px, 5cqi, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 3.2cqi, 14px);
  color: #321619;
  text-align: left;
  overflow-y: auto;
  scrollbar-width: thin;
}

.gatefold-center-head {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(182, 134, 68, 0.26);
}

.card-inside-kicker {
  font-family: var(--m-font-sc);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c5a2c;
}

.card-section-label {
  display: block;
  font-family: var(--m-font-sc);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8c5a2c;
  margin-bottom: 5px;
}

/* 1. Main Editorial Focal Point: Bright Royal Burgundy Evening Question */
.gatefold-question-hero {
  text-align: center;
  padding: 12px 14px 13px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(128, 22, 42, 0.05) 0%, rgba(212, 160, 74, 0.07) 100%);
  border: 1px solid rgba(138, 24, 44, 0.15);
}

.gatefold-question-hero .card-section-label {
  color: #8f2235;
  margin-bottom: 6px;
}

.gatefold-question-text {
  margin: 0;
  font-family: var(--m-font-sans);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: #7d1527;
}

/* 2. Minimalist Writing Box */
.gatefold-response-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-response-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-response-head .card-section-label { margin-bottom: 0; }

.btn-fill-sample {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--m-font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a2434;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.btn-fill-sample:hover {
  opacity: 1;
}

.card-textarea {
  width: 100%;
  resize: none;
  height: 76px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(182, 134, 68, 0.36);
  background: rgba(255, 253, 248, 0.78);
  font-family: var(--m-font-sans);
  font-size: 0.83rem;
  line-height: 1.45;
  color: #321619;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.card-textarea::placeholder {
  color: rgba(98, 66, 56, 0.56);
}

.card-textarea:focus {
  border-color: rgba(124, 24, 40, 0.6);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 0 0 3px rgba(124, 24, 40, 0.08);
}

/* 3. Second Focal Point: Clean Minimalist Practice */
.gatefold-practice-clean {
  padding: 2px 0 2px 13px;
  border-left: 2px solid rgba(186, 136, 64, 0.65);
}

.gatefold-practice-text {
  margin: 0;
  font-family: var(--m-font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.48;
  color: #3f2224;
}

/* 4. Collapsible "Почему это работает?" (Hidden until clicked!) */
.gatefold-why-disclosure {
  border-top: 1px solid rgba(182, 134, 68, 0.24);
  padding-top: 8px;
}

.gatefold-why-disclosure summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-family: var(--m-font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: #7c4c24;
  padding: 2px 0;
  transition: color 0.2s ease;
}

.gatefold-why-disclosure summary::-webkit-details-marker {
  display: none;
}

.gatefold-why-disclosure summary:hover {
  color: #5b1822;
}

.why-disclosure-chevron {
  font-size: 0.86rem;
  transition: transform 0.24s ease;
}

.gatefold-why-disclosure[open] .why-disclosure-chevron {
  transform: rotate(180deg);
}

.gatefold-why-disclosure p {
  margin: 7px 0 2px;
  font-size: 0.78rem;
  line-height: 1.46;
  color: #5f423d;
  animation: whyReveal 0.24s ease;
}

@keyframes whyReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 5. Bottom Action Button */
.gatefold-actions-row {
  margin-top: auto;
  padding-top: 6px;
}

.gatefold-actions-row .sb-btn-royal--card {
  padding: 12px 18px;
  font-size: 0.88rem;
}

/* 3D Shutters */
.gatefold-shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 4;
  transform-style: preserve-3d;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.2, 0.86, 0.28, 1), opacity 0.45s ease;
}

.gatefold-shutter-left { left: 0; transform-origin: left center; }
.gatefold-shutter-right { right: 0; transform-origin: right center; }

.shutter-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.gatefold-shutter-left .shutter-face { border-radius: 14px 0 0 14px; }
.gatefold-shutter-right .shutter-face { border-radius: 0 14px 14px 0; }

.shutter-front--restrained {
  background: var(--shutter-base, #11223d);
  border: 1px solid rgba(0, 0, 0, 0.28);
}

.gatefold-shutter-left .shutter-front--restrained {
  border-right: 1px solid rgba(0, 0, 0, 0.34);
  box-shadow:
    inset -8px 0 16px rgba(0, 0, 0, 0.24),
    inset 1px 1px 0 rgba(0, 0, 0, 0.18);
}

.gatefold-shutter-right .shutter-front--restrained {
  border-left: 1px solid rgba(0, 0, 0, 0.26);
  box-shadow:
    inset 8px 0 16px rgba(0, 0, 0, 0.2),
    inset -1px 1px 0 rgba(0, 0, 0, 0.18);
}

.ember-gatefold-stage[data-stamp-theme="light"] .shutter-front--restrained {
  border-color: rgba(24, 16, 8, 0.22);
}

.shutter-matte-grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.08), transparent 60%);
}

.shutter-matte-hairline {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--shutter-hairline, rgba(231, 184, 92, 0.22));
  border-radius: 6px;
}

.shutter-back {
  transform: rotateY(180deg);
  background: linear-gradient(176deg, #fbf4e6 0%, #f1e2c8 100%);
  border: 1px solid rgba(196, 146, 58, 0.45);
  color: #9c671a;
  display: flex;
}

.shutter-lining-frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 28px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shutter-lining-kicker {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9c671a;
  margin-bottom: 6px;
}

.shutter-lining-caption {
  font-family: var(--m-font-serif);
  font-size: 1.24rem;
  color: var(--sb-ink);
  margin-bottom: 4px;
}

.shutter-lining-sub {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--sb-ink-muted);
}

.shutter-lining-line {
  width: 34px;
  height: 1px;
  background: rgba(182, 134, 58, 0.45);
  margin: 16px 0;
}

.shutter-lining-epigraph {
  margin: 0;
  font-family: var(--m-font-serif);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--sb-ink-soft);
}

.shutter-ritual-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--sb-ink-soft);
}

.shutter-lining-footer {
  margin-top: auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #9c671a;
}

.gatefold-seam-glow {
  position: absolute;
  top: 2%;
  bottom: 2%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  z-index: 5;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34) 50%, rgba(0, 0, 0, 0.08));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ember-gatefold-stage[data-ember-stage="pause"] .gatefold-seam-glow { opacity: 1; }
.ember-gatefold-stage[data-ember-stage="pause"] .gatefold-shutter {
  pointer-events: auto;
  cursor: pointer;
}
.ember-gatefold-stage[data-ember-stage="opened"] .gatefold-shutter-left {
  transform: rotateY(-150deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease 0.82s;
}
.ember-gatefold-stage[data-ember-stage="opened"] .gatefold-shutter-right {
  transform: rotateY(150deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease 0.82s;
}

.ember-sleeve-stage {
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: #0d1d38 padding-box, var(--sb-gold-foil) border-box;
  box-shadow: 0 28px 66px rgba(0, 0, 0, 0.62), 0 0 30px rgba(231, 184, 92, 0.22);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ember-sleeve-stage:hover { transform: translateY(-2px); }
.ember-sleeve-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.ember-sleeve-prompt {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #91213a 0%, #5c1021 100%) padding-box,
    var(--sb-gold-foil) border-box;
  color: #ffefc8;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.56), 0 0 18px rgba(247, 217, 139, 0.28);
}

.ember-gatefold-stage[data-ember-stage="burning"] .ember-sleeve-stage,
.ember-gatefold-stage[data-ember-stage="pause"] .ember-sleeve-stage,
.ember-gatefold-stage[data-ember-stage="opened"] .ember-sleeve-stage {
  opacity: 0;
  pointer-events: none;
}

.ember-burn-canvas {
  position: absolute;
  inset: -76px;
  width: calc(100% + 152px);
  height: calc(100% + 152px);
  z-index: 10;
  pointer-events: none;
}

.intro-postcard-foot {
  display: flex;
  justify-content: center;
}

.intro-quiet-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 4px;
  color: rgba(247, 217, 139, 0.82);
  font-family: var(--m-font-sans);
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(247, 217, 139, 0.34);
  cursor: pointer;
}

.intro-quiet-link:hover {
  color: var(--sb-gold-bright);
  border-color: var(--sb-gold-bright);
}

/* ==========================================================================
   ARTISTIC OPPOSITE-ANGLE FAN-OUT: PROMINENT VELVET ENVELOPE + CENTER-SEAL POSTCARD
   ========================================================================== */
.fanned-gift-stage {
  position: relative;
  width: min(880px, 100%);
  margin: 22px auto 48px;
  padding: 58px 10px 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Back Layer: MUCH MORE VISIBLE Real Plush Burgundy Velvet Folded Envelope angled left! */
.fanned-envelope-layer {
  position: absolute;
  left: -1%;
  top: 0;
  width: 68%;
  max-width: 575px;
  z-index: 1;
  transform: rotate(-11deg) translate(-8px, 6px);
  filter: drop-shadow(0 30px 52px rgba(68, 12, 20, 0.36));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.fanned-envelope-img {
  width: 100%;
  height: auto;
  display: block;
}

.fanned-gift-stage:focus-within .fanned-envelope-layer {
  transform: rotate(-14deg) translate(-20px, 8px);
}

.fanned-gift-stage[data-card-state="tucked"] .fanned-envelope-layer {
  transform: rotate(-2deg) translate(130px, 24px) scale(1.04);
}

/* Front Layer: Refined Embossed Postcard fanned right-bottom so the velvet envelope & wax seal shine! */
.fanned-postcard-layer {
  position: relative;
  z-index: 3;
  width: min(560px, 94%);
  margin-left: auto;
  margin-right: 0;
  transform: rotate(3.4deg) translate(12px, 52px);
  filter: drop-shadow(0 26px 46px rgba(58, 22, 18, 0.28));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fanned-gift-stage:focus-within .fanned-postcard-layer {
  transform: rotate(0.4deg) translate(12px, 44px);
}

.fanned-gift-stage[data-card-state="tucked"] .fanned-postcard-layer {
  transform: rotate(-4deg) translate(-96px, 24px) scale(0.84);
  opacity: 0.94;
}

.art-postcard {
  position: relative;
  border-radius: 16px;
  padding: 24px 26px;
  background: linear-gradient(168deg, #fcf6ec 0%, #f5ead9 60%, #ecdec8 100%);
  color: #2f1b18;
  overflow: hidden;
  border: 1.5px solid rgba(196, 150, 74, 0.62);
  box-shadow:
    inset 0 0 0 6px rgba(252, 246, 236, 0.92),
    inset 0 0 0 7.5px rgba(196, 150, 74, 0.42);
}

/* Real Gold-Foil Embossed Ivory Cardstock Watercolor Ornament Texture layered delicately! */
.art-postcard-emboss {
  position: absolute;
  inset: 0;
  background: url("/src/assets/compare/card-ivory.webp") center center / cover no-repeat;
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.art-postcard-border {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(176, 128, 56, 0.35);
  border-radius: 10px;
  pointer-events: none;
}

.art-postcard-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 22px;
  align-items: stretch;
  padding: 6px 4px;
}

.art-pc-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.art-pc-kicker {
  display: block;
  font-family: var(--m-font-sc);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8c5a2c;
  margin-bottom: 4px;
}

.art-pc-title {
  font-family: var(--m-font-serif);
  font-size: clamp(1.55rem, 2.6vw, 2.02rem);
  line-height: 1.04;
  color: #3a1419;
}

.art-pc-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.art-pc-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(116, 48, 38, 0.26);
  font-size: 0.78rem;
  color: #6d4d44;
}

.art-pc-line span {
  flex-shrink: 0;
  font-weight: 600;
}

.art-pc-line input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--m-font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #361519;
  outline: none;
  padding: 0;
}

.art-pc-line input:focus {
  color: #7c1828;
}

.art-pc-seal-row {
  display: flex;
  align-items: center;
  padding-top: 4px;
}

.art-pc-seal-row .stamp-pc-oval-seal {
  margin-left: 0;
}

.art-pc-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.art-pc-house-stamp {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.art-pc-mini-badge {
  position: relative;
  z-index: 2;
  margin-right: -16px;
  width: 48px;
  height: 56px;
  border-radius: 6px;
  background: #f3e9da;
  border: 1.5px dashed rgba(132, 86, 42, 0.45);
  box-shadow: 0 6px 14px rgba(58, 22, 18, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--m-font-serif);
  font-size: 1.15rem;
  line-height: 0.92;
  color: #5b1822;
}

.art-pc-arched-photo {
  width: 148px;
  height: 112px;
  padding: 5px;
  border-radius: 74px 74px 8px 8px;
  background: #fffaf2;
  border: 1.5px solid rgba(196, 150, 74, 0.65);
  box-shadow: 0 10px 22px rgba(58, 22, 18, 0.16);
  overflow: hidden;
}

.art-pc-arched-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 68px 68px 4px 4px;
  display: block;
}

.art-pc-wish-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 252, 246, 0.65);
  border: 1px dashed rgba(182, 134, 68, 0.34);
}

.art-pc-cursive {
  width: 100%;
  border: 0;
  background: transparent;
  resize: none;
  overflow: hidden;
  font-family: "Marck Script", cursive;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.24;
  color: #36181a;
  outline: none;
  padding: 0;
}

.art-postcard-grid--centered-seal {
  grid-template-columns: minmax(0, 0.96fr) 92px minmax(0, 1.16fr);
  gap: 10px;
  align-items: center;
}

.art-pc-center-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
}

.art-pc-divider-line {
  width: 1px;
  flex: 1;
  min-height: 22px;
  background: linear-gradient(180deg, transparent, rgba(168, 122, 56, 0.48), transparent);
}

.art-pc-filigree-stamp {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  opacity: 0.92;
  filter: drop-shadow(0 2px 6px rgba(132, 86, 36, 0.16));
}

.art-pc-right--clean {
  justify-content: center;
}

@media (max-width: 860px) {
  .bf-showcase-grid,
  .art-postcard-grid,
  .art-postcard-grid--centered-seal {
    grid-template-columns: 1fr;
  }

  .art-pc-center-seal {
    flex-direction: row;
    height: auto;
    padding: 4px 0;
  }

  .art-pc-divider-line {
    width: auto;
    height: 1px;
    min-height: 0;
    background: linear-gradient(90deg, transparent, rgba(168, 122, 56, 0.48), transparent);
  }

  .art-pc-filigree-stamp {
    width: 76px;
    height: 76px;
  }

  .fanned-gift-stage {
    padding-top: 108px;
    padding-bottom: 24px;
    justify-content: center;
  }

  .fanned-envelope-layer {
    width: 86%;
    left: 4%;
    top: 0;
    transform: rotate(-8deg);
  }

  .fanned-postcard-layer {
    width: 96%;
    margin: 0 auto;
    transform: rotate(1.8deg);
  }
}

/* ==================== NEWEST /v5 PRODUCTION POSTCARD UPGRADES ==================== */
/* 1. Collector archival cotton letterpress lining + SVG border + Star/Moon crests (compare.css) */
/* Collector's archival cotton letterpress lining on inside of both shutters */
.shutter-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.55), transparent 65%),
    linear-gradient(180deg, #fcf5e7 0%, #eee0c4 100%);
  padding: 14px 11px;
  box-shadow: inset 0 0 28px rgba(74, 52, 28, 0.18);
}

.gatefold-shutter-left .shutter-back {
  border-radius: 0 16px 16px 0;
  box-shadow:
    inset -12px 0 22px rgba(68, 44, 18, 0.18),
    inset 0 0 24px rgba(74, 52, 28, 0.12);
}

.gatefold-shutter-right .shutter-back {
  border-radius: 16px 0 0 16px;
  box-shadow:
    inset 12px 0 22px rgba(68, 44, 18, 0.18),
    inset 0 0 24px rgba(74, 52, 28, 0.12);
}

.shutter-lining-frame {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 28px 18px;
  text-align: center;
  color: var(--card-accent);
}

.shutter-inner-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--card-gold);
  pointer-events: none;
}

.shutter-inner-crest {
  color: var(--card-gold);
  margin-bottom: 4px;
  opacity: 0.92;
}

.shutter-lining-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8f6b33;
}

.shutter-lining-caption {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-accent);
}

.shutter-lining-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b543a;
}

.shutter-lining-line {
  width: 56%;
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(90deg, transparent, var(--card-gold), transparent);
}

.shutter-lining-epigraph {
  margin: 2px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.42;
  color: #4f3d2b;
  max-width: 152px;
}

.shutter-ritual-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #5b4732;
}

.shutter-lining-footer {
  position: absolute;
  bottom: 22px;
  left: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #93713c;
  opacity: 0.85;
}


/* 2. 2-Layer Switchable Cardstock + Transparent Gold Foil + Real Blind-Embossed Shutters (advent-v5.css) */
/* ==================== 2-LAYER SWITCHABLE CARDSTOCK + TRANSPARENT FOIL ENGRAVING ==================== */
.card-velvet-base,
.card-foil-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

.has-foil-overlay > .card-cover-img {
  opacity: 0 !important;
  pointer-events: none;
}

.has-foil-overlay > .card-velvet-base {
  display: block;
  z-index: 0;
  /* Calm, aristocratic deep velvet cardstock base so the pure antique-gold foil shines cleanly (full-relief blind-embossed shutters live directly underneath when burned!) */
  background:
    linear-gradient(132deg, rgba(255, 250, 238, 0.11) 0%, transparent 36%, rgba(0, 0, 0, 0.14) 60%, rgba(0, 0, 0, 0.26) 100%),
    var(--postcard-shutter-surface, linear-gradient(160deg, #1b3252 0%, #102038 55%, #0a1628 100%));
}

.has-foil-overlay > .card-foil-overlay {
  display: block;
  z-index: 1;
  object-fit: fill;
  filter: drop-shadow(1.5px 2.5px 2.5px rgba(0, 0, 0, 0.48));
}

.postcard-overlay[data-stamp-theme="light"] .has-foil-overlay > .card-foil-overlay {
  filter: drop-shadow(0 1px 2px rgba(58, 38, 16, 0.45)) contrast(1.06);
}

/* ==================== STORY-BOUND POSTCARD COVER STAMP (E.G. DAY 3 SNOWMAN) ==================== */
.card-front-stamp.is-story-stamp {
  border-radius: 20px;
  padding: 12px 20px 13px;
  max-width: 88%;
  background: rgba(10, 16, 28, 0.74);
  border: 1.5px solid rgba(242, 207, 130, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 240, 200, 0.2);
}

.postcard-overlay[data-stamp-theme="light"] .card-front-stamp.is-story-stamp {
  background: rgba(44, 30, 16, 0.86);
  border-color: rgba(212, 174, 102, 0.88);
}

.card-front-stamp.is-story-stamp .card-front-date {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #fff6e0;
}

.card-front-stamp.is-story-stamp .card-front-sub {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0.015em;
  color: #f6d78b;
}

/* ==================== REAL GENERATED PHOTOGRAPHIC BLIND-EMBOSSED SHUTTERS (ZERO CSS/SVG FAKE EMBOSSING, ZERO GOLD!) ==================== */
.shutter-front--restrained {
  background-color: var(--card-accent, #102038) !important;
  background-image: var(--postcard-emboss-img, url("/src/assets/v5/shutters/emboss-navy.webp?v=20261124c61")) !important;
  background-size: 200% 100% !important;
  background-repeat: no-repeat !important;
}

.gatefold-shutter-left .shutter-front--restrained {
  background-position: 0% 50% !important;
}

.gatefold-shutter-right .shutter-front--restrained {
  background-position: 100% 50% !important;
}

/* Hide fake CSS grain & fake CSS border — the real generated photograph already contains authentic 3D blind-embossed cotton paper & frame! */
.shutter-front--restrained .shutter-matte-grain,
.shutter-front--restrained .shutter-matte-hairline {
  display: none !important;
}

.shutter-front--restrained .shutter-edge-thickness {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34) 50%, transparent) !important;
}

/* Inner open card uses clean warm ivory cotton cardstock (zero ornamental patterns behind text) */
.gatefold-center-panel {
  background: linear-gradient(168deg, #fdf8ee 0%, #faf2e4 58%, #f4e8d3 100%) !important;
}


/* 3. Story stamp & foil compatibility inside .ember-gatefold-stage */
.ember-gatefold-stage[data-stamp-theme="light"] .has-foil-overlay > .card-foil-overlay {
  filter: drop-shadow(0 1px 2px rgba(58, 38, 16, 0.45)) contrast(1.06);
}
.ember-gatefold-stage[data-stamp-theme="light"] .card-front-stamp.is-story-stamp {
  background: rgba(44, 30, 16, 0.86);
  border-color: rgba(212, 174, 102, 0.88);
}
.ember-sleeve-stage .card-front-stamp {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.gatefold-center-panel .gatefold-paper-emboss,
.gatefold-center-panel .gatefold-paper-clean-center {
  display: none;
}
