/* охота за неоном: пять спрятанных вывесок OPEN и счётчик находок */

.hunt-sign {
  position: absolute;
  z-index: 6;
  width: 94px;
  height: 66px;
  padding: 0;
  border: 1px solid rgba(255, 100, 78, .5);
  border-radius: 4px;
  background:
    linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .055) 47%, transparent 56%),
    radial-gradient(72% 62% at 50% 42%, rgba(255, 60, 40, .16), transparent 72%),
    linear-gradient(160deg, #1e1517, #0b0809 62%, #160f11);
  box-shadow:
    0 0 14px rgba(255, 62, 42, .3),
    0 0 36px rgba(255, 50, 30, .13),
    0 10px 22px rgba(0, 0, 0, .52),
    inset 0 0 18px rgba(255, 40, 20, .12);
  transform: rotate(-7deg);
  cursor: pointer;
  color: #ffdad4;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1;
  text-shadow:
    0 0 4px rgba(255, 143, 122, .9),
    0 0 12px rgba(255, 62, 42, .72),
    0 0 26px rgba(255, 40, 20, .42);
  text-transform: uppercase;
  transition: transform .18s ease, opacity .35s ease, box-shadow .18s ease;
  animation: hunt-breathe 6s ease-in-out infinite;
}

/* кронштейн сверху вместо скотча */
.hunt-sign::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 42px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(#45393c, #1a1416 58%, #100c0d);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
}

/* тонкая трубка-рамка внутри */
.hunt-sign::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 92, 72, .22);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 60, 40, .16);
  pointer-events: none;
}

.hunt-sign:hover,
.hunt-sign:focus-visible {
  transform: rotate(-2deg) scale(1.08);
  box-shadow:
    0 0 22px rgba(255, 62, 42, .45),
    0 0 52px rgba(255, 50, 30, .2),
    0 12px 26px rgba(0, 0, 0, .58),
    inset 0 0 20px rgba(255, 40, 20, .18);
  outline: none;
}

.hunt-sign.is-found {
  opacity: 0;
  transform: rotate(14deg) scale(.7);
  pointer-events: none;
}

@keyframes hunt-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

.hunt-count {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 42;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(226, 69, 44, .35);
  border-radius: 999px;
  background: rgba(13, 11, 12, .82);
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: default;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(192, 50, 36, .12);
}

/* лого-улыбка вместо точки: счётчик стал пятью трубками */
.hunt-count-smile {
  display: inline-block;
  width: 15px;
  height: 8px;
  flex: none;
  color: rgba(255, 126, 104, .62);
}

.hunt-count-smile svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hunt-tubes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hunt-tubes i {
  display: block;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 126, 104, .16);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, .6);
  transition: background .25s ease, box-shadow .25s ease;
}

.hunt-tubes i.is-lit {
  background: #ff7c66;
  box-shadow: 0 0 5px rgba(255, 90, 60, .95), 0 0 12px rgba(255, 50, 30, .45);
}

.hunt-count-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hunt-count.is-complete {
  color: var(--accent-hi);
  border-color: rgba(226, 69, 44, .7);
  cursor: pointer;
  animation: hunt-pulse 2.4s ease-in-out infinite;
}

.hunt-count.is-complete .hunt-count-smile {
  color: #ff9d86;
  filter: drop-shadow(0 0 4px rgba(255, 90, 60, .55));
}

@keyframes hunt-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(192, 64, 47, 0); }
  50% { box-shadow: 0 0 18px rgba(192, 64, 47, .4); }
}

.hunt-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 45;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 18px;
  border-left: 3px solid var(--accent-hi);
  background: rgba(13, 11, 12, .93);
  color: var(--fg);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: .95rem;
  line-height: 1.35;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.hunt-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hunt-final {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 5, 6, .78);
  backdrop-filter: blur(4px);
}

.hunt-final.is-on {
  display: flex;
}

.hunt-final-sign {
  position: relative;
  max-width: 430px;
  padding: 36px 32px 28px;
  border: 1px solid rgba(255, 100, 80, .26);
  border-radius: 6px;
  color: #f4ded9;
  background:
    linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .04) 47%, transparent 56%),
    radial-gradient(90% 70% at 78% 0%, rgba(255, 70, 50, .13), transparent 62%),
    linear-gradient(160deg, #1e1517, #0b0809 60%, #160f11);
  box-shadow:
    0 0 44px rgba(255, 60, 40, .18),
    0 30px 70px rgba(0, 0, 0, .7),
    inset 0 0 60px rgba(90, 10, 8, .32);
  transform: rotate(-1deg);
}

.hunt-final-sign::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 92, 72, .28);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 60, 40, .2), inset 0 0 12px rgba(255, 60, 40, .08);
  pointer-events: none;
}

.hunt-final-kicker {
  margin: 0 0 10px;
  color: #b98b84;
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.hunt-final h2 {
  margin: 0 0 14px;
  color: #ff7a62;
  font-family: 'Pirata One', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 74, 52, .55), 0 0 34px rgba(255, 50, 30, .25);
}

/* в финальном диалоге улыбка уже есть в счётчике, заголовок оставляем чистым */
.hunt-final h2::before,
.hunt-final h2::after { content: none; }

.hunt-final p {
  margin: 0 0 10px;
  color: #ecd5d0;
  font-size: 1rem;
  line-height: 1.5;
}

.hunt-final p.ru {
  color: #bd9c97;
  font-style: italic;
}

.hunt-final-close {
  margin-top: 12px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 110, 90, .45);
  border-radius: 999px;
  background: transparent;
  color: #ffc9c0;
  font-family: inherit;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 60, 40, .14);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hunt-final-close:hover,
.hunt-final-close:focus-visible {
  border-color: rgba(255, 130, 110, .85);
  box-shadow: 0 0 22px rgba(255, 60, 40, .3);
  outline: none;
}

@media (max-width: 560px) {
  .hunt-sign {
    width: 78px;
    height: 56px;
    font-size: .86rem;
    letter-spacing: .16em;
  }
  .hunt-final-sign { padding: 30px 24px 24px; }
  .hunt-count {
    right: 12px;
    bottom: 12px;
    font-size: .6rem;
    padding: 6px 11px;
  }
  .hunt-toast {
    bottom: 84px;
    font-size: .88rem;
  }
}

@media (max-width: 720px) {
  .hunt-sign {
    width: 74px;
    height: 52px;
  }

  .hunt-sign::before {
    width: 32px;
    height: 7px;
    top: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hunt-sign {
    animation: none;
  }
}

/* тихий вход в 404: слово в подвале */
.footer-cage {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(226, 69, 44, .3);
}

.footer-cage:hover,
.footer-cage:focus-visible {
  color: var(--accent-hi);
  border-bottom-color: var(--accent-hi);
  outline: none;
}
