/*
 * ANIM10 R04 · FURNACE PULSE · Бивис
 * Пакет: VNISHGLOBAL-20260730-ANIM10-R04-FURNACE-PULSE
 * sha256 архива: db3e3489b3a651bda00d165311208cff799e07dfa011f02b003f94a8ba121eb9
 *
 * Только компонентные правила. Глобальные строки standalone (:root, *, html,
 * body, .anim10-page) не перенесены по инструкции Бивиса.
 */

@font-face {
  font-family: "Onest";
  src: url("./assets/anim10/onest-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.anim10 {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #020303;
  isolation: isolate;
}
.anim10-stage {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.anim10-stage.is-dragging {
  cursor: grabbing;
}
.anim10-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  outline: none;
  transition: opacity .55s ease;
  -webkit-tap-highlight-color: transparent;
}
.anim10.webgl-ready .anim10-stage canvas {
  opacity: 1;
}
.anim10-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .4s ease, visibility .4s ease;
}
.anim10.webgl-ready .anim10-fallback {
  visibility: hidden;
  opacity: 0;
}
.anim10-fallback-miner {
  position: relative;
  width: min(68vw, 510px);
  aspect-ratio: .8;
  border: 1px solid rgba(226, 231, 228, .55);
  border-radius: 2%;
  background:
    linear-gradient(90deg, rgba(255, 189, 77, .08), transparent 22%, transparent 72%, rgba(88, 188, 227, .08)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #d0d3d0, #7d8380 58%, #b9bcb9);
  box-shadow:
    0 0 18px rgba(255, 255, 255, .11),
    -28px 24px 90px rgba(215, 139, 44, .10),
    28px -20px 90px rgba(82, 179, 220, .09);
  transform: perspective(1200px) rotateX(-4deg) rotateY(-8deg);
}
.anim10-fallback-controller {
  position: absolute;
  top: 3.4%;
  left: 7%;
  right: 7%;
  height: 12%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(245, 247, 242, .48);
  border-radius: 3px;
  padding: 3% 5%;
  background: linear-gradient(145deg, #d2d5d1, #8e9490);
}
.anim10-fallback-controller img {
  width: 42%;
  height: auto;
  filter: brightness(1.3) contrast(1.08);
}
.anim10-fallback-controller span {
  width: 12%;
  aspect-ratio: 1.8;
  border: 1px solid #3d4240;
  background: #030405;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, .8);
}
.anim10-fallback-large {
  position: absolute;
  top: 18%;
  left: 6%;
  bottom: 5%;
  width: 61%;
  display: grid;
  gap: 3%;
}
.anim10-fallback-small {
  position: absolute;
  top: 22%;
  right: 5%;
  bottom: 22%;
  width: 25%;
  display: grid;
  gap: 8%;
}
.anim10-fallback-large i,
.anim10-fallback-small i {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border: clamp(4px, 1vw, 9px) solid #111313;
  border-radius: 4%;
  background:
    repeating-conic-gradient(from 5deg, #151616 0 13deg, #040505 13deg 34deg, #202221 34deg 45deg, #070808 45deg 52deg);
  box-shadow:
    0 0 7px rgba(225, 230, 225, .25),
    0 0 24px rgba(214, 156, 67, .12),
    inset 0 0 24px #000;
}
.anim10-fallback-large i::after,
.anim10-fallback-small i::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(16, 17, 18, .92);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 11%, rgba(9, 10, 11, .9) 12% 14%, transparent 15% 24%);
}
@media (max-width: 620px) {
  .anim10 {
    min-height: 480px;
  }
.anim10-fallback-miner {
    width: min(82vw, 430px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .anim10-stage canvas,
  .anim10-fallback {
    transition: none;
  }
}
.anim10.anim10--component {
  width: 100%;
  height: 100%;
  min-height: 0;
}
/* embedded: правило стоит ПОСЛЕ mobile media query */
.anim10.anim10--component {
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* ---- посадка в сцену ритуала: место прежнего майнера ---- */
.oneminer-scene .anim10--component {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2%;
  /* r7: +50% по площади - сторона x1.22 */
  width: min(100%, 760px);
  height: auto;
  aspect-ratio: 1 / .92;
  translate: -50% 0;
  /* бесшовно: фон сцены, без окантовок и подложек (канон шефа) */
  background: transparent;
  overflow: visible;
}
.oneminer-scene .anim10--component .anim10-stage { background: transparent; }

/* ---- среда вокруг машины: сам объект Бивиса не трогаем, богатеет только сцена ---- */
.oneminer-scene .anim10--component::before {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 46%;
  width: 128%;
  height: 118%;
  translate: -50% -50%;
  background:
    radial-gradient(46% 40% at 50% 50%, rgba(255, 168, 62, .2), rgba(214, 122, 30, .07) 46%, transparent 74%),
    radial-gradient(78% 62% at 50% 54%, rgba(96, 168, 214, .07), transparent 76%);
  content: "";
  filter: blur(34px);
  pointer-events: none;
  animation: a10Furnace 6.4s ease-in-out infinite alternate;
}
/* горячее пятно под машиной: отражение печи на полу сцены */
.oneminer-scene .anim10--component::after {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 4%;
  width: 72%;
  height: 12%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 176, 74, .3), rgba(255, 150, 40, .1) 44%, transparent 72%);
  content: "";
  filter: blur(16px);
  pointer-events: none;
  animation: a10Pool 4.8s ease-in-out infinite alternate;
}
@keyframes a10Furnace {
  from { opacity: .62; transform: scale(.99); }
  to { opacity: 1; transform: scale(1.03); }
}
@keyframes a10Pool {
  from { opacity: .55; width: 68%; }
  to { opacity: 1; width: 76%; }
}
@media (prefers-reduced-motion: reduce) {
  .oneminer-scene .anim10--component::before,
  .oneminer-scene .anim10--component::after { animation: none; }
}

@media (max-width: 900px) {
  .oneminer-scene .anim10--component { width: min(100%, 440px); bottom: 2%; }
}
