/* 15. страница 404: пустая клетка за кулисами */

.cage-page {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 26px 0 40px;
}

.cage-scene {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 0 10px;
}

.cage {
  position: relative;
  width: 286px;
  height: 320px;
  border: 5px solid #6a5a4f;
  border-bottom-width: 9px;
  border-radius: 160px 160px 8px 8px;
  background:
    repeating-linear-gradient(90deg, rgba(196, 180, 162, .5) 0 3px, rgba(120, 104, 92, .16) 3px 5px, transparent 5px 27px),
    radial-gradient(120% 90% at 50% 100%, rgba(120, 40, 24, .3), transparent 62%),
    linear-gradient(180deg, #120e0e, #0b0808);
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, .8),
    inset 0 -22px 30px rgba(80, 20, 12, .25),
    0 26px 44px rgba(0, 0, 0, .55);
}

.cage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -26px;
  width: 40px;
  height: 26px;
  transform: translateX(-50%);
  border: 4px solid #6a5a4f;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(120, 104, 92, .25), transparent);
}

.cage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 330px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: linear-gradient(180deg, #5d4e45, #3b312b);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .6);
}

.cage-gap {
  position: absolute;
  top: 46%;
  right: -5px;
  width: 34px;
  height: 92px;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, #050404 55%);
  filter: blur(.4px);
  opacity: .9;
}

.cage-note {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 168px;
  padding: 16px 16px 12px;
  transform: translateX(-50%) rotate(-4deg);
  color: #2a1712;
  background: linear-gradient(168deg, #f1e8d4, #dfd3b7 62%, #cfc0a0);
  clip-path: polygon(2% 0, 98% 2%, 100% 96%, 95% 100%, 8% 97%, 0 92%);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .55);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: .92rem;
  line-height: 1.35;
  text-align: center;
}

.cage-note::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 62px;
  height: 15px;
  transform: translateX(-50%) rotate(2deg);
  background: linear-gradient(100deg, rgba(228, 214, 184, .45), rgba(240, 229, 203, .85) 30%, rgba(236, 224, 200, .8) 70%, rgba(228, 214, 184, .4));
  opacity: .9;
}

.cage-note em {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  color: rgba(110, 40, 28, .85);
}

.cage-floor {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 12px;
  height: 12px;
  background:
    repeating-linear-gradient(78deg, rgba(190, 168, 130, .5) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(102deg, rgba(160, 140, 106, .4) 0 2px, transparent 2px 11px);
  opacity: .65;
}

.cage-text h1 {
  margin: 0 0 6px;
  font-family: 'Pirata One', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: .95;
  color: #a83224;
  text-shadow: 0 0 24px rgba(190, 52, 28, .45);
}

/* маленькая неоновая табличка на 404: сигнала нет, но улыбка горит */
.cage-sign {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 14px;
  padding: 8px 14px 9px;
  border: 1px solid rgba(255, 92, 72, .42);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(30, 16, 16, .95), rgba(11, 8, 9, .96));
  box-shadow: 0 0 20px rgba(255, 60, 40, .14), inset 0 0 14px rgba(255, 60, 40, .05);
  color: #ffb4a3;
  font-family: 'Pirata One', Georgia, serif;
  font-size: .92rem;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 80, 55, .6);
}

.cage-sign::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 92, 72, .16);
  border-radius: 2px;
  pointer-events: none;
}

.cage-sign-smile {
  display: inline-block;
  width: 1.5em;
  height: .75em;
  color: #ff8b74;
  filter: drop-shadow(0 0 5px rgba(255, 80, 55, .7));
}

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

.cage-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.cage-text p {
  max-width: 40ch;
  color: var(--muted);
}

.cage-text .lead-big {
  color: var(--fg);
  font-size: 1.12rem;
}

.cage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cage-links a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--fg);
  text-decoration: none;
  font-size: .95rem;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.cage-links a:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(153, 45, 34, .16);
}

.cage-links a.accent {
  border-color: rgba(153, 45, 34, .7);
  color: #f0d9d2;
  background: rgba(153, 45, 34, .18);
}

@media (max-width: 820px) {
  .cage-page {
    grid-template-columns: 1fr;
    gap: 34px;
    justify-items: center;
    text-align: center;
  }
  .cage-text p { max-width: 46ch; }
  .cage { width: 250px; height: 284px; }
  .cage-note { width: 150px; font-size: .86rem; }
  .cage::after { width: 288px; }
  .cage-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
}
