@charset "UTF-8";
/* Wishlist — Christmas theme. Everything here is scoped to [data-theme="christmas"] on <html>
   (set by js/theme-boot.js), so the Classic theme is untouched.
   Minimal, flat night look: a snowy Christmas photo fixed behind everything, quiet frosted-glass
   cards with hairline borders, white text and a single flat red accent. No gloss, glows or
   heavy shadows. It is always dark — it does not follow the OS light/dark setting. */

:root[data-theme="christmas"] {
  color-scheme: dark;

  --accent: #e8364f;
  --accent-strong: #ff5a70;
  --accent-text: #ff7286; /* lighter red for text & links on the dark glass */
  --on-accent: #ffffff;
  --accent-soft: rgba(232, 54, 79, 0.16);
  --accent-border: rgba(255, 114, 134, 0.45);

  --warm: #f5c35a;
  --warm-text: #f5c35a;
  --warm-soft: rgba(245, 195, 90, 0.14);

  --bg: #110d24;
  --surface: rgba(29, 22, 51, 0.88);
  --surface-2: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);

  --bought: #3ec97a;
  --bought-text: #5fd993;
  --bought-soft: rgba(62, 201, 122, 0.15);
  --danger: #c42a43;
  --danger-text: #ff8f9c;
  --danger-soft: rgba(232, 54, 79, 0.15);

  --glass: rgba(29, 22, 51, 0.88); /* nearly opaque: text stays crisp over the photo */
  --glass-bar: rgba(17, 12, 32, 0.72);
  --glass-sheet: rgba(22, 16, 40, 0.9);
  --glass-field: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px) saturate(120%);

  --shadow: none;
  --shadow-lift: none;
  --backdrop: rgba(6, 4, 18, 0.6);

  --radius: 18px;
  --radius-sm: 12px;

  --script: "Snell Roundhand", "SnellRoundhand-Black", "Brush Script MT", "Segoe Script", cursive;
}

/* ---------- background: night photo + snow ---------- */

[data-theme="christmas"] body {
  background: var(--bg);
}

/* A fixed layer rather than background-attachment: fixed (broken/janky on iOS Safari).
   100lvh so it doesn't jump when mobile browser bars show/hide. */
[data-theme="christmas"] body::before,
[data-theme="christmas"] body::after {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}

[data-theme="christmas"] body::before {
  content: "";
  background:
    /* a light wash: the cards are near-solid, so the photo can stay bright */
    linear-gradient(to bottom, rgba(14, 10, 32, 0.15) 0%, rgba(14, 10, 32, 0.3) 45%, rgba(12, 8, 28, 0.55) 100%),
    var(--bg) url("/img/christmas-bg.jpg") center 30% / cover no-repeat;
}

/* Wide screens: the photo in a centre column, the sides filled with a darkened blurred copy. */
@media (min-width: 900px) {
  [data-theme="christmas"] body::before {
    background:
      linear-gradient(rgba(10, 7, 26, 0.5), rgba(10, 7, 26, 0.65)),
      var(--bg) url("/img/christmas-bg-blur.jpg") center 30% / cover no-repeat;
  }

  [data-theme="christmas"] body::after {
    content: "";
    left: 50%;
    width: min(100%, 860px);
    transform: translateX(-50%);
    background:
      linear-gradient(to bottom, rgba(14, 10, 32, 0.15) 0%, rgba(14, 10, 32, 0.3) 45%, rgba(12, 8, 28, 0.55) 100%),
      url("/img/christmas-bg.jpg") center 30% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  }
}

/* ---------- type ---------- */

[data-theme="christmas"] h1 {
  font-weight: 750;
}

[data-theme="christmas"] .lede,
[data-theme="christmas"] .auth-tagline,
[data-theme="christmas"] .auth-switch,
[data-theme="christmas"] .section > .hint {
  color: var(--text-2);
}

[data-theme="christmas"] a,
[data-theme="christmas"] .link-btn,
[data-theme="christmas"] .status.mine.reserved {
  color: var(--accent-text);
}

[data-theme="christmas"] a.btn,
[data-theme="christmas"] a.card,
[data-theme="christmas"] a.list-group-link {
  color: var(--text);
}

[data-theme="christmas"] :focus-visible {
  outline-color: var(--accent-text);
}

[data-theme="christmas"] .skip-link {
  background: #221a3c;
}

/* text that sits straight on the photo gets a soft dark shadow so it reads over the lights */
[data-theme="christmas"] .page-head,
[data-theme="christmas"] .hero,
[data-theme="christmas"] .lede,
[data-theme="christmas"] .section-head,
[data-theme="christmas"] .person-head,
[data-theme="christmas"] .list-group-head,
[data-theme="christmas"] .back-link,
[data-theme="christmas"] .auth-tagline,
[data-theme="christmas"] .auth-switch,
[data-theme="christmas"] .view > .hint,
[data-theme="christmas"] .section > .hint,
[data-theme="christmas"] .xmas-wordmark {
  text-shadow: 0 1px 3px rgba(6, 3, 18, 0.75), 0 0 10px rgba(6, 3, 18, 0.45);
}

/* ---------- script wordmark (auth screen + top of Groups) ---------- */

[data-theme="christmas"] .xmas-wordmark {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 0 0.2em;
  font-family: var(--script);
  font-size: 3.2rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  color: var(--accent-strong);
  user-select: none;
}

[data-theme="christmas"] .home-wordmark {
  margin-top: 4px;
  font-size: 2.8rem;
}

/* ---------- shell ---------- */

/* wide screens: the nav floats over the photo, no bar */
[data-theme="christmas"] .topbar {
  background: transparent;
  border-bottom: 0;
}

/* phones: just a quiet bottom tab bar */
@media (max-width: 719.98px) {
  [data-theme="christmas"] .tabs {
    background: var(--glass-bar);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
  }
}

[data-theme="christmas"] a.tab {
  color: var(--text-3);
}

[data-theme="christmas"] a.tab[aria-current="page"] {
  color: var(--text);
}

[data-theme="christmas"] a.tab[aria-current="page"] .icon {
  color: var(--accent-strong);
}

@media (min-width: 720px) {
  [data-theme="christmas"] .tab {
    border-radius: 999px;
  }

  [data-theme="christmas"] .tab:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  [data-theme="christmas"] .tab[aria-current="page"] {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ---------- glass surfaces ---------- */

[data-theme="christmas"] .card,
[data-theme="christmas"] .banner,
[data-theme="christmas"] dialog.sheet,
[data-theme="christmas"] .toast,
[data-theme="christmas"] .tabs {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

[data-theme="christmas"] .card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

[data-theme="christmas"] .card.muted-card {
  background: rgba(17, 12, 32, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

[data-theme="christmas"] .tappable {
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
  [data-theme="christmas"] .tappable:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(36, 28, 62, 0.92);
    box-shadow: none;
  }
}

[data-theme="christmas"] .card.row > .icon:last-child {
  color: var(--text-3);
}

[data-theme="christmas"] .thumb {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

[data-theme="christmas"] .thumb.placeholder {
  color: var(--text-3);
}

/* ---------- avatars & emoji tiles ---------- */

[data-theme="christmas"] .avatar.emoji {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  box-shadow: none;
}

[data-theme="christmas"] .avatar.person {
  box-shadow: none;
}

[data-theme="christmas"] .avatar-stack .avatar {
  box-shadow: 0 0 0 2px #1b1430;
}

[data-theme="christmas"] .emoji-option label {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="christmas"] .emoji-option input:checked + label {
  border-color: var(--accent-text);
  background: var(--accent-soft);
  box-shadow: none;
}

/* ---------- buttons: glossy ---------- */
/* Rounded, with a soft shine across the top and a crisp edge. Nothing underneath:
   no base, no drop shadow. Pressing darkens slightly. */

[data-theme="christmas"] .btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%),
    rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: none;
  transition: filter 0.1s ease, background-color 0.12s ease, opacity 0.12s ease;
}

[data-theme="christmas"] .btn:active:not(:disabled) {
  transform: none;
  filter: brightness(0.88);
}

@media (hover: hover) {
  [data-theme="christmas"] .btn:hover:not(:disabled) {
    filter: brightness(1.08);
  }
}

[data-theme="christmas"] .btn.primary,
[data-theme="christmas"] .btn.primary:hover:not(:disabled) {
  border-color: rgba(255, 150, 165, 0.4);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(to bottom, #f04760, #d42a45);
  color: #fff;
  text-shadow: 0 1px 0 rgba(110, 0, 25, 0.45);
}

[data-theme="christmas"] .btn.danger,
[data-theme="christmas"] .btn.danger:hover:not(:disabled) {
  border-color: rgba(255, 150, 165, 0.3);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%),
    var(--danger);
  color: #fff;
}

[data-theme="christmas"] .btn.danger-text {
  color: var(--danger-text);
}

[data-theme="christmas"] .btn.bought,
[data-theme="christmas"] .btn.bought:hover:not(:disabled) {
  border-color: rgba(150, 240, 190, 0.35);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(to bottom, #3cbc74, #2a9a5b);
  color: #fff;
  text-shadow: 0 1px 0 rgba(5, 60, 28, 0.45);
}

/* Gifting's pressed "Bought" toggle stays soft so it reads as done, not as a call to action */
[data-theme="christmas"] .btn.toggle.on,
[data-theme="christmas"] .btn.toggle.on:hover:not(:disabled) {
  border-color: rgba(62, 201, 122, 0.35);
  background: var(--bought-soft);
  color: var(--bought-text);
}

[data-theme="christmas"] .btn.toggle.on::before {
  content: none;
}

[data-theme="christmas"] .btn.quiet,
[data-theme="christmas"] .btn.quiet:hover:not(:disabled),
[data-theme="christmas"] .btn.quiet:active:not(:disabled) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
}

[data-theme="christmas"] .btn.is-busy::after {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

[data-theme="christmas"] .btn.toggle.on.is-busy::after {
  border-color: rgba(62, 201, 122, 0.3);
  border-top-color: var(--bought-text);
}

[data-theme="christmas"] .icon-btn {
  color: var(--text-2);
}

/* ---------- chips, badges, banners ---------- */

[data-theme="christmas"] .chip,
[data-theme="christmas"] .badge {
  border: 0;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-2);
  font-weight: 600;
}

[data-theme="christmas"] .chip.date.soon,
[data-theme="christmas"] .badge.warm,
[data-theme="christmas"] .badge.premium {
  background: var(--warm-soft);
  color: var(--warm-text);
}

[data-theme="christmas"] .chip.date.past {
  color: var(--text-3);
}

[data-theme="christmas"] .badge.accent {
  background: var(--accent-soft);
  color: var(--accent-text);
}

[data-theme="christmas"] .badge.bought {
  background: var(--bought-soft);
  color: var(--bought-text);
}

[data-theme="christmas"] .section-head .count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-2);
  font-weight: 650;
}

[data-theme="christmas"] .banner {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: none;
}

[data-theme="christmas"] .banner.accent > .icon,
[data-theme="christmas"] .banner.calm > .icon {
  color: var(--text-2);
}

[data-theme="christmas"] .banner.warn {
  background: linear-gradient(var(--warm-soft), var(--warm-soft)), var(--glass);
}

[data-theme="christmas"] .banner.warn > .icon {
  color: var(--warm-text);
}

/* ---------- forms ---------- */

[data-theme="christmas"] input[type="text"],
[data-theme="christmas"] input[type="email"],
[data-theme="christmas"] input[type="password"],
[data-theme="christmas"] input[type="date"],
[data-theme="christmas"] textarea {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--glass-field);
  color: var(--text);
  box-shadow: none;
}

[data-theme="christmas"] input::placeholder,
[data-theme="christmas"] textarea::placeholder {
  color: var(--text-3);
}

[data-theme="christmas"] input:focus-visible,
[data-theme="christmas"] textarea:focus-visible {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 12px;
}

[data-theme="christmas"] .check-list,
[data-theme="christmas"] .field > .check-row {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="christmas"] .form-error {
  border: 1px solid rgba(255, 114, 134, 0.3);
  background: var(--danger-soft);
}

[data-theme="christmas"] .segmented {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="christmas"] .segmented label {
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
}

[data-theme="christmas"] .segmented input:checked + label {
  background: linear-gradient(to bottom, #f04760, #d42a45);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="christmas"] .code {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* ---------- progress ---------- */

[data-theme="christmas"] .progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="christmas"] .progress-fill {
  background: var(--bought);
  box-shadow: none;
}

/* ---------- items ---------- */

[data-theme="christmas"] .status {
  font-weight: 650;
}

[data-theme="christmas"] .footer-actions {
  border-top-color: var(--line);
}

/* ---------- dialogs & toasts ---------- */

[data-theme="christmas"] dialog.sheet {
  border: 1px solid var(--glass-border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--glass-sheet);
  box-shadow: none;
}

[data-theme="christmas"] dialog.sheet::backdrop {
  background: var(--backdrop);
}

[data-theme="christmas"] .sheet-head {
  background: var(--glass-sheet);
}

@media (min-width: 560px) {
  [data-theme="christmas"] dialog.sheet {
    border-bottom: 1px solid var(--glass-border);
    border-radius: 22px;
  }
}

[data-theme="christmas"] .toast {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(24, 17, 42, 0.92);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

[data-theme="christmas"] .toast.error {
  border-color: transparent;
  background: var(--danger);
}

/* ---------- auth ---------- */

[data-theme="christmas"] .brand-logo.large {
  filter: none;
}

[data-theme="christmas"] .auth-wordmark {
  margin-top: 28px;
  font-size: 4rem;
}

/* ---------- Secret Santa ---------- */

/* the wrapped present you tap to open */
[data-theme="christmas"] .reveal-cover {
  gap: 6px;
  padding: 26px 16px 24px;
  border: 1px solid rgba(255, 150, 165, 0.4);
  border-radius: 18px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 50%),
    linear-gradient(to bottom, #f04760, #d42a45);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="christmas"] .reveal-cover:active {
  filter: brightness(0.9);
}

[data-theme="christmas"] .reveal-cover:focus-visible {
  outline-color: var(--warm);
}

[data-theme="christmas"] .reveal-emoji {
  font-size: 2.6rem;
}

[data-theme="christmas"] .reveal-cta {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 750;
}

[data-theme="christmas"] .reveal-sub {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="christmas"] .reveal-open {
  border-radius: 18px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px rgba(245, 195, 90, 0.5);
}

[data-theme="christmas"] .reveal-label {
  color: var(--warm);
}

[data-theme="christmas"] .reveal-name {
  color: #fff;
  font-weight: 750;
  font-size: 1.7rem;
}

[data-theme="christmas"] .reveal-person .avatar {
  box-shadow: 0 0 0 3px #1b1430, 0 0 0 4.5px var(--warm);
}

/* ---------- gifting ---------- */

[data-theme="christmas"] .stat-n {
  color: var(--text);
  font-weight: 750;
}

[data-theme="christmas"] .stat.bought .stat-n {
  color: var(--bought-text);
}

[data-theme="christmas"] .stat + .stat {
  border-left-color: var(--line);
}

/* ---------- no backdrop-filter: solid fallback ---------- */

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-theme="christmas"] {
    --glass: rgba(26, 19, 46, 0.94);
    --glass-bar: rgba(17, 12, 32, 0.96);
    --glass-sheet: rgba(24, 18, 44, 0.98);
  }

  [data-theme="christmas"] .card.muted-card {
    background: rgba(20, 14, 38, 0.88);
  }
}

/* ---------- motion (skipped entirely under reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-theme="christmas"] .reveal-open {
    animation: xmas-fade-in 0.3s ease-out;
  }

  [data-theme="christmas"] .status.just-bought {
    animation: xmas-bought 0.4s ease-out;
  }
}

@keyframes xmas-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@keyframes xmas-bought {
  0% {
    transform: scale(0.96);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (forced-colors: active) {
  [data-theme="christmas"] body::before,
  [data-theme="christmas"] body::after {
    display: none;
  }

  [data-theme="christmas"] .xmas-wordmark {
    color: CanvasText;
  }
}
