/* digital internet party — scrapbook hero + cozy pixel room */

:root {
  --paper: #f7f1e6;
  --paper-warm: #faf6ee;
  --kraft: #e2c9a5;
  --kraft-deep: #d2b48c;
  --ink: #1a1a1a;
  --ink-soft: rgba(0, 0, 0, 0.62);
  --ink-muted: #7a6a57;
  --postal-red: #9d3f36;
  --postal-deep: #7e322b;
  --terracotta: #c96342;
  --mustard: #e3a857;
  --star-blue: #2c6bb3;
  --star-yellow: #fbd74b;
  --border: rgba(120, 95, 70, 0.22);
  --sticky-1: #fff3a1;
  --sticky-2: #c8f0d4;
  --sticky-3: #ffd0e4;
  --sticky-4: #cfe4ff;
  --sticky-5: #ffd9b8;
  --px-outline: #3d2a20;
  --px-pink: #e8789a;
  --px-pink-soft: #f4a0b8;
  --px-purple: #9b7eb8;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-pixel: "Press Start 2P", var(--font-mono);
  --font-script: "Waiting for the Sunrise", "Great Vibes", cursive;
  --font-script-fancy: "Great Vibes", "Apple Chancery", cursive;
  --shadow-soft: 0 18px 40px rgba(70, 50, 30, 0.07), 0 4px 12px rgba(70, 50, 30, 0.04);
  --shadow-scrap: 0 10px 24px rgba(70, 50, 30, 0.1), 0 2px 6px rgba(70, 50, 30, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  background-color: #f7c9d8;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 120, 154, 0.1) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, #f9d4e0 0%, #f7c9d8 45%, #efb6c8 100%);
  background-size: 16px 16px, 16px 16px, auto, auto;
  image-rendering: pixelated;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.paper-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.stars {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--star-yellow);
  opacity: 0.55;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: drift linear infinite;
}

.particle:nth-child(3n) {
  background: var(--star-blue);
  opacity: 0.4;
}

.particle:nth-child(4n) {
  background: var(--postal-red);
  opacity: 0.3;
}

@keyframes drift {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  15% { opacity: 0.55; }
  100% {
    transform: translateY(-8vh) rotate(40deg) scale(1);
    opacity: 0;
  }
}

.washi {
  position: absolute;
  z-index: 3;
  top: -10px;
  left: 50%;
  width: 88px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #e8c98a 0%, #d4b06a 100%);
  opacity: 0.88;
  box-shadow: 0 1px 2px rgba(70, 50, 30, 0.15);
}

.washi--hero {
  width: 110px;
  height: 26px;
  top: -12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 3px, transparent 3px 8px),
    linear-gradient(180deg, #f0d7a0 0%, #d9b36e 100%);
}

.washi--wall {
  left: 22%;
  transform: translateX(-50%) rotate(-3deg);
}

.washi--modal {
  top: -11px;
}

.scrap {
  position: relative;
  background: var(--paper-warm);
  box-shadow: var(--shadow-scrap);
  border: 1px solid var(--border);
}

.scrap::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tape-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--kraft-deep);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  clip-path: polygon(
    1% 8%, 4% 2%, 12% 6%, 22% 1%, 35% 5%, 48% 0%, 62% 4%, 75% 1%, 88% 5%, 97% 2%,
    100% 12%, 98% 40%, 100% 70%, 97% 92%, 88% 98%, 72% 95%, 55% 100%, 40% 96%,
    25% 100%, 10% 95%, 2% 90%, 0% 60%, 2% 30%
  );
  box-shadow: 0 2px 6px rgba(70, 50, 30, 0.12);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.tape-btn:hover,
.tape-btn:focus-visible {
  transform: translateY(-1px) rotate(-0.5deg);
  filter: brightness(1.03);
  outline: none;
}

.tape-btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  background: var(--mustard);
}

.star-dot {
  color: var(--star-yellow);
  font-size: 0.9rem;
}

/* welcome landing — matches pixel room */
.welcome-stars {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.welcome-stars .particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fffaf3;
  opacity: 0.7;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: drift linear infinite;
}

.welcome-stars .particle:nth-child(3n) {
  background: #ffd36a;
  opacity: 0.55;
}

.welcome-stars .particle:nth-child(4n) {
  background: #9b7eb8;
  opacity: 0.45;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 3rem;
}

.hero-frame {
  position: relative;
  padding: 10px;
  background: #3d2a20;
  box-shadow: 0 12px 0 rgba(61, 42, 32, 0.18), 0 18px 40px rgba(70, 50, 30, 0.12);
  max-width: min(440px, 94vw);
  width: 100%;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid #8b6b4a;
  pointer-events: none;
  z-index: 2;
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 2.25rem 1.5rem 1.75rem;
  background-color: #fff6ea;
  background-image:
    linear-gradient(rgba(232, 180, 160, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 150, 130, 0.1) 1px, transparent 1px);
  background-size: 12px 12px;
  image-rendering: pixelated;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.hero-chrome {
  margin: 0 0 1.35rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #7a3a5a;
  animation: blinkHint 1.4s steps(2) infinite;
}

.brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.15;
}

.brand-line {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(0.85rem, 3.8vw, 1.15rem);
  color: #3d2a20;
  text-transform: lowercase;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.45);
}

.brand-line--big {
  font-size: clamp(1.05rem, 4.8vw, 1.45rem);
  color: #9d3f36;
  line-height: 1.35;
  text-shadow:
    2px 2px 0 #ffe8f0,
    -1px 0 #3d2a20,
    1px 0 #3d2a20;
}

.hero-tag {
  margin: 1.35rem auto 0;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 2.2vw, 0.98rem);
  color: #5a4030;
  max-width: 28ch;
  line-height: 1.55;
}

.px-enter {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #fffaf3;
  background: #e8789a;
  border: 3px solid #3d2a20;
  box-shadow: 3px 3px 0 #3d2a20;
  cursor: pointer;
  transition: transform 0.1s steps(1), box-shadow 0.1s steps(1), background 0.1s steps(1);
}

.px-enter:hover,
.px-enter:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #3d2a20;
  outline: none;
  background: #f4a0b8;
}

.px-enter:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #3d2a20;
}

.px-enter--sm {
  margin-top: 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.48rem;
  box-shadow: 2px 2px 0 #3d2a20;
}

.px-enter--sm:hover,
.px-enter--sm:focus-visible {
  box-shadow: 3px 3px 0 #3d2a20;
}


.hero-hint {
  margin: 1rem 0 0;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  line-height: 1.6;
  color: #7a6a57;
}

.hero-alt-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #5a4030;
  text-decoration: none;
}

.hero-alt-link:hover,
.hero-alt-link:focus-visible {
  color: #c43b55;
  outline: none;
}

@keyframes blinkHint {
  0%,
  49% { opacity: 1; }
  50%,
  100% { opacity: 0.35; }
}

/* welcome gate — hide room until enter */
body.is-welcome .pixel-room,
body.is-welcome .site-footer {
  display: none !important;
}

body.is-in-room .hero {
  display: none;
}

body.is-welcome .hero {
  min-height: 100vh;
}

/* outside the welcome screen, room area can keep soft kraft under guestbook */
body.is-in-room {
  background-color: #f3d0dc;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 120, 154, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #f7c9d8 0%, #f0c2d2 55%, #d994ab 100%);
  background-size: 16px 16px, 16px 16px, auto;
  image-rendering: pixelated;
}

/* ===== PIXEL ROOM ===== */
.pixel-room {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.room-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.back-entrance {
  display: inline-flex;
  align-items: center;
  grid-column: 1;
  justify-self: start;
  margin: 0;
  padding: 0.2rem 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.2;
  color: #5a4030;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.back-entrance:hover,
.back-entrance:focus-visible {
  color: #c43b55;
  background: transparent;
  outline: none;
}

body.is-preview .back-entrance {
  display: none;
}

body.is-preview .room-topbar {
  grid-template-columns: 1fr;
}

body.is-preview .room-lede {
  grid-column: 1;
}

.room-lede {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .room-topbar {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .room-lede {
    grid-column: 1;
  }
}

.pixel-frame {
  position: relative;
  padding: 10px;
  background: var(--px-outline);
  box-shadow: var(--shadow-soft);
}

.pixel-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid #8b6b4a;
  pointer-events: none;
  z-index: 5;
}

.pixel-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f7c9d8;
  aspect-ratio: 4 / 3;
}

.pixel-wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #f7c9d8;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 120, 154, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  image-rendering: pixelated;
}

.pixel-baseboard {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28%;
  height: 10px;
  background: #c48a74;
  box-shadow:
    0 -3px 0 #e8b09a,
    inset 0 -2px 0 #9a6550;
}

.pixel-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background-color: #e2b891;
  background-image: repeating-linear-gradient(
    90deg,
    #e2b891 0 22px,
    #d4a57a 22px 24px,
    #ebb99a 24px 46px,
    #d4a57a 46px 48px
  );
  box-shadow: inset 0 4px 0 rgba(120, 80, 50, 0.12);
}

.px-hotspot {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  pointer-events: none;
}

/* Note popups float above cake, booth, cat, etc. */
.px-balloons:has(#balloon-reveal:not([hidden])),
.px-cat:has(#cat-meow:not([hidden])) {
  z-index: 50;
}

.px-hotspot .px-sprite-btn,
.px-hotspot .cake-btn,
.px-hotspot .camera-btn,
.px-hotspot .balloon,
.px-hotspot .balloon-reveal,
.px-hotspot .px-board-btn {
  pointer-events: auto;
}

.px-tip {
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  line-height: 1.4;
  color: #fff;
  background: var(--px-outline);
  padding: 0.35rem 0.4rem;
  border: 2px solid #ffe8f0;
  white-space: nowrap;
  text-transform: lowercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.px-hotspot:hover .px-tip,
.px-hotspot:focus-within .px-tip {
  opacity: 1;
  transform: translateY(0);
}

.px-sprite-btn {
  background: transparent;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  image-rendering: pixelated;
  transition: transform 0.12s steps(2);
}

.px-sprite-btn:hover {
  transform: scale(1.08) translateY(-2px);
}

.px-sprite-btn:focus-visible {
  outline: none;
  border-color: #ffe8f0;
  box-shadow: 0 0 0 2px var(--px-purple);
}

.px-cake,
.px-booth-art,
.px-board {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(2px 3px 0 rgba(61, 42, 32, 0.35));
}

.px-art {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  user-select: none;
  background: transparent;
  filter: drop-shadow(2px 3px 0 rgba(61, 42, 32, 0.28));
}

.px-balloons {
  left: 0;
  top: 0;
  width: 100%;
  height: 70%;
  z-index: 6;
  align-items: stretch;
}

.px-cake-spot {
  left: 34%;
  bottom: 1%;
  width: 52%;
}

.px-dining {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.px-table-art {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(2px 3px 0 rgba(61, 42, 32, 0.22));
}

.px-dining .cake-btn {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%);
  width: 38%;
  z-index: 2;
  pointer-events: auto;
}

.px-dining .cake-btn:hover {
  transform: translateX(-50%) scale(1.04);
}

.px-dining .cake-btn:focus-visible {
  outline: 2px solid #ffe8f0;
  outline-offset: 3px;
}

.px-cake-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.px-cake-art {
  width: 100%;
  max-width: none;
  background: transparent;
  transition: filter 0.15s steps(2);
}

.px-blow-puff {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 35%, transparent 36%);
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.cake-btn.just-blew .px-blow-puff {
  animation: blowPuff 0.65s steps(5) forwards;
}

.cake-btn.just-blew .px-cake-art {
  animation: cakeWobble 0.45s steps(3);
}

@keyframes blowPuff {
  0% {
    opacity: 0.9;
    transform: translate(18px, 8px) scale(0.4);
  }
  40% {
    opacity: 0.85;
    transform: translate(0, -6px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-10px, -28px) scale(1.6);
  }
}

@keyframes cakeWobble {
  0%,
  100% { transform: rotate(0deg); }
  30% { transform: rotate(-3deg) scale(1.03); }
  60% { transform: rotate(3deg) scale(1.02); }
}

.px-camera-spot {
  left: 3%;
  bottom: calc(12% + 10px);
  width: 17%;
  z-index: 3;
}

.px-board-spot {
  right: 6%;
  top: 14%;
  width: 22%;
}

.balloon-field {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  pointer-events: none;
}

.balloon {
  position: absolute;
  width: 42%;
  min-width: 96px;
  max-width: 150px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  animation: balloonFloat 2.8s ease-in-out infinite;
  transform-origin: center bottom;
  transform: scale(var(--balloon-scale, 1));
}

.balloon:nth-child(even) {
  animation-duration: 3.2s;
}

.balloon:hover:not(.popped):not(.popping) {
  filter: brightness(1.06);
}

.balloon:focus-visible:not(.popped) {
  outline: 2px solid #ffe8f0;
  outline-offset: 3px;
}

.balloon-art {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  user-select: none;
  background: transparent;
  filter: drop-shadow(2px 2px 0 rgba(61, 42, 32, 0.2));
}

.px-table-art,
.px-board-art,
.px-cat-art,
.px-cake-art {
  background: transparent;
}

.balloon-burst {
  position: absolute;
  inset: 10% 8% 30%;
  pointer-events: none;
  opacity: 0;
}

.balloon-burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px;
  background: #ffd36a;
  image-rendering: pixelated;
  opacity: 0;
}

.balloon-burst i:nth-child(1) { background: #e8789a; }
.balloon-burst i:nth-child(2) { background: #9b7eb8; }
.balloon-burst i:nth-child(3) { background: #7a9eb8; }
.balloon-burst i:nth-child(4) { background: #ffd36a; }
.balloon-burst i:nth-child(5) { background: #f4a0b8; }
.balloon-burst i:nth-child(6) { background: #fffaf3; }

.balloon.popping .balloon-art {
  animation: balloonPop 0.42s steps(4) forwards;
}

.balloon.popping .balloon-burst {
  opacity: 1;
  animation: burstFlash 0.42s steps(4) forwards;
}

.balloon.popping .balloon-burst i {
  animation: confettiOut 0.42s steps(4) forwards;
}

.balloon.popping .balloon-burst i:nth-child(1) { --dx: -18px; --dy: -16px; }
.balloon.popping .balloon-burst i:nth-child(2) { --dx: 16px; --dy: -18px; }
.balloon.popping .balloon-burst i:nth-child(3) { --dx: -20px; --dy: 8px; }
.balloon.popping .balloon-burst i:nth-child(4) { --dx: 18px; --dy: 10px; }
.balloon.popping .balloon-burst i:nth-child(5) { --dx: 0px; --dy: -22px; }
.balloon.popping .balloon-burst i:nth-child(6) { --dx: 4px; --dy: 18px; }

.balloon.popped {
  pointer-events: none;
  visibility: hidden;
  animation: none;
}

@keyframes balloonFloat {
  0%,
  100% { transform: translateY(0) scale(var(--balloon-scale, 1)); }
  50% { transform: translateY(-8px) scale(var(--balloon-scale, 1)); }
}

@keyframes balloonPop {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: brightness(1);
  }
  35% {
    transform: scale(1.25) rotate(-4deg);
    opacity: 1;
    filter: brightness(1.2);
  }
  70% {
    transform: scale(1.45) rotate(6deg);
    opacity: 0.55;
  }
  100% {
    transform: scale(0.1) rotate(12deg);
    opacity: 0;
  }
}

@keyframes burstFlash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes confettiOut {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.4);
  }
}

.balloon-reveal,
.px-bubble {
  max-width: min(220px, 70vw);
  padding: 0.65rem 0.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--px-outline);
  background: #fffaf3;
  border: 3px solid var(--px-outline);
  box-shadow: 3px 3px 0 var(--px-outline);
  position: relative;
  z-index: 50;
  margin: 0.5rem auto 0;
}

.balloon-reveal {
  position: absolute;
  left: 50%;
  top: 40%;
  margin: 0;
  max-width: min(200px, 58vw);
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.balloon-reveal.note-pop {
  animation: notePopIn 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.balloon-reveal p {
  margin: 0;
}

@keyframes notePopIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.px-booth-art {
  width: 100%;
  max-width: 148px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(2px 3px 0 rgba(61, 42, 32, 0.28));
}

.camera-btn:hover .px-booth-art,
.camera-btn:focus-visible .px-booth-art {
  filter: drop-shadow(2px 3px 0 rgba(61, 42, 32, 0.28)) brightness(1.05);
}

.px-board-art {
  width: 100%;
  max-width: 120px;
}

/* walking cat */
.px-cat {
  position: absolute;
  z-index: 5;
  left: 12%;
  top: calc(86% - 24px);
  width: 19.57%;
  max-width: 134px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transform-origin: bottom center;
  image-rendering: pixelated;
}

.px-cat-art {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  filter: drop-shadow(2px 2px 0 rgba(61, 42, 32, 0.25));
  animation: catBob 0.45s steps(2) infinite;
}

.px-cat.meowing .px-cat-art {
  animation: catHop 0.28s steps(2);
}

.px-cat.facing-left.meowing .px-cat-art {
  animation: catHopFlip 0.28s steps(2);
}

.px-cat-bubble {
  position: absolute;
  left: 50%;
  bottom: 92%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  line-height: 1.3;
  color: var(--px-outline);
  background: #fffaf3;
  border: 3px solid var(--px-outline);
  box-shadow: 2px 2px 0 var(--px-outline);
  padding: 0.35rem 0.4rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
}

@keyframes catBob {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.px-cat.facing-left .px-cat-art {
  animation-name: catBobFlip;
}

@keyframes catBobFlip {
  0%,
  100% { transform: scaleX(-1) translateY(0); }
  50% { transform: scaleX(-1) translateY(-2px); }
}

@keyframes catHop {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes catHopFlip {
  0%,
  100% { transform: scaleX(-1) translateY(0); }
  50% { transform: scaleX(-1) translateY(-8px); }
}

.px-hint {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  color: #7a3a5a;
  background: rgba(255, 232, 240, 0.92);
  padding: 0.2rem 0.3rem;
  border: 1px solid var(--px-pink);
}

.cake-hint {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.px-dining:has(.cake-btn:hover) + .cake-hint,
.px-dining:has(.cake-btn:focus-visible) + .cake-hint {
  opacity: 1;
  transform: translateY(0);
}

.px-cake-spot:has(.cake-btn.blown) .cake-hint {
  color: var(--px-purple);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes smokeUp {
  0% { transform: translateY(0); opacity: 0.7; }
  100% { transform: translateY(-14px); opacity: 0; }
}

.flame {
  transform-origin: center bottom;
  animation: flicker 0.4s steps(2) infinite alternate;
}

.flame.f2 { animation-delay: 0.1s; }
.flame.f3 { animation-delay: 0.2s; }

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

.wall-notes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.wall-notes .sticky {
  pointer-events: auto;
  cursor: pointer;
}

.wall-notes .sticky:hover,
.wall-notes .sticky:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid #ffe8f0;
  outline-offset: 1px;
}

.pixel-stage.is-placing .wall-notes {
  z-index: 8;
  pointer-events: auto;
  cursor: crosshair;
}

.pixel-stage.is-placing .wall-notes .sticky:not(.is-ghost) {
  opacity: 0.32;
  filter: saturate(0.65);
  pointer-events: none;
}

.pixel-stage.is-placing .px-hotspot,
.pixel-stage.is-placing .px-cat {
  pointer-events: none;
}

.wall-place-hint {
  position: absolute;
  left: 50%;
  top: 10%;
  z-index: 55;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #3d2a20;
  background: #fff6ea;
  border: 3px solid #3d2a20;
  box-shadow: 3px 3px 0 rgba(61, 42, 32, 0.2);
  pointer-events: none;
  white-space: nowrap;
}

.sticky {
  position: absolute;
  width: clamp(40px, 6.5vw, 56px);
  height: clamp(40px, 6.5vw, 56px);
  padding: 0.28rem 0.3rem;
  font-size: 0.5rem;
  line-height: 1.2;
  color: #3d2f22;
  box-shadow: 2px 2px 0 rgba(61, 42, 32, 0.18);
  word-break: break-word;
  border: 2px solid #3d2a20;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.sticky p {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(0.42rem, 1.25vw, 0.55rem);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.sticky.is-mosaic p {
  -webkit-line-clamp: 1;
  text-align: center;
}

.sticky.is-ghost {
  pointer-events: none;
  opacity: 1;
  z-index: 60 !important;
  width: clamp(56px, 10vw, 78px);
  height: clamp(56px, 10vw, 78px);
  padding: 0.35rem 0.38rem;
  border-width: 1px;
  outline: 1px solid #ffe8f0;
  outline-offset: 2px;
  box-shadow:
    0 0 0 1px #3d2a20,
    4px 4px 0 rgba(61, 42, 32, 0.28);
  animation: ghostPulse 1.1s ease-in-out infinite;
}

.sticky.is-ghost::after {
  content: "your note";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 0.28rem 0.4rem;
  font-family: var(--font-pixel);
  font-size: 0.34rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  white-space: nowrap;
  color: #fffaf3;
  background: #3d2a20;
  border: 2px solid #ffe8f0;
  box-shadow: 2px 2px 0 rgba(61, 42, 32, 0.25);
}

.sticky.is-ghost p {
  font-size: clamp(0.48rem, 1.4vw, 0.62rem);
  -webkit-line-clamp: 5;
}

@keyframes ghostPulse {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px #3d2a20,
      4px 4px 0 rgba(61, 42, 32, 0.28);
  }
  50% {
    filter: brightness(1.08);
    box-shadow:
      0 0 0 1px #3d2a20,
      0 0 0 4px rgba(255, 232, 240, 0.9),
      4px 4px 0 rgba(61, 42, 32, 0.28);
  }
}

.sticky-read-body {
  margin: 0;
  font-family: var(--font-script);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3d2f22;
  white-space: pre-wrap;
  word-break: break-word;
}

.sticky-read-create {
  margin-top: 1rem;
  width: 100%;
}

/* opened sticky = big sticky note */
.sticky-read-modal {
  max-width: none;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.sticky-read-modal::backdrop {
  background: rgba(30, 18, 24, 0.55);
}

.sticky-read-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.sticky-read-card {
  position: relative;
  width: min(280px, 78vw);
  min-height: min(280px, 78vw);
  padding: 1.75rem 1.35rem 1.5rem;
  background: var(--sticky-1);
  color: #3d2f22;
  border: 3px solid #3d2a20;
  box-shadow: 6px 6px 0 rgba(61, 42, 32, 0.22);
  transform: rotate(-2deg);
  image-rendering: pixelated;
}

.sticky-read-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 72px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(61, 42, 32, 0.18);
  box-shadow: 0 2px 0 rgba(61, 42, 32, 0.08);
}

.sticky-read-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: #3d2a20;
  background: transparent;
  border: 2px solid #3d2a20;
  cursor: pointer;
}

.sticky-read-close:hover,
.sticky-read-close:focus-visible {
  background: rgba(61, 42, 32, 0.08);
  outline: none;
}

.sticky-read-modal .sticky-read-body {
  margin: 0.5rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  line-height: 1.4;
  color: #3d2f22;
  white-space: pre-wrap;
  word-break: break-word;
}

.sticky-read-create {
  margin-top: 0;
  width: auto;
  min-width: 12rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 10000;
  transform: translateX(-50%);
  padding: 0.7rem 1rem;
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  line-height: 1.5;
  color: #fffaf3;
  background: #e8789a;
  border: 3px solid #3d2a20;
  box-shadow: 3px 3px 0 #3d2a20;
  animation: fadeIn 0.3s ease;
}

.modal {
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: calc(100vw - 2rem);
  background: transparent;
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(61, 42, 32, 0.45);
}

.modal-frame {
  position: relative;
  padding: 8px;
  background: #3d2a20;
  box-shadow: 0 12px 0 rgba(61, 42, 32, 0.18);
}

.px-modal .modal-frame::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #8b6b4a;
  pointer-events: none;
  z-index: 2;
}

.modal-inner,
.px-dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 88vw);
  padding: 1.35rem 1.2rem 1.25rem;
  background: #fff6ea;
  background-image:
    linear-gradient(rgba(232, 180, 160, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 150, 130, 0.1) 1px, transparent 1px);
  background-size: 12px 12px;
  border: none;
  box-shadow: none;
}

.modal-inner--wide {
  width: min(520px, 90vw);
}

.px-modal .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.px-modal .modal-head h2 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-transform: lowercase;
  color: #9d3f36;
  text-shadow: 2px 2px 0 #ffe8f0;
}

.px-dialog-lede {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #7a6a57;
}

.px-close,
.modal-close {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  color: #3d2a20;
  background: #ffe8f0;
  border: 2px solid #3d2a20;
  box-shadow: 2px 2px 0 #3d2a20;
  cursor: pointer;
}

.px-close:hover,
.px-close:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  color: #fffaf3;
  background: #e8789a;
  border-color: #3d2a20;
  outline: none;
}

.sticky-form,
.px-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.px-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.px-form label span {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #7a3a5a;
}

.px-form input,
.px-form textarea {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #3d2a20;
  background: #fffaf3;
  border: 3px solid #3d2a20;
  border-radius: 0;
  padding: 0.65rem 0.7rem;
  resize: vertical;
  box-shadow: inset 2px 2px 0 rgba(61, 42, 32, 0.06);
}

.px-form input:focus,
.px-form textarea:focus {
  outline: none;
  border-color: #e8789a;
  box-shadow: 0 0 0 2px rgba(232, 120, 154, 0.25);
}

#sticky-body {
  min-height: 6.5rem;
  background: #fffaf3;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: inset 2px 2px 0 rgba(61, 42, 32, 0.06);
}

.px-form .px-enter {
  margin-top: 0.25rem;
  width: 100%;
}

.form-error {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  line-height: 1.5;
  color: #9d3f36;
}

.btn-primary {
  color: var(--paper);
  background: var(--postal-red);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--postal-deep);
  filter: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px dashed var(--border);
  border-radius: 2px;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--postal-red);
  color: var(--postal-red);
  outline: none;
}

/* classic photo booth */
.camera-modal {
  max-width: min(420px, calc(100vw - 1.25rem));
  padding: 0;
  border: none;
  background: transparent;
}

.camera-modal::backdrop {
  background: rgba(20, 12, 18, 0.72);
}

.photobooth {
  position: relative;
  width: min(380px, 92vw);
  margin: 0 auto;
  color: #fffaf3;
  font-family: var(--font-pixel);
}

.photobooth-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 8;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fffaf3;
  background: #3d2a20;
  border: 2px solid #f7f2ea;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.photobooth-marquee {
  position: relative;
  background:
    repeating-linear-gradient(
      180deg,
      #8b6b4a 0 6px,
      #6a4e38 6px 7px,
      #7a5a40 7px 13px
    );
  border: 4px solid #1a1410;
  border-bottom: none;
  padding: 0.7rem 0.85rem 0.75rem;
  text-align: center;
  image-rendering: pixelated;
  box-shadow: inset 0 2px 0 rgba(255, 246, 234, 0.12);
}

.photobooth-sign-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #f4a0b8;
}

.photobooth-body {
  position: relative;
  background:
    repeating-linear-gradient(
      90deg,
      #5a3d32 0 12px,
      #4a3228 12px 13px,
      #3d2a20 13px 24px
    );
  border: 4px solid #1a1410;
  border-top: none;
  padding: 1rem 0.85rem 1.1rem;
  overflow: hidden;
}

.photobooth-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      #8b1e36 0 8px,
      #c43b55 8px 10px,
      #6e1528 10px 18px
    );
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, 0.35);
  image-rendering: pixelated;
}

.photobooth-curtain--left {
  left: 0;
  border-right: 2px solid #3d1018;
}

.photobooth-curtain--right {
  right: 0;
  border-left: 2px solid #3d1018;
  box-shadow: inset 6px 0 10px rgba(0, 0, 0, 0.35);
}

.photobooth-cabin {
  position: relative;
  z-index: 2;
  margin: 0 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.photobooth-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #050505;
  border: 4px solid #c8b8a0;
  box-shadow:
    inset 0 0 0 3px #1a1410,
    0 0 0 2px #5a4030,
    0 10px 20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.photobooth-screen video,
.photobooth-screen canvas,
.photobooth-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photobooth-bezel {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border: 14px solid rgba(247, 242, 234, 0.92);
  border-bottom-width: 40px;
  z-index: 2;
}

.photobooth-brand {
  position: absolute;
  left: 4px;
  bottom: -28px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #1a1410;
}

.photobooth-5k {
  position: absolute;
  right: 4px;
  bottom: -26px;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: #c43b55;
}

.photobooth-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.photobooth-flash.is-on {
  animation: boothFlash 0.28s steps(3) forwards;
}

@keyframes boothFlash {
  0% { opacity: 0.95; }
  60% { opacity: 0.55; }
  100% { opacity: 0; }
}

.photobooth-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 4.5rem;
}

.photobooth-shutter {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #f7f2ea;
  background: radial-gradient(circle at 35% 30%, #ff6b8a, #c43b55 55%, #8b1e36 100%);
  box-shadow:
    0 0 0 3px #1a1410,
    0 6px 0 #5a1524,
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  color: #fffaf3;
}

.photobooth-shutter:hover,
.photobooth-shutter:focus-visible {
  transform: translateY(-1px);
  outline: none;
  filter: brightness(1.06);
}

.photobooth-shutter:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 3px #1a1410,
    0 2px 0 #5a1524,
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.photobooth-shutter-ring {
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.photobooth-shutter-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.photobooth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: none;
  color: #1a1410;
  background: #f7f2ea;
  border: 3px solid #1a1410;
  box-shadow: 2px 2px 0 #1a1410;
  cursor: pointer;
}

.photobooth-btn:hover,
.photobooth-btn:focus-visible {
  background: #ffd36a;
  outline: none;
}

.photobooth-note,
.booth-error {
  margin: 0;
  text-align: center;
}

.photobooth-note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(247, 242, 234, 0.65);
}

.booth-error {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  line-height: 1.5;
  color: #ffb3c4;
}

.photobooth-slot {
  position: relative;
  overflow: visible;
  background:
    repeating-linear-gradient(
      180deg,
      #3d2a20 0 6px,
      #2a1c18 6px 7px
    );
  border: 4px solid #1a1410;
  border-top: none;
  padding: 0.55rem 0.75rem 0.9rem;
  text-align: center;
  min-height: 7.5rem;
}

.photobooth-slot::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 10px;
  background: #0d0a08;
  border: 2px solid #5a4030;
  border-top: none;
  z-index: 3;
}

.photobooth-strip-tab {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.38rem;
  letter-spacing: 0.06em;
  color: #a09080;
  background: #0d0a08;
  border: 3px solid #5a4030;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.04);
}

.photobooth-slot.is-printing .photobooth-strip-tab {
  display: none;
}

.photobooth-strip-out {
  position: relative;
  z-index: 2;
  width: min(42%, 120px);
  margin: 0.35rem auto 0;
  overflow: hidden;
  border: 3px solid #1a1410;
  background: #f7f2ea;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  animation: stripEject 0.85s steps(8) both;
}

.photobooth-strip-out img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  image-rendering: auto;
}

.photobooth-download {
  position: relative;
  z-index: 4;
  display: inline-flex;
  margin-top: 0.65rem;
}

.photobooth-slot.is-printing {
  padding-bottom: 1rem;
}

@keyframes stripEject {
  0% {
    transform: translateY(-110%);
    opacity: 0.4;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.photobooth-screen.has-print .photobooth-bezel {
  opacity: 1;
}

/* preview already has brand text drawn on the image — hide overlay labels */
.photobooth-screen.has-print .photobooth-brand,
.photobooth-screen.has-print .photobooth-5k {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1rem 3rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.site-footer p {
  margin: 0;
}

.footer-soft {
  margin-top: 0.35rem !important;
  font-family: var(--font-script-fancy);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--postal-red);
  opacity: 0.75;
}

@media (max-width: 720px) {
  body.is-in-room {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .hero-panel {
    padding: 1.85rem 1.15rem 1.45rem;
  }

  .hero-frame {
    max-width: 94vw;
  }

  .pixel-room {
    padding: 0.75rem;
    width: 100%;
    margin-block: auto;
    box-sizing: border-box;
  }

  .px-tip {
    font-size: 0.32rem;
  }

  .px-balloons { width: 100%; left: 0; height: 68%; }
  .px-cake-spot { width: 58%; left: 31%; }

  .px-dining .cake-btn {
    width: 40%;
    bottom: 48%;
  }
  .px-camera-spot { width: 20%; left: 2%; bottom: calc(10% + 10px); }
  .px-board-spot { width: 24%; }

  .balloon-field {
    min-height: 180px;
    height: 100%;
  }

  .balloon {
    width: 32%;
    min-width: 62px;
    max-width: 96px;
  }

  .sticky {
    width: clamp(28px, 4.6vw, 38px);
    height: clamp(28px, 4.6vw, 38px);
    padding: 0.18rem 0.2rem;
    border-width: 1.5px;
  }

  .sticky.is-ghost {
    width: clamp(44px, 12vw, 64px);
    height: clamp(44px, 12vw, 64px);
    padding: 0.28rem 0.3rem;
    border-width: 1px;
  }

  .sticky.is-ghost::after {
    font-size: 0.3rem;
    bottom: calc(100% + 6px);
  }

  .sticky p {
    font-size: clamp(0.3rem, 0.9vw, 0.4rem);
  }

  .sticky.is-ghost p {
    font-size: clamp(0.4rem, 1.1vw, 0.52rem);
  }

  .wall-place-hint {
    font-size: 0.32rem;
    white-space: normal;
    text-align: center;
    max-width: 80%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle,
  .flame,
  .balloon,
  .px-cat-art,
  .hero-chrome,
  .sticky.is-ghost {
    animation: none !important;
  }
}
