/* Seasonal decorations are confined to the interface around the artwork. */
html[data-season="christmas"] {
  --season-ink: #83334e;
  --season-soft: #e8f4eb;
  --season-paper: #f8eff7;
  --season-line: #dec8d8;
  --season-trim: url("/seasons/christmas.svg");
}
html[data-season="new-year"] {
  --season-ink: #293465;
  --season-soft: #eae8ff;
  --season-paper: #fff4f3;
  --season-line: #d9c68e;
  --season-trim: url("/seasons/new-year.svg");
}
html[data-season="cny"] {
  --season-ink: #952e3e;
  --season-soft: #fff0e7;
  --season-paper: #fff7ef;
  --season-line: #ecc5ad;
  --season-trim: url("/seasons/cny.svg");
}
html[data-season="raya"] {
  --season-ink: #21644e;
  --season-soft: #e1f2e8;
  --season-paper: #fff8e9;
  --season-line: #bed9bd;
  --season-trim: url("/seasons/raya.svg");
}
html[data-season="merdeka"] {
  --season-ink: #273d7a;
  --season-soft: #e7effb;
  --season-paper: #fff0f0;
  --season-line: #d0d6eb;
  --season-trim: url("/seasons/merdeka.svg");
}

html[data-season] :is(.site-header, .mw-world-header, .top-bar, .topbar, body > header) {
  background-color: var(--season-paper);
  border-bottom: 3px solid var(--season-line);
  border-image: none;
}
html[data-season] :is(.site-footer, body > footer, .workspace-foot) {
  background: var(--season-trim) left top / 96px 20px repeat-x, var(--season-soft);
  padding-top: max(28px, 2em);
}
html[data-season] :is(.rd-hero, .fd-welcome, .gu-start-depth, .hero-content) {
  background-color: var(--season-paper);
}
html[data-season] :is(.rd-hero, .fd-panel, .gu-start-depth, .hero-content)::before {
  content: "";
  display: block;
  width: min(100%, 12rem);
  height: 20px;
  background: var(--season-trim) left top / 96px 20px repeat-x;
  pointer-events: none;
}
html[data-season] .rd-hero::before { position: absolute; inset: 0 auto auto 1rem; }
html[data-season] .rd-hero { position: relative; padding-top: max(24px, 2.5rem); }
html[data-season] :is(.rd, .family-door, .gu-family-panel) { background-color: var(--season-paper); }
html[data-season] :is(.fd-panel, .fd-card, .gu-start-door, .rd-panel) { border-color: var(--season-line); }
html[data-season] :is(.gu-start-door.lite, .fd-card[aria-current="true"]) { background-color: var(--season-soft); }
html[data-season] .gu-start-door.advanced { background-color: var(--season-paper); }
html[data-season] :is(.button-primary, .fd-primary) { background: var(--season-ink); color: white; }
html[data-season] :is(.rd h1, .fd-heading, .gu-start-depth-title, .hero h1) { color: var(--season-ink); }
html[data-season] :is(.top-bar, .topbar, .tab-bar) { box-shadow: inset 0 -2px var(--season-line); }
html[data-season] .tab-bar button.active { background: var(--season-soft); color: var(--season-ink); }
html[data-season] .wait-window::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 20px;
  background: var(--season-trim) center / 96px 20px repeat-x;
}
html[data-season] .mob-wait .wait-readout { background: var(--season-soft); color: var(--season-ink); }
html[data-season] body { box-shadow: inset 0 4px var(--season-line); }

html[data-season] .hero-stage {
  background-color: var(--season-paper);
}
html[data-season] .hero-content {
  background: linear-gradient(135deg, var(--season-paper), var(--season-soft));
}
html[data-season] :is(.top-bar, .topbar) {
  background-image: var(--season-trim);
  background-size: 96px 12px;
  background-repeat: repeat-x;
  background-position: left bottom;
}
html[data-season] body.season-standalone {
  border-top: 20px solid transparent;
  border-image: var(--season-trim) 20 0 0 / 20px 0 0 repeat;
}
html[data-season] .hero .eyebrow .holiday-caption { display: inline; }
html[data-season] .hero .eyebrow .everyday-caption { display: none; }

html[data-season="christmas"] {
  --festive-blocks: url("/seasons/christmas/art/blocks.webp");
  --festive-brush: url("/seasons/christmas/art/brush.webp");
  --festive-build-blocks: url("/seasons/christmas/art/build-blocks.webp");
  --festive-challenge-mascot: url("/seasons/christmas/art/challenge-mascot.webp");
  --festive-clapper: url("/seasons/christmas/art/clapper.webp");
  --festive-dragon: url("/seasons/christmas/art/dragon.webp");
  --festive-octopus: url("/seasons/christmas/art/octopus.webp");
  --festive-portal: url("/seasons/christmas/art/portal.webp");
  --festive-sheep: url("/seasons/christmas/art/sheep.webp");
  --festive-turtle: url("/seasons/christmas/art/turtle.webp");
  --festive-universe-island: url("/seasons/christmas/art/universe-island.webp");
  --festive-windmill: url("/seasons/christmas/art/windmill.webp");
  --festive-floating-island: url("/seasons/christmas/art/floating-island.webp");
  --festive-flying-squid: url("/seasons/christmas/art/flying-squid.webp");
  --festive-j-chest: url("/seasons/christmas/art/j-chest.webp");
  --festive-j-sotong-blue: url("/seasons/christmas/art/j-sotong-blue.webp");
  --festive-j-sotong-wiz: url("/seasons/christmas/art/j-sotong-wiz.webp");
  --festive-mobloom-mascot: url("/seasons/christmas/art/mobloom-mascot.webp");
  --festive-sotong-angry: url("/seasons/christmas/art/sotong-angry.webp");
  --festive-sotong-attack: url("/seasons/christmas/art/sotong-attack.webp");
  --festive-sotong-both: url("/seasons/christmas/art/sotong-both.webp");
  --festive-sotong-curious: url("/seasons/christmas/art/sotong-curious.webp");
  --festive-sotong-focused: url("/seasons/christmas/art/sotong-focused.webp");
  --festive-sotong-ghost: url("/seasons/christmas/art/sotong-ghost.webp");
  --festive-sotong-grumpy: url("/seasons/christmas/art/sotong-grumpy.webp");
  --festive-sotong-happy: url("/seasons/christmas/art/sotong-happy.webp");
  --festive-sotong-land: url("/seasons/christmas/art/sotong-land.webp");
  --festive-sotong-motion: url("/seasons/christmas/art/sotong-motion.webp");
  --festive-sotong-peaceful: url("/seasons/christmas/art/sotong-peaceful.webp");
  --festive-sotong-rescue: url("/seasons/christmas/art/sotong-rescue.webp");
  --festive-sotong-sky: url("/seasons/christmas/art/sotong-sky.webp");
  --festive-sotong-stays: url("/seasons/christmas/art/sotong-stays.webp");
  --festive-sotong-water: url("/seasons/christmas/art/sotong-water.webp");
  --festive-choose-block: url("/seasons/christmas/art/choose-block.webp");
  --festive-choose-creature: url("/seasons/christmas/art/choose-creature.webp");
  --festive-choose-item: url("/seasons/christmas/art/choose-item.webp");
  --festive-choose-world: url("/seasons/christmas/art/choose-world.webp");
  --festive-tab-code: url("/seasons/christmas/art/tab-code.webp");
  --festive-tab-create: url("/seasons/christmas/art/tab-create.webp");
  --festive-tab-draw: url("/seasons/christmas/art/tab-draw.webp");
  --festive-tab-minecraft: url("/seasons/christmas/art/tab-minecraft.webp");
  --festive-tab-move: url("/seasons/christmas/art/tab-move.webp");
  --festive-tab-test: url("/seasons/christmas/art/tab-test.webp");
  --festive-paint-brush: url("/seasons/christmas/art/paint-brush.webp");
  --festive-ocean-mobile: url("/seasons/christmas/art/ocean-mobile.webp");
  --festive-ocean: url("/seasons/christmas/art/ocean.webp");
  --festive-treehouse: url("/seasons/christmas/art/treehouse.webp");
  --festive-wordmark: url("/seasons/christmas/art/mobloom-christmas-wordmark.webp");
}

html[data-season="new-year"] {
  --festive-blocks: url("/seasons/new-year/art/blocks.webp");
  --festive-brush: url("/seasons/new-year/art/brush.webp");
  --festive-build-blocks: url("/seasons/new-year/art/build-blocks.webp");
  --festive-challenge-mascot: url("/seasons/new-year/art/challenge-mascot.webp");
  --festive-clapper: url("/seasons/new-year/art/clapper.webp");
  --festive-dragon: url("/seasons/new-year/art/dragon.webp");
  --festive-octopus: url("/seasons/new-year/art/octopus.webp");
  --festive-portal: url("/seasons/new-year/art/portal.webp");
  --festive-sheep: url("/seasons/new-year/art/sheep.webp");
  --festive-turtle: url("/seasons/new-year/art/turtle.webp");
  --festive-universe-island: url("/seasons/new-year/art/universe-island.webp");
  --festive-windmill: url("/seasons/new-year/art/windmill.webp");
  --festive-floating-island: url("/seasons/new-year/art/floating-island.webp");
  --festive-flying-squid: url("/seasons/new-year/art/flying-squid.webp");
  --festive-j-chest: url("/seasons/new-year/art/j-chest.webp");
  --festive-j-sotong-blue: url("/seasons/new-year/art/j-sotong-blue.webp");
  --festive-j-sotong-wiz: url("/seasons/new-year/art/j-sotong-wiz.webp");
  --festive-mobloom-mascot: url("/seasons/new-year/art/mobloom-mascot.webp");
  --festive-sotong-angry: url("/seasons/new-year/art/sotong-angry.webp");
  --festive-sotong-attack: url("/seasons/new-year/art/sotong-attack.webp");
  --festive-sotong-both: url("/seasons/new-year/art/sotong-both.webp");
  --festive-sotong-curious: url("/seasons/new-year/art/sotong-curious.webp");
  --festive-sotong-focused: url("/seasons/new-year/art/sotong-focused.webp");
  --festive-sotong-ghost: url("/seasons/new-year/art/sotong-ghost.webp");
  --festive-sotong-grumpy: url("/seasons/new-year/art/sotong-grumpy.webp");
  --festive-sotong-happy: url("/seasons/new-year/art/sotong-happy.webp");
  --festive-sotong-land: url("/seasons/new-year/art/sotong-land.webp");
  --festive-sotong-motion: url("/seasons/new-year/art/sotong-motion.webp");
  --festive-sotong-peaceful: url("/seasons/new-year/art/sotong-peaceful.webp");
  --festive-sotong-rescue: url("/seasons/new-year/art/sotong-rescue.webp");
  --festive-sotong-sky: url("/seasons/new-year/art/sotong-sky.webp");
  --festive-sotong-stays: url("/seasons/new-year/art/sotong-stays.webp");
  --festive-sotong-water: url("/seasons/new-year/art/sotong-water.webp");
  --festive-choose-block: url("/seasons/new-year/art/choose-block.webp");
  --festive-choose-creature: url("/seasons/new-year/art/choose-creature.webp");
  --festive-choose-item: url("/seasons/new-year/art/choose-item.webp");
  --festive-choose-world: url("/seasons/new-year/art/choose-world.webp");
  --festive-tab-code: url("/seasons/new-year/art/tab-code.webp");
  --festive-tab-create: url("/seasons/new-year/art/tab-create.webp");
  --festive-tab-draw: url("/seasons/new-year/art/tab-draw.webp");
  --festive-tab-minecraft: url("/seasons/new-year/art/tab-minecraft.webp");
  --festive-tab-move: url("/seasons/new-year/art/tab-move.webp");
  --festive-tab-test: url("/seasons/new-year/art/tab-test.webp");
  --festive-paint-brush: url("/seasons/new-year/art/paint-brush.webp");
  --festive-ocean-mobile: url("/seasons/new-year/art/ocean-mobile.webp");
  --festive-ocean: url("/seasons/new-year/art/ocean.webp");
  --festive-treehouse: url("/seasons/new-year/art/treehouse.webp");
  --festive-wordmark: url("/seasons/new-year/art/wordmark.webp");
}

html[data-season="new-year"] {
  --overview-world: url("/seasons/new-year/art/hero.webp");
  --challenge-skyline: url("/seasons/new-year/art/skyline.svg");
}

/* Seasonal illustrations for Mobloom-owned interface artwork. */
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/blocks.webp"] {
  content: var(--festive-blocks);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/brush.webp"] {
  content: var(--festive-brush);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/build-blocks.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/345cab1882e5/assets/build-blocks.png"] {
  content: var(--festive-build-blocks);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/challenge-mascot.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/345cab1882e5/assets/challenge-mascot.png"] {
  content: var(--festive-challenge-mascot);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/clapper.webp"] {
  content: var(--festive-clapper);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/dragon.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/family-world/dragon.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/345cab1882e5/assets/dragon.png"] {
  content: var(--festive-dragon);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/octopus.png"] {
  content: var(--festive-octopus);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/portal.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/345cab1882e5/assets/portal.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/b84817b2dc47/assets/portal.png"] {
  content: var(--festive-portal);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/sheep.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/15bb1a95f597/assets/sheep.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/345cab1882e5/assets/sheep.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/b84817b2dc47/assets/sheep.png"] {
  content: var(--festive-sheep);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/turtle.png"] {
  content: var(--festive-turtle);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/universe-island.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/15bb1a95f597/assets/universe-island.png"] {
  content: var(--festive-universe-island);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/approved-home/assets/windmill.webp"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/family-world/windmill.webp"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/15bb1a95f597/assets/windmill.webp"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/345cab1882e5/assets/windmill.webp"] {
  content: var(--festive-windmill);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/family-world/floating-island.png"],
html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/345cab1882e5/assets/floating-island.png"] {
  content: var(--festive-floating-island);
}

html:is([data-season="christmas"], [data-season="new-year"]) img.gu-world-squid[src="/hello/flying-squid.webp"] {
  content: var(--festive-flying-squid);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/hello/j-chest.png"] {
  content: var(--festive-j-chest);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/hello/j-sotong-blue.png"] {
  content: var(--festive-j-sotong-blue);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/hello/j-sotong-wiz.png"] {
  content: var(--festive-j-sotong-wiz);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/mobloom-mascot.png"] {
  content: var(--festive-mobloom-mascot);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-angry.png"] {
  content: var(--festive-sotong-angry);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-attack.png"] {
  content: var(--festive-sotong-attack);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-both.png"] {
  content: var(--festive-sotong-both);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-curious.png"] {
  content: var(--festive-sotong-curious);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-focused.png"] {
  content: var(--festive-sotong-focused);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-ghost.png"] {
  content: var(--festive-sotong-ghost);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-grumpy.png"] {
  content: var(--festive-sotong-grumpy);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-happy.png"] {
  content: var(--festive-sotong-happy);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-land.png"] {
  content: var(--festive-sotong-land);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-motion.png"] {
  content: var(--festive-sotong-motion);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-peaceful.png"] {
  content: var(--festive-sotong-peaceful);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-rescue.png"] {
  content: var(--festive-sotong-rescue);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-sky.png"] {
  content: var(--festive-sotong-sky);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-stays.png"] {
  content: var(--festive-sotong-stays);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/sotong-water.png"] {
  content: var(--festive-sotong-water);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/start/choose-block.png"] {
  content: var(--festive-choose-block);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/start/choose-creature.png"] {
  content: var(--festive-choose-creature);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/start/choose-item.png"] {
  content: var(--festive-choose-item);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/start/choose-world.png"] {
  content: var(--festive-choose-world);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/tab-code.png"] {
  content: var(--festive-tab-code);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/tab-create.png"] {
  content: var(--festive-tab-create);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/tab-draw.png"] {
  content: var(--festive-tab-draw);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/tab-minecraft.png"] {
  content: var(--festive-tab-minecraft);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/tab-move.png"] {
  content: var(--festive-tab-move);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/tab-test.png"] {
  content: var(--festive-tab-test);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-drafts/b84817b2dc47/assets/paint-brush.png"] {
  content: var(--festive-paint-brush);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-pages/ocean-mobile.webp"] {
  content: var(--festive-ocean-mobile);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-pages/ocean.webp"] {
  content: var(--festive-ocean);
}

html:is([data-season="christmas"], [data-season="new-year"]) img[src="/world-pages/treehouse.webp"] {
  content: var(--festive-treehouse);
}

@media (max-width: 720px) {
  html:is([data-season="christmas"], [data-season="new-year"]) picture > img[src="/family-world/floating-island.png"] {
    content: var(--festive-windmill);
  }
}

html:is([data-season="christmas"], [data-season="new-year"]) .mob-wait {
  --art: var(--festive-octopus);
}

html:is([data-season="christmas"], [data-season="new-year"]) .mob-wait[data-scene="1"] {
  --art: var(--festive-turtle);
}

html:is([data-season="christmas"], [data-season="new-year"]) .mob-wait[data-scene="2"] {
  --art: var(--festive-dragon);
}

/* Keep the festive lockup inside the standard wordmark slot. */
html:is([data-season="christmas"], [data-season="new-year"]) img:is([src$="/mobloom-wordmark.png"], [src="/mobloom-wordmark.svg"], [src="/hello/mobloom-wordmark-400.webp"], [src="/hello/mobloom-wordmark-400.png"]) {
  content: var(--festive-wordmark);
  object-fit: contain;
}

