.print-card{display:none}

@media print{
  @page{size:letter;margin:0}
  html,body{width:100%;margin:0;padding:0}
  /* Hide all non-print layout with display:none (removes from flow so nothing
     spills to a second page). The ticket and its secret fields (WIF/descriptor/
     mnemonic) are display:none'd explicitly as belt-and-braces. */
  header.site,.mobile-menu,footer.site,
  .breadcrumb,.create-head,.create-grid,.cta-band,
  .ticket,.advanced,.mono.secret{display:none!important}
  #result{margin:0!important}
  .print-card{
    display:grid;
    grid-template-columns:4.25in 4.25in;
    grid-template-rows:5.5in 5.5in;
    width:8.5in;height:11in;
    position:absolute;left:0;top:0;
    -webkit-print-color-adjust:exact;print-color-adjust:exact;
  }

  /* --- dashed cut/fold guide lines --- */
  .pc-guide-v{
    position:absolute;left:4.25in;top:0;width:0;height:11in;
    border-left:1.5px dashed #B9AE9E;z-index:10;
  }
  .pc-guide-h{
    position:absolute;top:5.5in;left:0;width:8.5in;height:0;
    border-top:1.5px dashed #B9AE9E;z-index:10;
  }

  /* --- quadrants --- */
  .q{position:relative;overflow:hidden;background:#FFFFFF}
  .q-inner{position:absolute;inset:0}
  /* Top row (front + back) prints upside-down so it reads upright after the
     bottom-up-then-side fold. Bottom row stays unrotated. */
  .q-inner.front,.q-inner.back{transform:rotate(180deg)}

  /* FRONT (top-left) — pure white, ink text, celebratory gift */
  .q-inner.front{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;
  }
  .pc-gift{
    width:1.3in;height:1.22in;
    transform:rotate(-6deg);
    filter:drop-shadow(0 4px 10px rgba(204,98,0,.15));
  }
  .pc-title{
    font-family:var(--serif);font-weight:600;font-size:34px;color:var(--ink);
    letter-spacing:-.01em;margin:0;
  }
  .pc-title em{font-style:italic;color:var(--orange-deep)}
  .pc-spark{position:absolute;font-size:18px;opacity:.9}
  .pc-spark.s1{left:14%;top:14%;color:var(--gold)}
  .pc-spark.s2{right:15%;top:26%;color:#2E6FD8}
  .pc-spark.s3{left:28%;bottom:14%;color:#7FB3F0}
  .pc-orbit{
    position:absolute;right:6%;top:8%;width:0.5in;height:0.5in;
    border:1.5px dashed #2E6FD8;border-radius:50%;opacity:.7;
  }
  /* confetti — small angled pieces, top-heavy */
  .pc-conf{position:absolute;border-radius:1px}
  .pc-conf.c1{left:10%;top:10%;width:6px;height:3px;background:#2E6FD8;transform:rotate(24deg)}
  .pc-conf.c2{left:22%;top:6%;width:4px;height:4px;background:var(--orange);transform:rotate(48deg);border-radius:50%}
  .pc-conf.c3{left:34%;top:14%;width:6px;height:3px;background:var(--gold);transform:rotate(-18deg)}
  .pc-conf.c4{right:12%;top:8%;width:4px;height:4px;background:#7FB3F0;transform:rotate(70deg);border-radius:50%}
  .pc-conf.c5{right:24%;top:16%;width:6px;height:3px;background:var(--orange);transform:rotate(-40deg)}
  .pc-conf.c6{left:8%;top:30%;width:4px;height:4px;background:var(--gold);transform:rotate(12deg);border-radius:50%}
  .pc-conf.c7{right:8%;top:34%;width:6px;height:3px;background:#2E6FD8;transform:rotate(36deg)}
  .pc-conf.c8{left:40%;top:8%;width:4px;height:4px;background:var(--orange);transform:rotate(60deg);border-radius:50%}
  .pc-conf.c9{right:34%;top:22%;width:5px;height:3px;background:var(--gold);transform:rotate(-28deg)}

  /* BACK (top-right) — URL pinned to the bottom edge */
  .q-inner.back{
    display:flex;flex-direction:column;justify-content:flex-end;align-items:center;
    padding:0.3in 0.45in;
  }
  .pc-back-url{font-family:var(--mono);font-size:9pt;color:var(--ink-soft);margin:0}

  /* INSIDE RIGHT (bottom-right) — caption → QR → amount → greeting → unlock.
     Upright, normal flow, fixed gaps between every zone. */
  .q-inner.inside{
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
    padding:0.4in;text-align:center;
  }
  .pc-qr-cap{font-size:11px;color:var(--ink-soft);font-weight:600;margin:0 0 0.15in}
  .pc-qr{
    width:85mm;height:85mm;background:#fff;padding:3mm;
    border:1px solid var(--line);border-radius:2px;display:block;flex:none;
  }
  .pc-qr canvas{width:100%!important;height:100%!important;display:block;image-rendering:pixelated}
  .pc-net-note{font-family:var(--mono);font-size:10px;color:#111;margin:0.08in 0 0;letter-spacing:0.02em}
  .pc-amount{font-family:var(--mono);font-size:18px;color:var(--orange-deep);font-weight:600;margin:0.15in 0 0}
  .pc-msg{
    font-family:var(--serif);font-style:italic;font-size:15px;line-height:1.4;color:var(--ink);
    margin:0.12in 0 0;max-width:100%;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  }
  .pc-unlock{font-size:10.5px;color:var(--ink-soft);margin-top:auto;padding-top:0.12in}
}

@media (max-width:900px){
  .create-grid{grid-template-columns:1fr;gap:40px}
  .gift-preview{position:static}
  .gift-card{min-height:260px}
  .form-card{padding:24px}
  .ticket{padding:24px}
}
