/* christmas theme: written by tools/theme.py, edit themes/christmas/theme.css instead */
/* --- the site's purple recoloured (automatic) --- */
:root { --ink: #080a12; --night: #0a0e1c; --night-2: #101630; --night-3: #182146; --purple: #e6172c; --purple-2: #ff2c41; --slime: #2aff71; --slime-deep: #004216; --muted: #a6b0d6; }
body { background-image: url("../assets/art/studs.webp"), linear-gradient(180deg, #0b122e 0, var(--night) 900px); }
.stamp { background: rgba(8, 10, 18, 0.55); }
.factor { background: linear-gradient(180deg, #202c5a, var(--night-2)); }
.socket { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 45%, #182146), #0c1124 75%); }
.f-text small { color: #d0d7f2; }
.deck { background: linear-gradient(180deg, #161e3c, var(--night-2)); }
.field { background: #080b18; }
.search input::placeholder { color: #7a83a6; }
.select select option { background: #101630; }
.m-all { background-image: linear-gradient(180deg, #ff5b6b, var(--purple)); }
.stage { background: radial-gradient(ellipse 70% 55% at 50% 40%, color-mix(in srgb, var(--tier) 38%, transparent), transparent 70%), radial-gradient(circle at 50% 45%, #1a2e80, #0d1536 72%); }
.bb { background: #080b18; }
.meters { background: #0b0f20; }
.signal i { background: #2a3252; }
.about { background: linear-gradient(180deg, #161e3c, var(--night-2)); }
.about p { color: #d0d6f0; }
.faq .q { background: rgba(8, 10, 18, 0.45); }
.legal p, .legal li { color: #d0d6f0; }
.modal-backdrop { background: radial-gradient(ellipse at 50% 40%, rgba(14, 26, 72, 0.9), rgba(5, 7, 16, 0.96)); }
.inspect .info { scrollbar-color: #344070 transparent; }
.frow { background: linear-gradient(180deg, #1f284d, #141a33); }
.bar i { background: #2a3252; }
.src-list { background: #080b18; }
.src { background: #101630; }
.src-tag { background: #b4bee4; }
.stat { background: #080b18; }
.dd-btn.dd-input { background: #080b18; }
.dd-panel { background: linear-gradient(180deg, #182146, #101630 60%); scrollbar-color: #344070 transparent; }
.dd-opt { color: #dce1f5; }
.dd-opt.active { background: #2a3252; }
.dd-opt[aria-selected="true"] { background: linear-gradient(180deg, #ff5b6b, var(--purple)); }
.dd-opt[aria-selected="true"].active { background: linear-gradient(180deg, #ff7a87, #f02d41); }
.dd-tools { border-bottom: 2px solid #182146; }
.dd-tool { background: linear-gradient(180deg, #344070, #182146); }
.unknown-lvl { background: #182146; }
.topbar { background: linear-gradient(180deg, #0f1b4d, #0b122e); box-shadow: 0 6px 0 rgba(8, 10, 18, 0.55); }
.facts { background: #080b18; }
.save-state { color: #7a83a6; }
.btn { --b1: #7affa6; --b2: #1cd158; }
.btn.purple { --b1: #8ba2ff; }
.btn.dark { --b1: #344070; --b2: #182146; }
.input { background: #080b18; }
.input::placeholder { color: #606888; }
.auth-card { --frame: linear-gradient(160deg, #d6ffb4, #2ac65e 55%, #127a35); box-shadow: 0 0 60px rgba(42, 255, 113, 0.18); }
.seg { background: #080b18; }
.seg button.on { background: linear-gradient(180deg, #ff5b6b, var(--purple)); }
.email-box { background: #182146; }
.cta { background: linear-gradient(100deg, #2a6b40, #173d16 45%, #161e3c); }
.cta:hover { filter: drop-shadow(0 12px 0 var(--ink)) drop-shadow(0 14px 22px rgba(42, 255, 113, 0.35)); }
.acct { background: linear-gradient(180deg, #202c5a, var(--night-2)); }
.acct.on { background: linear-gradient(180deg, #2a6b40, #173d16); }
.av { background: radial-gradient(circle at 50% 35%, #3a4a8a, #0d1536); }
.live-tag.off { color: #dce1f5; background: #344070; }
.acct-x { background: #182146; }
.add-tile { background: rgba(42, 255, 113, 0.05); border: 4px dashed rgba(42, 255, 113, 0.45); }
.add-tile:hover { background: rgba(42, 255, 113, 0.11); }
.add-tile .plus { background: linear-gradient(180deg, #7affa6, #1cd158); }
.add-acct { background: linear-gradient(180deg, #202c5a, var(--night-2)); }
.owner { background: #0b0f20; }
.changelog { background: linear-gradient(180deg, #161e3c, var(--night-2)); }
.cl-title small { color: #d0d7f2; }
.cl-tile { background: linear-gradient(180deg, #202c5a, var(--night-2)); }
.inspect.green { --frame: linear-gradient(160deg, #d6ffb4, #2ac65e 55%, #127a35); }
.sel-mark { background: #182146; }
.bulk-grid { scrollbar-color: #344070 transparent; }
.bulk-tile { background: #101630; }
.bt-name { background: #0b0f20; }
.bt-n { background: #182146; }
.bulk-tile.has { box-shadow: 0 0 0 3px var(--slime), 0 0 18px rgba(42, 255, 113, 0.35); }
.bulk-basket { background: #0c1022; }
.bulk-list { background: #080b18; scrollbar-color: #344070 transparent; }
.bulk-row { background: #101630; }
.br-step { background: #080b18; }
.br-step button { background: #182146; }
.br-step button:hover { background: #2a3252; }
.select-bar { background: #141b38; }
.pick-list { background: #080b18; scrollbar-color: #344070 transparent; }
.pick { background: #101630; }
.pick:hover { background: #182146; }
.stepper { background: #080b18; }
.stepper button { background: #182146; }
.stepper button:hover { background: #2a3252; }
.select-input { background: #080b18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%23b9a6d6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 14px 9px; }
.select-input option { background: #101630; }
.switch .knob { background: #2a3252; }
.tab { background: linear-gradient(180deg, #2a3252, #161d3a); }
.tab.on { background: linear-gradient(180deg, #ff5b6b, var(--purple)); }
.progress { background: #080b18; }
.progress .fill { background: linear-gradient(180deg, #b0c0ff, #f03c4e 55%, #b01f2e); }
.meter-bar { background: #080b18; }
.meter-bar i { background: linear-gradient(180deg, #b0c0ff, #f03c4e); }
.cta:hover { filter: drop-shadow(0 14px 22px rgba(42, 255, 113, 0.35)); }
.user-row { background: linear-gradient(180deg, #202c5a, var(--night-2)); }
.user-mail { color: #cbd0e6; }
.user-mail.none { color: #7a83a6; }
.own-pic { background: var(--frame, #2a3252); }
.own-holder { background: #1a2244; }
.own-holder span { color: #cbd0e6; }
.tag.yes { background-image: linear-gradient(180deg, #7affa6, var(--slime)); }
.tag.no { background: #2a3252; color: #a6b0d6; }
.mask-btn.on { --b1: #5a6aa8; --b2: #2d3c78; }
.av-mask svg { filter: drop-shadow(0 2px 0 rgba(8, 10, 18, 0.55)); }
.hidden-tag { color: #dce1f5; background: #2a3252; }
.share-opt { background: #080b18; }
.trade-btn { --b1: #ff7a87; --b2: #f02d41; }
.trade-preview { background: #080b18; }
@media (max-width: 820px) {
  .bulk-foot { background: #0c1022; }
}
@media (hover: none), (max-width: 820px) {
  .bulk-tile .stage { background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--tier) 34%, #182868), #0d1536 72%); }
}
/* --- themes/christmas/theme.css --- */
/* Christmas: the header scene and the title. The rest of the site's purple is recoloured automatically by
   tools/theme.py (PALETTE); this file is the hand-made part. Art: tools/make_christmas_art.py (logo, sleigh,
   snowflakes), tools/make_hills_christmas.py (the hills), tools/make_floor.py christmas */
:root { --spooky: "Luckiest Guy", "Lilita One", "Impact", sans-serif; --cane: #e3122b; --cane-deep: #5a0710; }

body {
  background-image: url("../assets/art/studs.webp"), linear-gradient(180deg, #1f2550 0, var(--night) 900px);
}

/* ---- header: a calm winter dusk over snowy hills ---- */
.hero { background: linear-gradient(180deg, #1c2452 0%, #343d7c 34%, #6f5f9f 60%, #c98ea3 82%, #f2bfa0 100%); }
.sky {
  background:
    radial-gradient(ellipse 70% 38% at 50% 100%, rgba(255, 205, 160, .45), transparent 72%),   /* sunset glow */
    radial-gradient(1.6px 1.6px at 8% 12%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 17% 30%, #ffffffbb, transparent 70%),
    radial-gradient(2px 2px at 27% 8%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 39% 22%, #ffffffaa, transparent 70%),
    radial-gradient(1.6px 1.6px at 48% 6%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 60% 16%, #ffffffbb, transparent 70%),
    radial-gradient(1.4px 1.4px at 71% 9%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 93% 26%, #ffffffaa, transparent 70%);
}
.moon {
  background:
    radial-gradient(circle at 34% 38%, rgba(190, 186, 214, .45) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 64%, rgba(190, 186, 214, .4) 0 12%, transparent 13%),
    radial-gradient(circle at 66% 30%, rgba(190, 186, 214, .35) 0 6%, transparent 7%),
    radial-gradient(circle at 40% 40%, #ffffff, #f4f0fa 68%, #d3cbe4);
  box-shadow: 0 0 40px 10px rgba(240, 232, 255, .32), 0 0 120px 40px rgba(220, 205, 255, .14);
}
.moon::after { background: radial-gradient(circle, rgba(240, 232, 255, .24), transparent 62%); }
/* puffy sunset-lit clouds (make_christmas_art.py) at three depths: far ones small, faint and slow */
.clouds { inset: 0 0 30% 0; }
.clouds .cloud { background: var(--img) 0 0 / 100% 100% no-repeat; opacity: var(--o, .95); height: auto; aspect-ratio: var(--ar); }
.cloud.c1 { --img: url("../assets/themes/christmas/cloud-1.webp"); --ar: 640 / 240; width: 330px; top: 4%;  scale: 1; animation-duration: 130s; animation-delay: -30s; }
.cloud.c2 { --img: url("../assets/themes/christmas/cloud-2.webp"); --ar: 460 / 190; width: 220px; top: 26%; scale: 1; --o: .75; animation-duration: 170s; animation-delay: -120s; }
.cloud.c3 { --img: url("../assets/themes/christmas/cloud-3.webp"); --ar: 560 / 210; width: 275px; top: 13%; scale: 1; --o: .9; animation-duration: 150s; animation-delay: -75s; }
.cloud.c4 { --img: url("../assets/themes/christmas/cloud-4.webp"); --ar: 340 / 150; width: 145px; top: 34%; --o: .6; animation-duration: 220s; animation-delay: -160s; }
.cloud.c5 { --img: url("../assets/themes/christmas/cloud-2.webp"); --ar: 460 / 190; width: 165px; top: 8%;  --o: .7; animation-duration: 200s; animation-delay: -10s; }

/* Sleigh Helpy (captured from the game, rocking with its own animation) zipping across every ~22 s, bobbing
   on the way and leaving a twinkling stardust trail. Three nested movers: .fly = the path, .bob = the
   up-and-down, .sled i = the animation frames. All transforms. */
.sleigh { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.sleigh .fly {
  position: absolute; left: 0; top: 0;
  width: clamp(70px, 6.2vw, 98px);
  /* two motions on separate properties make one smooth arc: across at a steady speed (translate, with the
     nose tilting from up to down as it goes: rotate), and a rise-and-fall that slows at the top (transform) */
  animation: sleigh-across 22s linear -4s infinite, sleigh-arc 22s -4s infinite;
  will-change: transform, translate, rotate;
}
.sleigh .bob { position: relative; animation: sleigh-bob 1.5s ease-in-out infinite alternate; will-change: transform; }
.sleigh .sled {
  position: relative; display: block; width: 100%; overflow: hidden;
  filter: drop-shadow(0 8px 8px rgba(20, 16, 50, .35));
}
.sleigh .sled i {
  position: absolute; left: 0; top: 0; height: 100%;
  width: calc(var(--frames) * 100%);
  background: url("../assets/themes/christmas/sleigh.webp?v=2") 0 0 / 100% 100% no-repeat;
  animation: sleigh-rock .9s steps(var(--frames)) infinite;
  will-change: transform;
}
@keyframes sleigh-rock { to { transform: translateX(-100%); } }
@keyframes sleigh-bob { from { transform: translateY(-5px) rotate(-1.5deg); } to { transform: translateY(5px) rotate(1.5deg); } }
/* an arc over the title, then down past the moon; the crossing takes the first 45% (~10 s) */
@keyframes sleigh-across {
  0%        { translate: -200px 0; rotate: -7deg; }
  45%, 100% { translate: calc(100vw + 60px) 0; rotate: 6deg; }
}
@keyframes sleigh-arc {
  0%        { transform: translateY(100px); animation-timing-function: cubic-bezier(.25, .46, .45, .94); }  /* rising, slowing */
  22.5%     { transform: translateY(6px);   animation-timing-function: cubic-bezier(.55, .085, .68, .53); } /* falling, speeding up */
  45%, 100% { transform: translateY(78px); }
}
/* stardust behind the sleigh: little golden stars that twinkle, smaller and fainter further back */
.sleigh .trail { position: absolute; inset: 0; }
.sleigh .trail::before {  /* a soft golden glow streaming out behind */
  content: ""; position: absolute; right: 78%; top: 40%; width: 90%; height: 26%;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 214, 120, 0), rgba(255, 214, 120, .35) 70%, rgba(255, 240, 200, .55));
  filter: blur(6px);
}
.sleigh .trail i {
  position: absolute; left: var(--x); top: var(--y);
  width: 16px; height: 16px; margin: -8px;
  background:
    radial-gradient(circle, #fff 0 18%, rgba(255, 226, 140, .9) 30%, rgba(255, 210, 110, 0) 66%),
    conic-gradient(from 45deg, transparent 0 20%, rgba(255, 240, 190, .9) 25%, transparent 30% 45%,
      rgba(255, 240, 190, .9) 50%, transparent 55% 70%, rgba(255, 240, 190, .9) 75%, transparent 80% 95%,
      rgba(255, 240, 190, .9) 100%);
  border-radius: 50%;
  opacity: var(--z);
  scale: var(--z);
  animation: stardust .9s ease-in-out var(--t) infinite alternate;
  will-change: transform, opacity;
}
@keyframes stardust { from { transform: scale(.35) rotate(0deg); opacity: .15; } to { transform: scale(1.15) rotate(45deg); } }

/* snowfall: every flake has its own spot, size, speed and sway (written by make_christmas_art.py), so it
   reads as falling snow, not a moving pattern. Only transforms animate. */
.snowfall { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.snow-back { z-index: -2; }
.snow-front { z-index: 0; }
.snowfall i {
  position: absolute; top: -14px;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 38%, rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, 0) 72%);
  opacity: var(--o);
  animation: flake-fall var(--d) linear var(--dl) infinite, flake-sway var(--sw) ease-in-out var(--dl) infinite alternate;
  will-change: transform;
}
@keyframes flake-fall { to { translate: 0 560px; } }
@keyframes flake-sway { from { transform: translateX(calc(var(--sx) * -1)); } to { transform: translateX(var(--sx)); } }

/* soft mist low over the snow */
.fog {
  background:
    radial-gradient(ellipse 16% 55% at 12% 70%, rgba(255, 236, 240, .2), transparent 70%),
    radial-gradient(ellipse 14% 45% at 40% 62%, rgba(255, 236, 240, .14), transparent 70%),
    radial-gradient(ellipse 18% 50% at 68% 72%, rgba(255, 236, 240, .18), transparent 70%),
    radial-gradient(ellipse 12% 40% at 90% 60%, rgba(255, 236, 240, .12), transparent 70%);
  background-size: 1400px 100%;
  animation-duration: 60s;
}

.skyline-in { background-image: url("../assets/themes/christmas/skyline.webp?v=2"); }
.skyline-in i { background-image: url("../assets/themes/christmas/skyline-lights.webp?v=2"); animation-name: cabin-fire; animation-timing-function: ease-in-out; }
@keyframes cabin-fire { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: .6; } 55% { opacity: 1; } }

.floor { background: #e9f1fb url("../assets/themes/christmas/floor.webp") 50% 0 / auto 100% no-repeat; }
.floor::after {
  background:
    linear-gradient(180deg, rgba(120, 104, 170, .55), rgba(120, 104, 170, 0) 22%),
    linear-gradient(0deg, var(--night) 0, rgba(8, 17, 32, 0) 34%);
}
/* the Christmas walkers are narrow side-on, so the shadow is sized from the walker's height, not its width */
.walker::before {
  left: 50%; right: auto; bottom: -5px;
  width: calc(var(--h) * .58); height: 14px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(4, 22, 12, .8), rgba(4, 22, 12, .4) 55%, transparent);
}

/* ---- logo and title: Santa Freddy, white "Steal a FNAF", candy-cane "Value List" ---- */
.logo { filter: drop-shadow(0 10px 8px rgba(20, 16, 50, .5)) drop-shadow(0 0 30px rgba(255, 90, 90, .35)); }
.t-game {
  text-shadow:
    4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 4px 0 var(--ink), 0 -4px 0 var(--ink),
    4px 4px 0 var(--ink), -4px -4px 0 var(--ink), 4px -4px 0 var(--ink), -4px 4px 0 var(--ink),
    0 8px 0 #1c7a3c, 4px 8px 0 #1c7a3c, -4px 8px 0 #1c7a3c,
    0 12px 0 var(--ink), 4px 12px 0 var(--ink), -4px 12px 0 var(--ink),
    0 22px 26px rgba(0, 0, 0, .45);
}
/* candy-cane stripes clipped to the letters; the outline and depth are drop-shadows (a text-shadow would be
   painted over the stripes) */
.t-sub, .brand small {
  font-family: var(--spooky); font-weight: 400;
  color: transparent;
  background: repeating-linear-gradient(-50deg, #fff 0 .17em, var(--cane) .17em .34em);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.t-sub {
  margin-top: 10px;
  letter-spacing: 2px;
  padding: 0 .08em;  /* room for the last letter's stripes */
  filter:
    drop-shadow(3px 0 0 var(--cane-deep)) drop-shadow(-3px 0 0 var(--cane-deep))
    drop-shadow(0 3px 0 var(--cane-deep)) drop-shadow(0 -3px 0 var(--cane-deep))
    drop-shadow(0 5px 0 var(--ink)) drop-shadow(0 0 22px rgba(255, 60, 70, .4));
}
.brand small {
  letter-spacing: 1.5px;
  background-image: repeating-linear-gradient(-50deg, #fff 0 .3em, var(--cane) .3em .6em);  /* wider stripes: it is small */
  filter: drop-shadow(2px 0 0 var(--cane-deep)) drop-shadow(-2px 0 0 var(--cane-deep))
    drop-shadow(0 2px 0 var(--cane-deep)) drop-shadow(0 -2px 0 var(--cane-deep));
}

@media (prefers-reduced-motion: reduce) {
  .sleigh, .snow-front { display: none; }
}

