

.hg-intro { max-width: 640px; margin: 0 auto 48px; text-align: center; font-size: 18px; line-height: 1.6; }

.hg-pile { display: flex; justify-content: center; align-items: flex-end; gap: 32px; }
.hg-stack { display: flex; flex-direction: column; align-items: center; gap: 30px; }

.hg-gift {
  --hg-rot: 0deg;
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 16px 28px 16px 66px; background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(20, 32, 56, .12);
  color: inherit; text-decoration: none;
  transform: rotate(var(--hg-rot));
  transition: transform .2s ease, box-shadow .2s ease;
}

.hg-gift { --hg-c: #c0262d; --hg-c-dark: #8f1a1f; border: 3px solid var(--hg-c);  }
.hg-green { --hg-c: #2e7d32; --hg-c-dark: #1b5e20;  }
.hg-tilt-l { --hg-rot: -1.5deg; }
.hg-tilt-r { --hg-rot: 1.2deg; }
.hg-w1 { width: 340px; }
.hg-w2 { width: 390px; }
.hg-w3 { width: 450px; }
.hg-tall { --hg-rot: -4deg; width: 250px; min-height: 330px; margin-bottom: 4px; }
.hg-tall .hg-title { font-size: 36px; }


.hg-gift::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 16px; background: var(--hg-c); }

.hg-bow { position: absolute; left: 0; top: -25px; width: 64px; height: 36px; transform-origin: 50% 70%; }
.hg-loop { fill: var(--hg-c); }
.hg-tail, .hg-knot { fill: var(--hg-c-dark); }

.hg-tag { font-size: 14px; line-height: 1.35; color: var(--text); }
.hg-title { margin-top: 2px; font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1.15; color: var(--navy-text); }

.hg-gift:hover, .hg-gift:focus-visible { transform: translateY(-6px) rotate(0deg); box-shadow: 0 12px 24px rgba(20, 32, 56, .18); }
.hg-gift:hover .hg-bow, .hg-gift:focus-visible .hg-bow { animation: hg-wiggle .5s ease; }
.hg-gift:hover .hg-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hg-gift:focus-visible { outline: 3px solid var(--steel-text); outline-offset: 4px; }
@keyframes hg-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg); } 65% { transform: rotate(8deg); } }

.hg-close { margin-top: 56px; text-align: center; font-size: 18px; line-height: 1.6; }
.hg-close p { margin: 0 0 12px; }

@media (prefers-reduced-motion: reduce) {
  .hg-gift { transition: none; }
  .hg-gift:hover .hg-bow, .hg-gift:focus-visible .hg-bow { animation: none; }
}

@media (max-width: 760px) {
  .hg-intro { margin-bottom: 40px; font-size: 17px; }
  .hg-pile { flex-direction: column; align-items: center; gap: 30px; }
  .hg-stack { width: 100%; }
  .hg-w1, .hg-w2, .hg-w3, .hg-tall { width: 100%; max-width: 420px; }
  .hg-tall { --hg-rot: -1deg; min-height: 0; margin-bottom: 0; }
  .hg-title, .hg-tall .hg-title { font-size: 24px; }
  .hg-close { margin-top: 44px; font-size: 17px; }
}



@media (prefers-color-scheme: dark) {
  .hg-gift { background-color: #111620; box-shadow: 0 6px 16px rgb(0 0 0 / 0.46); }
  .hg-gift:hover, .hg-gift:focus-visible { box-shadow: 0 12px 24px rgb(0 0 0 / 0.6); }
  .hg-gift:focus-visible { outline-color: #2f6fb5; }
}
