/* Split Two-Column Hero Layout */
.awf-split {
  display: grid;
  grid-template-columns: minmax(290px, 355px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.awf-left { display: flex; flex-direction: column; gap: 8px; }

.awf-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 3px 11px; border-radius: 999px;
  background: rgba(11, 25, 36, 0.72); border: 1px solid rgba(243, 207, 122, 0.45);
  color: #fde68a; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px);
}

.awf-h1 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 33px; line-height: 1.06; margin: 0; color: #ffffff; font-weight: 400;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.awf-h1 em { font-style: italic; color: #fde68a; }

.awf-lead {
  margin: 0; font-size: 13px; line-height: 1.46; color: #e6eff5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* Cream Start Card */
.awf-card {
  background: rgba(255, 252, 245, 0.96); color: #1f2b22;
  border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36); border: 1px solid rgba(255, 255, 255, 0.55);
}

.awf-card-title { font-family: var(--font-display, Georgia, serif); font-size: 20px; line-height: 1.2; margin: 0 0 2px; color: #182a20; font-weight: 400; }
.awf-card-sub { margin: 0 0 8px; font-size: 12px; color: #536457; line-height: 1.38; }
.awf-field-lbl { display: block; font-size: 11.5px; font-weight: 600; color: #2f3e33; margin: 0 0 4px; }

.awf-input {
  width: 100%; min-height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid #d7e0d6; background: #ffffff; color: #1d2a1f;
  font-family: inherit; font-size: 14px; margin-bottom: 9px;
}
.awf-input:focus { outline: none; border-color: #2f7d4f; box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.14); }

/* 3-up Gift Style Selector */
.awf-style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 9px; }

.awf-style-opt {
  min-height: 32px; padding: 0 4px; border-radius: 9px;
  border: 1.5px solid #dce3da; background: #ffffff; color: #26342a;
  font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.awf-style-opt.is-selected { border-color: #24633e; background: #eef6f0; color: #183b27; box-shadow: 0 0 0 2px rgba(36, 99, 62, 0.16); }

/* Cabinet Theme Picker */
.awf-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }

.awf-banner-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px 5px 5px; border-radius: 9px; border: 1.5px solid #dce3da;
  background: #ffffff; color: #26342a; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.awf-banner-opt.is-selected { border-color: #24633e; box-shadow: 0 0 0 2px rgba(36, 99, 62, 0.2); }

.awf-mini-wall { width: 100%; height: 20px; border-radius: 5px; padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border: 2px solid #7d4e2d; }
.awf-mini-wall.is-hearth { background: #193e2d; }
.awf-mini-wall.is-gingerbread { background: #5a2c1c; }
.awf-mini-wall.is-candycane { background: #6f1a29; }
.awf-mini-p { border-radius: 2px; }
.awf-mini-p.p-red { background: #d03846; }
.awf-mini-p.p-grn { background: #2d7a4f; }
.awf-mini-p.p-oat { background: #e8b84b; }

.awf-gold-cta {
  width: 100%; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, #f7d070 0%, #dfa638 100%); color: #1f1706;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.38); transition: transform 0.14s ease, filter 0.15s ease;
}
.awf-gold-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

.awf-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; padding-top: 7px; border-top: 1px solid #eaece6; font-size: 12px; }
.awf-text-btn { background: none; border: 0; padding: 0; color: #24633e; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.awf-text-btn:hover { text-decoration: underline; }
.awf-join-row { display: flex; gap: 8px; margin-top: 8px; }
.awf-join-row .awf-input { margin-bottom: 0; min-height: 36px; }
.awf-small-btn { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: #1d4d35; color: #ffffff; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.awf-saved-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.awf-saved-chip { padding: 3px 9px; border-radius: 999px; border: 1px solid #d5ded2; background: #f3f6f1; color: #1d2a1f; font-size: 11px; font-weight: 600; cursor: pointer; }
.awf-toast { margin: 5px 0 0; font-size: 12px; font-weight: 600; color: #24633e; min-height: 15px; }
.awf-cal-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: #4f6153; }
.awf-code-badge { font-family: ui-monospace, SFMono-Regular, monospace; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #edf4ee; color: #1d4d35; }
.awf-cal-btns { display: grid; gap: 8px; }
.awf-outline-btn { width: 100%; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #cfd9cc; background: #ffffff; color: #1d2a1f; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.awf-outline-btn:hover { border-color: #2f7d4f; background: #f7faf6; }
.awf-utility-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #eaece6; }

/* Right Column: Full-Height Cedar Wood Framed 6x4 Gift Shelf */
.awf-right {
  display: flex;
  flex-direction: column;
}

.awf-wall {
  --wall-bg1: rgba(20, 48, 36, 0.84);
  --wall-bg2: rgba(12, 31, 24, 0.9);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative; border-radius: 18px; padding: 14px 14px 12px;
  background: linear-gradient(180deg, var(--wall-bg1) 0%, var(--wall-bg2) 100%);
  border: 6px solid #6b4226;
  box-shadow: inset 0 0 0 2px rgba(243, 207, 122, 0.35), inset 0 6px 18px rgba(0, 0, 0, 0.42), 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.awf-wall[data-theme="gingerbread"] { --wall-bg1: rgba(82, 41, 24, 0.86); --wall-bg2: rgba(52, 24, 13, 0.92); }
.awf-wall[data-theme="candycane"] { --wall-bg1: rgba(112, 26, 42, 0.88); --wall-bg2: rgba(74, 15, 27, 0.93); }

.awf-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px 10px;
}

.awf-slot {
  position: relative; padding: 6px 4px 12px; border-radius: 14px;
  background: rgba(255, 250, 240, 0.08); border: 1px solid rgba(255, 245, 225, 0.14);
  cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 124px; transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.awf-slot:hover { background: rgba(255, 250, 240, 0.16); border-color: rgba(253, 230, 138, 0.65); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

/* Wiggle Animations */
@keyframes awfGiftWiggle {
  0%   { transform: rotate(0deg) scale(1); }
  20%  { transform: rotate(-7deg) scale(1.07); }
  45%  { transform: rotate(6.5deg) scale(1.08); }
  70%  { transform: rotate(-4deg) scale(1.06); }
  88%  { transform: rotate(2.5deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1.05); }
}
@keyframes awfIdleNudge {
  0%, 78%, 100% { transform: rotate(0deg); }
  82% { transform: rotate(-5deg) scale(1.04); }
  87% { transform: rotate(5deg) scale(1.05); }
  92% { transform: rotate(-3deg) scale(1.03); }
  96% { transform: rotate(2deg); }
}

.awf-slot:hover .awf-illus,
.awf-slot:focus-visible .awf-illus {
  animation: awfGiftWiggle 0.52s ease-in-out both;
}

.awf-slot.is-ready .awf-illus {
  animation: awfIdleNudge 3.4s ease-in-out infinite;
}

.awf-slot.is-ready:hover .awf-illus {
  animation: awfGiftWiggle 0.52s ease-in-out both;
}

/* Bigger Illustrated Gift SVG */
.awf-illus {
  width: 102px;
  height: 102px;
  display: flex; align-items: center; justify-content: center;
  transform-origin: 50% 82%;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.36));
}
.awf-illus svg { width: 100%; height: 100%; display: block; }

/* Empty Slot */
.awf-slot.is-empty { background: rgba(255, 255, 255, 0.04); border: 1.5px dashed rgba(243, 207, 122, 0.38); }
.awf-slot.is-empty:hover { background: rgba(255, 255, 255, 0.11); border-color: #fde68a; }
.awf-empty-num { font-family: var(--font-display, Georgia, serif); font-size: 24px; line-height: 1; color: rgba(255, 248, 232, 0.85); }
.awf-empty-hint { font-size: 11px; color: rgba(255, 248, 232, 0.65); margin-top: 4px; }

.awf-day-num {
  position: absolute; top: 5px; left: 5px; min-width: 23px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: #fffaf0; color: #231815; border: 1.5px solid #231815;
  font-family: var(--font-display, Georgia, serif); font-size: 12px; line-height: 18px; text-align: center; z-index: 4;
}

.awf-sender-pill {
  position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); z-index: 5;
  max-width: 94%; padding: 2px 8px; border-radius: 999px;
  background: #fffaf0; border: 1.5px solid #231815; color: #231815;
  font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.awf-open-pill {
  position: absolute; top: -7px; right: 5px; z-index: 6;
  padding: 2px 8px; border-radius: 999px; background: #e11d48; color: #ffffff;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.awf-slot.is-ready { border-color: #fde68a; box-shadow: 0 0 0 2px rgba(253, 230, 138, 0.45), 0 0 18px rgba(253, 230, 138, 0.45); }
.awf-slot.is-opened .awf-illus { opacity: 0.65; filter: grayscale(0.25); }
.awf-wall-caption { margin: 12px 0 0; text-align: center; font-size: 12px; color: rgba(245, 240, 225, 0.85); }

/* Spotlight Pull-the-Ribbon Unwrap Overlay */
.awf-unwrap-bg {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(circle at 50% 42%, #133627 0%, #071912 68%, #04100b 100%);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; color: #fcfaf2; overflow: hidden; user-select: none;
}
.awf-unwrap-bg.is-open { display: flex; }

.awf-spotlight {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 340px; height: 74vh; pointer-events: none;
  background: linear-gradient(180deg, rgba(253, 230, 138, 0.24) 0%, rgba(253, 230, 138, 0.08) 65%, transparent 100%);
  clip-path: polygon(40% 0%, 60% 0%, 100% 100%, 0% 100%);
}

.awf-unwrap-close {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08); color: #ffffff; font-size: 22px; cursor: pointer; z-index: 5;
}

.awf-unwrap-kicker {
  position: relative; z-index: 2; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #e8c776; margin: 0 0 18px;
}

.awf-unwrap-stage {
  position: relative; z-index: 2; width: 190px; height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}

.awf-unwrap-glow {
  position: relative; width: 156px; height: 156px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.34) 0%, transparent 70%);
}

.awf-unwrap-gift {
  width: 136px; height: 136px; display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}
.awf-unwrap-gift svg { width: 100%; height: 100%; }

.awf-ribbon-track {
  position: relative; width: 60px; height: 95px; margin-top: -18px;
  display: flex; flex-direction: column; align-items: center; touch-action: none;
}

.awf-ribbon-line {
  width: 5px; height: 44px; border-radius: 999px;
  background: linear-gradient(180deg, #dc2626 0%, #f43f5e 100%);
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.5);
  transition: height 0.08s linear;
}

.awf-ribbon-knob {
  width: 38px; height: 38px; border-radius: 999px;
  border: 2.5px solid #dc2626; background: #fffaf0; color: #dc2626;
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  cursor: grab; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  animation: awfKnobBob 1.8s ease-in-out infinite;
}
.awf-ribbon-knob:active { cursor: grabbing; }

@keyframes awfKnobBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.awf-unwrap-title {
  position: relative; z-index: 2; font-family: var(--font-display, Georgia, serif);
  font-size: 32px; line-height: 1.15; text-align: center; margin: 18px 0 8px; font-weight: 400;
}

.awf-unwrap-hint {
  position: relative; z-index: 2; font-size: 13px; color: rgba(252, 250, 242, 0.72); margin: 0 0 10px; text-align: center;
}

.awf-unwrap-skip {
  position: relative; z-index: 2; background: none; border: 0; color: rgba(253, 230, 138, 0.85);
  font-family: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* Modal */
.awf-modal-bg { position: fixed; inset: 0; background: rgba(8, 18, 24, 0.76); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 10001; }
.awf-modal-bg.is-open { display: flex; }
.awf-modal { width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; background: #fffcf5; color: #1d2a1f; border-radius: 18px; padding: 24px; border: 2px solid #d9a441; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4); }
.awf-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.awf-modal-title { font-family: var(--font-display, Georgia, serif); font-size: 24px; margin: 0; color: #162e22; font-weight: 400; }
.awf-close { width: 34px; height: 34px; border-radius: 999px; border: 1px solid #d9e2d6; background: #f3f6f1; color: #1d2a1f; font-size: 20px; cursor: pointer; }
.awf-m-textarea { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid #d3ddd0; background: #ffffff; color: #1d2a1f; font-family: inherit; font-size: 15px; }
.awf-stickers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.awf-sticker-btn { height: 36px; border-radius: 9px; border: 1px solid #d9e2d6; background: #f3f6f1; font-size: 17px; cursor: pointer; }
.awf-sticker-btn.is-selected { border-color: #2f7d4f; background: #e1f1e6; }
.awf-note-card { background: #f5f8f2; border: 1px solid #d9e2d6; border-radius: 14px; padding: 22px 18px; text-align: center; margin-bottom: 16px; }
.awf-note-sticker { font-size: 40px; margin-bottom: 8px; }
.awf-note-body { font-size: 17px; line-height: 1.6; color: #1d2a1f; margin: 0 0 12px; white-space: pre-wrap; }
.awf-note-from { font-size: 14px; font-weight: 700; color: #2f7d4f; }
.awf-song-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: #162e22; color: #fef9ee; font-size: 13px; font-weight: 600; text-decoration: none; }
.awf-hidden { display: none !important; }

@media (max-width: 1024px) {
  .awf-split { grid-template-columns: 1fr; gap: 20px; }
  .awf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .awf-h1 { font-size: 28px; }
  .awf-wall { padding: 12px 8px 12px; border-width: 5px; }
  .awf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; }
  .awf-slot { min-height: 98px; padding: 6px 4px 10px; }
  .awf-illus { width: 72px; height: 72px; }
  .awf-stickers { grid-template-columns: repeat(4, 1fr); }
}