.postcard-wall { columns: 3; column-gap: clamp(13px, 2vw, 27px); display: block; }
.postcard-wall-item {
  display: inline-block; break-inside: avoid; vertical-align: top;
  width: 100%; margin: 0 0 clamp(14px, 2vw, 26px); padding: 0; border: 0; background: none;
  text-align: start; color: #f4f1ea; cursor: pointer;
}
.postcard-wall-art {
  display: block; position: relative; overflow: hidden; border: 1px solid #e8ded443;
  border-radius: 13px; background: #151313; aspect-ratio: 3 / 2;
  isolation: isolate; transition: border-color 220ms ease, translate 220ms ease;
}
.postcard-wall-item[data-orientation="portrait"] .postcard-wall-art { aspect-ratio: 3 / 4; }
.postcard-wall-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.postcard-wall-art::after {
  content: ''; position: absolute; z-index: 0; inset: 0;
  background: linear-gradient(160deg, #05050591, transparent 31%), linear-gradient(0deg, #080403cf, transparent 52%);
}
.postcard-wall-item:hover .postcard-wall-art { border-color: #eee3dba0; translate: 0 -3px; }
.postcard-wall-serial {
  position: absolute; z-index: 1; top: 8%; left: 7%; font: 10px/1.45 Georgia, serif; letter-spacing: .15em;
  color: #f4f1ea; text-shadow: 0 1px 8px #000;
}
.postcard-wall-caption { display: flex; justify-content: space-between; gap: 7px; padding: 10px 2px 0; font: 400 13px/1.5 var(--subtitle-font); }
.postcard-wall-caption time { color: #b6a9a4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.postcard-wall-blank {
  position: absolute; z-index: 1; left: 7%; bottom: 11%; max-width: 80%;
  color: #f4f1ea; font: 700 clamp(15px, 1.6vw, 24px)/1.25 var(--heading-font);
}
.postcard-wall-art:not(:has(img)) {
  background: radial-gradient(ellipse at 100% 120%, #540b0b 0%, transparent 67%), #141212;
}
.postcard-list-dialog { width: min(1100px, calc(100vw - 28px)); padding: 0; overflow: hidden; }
.postcard-list-dialog[open] { display: flex; flex-direction: column; }
.postcard-list-dialog .guest-dialog-head {
  position: relative; flex: none; z-index: 2; margin: 0; padding: clamp(18px, 4vw, 32px);
  background: #131313; border-bottom: 1px solid #f4f1ea1a;
}
.postcard-list-scroll {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px clamp(18px, 4vw, 32px) clamp(18px, 4vw, 32px);
}
.postcard-list-dialog .postcard-wall { min-height: 0; }

.postcard-dialog {
  width: min(890px, calc(100vw - 38px)); max-height: calc(100dvh - 36px);
  padding: 0; border: 0; border-radius: 0; background: transparent;
  overscroll-behavior: contain; scrollbar-width: thin;
  overflow: auto; color: #f4f1ea;
}
.postcard-dialog::backdrop { background: #090707bb; backdrop-filter: blur(7px); }
.postcard-shell { position: relative; padding: 9px 12px 14px; }
.postcard-stage { perspective: 2000px; max-width: 790px; margin-inline: auto; }
.postcard-stage[data-orientation="portrait"] { max-width: 520px; --postcard-ratio: 3 / 4; }
.postcard-flipper {
  position: relative; aspect-ratio: var(--postcard-ratio, 3 / 2);
  transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.24,.75,.25,1);
}
.postcard-stage[data-face="back"] .postcard-flipper { transform: rotateY(180deg); }
.postcard-face {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%; min-width: 0; min-height: 0; box-sizing: border-box;
  border: 1px solid #c9bcb368; border-radius: clamp(14px, 2vw, 22px);
  transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 22px 58px #0008;
  --paper-pad: clamp(22px, 4.5vw, 47px);
}
.postcard-front {
  display: grid; background: #111011;
  transform: rotateY(0deg);
}
.postcard-photo { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.postcard-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translateZ(0);
}
.postcard-front::after {
  border-radius: inherit;
  position: absolute; z-index: 1; inset: 0; content: ''; pointer-events: none;
  background:
    linear-gradient(160deg, #0505059c 0, transparent 31%),
    linear-gradient(10deg, #060404ed 0%, #07050590 19%, #08050518 45%, transparent 61%);
}
.postcard-front:not([data-has-photo]) {
  background: radial-gradient(ellipse at 95% 106%, #570b0a 0, transparent 60%), linear-gradient(118deg,#1b191a,#0e0d0d 69%);
}
.postcard-front-ink {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--paper-pad); text-shadow: 0 2px 12px #000c;
}
.postcard-number {
  margin: 0; display: flex; gap: 11px; font: 400 11px/1.6 Georgia,serif; letter-spacing: .26em;
}
.postcard-number span + span { color: #dfd5ca; font-variant-numeric: tabular-nums; }
.postcard-number span + span::before { content: '/'; margin-right: 11px; color: #f7eee770; }
.postcard-dedication { max-width: min(85%, 420px); }
.postcard-dedication strong {
  display: block; position: relative; z-index: 1; white-space: pre-line; overflow-wrap: anywhere;
  font: 850 clamp(24px, 4vw, 46px)/1.12 var(--heading-font); letter-spacing: -.044em;
}
.postcard-dedication i {
  display: block; position: relative; z-index: 0; color: #ff211b;
  font: italic 400 clamp(23px, 3.4vw, 43px)/1.05 "Segoe Script", "Apple Chancery", "Brush Script MT", cursive;
  text-shadow: 0 1px 10px #000a; transform: rotate(-5deg); transform-origin: left center;
}
.postcard-dedication i { margin: -.17em 0 0 1.75em; }
.postcard-dedication small {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  font: 400 10px/1.6 Georgia,serif; letter-spacing: .24em; overflow-wrap: anywhere;
}
.postcard-dedication small::before { content: ''; width: 28px; height: 1px; background: #f4eee798; }

.postcard-back {
  display: grid; align-content: start; gap: clamp(12px, 2vw, 22px);
  transform: rotateY(180deg); padding: var(--paper-pad);
  overflow: hidden;
  background: radial-gradient(ellipse at 95% 113%, #4f100f 0, transparent 62%), linear-gradient(150deg,#1a1819,#0f0d0d 60%);
}
#guest-form.postcard-back { display: block; padding: 0; }
#guest-form .postcard-back-content {
  display: grid; align-content: start; gap: clamp(12px, 2vw, 22px);
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--paper-pad); scrollbar-width: none;
}
#guest-form .postcard-back-content::-webkit-scrollbar { display: none; }
#guest-form .postcard-back-head { transform: none; }
#guest-form:focus { outline: none; }
.postcard-read-back .postcard-read-message {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: none;
  padding-inline-end: 6px;
}
.postcard-read-message::-webkit-scrollbar { display: none; }
.postcard-read-message:focus-visible { outline: 1px solid #f4f1ea99; outline-offset: -1px; }
.postcard-read-back { grid-template-rows: auto minmax(0, 1fr); }
.postcard-read-back .postcard-back-head { transform: none; }
.postcard-read-back .postcard-reader-header-hit { transform: none; }
.postcard-back::before {
  border-radius: inherit;
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(#f6453028 1px, transparent 1px);
  background-size: 4px 4px; mask-image: linear-gradient(transparent 55%,#0009);
}
.postcard-back > * { position: relative; z-index: 1; }
.postcard-back-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.postcard-back-title p { margin: 4px 0 8px; font: 400 clamp(16px,2.1vw,23px)/1 Georgia,serif; letter-spacing: .25em; }
.postcard-back-title h3 { margin: 0; color: #dacdc2; font: 500 13px/1.4 var(--subtitle-font); letter-spacing: .2em; }
.postcard-back-title::after { display: block; content: ''; width: 21px; height: 1px; margin-top: 13px; background: #ee332a; }
.postcard-postage { display: flex; align-items: center; gap: clamp(5px,1vw,12px); color: #d5c8be99; }
.postcard-cancel-lines { width: clamp(82px, 14vw, 150px); height: auto; overflow: visible; }
.postcard-cancel-lines text { font: 7px Georgia,serif; letter-spacing: 1px; }
.postcard-form-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: clamp(13px,3vw,32px); }
.postcard-message, .postcard-recipient { display: grid; align-content: start; gap: 8px; min-width: 0; }
.postcard-recipient { border-inline-start: 1px solid #e4d4c92b; padding-inline-start: clamp(13px, 2.7vw, 30px); }
#guest-form label { display: block; color: #eee7df; font: 650 13px/1.55 var(--heading-font); }
#guest-form label span { margin-inline-start: 5px; color: #d7cbc0; font: 400 9px/1.4 Georgia,serif; letter-spacing: .13em; }
#guest-form label b { color: #ff5e50; }
#guest-form small { color: #cbbeb3; font: 400 12px/1.5 var(--subtitle-font); }
#guest-form textarea, #guest-form input:not([type="checkbox"]) {
  width: 100%; color: #f4f1ea; background: #08070773; border: 1px solid #d8c7bc38;
  border-radius: 11px; padding: 10px 12px; font: 400 16px/1.6 var(--subtitle-font);
}
#guest-form textarea { resize: none; min-block-size: clamp(154px, 15vw, 208px); }
#guest-form .postcard-recipient label:not(:first-child):not(.postcard-consent) { margin-top: 3px; }
.postcard-counter { justify-self: end; color: #cbbeb3; font: 12px/1.3 Arial,sans-serif; font-variant-numeric: tabular-nums; }
#guest-form .postcard-consent { display: flex; align-items: flex-start; gap: 7px; color: #e0d4c9; margin-top: 3px; font: 400 12px/1.45 var(--subtitle-font); }
.postcard-consent input {
  width: 16px; height: 16px; flex: none; margin: 1px 0 0; padding: 0; accent-color: #cf2920;
}
.postcard-send { display: flex; justify-content: flex-end; margin-top: 5px; }
.postcard-feedback { color: #fcc3b5; margin: 0; min-height: 1.1em; font: 400 12px/1.45 var(--subtitle-font); }
.postcard-feedback:empty { display: none; }
.postcard-pill, .postcard-tools, .postcard-picker-head button, .postcard-draft-prompt button {
  border: 1px solid #e6dad083; border-radius: 99px; background: #151213cb; color: #f4f1ea;
}
button.postcard-pill, .postcard-picker-head button, .postcard-draft-prompt button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; min-height: 39px;
  font: 700 13px/1.1 var(--heading-font); cursor: pointer; white-space: nowrap;
  transition: background 180ms ease,border-color 180ms ease;
}
.postcard-pill:hover, .postcard-picker-head button:hover, .postcard-draft-prompt button:hover { background: #302426; border-color: #f4f1eabd; }
.postcard-pill:disabled, .postcard-tools button:disabled, .postcard-picker-head button:disabled { opacity: .5; cursor: default; }
.postcard-pill svg { width: 15px; height: 15px; }
.postcard-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 790px; margin: 13px auto 0;
}
.postcard-toolbar > p { margin: 0; color: #d5c8be; font: 13px/1.5 var(--subtitle-font); }
.postcard-tools {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1px; padding: 3px 4px;
  border-color: #e0d3c83a;
}
.postcard-tools button {
  min-height: 35px; padding: 0 8px; border: 0; border-radius: 88px; background: transparent;
  color: #f1e9df; font: 600 12px/1 var(--heading-font); cursor: pointer;
}
.postcard-tools button:hover, .postcard-tools button[aria-expanded="true"] { background: #fff2; }
.postcard-tools button[data-postcard-step] { width: 34px; padding: 0; font: 400 23px/1 Arial,sans-serif; }
.postcard-orientation { padding-inline: 7px; font: 400 11px/1.35 var(--subtitle-font); color: #d0c3b8; }
.postcard-catalog-status { margin: 8px auto 0; color: #e0b7ae; max-width: 790px; font: 13px/1.5 var(--subtitle-font); }
.postcard-catalog-status:empty { display: none; }
.postcard-picker {
  max-width: 790px; margin: 12px auto 0; padding: 15px; border: 1px solid #d8c9c036;
  border-radius: 15px; background: #141212e8;
}
.postcard-picker-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 13px; }
.postcard-picker-head h3 { margin: 0 auto 0 0; font-size: 16px; }
.postcard-picker-head button { min-height: 32px; font-size: 12px; }
.postcard-picker-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); gap: 9px; }
.postcard-picker-grid button {
  position: relative; min-width: 0; padding: 4px; border: 1px solid transparent; border-radius: 8px;
  color: #f4f1ea; background: #201c1d; text-align: left; cursor: pointer; overflow: hidden;
}
.postcard-picker-grid button[aria-pressed="true"] { border-color: #f94237; }
.postcard-picker-grid button img { display: block; width: 100%; aspect-ratio: 5/4; object-fit: cover; background: #0e0c0d; border-radius: 5px; }
.postcard-picker-grid button span { display: block; margin: 5px 2px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px/1.4 var(--subtitle-font); }

.postcard-stage[data-orientation="portrait"] .postcard-form-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
.postcard-stage[data-orientation="portrait"] .postcard-recipient { padding: 11px 0 0; border-inline-start: 0; border-block-start: 1px solid #e4d4c92b; }
.postcard-stage[data-orientation="portrait"] .postcard-back { --paper-pad: clamp(20px,4vw,35px); }
.postcard-stage[data-orientation="portrait"] #guest-form textarea { min-block-size: 105px; }
.postcard-date-stamp {
  display: none; position: absolute; z-index: 4; right: 12%; bottom: 16%; place-content: center; text-align: center;
  color: #ff6b5b; width: 100px; height: 100px; border: 2px solid #ff65558c;
  border-radius: 50%; outline: 1px solid #ff65558c; outline-offset: -7px;
  background: #210d0c8f; font: 700 15px/1.4 var(--heading-font); transform: rotate(-13deg); pointer-events: none;
}
.postcard-date-stamp time { font: 11px/1.5 Georgia,serif; }
.postcard-stage[data-sent] .postcard-date-stamp { display: grid; animation: postcard-stamp 380ms cubic-bezier(.25,.8,.34,1) both; }
@keyframes postcard-stamp { from { opacity: 0; transform: rotate(-18deg) scale(1.2); } to {opacity: 1; transform: rotate(-13deg); } }
.postcard-thanks, .postcard-draft-prompt {
  max-width: 590px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: 17px;
  border: 1px solid #e3d3c95a; border-radius: 21px;
  padding: clamp(28px,7vw,68px) clamp(16px,4vw,40px);
  background: radial-gradient(ellipse at 60% 118%,#501312,transparent 70%),#171313;
}
.postcard-thanks h3,.postcard-draft-prompt h3 { font: 850 clamp(24px,4vw,40px)/1.2 var(--heading-font); margin: 0; }
.postcard-thanks p,.postcard-draft-prompt p { margin: 0; color: #eee4da; font: 400 16px/1.8 var(--subtitle-font); }
.postcard-thanks small { color: #c4b8af; font: 400 12px/1.5 var(--subtitle-font); }
.postcard-thanks { gap: 15px; }
.postcard-thanks .postcard-farewell {
  display: flex; align-items: center; gap: 11px; margin-top: 9px;
  color: #caa7a0; font: 400 13px/1.4 Georgia, serif; font-style: italic; letter-spacing: .045em;
}
.postcard-farewell::before, .postcard-farewell::after {
  content: ''; width: 15px; height: 1px; background: #bd726959;
}
.postcard-thanks:focus { outline: none; }
.postcard-draft-prompt > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.postcard-dialog [hidden] { display: none !important; }
.postcard-read-dialog .postcard-back { align-content: start; }
.postcard-read-message { overflow-wrap: anywhere; font-family: var(--subtitle-font); }
.postcard-read-meta { color: #c4b8ad; font-size: 13px; margin: 0 0 13px; }
.postcard-read-message blockquote { white-space: pre-wrap; margin: 0; font-size: clamp(17px,2.5vw,24px); line-height: 1.7; }
.postcard-reply { border-top: 1px solid #e8dbd137; padding-top: 12px; margin-top: 20px; }
.postcard-reply h4 { margin: 0 0 5px; color: #f89489; font-size: 13px; }
.postcard-reply p { margin: 0; white-space: pre-wrap; line-height: 1.6; }

@media (max-width: 800px) {
  .postcard-wall { columns: 2; }
}
@media (max-width: 610px) {
  .postcard-shell { overflow-x: clip; }
  .postcard-dialog { width: min(100% - 18px, 520px); max-height: calc(100dvh - 16px); }
  .postcard-shell { padding: 5px 3px 10px; }
  .postcard-face { --paper-pad: 17px; }
  .postcard-stage[data-orientation="portrait"] .postcard-back { --paper-pad: 17px; }
  .postcard-stage .postcard-form-layout { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .postcard-stage .postcard-recipient { padding: 9px 0 0; border-inline-start: 0; border-block-start: 1px solid #e4d4c92b; }
  #guest-form textarea, .postcard-stage[data-orientation="portrait"] #guest-form textarea { min-block-size: 105px; }
  .postcard-toolbar { flex-wrap: wrap; }
  .postcard-flip-button { margin-inline-start: auto; }
}
@media (max-width: 470px) {
  .postcard-wall { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .postcard-flipper,.postcard-wall-art,.postcard-pill { transition: none; }
  .postcard-stage[data-sent] .postcard-date-stamp { animation: none; }
}

.guestbook { grid-template-columns: minmax(0, 1fr); }
.postcard-floats {
  flex: none;
  --float-base: clamp(17px, 1.65vw, 24px);
  block-size: clamp(355px, 53svh, 560px);
  margin-block-start: clamp(24px, 4svh, 52px);
}
.postcard-floats[data-compact] { block-size: clamp(320px, 47svh, 425px); }
.postcard-floats .guestbook-float {
  position: absolute; inset: auto;
  left: var(--float-x, 0px); top: var(--float-y, 0px);
  inline-size: max-content; max-inline-size: var(--float-width, 100%);
  min-block-size: 44px;
  visibility: hidden;
  isolation: isolate;
  padding: 0; border: 0; background: none; text-align: start; cursor: pointer; color: inherit;
}
.postcard-floats .guestbook-float[data-positioned] { visibility: visible; }
.postcard-floats .guestbook-float .postcard-float-quote {
  color: #f4f1ea; font: 400 calc(var(--float-base) * var(--float-scale, 1))/1.56 var(--subtitle-font);
  white-space: pre-wrap; overflow-wrap: anywhere; text-shadow: 0 3px 15px #000;
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.postcard-float-name { display: block; margin-top: 7px; color: #e5dfd3ba; font: 400 13px/1.4 var(--subtitle-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.postcard-float-ripple {
  position: absolute; z-index: -1;
  left: 3px; top: .9em;
  inline-size: 28px; block-size: 28px;
  border: 1px solid rgb(255 0 0 / .24);
  border-radius: 50%;
  translate: -50% -50%;
  opacity: 0; pointer-events: none;
}
.postcard-floats .guestbook-float:focus-visible { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  .postcard-floats {
    block-size: auto;
    min-block-size: 290px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    align-content: start;
    gap: 22px 32px;
    padding-block: 24px;
  }
  .postcard-floats[data-compact] { block-size: auto; grid-template-columns: 1fr; }
  .postcard-floats .guestbook-float { position: relative; visibility: visible; inset: auto; max-inline-size: 100%; }
}
.postcard-float-preview {
  position: fixed; z-index: 300; width: 154px; margin: 0; filter: drop-shadow(0 10px 22px #000b);
  pointer-events: none;
}
.postcard-float-preview[data-orientation="portrait"] { width: 117px; }
.postcard-float-preview .postcard-wall-caption { display: none; }
.postcard-float-preview .postcard-wall-serial { font-size: 8px; letter-spacing: .08em; }
.postcard-float-preview .postcard-wall-blank { font-size: 12px; }

.postcard-reader-caption { margin: 12px 0 0; color: #d5c8be; font: 13px/1.5 var(--subtitle-font); }
.postcard-face-hit {
  position: absolute; z-index: 4; background: transparent; border: 0; padding: 0;
  border-radius: inherit; cursor: pointer;
}
.postcard-face-hit { inset: 0; }
.postcard-face-hit:focus-visible { outline: 1px solid #f4f1ea; outline-offset: -3px; }
.postcard-face :is(.postcard-front-ink, .postcard-back-head, .postcard-form-layout, .postcard-read-message, .postcard-face-hit) {
  backface-visibility: hidden;
}
.postcard-front-ink { transform: translateZ(14px); }
.postcard-back-head { transform: translateZ(18px); }
.postcard-face-hit { transform: translateZ(22px); }
.postcard-cancel-lines { width: clamp(104px, 16vw, 158px); }
.postcard-tools, .postcard-toolbar { justify-content: center; }
.postcard-picker-collapse {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 390ms cubic-bezier(.22,1,.36,1), opacity 255ms ease;
}
.postcard-picker-collapse[data-open] { grid-template-rows: 1fr; opacity: 1; }
.postcard-picker-clip { min-height: 0; overflow: hidden; }
.postcard-picker-clip > .postcard-picker { margin-inline: auto; }
.postcard-float-quote::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 9px; vertical-align: .3em; background: #f00; }
#postcard-read[open] {
  display: grid; align-items: safe center; justify-items: center; width: 100%; height: 100%; max-width: none; max-height: none;
  inset: 0; margin: 0;
}
#postcard-read .postcard-shell { width: min(890px, calc(100% - 22px)); overflow-x: visible; }
#postcard-read .postcard-stage { transform-origin: 50% calc(50% - 15px); }

@media (max-width: 610px) {
  .postcard-front-ink, .postcard-back-head { transform: translateZ(5px); }
  .postcard-face-hit { transform: translateZ(7px); }
  .postcard-tools button { padding-inline: 6px; }
  .postcard-tools button[data-postcard-step] { width: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .postcard-picker-collapse { transition: none; }
}

.postcard-tilt {
  transform-style: preserve-3d;
  transform: rotateX(var(--holo-rx, 0deg)) rotateY(var(--holo-ry, 0deg));
  transition: transform 320ms cubic-bezier(.22,.82,.24,1);
}
.postcard-wall-art {
  transform: perspective(1100px) rotateX(var(--holo-rx, 0deg)) rotateY(var(--holo-ry, 0deg));
  transition: transform 320ms cubic-bezier(.22,.82,.24,1), border-color 220ms ease, translate 220ms ease;
}
.postcard-foil {
  position: absolute; z-index: 0; inset: 0; overflow: hidden;
  border-radius: inherit; pointer-events: none; opacity: .11;
  transition: opacity 240ms ease;
}
.postcard-front .postcard-foil { z-index: 1; }
.postcard-back > .postcard-foil { position: absolute; z-index: 0; }
.postcard-foil::before {
  position: absolute; content: ''; inset: -36%;
  background:
    radial-gradient(ellipse at 50% 48%, #fffbeb3b 0, transparent 28%),
    linear-gradient(124deg, transparent 26%, #e97ba23f 37%, #eecb7955 45%, #72e0cc65 52%, #83a6ee57 59%, #d087e344 65%, transparent 74%),
    repeating-linear-gradient(118deg, transparent 0 3px, #ffead51a 4px 5px, transparent 6px 8px);
  transform: translate3d(var(--holo-x, -9%), var(--holo-y, 8%), 0);
  transition: transform 250ms ease-out;
}
[data-holo-active] .postcard-foil { opacity: .34; }
.postcard-float-preview .postcard-foil { opacity: .26; }

@media (prefers-reduced-motion: reduce) {
  .postcard-tilt, .postcard-wall-art { transform: none; }
  .postcard-tilt, .postcard-wall-art, .postcard-foil, .postcard-foil::before { transition: none; }
}

#guest-compose[open] {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: safe center;
  justify-items: center;
  inset-block: 0;
  margin-block: 0;
  height: 100dvh;
  max-height: none;
  overflow-x: hidden;
  scrollbar-width: none;
}
#guest-compose .postcard-shell { width: 100%; min-inline-size: 0; }
#guest-compose .postcard-flipper { inline-size: 100%; }

@media (min-width: 611px) {
  #guest-compose .postcard-stage[data-face="front"] {
    --postcard-preview-height: max(220px, calc(100dvh - 86px));
    max-width: min(790px, calc(var(--postcard-preview-height) * 1.5));
  }
  #guest-compose .postcard-stage[data-face="front"][data-orientation="portrait"] {
    max-width: min(520px, calc(var(--postcard-preview-height) * .75));
  }
}

.postcard-thanks { position: relative; isolation: isolate; }
.postcard-edge-light,
.postcard-music-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.postcard-face > .postcard-edge-light,
.postcard-wall-art > .postcard-edge-light,
.postcard-thanks > .postcard-edge-light {
  position: absolute;
  z-index: 3;
  padding: 1px;
  background:
    radial-gradient(ellipse at calc(50% + var(--holo-x, 0%)) calc(50% + var(--holo-y, 0%)), transparent 38%, #f5ddd52b 100%),
    linear-gradient(145deg, #f7e0dba8 0%, #a4b6bd30 30%, transparent 53%, #ba53443c 77%, #f0a2969c 100%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.postcard-face > .postcard-music-light,
.postcard-wall-art > .postcard-music-light { position: absolute; z-index: 0; }
.postcard-thanks > .postcard-music-light { z-index: -1; }
.postcard-front[data-has-photo] .postcard-music-light { display: none; }
.postcard-music-light::before,
.postcard-music-light::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 230ms ease-out;
}
.postcard-music-light::before {
  background: radial-gradient(ellipse at 95% 110%, #a328536f 0%, transparent 69%);
  opacity: var(--postcard-music-wine, 0);
}
.postcard-music-light::after {
  background: radial-gradient(ellipse at 60% 114%, #d75c2e75 0%, transparent 64%);
  opacity: var(--postcard-music-ember, 0);
}
@media (prefers-reduced-motion: reduce) {
  .postcard-music-light::before, .postcard-music-light::after { transition: none; }
}

@media (max-width: 610px) {
  #guest-compose .postcard-stage[data-face="back"] .postcard-flipper { aspect-ratio: auto; }
  #guest-compose .postcard-stage[data-face="back"] #guest-form { position: relative; block-size: auto; min-height: 420px; }
  #guest-form .postcard-back-content { height: auto; overflow: visible; }
  #guest-compose .postcard-stage[data-face="back"] .postcard-tilt { transform: none; }
  #guest-compose .postcard-stage[data-orientation="landscape"] .postcard-form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px;
  }
  #guest-compose .postcard-stage[data-orientation="landscape"] .postcard-recipient {
    border-block-start: 0; border-inline-start: 1px solid #e4d4c92b; padding: 0 0 0 12px;
  }
  #guest-form .postcard-send .postcard-pill { min-height: 38px; white-space: normal; padding-inline: 9px; }
  #guest-form .postcard-send svg { flex: none; }
  #guest-compose .postcard-shell { overflow: visible; padding-block: 14px; }
}

#guest-compose::-webkit-scrollbar { display: none; width: 0; height: 0; }

@media (max-width: 760px),
  (orientation: landscape) and (max-height: 500px) and (max-width: 1024px) and (pointer: coarse) {
  .postcard-dedication [data-desktop-ink] .postcard-script-text {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .postcard-dedication [data-desktop-ink]::after {
    content: "";
    display: inline-block;
    inline-size: 4.91em;
    block-size: 1.052em;
    vertical-align: top;
    background: currentColor;
    mask: url("postcard-the-view.png") center / contain no-repeat;
  }
}
