/* Glowvite postcard + envelope. Every theme shares this layout; colours come from CSS variables set per theme
   (--bg --bg2 --env --env2 --liner --paper --ink --accent --accent2 --seal). Sizes follow the card width (cqw). */
.pc { position: relative; width: 100%; aspect-ratio: 3 / 2; perspective: 2000px; container-type: inline-size; color: var(--ink); }
.pc-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .75, .25, 1); }
.pc.flipped .pc-inner { transform: rotateY(180deg); }
.pc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: clamp(10px, 2.4cqw, 22px); overflow: hidden; background: var(--paper);
  box-shadow: 0 2.5cqw 6cqw -2cqw rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .06); }
.pc-art { position: absolute; inset: 0; }
.pc-art svg { width: 100%; height: 100%; display: block; }
.pc-band { position: absolute; left: 4%; right: 4%; bottom: 5%; text-align: center; padding: 1.6cqw 3cqw 1.9cqw; border-radius: 1.8cqw;
  background: color-mix(in srgb, var(--paper) 92%, transparent); box-shadow: 0 1cqw 3cqw -1cqw rgba(0, 0, 0, .35); }
.pc-headline { font: 700 2.1cqw/1.2 var(--font-fun); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.pc-title { margin: .4cqw 0 0; font: 800 5.4cqw/1.08 var(--font-title); color: var(--ink); text-wrap: balance; }
.pc-date { display: inline-flex; gap: 1.2cqw; margin-top: 1.1cqw; font: 700 2.2cqw/1 var(--font-fun); }
.pc-date span { background: var(--accent); color: #fff; padding: .8cqw 1.8cqw; border-radius: 99px; }
.pc-date span + span { background: var(--accent2); color: var(--ink); }

.pc-back { transform: rotateY(180deg); display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: minmax(0, 1fr); padding: 4.2cqw 3.6cqw 3.6cqw 4.2cqw; gap: 3cqw;
  background: var(--paper) repeating-linear-gradient(0deg, transparent 0 calc(3.3cqw - 1px), color-mix(in srgb, var(--accent) 9%, transparent) calc(3.3cqw - 1px) 3.3cqw); }
.pc-letter { font: 400 2.25cqw/1.47 var(--font-hand); overflow: auto; min-height: 0; overflow-wrap: anywhere; scrollbar-width: thin; }
.pc-letter p { margin: 0 0 .62em; }
.pc-dear { font-weight: 700; margin-bottom: .5em; font-size: 1.15em; color: var(--accent); }
.pc-sign { margin-top: .62em; font-weight: 700; }
.pc-side { border-left: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); padding-left: 3cqw; display: flex; flex-direction: column; gap: 1.8cqw; min-height: 0; }
.pc-stamps { display: flex; justify-content: flex-end; align-items: center; gap: 1.6cqw; }
.pc-postmark { width: 11cqw; aspect-ratio: 1; border-radius: 50%; border: .35cqw double color-mix(in srgb, var(--ink) 45%, transparent); display: grid; place-content: center; text-align: center;
  font: 800 1.35cqw/1.35 var(--font-fun); letter-spacing: .08em; color: color-mix(in srgb, var(--ink) 60%, transparent); transform: rotate(-12deg); }
.pc-stamp { width: 12cqw; aspect-ratio: 4 / 5; padding: .7cqw; background: #fff; transform: rotate(3deg); border: .3cqw dashed color-mix(in srgb, var(--ink) 18%, #fff); box-shadow: 0 .4cqw 1cqw rgba(0, 0, 0, .2); }
.pc-stamp svg { width: 100%; height: 100%; display: block; }
.pc-details { margin: 0; display: grid; gap: .75em; overflow: auto; font: 400 1.95cqw/1.4 var(--font-ui); }
.pc-details dt { font: 800 .7em/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .45cqw; }
.pc-details dd { margin: 0; }
.pc-details a { color: var(--accent); font-weight: 700; }
.pc-details small { opacity: .65; }
.pc-missing { opacity: .5; font-style: italic; }

@media (max-width: 640px) {
  .pc { aspect-ratio: 3 / 4.3; }
  .pc-art { bottom: auto; height: 66.6cqw; }
  .pc-band { left: 0; right: 0; bottom: 0; top: 64cqw; border-radius: 0; padding: 4cqw 5cqw; box-shadow: none; display: flex; flex-direction: column; justify-content: center; }
  .pc-headline { font-size: 3.6cqw; } .pc-title { font-size: 8.6cqw; margin-top: 1cqw; } .pc-date { font-size: 3.8cqw; margin-top: 2.6cqw; gap: 2cqw; justify-content: center; } .pc-date span { padding: 1.4cqw 3cqw; }
  .pc-back { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 5cqw; gap: 3cqw; }
  .pc-side { order: -1; border-left: 0; padding-left: 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); padding-bottom: 3cqw; }
  .pc-stamps { position: absolute; right: 4cqw; top: 4cqw; }
  .pc-postmark { width: 17cqw; font-size: 2.1cqw; } .pc-stamp { width: 17cqw; }
  .pc-details { font-size: 3.6cqw; padding-right: 37cqw; gap: 2.4cqw; }
  .pc-letter { font-size: 4.1cqw; }
}

/* ---- the envelope: 3D (tilts with the pointer / phone), glossy paper, a glass shine and a mirror reflection ---- */
.env-wrap { --rx: 0deg; --ry: 0deg; --gx: 30%; --gy: 20%; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s cubic-bezier(.2, .8, .3, 1);
  -webkit-box-reflect: below 14px linear-gradient(transparent 58%, rgba(255, 255, 255, .2)); }
.env { position: relative; width: min(560px, 88vw); aspect-ratio: 1.6; perspective: 1400px; container-type: inline-size; margin: 0 auto; }
.env-back { position: absolute; inset: 0; border-radius: 2.6cqw; background: linear-gradient(180deg, color-mix(in srgb, var(--env2) 78%, #000), var(--env2));
  box-shadow: 0 .45cqw 0 color-mix(in srgb, var(--env2) 55%, #000), 0 .9cqw 0 color-mix(in srgb, var(--env2) 45%, #000), 0 6cqw 10cqw -3cqw rgba(0, 0, 0, .6); }
.env-letter { position: absolute; left: 5.5%; right: 5.5%; top: 5%; height: 90%; z-index: 2; background: var(--paper); border-radius: 1.6cqw; overflow: hidden;
  transition: transform 1.05s cubic-bezier(.3, .8, .25, 1); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 1cqw 3cqw -1cqw rgba(0, 0, 0, .35); }
.env-letter .env-mini { position: absolute; left: 3%; right: 3%; top: 17%; aspect-ratio: 3 / 2; border-radius: 1cqw; overflow: hidden; }
.env-letter .env-mini svg, .env-letter .env-mini img { width: 100%; height: 100%; display: block; object-fit: cover; }
.env-letter .env-hi { position: absolute; left: 0; right: 0; top: 4.5%; text-align: center; font: 800 5cqw/1 var(--font-title); color: var(--ink); }
.env-tri { position: absolute; inset: 0; z-index: 3; border-radius: 2.6cqw; }
.env-l { background: linear-gradient(100deg, color-mix(in srgb, var(--env) 80%, #000), color-mix(in srgb, var(--env) 92%, #000)); clip-path: polygon(0 0, 51% 56%, 0 100%); }
.env-r { background: linear-gradient(260deg, color-mix(in srgb, var(--env) 74%, #000), color-mix(in srgb, var(--env) 90%, #000)); clip-path: polygon(100% 0, 49% 56%, 100% 100%); }
.env-b { background: linear-gradient(0deg, color-mix(in srgb, var(--env) 78%, #000), color-mix(in srgb, var(--env) 94%, #fff) 70%); clip-path: polygon(0 100%, 50% 45%, 100% 100%); }
.env-b::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 44%, color-mix(in srgb, var(--liner) 70%, transparent) 45%, transparent 46.2%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 5; transform-origin: 50% 0; clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--env) 80%, #fff), var(--env) 85%); border-radius: 2.6cqw 2.6cqw 0 0; transition: transform .75s cubic-bezier(.45, .1, .3, 1), background 0s .3s; }
.env-flap::after { content: ''; position: absolute; inset: 8% 9% 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: repeating-linear-gradient(45deg, var(--liner) 0 2cqw, color-mix(in srgb, var(--liner) 75%, #fff) 2cqw 4cqw); opacity: 0; transition: opacity 0s .3s; }
.env-glass { position: absolute; inset: 0; z-index: 6; border-radius: 2.6cqw; overflow: hidden; pointer-events: none; transition: opacity .3s;
  background: radial-gradient(60% 50% at var(--gx) var(--gy), rgba(255, 255, 255, .32), transparent 70%), linear-gradient(165deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 .5cqw 1cqw rgba(255, 255, 255, .18); mix-blend-mode: screen; }
.env-glass::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 34%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55) 50%, transparent); animation: env-sheen 3.8s ease-in-out .9s infinite; }
@keyframes env-sheen { 0% { left: -60%; } 42%, 100% { left: 130%; } }
.env-to { position: absolute; right: 9%; bottom: 13%; z-index: 4; font: 700 3.6cqw/1.3 var(--font-hand); color: color-mix(in srgb, var(--paper) 92%, transparent); text-align: right; max-width: 55%; text-shadow: 0 .2cqw .4cqw rgba(0, 0, 0, .25); }
.env-to small { display: block; font: 700 2.2cqw/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; opacity: .75; margin-bottom: 1cqw; }
.env-stampmini { position: absolute; left: 7%; bottom: 12%; z-index: 4; width: 11cqw; aspect-ratio: 4 / 5; background: #fff; padding: .6cqw; transform: rotate(-6deg); box-shadow: 0 .5cqw 1cqw rgba(0, 0, 0, .25); }
.env-stampmini svg, .env-stampmini img { width: 100%; height: 100%; display: block; object-fit: cover; }
.env-seal { position: absolute; left: 50%; top: 60%; z-index: 7; width: 16cqw; aspect-ratio: 1; margin: -8cqw 0 0 -8cqw; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--seal) 55%, #fff), var(--seal) 48%, color-mix(in srgb, var(--seal) 70%, #000));
  box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .4), inset 0 0 0 1.2cqw color-mix(in srgb, var(--seal) 85%, #000), inset 0 -.8cqw 1.4cqw rgba(0, 0, 0, .25); color: color-mix(in srgb, var(--seal) 45%, #000);
  font: 900 6.5cqw/1 var(--font-title); transition: transform .35s, opacity .35s; animation: seal-pulse 2.2s ease-in-out infinite; }
.env-seal::after { content: ''; position: absolute; left: 22%; top: 14%; width: 30%; height: 18%; border-radius: 50%; background: rgba(255, 255, 255, .6); filter: blur(.4cqw); transform: rotate(-25deg); }
.env-seal:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes seal-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.env.idle { animation: env-float 4.2s ease-in-out infinite; cursor: pointer; }
@keyframes env-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.6cqw) rotate(-.6deg); } }
.env.opening .env-seal { transform: scale(0); opacity: 0; animation: none; }
.env.opening .env-glass { opacity: 0; }
.env.opening .env-flap { transform: rotateX(180deg); }
.env.opening .env-flap::after { opacity: 1; }
.env.flap-behind .env-flap { z-index: 1; }
.env.rise .env-letter { transform: translateY(-66%); }
.env.out { transition: transform .8s cubic-bezier(.5, 0, .7, .4), opacity .7s .1s; transform: translateY(40%) scale(.85); opacity: 0; }
.env-hint { margin-top: 26px; text-align: center; font: 700 17px/1.3 var(--font-fun); color: var(--hint, #fff); letter-spacing: .02em; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: .85; } 50% { transform: translateY(-5px); opacity: 1; } }
/* a photo on the postcard instead of the theme picture */
.pc-art img.pc-photo { width: 100%; height: 100%; display: block; object-fit: cover; }

/* theme fonts */
:root { --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-fun: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --font-title: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --font-hand: 'Segoe Print', 'Bradley Hand', 'Chalkboard SE', 'Marker Felt', 'Comic Sans MS', ui-rounded, cursive; }
[data-theme='golden'] { --font-title: 'Didot', 'Bodoni 72', 'Playfair Display', Georgia, 'Times New Roman', serif; --font-hand: 'Snell Roundhand', 'Apple Chancery', 'Segoe Script', Georgia, serif; --font-fun: Georgia, serif; }
[data-theme='speedway'] { --font-title: 'Arial Black', 'Helvetica Neue', Impact, system-ui, sans-serif; }
[data-theme='speedway'] .pc-title { font-style: italic; letter-spacing: -.01em; }
@media (prefers-reduced-motion: reduce) { .env.idle, .env-seal, .env-hint, .env-glass::after { animation: none; } .env-wrap { transform: none; } .pc-inner, .env-letter, .env-flap { transition-duration: .01s; } }

/* ---- moods ---- */
[data-mood='calm'] .pc-art svg, [data-mood='calm'] .env-mini svg, [data-mood='calm'] .env-stampmini svg, [data-mood='calm'] .pc-stamp svg { filter: saturate(.6) brightness(1.05) contrast(.92); }
[data-mood='calm'] .pc-face::after, [data-mood='realistic'] .pc-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(120, 100, 80, .16)), repeating-linear-gradient(115deg, rgba(120, 100, 80, .025) 0 2px, transparent 2px 5px); }
[data-mood='calm'], [data-mood='realistic'] { --font-title: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif; --font-fun: 'Avenir Next', 'Segoe UI', system-ui, sans-serif; }
[data-mood='calm'] .pc-title, [data-mood='realistic'] .pc-title { font-weight: 600; letter-spacing: .005em; font-style: normal; }
[data-mood='calm'] .pc-headline, [data-mood='realistic'] .pc-headline { letter-spacing: .32em; font-weight: 600; }
[data-mood='calm'] .pc-date span, [data-mood='realistic'] .pc-date span { font-weight: 600; }
[data-mood='calm'] .env-flap, [data-mood='realistic'] .env-flap { transition-duration: 1.1s; }
[data-mood='calm'] .env-letter, [data-mood='realistic'] .env-letter { transition-duration: 1.5s; }
[data-mood='calm'] .env.idle, [data-mood='realistic'] .env.idle { animation-duration: 6.5s; }
[data-mood='calm'] .env-seal, [data-mood='realistic'] .env-seal { animation-duration: 3.4s; }
[data-mood='elegant'] { --font-title: 'Didot', 'Bodoni 72', 'Playfair Display', Georgia, 'Times New Roman', serif; --font-hand: 'Snell Roundhand', 'Apple Chancery', 'Segoe Script', Georgia, serif; --font-fun: Georgia, serif; }
[data-mood='elegant'] .pc-art svg, [data-mood='elegant'] .env-mini svg, [data-mood='elegant'] .pc-stamp svg { filter: saturate(.72) sepia(.14) contrast(.96); }
[data-mood='elegant'] .pc-face { box-shadow: 0 2.5cqw 6cqw -2cqw rgba(0, 0, 0, .5), inset 0 0 0 .7cqw var(--paper), inset 0 0 0 .95cqw var(--accent2); }
[data-mood='elegant'] .pc-title { font-weight: 400; font-style: italic; }
[data-mood='elegant'] .pc-headline { letter-spacing: .4em; font-weight: 400; }
[data-mood='elegant'] .pc-date span { background: transparent; color: var(--ink); border: 1px solid var(--accent2); font-weight: 400; }
[data-mood='elegant'] .pc-date span + span { background: transparent; }
[data-mood='realistic'] .pc-art img { filter: saturate(.92); }

/* background music toggle on the guest page */
.musicbtn { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #2b2520; font-size: 20px; cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); animation: mbIn .5s ease both; }
.musicbtn .eq { display: flex; gap: 2px; align-items: flex-end; height: 16px; } .musicbtn .eq i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; opacity: .5; }
.musicbtn.on .eq i { opacity: 1; animation: eq 1s ease-in-out infinite; } .musicbtn.on .eq i:nth-child(2) { animation-delay: .2s; } .musicbtn.on .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@keyframes mbIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .musicbtn.on .eq i { animation: none; height: 10px; } }

/* ---- Speedway pop-up car: the car stands up off the paper with a soft, real shadow ---- */
.pc-pop { --px: 0; --py: 0; position: absolute; left: 20%; top: 50%; width: 60%; aspect-ratio: 360 / 150; pointer-events: none; z-index: 1; }
.pc-pop .pop-car { position: absolute; inset: 0; transform-origin: 50% 92%;
  transform: perspective(900px) rotateX(calc(var(--py) * -8deg)) rotateY(calc(var(--px) * 12deg)) translateY(-3%) scale(1.03);
  filter: drop-shadow(0 .5cqw .5cqw rgba(0, 0, 0, .32));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); animation: popUp 1.1s cubic-bezier(.2, 1.4, .4, 1) .25s both; }
.pc-pop .pop-car svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* glossy highlight sliding over the body, as if lit from above */
.pc-pop .pop-car::after { content: ''; position: absolute; inset: 8% 6% 30%; border-radius: 40%; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%); background-size: 250% 100%; animation: popShine 4.5s ease-in-out 1.4s 3; }
/* contact shadow (tight, dark, under the wheels) and cast shadow (soft, offset down-right) — no hard edges */
.pc-pop .pop-contact { position: absolute; left: 6%; right: 6%; bottom: 1.5%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25) 55%, transparent); filter: blur(.35cqw); animation: popShade 1.1s ease .25s both; }
.pc-pop .pop-cast { position: absolute; left: 4%; right: -4%; bottom: -7%; height: 26%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .32), transparent); filter: blur(1.4cqw);
  transform: translateX(calc(2% + var(--px) * -4%)) skewX(-18deg); transition: transform .35s ease; animation: popShade 1.1s ease .25s both; }
@keyframes popUp {
  0% { transform: perspective(900px) rotateX(82deg) translateY(4%) scale(.94); opacity: 0; }
  35% { opacity: 1; }
  65% { transform: perspective(900px) rotateX(-9deg) translateY(-6%) scale(1.05); }
  82% { transform: perspective(900px) rotateX(3deg) translateY(-2%) scale(1.02); }
  100% { transform: perspective(900px) rotateX(0) translateY(-3%) scale(1.03); } }
@keyframes popShade { from { opacity: 0; transform: scaleX(.6); } to { opacity: 1; } }
@keyframes popShine { 0%, 60%, 100% { background-position: 120% 0; } 30% { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .pc-pop .pop-car, .pc-pop .pop-contact, .pc-pop .pop-cast, .pc-pop .pop-car::after { animation: none; } }
/* gift card revealed on the guest page: lifts out of the box with a light sweep */
.gcard-wrap { width: min(340px, 82vw); margin: 4px auto 14px; perspective: 900px; }
.gcard-wrap svg { width: 100%; height: auto; display: block; border-radius: 5%; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .55), 0 4px 10px -4px rgba(0, 0, 0, .3); animation: gcRise .9s cubic-bezier(.2, 1.3, .4, 1) both; }
.gcard-wrap .gc-shine { animation: gcShine 3.6s ease-in-out .9s infinite; }
@keyframes gcRise { from { transform: translateY(40px) rotateX(55deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gcShine { 0%, 55%, 100% { transform: skewX(-18deg) translateX(0); } 35% { transform: skewX(-18deg) translateX(1500px); } }
@media (prefers-reduced-motion: reduce) { .gcard-wrap svg, .gcard-wrap .gc-shine { animation: none; } }

/* performance: no work for animations that are off screen */
.offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }

/* ---- comment board ---- */
.board { max-width: 640px; margin: 22px auto 0; padding: 22px; border-radius: 22px; background: rgba(255, 253, 249, .96); color: #2b2520; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45); text-align: left; }
.panel.board { margin: 0 0 16px; max-width: none; box-shadow: none; }
.board h2 { margin: 0 0 4px; font-size: 20px; } .board .cnum { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: #f1ebe2; vertical-align: middle; }
.cmts { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 12px; max-height: 420px; overflow-y: auto; }
.cmts li { display: flex; gap: 10px; align-items: flex-start; }
.cmts .cav { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--accent, #e63946); }
.cmts .is-host .cav { background: #b08d57; }
.cbody { flex: 1; min-width: 0; padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: #f6f1e9; }
.is-mine .cbody { background: #fdeceb; } .is-host .cbody { background: #f7efdf; }
.chead { display: flex; align-items: center; gap: 8px; font-size: 13px; } .chead time { color: #8a8496; margin-left: auto; }
.ctag { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a6a35; }
.cbody p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cdel { border: 0; background: none; color: #a09aa8; cursor: pointer; font-size: 13px; padding: 0 2px; } .cdel:hover { color: #e63946; }
.cempty { color: #8a8496; font-size: 14px; justify-content: center; }
.cform .cwrap { position: relative; } .cform textarea { width: 100%; padding: 11px 46px 11px 13px; border-radius: 14px; border: 1px solid #e6ddd0; font: inherit; resize: vertical; box-sizing: border-box; }
.cform .ebtn { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 19px; cursor: pointer; }
.cform .ebtn:hover { background: #f1ebe2; }
.cform .crow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.emoji-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; width: min(320px, 86vw); max-height: 220px; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .4); border: 1px solid #eee5d8; }
.emoji-pop button { border: 0; background: none; font-size: 22px; line-height: 1; padding: 6px 0; border-radius: 8px; cursor: pointer; } .emoji-pop button:hover { background: #f6f1e9; }
/* comment replies */
.cmts .cthread { display: block; padding-left: 44px; } .cmts .cthread ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid #eee5d8; display: grid; gap: 10px; }
.cmts .is-reply .cav { width: 28px; height: 28px; font-size: 13px; } .cmts .is-reply .cbody { padding: 7px 11px; } .cmts .is-reply p { font-size: 14px; }
.creply { margin-top: 4px; padding: 0; border: 0; background: none; font: 600 12.5px/1.4 inherit; color: #8a6a35; cursor: pointer; } .creply:hover { text-decoration: underline; }
.cmts .cthread .cform { margin-top: 4px; }
/* guest page: their note and the host's reply */
.notechat { display: grid; gap: 8px; margin: 14px auto 6px; max-width: 420px; text-align: left; }
.notechat .nbub { padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.notechat .nbub small { display: block; font-size: 12px; font-weight: 700; opacity: .65; margin-bottom: 2px; }
.notechat .mine { justify-self: end; background: #fdeceb; border-radius: 16px 4px 16px 16px; }
.notechat .host { justify-self: start; background: #fdf3e3; border-radius: 4px 16px 16px 16px; }

.choice button[data-r='maybe'][aria-pressed='true'] { border-color: #f2b705; background: #fff8db; }

/* ---- ✨ premium moods ---- */
[data-mood='vintage'] { --font-title: 'American Typewriter', 'Courier New', Courier, monospace; --font-hand: 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive; }
[data-mood='vintage'] .pc-art svg, [data-mood='vintage'] .pc-art img, [data-mood='vintage'] .env-mini svg, [data-mood='vintage'] .pc-stamp svg { filter: sepia(.55) saturate(.8) contrast(.95) brightness(1.02); }
[data-mood='vintage'] .pc-face { background-image: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(110, 80, 40, .18)), repeating-linear-gradient(0deg, rgba(110, 80, 40, .03) 0 1px, transparent 1px 3px); }
[data-mood='vintage'] .pc-title { letter-spacing: .02em; font-weight: 700; } [data-mood='vintage'] .pc-headline { letter-spacing: .3em; }
[data-mood='vintage'] .pc-date span { background: transparent; color: var(--ink); border: 1.5px dashed var(--accent); }
[data-mood='midnight'] .pc-art svg, [data-mood='midnight'] .pc-art img { filter: saturate(.85) brightness(.92) contrast(1.05); }
[data-mood='midnight'] .pc-face { box-shadow: 0 2.5cqw 6cqw -2cqw rgba(0, 0, 0, .6), inset 0 0 0 .7cqw var(--paper), inset 0 0 0 .95cqw var(--accent2); }
[data-mood='midnight'] .pc-title { text-shadow: 0 0 1.2cqw rgba(232, 198, 106, .35); }
[data-mood='midnight'] .pc-date span { background: #1b2238; color: #e8c66a; }
[data-mood='midnight'] .env::after { content: ''; position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .7) 0 1px, transparent 2px) 0 0 / 60px 60px, radial-gradient(circle at 70% 60%, rgba(232, 198, 106, .7) 0 1px, transparent 2px) 0 0 / 90px 90px; opacity: .6; }
[data-mood='dreamy'] { --font-title: 'Baloo 2', 'Nunito', 'Avenir Next', 'Segoe UI', system-ui, sans-serif; }
[data-mood='dreamy'] .pc-art svg, [data-mood='dreamy'] .pc-art img { filter: saturate(.8) brightness(1.08) hue-rotate(-8deg); }
[data-mood='dreamy'] .pc-face { border-radius: 4cqw; }
[data-mood='dreamy'] .pc-title { font-weight: 800; color: var(--accent); }
[data-mood='dreamy'] .pc-date span { border-radius: 999px; }
