/* Nerdcave guild site: the festival wallpapers, Hallow's End and
   Winter Veil (<html data-theme="hallow" | "veil">; js/site.js shows them by
   themselves during the festivals, js/common.js lets the viewer pick them and
   gives them their particles: snow, and lantern motes). Original art only:
   colours, gradients and the small string lights drawn here (no game art).
   Text colours keep the contrast of the other two looks (WCAG AA on the
   darkest card); the lights twinkle only while motion is allowed.
   Generated by the feature round's make_seasons.py; edit freely. */

:root[data-theme="veil"] {
  --bg: #060a12; --bg-2: #08101c;
  --card: #0b1220; --card-2: #101a2b;
  --line: rgba(205, 228, 255, 0.11); --line-2: rgba(205, 228, 255, 0.2);
  --accent: #ffd58a; --accent-2: #ff6b5e; --accent-cold: #bfe6ff; --accent-rgb: 255, 213, 138; --accent2-rgb: 255, 107, 94;
  --ink: #1d1406;
  --text: #f2f6ff; --text-2: #cdd8ea; --text-3: #a9b6cc;
  --title-a: #ffffff; --title-b: #e6f2ff; --title-c: #ffd58a; --title-d: #ff8a7a;
  --crest-hi: #2c4468; --crest-lo: #0e1828; --crest-rim: #ffd58a;
  --btn: linear-gradient(180deg, #fff2cf 0%, #ffd58a 45%, #e0a24a 100%);
}
:root[data-theme="hallow"] {
  --bg: #08050c; --bg-2: #0c0711;
  --card: #110a16; --card-2: #170e1e;
  --line: rgba(255, 214, 180, 0.1); --line-2: rgba(255, 214, 180, 0.19);
  --accent: #ff9f45; --accent-2: #b47cff; --accent-cold: #c9a4ff; --accent-rgb: 255, 159, 69; --accent2-rgb: 180, 124, 255;
  --ink: #1f0e02;
  --text: #f8efe6; --text-2: #ddcdbd; --text-3: #b9a693;
  --title-a: #fff7ee; --title-b: #ffe2c2; --title-c: #ff9f45; --title-d: #b47cff;
  --crest-hi: #4a2a52; --crest-lo: #160b1a; --crest-rim: #ff9f45;
  --btn: linear-gradient(180deg, #ffd9a8 0%, #ff9f45 48%, #c8601c 100%);
}

/* the ground: a cold sky with a warm glow (Winter Veil), purple fog over
   pumpkin light (Hallow's End) */
:root[data-theme="veil"] body {
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(120, 175, 255, .17), transparent 70%),
    radial-gradient(800px 420px at 88% 2%, rgba(255, 196, 120, .08), transparent 70%),
    radial-gradient(1200px 380px at 50% 104%, rgba(205, 228, 255, .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="hallow"] body {
  background:
    radial-gradient(1100px 520px at 18% -6%, rgba(150, 90, 220, .16), transparent 70%),
    radial-gradient(900px 420px at 92% 108%, rgba(255, 140, 50, .1), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* bars and menus in the festival's colours */
:root[data-theme="veil"] .topbar { background: linear-gradient(180deg, rgba(5, 9, 16, .82), rgba(5, 9, 16, .56)); }
:root[data-theme="hallow"] .topbar { background: linear-gradient(180deg, rgba(8, 4, 11, .82), rgba(8, 4, 11, .56)); }
:root[data-theme="veil"] .theme-menu { background: rgba(9, 14, 24, .97); }
:root[data-theme="hallow"] .theme-menu { background: rgba(14, 8, 18, .97); }
:root[data-theme="veil"] .subbar {
  --sb-accent: #ffd58a; --sb-accent-rgb: 255, 213, 138; --sb-ink: #1d1406;
  --sb-text: #f2f6ff; --sb-text-2: #cdd8ea; --sb-text-3: #a9b6cc;
  background: linear-gradient(180deg, rgba(7, 12, 21, .78), rgba(7, 12, 21, .64));
}
:root[data-theme="hallow"] .subbar {
  --sb-accent: #ff9f45; --sb-accent-rgb: 255, 159, 69; --sb-ink: #1f0e02;
  --sb-text: #f8efe6; --sb-text-2: #ddcdbd; --sb-text-3: #b9a693;
  background: linear-gradient(180deg, rgba(12, 6, 15, .78), rgba(12, 6, 15, .64));
}
@media (max-width: 760px) {
  :root[data-theme="veil"] .dock { background: rgba(6, 10, 18, .9); }
  :root[data-theme="hallow"] .dock { background: rgba(10, 5, 13, .9); }
}

/* cards: a frosted hairline (Winter Veil), the gold corners in pumpkin (Hallow's End) */
:root[data-theme="veil"] .card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(205, 228, 255, .45), rgba(205, 228, 255, .06) 45%, rgba(255, 213, 138, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
:root[data-theme="hallow"] .card::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none; border-radius: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 18px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1px 18px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) bottom right / 18px 1px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) bottom right / 1px 18px no-repeat;
  opacity: .55; }

/* the hero: a cold breath over Winter Veil's raid pictures, dusk over Hallow's End's */
:root[data-theme="veil"] .hv1-shade { box-shadow: inset 0 160px 180px -70px rgba(150, 200, 255, .2); }
:root[data-theme="hallow"] .hv1-shade { box-shadow: inset 0 160px 180px -70px rgba(150, 90, 220, .2); }

/* string lights along the sub-tab bar's lower edge: the wire and the lights
   (::before) and their glow, twinkling (::after, which replaces the thread of
   light the other looks have there) */
:root[data-theme="veil"] .subbar::before,
:root[data-theme="hallow"] .subbar::before,
:root[data-theme="veil"] .subbar::after,
:root[data-theme="hallow"] .subbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 28px; pointer-events: none;
  background-repeat: repeat-x; background-size: 160px 28px;
}
:root[data-theme="veil"] .subbar::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28'%3E%3Cpath d='M0 5 Q40 19 80 7 T160 5' fill='none' stroke='%2326402c' stroke-width='1.6'/%3E%3Crect x='18.4' y='8' width='3.2' height='3' rx='0.8' fill='%2326402c'/%3E%3Cellipse cx='20' cy='15.2' rx='2.6' ry='3.6' fill='%23ff5a4f'/%3E%3Cellipse cx='19.2' cy='14.2' rx='0.8' ry='1.2' fill='white' opacity='0.7'/%3E%3Crect x='58.4' y='11' width='3.2' height='3' rx='0.8' fill='%2326402c'/%3E%3Cellipse cx='60' cy='18.2' rx='2.6' ry='3.6' fill='%23ffd27a'/%3E%3Cellipse cx='59.2' cy='17.2' rx='0.8' ry='1.2' fill='white' opacity='0.7'/%3E%3Crect x='98.4' y='6' width='3.2' height='3' rx='0.8' fill='%2326402c'/%3E%3Cellipse cx='100' cy='13.2' rx='2.6' ry='3.6' fill='%236fe08a'/%3E%3Cellipse cx='99.2' cy='12.2' rx='0.8' ry='1.2' fill='white' opacity='0.7'/%3E%3Crect x='138.4' y='9' width='3.2' height='3' rx='0.8' fill='%2326402c'/%3E%3Cellipse cx='140' cy='16.2' rx='2.6' ry='3.6' fill='%237cc4ff'/%3E%3Cellipse cx='139.2' cy='15.2' rx='0.8' ry='1.2' fill='white' opacity='0.7'/%3E%3C/svg%3E"); }
:root[data-theme="veil"] .subbar::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28'%3E%3CradialGradient id='g20'%3E%3Cstop offset='0' stop-color='%23ff5a4f' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23ff5a4f' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle cx='20' cy='15' r='11' fill='url(%23g20)'/%3E%3CradialGradient id='g60'%3E%3Cstop offset='0' stop-color='%23ffd27a' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23ffd27a' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle cx='60' cy='18' r='11' fill='url(%23g60)'/%3E%3CradialGradient id='g100'%3E%3Cstop offset='0' stop-color='%236fe08a' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%236fe08a' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle cx='100' cy='13' r='11' fill='url(%23g100)'/%3E%3CradialGradient id='g140'%3E%3Cstop offset='0' stop-color='%237cc4ff' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%237cc4ff' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle cx='140' cy='16' r='11' fill='url(%23g140)'/%3E%3C/svg%3E"); animation: veil-twinkle 2.8s ease-in-out infinite alternate; }
:root[data-theme="hallow"] .subbar::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28'%3E%3Cpath d='M0 5 Q40 19 80 7 T160 5' fill='none' stroke='%232a1630' stroke-width='1.6'/%3E%3Crect x='17.6' y='8' width='4.8' height='2.4' rx='1' fill='%232a1630'/%3E%3Ccircle cx='20' cy='15' r='4.2' fill='%23ff9a3c'/%3E%3Cpath d='M17.8 15h4.4' stroke='%233a1606' stroke-width='0.9' opacity='0.55'/%3E%3Crect x='57.6' y='11' width='4.8' height='2.4' rx='1' fill='%232a1630'/%3E%3Ccircle cx='60' cy='18' r='4.2' fill='%23b47cff'/%3E%3Cpath d='M57.8 18h4.4' stroke='%233a1606' stroke-width='0.9' opacity='0.55'/%3E%3Crect x='97.6' y='6' width='4.8' height='2.4' rx='1' fill='%232a1630'/%3E%3Ccircle cx='100' cy='13' r='4.2' fill='%23ffb85c'/%3E%3Cpath d='M97.8 13h4.4' stroke='%233a1606' stroke-width='0.9' opacity='0.55'/%3E%3Crect x='137.6' y='9' width='4.8' height='2.4' rx='1' fill='%232a1630'/%3E%3Ccircle cx='140' cy='16' r='4.2' fill='%23ff7a2e'/%3E%3Cpath d='M137.8 16h4.4' stroke='%233a1606' stroke-width='0.9' opacity='0.55'/%3E%3C/svg%3E"); }
:root[data-theme="hallow"] .subbar::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28'%3E%3CradialGradient id='g20'%3E%3Cstop offset='0' stop-color='%23ff9a3c' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23ff9a3c' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle cx='20' cy='15' r='11' fill='url(%23g20)'/%3E%3CradialGradient id='g60'%3E%3Cstop offset='0' stop-color='%23b47cff' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23b47cff' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle cx='60' cy='18' r='11' fill='url(%23g60)'/%3E%3CradialGradient id='g100'%3E%3Cstop offset='0' stop-color='%23ffb85c' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23ffb85c' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle cx='100' cy='13' r='11' fill='url(%23g100)'/%3E%3CradialGradient id='g140'%3E%3Cstop offset='0' stop-color='%23ff7a2e' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23ff7a2e' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle cx='140' cy='16' r='11' fill='url(%23g140)'/%3E%3C/svg%3E"); animation: veil-twinkle 3.6s ease-in-out infinite alternate; }
@keyframes veil-twinkle {
  0% { opacity: .35; }
  45% { opacity: .95; }
  60% { opacity: .6; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-theme="veil"] .subbar::after, :root[data-theme="hallow"] .subbar::after { animation: none; opacity: .8; }
}
html.calm .subbar::after, html.still .subbar::after { animation: none; }

/* the wallpaper menu's note on the festivals */
.theme-note { padding: 6px 8px 2px; font: 500 13px/1.35 var(--font-ui); color: var(--text-3); }
