/* All colors, decoration and controls belong to the seasonal feature. */
.jg-ribbon, .jg-dialog {
  --jg-pine: #133f35;
  --jg-cream: #fff6dd;
  --jg-gold: #e5bc70;
  --jg-red: #8d2536;
  font-family: 'DM Sans', sans-serif;
}
.site-header .jg-ribbon {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: none; height: 32px; margin: 0; color: var(--jg-cream);
  background: linear-gradient(95deg, #12382f, #245448 38%, #183e34 65%, #0c2c26);
  border-block: 1px solid #b49a61; box-shadow: 0 2px 6px #17261d22;
}
.jg-lights { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.jg-lights::before, .jg-lights::after {
  content: ""; position: absolute; inset: 0; background-repeat: repeat-x; background-size: 156px 30px;
  mask-image: linear-gradient(90deg, #000 8%, #0006 32%, transparent 43% 57%, #0006 68%, #000 92%);
}
.jg-lights::before {
  background-image: radial-gradient(ellipse 89px 20px at 78px -8px, transparent 96%, #b8a56c 100%, transparent 104%);
}
.jg-lights::after {
  background-image:
    radial-gradient(ellipse 2px 3px at 21px 10px, #ffe4a7 64%, transparent 100%),
    radial-gradient(ellipse 2px 3px at 52px 15px, #d66565 64%, transparent 100%),
    radial-gradient(ellipse 2px 3px at 87px 16px, #ffe8ae 64%, transparent 100%),
    radial-gradient(ellipse 2px 3px at 122px 13px, #c67f72 64%, transparent 100%);
  filter: drop-shadow(0 0 2px #e1b86d);
}
.jg-greeting { position: relative; display: inline-flex; align-items: center; gap: 13px; font: italic 18px/1 Georgia, serif; }
.jg-greeting i { color: var(--jg-gold); font: normal 9px/1 Georgia, serif; }
.jg-ribbon button, .jg-dialog button { font-family: inherit; cursor: pointer; }
.jg-ribbon .jg-gift {
  position: absolute; top: 100%; right: clamp(12px, 2.2vw, 38px); display: grid; justify-items: center;
  width: max-content; border: 0; margin: 0; padding: 8px 0 0;
  background: transparent; color: var(--jg-cream); line-height: 1;
  filter: drop-shadow(0 4px 7px #141b163d);
}
.jg-gift::before {
  content: ""; position: absolute; top: 0; width: 6px; height: 17px; z-index: 1;
  background: repeating-linear-gradient(60deg, #b73f46 0 3px, #ffeaba 3px 6px);
}
.jg-ornament {
  width: clamp(97px, 8.4vw, 128px); aspect-ratio: 1; box-sizing: border-box; display: grid; place-items: center; position: relative;
  border-radius: 50%; border: 1px solid #bd985a;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px #f9e2a2, inset 0 0 0 3px #846539, 0 0 9px #e5b46066;
  background: radial-gradient(ellipse at 50% 48%, #386352 0%, #173f36 54%, #092825 80%);
}
.jg-ornament .jo-xmas-tree { width: 74%; }
.jg-invite {
  position: relative; margin-top: 3px; border: 1px solid #c9a770; border-radius: 4px;
  padding: 7px 9px; background: var(--jg-red); color: #fff6e2;
  font-size: clamp(11px, .85vw, 13px); line-height: 1.1; font-weight: 700; white-space: nowrap;
}
.jg-invite .jg-arrow { margin-left: 3px; color: #f5da9b; }
.jg-gift:hover .jg-invite { background: #752031; }
.jg-gift:focus-visible, .jg-dialog button:focus-visible { outline: 3px solid #e89632; outline-offset: 3px; }
.jg-snow {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none !important; z-index: 18;
  contain: strict;
}
.jg-snow i {
  position: absolute; left: var(--left); top: -16px; width: var(--size); height: var(--size);
  border-radius: 50%; background: #fff; opacity: .78; box-shadow: 0 1px 3px #6c9ab5;
  animation: jg-snowfall var(--time) linear var(--phase) infinite;
}
.jg-snow i:not(:empty) { width: auto; height: auto; font: normal 12px/1 Georgia,serif; color: #fff; box-shadow: none; background: transparent; text-shadow: 0 0 2px #698d9b; }
@keyframes jg-snowfall {
  0% { transform: translate3d(0, 0, 0); }
  48% { transform: translate3d(var(--drift), 49vh, 0); }
  100% { transform: translate3d(0, calc(100vh + 32px), 0); }
}

.jg-dialog {
  background: transparent; color: #22372f; padding: 0; border: 0; border-radius: 17px;
  width: min(386px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; box-shadow: 0 24px 84px #091b1bc7; overflow: auto;
}
.jg-dialog::backdrop { background: rgb(9 25 22 / 66%); backdrop-filter: blur(3px); }
.jg-ticket { position: relative; overflow: hidden; border: 1px solid #d7bb82; border-radius: inherit; background: #fff9eb; }
.jg-ticket p { margin: 0; }
.jg-close {
  position: absolute; right: 8px; top: 7px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: #fff4d9; font-size: 25px; font-weight: 400; line-height: 1; z-index: 2;
}
.jg-close:hover { background: #ffffff1c; }
.jg-face {
  position: relative; isolation: isolate; text-align: center; color: var(--jg-cream);
  padding: 27px 18px 30px; border-bottom: 2px dashed #d1af77;
  background: radial-gradient(ellipse at 50% 10%, #295648, #153c32 75%);
}
.jg-face::before {
  content: ""; position: absolute; z-index: -1; inset: 9px; border: 1px solid #b69b635c;
  border-radius: 8px 8px 0 0; pointer-events: none;
  background:
    radial-gradient(circle at 8% 29%, #edcf87 0 1px, transparent 1.5px),
    radial-gradient(circle at 16% 76%, #edcf8780 0 1.5px, transparent 2px),
    radial-gradient(circle at 87% 45%, #edcf87 0 1.2px, transparent 2px),
    radial-gradient(circle at 91% 82%, #edcf8780 0 1px, transparent 2px);
}
.jg-bow { position: relative; width: 42px; height: 32px; margin: 0 auto 8px; color: #f0d091; }
.jg-bow::before, .jg-bow::after { content: ""; position: absolute; top: 5px; width: 19px; height: 11px; border: 2px solid currentColor; }
.jg-bow::before { left: 2px; border-radius: 50% 70% 20% 65%; transform: rotate(19deg); }
.jg-bow::after { right: 2px; border-radius: 70% 50% 65% 20%; transform: rotate(-19deg); }
.jg-bow i, .jg-bow b { position: absolute; top: 15px; left: 19px; width: 4px; height: 13px; background: currentColor; transform-origin: top; }
.jg-bow i { transform: rotate(29deg); } .jg-bow b { transform: rotate(-29deg); }
.jg-face p { font: 700 11px/1.4 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: .18em; color: #f0d294; }
.jg-dialog h2 { color: #fff4d8; margin: 6px 0 3px; font: 400 clamp(62px, 13vw, 86px)/1.04 Georgia,serif; letter-spacing: -.065em; }
.jg-dialog h2 em { font-weight: 400; font-size: .76em; }
.jg-from { font: italic 16px/1.6 Georgia, serif; color: #f5e0ae; }
.jg-redeem { padding: 24px clamp(16px, 6vw, 28px); text-align: center; }
.jg-redeem p { color: #35483e; font-size: 15px; line-height: 1.45; }
.jg-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 12px;
  padding: 4px 5px 4px 15px; background: #fffdf5; border: 1px dashed #ac9161; border-radius: 8px; }
.jg-code code { color: #173d31; background: transparent; font: 650 19px/1.3 ui-monospace, monospace; letter-spacing: .015em; }
.jg-copy { border: 0; border-radius: 5px; background: #efe8d4; color: #344837; padding: 0 12px; min-height: 42px; font-size: 13px; font-weight: 700; }
.jg-copy:hover { background: #e7ddbc; }
.jg-book { width: 100%; min-height: 46px; border: 0; border-radius: 8px; color: #fff7ea; background: var(--jg-red); font-size: 15px; font-weight: 700; }
.jg-book span { margin-left: 6px; }
.jg-book:hover { background: #762031; }
.jg-status { display: block; min-height: 0; font-size: 13px; line-height: 1.4; color: #3f5b46; }
.jg-status:not(:empty) { margin-top: 8px; }
html:has(.jg-dialog[open]) { overflow: hidden; }
@media (max-width: 819px) {
  .site-header .jg-ribbon { --jg-inset: clamp(16px, 5vw, 32px); height: 76px; justify-content: flex-start; }
  .jg-greeting { position: absolute; left: var(--jg-inset); top: 12px; gap: 10px; font-size: 23px; }
  .jg-greeting i { font-size: 8px; }
  .jg-lights::before, .jg-lights::after { mask-image: linear-gradient(90deg, transparent, #0005 60%, #0009); }
  .jg-ribbon .jg-gift { inset: 0; width: 100%; height: 100%; display: block; padding: 0; filter: none; }
  .jg-gift::before { display: none; }
  .jg-ornament { position: absolute; top: 2px; right: var(--jg-inset); width: 70px; }
  .jg-invite, .jg-gift:hover .jg-invite {
    position: absolute; left: var(--jg-inset); bottom: 11px; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: transparent; color: #f5dcaa; font-size: 12px;
  }
  .jg-invite .jg-arrow { margin-left: 4px; }
  .jg-gift:focus-visible { outline-offset: -3px; }
  .jg-snow i:nth-child(3n) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jg-snow { display: none; }
}
@media print {
  .site-header .jg-ribbon, .jg-snow, .jg-dialog { display: none !important; }
}
