
body.christmas-wishes-page {
  --cw-bg-primary: #8b0000;
  --cw-bg-card: rgba(255, 250, 240, 0.07);
  --cw-bg-card-hover: rgba(255, 250, 240, 0.11);
  --cw-bg-mini-card: rgba(255, 255, 255, 0.05);
  --cw-paper-stroke: rgba(255, 255, 255, 0.11);
  --cw-paper-inner: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --cw-gold: #ffd700;
  --cw-gold-dim: rgba(255, 215, 0, 0.2);
  --cw-text-primary: #ffffff;
  --cw-text-secondary: rgba(255, 255, 255, 0.82);
  --cw-text-muted: rgba(255, 255, 255, 0.48);
  --cw-tag-family: #f8a5c2;
  --cw-tag-friends: #78e08f;
  --cw-tag-colleagues: #74b9ff;
  --cw-tag-partner: #fd79a8;
  --cw-tag-short: #ffeaa7;
  --cw-tag-funny: #fdcb6e;
  --cw-tag-religious: #a29bfe;
  --cw-tag-cards: #55efc4;
  --cw-tag-general: #dfe6e9;
}

.cw-skip-link {
  position: absolute;
  left: 18px;
  top: -110px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--cw-gold);
  color: #2f1504;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.cw-skip-link:focus {
  top: 12px;
}

.cw-page-main {
  width: min(1280px, 100%);
  margin: 30px auto 0;
  display: grid;
  gap: 18px;
}

.cw-breadcrumb,
.cw-hero,
.filter-bar,
.cw-content-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.cw-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  background: rgba(255, 244, 230, 0.1);
  color: #ffe7d1;
  font-size: 0.84rem;
}

.cw-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.cw-breadcrumb a:hover,
.cw-breadcrumb a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cw-hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 232, 154, 0.16), transparent 34%),
    radial-gradient(circle at 84% 24%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(92, 10, 25, 0.98), rgba(43, 8, 18, 0.94));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  padding: 58px 42px 48px;
}

.cw-hero-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: 1px dashed rgba(255, 250, 240, 0.16);
  pointer-events: none;
}

.snowflakes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1em;
  animation: cwSnowfall linear infinite;
  user-select: none;
}

.snowflake:nth-child(1)  { left: 5%; font-size: 0.8em; animation-duration: 8s; animation-delay: 0s; }
.snowflake:nth-child(2)  { left: 12%; font-size: 1.2em; animation-duration: 11s; animation-delay: 1s; }
.snowflake:nth-child(3)  { left: 22%; font-size: 0.6em; animation-duration: 9s; animation-delay: 3s; }
.snowflake:nth-child(4)  { left: 35%; font-size: 1em; animation-duration: 13s; animation-delay: 0.5s; }
.snowflake:nth-child(5)  { left: 45%; font-size: 0.7em; animation-duration: 7s; animation-delay: 2s; }
.snowflake:nth-child(6)  { left: 55%; font-size: 1.3em; animation-duration: 10s; animation-delay: 4s; }
.snowflake:nth-child(7)  { left: 63%; font-size: 0.9em; animation-duration: 12s; animation-delay: 1.5s; }
.snowflake:nth-child(8)  { left: 72%; font-size: 0.6em; animation-duration: 8s; animation-delay: 3.5s; }
.snowflake:nth-child(9)  { left: 80%; font-size: 1.1em; animation-duration: 14s; animation-delay: 0s; }
.snowflake:nth-child(10) { left: 88%; font-size: 0.8em; animation-duration: 9s; animation-delay: 2.5s; }
.snowflake:nth-child(11) { left: 93%; font-size: 1em; animation-duration: 11s; animation-delay: 1s; }
.snowflake:nth-child(12) { left: 98%; font-size: 0.7em; animation-duration: 7s; animation-delay: 4.5s; }

@keyframes cwSnowfall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.cw-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 24px;
  align-items: start;
}

.cw-hero-copy {
  display: grid;
  gap: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.12);
  color: var(--cw-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cw-hero-copy h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.06;
  color: #fff0d5;
}

.cw-hero-subtitle {
  margin: 0;
  max-width: 26ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.9);
}

.cw-hero-intro {
  width: min(720px, 100%);
  margin: 0;
  color: var(--cw-text-secondary);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  color: var(--cw-text-muted);
  font-size: 0.84rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.countdown-badge {
  display: grid;
  gap: 8px;
  justify-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.34);
  background:
    radial-gradient(circle at top center, rgba(255, 215, 0, 0.18), transparent 58%),
    rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  padding: 18px 20px;
  color: #fff5e5;
  text-align: center;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.countdown-badge .star {
  font-size: 1.45rem;
}

.countdown-badge-title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.days-num {
  display: block;
  font-family: "Cinzel", serif;
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1;
  color: var(--cw-gold);
}

.days-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.32);
  color: var(--cw-gold);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.badge-link:hover,
.badge-link:focus-visible {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
}

.filter-bar {
  position: sticky;
  top: 10px;
  z-index: 15;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.14);
  background: rgba(82, 0, 0, 0.86);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: rgba(255, 215, 0, 0.5);
  color: var(--cw-gold);
  transform: translateY(-1px);
}

.filter-btn.active {
  border-color: var(--cw-gold);
  background: rgba(255, 215, 0, 0.16);
  color: var(--cw-gold);
}

.surprise-btn {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffd700, #fdb931);
  color: #5a1708;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(255, 215, 0, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.surprise-btn:hover,
.surprise-btn:focus-visible {
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 18px 36px rgba(255, 215, 0, 0.32);
}

.cw-content-shell {
  display: grid;
  gap: 24px;
}

.cw-section,
.how-to-write,
.faq-section,
.related-section {
  border-radius: 26px;
  border: 1px solid rgba(255, 215, 0, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 240, 210, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(25, 12, 18, 0.38), rgba(25, 12, 18, 0.28));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
  padding: 30px;
}

.cw-section,
.how-to-write,
.faq-section,
.related-section {
  scroll-margin-top: 90px;
}

.section-header {
  margin: 0 0 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.14);
}

.section-header h2,
.how-to-write h2,
.faq-section h2,
.related-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.18;
  color: var(--cw-gold);
}

.section-header h2::before,
.how-to-write h2::before,
.faq-section h2::before,
.related-section h2::before {
  content: "";
  width: 4px;
  height: 1em;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd700, rgba(255, 215, 0, 0.24));
}

.section-subtitle,
.how-to-card p,
.faq-answer,
.related-card-desc {
  color: var(--cw-text-secondary);
  line-height: 1.8;
}

.section-subtitle {
  margin: 8px 0 0 14px;
  font-size: 0.95rem;
  font-style: italic;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin: 24px 0 0;
}

.wish-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--cw-bg-card);
  border: 1px solid var(--cw-paper-stroke);
  border-radius: 16px;
  padding: 20px 18px 16px;
  position: relative;
  box-shadow: var(--cw-paper-inner);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.wish-card:hover,
.wish-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 215, 0, 0.1), var(--cw-paper-inner);
  background: var(--cw-bg-card-hover);
}

.wish-card.is-favorited {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.05);
}

.wish-card.highlighted {
  border-color: #ffd700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4), 0 8px 32px rgba(255, 215, 0, 0.15);
  animation: highlightPulse 1.5s ease-out;
}

@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4), 0 8px 32px rgba(255, 215, 0, 0.15); }
}

.wish-card.hidden {
  display: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wish-code,
.wish-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wish-code {
  color: rgba(255, 255, 255, 0.56);
}

.wish-tag.family { color: var(--cw-tag-family); border-color: rgba(248, 165, 194, 0.3); }
.wish-tag.friends { color: var(--cw-tag-friends); border-color: rgba(120, 224, 143, 0.3); }
.wish-tag.colleagues { color: var(--cw-tag-colleagues); border-color: rgba(116, 185, 255, 0.3); }
.wish-tag.partner { color: var(--cw-tag-partner); border-color: rgba(253, 121, 168, 0.3); }
.wish-tag.short { color: var(--cw-tag-short); border-color: rgba(255, 234, 167, 0.3); }
.wish-tag.funny { color: var(--cw-tag-funny); border-color: rgba(253, 203, 110, 0.3); }
.wish-tag.religious { color: var(--cw-tag-religious); border-color: rgba(162, 155, 254, 0.3); }
.wish-tag.cards { color: var(--cw-tag-cards); border-color: rgba(85, 239, 196, 0.3); }
.wish-tag.general { color: var(--cw-tag-general); border-color: rgba(223, 230, 233, 0.22); }

.card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.card-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.card-btn:hover,
.card-btn:focus-visible {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
  transform: scale(1.08);
}

.card-btn.favorited {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd700;
}

.card-btn.copied {
  background: rgba(80, 200, 120, 0.15);
  border-color: rgba(80, 200, 120, 0.4);
  color: #7dffb3;
}

.wish-text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
  margin: 0 0 14px;
  position: relative;
  padding-left: 14px;
}

.wish-text::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 28px;
  color: rgba(255, 215, 0, 0.25);
  font-family: Georgia, serif;
  line-height: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: auto;
}

.word-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.use-case-tag {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 2px 6px;
}

.mini-wishes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.mini-wish-card {
  background: var(--cw-bg-mini-card);
  padding: 14px 14px 10px;
  border-radius: 12px;
}

.mini-wish-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 10px;
}

.mini-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mini-word-count {
  font-size: 10px;
}

.how-to-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.how-to-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 20px 18px;
}

.how-to-card h3 {
  margin: 0 0 10px;
  color: rgba(255, 215, 0, 0.9);
  font-size: 1rem;
}

.how-to-card blockquote {
  margin: 0 0 12px;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(255, 215, 0, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
}

.how-to-card-wide {
  grid-column: 1 / -1;
}

.faq-list {
  margin-top: 16px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  list-style: none;
  padding: 18px 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: #ffd700;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.24s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 18px;
}

.faq-answer ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  min-height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.related-card:hover,
.related-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.34);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.related-card-icon {
  font-size: 1.9rem;
}

.related-card-title {
  color: var(--cw-gold);
  font-size: 1.02rem;
  font-weight: 700;
}

.related-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cw-gold);
  font-size: 0.86rem;
  font-weight: 700;
}

.related-card-cta::after {
  content: "→";
}

@media (max-width: 1080px) {
  .cw-hero-grid {
    grid-template-columns: 1fr;
  }

  .countdown-badge {
    max-width: 280px;
    justify-self: start;
  }

  .how-to-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .surprise-btn {
    top: auto;
    bottom: 18px;
    right: 18px;
    transform: none;
  }

  .surprise-btn:hover,
  .surprise-btn:focus-visible {
    transform: scale(1.03);
  }
}

@media (max-width: 760px) {
  .cw-page-main {
    margin-top: 22px;
  }

  .cw-hero-shell,
  .cw-section,
  .how-to-write,
  .faq-section,
  .related-section {
    padding: 24px 18px;
  }

  .countdown-badge {
    display: none;
  }

  .wishes-grid,
  .how-to-grid {
    grid-template-columns: 1fr;
  }

  .mini-wishes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .use-cases {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .cw-breadcrumb {
    border-radius: 18px;
  }

  .filter-btn {
    padding-inline: 12px;
    font-size: 0.8rem;
  }

  .card-top {
    flex-direction: column;
  }

  .card-actions {
    align-self: flex-end;
  }

  .mini-wishes-grid {
    grid-template-columns: 1fr;
  }

  .surprise-btn {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snowflake {
    animation: none;
    opacity: 0;
  }

  .wish-card,
  .filter-btn,
  .card-btn,
  .surprise-btn,
  .related-card {
    transition: none;
  }
}
