/* Атмосфера: лёгкие слои пара и эфира (почти бесплатно по весу) */
.atmo{
  position: fixed;
  inset: -10vh -10vw;
  pointer-events: none;
  z-index: 5;
  opacity: .85;
}

.atmo--steam{
  background:
    radial-gradient(700px 420px at 18% 78%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(620px 380px at 72% 62%, rgba(255,255,255,.08), transparent 62%),
    radial-gradient(520px 330px at 48% 22%, rgba(255,255,255,.06), transparent 62%);
  filter: blur(12px);
  animation: steamFloat 18s ease-in-out infinite;
}

.atmo--aether{
  background:
    radial-gradient(620px 380px at 30% 30%, rgba(159,215,255,.16), transparent 60%),
    radial-gradient(820px 480px at 80% 18%, rgba(211,158,0,.10), transparent 62%),
    radial-gradient(640px 420px at 60% 82%, rgba(159,215,255,.12), transparent 60%);
  mix-blend-mode: screen;
  filter: blur(18px);
  opacity: .55;
  animation: aetherPulse 22s ease-in-out infinite;
}

/* Поднимаем контент НАД атмосферой (чтобы клики и видимость были ок) */
header, section, footer, #automaton-widget, #automaton-bubble, .lang-switcher{
  position: relative;
  z-index: 10;
}

@keyframes steamFloat{
  0%   { transform: translate3d(0,0,0) scale(1); opacity:.45; }
  50%  { transform: translate3d(1.5vw,-1.2vh,0) scale(1.03); opacity:.62; }
  100% { transform: translate3d(0,0,0) scale(1); opacity:.45; }
}

@keyframes aetherPulse{
  0%   { transform: translate3d(0,0,0) scale(1); opacity:.28; }
  50%  { transform: translate3d(-1.2vw,1.0vh,0) scale(1.04); opacity:.42; }
  100% { transform: translate3d(0,0,0) scale(1); opacity:.28; }
}

/* Важно: слои не перекрывают клики, но должны быть "под контентом" */
body, header, section, footer { position: relative; z-index: 1; }

/* Оракул-прототип */
.oracle-section{
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.oracle-tag{
  display:inline-block;
  margin-left: 8px;
  font-size: 0.85rem;
  color: #ddd;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.03);
}

.oracle-hint{
  max-width: 820px;
  margin: 10px auto 16px;
  color: #ddd;
}

.oracle-box{
  max-width: 820px;
  margin: 0 auto;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(211,158,0,.25);
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}

.oracle-text{
  min-height: 64px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f2f2f2;
  margin-bottom: 14px;
  text-align: left;
  white-space: pre-wrap;
}

.oracle-btn{
  display: inline-block;
  background: rgba(255,255,255,.04);
  color: #f9c74f;
  border: 1px solid rgba(255,255,255,.15);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Georgia', serif;
}
.oracle-btn:hover{
  background: rgba(255,255,255,.06);
}

/* Сворачивание NFT в "Артефакты эпохи" */
.artifact-details{
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 14px;
}

.artifact-details summary{
  cursor: pointer;
  color: #f9c74f;
  font-weight: bold;
  padding: 8px 4px;
}

.artifact-body{
  padding: 8px 4px 14px;
  color: #fff;
}

@media (prefers-reduced-motion: reduce){
  .atmo--steam, .atmo--aether{ animation:none; }
}

/* --- FIX: вернуть Автоматон в правый нижний угол --- */
#automaton-widget{
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  top: auto !important;
  z-index: 9999 !important;
}

#automaton-bubble{
  position: fixed !important;
  right: 20px !important;
  bottom: 110px !important; /* чтобы над иконкой */
  left: auto !important;
  top: auto !important;
  z-index: 9999 !important;
}

/* --- Усиление атмосферы без тяжести --- */
.atmo{ opacity: .90 !important; }

.atmo--steam{
  filter: blur(14px) !important;
}

.atmo--aether{
  opacity: .60 !important;
}

/* Немного “свечения эпохи” поверх секций, очень мягко */
section{
  box-shadow: 0 0 0 1px rgba(211,158,0,.04) inset;
}
