/* loofy mascot layer */
#loofy-layer { position: fixed; inset: 0; z-index: 22; pointer-events: none; overflow: hidden; }
#loofy-layer.is-top { z-index: 33; }
#loofy-layer.is-hidden { display: none; }
#loofy {
  position: absolute; left: 0; top: 0;
  image-rendering: crisp-edges; image-rendering: pixelated;
  pointer-events: auto; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
#loofy-bubble {
  position: absolute; left: 0; top: 0;
  max-width: 260px; padding: 9px 14px;
  border-radius: 16px; border: 1px solid rgba(126, 232, 255, 0.25);
  background: rgba(14, 24, 58, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #e6faff; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none; white-space: normal; width: max-content;
}
#loofy-bubble.show { opacity: 1; }
#loofy-layer.is-summoned #loofy-bubble {
  max-width: min(720px, calc(100vw - 64px)); padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-family: Unbounded, Manrope, sans-serif; font-weight: 500;
  font-size: clamp(20px, 3.2vmin, 32px); line-height: 1.25; letter-spacing: -0.01em;
  color: #f4f0e8; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  transition: opacity 0.35s ease;
}
#loofy-heard {
  position: absolute; left: 0; top: 0; max-width: min(640px, calc(100vw - 64px)); width: max-content;
  color: rgba(230, 240, 255, 0.55); font-size: clamp(14px, 2vmin, 18px); font-weight: 500; text-align: center;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
#loofy-heard.show { opacity: 1; }
#loofy-ask { position: absolute; left: 0; top: 0; display: flex; gap: 12px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#loofy-ask.show { opacity: 1; pointer-events: auto; }
#loofy-ask button {
  min-width: 120px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid rgba(126, 232, 255, 0.35);
  background: rgba(126, 232, 255, 0.12); color: #e6faff; font: 600 17px Manrope, sans-serif; cursor: pointer;
}
#loofy-ask button.yes { background: #7ee8ff; color: #0e183a; border-color: #7ee8ff; }
#loofy-layer.is-summoned #loofy-heard ~ #loofy-ask.show { }

#loofy-dim {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 40, 100, 0.55), rgba(5, 8, 18, 0.88) 70%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.45s ease; pointer-events: none;
}
#loofy-layer.is-summoned #loofy-dim { opacity: 1; pointer-events: auto; }

#loofy-room {
  position: absolute; left: 50%; top: 50%;
  width: min(820px, calc(100% - 48px));
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: center;
  padding: 22px; border-radius: 28px;
  background: rgba(12, 20, 46, 0.94); border: 1px solid rgba(126, 232, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -46%) scale(0.92); opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2, .9, .3, 1.2);
  pointer-events: none;
}
#loofy-room.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#loofy-layer.is-working #loofy { opacity: 0; transition: opacity 0.25s; }
#loofy-layer.is-working #loofy-bubble { opacity: 0; }
#loofy-room canvas { width: 100%; image-rendering: crisp-edges; image-rendering: pixelated; border-radius: 16px; display: block; }
.lr-kicker { margin: 0 0 14px; color: #7ee8ff; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lr-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lr-steps li {
  position: relative; padding-left: 30px; color: rgba(230, 250, 255, 0.45); font-size: 16px; font-weight: 600;
  transition: color 0.3s;
}
.lr-steps li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 5px;
  border: 2px solid rgba(126, 232, 255, 0.3); box-sizing: border-box;
}
.lr-steps li.now { color: #e6faff; }
.lr-steps li.now::before { border-color: #7ee8ff; animation: loofyPulse 0.9s ease-in-out infinite; }
.lr-steps li.done { color: rgba(230, 250, 255, 0.8); }
.lr-steps li.done::before { background: #7ee8ff; border-color: #7ee8ff; }
.lr-steps li.done::after { content: ""; position: absolute; left: 5px; top: 5px; width: 5px; height: 8px; border: solid #0e183a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes loofyPulse { 50% { box-shadow: 0 0 0 4px rgba(126, 232, 255, 0.2); } }
@media (max-width: 700px) { #loofy-room { grid-template-columns: 1fr; } }

