/* Неоновые вывески за кулисами: тёмные панели, стеклянные трубки, багровый свет.
   Разметка - в index.html, появление строк - в site.js (пункт 11).
   Отдельный файл, потому что style.css в смешанной кодировке. */

.signs-rail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.mask-section { position: relative; }

.sign-shell {
  position: relative;
  flex: 1 1 280px;
  width: auto;
  max-width: 426px;
  transform: rotate(-1.1deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.sign-shell--left { transform: rotate(-1.1deg); }
.sign-shell--right { transform: rotate(.9deg); }

.sign-shell--left:hover { transform: rotate(-.25deg) translateY(-4px); }
.sign-shell--right:hover { transform: rotate(.2deg) translateY(-4px); }

/* сама вывеска: дымчатая панель, тонкая кромка, багровое свечение вокруг */
.neon-sign {
  --neon: 255, 74, 52;
  --neon-soft: 255, 133, 111;
  --neon-fill: #ffd8cf;
  position: relative;
  padding: 46px 40px 38px;
  border: 1px solid rgba(255, 108, 86, .16);
  border-radius: 5px;
  background:
    linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, .035) 44%, rgba(255, 255, 255, .008) 50%, transparent 58%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px),
    radial-gradient(95% 75% at 78% 0%, rgba(var(--neon), .09), transparent 60%),
    radial-gradient(75% 60% at 45% 48%, rgba(var(--neon), .10), transparent 68%),
    linear-gradient(160deg, #1c1416 0%, #0c090a 55%, #150e10 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .025),
    inset 0 0 52px rgba(90, 12, 8, .3),
    0 22px 44px rgba(0, 0, 0, .58),
    0 0 48px rgba(var(--neon), .18),
    0 0 120px rgba(var(--neon), .09);
  transition: box-shadow .4s ease, filter .4s ease;
}

.neon-sign--rose {
  --neon: 255, 92, 124;
  --neon-soft: 255, 157, 174;
}

.neon-sign--bone {
  --neon: 255, 168, 124;
  --neon-soft: 255, 211, 181;
  --neon-fill: #fff7ee;
}

/* фиолетовая вывеска Марии: тот же акрил, другая трубка */
.neon-sign--violet {
  --neon: 177, 116, 255;
  --neon-soft: 208, 168, 255;
  --neon-fill: #f2e6ff;
}

.neon-sign--violet .sign-sign {
  color: #ddc8ff;
  text-shadow:
    0 0 4px rgba(var(--neon-soft), .8),
    0 0 12px rgba(var(--neon), .62),
    0 0 26px rgba(var(--neon), .3);
}

/* трубка-рамка: только у больших вывесок, чтобы мелкие не рябили */
.neon-sign--framed::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 0;
  border: 1px solid rgba(var(--neon), .34);
  border-radius: 3px;
  box-shadow:
    0 0 10px rgba(var(--neon), .24),
    inset 0 0 12px rgba(var(--neon), .1);
  pointer-events: none;
}

/* кронштейн над панелью: две жестянки и винты */
.sign-mount {
  position: absolute;
  z-index: 2;
  top: -10px;
  left: 50%;
  width: 88px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(#473b3e, #251d1f 46%, #110d0e);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, .62),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.sign-mount::before,
.sign-mount::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8d7b7e, #3b3032 55%, #171112);
  box-shadow: 0 0 1px rgba(0, 0, 0, .9);
}

.sign-mount::before { left: 8px; }
.sign-mount::after { right: 8px; }

/* табличка с подписью: гравированный металл, не неон */
.sign-plate {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 13px 4px;
  border: 1px solid #3c3134;
  border-radius: 2px;
  background: linear-gradient(#2b2326, #141011);
  color: #cbb8b4;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .26em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.sign-plate::before,
.sign-plate::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: #65575a;
  box-shadow: inset 0 0 1px #0a0809;
}

.sign-plate::before { left: 5px; }
.sign-plate::after { right: 5px; }

/* строки: стеклянные трубки, почти белое ядро и багровый ореол */
.sign-line {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--neon-fill);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.08rem, 1.85vw, 1.3rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: .012em;
  line-height: 1.42;
  text-shadow:
    0 0 1px rgba(255, 255, 255, .95),
    0 0 3px rgba(var(--neon-soft), .95),
    0 0 8px rgba(var(--neon), .9),
    0 0 18px rgba(var(--neon), .62),
    0 0 34px rgba(var(--neon), .36),
    0 0 60px rgba(var(--neon), .18);
  opacity: 1;
  transform: none;
  transition: opacity .3s linear, transform .55s cubic-bezier(.2, .7, .2, 1);
}

/* без JS строки видны сразу; с JS гасим их до зажигания */
html.signs-visible .sign-line:not(.on) { opacity: 0; transform: translateY(4px); }

.sign-line:last-of-type { margin-bottom: 0; }

/* зажигание: трубка дёргается, потом держит свет */
.sign-line.on {
  opacity: 1;
  transform: none;
  animation: sign-ignite .72s steps(7, end) 1;
}

@keyframes sign-ignite {
  0% { opacity: 0; }
  20% { opacity: .92; }
  28% { opacity: .3; }
  44% { opacity: 1; }
  56% { opacity: .62; }
  70% { opacity: .96; }
  100% { opacity: 1; }
}

/* крик в начале второй вывески: готическая трубка, горячее и крупнее */
.sign-yell {
  margin-bottom: 16px;
  color: #ffd8d1;
  font-family: 'Pirata One', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 1.92rem);
  font-style: normal;
  letter-spacing: .012em;
  line-height: 1.16;
  text-shadow:
    0 0 1px rgba(255, 255, 255, .95),
    0 0 5px rgba(var(--neon-soft), .95),
    0 0 13px rgba(var(--neon), .9),
    0 0 28px rgba(var(--neon), .56),
    0 0 52px rgba(var(--neon), .28);
}

/* протянутое "эээ" - потухшая трубка, зачёркнутая */
.sign-drag {
  color: rgba(255, 195, 185, .26);
  font-style: normal;
  letter-spacing: .16em;
  text-decoration: line-through;
  text-decoration-color: rgba(126, 32, 24, .95);
  text-decoration-thickness: 2px;
  text-shadow: 0 0 7px rgba(var(--neon), .2);
}

/* ударное слово - белое ядро и подчёркнутая трубка */
.sign-hot {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(var(--neon), .88);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 1),
    0 0 6px rgba(var(--neon-soft), 1),
    0 0 14px rgba(var(--neon), .9),
    0 0 30px rgba(var(--neon), .58);
}

/* подпись внизу: тонкая трубка-линия и светящееся имя */
.sign-sign {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: #ffc6bd;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.04rem;
  font-style: italic;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: right;
  text-shadow:
    0 0 4px rgba(var(--neon-soft), .8),
    0 0 12px rgba(var(--neon), .62),
    0 0 26px rgba(var(--neon), .3);
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
}

html.signs-visible .sign-sign:not(.on) { opacity: 0; transform: translateY(3px); }

.sign-sign::before {
  content: "";
  display: block;
  width: min(120px, 46%);
  height: 1px;
  margin: 0 0 8px auto;
  background: linear-gradient(90deg, transparent, rgba(var(--neon), .92));
  box-shadow: 0 0 8px rgba(var(--neon), .75);
}

.sign-sign.on { opacity: 1; transform: none; }

/* вывеска чуть разгорается под курсором */
.sign-shell:hover .neon-sign {
  filter: brightness(1.07);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .03),
    inset 0 0 56px rgba(110, 16, 10, .34),
    0 24px 48px rgba(0, 0, 0, .6),
    0 0 58px rgba(var(--neon), .2),
    0 0 140px rgba(var(--neon), .1);
}

/* редкая просадка напряжения: одна вывеска в углу живёт своей жизнью */
.sign-shell--right .neon-sign { animation: sign-sag 15s 4s infinite; }

@keyframes sign-sag {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .9; }
  93.6% { opacity: 1; }
  95.4% { opacity: .82; }
  96% { opacity: 1; }
}

@keyframes sign-flicker {
  0%, 100% { opacity: 1; }
  47% { opacity: .93; }
  48% { opacity: 1; }
  82% { opacity: .88; }
  83.5% { opacity: 1; }
}

main { position: relative; }

/* вывески в полях шире колонки, поэтому гасим горизонтальный вылет без создания скролла */
html.signs-visible { overflow-x: clip; }

.signs-cloud {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: 1;
  display: none;
  pointer-events: none;
}

/* на широких экранах вывески уезжают в пустые поля по бокам сцены */
@media (min-width: 1560px) {
  .signs-rail {
    position: absolute;
    top: 34px;
    left: calc(50% - 50vw + 24px);
    right: calc(50% - 50vw + 24px);
    margin-top: 0;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .sign-shell {
    flex: none;
    width: 300px;
    max-width: 300px;
  }

  .neon-sign { padding: 42px 32px 34px; }
  .sign-line { font-size: 1.06rem; }

  /* разбросанные по полям вывески: видны только на широких экранах */
  .signs-cloud { display: block; }
}

.sign-float {
  position: absolute;
  width: 300px;
}

.sign-float .sign-shell {
  flex: none;
  width: 300px;
  max-width: 300px;
}

.signs-cloud .neon-sign {
  padding: 34px 26px 30px;
  transition: opacity .35s ease;
}

.signs-cloud .neon-sign.is-fading { opacity: 0; }
.signs-cloud .sign-plate { margin-bottom: 12px; padding: 4px 11px 3px; font-size: .52rem; letter-spacing: .2em; }
.signs-cloud .sign-line { margin-bottom: 7px; font-size: .93rem; line-height: 1.4; }
.signs-cloud .sign-sign { margin-top: 14px; font-size: .9rem; }

/* в облаке строки уже горят: зажигание оставляем только двум большим */
.signs-cloud .sign-line,
.signs-cloud .sign-sign { opacity: 1; transform: none; animation: none; }

/* мелкие вывески мигают по одной, будто где-то плохой контакт */
.signs-cloud .sign-float:nth-child(4n) .neon-sign { animation: sign-flicker 13s 3s infinite; }
.signs-cloud .sign-float:nth-child(4n + 1) .neon-sign { animation: sign-flicker 19s 7s infinite; }

@media (max-width: 860px) {
  .signs-rail { gap: 44px; justify-content: center; }
  .sign-shell { width: min(440px, 100%); }
  .sign-shell--left { transform: rotate(-.7deg); }
  .sign-shell--right { transform: rotate(.6deg); }
}

@media (max-width: 720px) {
  .neon-sign { padding: 34px 22px 30px; }
  .sign-plate { margin-bottom: 14px; padding: 4px 11px 3px; font-size: .54rem; letter-spacing: .22em; }
  .sign-line { font-size: .99rem; }
  .sign-yell { font-size: 1.34rem; }
  .sign-sign { font-size: .96rem; }
  .sign-mount { width: 70px; height: 11px; top: -9px; }
}

@media (prefers-reduced-motion: reduce) {
  .sign-shell,
  .sign-shell--left,
  .sign-shell--right,
  .sign-shell--left:hover,
  .sign-shell--right:hover { transform: none; transition: none; }
  .sign-line,
  .sign-line.on { opacity: 1; transform: none; transition: none; animation: none; }
  .sign-sign,
  .sign-sign.on { opacity: 1; transform: none; transition: none; }
  .neon-sign,
  .sign-shell--right .neon-sign,
  .signs-cloud .sign-float .neon-sign { animation: none; }
  .sign-shell:hover .neon-sign { filter: none; }
}

/* именная вывеска страницы: одна на герой, в правом поле */
.hero { position: relative; }

.page-sign {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -40px;
  width: 248px;
  transform: translateY(-50%) rotate(2.2deg);
}

.page-sign .neon-sign {
  padding: 36px 26px 28px;
  text-align: left;
}

.page-sign .sign-line { font-size: 1.45rem; }
.page-sign .sign-sign { margin-top: 16px; }

.page-sign--left {
  right: auto;
  left: calc(50% - 50vw + 24px);
}

.page-sign--right {
  right: calc(50% - 50vw + 24px);
}

.page-sign--right .sign-line {
  font-size: 1.3rem;
}

@media (max-width: 1240px) {
  .page-sign { display: none; }
}

/* золотая табличка под ключевым артом Driven By Desire */
.stage-plaque {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(360px, 100%);
  margin: 18px auto 0;
  padding: 13px 24px 12px;
  border: 1px solid rgba(201, 162, 74, .55);
  border-radius: 3px;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(201, 162, 74, .10), transparent 65%),
    linear-gradient(#1b1710, #0d0b08);
  box-shadow:
    0 0 34px rgba(201, 162, 74, .14),
    0 0 90px rgba(201, 162, 74, .07),
    inset 0 0 22px rgba(201, 162, 74, .05);
  color: #e7cd92;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(235, 209, 150, .55),
    0 0 16px rgba(201, 162, 74, .35);
}

.stage-plaque::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 162, 74, .18);
  pointer-events: none;
}

@media (max-width: 720px) {
  .stage-plaque {
    padding: 11px 14px 10px;
    font-size: .72rem;
    letter-spacing: .14em;
  }
}
