.house-celebration {
  --hc-gold:#f1d699;
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:clamp(12px,4vw,44px);
  padding-bottom:max(clamp(12px,4vw,44px),env(safe-area-inset-bottom));
  border:0;
  background:transparent;
  color:#fff8e8;
  overflow:auto;
  overscroll-behavior:contain;
}
.house-celebration[open] {display:flex}
.house-celebration::backdrop {background:radial-gradient(ellipse at 50% 39%,#312532de,#100d16f5 82%)}
body:has(.house-celebration[open]) {overflow:hidden}
.hc-card {
  isolation:isolate;
  position:relative;
  flex:none;
  display:flex;
  align-items:flex-end;
  width:min(100%,51rem);
  min-height:clamp(29rem,70svh,35rem);
  margin:auto;
  padding:clamp(29px,5.5vw,58px);
  overflow:hidden;
  border:1px solid #dcc083;
  border-radius:3px;
  box-shadow:0 30px 100px #08050bcc,0 0 0 4px #856a442e;
  background:#262130;
  animation:hc-arrive .6s ease-out both;
}
.hc-card::after {
  position:absolute;
  z-index:4;
  inset:6px;
  border:1px solid #e7c6829e;
  content:"";
  pointer-events:none;
}
.hc-image,.hc-image::after,.hc-image img,.hc-confetti,.hc-curtains {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hc-image {
  z-index:-2;
  background:radial-gradient(ellipse at 65% 26%,#ccaa6c66,transparent 58%),repeating-linear-gradient(120deg,#44364b 0 12px,#483b4e 12px 14px,#44364b 14px 24px);
}
.hc-image img {object-fit:cover;object-position:center 45%;animation:hc-photo 4.5s ease-out both}
.hc-image::after {
  content:"";
  background:linear-gradient(0deg,#17131afc 0%,#19151ce8 13%,#1f1924a6 36%,#231a2410 67%),linear-gradient(105deg,#1b171f4a,transparent 65%);
}
.hc-curtains,.hc-confetti {z-index:1;overflow:hidden}
.hc-curtains {display:none}
.hc-grand .hc-curtains {display:block}
.hc-curtains::before,.hc-curtains::after {
  position:absolute;top:0;bottom:0;width:51%;
  background:repeating-linear-gradient(90deg,#392331,#613747 11%,#422636 19%,#2d1c29 24%,#472a38 33%);
  content:"";
  animation:hc-unveil 1.5s .06s cubic-bezier(.3,.68,.22,1) both;
}
.hc-curtains::before {left:0;border-right:3px double #c6a261;--hc-side:-101%}
.hc-curtains::after {right:0;border-left:3px double #c6a261;--hc-side:101%}
.hc-confetti i {
  position:absolute;top:var(--drop);left:var(--left);width:5px;height:10px;
  background:linear-gradient(135deg,#fff1af,#c4953c 68%,#f8d582);
  animation:hc-fall var(--duration) var(--delay) ease-in both;
}
.hc-confetti i:nth-child(3n) {width:4px;height:4px;background:#ffefd3}
.hc-confetti i:nth-child(4n) {width:6px;height:9px;border-radius:1px 75% 1px 75%;background:#dfab9a}
.hc-seal {
  position:absolute;z-index:2;top:clamp(23px,4vw,37px);left:clamp(25px,5vw,52px);
  width:67px;height:67px;border:3px double #eed395;border-radius:50%;
  background:radial-gradient(circle at 36% 24%,#61474a,#332337 70%);color:#f4dca8;
  box-shadow:0 2px 9px #20131bb3,inset 0 0 0 4px #49323d,inset 0 0 0 5px #bc985e;
  animation:hc-seal .85s .14s cubic-bezier(.22,.8,.36,1) both;
}
.hc-grand .hc-seal {background:radial-gradient(circle at 36% 24%,#8a593b,#3e2130 73%);outline:1px solid #ffe2a0;outline-offset:3px}
.hc-key {position:absolute;left:27%;top:49%;width:50%;height:4px;transform:rotate(-37deg);background:currentColor;border-radius:2px}
.hc-key::before {content:"";position:absolute;left:-6px;top:-6px;width:12px;height:12px;border:2px solid currentColor;border-radius:50%;background:#583945}
.hc-key::after,.hc-key i {content:"";position:absolute;right:2px;top:1px;width:3px;height:8px;background:currentColor}
.hc-key i {right:7px;height:6px}
.hc-close {
  position:absolute;z-index:5;right:13px;top:13px;width:44px;height:44px;border:1px solid #edd5aba3;border-radius:50%;
  color:#fff7de;background:#221c25ce;font:normal 27px/1 system-ui,sans-serif;
}
.hc-copy {position:relative;z-index:2;max-width:100%;margin-top:clamp(142px,26svh,215px);text-shadow:0 1px 8px #171019}
.hc-award {display:flex;align-items:center;gap:10px;margin:0 0 6px;color:#fde5af;font:600 .91rem/1.6 var(--serif,serif);letter-spacing:.11em}
.hc-award::before {width:28px;height:1px;background:currentColor;content:""}
.hc-copy h2 {margin:0;color:#fff6e7;font:600 clamp(1.75rem,5.2vw,3.5rem)/1.35 var(--serif,serif);letter-spacing:.045em;overflow-wrap:anywhere}
.hc-moment {max-width:35em;margin:10px 0 18px;font:400 1rem/1.75 var(--serif,serif);color:#fff4df}
.hc-enter {min-height:44px;border:1px solid #f5dda8;border-radius:3px;background:#f6e3b9;color:#402b29;padding:8px 25px;font:650 1rem/1.5 var(--serif,serif);box-shadow:0 2px 9px #110a195e}
.hc-enter:hover {background:#fff2d4}
.house-celebration button:focus-visible {outline:3px solid white;outline-offset:4px}
@keyframes hc-arrive {from{opacity:0;transform:translateY(11px) scale(.983)}to{opacity:1;transform:none}}
@keyframes hc-photo {from{transform:scale(1.055)}to{transform:scale(1)}}
@keyframes hc-seal {from{opacity:0;transform:translateY(-22px) rotate(-22deg)}to{opacity:1;transform:none}}
@keyframes hc-unveil {to{transform:translateX(var(--hc-side))}}
@keyframes hc-fall {
  0%{opacity:0;transform:translate3d(0,-26vh,0) rotate(0)}
  14%{opacity:.95}
  76%{opacity:.84}
  100%{opacity:0;transform:translate3d(var(--drift),42vh,0) rotate(205deg)}
}
@media (max-width:490px) {
  .hc-card {min-height:min(34rem,78svh);padding:25px 22px 29px}
  .hc-seal {left:23px;top:23px;width:56px;height:56px}
  .hc-copy {margin-top:140px}
  .hc-award {font-size:.84rem}
}
@media (max-height:490px) and (min-width:491px) {
  .hc-card {min-height:0;padding:20px 35px}
  .hc-copy {margin-top:80px}
  .hc-seal {width:48px;height:48px;top:18px;left:34px}
  .hc-moment {margin:4px 0 9px}
}
@media (prefers-reduced-motion:reduce) {
  .hc-card,.hc-image img,.hc-seal,.hc-confetti i {animation:none}
  .hc-grand .hc-curtains,.hc-confetti i:nth-child(n+9) {display:none}
  .hc-confetti i {opacity:.65;transform:rotate(35deg)}
}
