/* A generous red-and-gold final invitation, using the original W1 portrait. */
.closing-cta.closing-fortune {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 54px 5% 62px;
  overflow: hidden;
  color: #fff0cb;
  background: radial-gradient(ellipse at 23% 52%, #d9220e 0%, #b70e0b 30%, transparent 65%), linear-gradient(110deg, #790b0a, #a00d0c 49%, #4c070e 100%);
  border-top: 1px solid #e8b76b;
  border-bottom: 1px solid #b87a3b;
}
.closing-fortune::before,
.closing-fortune::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%; height: 1px;
  background: linear-gradient(90deg, transparent, #f9dc9177 25%, #f9dc9177 75%, transparent);
  pointer-events: none;
}
.closing-fortune::before { top: 22px; }
.closing-fortune::after { bottom: 22px; }
.closing-fortune-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(12px, 3vw, 48px);
  align-items: center;
}
.closing-deity { position: relative; min-width: 0; aspect-ratio: 1; isolation: isolate; }
.closing-deity > img {
  display: block;
  width: 100%; height: auto;
  position: relative; z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 50% 59% at 50% 53%, #000 68%, transparent 99%);
  mask-image: radial-gradient(ellipse 50% 59% at 50% 53%, #000 68%, transparent 99%);
}
.closing-gold-waves {
  position: absolute; z-index: 2;
  inset: -10%; pointer-events: none;
  mix-blend-mode: screen;
  /* Keep the portrait's face and torso clear while the gold passes around it. */
  -webkit-mask-image: radial-gradient(ellipse 28% 40% at 50% 48%, transparent 60%, #000 100%);
  mask-image: radial-gradient(ellipse 28% 40% at 50% 48%, transparent 60%, #000 100%);
}
.closing-gold-waves i {
  position: absolute; left: 20%; top: 18%; width: 60%; height: 60%;
  border-radius: 50%; border: 2px solid #ffe4a3;
  background: radial-gradient(ellipse, transparent 54%, #ffd16b0d 63%, #ffd16b38 69%, transparent 73%);
  box-shadow: 0 0 18px 6px #ffb52c4d, inset 0 0 25px 9px #ffcf6645;
  opacity: 0;
  animation: closing-gold-wave 5.4s cubic-bezier(.2,.45,.35,1) infinite both paused;
}
.closing-gold-waves i:nth-child(2) { animation-delay: 1.8s; }
.closing-gold-waves i:nth-child(3) { animation-delay: 3.6s; }
.closing-fortune.is-flowing .closing-gold-waves i { animation-play-state: running; }
@keyframes closing-gold-wave {
  0% { transform: scale(.62); opacity: 0; }
  20% { opacity: .58; }
  65% { opacity: .3; }
  100% { transform: scale(2.15); opacity: 0; }
}
.closing-fortune-copy { position: relative; z-index: 3; min-width: 0; padding: 24px 0; }
.closing-fortune p.closing-eyebrow {
  font: 500 15px/1.8 var(--sans); letter-spacing: .14em;
  color: #f6d696; margin: 0 0 22px; text-align: left;
}
.closing-fortune h2 {
  margin: 0 0 27px;
  font: 900 clamp(30px, 3.25vw, 52px)/1.55 var(--serif);
  letter-spacing: .025em; color: #ffdb7d;
}
.closing-fortune h2 > span { display: block; }
.closing-fortune h2 > span {
  background: linear-gradient(180deg, #fff9dc 10%, #ffe397 32%, #d89424 56%, #ffedb0 70%, #f5c86a 90%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 #aa591c) drop-shadow(0 2px 0 #7d3413) drop-shadow(0 5px 4px #3602088c);
}
.closing-fortune p.closing-description {
  font: 400 17px/2 var(--sans); color: #fff0d3;
  margin: 0 0 30px; text-align: left;
}
.closing-fortune .closing-purchase {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 25px; width: min(100%, 480px); min-height: 88px;
  padding: 18px 26px; border: 1px solid #fff0b2; border-radius: 10px;
  background: linear-gradient(175deg, #fff0b4 0%, #f7d37b 36%, #dca442 57%, #f5d987 100%);
  color: #701510; text-decoration: none;
  box-shadow: inset 0 2px 1px #fff9dbe6, inset 0 -2px 0 #ab661a, 0 7px 0 #9d5317, 0 10px 0 #59200c, 0 18px 28px #30010688;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.closing-purchase-label {
  font: 900 clamp(25px, 2.3vw, 36px)/1.4 var(--serif);
  letter-spacing: .07em;
  text-shadow: 0 1px 0 #fff1b8, 0 2px 0 #b57333;
}
.closing-purchase-arrow { font-size: 30px; line-height: 1; }
.closing-fortune .closing-purchase:hover {
  transform: translateY(-3px); filter: brightness(1.06);
  box-shadow: inset 0 2px 1px #fff9dbe6, inset 0 -2px 0 #ab661a, 0 10px 0 #9d5317, 0 13px 0 #59200c, 0 23px 32px #30010688;
}
.closing-fortune .closing-purchase:active { transform: translateY(5px); }
.closing-fortune .closing-purchase:focus-visible { outline: 3px solid white; outline-offset: 8px; }
.closing-fortune p.closing-price {
  font: 400 18px/1.8 var(--sans); color: #ffe8ae;
  margin: 27px 0 3px; text-align: left;
}
.closing-price strong { font-size: 24px; font-weight: 600; }
.closing-price > span { white-space: nowrap; }
.closing-fortune p.closing-payment {
  font: 400 14px/1.8 var(--sans); color: #f2d2b7; margin: 0; text-align: left;
}
.site-footer > a.footer-line-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  min-width: 192px; min-height: 58px; padding: 14px 26px;
  border: 1px solid #008f36; border-radius: 10px;
  background: #009c3d; color: #fff;
  font: 700 22px/1.4 var(--sans); text-decoration: none;
  box-shadow: 0 4px 0 #007d31, 0 8px 18px #009c3d24;
  transition: background .2s ease, transform .2s ease;
}
.site-footer > a.footer-line-button:hover { background: #008d36; transform: translateY(-2px); }
.site-footer > a.footer-line-button:active { transform: translateY(2px); }
.site-footer > a.footer-line-button:focus-visible { outline: 3px solid #00692b; outline-offset: 5px; }
@media (max-width: 800px) {
  .closing-cta.closing-fortune { padding: 32px 6% 54px; }
  .closing-fortune-inner { grid-template-columns: minmax(0, 1fr); gap: 6px; max-width: 560px; }
  .closing-deity { width: min(100%, 460px); margin: 0 auto; }
  .closing-fortune-copy { padding: 12px 0 0; text-align: center; }
  .closing-fortune p.closing-eyebrow { font-size: 14px; letter-spacing: .08em; margin-bottom: 14px; text-align: center; }
  .closing-fortune h2 { font-size: clamp(29px, 6.8vw, 44px); line-height: 1.6; margin-bottom: 20px; }
  .closing-fortune p.closing-description { font-size: 16px; text-align: center; margin-bottom: 26px; }
  .closing-fortune .closing-purchase { width: 100%; min-height: 82px; gap: 18px; padding: 16px 20px; }
  .closing-purchase-label { font-size: clamp(27px, 6.5vw, 34px); }
  .closing-fortune p.closing-price, .closing-fortune p.closing-payment { text-align: center; }
}
@media (max-width: 700px) {
  .site-footer > a.footer-line-button { width: 100%; margin-left: 0; min-height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .closing-gold-waves { display: none; }
  .closing-fortune .closing-purchase { transition: none; }
  .closing-fortune .closing-purchase:hover, .closing-fortune .closing-purchase:active { transform: none; }
  .site-footer > a.footer-line-button { transition: none; }
  .site-footer > a.footer-line-button:hover, .site-footer > a.footer-line-button:active { transform: none; }
}
@media print {
  .closing-gold-waves { display: none; }
  .closing-fortune h2 > span { color: #701510; background: none; filter: none; }
}
