@property --r {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

/* bs-world-color — registered "Dorothy" color world (html.bs-world-color).
   Peyton t1252–t1254: a bright, airy, original summer world in a Miyazaki /
   Ghibli mood — saturated blue sky, fluffy clouds, sunlit green grass and
   leaves, warm light, soft cel shading. Inspiration only; no copied art
   or traced palettes. Same layout and geometry, no thick black borders.
   Revert by removing the html class (and this stylesheet).
   Does NOT filter user-uploaded photos/videos.
   Does NOT restyle the nose logo (nose.png?v=4 keeps its existing mark).
   Does NOT rewrite duvet asset files. */

html.bs-world-color {
  --cw-sky: #3FA0E8;
  --cw-sky-deep: #2F8FD0;
  --cw-sky-soft: #8FD0F5;
  --cw-cloud: #FFFFFF;
  --cw-grass: #7CC44A;
  --cw-grass-deep: #2F6B3A; /* rgb(47, 107, 58) — matte leaf fills, WCAG AA on white type */
  --cw-leaf: #3D7A48;
  --cw-sun: #FFD97A;
  --cw-cream: #FFFCF5;
  --cw-cream-2: #F8EFD8;
  --cw-frost: rgba(255, 252, 245, 0.72);
  --cw-ink: #1F3D28;
  --cw-mute: #2C4A34;
  --pri: #2F6B3A;
  --pri2: #2F6B3A;
  --apr: #2F6B3A;
  --ok: #2F6B3A;
  --mute: #2C4A34;
  --mut: #2C4A34;
  --ink-fill: #2F6B3A;
  --cw-wood: #C8955A;
  --cw-tomato: #E5432F;
  --cw-cloud-shade: #D5D0E0;
  --cw-canola: #F5D33A;
  --cw-celadon: #7EBEB4;
}

/* ---------- Sky + meadow ground (original CSS only) ---------- */
html.bs-world-color {
  background-color: #F3EFE2 !important; /* bs-lineart-bg-v1: paper fallback before the paint layer mounts */
}
html.bs-world-color body,
html.bs-world-color body[data-holiday],
html.bs-world-color #app,
html.bs-world-color body[data-holiday] #app {
  background-color: transparent !important;
  background-image: none !important;
  color: #1F3D28;
}

html.bs-world-color header,
html.bs-world-color body[data-holiday] header,
html.bs-world-color.bs-white-layers header,
html.bs-world-color.bs-white-layers body[data-holiday] header {
  background-color: rgba(255, 252, 245, 0.58) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: 0 8px 20px rgba(31, 61, 40, 0.06) !important;
  color: #1F3D28 !important;
}

html.bs-world-color nav,
html.bs-world-color html body nav.bs-nav5,
html.bs-world-color body nav.bs-nav5,
html.bs-world-color body[data-holiday] nav,
html.bs-world-color.bs-white-layers nav,
html.bs-world-color.bs-white-layers body nav.bs-nav5,
html.bs-world-color.bs-white-layers body[data-holiday] nav {
  background-color: rgba(255, 252, 245, 0.58) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: 0 -8px 20px rgba(31, 61, 40, 0.06) !important;
}

/* Hairline washes: soft sky / leaf, still fading at the ends, never a black bar */
html.bs-world-color.bs-white-layers header::after,
html.bs-world-color.bs-white-layers body[data-holiday] header::after {
  background: linear-gradient(90deg, transparent, rgba(63, 160, 232, 0.28) 18%, rgba(63, 160, 232, 0.28) 82%, transparent) !important;
}
html.bs-world-color.bs-white-layers body nav.bs-nav5::before {
  background: linear-gradient(90deg, transparent, rgba(47, 107, 58, 0.28) 18%, rgba(47, 107, 58, 0.28) 82%, transparent) !important;
}

/* Duvet floats on the meadow sky — vignette tints to sky, assets unchanged */
html.bs-world-color.bs-white-layers #bsDuvetStage::after {
  background: radial-gradient(ellipse 90% 78% at 50% 48%,
    transparent 58%,
    rgba(142, 207, 240, 0.2) 82%,
    rgba(158, 209, 95, 0.28) 100%) !important;
}

/* ---------- Sunlit cream surfaces, no thick frames ---------- */
html.bs-world-color .card,
html.bs-world-color body[data-holiday] .card,
html.bs-world-color .home-post,
html.bs-world-color .sheet,
html.bs-world-color .bs-sheet,
html.bs-world-color .panel,
html.bs-world-color .rowcard,
html.bs-world-color .tile,
html.bs-world-color .me-prof-card,
html.bs-world-color .ph-group-card,
html.bs-world-color .adm-box,
html.bs-world-color .adm-box-sec,
html.bs-world-color .adm-lock-card,
html.bs-world-color .bs-ann,
html.bs-world-color #authCard,
html.bs-world-color .card#authCard,
html.bs-world-color .vision-hero,
html.bs-world-color .vision-box,
html.bs-world-color .vision-video-wrap,
html.bs-world-color .scbox,
html.bs-world-color .sm-pop,
html.bs-world-color .ownban,
html.bs-world-color .petask,
html.bs-world-color .bhwarn,
html.bs-world-color .shoot,
html.bs-world-color #bsMoreMenu,
html.bs-world-color .wc-fcard,
html.bs-world-color .reels-hub-wrap,
html.bs-world-color .offense-search-box,
html.bs-world-color .offense-pet-row,
html.bs-world-color .clist,
html.bs-world-color .wc-dir-hd,
html.bs-world-color.bs-white-layers .card,
html.bs-world-color.bs-white-layers .home-post,
html.bs-world-color.bs-white-layers .me-prof-card,
html.bs-world-color.bs-white-layers #authCard,
html.bs-world-color.bs-white-layers #bsMoreMenu {
  background-color: rgba(255, 252, 245, 0.92) !important;
  background-image: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: 0 12px 28px rgba(31, 61, 40, 0.08), 0 1px 0 rgba(255, 255, 255, 0.55) inset !important;
  color: #1F3D28;
}

html.bs-world-color .bs-ann,
html.bs-world-color .bhwarn {
  border-left: 0 !important;
}

html.bs-world-color .mute,
html.bs-world-color label,
html.bs-world-color .hint,
html.bs-world-color .terms13,
html.bs-world-color p.terms13,
html.bs-world-color #consent,
html.bs-world-color .vision-sub,
html.bs-world-color p.vision-sub {
  color: #2C4A34 !important;
}

html.bs-world-color h1,
html.bs-world-color h2,
html.bs-world-color h3,
html.bs-world-color .me-prof-card h2 {
  color: #1F3D28;
}

/* Inner fields: sunlit cream, whisper edge */
html.bs-world-color.bs-white-layers .home-post-row textarea,
html.bs-world-color.bs-white-layers .home-post-row input,
html.bs-world-color.bs-white-layers input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=hidden]),
html.bs-world-color.bs-white-layers textarea,
html.bs-world-color.bs-white-layers select,
html.bs-world-color.bs-white-layers .cs-form input,
html.bs-world-color.bs-white-layers .cs-form textarea,
html.bs-world-color.bs-white-layers .cs-form select,
html.bs-world-color.bs-white-layers .irow,
html.bs-world-color.bs-white-layers .offense-search-in {
  background: rgba(255, 252, 245, 0.82) !important;
  border-color: rgba(126, 190, 180, 0.35) !important;
  border-width: 1px !important;
  box-shadow: none !important;
  outline-color: #E8D9A8 !important;
  color: #1F3D28 !important;
}

/* Chips / ghost / icon wells: pale leaf wash */
html.bs-world-color.bs-white-layers .pill:not(.on),
html.bs-world-color.bs-white-layers .mpill:not(.on),
html.bs-world-color.bs-white-layers .mcat-pill:not(.on),
html.bs-world-color.bs-white-layers .btn.ghost,
html.bs-world-color.bs-white-layers a.btn.ghost,
html.bs-world-color.bs-white-layers button.btn.ghost,
html.bs-world-color.bs-white-layers .btn.skip,
html.bs-world-color.bs-white-layers a.btn.skip,
html.bs-world-color.bs-white-layers button.btn.skip,
html.bs-world-color.bs-white-layers .btn.soft,
html.bs-world-color.bs-white-layers .e-earn,
html.bs-world-color.bs-white-layers button.e-earn,
html.bs-world-color.bs-white-layers .cs-earn,
html.bs-world-color.bs-white-layers .me-pet-pill,
html.bs-world-color.bs-white-layers .me-acc-btn,
html.bs-world-color.bs-white-layers .me-acc-btn.danger,
html.bs-world-color.bs-white-layers .vision-pill,
html.bs-world-color.bs-white-layers .fnd-pill,
html.bs-world-color.bs-white-layers .fnd-ban,
html.bs-world-color.bs-white-layers .cat,
html.bs-world-color.bs-white-layers .cat.on,
html.bs-world-color.bs-white-layers button.cat,
html.bs-world-color.bs-white-layers button.cat.on,
html.bs-world-color.bs-white-layers .scope button,
html.bs-world-color.bs-white-layers .tabs button,
html.bs-world-color.bs-white-layers .atabs button:not(.on),
html.bs-world-color.bs-white-layers .bs-ico-btn,
html.bs-world-color.bs-white-layers .bs-ico-btn.solid,
html.bs-world-color.bs-white-layers a.bs-ico-btn,
html.bs-world-color.bs-white-layers button.bs-ico-btn,
html.bs-world-color.bs-white-layers .vision-pillar .vp-ic,
html.bs-world-color.bs-white-layers .bs-ann-ic,
html.bs-world-color .btn.ghost,
html.bs-world-color a.btn.ghost,
html.bs-world-color button.btn.ghost,
html.bs-world-color .btn.skip,
html.bs-world-color .e-earn,
html.bs-world-color button.e-earn,
html.bs-world-color .bs-call-decline,
html.bs-world-color button.bs-call-decline {
  background: rgba(216, 239, 232, 0.88) !important;
  background-image: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent !important;
  border-width: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: #1F3D28 !important;
}

html.bs-world-color .av,
html.bs-world-color .av.lg,
html.bs-world-color .home-post-av .av,
html.bs-world-color .me-pet-pill .av {
  border: 0 !important;
  box-shadow: none !important;
}

html.bs-world-color.bs-white-layers .me-row,
html.bs-world-color.bs-white-layers .me-account,
html.bs-world-color.bs-white-layers .me-acc-h,
html.bs-world-color.bs-white-layers .home-post-opts {
  border-color: transparent !important;
  border-top-color: transparent !important;
  background-image: linear-gradient(90deg, transparent 0%, rgba(47, 107, 58, 0.18) 16%, rgba(47, 107, 58, 0.18) 84%, transparent 100%) !important;
  background-size: 100% 1px !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
}

/* ---------- Primary fills: sunlit leaf green, white type, same geometry ---------- */
html.bs-world-color .btn,
html.bs-world-color a.btn,
html.bs-world-color button.btn,
html.bs-world-color .btn.full,
html.bs-world-color .btn.sm,
html.bs-world-color header .btn,
html.bs-world-color header a.btn,
html.bs-world-color .home-post .btn,
html.bs-world-color .cs-btn,
html.bs-world-color #csOwnerForm .cs-btn,
html.bs-world-color .e-find,
html.bs-world-color button.e-find,
html.bs-world-color .symChip.on,
html.bs-world-color .pill.on,
html.bs-world-color .mpill.on,
html.bs-world-color .mcat-pill.on,
html.bs-world-color .offense-pill.on,
html.bs-world-color .offense-fpill.on,
html.bs-world-color .scope button.on,
html.bs-world-color .tabs button.on,
html.bs-world-color .reels-spill.on,
html.bs-world-color .reels-mtab.on,
html.bs-world-color .wc-dir-tab.on,
html.bs-world-color .wc-fact-btn.on,
html.bs-world-color .crypto-tok-pill.on,
html.bs-world-color .bs-call-accept,
html.bs-world-color button.bs-call-accept,
html.bs-world-color.bs-white-layers body .btn:not(.ghost):not(.skip),
html.bs-world-color.bs-white-layers body a.btn:not(.ghost):not(.skip),
html.bs-world-color.bs-white-layers body button.btn:not(.ghost):not(.skip),
html.bs-world-color.bs-white-layers body .btn.sm:not(.ghost):not(.skip),
html.bs-world-color.bs-white-layers body header .btn:not(.ghost):not(.skip),
html.bs-world-color.bs-white-layers body header a.btn:not(.ghost):not(.skip),
html.bs-world-color.bs-white-layers body .home-post .btn:not(.ghost):not(.skip),
html.bs-world-color.bs-white-layers body .reels-dash-btn,
html.bs-world-color.bs-white-layers body .reels-mtab.on,
html.bs-world-color.bs-white-layers body .reels-spill.on,
html.bs-world-color.bs-white-layers body .pill.on,
html.bs-world-color.bs-white-layers body .offense-pill.on,
html.bs-world-color.bs-white-layers body .offense-fpill.on,
html.bs-world-color.bs-white-layers body .wc-fact-btn.on,
html.bs-world-color.bs-white-layers body .wc-dir-tab.on,
html.bs-world-color.bs-white-layers body .mpill.on,
html.bs-world-color.bs-white-layers body .mcat-pill.on,
html.bs-world-color.bs-white-layers body .symChip.on,
html.bs-world-color.bs-white-layers body .ph-az-btn.on,
html.bs-world-color.bs-white-layers body .cs-btn,
html.bs-world-color.bs-white-layers body .e-find,
html.bs-world-color.bs-white-layers body button.e-find,
html.bs-world-color.bs-white-layers body .cs-find .ic,
html.bs-world-color.bs-white-layers body label.home-cam,
html.bs-world-color.bs-white-layers body .home-cam,
html.bs-world-color.bs-white-layers body .bs-call-accept,
html.bs-world-color.bs-white-layers body button.bs-call-accept,
html.bs-world-color.bs-white-layers body .atabs button.on,
html.bs-world-color.bs-white-layers body #tUp.on,
html.bs-world-color.bs-white-layers body #tIn.on,
html.bs-world-color.bs-white-layers body .bs-of-pk.on {
  background: #2F6B3A !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border-color: #2F6B3A !important;
  box-shadow: 0 4px 12px rgba(31, 61, 40, 0.16) !important;
}

/* Map FAB: same 52px / 50% / 4px white ring, leaf-green fill */
html.bs-world-color body nav.bs-nav5 a.bs-nav-map b,
html.bs-world-color nav.bs-nav5 a.bs-nav-map b,
html.bs-world-color.bs-white-layers body nav.bs-nav5 a.bs-nav-map b {
  background: #2F6B3A !important;
  background-image: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(31, 61, 40, 0.18), 0 0 0 4px #fff !important;
}
html.bs-world-color body nav.bs-nav5 a.bs-nav-map b svg,
html.bs-world-color.bs-white-layers body nav.bs-nav5 a.bs-nav-map b svg {
  stroke: #FFFFFF !important;
}

html.bs-world-color body nav.bs-nav5 a.on::after,
html.bs-world-color nav a.on::after,
html.bs-world-color.bs-white-layers body nav.bs-nav5 a.on::after,
html.bs-world-color body[data-holiday] nav a.on::after {
  background: #2F6B3A !important;
}

html.bs-world-color body[data-holiday] nav a.on {
  color: #1F3D28 !important;
  background: transparent !important;
}

html.bs-world-color.bs-white-layers body nav.bs-nav5 a:not(.bs-nav-map) svg {
  stroke: #2F6B3A !important;
}
html.bs-world-color.bs-white-layers body nav.bs-nav5 a.on:not(.bs-nav-map) svg {
  stroke: #1F3D28 !important;
}
html.bs-world-color.bs-white-layers .hd-ico-btn svg,
html.bs-world-color.bs-white-layers .bs-ico-btn svg {
  stroke: #2F6B3A !important;
}

html.bs-world-color.bs-white-layers body .bs-mini-bdg,
html.bs-world-color.bs-white-layers body #notifBellBadge,
html.bs-world-color.bs-white-layers body .notif-bdg,
html.bs-world-color.bs-white-layers body .notif-udot,
html.bs-world-color.bs-white-layers body span.bs-mini-bdg,
html.bs-world-color.bs-white-layers body .bs-ico-btn .bs-mini-bdg {
  background: #2F6B3A !important;
  color: #FFFFFF !important;
  border-color: #2F6B3A !important;
}

/* Official chrome bitmaps may bloom into color in this world; user media & nose stay as they are */
html.bs-world-color img[src*="media/care/"],
html.bs-world-color img[src*="/media/care/"],
html.bs-world-color img[src*="media/holiday"],
html.bs-world-color img[src*="media/thanks"],
html.bs-world-color img[src*="media/christmas"],
html.bs-world-color img[src*="media/halloween"] {
  filter: none !important;
}

/* UI emoji become color again in the color world */
html.bs-world-color .bs-ink-emo,
html.bs-world-color .vision-pill,
html.bs-world-color .fnd-pill,
html.bs-world-color .fnd-ban,
html.bs-world-color .vision-slogan,
html.bs-world-color .vision-pillar .vp-ic,
html.bs-world-color .bs-ann-tx,
html.bs-world-color .bs-ann-ic,
html.bs-world-color .av:not(:has(img)),
html.bs-world-color .fb-vbdg,
html.bs-world-color .x-cm-qemo,
html.bs-world-color .msg-fav-pill,
html.bs-world-color .mtile-fav,
html.bs-world-color .shkhint .shkico {
  filter: none !important;
}

/* User media, color Corgi, and the nose mark — never restyle filters here.
   The existing img.dnose rule (greyscale official mark) stays in force. */
html.bs-world-color video.bs-post-vid,
html.bs-world-color img.photo,
html.bs-world-color .photo,
html.bs-world-color .funny-media img,
html.bs-world-color .funny-media video,
html.bs-world-color .home-post img:not(.dnose),
html.bs-world-color .home-post video,
html.bs-world-color .vision-video-wrap img,
html.bs-world-color .vision-video-wrap video,
html.bs-world-color .av img,
html.bs-world-color .album-cell img,
html.bs-world-color .bizph,
html.bs-world-color .me-pet-pill img,
html.bs-world-color .ncard img,
html.bs-world-color .bs-live-pin img,
html.bs-world-color .mimg,
html.bs-world-color .cmimg,
html.bs-world-color .tk-thumb img,
html.bs-world-color .ph-fav img,
html.bs-world-color .media-stage-wrap img:not(.dnose),
html.bs-world-color .media-stage-wrap video,
html.bs-world-color .bs-pup-color,
html.bs-world-color #bsPupColor,
html.bs-world-color img.bs-pup-color,
html.bs-world-color #headColor,
html.bs-world-color #headColor img {
  filter: none !important;
}

html.bs-world-color body .bs-duvet-cta,
html.bs-world-color body #bsDuvetCta,
html.bs-world-color.bs-white-layers body .bs-duvet-cta,
html.bs-world-color.bs-white-layers body #bsDuvetCta {
  border: 0 !important;
  background: rgba(255, 252, 245, 0.92) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #1F3D28 !important;
  box-shadow: 0 8px 20px rgba(31, 61, 40, 0.08) !important;
}

/* ---------- Display setting (Me) ---------- */
html .bs-display-panel {
  padding: 10px 4px 4px;
}
html .bs-display-panel .me-acc-h {
  margin-bottom: 8px;
}
html .bs-display-toggle {
  display: flex;
  gap: 8px;
}
html .bs-display-toggle button {
  flex: 1;
  min-height: 36px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  background: #EEEEEC;
  color: #3F3A36;
}
html.bs-world-color .bs-display-toggle button {
  background: rgba(216, 239, 232, 0.7);
  color: #1F3D28;
}
html .bs-display-toggle button[aria-checked="true"] {
  background: #3F3A36;
  color: #fff;
}
html.bs-world-color .bs-display-toggle button[aria-checked="true"] {
  background: #2F6B3A;
  background-image: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 61, 40, 0.16);
}

/* ---------- Dorothy bloom (ink-wash turning to color) ---------- */
#bsDorothy {
  position: fixed;
  inset: 0;
  z-index: 20000;
  pointer-events: none;
  overflow: hidden;
}
#bsDorothy .bs-dorothy-veil {
  position: absolute;
  inset: 0;
  background: rgba(243, 242, 240, 0.14);
  -webkit-backdrop-filter: grayscale(1) contrast(1.08) brightness(1.03);
  backdrop-filter: grayscale(1) contrast(1.08) brightness(1.03);
  -webkit-mask-image: radial-gradient(circle at var(--dx, 50%) var(--dy, 12%),
    transparent var(--r, 0px),
    rgba(0,0,0,0.22) calc(var(--r, 0px) + 36px),
    rgba(0,0,0,0.8) calc(var(--r, 0px) + 78px),
    #000 calc(var(--r, 0px) + 120px));
  mask-image: radial-gradient(circle at var(--dx, 50%) var(--dy, 12%),
    transparent var(--r, 0px),
    rgba(0,0,0,0.22) calc(var(--r, 0px) + 36px),
    rgba(0,0,0,0.8) calc(var(--r, 0px) + 78px),
    #000 calc(var(--r, 0px) + 120px));
}
#bsDorothy .bs-dorothy-edge {
  position: absolute;
  left: var(--dx, 50%);
  top: var(--dy, 12%);
  width: calc(var(--r, 0px) * 2);
  height: calc(var(--r, 0px) * 2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 10px rgba(255, 217, 122, 0.28),
    0 0 36px 16px rgba(143, 208, 245, 0.35),
    0 0 64px 28px rgba(255, 252, 245, 0.2);
  pointer-events: none;
}
#bsDorothy .bs-dorothy-rings {
  position: absolute;
  left: var(--dx, 50%);
  top: var(--dy, 12%);
  width: 0;
  height: 0;
}
#bsDorothy .bs-dorothy-rings i {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  border-style: solid;
  border-color: #3FA0E8;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.15);
}
#bsDorothy .bs-dorothy-rings i:nth-child(1) { border-width: 10px; border-color: rgba(143, 208, 245, 0.8); }
#bsDorothy .bs-dorothy-rings i:nth-child(2) { border-width: 8px; border-color: rgba(255, 217, 122, 0.8); }
#bsDorothy .bs-dorothy-rings i:nth-child(3) { border-width: 7px; border-color: rgba(95, 168, 74, 0.7); }
#bsDorothy.bs-dorothy-play .bs-dorothy-veil {
  animation: bsDorothyVeil 1.5s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}
#bsDorothy.bs-dorothy-play .bs-dorothy-rings i:nth-child(1) {
  animation: bsDorothyRing 1.5s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}
#bsDorothy.bs-dorothy-play .bs-dorothy-rings i:nth-child(2) {
  animation: bsDorothyRing 1.5s cubic-bezier(0.22, 0.7, 0.2, 1) 0.12s forwards;
}
#bsDorothy.bs-dorothy-play .bs-dorothy-rings i:nth-child(3) {
  animation: bsDorothyRing 1.5s cubic-bezier(0.22, 0.7, 0.2, 1) 0.24s forwards;
}
@keyframes bsDorothyVeil {
  0%   { opacity: 1; }
  86%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes bsDorothyRing {
  0%   { width: 24px; height: 24px; opacity: 0.9; transform: translate(-50%, -50%) scale(0.2); }
  70%  { opacity: 0.45; }
  100% { width: 70vmax; height: 70vmax; opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #bsDorothy { display: none !important; }
}


/* bs-lineart-bg-v1: static V1 landscape; cloud / mote / breeze motion removed. */
html.bs-world-color #bsWorldPaint {
  /* bs-lineart-bg-v1: color world uses the 淡彩 plate; guests use line-art V1.
     former art: bs-world-paint.svg (file kept on disk, not drawn). */
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #F3EFE2;
  background-image: url("media/bg/lineart-V1-dancai.jpg"); /* fallback: browsers without image-set type() keep the JPG */
  background-image: -webkit-image-set(url("media/bg/lineart-V1-dancai.webp") type("image/webp"), url("media/bg/lineart-V1-dancai.jpg") type("image/jpeg"));
  background-image: image-set(url("media/bg/lineart-V1-dancai.webp") type("image/webp"), url("media/bg/lineart-V1-dancai.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
/* header stays sticky, nav stays fixed (z-index 900 already). Paint layer is z-index 0. */
html.bs-world-color #app {
  position: relative;
  z-index: 1;
}


/* bs-lineart-bg-v1: no .bs-world-cloud-drift / motes / breeze rules. */


/* bs-lineart-bg-v1: V1 pine / hut lines were showing through Friend Requests. */
html.bs-world-color #twoWayStatusCard {
  background-color: #FFFCF5 !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  html.bs-world-color header,
  html.bs-world-color body[data-holiday] header,
  html.bs-world-color.bs-white-layers header,
  html.bs-world-color nav,
  html.bs-world-color body nav.bs-nav5,
  html.bs-world-color.bs-white-layers nav,
  html.bs-world-color.bs-white-layers body nav.bs-nav5 {
    background-color: rgba(255, 252, 245, 0.88) !important;
  }
  html.bs-world-color .card,
  html.bs-world-color .home-post,
  html.bs-world-color .sheet,
  html.bs-world-color .panel,
  html.bs-world-color .me-prof-card,
  html.bs-world-color.bs-white-layers .card,
  html.bs-world-color.bs-white-layers .home-post,
  html.bs-world-color.bs-white-layers .me-prof-card {
    background-color: rgba(255, 252, 245, 0.9) !important;
  }
}

/* v79: OSM tiles regain full color in the registered "With color" world.
   Avatars/user photos on the map stay full color in every mode. */
html.bs-world-color .bs-live-ov .leaflet-tile-pane,
html.bs-world-color .leaflet-tile-pane{
  filter: none !important;
  -webkit-filter: none !important;
}
.bs-live-pin img,
html.bs-world-color .bs-live-pin img,
html:not(.bs-world-color) .bs-live-pin img{
  filter: none !important;
  -webkit-filter: none !important;
}
