.mobius:nth-child(3) .block > :nth-child(-n+2)::after, .mobius:nth-child(2) .block > :nth-child(-n+2)::after, .mobius:nth-child(1) .block > :nth-child(-n+2)::after, .scene > .block > :nth-child(-n+2)::after, .mobius:nth-child(3) .block > :nth-child(-n+2)::before, .mobius:nth-child(2) .block > :nth-child(-n+2)::before, .mobius:nth-child(1) .block > :nth-child(-n+2)::before, .scene > .block > :nth-child(-n+2)::before {
  content: "";
}

.mobius:nth-child(3) .block, .mobius:nth-child(3) .block::after, .mobius:nth-child(3) .block::before,
.mobius:nth-child(3) .block > :nth-child(-n+2),
.mobius:nth-child(3) .block > :nth-child(-n+2)::after,
.mobius:nth-child(3) .block > :nth-child(-n+2)::before, .mobius:nth-child(3),
.mobius:nth-child(3) .blocks, .mobius:nth-child(2) .block, .mobius:nth-child(2) .block::after, .mobius:nth-child(2) .block::before,
.mobius:nth-child(2) .block > :nth-child(-n+2),
.mobius:nth-child(2) .block > :nth-child(-n+2)::after,
.mobius:nth-child(2) .block > :nth-child(-n+2)::before, .mobius:nth-child(2),
.mobius:nth-child(2) .blocks, .mobius:nth-child(1) .block, .mobius:nth-child(1) .block::after, .mobius:nth-child(1) .block::before,
.mobius:nth-child(1) .block > :nth-child(-n+2),
.mobius:nth-child(1) .block > :nth-child(-n+2)::after,
.mobius:nth-child(1) .block > :nth-child(-n+2)::before, .mobius:nth-child(1),
.mobius:nth-child(1) .blocks, .scene > .block, .scene > .block::after, .scene > .block::before,
.scene > .block > :nth-child(-n+2),
.scene > .block > :nth-child(-n+2)::after,
.scene > .block > :nth-child(-n+2)::before, /* body, (if include body then size of body gets constrained) */
.scene {
    position:        absolute;
    transform-style: preserve-3d;
    z-index:         2;
}

.mobius:nth-child(3) .block, .mobius:nth-child(3) .block::after, .mobius:nth-child(3) .block::before,
.mobius:nth-child(3) .block > :nth-child(-n+2),
.mobius:nth-child(3) .block > :nth-child(-n+2)::after,
.mobius:nth-child(3) .block > :nth-child(-n+2)::before, .mobius:nth-child(3),
.mobius:nth-child(3) .blocks, .mobius:nth-child(2) .block, .mobius:nth-child(2) .block::after, .mobius:nth-child(2) .block::before,
.mobius:nth-child(2) .block > :nth-child(-n+2),
.mobius:nth-child(2) .block > :nth-child(-n+2)::after,
.mobius:nth-child(2) .block > :nth-child(-n+2)::before, .mobius:nth-child(2),
.mobius:nth-child(2) .blocks, .mobius:nth-child(1) .block, .mobius:nth-child(1) .block::after, .mobius:nth-child(1) .block::before,
.mobius:nth-child(1) .block > :nth-child(-n+2),
.mobius:nth-child(1) .block > :nth-child(-n+2)::after,
.mobius:nth-child(1) .block > :nth-child(-n+2)::before, .mobius:nth-child(1),
.mobius:nth-child(1) .blocks, .scene > .block, .scene > .block::after, .scene > .block::before,
.scene > .block > :nth-child(-n+2),
.scene > .block > :nth-child(-n+2)::after,
.scene > .block > :nth-child(-n+2)::before, body,
.scene {
  display:    grid;
  place-self: center;
}
.mobius:nth-child(3) .block > *, .mobius:nth-child(3) .block::after > *, .mobius:nth-child(3) .block::before > *,
.mobius:nth-child(3) .block > :nth-child(-n+2) > *,
.mobius:nth-child(3) .block > :nth-child(-n+2)::after > *,
.mobius:nth-child(3) .block > :nth-child(-n+2)::before > *, .mobius:nth-child(3) > *,
.mobius:nth-child(3) .blocks > *, .mobius:nth-child(2) .block > *, .mobius:nth-child(2) .block::after > *, .mobius:nth-child(2) .block::before > *,
.mobius:nth-child(2) .block > :nth-child(-n+2) > *,
.mobius:nth-child(2) .block > :nth-child(-n+2)::after > *,
.mobius:nth-child(2) .block > :nth-child(-n+2)::before > *, .mobius:nth-child(2) > *,
.mobius:nth-child(2) .blocks > *, .mobius:nth-child(1) .block > *, .mobius:nth-child(1) .block::after > *, .mobius:nth-child(1) .block::before > *,
.mobius:nth-child(1) .block > :nth-child(-n+2) > *,
.mobius:nth-child(1) .block > :nth-child(-n+2)::after > *,
.mobius:nth-child(1) .block > :nth-child(-n+2)::before > *, .mobius:nth-child(1) > *,
.mobius:nth-child(1) .blocks > *, .scene > .block > *, .scene > .block::after > *, .scene > .block::before > *,
.scene > .block > :nth-child(-n+2) > *,
.scene > .block > :nth-child(-n+2)::after > *,
.scene > .block > :nth-child(-n+2)::before > *, body > *,
.scene > * {
  place-self: center;
}

:root {
    --background: rgba(  0,   0,   0, 0.1);  
    --stroke:     rgba(128, 128, 128, 0.1);  
    --fill:       rgba(248, 248, 255, 0.15); 
    --hover:      rgba(248, 248, 255, 0.15); 
}

.scene {
  -webkit-animation: rotate 30s linear infinite;
          animation: rotate 30s linear infinite;
}
.scene > .block {
  --mode: 2;
  animation: rotate 15s linear infinite reverse;
}
.scene > .block > :nth-child(-n+2) {
  height: 9.3860679024vmin;
  width:  9.3860679024vmin;
}
.scene > .block > :nth-child(-n+2), .scene > .block > :nth-child(-n+2)::after, .scene > .block > :nth-child(-n+2)::before {
  border: calc(9.3860679024vmin * 0.1) solid var(--background, #61481c);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transform: var(--transform);
}
.scene > .block > :nth-child(-n+2)::after, .scene > .block > :nth-child(-n+2)::before {
  transform-origin: var(--origin);
}
.scene > .block > :nth-child(-n+2):nth-child(1) {
  --transform: rotatex(0deg) translatez(calc(9.3860679024vmin / 2));
}
.scene > .block > :nth-child(-n+2):nth-child(1)::after, .scene > .block > :nth-child(-n+2):nth-child(1)::before {
  height: 9.3860679024vmin;
  width:  9.3860679024vmin;
}
.scene > .block > :nth-child(-n+2):nth-child(1)::after {
  --transform: rotatey(90deg) translatez(9.3860679024vmin);
  --origin: left;
}
.scene > .block > :nth-child(-n+2):nth-child(1)::before {
  --transform: rotatey(-90deg) translatez(9.3860679024vmin);
  --origin: right;
}
.scene > .block > :nth-child(-n+2):nth-child(2) {
  --transform: rotatex(180deg) translatez(calc(9.3860679024vmin / 2));
}
.scene > .block > :nth-child(-n+2):nth-child(2)::after, .scene > .block > :nth-child(-n+2):nth-child(2)::before {
  height: 9.3860679024vmin;
  width:  9.3860679024vmin;
}
.scene > .block > :nth-child(-n+2):nth-child(2)::after {
  --transform: rotatex(90deg) translatez(9.3860679024vmin);
  --origin: bottom;
}
.scene > .block > :nth-child(-n+2):nth-child(2)::before {
  --transform: rotatex(-90deg) translatez(9.3860679024vmin);
  --origin: top;
}
.scene > .block .face:first-child, .scene > .block .face:last-child {
  background: var(--fill, var(--fill, #e6b325));
}
.scene > .block .face:first-child::after, .scene > .block .face:first-child::before {
  background: var(--hover, var(--hover, #ffd95a));
}
.scene > .block .face:last-child::after, .scene > .block .face:last-child::before {
  background: var(--background, var(--hover, #ffd95a));
}
.scene > .block .face:last-child::after {
  background: var(--hover, #ffd95a);
}
.scene > .block .face:last-child::before {
  background: var(--fill, #e6b325);
}

.mobius {
  transform: var(--transform);
}
.mobius:nth-child(1) {
  --transform: rotatex(0deg);
}
.mobius:nth-child(1) .blocks {
  --blocks: 20;
}
.mobius:nth-child(1) .block {
  transform: var(--transform) rotate3d(0, 1, 0, var(--angle));
  -webkit-animation: block 5s linear infinite;
          animation: block 5s linear infinite;
  --mode: 2;
}
.mobius:nth-child(1) .block > :nth-child(-n+2) {
  height: 4.6930339512vmin;
  width:  4.6930339512vmin;
}
.mobius:nth-child(1) .block > :nth-child(-n+2), .mobius:nth-child(1) .block > :nth-child(-n+2)::after, .mobius:nth-child(1) .block > :nth-child(-n+2)::before {
  background: #fff;
  border: 0.4693033951vmin solid var(--background, #000);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transform: var(--transform);
}
.mobius:nth-child(1) .block > :nth-child(-n+2)::after, .mobius:nth-child(1) .block > :nth-child(-n+2)::before {
  transform-origin: var(--origin);
}
.mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(1) {
  --transform: rotatex(0deg) translatez(calc(4.6930339512vmin / 2));
}
.mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(1)::after, .mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(1)::before {
  height: 4.6930339512vmin;
  width:  4.6930339512vmin;
}
.mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(1)::after {
  --transform: rotatey(90deg) translatez(4.6930339512vmin);
  --origin: left;
}
.mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(1)::before {
  --transform: rotatey(-90deg) translatez(4.6930339512vmin);
  --origin: right;
}
.mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(2) {
  --transform: rotatex(180deg) translatez(calc(4.6930339512vmin / 2));
}
.mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(2)::after, .mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(2)::before {
  height: 4.6930339512vmin;
  width:  4.6930339512vmin;
}
.mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(2)::after {
  --transform: rotatex(90deg) translatez(4.6930339512vmin);
  --origin: bottom;
}
.mobius:nth-child(1) .block > :nth-child(-n+2):nth-child(2)::before {
  --transform: rotatex(-90deg) translatez(4.6930339512vmin);
  --origin: top;
}
.mobius:nth-child(1) .block:nth-child(1) {
  --angle: 0deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(2) {
  --angle: 18deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(3) {
  --angle: 36deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(4) {
  --angle: 54deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(5) {
  --angle: 72deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(6) {
  --angle: 90deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(7) {
  --angle: 108deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(8) {
  --angle: 126deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(9) {
  --angle: 144deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(10) {
  --angle: 162deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(11) {
  --angle: 180deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(12) {
  --angle: 198deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(13) {
  --angle: 216deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(14) {
  --angle: 234deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(15) {
  --angle: 252deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(16) {
  --angle: 270deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(17) {
  --angle: 288deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(18) {
  --angle: 306deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(19) {
  --angle: 324deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .block:nth-child(20) {
  --angle: 342deg;
  --transform: rotatez(var(--angle)) translatex(17.1618420845vmin);
}
.mobius:nth-child(1) .face:first-child, .mobius:nth-child(1) .face:last-child {
  background: var(--fill, blue);
}
.mobius:nth-child(1) .face:first-child::after, .mobius:nth-child(1) .face:first-child::before {
  background: var(--hover, lime);
}
.mobius:nth-child(1) .face:last-child::after, .mobius:nth-child(1) .face:last-child::before {
  background: var(--background, #000);
}
@-webkit-keyframes block {
  to {
    transform: var(--transform) rotate3d(0, 1, 0, calc(var(--angle) + 1turn));
  }
}
@keyframes block {
  to {
    transform: var(--transform) rotate3d(0, 1, 0, calc(var(--angle) + 1turn));
  }
}
.mobius:nth-child(2) {
  --transform: rotatex(90deg);
}
.mobius:nth-child(2) .blocks {
  --blocks: 30;
}
.mobius:nth-child(2) .block {
  transform: var(--transform) rotate3d(0, 1, 0, var(--angle));
  -webkit-animation: block 7.5s linear infinite;
          animation: block 7.5s linear infinite;
  --mode: 2;
}
.mobius:nth-child(2) .block > :nth-child(-n+2) {
  height: 4.6930339512vmin;
  width:  4.6930339512vmin;
}
.mobius:nth-child(2) .block > :nth-child(-n+2), .mobius:nth-child(2) .block > :nth-child(-n+2)::after, .mobius:nth-child(2) .block > :nth-child(-n+2)::before {
  background: #fff;
  border: 0.4693033951vmin solid var(--background, #000);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transform: var(--transform);
}
.mobius:nth-child(2) .block > :nth-child(-n+2)::after, .mobius:nth-child(2) .block > :nth-child(-n+2)::before {
  transform-origin: var(--origin);
}
.mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(1) {
  --transform: rotatex(0deg) translatez(calc(4.6930339512vmin / 2));
}
.mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(1)::after, .mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(1)::before {
  height: 4.6930339512vmin;
  width:  4.6930339512vmin;
}
.mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(1)::after {
  --transform: rotatey(90deg) translatez(4.6930339512vmin);
  --origin: left;
}
.mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(1)::before {
  --transform: rotatey(-90deg) translatez(4.6930339512vmin);
  --origin: right;
}
.mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(2) {
  --transform: rotatex(180deg) translatez(calc(4.6930339512vmin / 2));
}
.mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(2)::after, .mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(2)::before {
  height: 4.6930339512vmin;
  width:  4.6930339512vmin;
}
.mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(2)::after {
  --transform: rotatex(90deg) translatez(4.6930339512vmin);
  --origin: bottom;
}
.mobius:nth-child(2) .block > :nth-child(-n+2):nth-child(2)::before {
  --transform: rotatex(-90deg) translatez(4.6930339512vmin);
  --origin: top;
}
.mobius:nth-child(2) .block:nth-child(1) {
  --angle: 0deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(2) {
  --angle: 12deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(3) {
  --angle: 24deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(4) {
  --angle: 36deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(5) {
  --angle: 48deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(6) {
  --angle: 60deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(7) {
  --angle: 72deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(8) {
  --angle: 84deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(9) {
  --angle: 96deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(10) {
  --angle: 108deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(11) {
  --angle: 120deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(12) {
  --angle: 132deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(13) {
  --angle: 144deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(14) {
  --angle: 156deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(15) {
  --angle: 168deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(16) {
  --angle: 180deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(17) {
  --angle: 192deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(18) {
  --angle: 204deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(19) {
  --angle: 216deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(20) {
  --angle: 228deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(21) {
  --angle: 240deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(22) {
  --angle: 252deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(23) {
  --angle: 264deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(24) {
  --angle: 276deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(25) {
  --angle: 288deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(26) {
  --angle: 300deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(27) {
  --angle: 312deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(28) {
  --angle: 324deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(29) {
  --angle: 336deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .block:nth-child(30) {
  --angle: 348deg;
  --transform: rotatez(var(--angle)) translatex(24.6721346795vmin);
}
.mobius:nth-child(2) .face:first-child, .mobius:nth-child(2) .face:last-child {
  background: var(--fill, blue);
}
.mobius:nth-child(2) .face:first-child::after, .mobius:nth-child(2) .face:first-child::before {
  background: var(--hover, lime);
}
.mobius:nth-child(2) .face:last-child::after, .mobius:nth-child(2) .face:last-child::before {
  background: var(--background, #000);
}
@keyframes block {
  to {
    transform: var(--transform) rotate3d(0, 1, 0, calc(var(--angle) + 1turn));
  }
}
.mobius:nth-child(3) {
  --transform: rotatey(90deg);
}
.mobius:nth-child(3) .blocks {
  --blocks: 40;
}
.mobius:nth-child(3) .block {
  transform: var(--transform) rotate3d(0, 1, 0, var(--angle));
  -webkit-animation: block 10s linear infinite;
          animation: block 10s linear infinite;
  --mode: 2;
}
.mobius:nth-child(3) .block > :nth-child(-n+2) {
  height: 4.6930339512vmin;
  width:  4.6930339512vmin;
}
.mobius:nth-child(3) .block > :nth-child(-n+2), .mobius:nth-child(3) .block > :nth-child(-n+2)::after, .mobius:nth-child(3) .block > :nth-child(-n+2)::before {
  background: #fff;
  border: 0.4693033951vmin solid var(--background, #000);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transform: var(--transform);
}
.mobius:nth-child(3) .block > :nth-child(-n+2)::after, .mobius:nth-child(3) .block > :nth-child(-n+2)::before {
  transform-origin: var(--origin);
}
.mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(1) {
  --transform: rotatex(0deg) translatez(calc(4.6930339512vmin / 2));
}
.mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(1)::after, .mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(1)::before {
  height: 4.6930339512vmin;
  width:  4.6930339512vmin;
}
.mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(1)::after {
  --transform: rotatey(90deg) translatez(4.6930339512vmin);
  --origin: left;
}
.mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(1)::before {
  --transform: rotatey(-90deg) translatez(4.6930339512vmin);
  --origin: right;
}
.mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(2) {
  --transform: rotatex(180deg) translatez(calc(4.6930339512vmin / 2));
}
.mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(2)::after, .mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(2)::before {
  height: 4.6930339512vmin;
  width:  4.6930339512vmin;
}
.mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(2)::after {
  --transform: rotatex(90deg) translatez(4.6930339512vmin);
  --origin: bottom;
}
.mobius:nth-child(3) .block > :nth-child(-n+2):nth-child(2)::before {
  --transform: rotatex(-90deg) translatez(4.6930339512vmin);
  --origin: top;
}
.mobius:nth-child(3) .block:nth-child(1) {
  --angle: 0deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(2) {
  --angle: 9deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(3) {
  --angle: 18deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(4) {
  --angle: 27deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(5) {
  --angle: 36deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(6) {
  --angle: 45deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(7) {
  --angle: 54deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(8) {
  --angle: 63deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(9) {
  --angle: 72deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(10) {
  --angle: 81deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(11) {
  --angle: 90deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(12) {
  --angle: 99deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(13) {
  --angle: 108deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(14) {
  --angle: 117deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(15) {
  --angle: 126deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(16) {
  --angle: 135deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(17) {
  --angle: 144deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(18) {
  --angle: 153deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(19) {
  --angle: 162deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(20) {
  --angle: 171deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(21) {
  --angle: 180deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(22) {
  --angle: 189deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(23) {
  --angle: 198deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(24) {
  --angle: 207deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(25) {
  --angle: 216deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(26) {
  --angle: 225deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(27) {
  --angle: 234deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(28) {
  --angle: 243deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(29) {
  --angle: 252deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(30) {
  --angle: 261deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(31) {
  --angle: 270deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(32) {
  --angle: 279deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(33) {
  --angle: 288deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(34) {
  --angle: 297deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(35) {
  --angle: 306deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(36) {
  --angle: 315deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(37) {
  --angle: 324deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(38) {
  --angle: 333deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(39) {
  --angle: 342deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .block:nth-child(40) {
  --angle: 351deg;
  --transform: rotatez(var(--angle)) translatex(32.1618420845vmin);
}
.mobius:nth-child(3) .face:first-child, .mobius:nth-child(3) .face:last-child {
  background: var(--fill, blue);
}
.mobius:nth-child(3) .face:first-child::after, .mobius:nth-child(3) .face:first-child::before {
  background: var(--hover, lime);
}
.mobius:nth-child(3) .face:last-child::after, .mobius:nth-child(3) .face:last-child::before {
  background: var(--background, #000);
}
@keyframes block {
  to {
    transform: var(--transform) rotate3d(0, 1, 0, calc(var(--angle) + 1turn));
  }
}

@-webkit-keyframes rotate {
  to {
    transform: rotate3d(1, 1, 1, 1turn);
  }
}

@keyframes rotate {
  to {
    transform: rotate3d(1, 1, 1, 1turn);
  }
}
