#themeInteractionLayer {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  contain: layout style;
}

#themeInteractionLayer.is-empty {
  display: none;
}

.theme-pass {
  position: absolute;
  top: var(--y, 50%);
  left: 0;
  width: var(--size, 90px);
  height: auto;
  opacity: var(--opacity, .45);
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.26));
  will-change: transform;
  animation: themePassRight var(--dur, 18s) linear var(--delay, 0s) infinite;
}

.theme-pass.dir-left {
  right: 0;
  left: auto;
  animation-name: themePassLeft;
}

.theme-pass.is-near {
  filter: drop-shadow(0 0 18px rgba(255,255,255,.22)) drop-shadow(0 8px 18px rgba(0,0,0,.28));
}

.theme-cloud {
  opacity: .32;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.14));
}

.theme-bob {
  animation-timing-function: linear;
}

@keyframes themePassRight {
  0% { transform: translate3d(-18vw, 0, 0) translateY(0); }
  25% { transform: translate3d(16vw, -8px, 0); }
  50% { transform: translate3d(52vw, 7px, 0); }
  75% { transform: translate3d(86vw, -5px, 0); }
  100% { transform: translate3d(118vw, 0, 0); }
}

@keyframes themePassLeft {
  0% { transform: translate3d(18vw, 0, 0); }
  25% { transform: translate3d(-16vw, 8px, 0); }
  50% { transform: translate3d(-52vw, -6px, 0); }
  75% { transform: translate3d(-86vw, 5px, 0); }
  100% { transform: translate3d(-118vw, 0, 0); }
}

.theme-pop {
  position: fixed;
  left: var(--x, 50vw);
  top: var(--y, 50vh);
  width: var(--s, 18px);
  height: var(--s, 18px);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: themePop .9s ease-out forwards;
}

@keyframes themePop {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.45); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -50px))) scale(1.35); }
}

.theme-minecraft .theme-pop {
  border-radius: 5px;
  background: linear-gradient(180deg, #78c850, #3f8d30 60%, #6b4a27);
  box-shadow: inset 0 2px rgba(255,255,255,.24), 0 0 14px rgba(126,226,111,.26);
}

.theme-ocean .theme-pop {
  border: 2px solid rgba(165,243,252,.72);
  background: rgba(14,165,233,.16);
  box-shadow: inset 0 0 12px rgba(236,254,255,.28), 0 0 20px rgba(103,232,249,.28);
}

.theme-fire .theme-pop {
  border-radius: 58% 42% 52% 48%;
  background: radial-gradient(circle at 50% 78%, #fef3c7 0 12%, #f97316 24%, #b91c1c 60%, transparent 68%);
  box-shadow: 0 0 22px rgba(249,115,22,.55);
}

.theme-cherry-grove .theme-pop {
  border-radius: 68% 32% 62% 38%;
  background: radial-gradient(circle at 35% 30%, #fff1f8 0 12%, #f9a8d4 38%, #fb7185 64%, transparent 70%);
  box-shadow: 0 0 18px rgba(249,168,212,.36);
}

.theme-ocean-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid rgba(165,243,252,.28);
  background: radial-gradient(circle, rgba(236,254,255,.14), transparent 62%);
  opacity: 0;
  transform: translate3d(calc(var(--cursor-x, -200px) - 48px), calc(var(--cursor-y, -200px) - 48px), 0);
  transition: opacity .18s ease;
}

.theme-ocean.has-pointer .theme-ocean-cursor {
  opacity: .95;
}

.theme-fire-ember,
.theme-cherry-petal,
.theme-redstone-spark {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--s, 6px);
  height: var(--s, 6px);
  pointer-events: none;
  opacity: var(--opacity, .7);
  will-change: transform, opacity;
}

.theme-fire-ember {
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 14px #f97316, 0 0 28px rgba(239,68,68,.38);
  animation: emberRise var(--dur, 6s) ease-in var(--delay, 0s) infinite;
}

@keyframes emberRise {
  0% { opacity: 0; transform: translate3d(0, 42vh, 0) scale(.6); }
  12% { opacity: var(--opacity, .75); }
  100% { opacity: 0; transform: translate3d(var(--drift, 20px), -42vh, 0) scale(1.25); }
}

.theme-cherry-petal {
  border-radius: 70% 30% 70% 30%;
  background: #f9a8d4;
  box-shadow: 0 0 12px rgba(249,168,212,.26);
  animation: petalDrift var(--dur, 9s) linear var(--delay, 0s) infinite;
}

@keyframes petalDrift {
  0% { opacity: 0; transform: translate3d(0, -18vh, 0) rotate(0deg); }
  12% { opacity: var(--opacity, .65); }
  100% { opacity: 0; transform: translate3d(var(--drift, -90px), 110vh, 0) rotate(420deg); }
}

html.site-theme-redstone-lab {
  --rs-tex-stone: url("/assets/theme-redstone-cc0-stone.png");
  --rs-tex-cobble: url("/assets/theme-redstone-cc0-cobblestone.png");
  --rs-tex-steel: url("/assets/theme-redstone-cc0-steel-block.png");
  --rs-tex-glow: url("/assets/theme-redstone-cc0-glowstone.png");
  --rs-tex-rack: url("/assets/theme-redstone-cc0-nether-rack.png");
  --rs-tex-mese: url("/assets/theme-redstone-cc0-mese-block.png");
}

html.site-theme-redstone-lab body {
  background:
    radial-gradient(circle at 18% 10%, rgba(239,68,68,.22), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(250,204,21,.16), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 24px),
    linear-gradient(135deg, #080303, #180707 48%, #0f0906);
}

html.site-theme-redstone-lab body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .34;
  image-rendering: pixelated;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06) 0 12%, transparent 12% 100%),
    linear-gradient(0deg, rgba(17,5,5,.6), rgba(17,5,5,.6)),
    var(--rs-tex-rack),
    repeating-linear-gradient(90deg, rgba(82,73,65,.34) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(0deg, rgba(82,73,65,.28) 0 2px, transparent 2px 34px);
  background-size: 34px 34px, auto, 68px 68px, 34px 34px, 34px 34px;
  animation: none;
}

#themeInteractionLayer.theme-redstone-lab {
  background:
    radial-gradient(circle at 13% 22%, rgba(239,68,68,.12), transparent 24%),
    radial-gradient(circle at 88% 68%, rgba(250,204,21,.1), transparent 26%);
}

#themeInteractionLayer.theme-redstone-lab:before {
  content: "";
  position: absolute;
  inset: -48px;
  opacity: .22;
  image-rendering: pixelated;
  background:
    linear-gradient(135deg, rgba(255,255,255,.07) 0 12%, transparent 12% 100%),
    repeating-linear-gradient(0deg, rgba(40,34,31,.7) 0 15px, rgba(27,23,21,.72) 15px 31px),
    repeating-linear-gradient(90deg, rgba(75,65,58,.34) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(0deg, rgba(75,65,58,.28) 0 2px, transparent 2px 32px);
  background-size: 32px 32px, 32px 32px, 32px 32px, 32px 32px;
  transform: rotate(-1deg) scale(1.06);
}

.theme-redstone-workshop {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.theme-redstone-floor {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-template-rows: repeat(14, minmax(0, 1fr));
  gap: 2px;
  padding: 24px 30px;
  pointer-events: none;
  opacity: .44;
  image-rendering: pixelated;
}

.theme-redstone-floor:before {
  content: "";
  position: absolute;
  inset: 18px 24px;
  z-index: 0;
  opacity: .2;
  border: 1px solid rgba(105,83,69,.4);
  background:
    linear-gradient(0deg, rgba(18,13,11,.3), rgba(18,13,11,.3)),
    var(--rs-tex-stone),
    repeating-linear-gradient(0deg, transparent 0 56px, rgba(95,75,62,.5) 56px 58px),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(95,75,62,.44) 70px 72px);
  background-size: auto, 48px 48px, auto, auto;
}

.theme-redstone-floor .rs-floor-piece {
  z-index: 1;
}

.theme-redstone-floor .rs-dust {
  opacity: .78;
  filter: saturate(.95);
}

.theme-redstone-floor .rs-lever {
  z-index: 3;
  opacity: .98;
  box-shadow:
    inset 1px 1px rgba(255,255,255,.12),
    inset -2px -2px rgba(0,0,0,.32),
    0 0 0 2px rgba(0,0,0,.2),
    0 8px 18px rgba(0,0,0,.32);
}

.theme-redstone-floor.is-main-on .rs-main.rs-dust,
.theme-redstone-floor.is-main-on .rs-main.rs-repeater,
.theme-redstone-floor.is-main-on .rs-main.rs-torch,
.theme-redstone-floor.is-memory-on .rs-memory.rs-dust,
.theme-redstone-floor.is-memory-on .rs-memory.rs-repeater,
.theme-redstone-floor.is-memory-on .rs-memory.rs-torch,
.theme-redstone-floor.is-lower-on .rs-lower.rs-dust,
.theme-redstone-floor.is-lower-on .rs-lower.rs-repeater,
.theme-redstone-floor.is-lower-on .rs-lower.rs-torch {
  filter: brightness(1.24) saturate(1.25);
}

.theme-redstone-floor.is-main-on .rs-main.rs-dust,
.theme-redstone-floor.is-memory-on .rs-memory.rs-dust,
.theme-redstone-floor.is-lower-on .rs-lower.rs-dust {
  background:
    radial-gradient(circle, #fef3c7 0 2px, #ef4444 3px, transparent 5px) 0 50% / 18px 9px repeat-x,
    linear-gradient(90deg, #7f1d1d, #ef4444, #facc15, #ef4444, #7f1d1d);
  background-size: 18px 9px, 240% 100%;
  animation: redstoneWireFlow .68s linear infinite;
  box-shadow: 0 0 16px rgba(239,68,68,.72), 0 0 30px rgba(250,204,21,.28);
}

.theme-redstone-floor.is-main-on .rs-main.rs-dust.v,
.theme-redstone-floor.is-memory-on .rs-memory.rs-dust.v,
.theme-redstone-floor.is-lower-on .rs-lower.rs-dust.v {
  background:
    radial-gradient(circle, #fef3c7 0 2px, #ef4444 3px, transparent 5px) 50% 0 / 9px 18px repeat-y,
    linear-gradient(0deg, #7f1d1d, #ef4444, #facc15, #ef4444, #7f1d1d);
  background-size: 9px 18px, 100% 240%;
}

.theme-redstone-floor.is-main-on .rs-main.rs-lamp,
.theme-redstone-floor.is-memory-on .rs-memory.rs-lamp,
.theme-redstone-floor.is-lower-on .rs-lower.rs-lamp {
  background:
    radial-gradient(circle at 35% 28%, rgba(255,247,173,.78) 0 13%, rgba(250,204,21,.7) 38%, rgba(249,115,22,.42) 66%, rgba(124,45,18,.3) 100%),
    var(--rs-tex-glow);
  background-size: auto, 100% 100%;
  box-shadow: 0 0 18px rgba(250,204,21,.84), 0 0 44px rgba(239,68,68,.42);
}

.theme-redstone-floor.is-main-on .rs-main.rs-repeater:before,
.theme-redstone-floor.is-main-on .rs-main.rs-repeater:after,
.theme-redstone-floor.is-memory-on .rs-memory.rs-repeater:before,
.theme-redstone-floor.is-memory-on .rs-memory.rs-repeater:after,
.theme-redstone-floor.is-lower-on .rs-lower.rs-repeater:before,
.theme-redstone-floor.is-lower-on .rs-lower.rs-repeater:after {
  background: #facc15;
  box-shadow: 0 0 12px rgba(250,204,21,.78);
}

.theme-redstone-floor.is-main-on .rs-main.rs-torch:after,
.theme-redstone-floor.is-memory-on .rs-memory.rs-torch:after,
.theme-redstone-floor.is-lower-on .rs-lower.rs-torch:after {
  background: radial-gradient(circle, #fff7ad 0 18%, #facc15 36%, #ef4444 72%);
  box-shadow: 0 0 20px rgba(250,204,21,.86), 0 0 44px rgba(239,68,68,.46);
}

.theme-redstone-floor.is-lower-on .rs-lower.rs-piston:after {
  transform: translateX(72%);
  box-shadow: 0 0 18px rgba(250,204,21,.34);
}

.theme-redstone-build {
  --rs-cell: clamp(17px, 1.24vw, 23px);
  position: fixed;
  display: grid;
  grid-template-columns: repeat(12, var(--rs-cell));
  grid-template-rows: repeat(7, var(--rs-cell));
  gap: 2px;
  padding: 10px;
  pointer-events: none;
  opacity: .93;
  image-rendering: pixelated;
  border: 2px solid rgba(95,64,50,.82);
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px calc(var(--rs-cell) + 2px)),
    repeating-linear-gradient(90deg, rgba(0,0,0,.34) 0 2px, transparent 2px calc(var(--rs-cell) + 2px)),
    linear-gradient(0deg, rgba(21,18,16,.42), rgba(21,18,16,.42)),
    var(--rs-tex-cobble);
  background-size: auto, auto, auto, 46px 46px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 -16px 34px rgba(0,0,0,.34),
    0 22px 42px rgba(0,0,0,.42),
    0 0 0 1px rgba(239,68,68,.1);
  transform-origin: center;
}

.theme-redstone-build:before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,0,0,.13) 8px 10px),
    radial-gradient(circle at 12% 24%, rgba(255,255,255,.08) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,.26) 0 1px, transparent 2px);
  background-size: 22px 22px, 34px 34px, 46px 46px;
}

.theme-redstone-build.rs-clock {
  left: max(12px, env(safe-area-inset-left));
  top: 96px;
  transform: rotate(-1deg);
}

.theme-redstone-build.rs-latch {
  right: max(12px, env(safe-area-inset-right));
  top: 116px;
  transform: rotate(1deg);
}

.theme-redstone-build.rs-piston-line {
  left: max(18px, env(safe-area-inset-left));
  bottom: 86px;
  transform: rotate(.7deg);
}

.theme-redstone-build.rs-lamp-tower {
  right: max(18px, env(safe-area-inset-right));
  bottom: 84px;
  transform: rotate(-.8deg);
}

.rs-piece {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}

.rs-block,
.rs-repeater,
.rs-piston,
.rs-lamp,
.rs-lever {
  border: 1px solid rgba(0,0,0,.52);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%),
    linear-gradient(0deg, rgba(34,27,24,.22), rgba(34,27,24,.22)),
    var(--rs-tex-cobble);
  background-size: auto, auto, 100% 100%;
  box-shadow: inset 1px 1px rgba(255,255,255,.12), inset -2px -2px rgba(0,0,0,.32);
}

.rs-dust {
  align-self: center;
  justify-self: stretch;
  height: 9px;
  margin: 0 -5px;
  border-radius: 2px;
  background:
    radial-gradient(circle, #7f1d1d 0 3px, transparent 4px) 0 50% / 16px 8px repeat-x,
    linear-gradient(90deg, #3f0b0b, #661111 48%, #3f0b0b);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(0,0,0,.28);
  transition: background .18s ease, box-shadow .18s ease, filter .18s ease;
}

.rs-dust.v {
  justify-self: center;
  align-self: stretch;
  width: 9px;
  height: auto;
  margin: -5px 0;
  background:
    radial-gradient(circle, #7f1d1d 0 3px, transparent 4px) 50% 0 / 8px 16px repeat-y,
    linear-gradient(0deg, #3f0b0b, #661111 48%, #3f0b0b);
}

.theme-redstone-build.is-on .rs-dust,
.theme-redstone-build.is-firing .rs-dust {
  background:
    radial-gradient(circle, #fef3c7 0 2px, #ef4444 3px, transparent 5px) 0 50% / 18px 9px repeat-x,
    linear-gradient(90deg, #7f1d1d, #ef4444, #facc15, #ef4444, #7f1d1d);
  background-size: 18px 9px, 240% 100%;
  animation: redstoneWireFlow .68s linear infinite;
  box-shadow: 0 0 14px rgba(239,68,68,.72), 0 0 26px rgba(250,204,21,.24);
  filter: brightness(1.18);
}

.theme-redstone-build.is-on .rs-dust.v,
.theme-redstone-build.is-firing .rs-dust.v {
  background:
    radial-gradient(circle, #fef3c7 0 2px, #ef4444 3px, transparent 5px) 50% 0 / 9px 18px repeat-y,
    linear-gradient(0deg, #7f1d1d, #ef4444, #facc15, #ef4444, #7f1d1d);
  background-size: 9px 18px, 100% 240%;
}

.rs-repeater {
  background:
    linear-gradient(90deg, transparent 18%, #ef4444 18% 24%, transparent 24% 76%, #ef4444 76% 82%, transparent 82%),
    linear-gradient(0deg, rgba(255,255,255,.24), rgba(255,255,255,.24)),
    var(--rs-tex-steel);
  background-size: auto, auto, 100% 100%;
  box-shadow: inset 0 1px rgba(255,255,255,.32), inset 0 -2px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.35);
}

.rs-repeater:before,
.rs-repeater:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7f1d1d;
  transform: translateY(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.38);
}

.rs-repeater:before { left: 22%; }
.rs-repeater:after { right: 22%; }
.rs-repeater.west { transform: rotate(180deg); }
.rs-repeater.north { transform: rotate(-90deg); }

.theme-redstone-build.is-on .rs-repeater:before,
.theme-redstone-build.is-on .rs-repeater:after,
.theme-redstone-build.is-firing .rs-repeater:before,
.theme-redstone-build.is-firing .rs-repeater:after {
  background: #facc15;
  box-shadow: 0 0 12px rgba(250,204,21,.78);
}

.rs-torch {
  justify-self: center;
  align-self: center;
  width: 62%;
  height: 92%;
}

.rs-torch:before {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  bottom: 12%;
  width: 6px;
  height: 56%;
  border-radius: 2px;
  background: linear-gradient(180deg, #c2410c, #6b2e18);
  box-shadow: inset 1px 0 rgba(255,255,255,.18);
}

.rs-torch:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle, #fee2e2 0 18%, #ef4444 42%, #7f1d1d 72%);
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(239,68,68,.72), 0 0 32px rgba(250,204,21,.22);
}

.theme-redstone-build.is-on .rs-torch:after,
.theme-redstone-build.is-firing .rs-torch:after {
  background: radial-gradient(circle, #fff7ad 0 18%, #facc15 36%, #ef4444 72%);
  box-shadow: 0 0 20px rgba(250,204,21,.86), 0 0 44px rgba(239,68,68,.46);
}

.rs-lamp {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 3px, transparent 3px 8px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.32) 0 3px, transparent 3px 8px),
    linear-gradient(0deg, rgba(25,10,5,.48), rgba(25,10,5,.48)),
    var(--rs-tex-mese);
  background-size: auto, auto, auto, 100% 100%;
  border-color: rgba(250,204,21,.26);
}

.theme-redstone-build.is-on .rs-lamp,
.theme-redstone-build.is-firing .rs-lamp,
.rs-latch.is-alt .rs-lamp.nq {
  background:
    radial-gradient(circle at 35% 28%, rgba(255,247,173,.78) 0 13%, rgba(250,204,21,.7) 38%, rgba(249,115,22,.42) 66%, rgba(124,45,18,.3) 100%),
    var(--rs-tex-glow);
  background-size: auto, 100% 100%;
  box-shadow: 0 0 18px rgba(250,204,21,.84), 0 0 42px rgba(239,68,68,.42);
}

.rs-latch.is-on .rs-lamp.nq,
.rs-latch.is-alt .rs-lamp.q {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 3px, transparent 3px 8px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.32) 0 3px, transparent 3px 8px),
    linear-gradient(0deg, rgba(25,10,5,.48), rgba(25,10,5,.48)),
    var(--rs-tex-mese);
  background-size: auto, auto, auto, 100% 100%;
  box-shadow: inset 1px 1px rgba(255,255,255,.12), inset -2px -2px rgba(0,0,0,.32);
}

.rs-piston {
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(107,74,39,.9) 0 28%, rgba(109,106,95,.78) 28% 58%, rgba(47,41,35,.88) 58% 100%),
    var(--rs-tex-steel);
  background-size: auto, 100% 100%;
}

.rs-piston:after {
  content: "";
  position: absolute;
  right: -18%;
  top: 18%;
  width: 34%;
  height: 64%;
  border: 1px solid rgba(0,0,0,.42);
  border-radius: 2px;
  background: repeating-linear-gradient(0deg, #b08a52 0 6px, #7b5a30 6px 12px);
  transition: transform .18s steps(2,end), box-shadow .18s ease;
}

.rs-piston-line.is-on .rs-piston:after {
  transform: translateX(72%);
  box-shadow: 0 0 18px rgba(250,204,21,.34);
}

.rs-lever {
  appearance: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  border-color: rgba(250,204,21,.26);
  transition: transform .12s ease, filter .15s ease;
}

.rs-lever:hover {
  filter: brightness(1.24);
  transform: translateY(-1px);
}

.rs-lever:before {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  top: 27%;
  bottom: 27%;
  border-radius: 3px;
  background: linear-gradient(180deg, #a8a29e, #57534e);
  box-shadow: inset 1px 1px rgba(255,255,255,.28), 0 0 0 1px rgba(0,0,0,.36);
}

.rs-lever:after {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  top: 8%;
  width: 6px;
  height: 76%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #78716c 54%, #3f3f46);
  transform: rotate(-32deg);
  transform-origin: 50% 78%;
  transition: transform .18s steps(2,end), box-shadow .18s ease;
}

.rs-lever.is-active:after {
  transform: rotate(32deg);
  box-shadow: 0 0 14px rgba(250,204,21,.48);
}

.rs-lever.is-active:before {
  box-shadow: inset 1px 1px rgba(255,255,255,.28), 0 0 16px rgba(239,68,68,.46);
}

.rs-clock.is-clock-phase .rs-dust,
.rs-clock.is-clock-phase .rs-repeater:before,
.rs-clock.is-clock-phase .rs-repeater:after {
  filter: brightness(1.65);
}

.theme-redstone-build.is-firing {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 -16px 34px rgba(0,0,0,.34),
    0 22px 42px rgba(0,0,0,.42),
    0 0 26px rgba(239,68,68,.28),
    0 0 52px rgba(250,204,21,.16);
}

@keyframes redstoneWireFlow {
  from { background-position: 0 0; }
  to { background-position: -240% 0; }
}

.theme-redstone-spark {
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 16px rgba(250,204,21,.72);
  animation: redstoneSpark 1.1s linear forwards;
}

@keyframes redstoneSpark {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(.6); }
  to { opacity: 0; transform: translate3d(var(--dx, 90px), var(--dy, -20px), 0) scale(1.2); }
}

html.site-theme-minecraft :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover,
html.site-theme-ocean :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover,
html.site-theme-fire :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover,
html.site-theme-cherry-grove :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover,
html.site-theme-redstone-lab :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover {
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

html.site-theme-minecraft :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover {
  border-color: rgba(126,226,111,.45);
  box-shadow: 0 14px 34px rgba(19,83,30,.22), 0 0 0 1px rgba(126,226,111,.12);
}

html.site-theme-ocean :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover {
  border-color: rgba(103,232,249,.42);
  box-shadow: 0 14px 34px rgba(6,182,212,.18), 0 0 0 1px rgba(103,232,249,.12);
}

html.site-theme-fire :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover {
  border-color: rgba(249,115,22,.48);
  box-shadow: 0 14px 34px rgba(249,115,22,.16), 0 0 0 1px rgba(249,115,22,.12);
}

html.site-theme-cherry-grove :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover {
  border-color: rgba(249,168,212,.48);
  box-shadow: 0 14px 34px rgba(249,168,212,.14), 0 0 0 1px rgba(134,239,172,.1);
}

html.site-theme-redstone-lab :where(.card,.slide,.recentItem,.homeServerCard,.feedHomeCompactCard):hover {
  border-color: rgba(239,68,68,.5);
  box-shadow: 0 14px 34px rgba(239,68,68,.14), 0 0 0 1px rgba(250,204,21,.1);
}

@keyframes siteMinecraftSprites {
  0% { background-position: -220px 12%, calc(100% + 120px) calc(100% - 66px), -120px calc(100% - 72px), calc(100% - 42px) calc(100% - 130px), 34px calc(100% - 82px), calc(100% - 160px) 12%, calc(100% - 180px) 18%; }
  42% { background-position: calc(100% + 260px) 8%, -130px calc(100% - 72px), -120px calc(100% - 72px), calc(100% - 42px) calc(100% - 130px), 34px calc(100% - 82px), calc(100% - 160px) 12%, calc(100% - 180px) 18%; }
  58% { background-position: calc(100% + 260px) 8%, -130px calc(100% - 72px), 38% calc(100% - 72px), calc(100% - 42px) calc(100% - 130px), 34px calc(100% - 82px), calc(100% - 160px) 12%, calc(100% - 180px) 18%; }
  88% { background-position: calc(100% + 260px) 8%, calc(100% + 120px) calc(100% - 66px), calc(100% + 130px) calc(100% - 70px), calc(100% - 42px) calc(100% - 130px), 34px calc(100% - 82px), 12% 10%, 16% 14%; }
  100% { background-position: -220px 12%, calc(100% + 120px) calc(100% - 66px), -120px calc(100% - 72px), calc(100% - 42px) calc(100% - 130px), 34px calc(100% - 82px), calc(100% - 160px) 12%, calc(100% - 180px) 18%; }
}

@media (prefers-reduced-motion: reduce) {
  #themeInteractionLayer {
    display: none;
  }
}
