/* RUSTDEEP / ГЛУБИНА - Официальный терминал игры */
:root {
  --bg-color: #08090b;
  --panel-bg: rgba(14, 17, 22, 0.88);
  --panel-border: #2c3540;
  --panel-border-glow: rgba(220, 140, 40, 0.35);
  
  --amber-primary: #f59e0b;
  --amber-glow: #d97706;
  --amber-dim: #78350f;
  --amber-bright: #fbbf24;

  --green-term: #10b981;
  --green-glow: #059669;

  --red-warn: #ef4444;
  --cyan-ice: #06b6d4;

  --text-main: #d1d5db;
  --text-muted: #6b7280;
  --text-bright: #f3f4f6;

  --font-mono: "Share Tech Mono", "JetBrains Mono", "Courier New", monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  overflow-x: hidden;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* CRT Эффекты */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.28) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
}

.crt-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.85);
}

/* Навигационная панель */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 9, 11, 0.95);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  background: var(--amber-dim);
  color: var(--amber-bright);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid var(--amber-glow);
  letter-spacing: 1px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--amber-bright);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s, text-shadow 0.2s;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--amber-bright);
  text-shadow: 0 0 8px var(--amber-glow);
}

/* Ссылка на Базу Знаний в навигационной панели */
.nav-links a.nav-wiki-link {
  color: var(--amber-bright);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 3px;
  background: rgba(245, 158, 11, 0.08);
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.nav-links a.nav-wiki-link:hover {
  color: #ffffff;
  border-color: var(--amber-bright);
  background: rgba(245, 158, 11, 0.22);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  text-shadow: 0 0 10px var(--amber-bright);
  transform: translateY(-1px);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-ctrl {
  background: #151a21;
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-ctrl:hover {
  border-color: var(--amber-glow);
  color: var(--amber-bright);
}

.btn-ctrl.active {
  background: var(--amber-dim);
  border-color: var(--amber-bright);
  color: var(--amber-bright);
}

/* Бегущая строка радиоэфира */
.radio-ticker {
  background: #0d1117;
  border-bottom: 1px solid #1f2937;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-label {
  color: var(--amber-bright);
  background: #231908;
  border: 1px solid var(--amber-glow);
  padding: 0.1rem 0.4rem;
  margin-right: 0.75rem;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ticker-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-bright);
  animation: pulse 1.5s infinite;
}

.ticker-content {
  color: #9ca3af;
  animation: fadeIn 0.5s ease;
}

/* Главный Hero-блок */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: radial-gradient(circle at 50% 30%, rgba(30, 20, 10, 0.4) 0%, rgba(8, 9, 11, 0.95) 75%),
              url('assets/shaft/wasteland_far.png') center bottom / cover no-repeat;
  border-bottom: 1px solid var(--panel-border);
}

.hero-headframe {
  max-width: 180px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.25));
  animation: subtleFloat 4s ease-in-out infinite;
}

.hero-code {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 6px;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.hero-title span {
  color: var(--amber-bright);
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
}

.hero-tagline {
  max-width: 680px;
  font-size: 1.1rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  color: #000;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--amber-bright);
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 1.5px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
}

.btn-secondary {
  background: rgba(21, 26, 33, 0.85);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--amber-bright);
  color: var(--amber-bright);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

/* Кнопка перехода в Базу знаний (Wiki) в hero-секции */
.btn-wiki {
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-ice);
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 1.5px;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-wiki::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--cyan-ice);
  box-shadow: 0 0 8px var(--cyan-ice);
  transition: all 0.2s ease;
}

.btn-wiki:hover {
  border-color: var(--amber-bright);
  color: var(--amber-bright);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.35), inset 0 0 12px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

.btn-wiki:hover::before {
  background: var(--amber-bright);
  box-shadow: 0 0 10px var(--amber-bright);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--panel-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--amber-bright);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Секция интерактивного бура (Мини-игра на лендинге) */
.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  color: var(--amber-glow);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2rem;
  color: var(--text-bright);
  letter-spacing: 2px;
  margin-top: 0.25rem;
}

.drill-bench {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .drill-bench {
    grid-template-columns: 1fr;
  }
}

.drill-viewport {
  position: relative;
  height: 320px;
  background: #050608;
  border: 1px solid #1f2937;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 25px;
}

#spark-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.drill-rock-face {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 95px;
  background: repeating-linear-gradient(
    45deg,
    #181a1f,
    #181a1f 10px,
    #111317 10px,
    #111317 20px
  );
  border-top: 3px solid #374151;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.85);
  z-index: 3;
}

.drill-assembly {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.05s;
}

.drill-chassis-img {
  width: 165px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.95));
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 2;
  display: block;
}

.drill-head-img {
  width: 95px;
  height: auto;
  margin-top: -16px; /* Полностью скрывает зазор: горловина входит прямо под шасси */
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.5));
  transition: filter 0.15s;
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 1;
  display: block;
  transform-origin: top center;
}

.drill-assembly.drilling {
  animation: drillShake 0.06s infinite;
}

.drill-assembly.drilling .drill-head-img {
  filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.95)) brightness(1.25);
  animation: drillSpinHead 0.08s infinite alternate;
}

@keyframes drillSpinHead {
  0% { transform: scaleX(1) translateY(0); }
  50% { transform: scaleX(0.88) translateY(2px); }
  100% { transform: scaleX(1) translateY(0); }
}

.drill-hud {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #1f242d;
  padding-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--amber-bright);
}

.progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #111418;
  border: 1px solid #2d3748;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 60%, #ef4444 100%);
  width: 15%;
  transition: width 0.15s;
}

.btn-drill {
  background: linear-gradient(180deg, #272d37 0%, #171a20 100%);
  border: 2px solid var(--amber-glow);
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1.2rem;
  cursor: pointer;
  border-radius: 3px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.1s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.btn-drill:active {
  transform: scale(0.98);
  background: var(--amber-dim);
  color: #fff;
  border-color: var(--amber-bright);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
}

.btn-purge {
  background: #14171d;
  border: 1px solid var(--panel-border);
  color: #9ca3af;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem;
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-purge:hover:not(:disabled) {
  border-color: var(--cyan-ice);
  color: var(--cyan-ice);
}

.btn-purge:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Секция страт и глубин */
.strata-viewer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 1.5rem;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .strata-viewer {
    grid-template-columns: 1fr;
  }
}

.strata-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.strata-tab-btn {
  background: #12151b;
  border: 1px solid #1f2530;
  color: #9ca3af;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.strata-tab-btn:hover {
  background: #1a1e27;
  color: var(--text-bright);
}

.strata-tab-btn.active {
  background: #20170a;
  border-color: var(--amber-bright);
  color: var(--amber-bright);
  box-shadow: inset 4px 0 0 var(--amber-bright);
}

.strata-content-card {
  background: #090c10;
  border: 1px solid #1c222b;
  padding: 1.75rem;
  border-radius: 3px;
}

.strata-header-block {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.strata-name {
  font-size: 1.5rem;
  color: var(--amber-bright);
}

.strata-depth-tag {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.strata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.strata-meta-box {
  background: #11141a;
  border: 1px solid #1b212a;
  padding: 0.75rem;
}

.strata-meta-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.strata-meta-val {
  font-size: 0.9rem;
  color: var(--text-bright);
  margin-top: 0.2rem;
}

/* Карточки персонажей - 5 в один ряд */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.char-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.char-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber-glow);
}

.char-img-wrap {
  width: 100%;
  height: 190px;
  background: #0a0d12;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--panel-border);
}

.char-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.95);
  transition: transform 0.3s;
}

.char-card:hover .char-img {
  transform: scale(1.03);
}

.char-info {
  padding: 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.char-role {
  font-size: 0.68rem;
  color: var(--amber-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 2.2em;
  display: flex;
  align-items: center;
}

.char-name {
  font-size: 1.15rem;
  color: var(--text-bright);
  margin: 0.2rem 0 0.4rem 0;
  font-weight: 700;
}

.char-quote {
  font-size: 0.78rem;
  color: #9ca3af;
  font-style: italic;
  line-height: 1.45;
  border-left: 2px solid var(--amber-dim);
  padding-left: 0.6rem;
  margin-top: auto;
}

@media (max-width: 1120px) {
  .characters-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .characters-grid {
    grid-template-columns: 1fr;
  }
}

/* Терминал Цитадели */
.terminal-wrapper {
  background: #050608;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.terminal-topbar {
  background: #111419;
  border-bottom: 1px solid #1c222b;
  padding: 0.4rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.term-dots {
  display: flex;
  gap: 0.4rem;
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #374151;
}

.terminal-body {
  padding: 1.25rem;
  height: 240px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--green-term);
}

.term-line {
  margin-bottom: 0.25rem;
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid #161b22;
  padding: 0.5rem 1.25rem;
  background: #080a0e;
}

.term-prompt {
  color: var(--amber-bright);
  font-weight: bold;
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex-grow: 1;
}

/* Футер */
.footer {
  border-top: 1px solid var(--panel-border);
  background: #060709;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--amber-bright);
}

/* Селектор частот радио */
.radio-freq-selector {
  display: flex;
  gap: 0.35rem;
  margin-right: 1rem;
}

.btn-freq {
  background: #111419;
  border: 1px solid #232a35;
  color: #6b7280;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}

.btn-freq:hover {
  color: var(--amber-bright);
  border-color: var(--amber-glow);
}

.btn-freq.active {
  background: var(--amber-dim);
  border-color: var(--amber-bright);
  color: var(--amber-bright);
}

.btn-freq.warn.active {
  background: #450a0a;
  border-color: var(--red-warn);
  color: #fca5a5;
  animation: pulse 1s infinite;
}

/* Кнопки бура и акустика */
.drill-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drill-sub-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-listen {
  background: #101620;
  border: 1px solid #1f2a38;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.6rem;
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
  letter-spacing: 1px;
}

.btn-listen:hover {
  background: #152233;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.btn-listen.listening {
  background: #082f49;
  border-color: #0284c7;
  animation: pulse 0.7s infinite;
}

.acoustic-log {
  background: #090c10;
  border: 1px dashed #1e293b;
  border-left: 3px solid #38bdf8;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #7dd3fc;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

/* Шлюз на Поверхность (0 метров) */
.surface-bunker-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.bunker-door-frame {
  position: relative;
  height: 280px;
  background: #050608;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border);
}

.bunker-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wasteland-bg-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center bottom;
  filter: contrast(1.1) brightness(0.9);
}

.wasteland-ruins-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center bottom;
  filter: drop-shadow(0 -5px 15px rgba(0, 0, 0, 0.8));
}

.radiation-hud {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 20, 25, 0.85);
  border: 1px solid var(--red-warn);
  color: var(--red-warn);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.rad-icon {
  animation: pulse 1s infinite;
}

.bunker-shutter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    #1c2027,
    #1c2027 12px,
    #15191f 12px,
    #15191f 24px
  );
  border-bottom: 4px solid #374151;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.bunker-shutter.open {
  transform: translateY(-90%);
}

.shutter-stencil {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 4px;
  color: #d1d5db;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  border: 2px solid #4b5563;
  padding: 0.4rem 1.25rem;
}

.shutter-weld {
  font-size: 0.8rem;
  color: var(--red-warn);
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2rem 0.6rem;
  border-left: 3px solid var(--red-warn);
}

.bunker-ctrl-bar {
  padding: 1rem 1.5rem;
  background: #090b0e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.bunker-status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sensor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-warn);
  animation: pulse 1s infinite;
}

/* Анимации */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes drillShake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  25% { transform: translate(-1px, 2px) rotate(0.5deg); }
  50% { transform: translate(2px, -1px) rotate(-0.5deg); }
  75% { transform: translate(-2px, -1px) rotate(0deg); }
  100% { transform: translate(1px, 1px) rotate(0deg); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
