/* Preserve the source designs while supplying isolated editor integration. */
[hidden] { display: none !important; }
.birthday-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 16px; }
.birthday-recipient { font: 800 0.85rem "Nunito", sans-serif; overflow-wrap: anywhere; }
.birthday-sound { margin-left: auto; flex-shrink: 0; border: 1px solid currentColor; background: #ffffffc9; color: var(--ink); padding: 8px 12px; border-radius: 999px; font: 700 0.75rem "Nunito", sans-serif; cursor: pointer; }
.birthday-open-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: #f8f9faf2; backdrop-filter: blur(6px); }
.birthday-open { max-width: 320px; }
.birthday-play { display: block; margin: 12px auto; max-width: calc(100% - 20px); }
.birthday-inactive *, .birthday-inactive *::before, .birthday-inactive *::after { animation-play-state: paused !important; }
.polaroid .slot { position: relative; overflow: hidden; }
.polaroid:not(.empty) .slot { aspect-ratio: auto; }
.polaroid .slot img { display: block; width: 100%; height: auto; object-fit: contain; background: #fff; }
.meme, .sticker-row img, .caller-avatar img { object-fit: contain; }
.meme-pair { align-items: start; }
.tenor-gif-embed iframe { display: block; border: 0; width: 100%; margin-bottom: 5px; }
.tenor-gif-embed { font-size: 0.65rem; line-height: 1.3; }
.tenor-gif-embed a { color: var(--ink); }
.screen h1, .screen p, .screen button, .polaroid span { overflow-wrap: anywhere; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
#plant-flower { position: relative; z-index: 10; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  #confetti { display: none; }
  .balloon.popped { opacity: 0; }
}

.birthday-video-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; padding:12px; background:#fff; color:#292a31; }
.birthday-video-controls button { min-height:44px; padding:8px 14px; border:1px solid #d7d2da; border-radius:30px; background:#faf7fc; color:#292a31; font:700 14px Nunito,sans-serif; cursor:pointer; }
.birthday-video-controls label { display:flex; align-items:center; gap:8px; font:700 12px Nunito,sans-serif; }
.birthday-video-controls input { width:90px; min-height:32px; accent-color:#a4497e; }
.video-wrap video, .caller-video-wrapper video { width:100%; height:auto; max-height:70svh; object-fit:contain; aspect-ratio:auto; }
.video-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); align-items:start; }
.video-wrap,.caller-video-wrapper { min-width:0; }
.birthday-feature-photo { width:min(100%,540px); margin:24px auto; padding:14px; transform:rotate(-1deg); background:#fffdfc; box-shadow:0 10px 0 #edb9d250; }
.birthday-feature-photo .slot { min-height:0; height:auto; }
.birthday-feature-photo.empty .slot { min-height:240px; display:grid; place-items:center; background:linear-gradient(135deg,#ffe5ec,#eee7ff); }
.photo-placeholder { display:grid; gap:12px; text-align:center; font-size:60px; color:#c65d8a; }
.photo-placeholder small { font:700 14px Nunito,sans-serif; }
.polaroid:not(.empty) .photo-placeholder { display:none; }
.polaroid .slot { height:auto; }
.polaroid.empty .slot { aspect-ratio:4/5; }
.birthday-feature-photo.empty .slot { aspect-ratio:4/3; }
.polaroids { align-items:start; }
.balloon-stage { border:2px dashed #ed94ba; border-radius:32px; background:radial-gradient(ellipse at bottom,#ffe3ee,transparent),#ffffff80; min-height:390px; margin:20px 0; }
.balloon-invite { text-align:center; font-weight:800; color:#b12c67; }
.flower-layer .bloom { animation:bloom .35s ease, gentle-bloom var(--sway,4s) ease-in-out infinite alternate; animation-delay:0s,var(--delay,0s); transform-origin:50% 100%; }
@keyframes gentle-bloom { from { transform:translate(-3px,0) rotate(-7deg); } to { transform:translate(5px,-6px) rotate(8deg); } }
@media(min-width:900px) { #app { max-width:1000px; } }
@media(prefers-reduced-motion:reduce) { .flower-layer .bloom { animation:none; } }

.screen > .meme { display:block; width:100%; max-width:560px; height:auto; max-height:65svh; object-fit:contain; margin-inline:auto; }
.screen > .video-wrap { width:min(100%,720px); margin-inline:auto; }
.choice-row.two { grid-template-columns:1fr; }
.screen > .meme-pair { width:min(100%,720px); margin-inline:auto; }
.photo-placeholder { font-size:60px !important; }
