/* season-christmas.css - the Christmas look, on while <html data-season="christmas"> (js/season.js).
   Keeps the Huadorr cream and ink; swaps coral for a warmer Christmas red, adds pine green as a second
   colour, a small hat on the logo, a thin candy stripe under the top bar, and festive touches on the
   home page, Discover, chat and Premium. Nothing covers content. Remove the <link> to drop it entirely. */

/* ---------- colours ---------- */
html[data-season="christmas"] {
  --acc: #E5483F; --acc-t: #B52A22; --tint: #FBE1DD;
  --xg: #1E6B46; --xg-soft: #E3EFE7; --xgold: #C9A54A;
}
html[data-season="christmas"][data-theme="dark"] {
  --acc: #FF6B60; --acc-t: #FF7D73; --tint: #3B2228;
  --xg: #4DB27F; --xg-soft: #1D2E27; --xgold: #E2C26E;
}
@media (prefers-color-scheme: dark) {
  html[data-season="christmas"]:not([data-theme="light"]):not([data-theme="dark"]) {
    --acc: #FF6B60; --acc-t: #FF7D73; --tint: #3B2228;
    --xg: #4DB27F; --xg-soft: #1D2E27; --xgold: #E2C26E;
  }
}

/* ---------- logo: a small hat on the U (header, sidebar and footer logos) ---------- */
html[data-season="christmas"] .brand b,
html[data-season="christmas"] .ft-logo b { position: relative; display: inline-block; }
html[data-season="christmas"] .brand b::before,
html[data-season="christmas"] .ft-logo b::before {
  content: ""; position: absolute; left: 50%; top: -.56em; width: .98em; height: .74em; transform: translateX(-36%) rotate(-12deg); pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M4 24 C8 12 18 4 30 6 C34 7 36 12 33 16 C30 13 26 13 24 16 L20 24 Z' fill='%23D93A31'/%3E%3Crect x='1' y='21' width='24' height='7' rx='3.5' fill='%23FFFFFF' stroke='%23E8E1D6' stroke-width='1'/%3E%3Ccircle cx='34' cy='17' r='4.5' fill='%23FFFFFF' stroke='%23E8E1D6' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- top bar: thin candy stripe instead of the plain line ---------- */
/* ---------- top bar: a string of lights hanging under it (public pages; the app top bar sits in the sidebar layout) ---------- */
html[data-season="christmas"] .wrap:not(:has(#nav)) > header { position: relative; }
html[data-season="christmas"] .wrap:not(:has(#nav)) > header::before,
html[data-season="christmas"] .wrap:not(:has(#nav)) > header::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 3px); height: 26px; pointer-events: none;
  background: repeat-x left top / 144px 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 26' width='144' height='26'%3E%3Cpath d='M0 3 Q18 15 36 3 Q54 15 72 3 Q90 15 108 3 Q126 15 144 3' fill='none' stroke='%233E4A42' stroke-width='1.2'/%3E%3Crect x='16' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='18' cy='15' rx='3.4' ry='4.8' fill='%23E5483F'/%3E%3Crect x='88' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='90' cy='15' rx='3.4' ry='4.8' fill='%23E8B53A'/%3E%3C/svg%3E");
}
html[data-season="christmas"] .wrap:not(:has(#nav)) > header::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 26' width='144' height='26'%3E%3Crect x='52' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='54' cy='15' rx='3.4' ry='4.8' fill='%232E9E62'/%3E%3Crect x='124' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='126' cy='15' rx='3.4' ry='4.8' fill='%234A8FE0'/%3E%3C/svg%3E"); animation: xmTwinkle 2.4s ease-in-out infinite; }
html[data-season="christmas"] .wrap:not(:has(#nav)) > header::after { animation: xmTwinkle 2.4s 1.2s ease-in-out infinite; }
@keyframes xmTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- menu: the selected item uses pine green ---------- */
html[data-season="christmas"] { --nav-on: var(--xg); }
@media (min-width: 900px) {
  html[data-season="christmas"] nav#nav button.on { box-shadow: inset 3px 0 0 var(--xg); }
}

/* ---------- home ---------- */
html[data-season="christmas"] .hm-l2 { color: var(--acc-t); }
html[data-season="christmas"] .hm-sheet { border-top: 3px solid var(--xg); }
html[data-season="christmas"] .hm-st-b, html[data-season="christmas"] .hm-ok { color: var(--xg); }
html[data-season="christmas"] .hm-steps li:first-child { border-top-color: var(--xg); }
html[data-season="christmas"] { --band-bg: #1B5E3E; --band-fg: #FFFFFF; --band-sub: rgba(255, 255, 255, .78); }
html[data-season="christmas"][data-theme="dark"] { --band-bg: #163F2C; --band-fg: #F6EFE4; --band-sub: rgba(246, 239, 228, .72); }
@media (prefers-color-scheme: dark) {
  html[data-season="christmas"]:not([data-theme="light"]):not([data-theme="dark"]) { --band-bg: #163F2C; --band-fg: #F6EFE4; --band-sub: rgba(246, 239, 228, .72); }
}
html[data-season="christmas"] #root .hm-band { padding-top: 76px !important; }

/* ---------- Discover: the scan uses green ---------- */
html[data-season="christmas"] .dsc-arc { background: conic-gradient(var(--xg) 0 28%, transparent 28% 100%); }
html[data-season="christmas"] .dsc-live { background: var(--xg); }

/* ---------- chat: your bubbles in Christmas red, a green line on the chat header ---------- */
html[data-season="christmas"] .bub.me, html[data-season="christmas"] .m.me { background: var(--acc) !important; color: #1B1A2E !important; }
html[data-season="christmas"] .th-h { box-shadow: inset 0 -2px 0 var(--xg); }

/* ---------- Premium ---------- */
html[data-season="christmas"] .pm-card.pm-reserve { border-color: var(--acc) !important; }
html[data-season="christmas"] .pm-card.pm-black { box-shadow: 0 0 0 1px var(--xgold), var(--sh2); }
html[data-season="christmas"] .pm-rib { background: var(--xg) !important; color: #fff !important; }

/* ---------- announcement card and toasts follow the green ---------- */
html[data-season="christmas"] .ann.t-info { --ann: var(--xg); }

/* ---------- snow (drawn by season.js) ---------- */
.season-snow { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }
@media print { .season-snow { display: none; } }

/* ---------- extra touches ---------- */
/* a holly sprig next to "Example match" */
html[data-season="christmas"] .hm-lbl::before {
  content: ""; display: inline-block; width: 22px; height: 16px; margin-right: 7px; vertical-align: -3px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M12 9 C9 3 4 2 1 4 C3 5 3 7 2 8 C5 8 6 10 5 12 C8 10 10 11 12 9 Z' fill='%231E6B46'/%3E%3Cpath d='M12 9 C15 3 20 2 23 4 C21 5 21 7 22 8 C19 8 18 10 19 12 C16 10 14 11 12 9 Z' fill='%23288A5B'/%3E%3Ccircle cx='10.5' cy='11' r='2.3' fill='%23D93A31'/%3E%3Ccircle cx='13.6' cy='11.4' r='2.3' fill='%23E5483F'/%3E%3Ccircle cx='12' cy='13.8' r='2.3' fill='%23C2302A'/%3E%3C/svg%3E");
}
/* snow resting on the top edge of the closing band */
html[data-season="christmas"] .hm-band { position: relative; }
html[data-season="christmas"] .hm-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 18px; pointer-events: none;
  background: repeat-x left top / 120px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' width='120' height='18' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H120 V6 Q112 15 102 9 Q92 3 82 10 Q70 17 58 9 Q46 2 34 10 Q22 17 12 9 Q5 5 0 8 Z' fill='%23FBF7F1'/%3E%3C/svg%3E");
}
html[data-season="christmas"][data-theme="dark"] .hm-band::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' width='120' height='18' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H120 V6 Q112 15 102 9 Q92 3 82 10 Q70 17 58 9 Q46 2 34 10 Q22 17 12 9 Q5 5 0 8 Z' fill='%23E9EEF4'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  html[data-season="christmas"]:not([data-theme="light"]):not([data-theme="dark"]) .hm-band::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' width='120' height='18' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H120 V6 Q112 15 102 9 Q92 3 82 10 Q70 17 58 9 Q46 2 34 10 Q22 17 12 9 Q5 5 0 8 Z' fill='%23E9EEF4'/%3E%3C/svg%3E"); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-season="christmas"] header::before, html[data-season="christmas"] header::after { animation: none !important; }
}

/* ---------- inside the app (Discover, Like, chat, Premium, profile) ---------- */
/* string lights along the top of every app page */
html[data-season="christmas"] .wrap:has(#nav) #view { position: relative; }
html[data-season="christmas"] .wrap:has(#nav) #view::before,
html[data-season="christmas"] .wrap:has(#nav) #view::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; pointer-events: none; z-index: 3;
  background: repeat-x left top / 144px 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 26' width='144' height='26'%3E%3Cpath d='M0 3 Q18 15 36 3 Q54 15 72 3 Q90 15 108 3 Q126 15 144 3' fill='none' stroke='%233E4A42' stroke-width='1.2'/%3E%3Crect x='16' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='18' cy='15' rx='3.4' ry='4.8' fill='%23E5483F'/%3E%3Crect x='88' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='90' cy='15' rx='3.4' ry='4.8' fill='%23E8B53A'/%3E%3C/svg%3E"); animation: xmTwinkle 2.4s 1.2s ease-in-out infinite;
}
html[data-season="christmas"] .wrap:has(#nav) #view::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 26' width='144' height='26'%3E%3Crect x='52' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='54' cy='15' rx='3.4' ry='4.8' fill='%232E9E62'/%3E%3Crect x='124' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='126' cy='15' rx='3.4' ry='4.8' fill='%234A8FE0'/%3E%3C/svg%3E"); animation-delay: 0s; }
/* computer sidebar: two wrapped gifts under the menu */
@media (min-width: 900px) {
  html[data-season="christmas"] nav#nav::after {
    content: ""; display: block; width: 66px; height: 40px; margin: 22px 0 0 20px; pointer-events: none;
    background: no-repeat left bottom / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 40'%3E%3Crect x='4' y='16' width='28' height='22' rx='3' fill='%23E5483F'/%3E%3Crect x='15' y='16' width='6' height='22' fill='%23F4D27A'/%3E%3Crect x='2' y='11' width='32' height='8' rx='2' fill='%23C7352D'/%3E%3Crect x='15' y='11' width='6' height='8' fill='%23F4D27A'/%3E%3Cpath d='M18 11 C12 3 6 6 10 10 Z M18 11 C24 3 30 6 26 10 Z' fill='%23F4D27A'/%3E%3Crect x='40' y='22' width='22' height='16' rx='3' fill='%232E9E62'/%3E%3Crect x='49' y='22' width='4' height='16' fill='%23FFFFFF'/%3E%3Crect x='38' y='18' width='26' height='6' rx='2' fill='%23237E4E'/%3E%3Crect x='49' y='18' width='4' height='6' fill='%23FFFFFF'/%3E%3Cpath d='M51 18 C46 12 42 15 45 17 Z M51 18 C56 12 60 15 57 17 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  }
}
/* chat: a few faint snowflakes in the top corner of the conversation */
html[data-season="christmas"] .th-body { background-repeat: no-repeat; background-position: right 18px top 14px; background-size: 90px 70px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 70'%3E%3Cg fill='none' stroke='%2390A7C2' stroke-width='1.2' stroke-linecap='round' opacity='.45'%3E%3Cpath d='M60 6 V34 M48 13 L72 27 M48 27 L72 13'/%3E%3Cpath d='M20 40 V56 M13 44 L27 52 M13 52 L27 44'/%3E%3Cpath d='M76 52 V64 M71 55 L81 61 M71 61 L81 55'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-season="christmas"][data-theme="dark"] .th-body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 70'%3E%3Cg fill='none' stroke='%23C9D6E6' stroke-width='1.2' stroke-linecap='round' opacity='.45'%3E%3Cpath d='M60 6 V34 M48 13 L72 27 M48 27 L72 13'/%3E%3Cpath d='M20 40 V56 M13 44 L27 52 M13 52 L27 44'/%3E%3Cpath d='M76 52 V64 M71 55 L81 61 M71 61 L81 55'/%3E%3C/g%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { html[data-season="christmas"]:not([data-theme="light"]):not([data-theme="dark"]) .th-body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 70'%3E%3Cg fill='none' stroke='%23C9D6E6' stroke-width='1.2' stroke-linecap='round' opacity='.45'%3E%3Cpath d='M60 6 V34 M48 13 L72 27 M48 27 L72 13'/%3E%3Cpath d='M20 40 V56 M13 44 L27 52 M13 52 L27 44'/%3E%3Cpath d='M76 52 V64 M71 55 L81 61 M71 61 L81 55'/%3E%3C/g%3E%3C/svg%3E"); } }

@media (prefers-reduced-motion: reduce) {
  html[data-season="christmas"] .wrap:has(#nav) #view::before, html[data-season="christmas"] .wrap:has(#nav) #view::after { animation: none; }
}

/* computers: a stocking hangs on the right (like the Halloween spider); both bulb sets share one layer */
@media (min-width: 900px) {
  html[data-season="christmas"] .wrap:has(#nav) #view::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 26' width='144' height='26'%3E%3Crect x='52' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='54' cy='15' rx='3.4' ry='4.8' fill='%232E9E62'/%3E%3Crect x='124' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='126' cy='15' rx='3.4' ry='4.8' fill='%234A8FE0'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 26' width='144' height='26'%3E%3Cpath d='M0 3 Q18 15 36 3 Q54 15 72 3 Q90 15 108 3 Q126 15 144 3' fill='none' stroke='%233E4A42' stroke-width='1.2'/%3E%3Crect x='16' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='18' cy='15' rx='3.4' ry='4.8' fill='%23E5483F'/%3E%3Crect x='88' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='90' cy='15' rx='3.4' ry='4.8' fill='%23E8B53A'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-size: 144px 26px;
    animation: xmSoft 2.6s ease-in-out infinite;
  }
  html[data-season="christmas"] .wrap:has(#nav) #view::after {
    left: auto; right: 26px; width: 32px; height: 92px; transform-origin: 50% 0; animation: xmSwing 5s ease-in-out infinite;
    background: no-repeat center top / auto 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100'%3E%3Cline x1='20' y1='0' x2='20' y2='30' stroke='%23B9A57A' stroke-width='1.2'/%3E%3Cpath d='M11 40 H31 V70 Q31 74 34 77 L36 79 Q40 84 36 89 Q31 95 24 92 L12 84 Q8 81 9 76 L11 70 Z' fill='%23D93A31'/%3E%3Cpath d='M26 90 Q31 95 36 89 Q39 85 37 81 L31 84 Q29 87 26 90 Z' fill='%232E9E62'/%3E%3Cpath d='M11 62 H31 V67 H11 Z' fill='%232E9E62'/%3E%3Crect x='8' y='29' width='26' height='12' rx='5' fill='%23FFFFFF' stroke='%23E6DED2' stroke-width='1'/%3E%3Ccircle cx='15' cy='51' r='1.6' fill='%23F4D27A'/%3E%3Ccircle cx='25' cy='55' r='1.6' fill='%23F4D27A'/%3E%3Ccircle cx='19' cy='76' r='1.6' fill='%23F4D27A'/%3E%3C/svg%3E");
  }
}
@keyframes xmSoft { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes xmSwing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
  html[data-season="christmas"] .wrap:has(#nav) #view::before, html[data-season="christmas"] .wrap:has(#nav) #view::after { animation: none !important; }
}

/* computers: the top decoration always spans the whole content area (sidebar edge to screen edge),
   whatever width the page itself uses, and stays under the top bar while the page scrolls */
@media (min-width: 900px) {
  html[data-season="christmas"] .wrap:has(#nav) #view::before { position: fixed; top: 64px; left: 248px; right: 0; }
  html[data-season="christmas"] .wrap:has(#nav) #view::after { position: fixed; top: 64px; right: 26px; }
}

/* computers: the decoration hangs from the page body, not from the page area, because the page area
   slides in when you switch pages and anything attached to it would jump */
@media (min-width: 900px) {
  html[data-season="christmas"] .wrap:has(#nav) #view::before,
  html[data-season="christmas"] .wrap:has(#nav) #view::after { content: none !important; }
  html[data-season="christmas"] body:has(#nav):not(.adm-on)::before {
    content: ""; position: fixed; top: 64px; left: 248px; right: 0; height: 26px; pointer-events: none; z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 26' width='144' height='26'%3E%3Crect x='52' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='54' cy='15' rx='3.4' ry='4.8' fill='%232E9E62'/%3E%3Crect x='124' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='126' cy='15' rx='3.4' ry='4.8' fill='%234A8FE0'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 26' width='144' height='26'%3E%3Cpath d='M0 3 Q18 15 36 3 Q54 15 72 3 Q90 15 108 3 Q126 15 144 3' fill='none' stroke='%233E4A42' stroke-width='1.2'/%3E%3Crect x='16' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='18' cy='15' rx='3.4' ry='4.8' fill='%23E5483F'/%3E%3Crect x='88' y='8' width='4' height='3' rx='1' fill='%233E4A42'/%3E%3Cellipse cx='90' cy='15' rx='3.4' ry='4.8' fill='%23E8B53A'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-size: 144px 26px; animation: xmSoft 2.6s ease-in-out infinite;
  }
  html[data-season="christmas"] body:has(#nav):not(.adm-on)::after {
    content: ""; position: fixed; top: 64px; right: 26px; width: 32px; height: 92px; pointer-events: none; z-index: 3;
    transform-origin: 50% 0; animation: xmSwing 5s ease-in-out infinite;
    background: no-repeat center top / auto 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100'%3E%3Cline x1='20' y1='0' x2='20' y2='30' stroke='%23B9A57A' stroke-width='1.2'/%3E%3Cpath d='M11 40 H31 V70 Q31 74 34 77 L36 79 Q40 84 36 89 Q31 95 24 92 L12 84 Q8 81 9 76 L11 70 Z' fill='%23D93A31'/%3E%3Cpath d='M26 90 Q31 95 36 89 Q39 85 37 81 L31 84 Q29 87 26 90 Z' fill='%232E9E62'/%3E%3Cpath d='M11 62 H31 V67 H11 Z' fill='%232E9E62'/%3E%3Crect x='8' y='29' width='26' height='12' rx='5' fill='%23FFFFFF' stroke='%23E6DED2' stroke-width='1'/%3E%3Ccircle cx='15' cy='51' r='1.6' fill='%23F4D27A'/%3E%3Ccircle cx='25' cy='55' r='1.6' fill='%23F4D27A'/%3E%3Ccircle cx='19' cy='76' r='1.6' fill='%23F4D27A'/%3E%3C/svg%3E");
  }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  html[data-season="christmas"] body::before, html[data-season="christmas"] body::after { animation: none !important; }
}
