/* Мелочи поверх layout */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--card); padding: .6rem 1rem; border-radius: 8px; color: var(--text); }

/* ---------- Сцена: город ---------- */
.scene-inner { position: absolute; inset: 0; }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #121820 0%, #0d1117 58%, #0a0d12 100%); }
.city-far { position: absolute; bottom: 34%; left: -4%; width: 110%; height: 26%; opacity: .95; }
.city-mid { position: absolute; bottom: 26%; left: -6%; width: 114%; height: 14%; }
.road { position: absolute; bottom: 0; left: 0; right: 0; height: 26%; background: linear-gradient(180deg, #171d26, #10141a); border-top: 1px solid rgba(90,105,125,.3); }
.road::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(120,135,155,.3); }
.road::after {
  content: ""; position: absolute; top: 46%; left: 0; right: 0; height: 3px;
  background-image: repeating-linear-gradient(90deg, rgba(234,240,247,.26) 0 34px, transparent 34px 68px);
}
.sidewalk-lamp { position: absolute; bottom: 25%; }

/* Машина: масштабируется под ширину экрана */
.car-wrap { position: absolute; bottom: 7%; left: 0; width: clamp(240px, 23vw, 430px); will-change: transform; z-index: 15; }
.car-body { width: 100%; height: auto; display: block; }
.wheel { transform-box: fill-box; transform-origin: center; }

/* Номерной знак */
.plate-svg text { font-family: "JetBrains Mono", monospace; font-weight: 700; }

/* Шлагбаум */
.barrier { position: absolute; left: 62%; bottom: 6%; z-index: 12; }
.barrier-pillar { width: 10px; height: 64px; background: #0b0f15; border: 1px solid rgba(255,255,255,.12); border-radius: 3px; position: relative; }
.barrier-pillar .lamp { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
.barrier-pillar .lamp.on { background: var(--green); animation: none; }
.barrier-arm { position: absolute; left: 5px; bottom: 58px; width: 180px; height: 9px; transform-origin: left center; will-change: transform; overflow: hidden; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.barrier-arm .stripes { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #e5534b 0 14px, #f5f7fa 14px 28px); }

/* Второй столбик — сразу за стрелой шлагбаума, а не у края экрана */
.barrier-end { position: absolute; left: calc(62% + 186px); right: auto; bottom: 6%; width: 9px; height: 60px; background: #10161d; border: 1px solid rgba(255,255,255,.08); border-radius: 3px; z-index: 12; }

/* Выноска с номером у машины */
.car-callout {
  position: absolute; top: -86px; left: 50%; transform: translateX(-50%);
  opacity: 0; transition: opacity .25s var(--ease); z-index: 30; text-align: center;
}
.car-callout .ok { display: inline-flex; align-items: center; gap: .35rem; background: var(--green); color: #06120c; font-weight: 800; font-size: .68rem; padding: .22rem .6rem; border-radius: 999px; margin-top: .3rem; white-space: nowrap; }

/* Луна/облака для атмосферы */
.moon { position: absolute; right: 12%; top: 10%; width: 46px; height: 46px; border-radius: 50%; background: #d7dee7; box-shadow: 0 0 40px 12px rgba(215, 222, 231, .14); opacity: .7; }

/* ---------- Hero-бейджи над сценой ---------- */
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.hero-meta .hud-chip { position: static; }

/* Страница статьи */
.article-top { margin-bottom: 1.4rem; }
.article-top a.back { color: var(--text-dim); font-size: .9rem; }
.not-found { text-align: center; padding: 4rem 0; }
