/* Easter egg styles: blinky. Moved verbatim out of static/app.css (egg rebuild); linked right after app.css in index.html. */
/* ================================================================
   Simpsons pack — Blinky celebrate (BrettJephson CodePen EZypKv).
   Pure CSS three-eyed fish; swim R→L mid-viewport ~8s on Done / ?egg=blinky
   (pen faces left — do not mirror). Namespaced .csim-*.
   Pen thick borders assume content-box; CLIO global border-box jagged the outline.
   ================================================================ */
.csim-blinky-wrap {
  position: fixed;
  inset: 0;
  z-index: 8100;
  pointer-events: none;
  overflow: hidden;
}

.csim-blinky-wrap,
.csim-blinky-wrap *,
.csim-blinky-wrap *::before,
.csim-blinky-wrap *::after {
  box-sizing: content-box;
}

.csim-blinky {
  position: fixed;
  top: 50%;
  right: 0;
  width: 400px;
  height: 400px;
  animation: csim-swim 8s linear forwards;
  will-change: transform;
}

.csim-blinky-scale {
  width: 400px;
  height: 400px;
  transform: none; /* pen size + facing; no scaleX flip */
  transform-origin: right center;
}

@keyframes csim-swim {
  from { transform: translate(240px, -50%); }
  to   { transform: translate(-110vw, -50%); }
}

.csim-frame {
  position: relative;
  width: 400px;
  height: 400px;
}

.csim-fish {
  position: absolute;
  top: calc(50% - 40px);
  left: calc(50% - 150px);
}

.csim-fish:before {
  content: '';
  position: absolute;
  width: 160px;
  height: 101px;
  background-color: #E8A614;
  background-clip: content-box;
  top: 16px;
  left: 112px;
  transform-origin: 0 100%;
  transform: rotate(-20deg);
}

.csim-tail {
  position: absolute;
  top: -5px;
  left: 315px;
  transform: rotate(35deg);
}

.csim-tail__section {
  position: absolute;
  width: 25px;
  height: 100px;
  background-color: #E8A614;
  background-clip: content-box;
  border: 3px solid black;
  border-bottom-color: transparent;
  border-radius: 25px 25px 0 0;
  transform-origin: 50% 100%;
}

.csim-tail__section:nth-child(1) {
  transform: rotate(6deg);
  height: 65px;
  left: 5px;
  top: -7px;
  border-top-left-radius: 12px 100%;
  border-top-right-radius: 20px 55%;
}

.csim-tail__section:nth-child(2) {
  transform: rotate(55deg);
  top: 10px;
  left: 30px;
  width: 20px;
  height: 15px;
  border-top-left-radius: 20px 100%;
  border-top-right-radius: 10px 100%;
}

.csim-tail__section:nth-child(3) {
  transform: rotate(25deg);
  height: 20px;
  width: 30px;
  top: 40px;
  left: 40px;
  border-top-left-radius: 0;
  border-left: 0;
  border-top-right-radius: 40px 50%;
}

.csim-tail__section:nth-child(4) {
  height: 30px;
  width: 40px;
  left: 17px;
  top: 50px;
  border-top-left-radius: 45px 100%;
  border-top-right-radius: 10px 100%;
  transform: rotate(60deg);
}

.csim-tail__section:nth-child(5) {
  height: 20px;
  border-top-left-radius: 12px 100%;
  border-top-right-radius: 16px 100%;
  top: 79px;
  left: 21px;
  transform: rotate(145deg);
}

.csim-tail__base {
  position: absolute;
  width: 20px;
  height: 40px;
  left: 285px;
  top: 55px;
  background-color: #E8A614;
  overflow: hidden;
}

.csim-tail__base:after {
  content: '';
  position: absolute;
  border: 2px solid black;
  background-color: #E8A614;
  background-clip: content-box;
  height: 100px;
  width: 80px;
  top: -60px;
  left: -65px;
  border-radius: 40px;
}

.csim-face:before {
  content: '';
  position: absolute;
  top: 14px;
  left: 12px;
  width: 0;
  height: 0;
  border: 150px solid #E8A614;
  border-bottom: 0;
  border-left: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  transform-origin: 0 0;
  transform: scale(1.15, 0.75)
}

.csim-eyes {
  position: absolute;
  top: 10px;
}

.csim-eye {
  position: absolute;
  background-color: white;
  border: 2px solid black;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.csim-eye:before {
  content: '';
  position: absolute;
  z-index: 2;
  box-shadow: 23px 23px 0 2px black;
  background-color: transparent;
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

.csim-eye:after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  z-index: 2;
  background-color: transparent;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: csim-blink 5s infinite;
  animation-delay: 1.8s;
}

@keyframes csim-blink {
  49.999% {
    background-color: transparent;
    border-color: transparent;
  }
  50% {
    background-color: #E8A614;
    border-color: black;
  }
  52% {
    background-color: #E8A614;
    border-color: black;
  }
  52.001% {
    background-color: transparent;
    border-color: transparent;
  }
}

.csim-eye:nth-child(1) {
  left: 0;
  border-left-width: 3px;
  z-index: 10;
}

.csim-eye:nth-child(2) {
  left: 40px;
  top: 3px;
  z-index: 20;
}

.csim-eye:nth-child(3) {
  left: 80px;
  z-index: 30;
}

.csim-eye:nth-child(2):after {
  animation-delay: 2s;
}

.csim-eye:nth-child(3):after {
  animation-delay: 2.2s;
}

.csim-eye-brow {
  position: absolute;
  height: 6px;
  width: 45px;
  overflow: hidden;
}

.csim-eye-brow:before {
  content: '';
  position: absolute;
  width: 45px;
  height: 45px;
  border: 2px solid black;
  border-bottom: 0;
  border-radius: 25px;
  background-color: #E8A614;
  background-clip: content-box;
}

.csim-brow__top .csim-eye-brow:nth-child(1) {
  left: 53px;
  top: -8px;
  transform: rotate(6deg);
}

.csim-brow__top .csim-eye-brow:nth-child(2) {
  left: 98px;
  top: -5px;
  transform: rotate(10deg);
}

.csim-eye-brow--end {
  left: 20px;
  top: -8px;
  width: 30px;
  height: 40px;
}

.csim-eye-brow--end:before {
  width: 45px;
  height: 45px;
  border: 3px solid black;
  border-bottom: 0;
  border-right: 0;
  border-radius: 25px;
}

.csim-brow__bottom .csim-eye-brow {
  transform: scale(1, -1);
  top: 70px;
}

.csim-brow__bottom .csim-eye-brow--end {
  top: 23px;
  left: 4px;
  height: 55px;
  width: 8px;
}

.csim-brow__bottom .csim-eye-brow--end:before {
  width: 20px;
  height: 20px;
  border: 3px solid black;
  border-radius: 20px;
}

.csim-brow__bottom .csim-eye-brow:nth-child(1) {
  left: 40px;
}

.csim-brow__bottom .csim-eye-brow:nth-child(2) {
  left: 88px;
  top: 66px;
  transform: rotate(-10deg) scale(1, -1);
}

.csim-cheek {
  overflow: hidden;
  width: 30px;
  height: 66px;
  position: absolute;
  top: 74px;
  left: -18px;
}

.csim-cheek:before {
  content: '';
  position: absolute;
  border: 3px solid black;
  background-color: #E8A614;
  width: 60px;
  height: 60px;
  border-radius: 100px 0 0 60px;
}

.csim-dimple {
  position: absolute;
  left: 130px;
  top: 95px;
}

.csim-dimple:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 25px;
  border: 3px solid black;
  border-radius: 25px 0 0 25px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  left: -17px;
  top: -27px;
  background-color: #E8A614;
  background-clip: content-box;
}

.csim-dimple:after {
  content: '';
  position: absolute;
  width: 5px;
  height: 0;
  border: 1px solid black;
  transform: rotate(50deg);
}

.csim-lip__bottom {
  width: 30px;
  height: 30px;
  border-radius: 30px 0 0 30px;
  background-color: #E8A614;
  background-clip: content-box;
  border: 3px solid black;
  border-right: 0;
  border-top: 0;
  position: absolute;
  top: 97px;
  left: 77px;
  transform: rotate(-30deg);
}

.csim-lip__top {
  position: absolute;
  top: 92px;
  left: 3px;
  width: 125px;
  height: 40px;
  overflow: hidden;
  transform: rotate(-34deg) scale(1, -1);
}

.csim-lip__top:before {
  position: absolute;
  top: 0;
  left: 25px;
  content: '';
  border: 2px solid black;
  width: 120px;
  height: 75px;
  border-radius: 80px 0 10px 0;
  transform: scale(2, 1);
  background-color: #E8A614;
  background-clip: content-box;
}

.csim-head {
  top: -56px;
  left: 37px;
  position: absolute;
  overflow: hidden;
  width: 100px;
  height: 100px;
}

.csim-head:before {
  content: '';
  border: 3px solid black;
  width: 200px;
  height: 180px;
  position: absolute;
  border-radius: 200px;
  background-color: #E8A614;
  background-clip: content-box;
}

.csim-fin__top {
  position: absolute;
  top: -130px;
  left: 127px;
}

.csim-fin__spine:nth-child(1),
.csim-fin__spine:nth-child(2),
.csim-fin__spine:nth-child(3) {
  background-color: #E8A614;
  background-clip: content-box;
  border-radius: 20px 20px 0 0;
  border: 3px solid black;
  border-right: 0;
  height: 150px;
  position: absolute;
  transform: rotate(35deg);
  width: 10px;
}

.csim-fin__spine:nth-child(1):before,
.csim-fin__spine:nth-child(2):before,
.csim-fin__spine:nth-child(3):before {
  background-color: #E8A614;
  background-clip: content-box;
  border: 3px solid black;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 10px 0 0;
  content: '';
  height: 40px;
  position: absolute;
  width: 5px;
  left: 13px;
  top: -12px;
  transform: rotate(-53deg);
}

.csim-fin__spine:nth-child(2) {
  left: 60px;
  top: 7px;
  height: 90px;
  z-index: -1;
  transform: rotate(80deg);
}

.csim-fin__spine:nth-child(2):after {
  background-color: #E8A614;
  width: 111px;
  height: 110px;
  transform: skew(45deg, -5deg);
  position: absolute;
  content: '';
  left: 16px;
  top: 49px;
}

.csim-fin__spine:nth-child(3) {
  left: 104px;
  top: 51px;
  transform: rotate(100deg);
  z-index: -2;
  height: 70px;
}

.csim-fin__spine:nth-child(3):after {
  background-color: #E8A614;
  width: 111px;
  height: 100px;
  transform: skew(20deg, 20deg);
  position: absolute;
  content: '';
  left: -18px;
  top: 58px;
}

.csim-fin__spine:nth-child(4) {
  position: absolute;
  top: 123px;
  left: 100px;
  transform: rotate(150deg);
  border: 3px solid black;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background-color: #E8A614;
  background-clip: content-box;
  width: 30px;
  height: 30px;
}

.csim-fin__spine:nth-child(4):before {
  background-color: #E8A614;
  background-clip: content-box;
  position: absolute;
  content: '';
  width: 50px;
  height: 50px;
  left: -2px;
  top: 33px;
  transform: skew(50deg, -15deg);
}

.csim-belly {
  position: absolute;
  width: 150px;
  height: 40px;
  left: 111px;
  top: 90px;
  overflow: hidden;
  transform: rotate(-20deg);
}

.csim-belly:before {
  content: '';
  position: absolute;
  top: -67px;
  border: 3px solid black;
  border-radius: 55px;
  background-color: #E8A614;
  background-clip: content-box;
  width: 170px;
  height: 100px;
}

.csim-back {
  position: absolute;
  width: 100px;
  height: 40px;
  left: 158px;
  top: -48px;
  overflow: hidden;
  transform: rotate(65deg);
}

.csim-back:before {
  position: absolute;
  content: '';
  width: 200px;
  height: 200px;
  background-color: #E8A614;
  background-clip: content-box;
  border: 3px solid black;
  border-radius: 100px;
}

.csim-back__small {
  position: absolute;
  left: 257px;
  top: 34px;
  width: 30px;
  height: 30px;
  overflow: hidden;
}

.csim-back__small:before {
  content: '';
  position: absolute;
  background-color: #E8A614;
  background-clip: content-box;
  border: 3px solid black;
  border-top: 0;
  width: 30px;
  height: 40px;
  top: -23px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 30px;
}

.csim-back__spine {
  z-index: 1;
  position: absolute;
  border: 3px solid black;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  background-color: #E8A614;
  background-clip: content-box;
  width: 44px;
  height: 40px;
  left: 214px;
  top: 15px;
  transform: rotate(66deg);
}

.csim-tail__color-fill {
  position: absolute;
}

.csim-tail__color-fill:before {
  content: '';
  position: absolute;
  background-color: #E8A614;
  width: 30px;
  height: 56px;
  top: 35px;
  left: 307px;
  transform-origin: top right;
  transform: rotate(5deg);
}

.csim-tail__color-fill:after {
  top: 69px;
  left: 267px;
  content: '';
  position: absolute;
  background-color: #E8A614;
  width: 30px;
  height: 41px;
  transform-origin: bottom right;
  transform: rotate(63deg);
}

.csim-tail__connect-color-fill {
  position: absolute;
  width: 80px;
  height: 60px;
  top: 46px;
  left: 250px;
  background-color: #E8A614;
}

.csim-tail__connect {
  position: absolute;
  left: 250px;
  top: 84px;
  width: 30px;
  height: 30px;
  overflow: hidden;
  transform:rotate(220deg);
}

.csim-tail__connect:before {
  content: '';
  position: absolute;
  background-color: #E8A614;
  background-clip: content-box;
  border: 3px solid black;
  border-top: 0;
  width: 25px;
  height: 40px;
  top: -23px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 30px;
  border-bottom-right-radius: 30px 100%;
  border-bottom-left-radius: 30px 100%;
}

.csim-fin__side {
  position: absolute;
}

.csim-fin__side:nth-child(1) {
  width: 40px;
  height: 30px;
  left: 86px;
  top: 114px;
}

.csim-fin__side:nth-child(1):before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #E8A614;
  left: 20px;
}

.csim-fin__side:nth-child(2) {
  left: 162px;
  top: 105px;
  z-index: 99;
}

.csim-fin__side:nth-child(2):before {
  content: '';
  position: absolute;
  width: 55px;
  height: 45px;
  background-color: #E8A614;
  background-clip: content-box;
  border: 3px solid black;
  border-radius: 0 20px 30px 30px;
  border-top-color: #E8A614;
  transform: rotate(-21deg);
  top: -5px;
}

.csim-fin__hand {
  position: absolute;
  top: 9px;
  left: 7px;
}

.csim-fin__side:nth-child(1) .csim-fin__hand {
  transform: rotate(25deg);
  top: -15px;
  left: 20px;
}

.csim-fin__finger {
  position: absolute;
  border-radius: 50%;
  border: 3px solid black;
  border-top-color: transparent;
  border-left-color: transparent;
  background-color: #E8A614;
  background-clip: content-box;
  width: 20px;
  height: 20px;
}

.csim-fin__finger:nth-child(1) {
  left: 36px;
  top: 0;
  transform: rotate(-25deg);
}

.csim-fin__finger:nth-child(2) {
  left: 30px;
  top: 17px;
  transform: rotate(13deg);
}

.csim-fin__finger:nth-child(3) {
  left: 13px;
  top: 26px;
  transform: rotate(45deg);
}

.csim-fin__finger:nth-child(4) {
  left: -6px;
  top: 20px;
  transform: rotate(86deg);
}

.csim-fin__side:nth-child(1) .csim-fin__finger:nth-child(1) {
  border-width: 2px;
  left: 28px;
  top: 3px;
  z-index: 99;
}

.csim-fin__side:nth-child(1) .csim-fin__finger:nth-child(2) {
  left: 29px;
  top: 16px;
  border-bottom-right-radius: 15px 50%;
  border-bottom-left-radius: 30px 100%;
  transform: rotate(-15deg);
}

.csim-fin__side:nth-child(1) .csim-fin__finger:nth-child(3) {
  top: 25px;
  left: 15px;
  width: 18px;
  border-bottom-left-radius: 17px 60%;
  border-bottom-right-radius: 34px 70%;
  border-left-color: black;
  border-right-color: transparent;
  transform: rotate(-40deg);
}

.csim-fin__side:nth-child(1) .csim-fin__finger:nth-child(4) {
  height: 15px;
  width: 26px;
  top: 23px;
}

@media (prefers-reduced-motion: reduce) {
  .csim-blinky-wrap { display: none; }
}
