.home-notice-marquee {
  background: #1f56ff;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  height: 1.7em;
}

.home-notice-marquee span {
  position: absolute;
  top: 0;
  left: 0;
  padding-left: 100%;
  white-space: nowrap;
  animation: homeNoticeScroll 70s linear infinite;
}

@keyframes homeNoticeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-200%);
  }
}

.fun-emoji-runner {
  position: fixed;
  left: calc(100vw - 110px);
  top: calc(100vh - 130px);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  z-index: 5000;
  user-select: none;
  pointer-events: auto;
  transition: left 0.18s ease, top 0.18s ease, transform 0.18s ease;
}

.fun-emoji-runner.emoji-disabled {
  display: none;
}

.fun-emoji-toggle {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.44);
  color: #fff;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5001;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fun-emoji-toggle::before {
  content: attr(data-label);
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0.95;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.fun-emoji-toggle:hover,
.fun-emoji-toggle:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.fun-emoji-toggle:hover::before,
.fun-emoji-toggle:focus-visible::before {
  opacity: 1;
}

.fun-emoji-runner.human-stage-0 {
  border-radius: 999px;
}

.fun-emoji-runner.human-stage-1 {
  border-radius: 26px;
  background: rgba(255, 250, 245, 0.97);
}

.fun-emoji-runner.human-stage-2 {
  border-radius: 18px;
  width: 68px;
  height: 68px;
  font-size: 2.08rem;
  background: rgba(255, 247, 238, 0.98);
}

.fun-emoji-runner.human-stage-3 {
  border-radius: 14px;
  width: 72px;
  height: 72px;
  font-size: 2.2rem;
  background: rgba(255, 242, 232, 0.98);
}

.fun-emoji-runner.human-stage-4 {
  border-radius: 12px;
  width: 76px;
  height: 76px;
  font-size: 2.35rem;
  background: rgba(255, 236, 224, 0.99);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.fun-emoji-taunt {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 6px 9px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fun-emoji-taunt.show {
  opacity: 1;
}

.fun-emoji-chrono {
  position: absolute;
  right: -8px;
  top: -10px;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fun-emoji-chrono.show {
  opacity: 1;
  transform: scale(1);
}

.fun-emoji-runner.teleporting {
  animation: funEmojiTeleportFlash 0.26s ease;
}

.fun-emoji-runner.sleeping {
  opacity: 0.78;
  transform: scale(0.94) rotate(-6deg);
  filter: grayscale(0.1);
  animation: funEmojiSleepBreath 2.4s ease-in-out infinite;
}

.fun-emoji-runner.sleep-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes funEmojiSleepBreath {
  0%,
  100% {
    transform: scale(0.94) rotate(-6deg);
  }
  50% {
    transform: scale(1) rotate(-6deg);
  }
}

@keyframes funEmojiTeleportFlash {
  0% {
    opacity: 1;
    transform: scale(1.15) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(93, 255, 134, 0));
  }
  35% {
    opacity: 0.15;
    transform: scale(0.55) rotate(-20deg);
    filter: drop-shadow(0 0 10px rgba(93, 255, 134, 0.95));
  }
  100% {
    opacity: 1;
    transform: scale(1.05) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(93, 255, 134, 0));
  }
}

.fake-hack-overlay {
  position: fixed;
  inset: 0;
  z-index: 4990;
  background: rgba(0, 24, 0, 0.94);
  color: #5dff86;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: monospace;
  letter-spacing: 0.04em;
}

.fake-hack-overlay.show {
  opacity: 1;
}

.fake-hack-title {
  font-size: 2.1rem;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(93, 255, 134, 0.7);
  animation: fakeHackBlink 0.35s steps(2) infinite;
}

.fake-hack-warning {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  color: #c9ffd7;
  text-shadow: 0 0 10px rgba(93, 255, 134, 0.55);
  max-width: min(90vw, 780px);
  width: min(90vw, 780px);
  z-index: 1;
}

.fake-hack-lines {
  width: min(88vw, 760px);
  min-height: 140px;
  max-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(93, 255, 134, 0.45);
  background: rgba(3, 40, 3, 0.55);
  padding: 12px;
  font-size: 0.86rem;
  line-height: 1.25;
}

@keyframes fakeHackBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.45;
  }
}

body.fake-hack-mode {
  filter: hue-rotate(55deg) saturate(1.45) contrast(1.08);
}

@media (max-width: 700px) {
  .fun-emoji-runner {
    width: 52px;
    height: 52px;
    font-size: 1.65rem;
  }

  .fun-emoji-toggle {
    width: 24px;
    height: 24px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
  }

  .fun-emoji-toggle::before {
    font-size: 0.76rem;
    padding: 5px 8px;
  }

  .fun-emoji-taunt {
    font-size: 0.74rem;
  }
}
