@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --pink: #ff3fb0;
  --hot: #ff0080;
  --cyan: #1ff0ff;
  --yellow: #ffe81a;
  --purple: #8a2cff;
  --lime: #7dff3a;
  --ink: #14001f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: #1a0033;
  color: #fff;
  font-family: 'Comfortaa', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- фон: радужный градиент + солнце + сетка ---------- */
.bg {
  position: fixed; inset: 0; z-index: -3;
  background: linear-gradient(125deg, #ff0099, #7a00ff, #00c8ff, #ff00cc, #ff7a00, #ff0099);
  background-size: 500% 500%;
  animation: bg 16s ease-in-out infinite alternate;
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 0 30%, rgba(20, 0, 40, .75) 100%);
}
@keyframes bg { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.sun {
  position: fixed; left: 50%; bottom: 32vh; z-index: -2;
  width: min(62vmin, 540px); aspect-ratio: 1;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: linear-gradient(#ffe81a, #ff7a00 45%, #ff0080);
  -webkit-mask-image: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 69%, #000 69% 76%, transparent 76% 82%, #000 82% 87%, transparent 87% 93%, #000 93%);
          mask-image: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 69%, #000 69% 76%, transparent 76% 82%, #000 82% 87%, transparent 87% 93%, #000 93%);
  filter: drop-shadow(0 0 50px #ff0080);
  animation: sunpulse 3s ease-in-out infinite;
}
@keyframes sunpulse { 50% { filter: drop-shadow(0 0 90px #ffe81a); } }

.floor {
  position: fixed; left: 0; right: 0; bottom: 0; height: 32vh; z-index: -1;
  perspective: 220px; overflow: hidden;
  background: linear-gradient(#2a0050, #0d0020);
}
.floor::before {
  content: ""; position: absolute; left: -100%; right: -100%; top: 0; height: 220%;
  transform-origin: top; transform: rotateX(62deg);
  background-image:
    linear-gradient(var(--pink) 2px, transparent 2px),
    linear-gradient(90deg, var(--cyan) 2px, transparent 2px);
  background-size: 70px 70px;
  animation: floor 1s linear infinite;
}
.floor::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#2a0050 0, transparent 35%);
}
@keyframes floor { to { background-position: 0 70px; } }

/* ---------- шапка ---------- */
header { text-align: center; padding: 30px 16px 4px; }
.title {
  margin: 0;
  font-family: 'Rubik Mono One', sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 11vw, 124px);
  line-height: 1.05;
  color: #fff;
  cursor: pointer;
  user-select: none;
  text-shadow:
    3px 3px 0 var(--hot),
    6px 6px 0 var(--purple),
    9px 9px 0 var(--cyan),
    12px 12px 0 var(--ink),
    0 0 40px rgba(255, 63, 176, .8);
  animation: hue 5s linear infinite;
}
.title span {
  display: inline-block;
  animation: wave 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .09s);
}
@keyframes wave {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-18px) rotate(-6deg); }
  50% { transform: translateY(0) rotate(4deg) scale(1.08); }
}
@keyframes hue { to { filter: hue-rotate(360deg); } }

.sub {
  margin: 14px 0 0;
  font-family: 'Comic Sans MS', 'Comfortaa', cursive;
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
  animation: subwob 2s ease-in-out infinite;
}
@keyframes subwob { 50% { transform: rotate(-2deg) scale(1.05); } }

.marquee {
  margin: 18px auto 0; max-width: 1100px;
  overflow: hidden; white-space: nowrap;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1.5deg);
  font-family: 'Rubik Mono One', sans-serif; font-size: 14px;
  padding: 8px 0;
}
.marquee-track { display: inline-flex; animation: marq 26s linear infinite; }
.marquee-track span { padding-right: 40px; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee.rev { margin: 0 auto 22px; transform: rotate(1.5deg); background: var(--hot); color: #fff; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 20s; }

/* ---------- слайдшоу ---------- */
main { max-width: 980px; margin: 0 auto; padding: 34px 16px 40px; }

.frame {
  position: relative;
  padding: 10px;
  border-radius: 26px;
  background: conic-gradient(from var(--ang), #ff0080, #ff7a00, #ffe81a, #7dff3a, #1ff0ff, #8a2cff, #ff0080);
  animation: spin 2.5s linear infinite;
  box-shadow: 0 0 30px rgba(255, 0, 128, .7), 0 0 90px rgba(31, 240, 255, .4);
}
@keyframes spin { to { --ang: 360deg; } }

.corner {
  position: absolute; z-index: 3; font-size: 44px; line-height: 1;
  filter: drop-shadow(3px 3px 0 var(--ink));
  animation: twirl 2.6s ease-in-out infinite;
  pointer-events: none;
}
.c1 { top: -22px; left: -18px; }
.c2 { top: -22px; right: -18px; animation-delay: -.6s; }
.c3 { bottom: -18px; left: -18px; animation-delay: -1.2s; }
.c4 { bottom: -18px; right: -18px; animation-delay: -1.8s; }
@keyframes twirl {
  0%, 100% { transform: rotate(-15deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.3); }
}

.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  perspective: 1200px;
  isolation: isolate;
}
.slide {
  position: absolute; inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.slide .blur { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.tiles { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tile { position: absolute; overflow: hidden; }
.rainbow-wipe {
  position: absolute; top: 0; bottom: 0; left: -25%; right: -25%; z-index: 6;
  background: linear-gradient(90deg, #ff0080 0 14%, #ff7a00 14% 28%, #ffe81a 28% 42%, #7dff3a 42% 56%, #1ff0ff 56% 70%, #8a2cff 70% 84%, #ff3fb0 84%);
}

.progress {
  height: 10px; margin-top: 8px;
  background: rgba(0, 0, 0, .55);
  border-radius: 6px; overflow: hidden;
}
.progress i {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(45deg, #fff 0 10px, var(--yellow) 10px 20px);
  background-size: 28px 28px;
  animation: barber .6s linear infinite;
}
@keyframes barber { to { background-position: 28px 0; } }

/* ---------- подписи ---------- */
.info { text-align: center; margin-top: 24px; min-height: 160px; }
.trans {
  display: inline-block;
  font-family: 'Rubik Mono One', sans-serif; font-size: 12px; letter-spacing: .06em;
  color: var(--ink); background: var(--cyan);
  padding: 6px 10px; border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(1.5deg);
}
.nameplate {
  display: inline-block;
  margin: 14px 0 4px; padding: 0 8px;
  font-family: 'Comic Sans MS', 'Comfortaa', cursive;
  font-weight: 900;
  font-size: clamp(34px, 7vw, 66px);
  line-height: 1.1;
  background: linear-gradient(180deg, #fff7a8 0%, #ffe81a 35%, #ff7a00 62%, #ff0080 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  filter: drop-shadow(4px 4px 0 var(--ink)) drop-shadow(0 0 18px rgba(255, 232, 26, .55));
  animation: wordart 2.4s ease-in-out infinite;
  overflow-wrap: anywhere;
}
.nameplate.pop { animation: popin .7s cubic-bezier(.2, 1.6, .4, 1), wordart 2.4s .7s ease-in-out infinite; }
.nameplate.editable { cursor: pointer; }
@keyframes wordart {
  0%, 100% { transform: rotate(-3deg) skewX(-8deg); }
  50% { transform: rotate(3deg) skewX(8deg) scale(1.05); }
}
@keyframes popin {
  from { transform: scale(0) rotate(-30deg); }
  to { transform: rotate(-3deg) skewX(-8deg); }
}
.caption {
  font-family: 'Comic Sans MS', 'Comfortaa', cursive;
  font-size: clamp(16px, 2.6vw, 21px);
  margin: 8px auto 0; max-width: 640px; min-height: 1.5em;
  text-shadow: 2px 2px 0 var(--hot);
}
.caption::after { content: "▌"; animation: blink .8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- кнопки ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Rubik Mono One', sans-serif; font-size: 14px;
  color: var(--ink);
  border: 3px solid var(--ink); border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer; user-select: none;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.b-cyan { background: var(--cyan); }
.b-yellow { background: var(--yellow); }
.b-pink { background: #ff6ec7; }
.b-purple { background: #c79bff; }
.b-green { background: var(--lime); }

/* ---------- превьюшки ---------- */
.thumbs {
  position: relative;
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: visible;
  padding: 20px 8px 16px; margin-top: 14px;
  scrollbar-color: var(--pink) transparent;
}
.thumb {
  position: relative; flex: 0 0 auto;
  width: 96px; height: 72px;
  border-radius: 12px; border: 3px solid var(--ink);
  background: #000; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; display: block; }
.thumb:hover { transform: translateY(-4px) rotate(-4deg); }
.thumb:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.thumb.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--hot), 0 0 22px var(--yellow);
  animation: thumbbounce .8s ease-in-out infinite;
}
@keyframes thumbbounce { 50% { transform: translateY(-6px) rotate(3deg); } }
.thumb .del {
  position: absolute; top: -10px; right: -10px;
  width: 26px; height: 26px; padding: 0;
  border-radius: 50%; border: 2px solid var(--ink);
  background: var(--hot); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer;
  display: none;
}
.thumb:hover .del, .thumb.active .del, .thumb:focus-within .del { display: block; }

.hint { text-align: center; font-size: 13px; opacity: .9; margin: 6px 0 0; text-shadow: 1px 1px 0 var(--ink); }

/* ---------- саундборд ---------- */
.board {
  margin-top: 26px; padding: 18px 16px;
  border: 3px solid var(--ink); border-radius: 18px;
  background: rgba(20, 0, 31, .7);
  box-shadow: 6px 6px 0 var(--ink);
}
.board-title {
  margin: 0 0 14px; text-align: center;
  font-family: 'Rubik Mono One', sans-serif; font-weight: 400; font-size: 18px;
  color: var(--yellow); text-shadow: 3px 3px 0 var(--hot);
}
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mbtn {
  position: relative;
  font: 700 14px 'Comic Sans MS', 'Comfortaa', cursive;
  color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .1s, box-shadow .1s;
}
.mbtn:hover { transform: rotate(0deg) scale(1.06); }
.mbtn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.mbtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mbtn.hit { animation: hit .4s; }
.mbtn.real::after {
  content: 'MP3'; position: absolute; top: -9px; right: -6px;
  font: 10px 'Rubik Mono One', sans-serif;
  background: var(--lime); border: 2px solid var(--ink); border-radius: 6px; padding: 1px 4px;
}
@keyframes hit {
  30% { transform: scale(1.25) rotate(-6deg); }
  60% { transform: scale(.95) rotate(4deg); }
}
.board-hint { font-size: 12px; opacity: .85; text-align: center; margin: 14px 0 0; }

/* ---------- жёсткие эффекты переходов ---------- */
.flash { position: absolute; inset: 0; border-radius: 26px; z-index: 4; pointer-events: none; }
.fxsvg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 7; pointer-events: none;
  filter: drop-shadow(0 0 6px #9cf) drop-shadow(0 0 16px #fff);
}
.slide .fxsvg { z-index: 2; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .6)); }
.fxcanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }
.fxcanvas.noise { image-rendering: pixelated; }
.fxcanvas.matrix { mix-blend-mode: screen; }
.blackhole {
  position: absolute; left: 50%; top: 50%; z-index: 7;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #000 0 28%, #2a0050 38%, #8a2cff 46%, #ff0080 53%, rgba(255, 232, 26, .6) 58%, transparent 68%);
  pointer-events: none;
}
.crosshair {
  position: absolute; left: 50%; top: 50%; z-index: 7;
  width: 38%; pointer-events: none;
  filter: drop-shadow(0 0 6px #ff1744);
}
.stagetext {
  position: fixed; z-index: 68; pointer-events: none; white-space: nowrap;
  font-family: 'Rubik Mono One', sans-serif;
  font-size: clamp(30px, 8vw, 90px);
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 #ff0033, 12px 12px 0 var(--ink);
}
.stagetext.ko { color: var(--yellow); text-shadow: 6px 6px 0 var(--hot), 12px 12px 0 var(--ink); }
.stagetext.headshot { color: #ff1744; text-shadow: 0 0 20px #ff1744, 6px 6px 0 var(--ink); }
.stagetext.wasted {
  font-family: 'Times New Roman', serif; font-weight: 700;
  font-size: clamp(40px, 10vw, 110px);
  color: #d0102b; -webkit-text-stroke: 2px #000;
  text-shadow: 4px 4px 0 #000;
  letter-spacing: .04em;
}

/* ---------- ВЫРВИГЛАЗНОЕ ВЕЗДЕ ---------- */
header, main, footer { position: relative; z-index: 1; }

.rays {
  position: fixed; left: 50%; top: 40%; z-index: -2;
  width: 220vmax; height: 220vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(255, 255, 255, .13) 0 6deg, transparent 6deg 18deg);
  animation: rays 30s linear infinite;
  pointer-events: none;
}
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }

.floaters { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floaters span {
  position: absolute; bottom: -70px;
  opacity: .6;
  animation: floatup linear infinite;
  filter: drop-shadow(2px 2px 0 var(--ink));
}
@keyframes floatup {
  from { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-58vh) rotate(360deg) translateX(40px); }
  to { transform: translateY(-120vh) rotate(720deg); }
}

/* кнопки, превьюшки и саундборд постоянно дёргаются */
.controls .btn { animation: btnwig 2.2s ease-in-out infinite; }
.controls .btn:nth-child(2n) { animation-delay: -1.1s; }
.controls .btn:nth-child(3n) { animation-duration: 1.7s; }
@keyframes btnwig {
  0%, 100% { rotate: -3deg; scale: 1; }
  50% { rotate: 3deg; scale: 1.06; }
}
.btn:hover { filter: hue-rotate(180deg) saturate(1.5); }
.thumb { animation: thumbwave 1.8s ease-in-out infinite; }
.thumb:nth-child(2n) { animation-delay: -.6s; }
.thumb:nth-child(3n) { animation-delay: -1.2s; }
@keyframes thumbwave { 50% { translate: 0 -7px; } }
.mbtn { animation: mpulse 1.6s ease-in-out infinite; }
.mbtn:nth-child(2n) { animation-delay: -.8s; }
@keyframes mpulse { 50% { scale: 1.05; } }

.namewrap { animation: hue 3s linear infinite; }
.frame { animation: spin 2.5s linear infinite, framepulse 1.1s ease-in-out infinite; }
@keyframes framepulse { 50% { scale: 1.012; } }

.title.glitch span { animation: tglitch 1s steps(1) both; }
@keyframes tglitch {
  0% { translate: -10px 0; color: #ff0080; }
  12% { translate: 12px 3px; scale: 1.2 .8; color: var(--cyan); }
  25% { translate: -6px -4px; color: var(--yellow); }
  37% { translate: 8px 0; scale: .9 1.2; color: #fff; }
  50% { translate: -12px 2px; color: var(--lime); }
  62% { translate: 4px -3px; scale: 1.1 .9; color: #ff0080; }
  75% { translate: -3px 1px; color: var(--cyan); }
  100% { translate: 0; scale: 1; color: #fff; }
}

.rain { position: fixed; top: 0; z-index: 66; pointer-events: none; line-height: 1; }
.flytext {
  position: fixed; left: 0; z-index: 67; pointer-events: none; white-space: nowrap;
  font-family: 'Rubik Mono One', sans-serif;
  font-size: clamp(40px, 11vw, 140px);
  background: linear-gradient(90deg, #ff0080, #ff7a00, #ffe81a, #7dff3a, #1ff0ff, #8a2cff, #ff0080);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
  filter: drop-shadow(6px 6px 0 var(--ink));
  animation: rainbowtext .8s linear infinite;
}
@keyframes rainbowtext { to { background-position: 200% 0; } }
.flyby { position: fixed; left: 0; z-index: 67; pointer-events: none; display: flex; align-items: center; }
.flyby .trail {
  width: 45vw; height: 42px; border-radius: 0 20px 20px 0;
  background: linear-gradient(#ff0080 0 17%, #ff7a00 17% 33%, #ffe81a 33% 50%, #7dff3a 50% 67%, #1ff0ff 67% 83%, #8a2cff 83%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
          mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.flyby .cake { font-size: 64px; margin-left: -10px; animation: bob .3s ease-in-out infinite alternate; }
@keyframes bob { to { translate: 0 -8px; rotate: 10deg; } }
.dvd {
  position: fixed; left: 0; top: 0; z-index: 67; pointer-events: none;
  font-family: 'Rubik Mono One', sans-serif; font-size: 26px;
  padding: 10px 16px; border: 4px solid #fff; border-radius: 50%;
  color: #fff; background: rgba(20, 0, 31, .6);
}
.shock {
  position: fixed; z-index: 86; pointer-events: none;
  width: 20px; height: 20px; border-radius: 50%;
  border: 5px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px #ff0080, inset 0 0 20px var(--cyan);
  animation: shock .6s ease-out forwards;
}
@keyframes shock { to { width: 280px; height: 280px; opacity: 0; border-width: 1px; } }

/* спокойный режим */
body.calm .floaters, body.calm .rays { display: none; }
body.calm .controls .btn, body.calm .thumb, body.calm .mbtn, body.calm .namewrap { animation: none; }
body.calm .frame { animation: spin 2.5s linear infinite; }

/* ---------- подвал ---------- */
footer {
  text-align: center; padding: 10px 16px 60px;
  font-size: 12px; text-shadow: 1px 1px 0 var(--ink);
}
.counter-wrap { font-family: 'Rubik Mono One', sans-serif; font-size: 13px; }
.counter { display: inline-flex; gap: 2px; margin: 0 4px; vertical-align: middle; }
.counter b {
  display: inline-block; width: 18px; padding: 3px 0;
  background: #000; color: var(--lime);
  font-family: 'Courier New', monospace; font-size: 16px;
  border: 1px solid #444; text-shadow: 0 0 6px var(--lime);
}

/* ---------- эффекты ---------- */
.drop {
  position: fixed; inset: 0; z-index: 80;
  display: none; place-items: center;
  padding: 16px; text-align: center;
  background: rgba(255, 0, 128, .55);
  backdrop-filter: blur(4px);
  border: 8px dashed var(--yellow);
  font-family: 'Rubik Mono One', sans-serif;
  font-size: clamp(24px, 5vw, 56px);
  text-shadow: 4px 4px 0 var(--ink);
}
.drop.on { display: grid; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .09) 0 1px, transparent 1px 3px);
}

.combo {
  position: fixed; left: 50%; top: 42%; z-index: 70;
  pointer-events: none; white-space: nowrap;
  font-family: 'Rubik Mono One', sans-serif;
  font-size: clamp(34px, 9vw, 96px);
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 var(--hot), 12px 12px 0 var(--ink);
}
.sticker {
  position: fixed; z-index: 65; pointer-events: none;
  font-size: 52px; line-height: 1;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.spark {
  position: fixed; z-index: 85; pointer-events: none;
  font-size: 18px; line-height: 1;
  transform: translate(-50%, -50%);
  animation: spark .9s ease-out forwards;
}
@keyframes spark {
  to { transform: translate(calc(-50% + var(--dx)), 40px) rotate(180deg) scale(0); opacity: 0; }
}

/* ---------- Пинки Пай ---------- */
.pinkie {
  position: fixed; left: 0; top: 0; z-index: 55;
  cursor: pointer; user-select: none;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.pbody { transform-origin: 50% 65%; }
.pbody svg, .pbody img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
  pointer-events: none;
}
.leg rect { transform-box: fill-box; transform-origin: 50% 0; transition: transform .15s; }
.pinkie.air .leg-f rect { transform: rotate(-35deg); }
.pinkie.air .leg-b rect { transform: rotate(32deg); }
.bubble {
  position: absolute; bottom: 100%; left: 50%;
  transform: translate(-50%, -10px) scale(0);
  transform-origin: 50% 100%;
  background: #fff; color: #d6237a;
  border: 3px solid var(--ink); border-radius: 16px;
  padding: 6px 12px; white-space: nowrap;
  font: 700 15px 'Comic Sans MS', 'Comfortaa', cursive;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .25s cubic-bezier(.2, 1.6, .4, 1);
  pointer-events: none;
}
.bubble::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px;
  border: 8px solid transparent; border-top-color: var(--ink);
}
.bubble.show { transform: translate(-50%, -10px) scale(1); }

@media (max-width: 600px) {
  .corner { font-size: 32px; }
  .btn { font-size: 12px; padding: 10px 12px; }
  .thumb { width: 78px; height: 58px; }
}
