/*
 * V71 · ANIM08 SOHub Managed Fleet Layers - Бивис R07, скоуп-адаптация r1
 * Оригинал fullscreen; тут: контейнер .a08-root (container-type size),
 * vh/vw -> cqh/cqw, @scope изолирует светлую сцену от тёмного канона.
 * Слот: акт путей, сторона Start with one miner (paths-solo заменён).
 */
.a08-root { position: absolute; inset: 0; container-type: size; overflow: hidden; border-radius: 20px; border: 1px solid rgba(216, 183, 107, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
@scope (.a08-root) {
:scope {
  --mx: 0;
  --my: 0;
  --hover: 0;
  --ink: #080c12;
  --paper: #edf3f4;
  --paper-2: #dfe8ea;
  --gold: #c89a43;
  --gold-hi: #f2cc78;
  --blue: #1285c7;
  --blue-hi: #78c8ef;
  --ease: cubic-bezier(.2, .82, .22, 1);
}

* {
  box-sizing: border-box;
}

:scope {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  font-family: "Onest", Arial, sans-serif;
  letter-spacing: 0;
}

:scope {
  min-height: 100svh;
}

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 255, 255, .95), transparent 37%),
    radial-gradient(ellipse at 20% 30%, rgba(18, 133, 199, .1), transparent 32%),
    radial-gradient(ellipse at 82% 66%, rgba(200, 154, 67, .14), transparent 34%),
    linear-gradient(180deg, #f6fafb 0%, var(--paper) 58%, #d8e2e4 100%);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, .08), transparent 17%, transparent 83%, rgba(8, 12, 18, .08)),
    repeating-linear-gradient(90deg, transparent 0 116px, rgba(8, 12, 18, .024) 117px, transparent 118px),
    repeating-linear-gradient(0deg, transparent 0 102px, rgba(8, 12, 18, .018) 103px, transparent 104px);
  opacity: .78;
}

.stage::after {
  z-index: 7;
  background:
    radial-gradient(ellipse at calc(50% + var(--mx) * 4%) calc(53% + var(--my) * 3%), rgba(255, 255, 255, .35), transparent 32%),
    linear-gradient(90deg, rgba(18, 133, 199, .12), transparent 28%, transparent 72%, rgba(200, 154, 67, .14));
  mix-blend-mode: multiply;
  opacity: calc(.5 + var(--hover) * .16);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(rgba(8, 12, 18, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 12, 18, .025) 1px, transparent 1px);
  background-size: 17px 17px;
}

.giant-word {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 31%;
  width: max-content;
  transform:
    translate3d(calc(-50% + var(--mx) * -26px), calc(-50% + var(--my) * -16px), 0)
    scale(calc(1 + var(--hover) * .025));
  color: rgba(198, 143, 42, .72);
  font-size: clamp(210px, 35cqw, 580px);
  font-weight: 830;
  line-height: .72;
  letter-spacing: 0;
  text-transform: lowercase;
  opacity: .98;
  text-shadow:
    0 22px 70px rgba(198, 143, 42, .18),
    0 2px 0 rgba(255, 240, 186, .18);
  user-select: none;
  white-space: nowrap;
}

.giant-word,
.slab,
.slab > span,
.slab b,
.hashrate-mark,
.electricity-mark,
.hashrate-mark span,
.hashrate-mark strong,
.electricity-mark span,
.electricity-mark strong {
  font-family: "Onest", Arial, sans-serif;
}

.scene {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: min(1180px, 94cqw);
  height: min(720px, 86svh);
  transform:
    translate3d(-50%, -48%, 0)
    perspective(1200px)
    rotateX(calc(var(--my) * -2.2deg))
    rotateY(calc(var(--mx) * 3.2deg));
  transform-style: preserve-3d;
}

.miner-wrap {
  position: absolute;
  z-index: 20;
  left: 55%;
  top: 51%;
  width: min(500px, 38cqw);
  aspect-ratio: 1 / 1;
  transform:
    translate3d(calc(-50% + var(--mx) * 18px), calc(-50% + var(--my) * 10px), 340px)
    rotateZ(calc(var(--mx) * -1deg))
    scale(calc(.92 + var(--hover) * .035));
  transform-style: preserve-3d;
  filter:
    drop-shadow(0 42px 45px rgba(8, 12, 18, .36))
    drop-shadow(0 12px 22px rgba(200, 154, 67, .18));
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.miner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    saturate(1.04)
    contrast(1.045)
    brightness(1.015)
    drop-shadow(0 0 0 rgba(215, 164, 70, .01));
}

.miner-warmth {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, rgba(255, 232, 165, .48), rgba(206, 150, 48, .26) 46%, rgba(255, 246, 211, .32) 68%, rgba(157, 107, 33, .2));
  mask-image: url("/assets/anim08/bitmain-antminer-s21-owner.png");
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("/assets/anim08/bitmain-antminer-s21-owner.png");
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: .46;
}

.fans-layer {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  transform: translateZ(10px);
}

.fan {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border-radius: 50%;
  overflow: hidden;
  opacity: var(--fan-opacity, .5);
  transform: translate(-50%, -50%) rotate(var(--angle, 0deg));
  transform-origin: center;
  mix-blend-mode: multiply;
  will-change: opacity;
}

.fan::before {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(1, 3, 6, .2) 19% 52%, transparent 53%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .08), rgba(0, 0, 0, .28) 72%, transparent 73%);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, .46),
    inset 0 0 1px rgba(255, 255, 255, .12);
}

.fan-rotor {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: 50% 50%;
  animation: fan-spin var(--speed, 2.9s) linear infinite;
  animation-delay: var(--delay, 0s);
  filter: blur(.35px);
  will-change: transform;
}

.fan[data-direction="reverse"] .fan-rotor {
  animation-direction: reverse;
}

.fan-blade {
  position: absolute;
  left: 42.5%;
  top: 0;
  width: 15%;
  height: 50%;
  border-radius: 86% 38% 78% 38%;
  background:
    linear-gradient(96deg, transparent 0 9%, rgba(0, 0, 0, .22) 18%, rgba(0, 0, 0, .82) 48%, rgba(11, 14, 17, .54) 76%, transparent 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08);
  filter: blur(.7px);
  transform: rotate(var(--blade-angle)) skewX(-20deg);
  transform-origin: 50% 100%;
}

.fan-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  height: 18%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 40% 34%, rgba(255, 255, 255, .12), transparent 24%),
    radial-gradient(circle, #11161a 0 36%, #030507 37% 100%);
  box-shadow:
    inset 0 0 1px rgba(255, 255, 255, .28),
    0 0 5px rgba(0, 0, 0, .58);
  transform: translate(-50%, -50%);
}

@keyframes fan-spin {
  to {
    transform: rotate(360deg);
  }
}

:scope[data-fans-paused="true"] .fan-rotor {
  animation-play-state: paused;
}

.miner-glass {
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  background:
    linear-gradient(115deg, transparent 0 39%, rgba(255, 255, 255, .5) 45%, transparent 54%),
    radial-gradient(circle at 28% 30%, rgba(120, 200, 239, .28), transparent 18%),
    radial-gradient(circle at 72% 52%, rgba(242, 204, 120, .28), transparent 20%);
  mask-image: url("/assets/anim08/bitmain-antminer-s21-owner.png");
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("/assets/anim08/bitmain-antminer-s21-owner.png");
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: calc(.16 + var(--hover) * .14);
}

.slab {
  position: absolute;
  z-index: 3;
  display: grid;
  align-content: end;
  justify-items: start;
  min-width: 230px;
  min-height: 150px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid rgba(8, 12, 18, .12);
  background: rgba(255, 255, 255, .48);
  backdrop-filter: blur(18px);
  box-shadow:
    0 34px 70px rgba(8, 12, 18, .17),
    inset 0 1px 0 rgba(255, 255, 255, .65);
  transform-style: preserve-3d;
  transition:
    transform 1100ms var(--ease),
    opacity 700ms var(--ease),
    filter 900ms var(--ease);
}

.slab::before,
.slab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.slab::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42), transparent 34%),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .36), transparent 23%);
  mix-blend-mode: screen;
}

.slab::after {
  inset: auto 24px 22px 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: .35;
}

.slab > span,
.slab b,
.slab img {
  position: relative;
  z-index: 1;
}

.slab > span {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .12em;
}

.slab b {
  font-size: clamp(54px, 7.6cqw, 106px);
  font-weight: 830;
  line-height: .78;
  letter-spacing: 0;
}

.hashrate-mark {
  display: grid;
  gap: 4px;
  font-size: clamp(38px, 5.4cqw, 78px);
}

.electricity-mark {
  display: grid;
  gap: 4px;
  font-size: clamp(34px, 5cqw, 74px);
}

.electricity-mark span {
  font-size: .31em;
  font-weight: 820;
  line-height: .88;
  letter-spacing: .032em;
}

.electricity-mark strong {
  font-size: 1em;
  font-weight: 870;
  line-height: .82;
}

.hashrate-mark span {
  font-size: .34em;
  font-weight: 820;
  line-height: .86;
  letter-spacing: .035em;
}

.hashrate-mark strong {
  font-size: 1em;
  font-weight: 870;
  line-height: .82;
}

.slab-one {
  left: 6%;
  top: 20%;
  width: 34%;
  height: 31%;
  color: #f3f6f7;
  background:
    linear-gradient(135deg, rgba(8, 12, 18, .98), rgba(16, 22, 28, .9)),
    radial-gradient(circle at 72% 28%, rgba(120, 200, 239, .26), transparent 32%);
  transform: translate3d(-9%, -8%, 40px) rotateZ(-4deg) rotateY(8deg);
}

.slab-fleet {
  right: 1%;
  top: 28%;
  width: 40%;
  height: 34%;
  justify-items: end;
  text-align: right;
  padding-right: 46px;
  color: #10100d;
  background:
    linear-gradient(135deg, rgba(245, 204, 113, .96), rgba(196, 143, 44, .88)),
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, .38), transparent 34%),
    radial-gradient(circle at 78% 78%, rgba(118, 77, 18, .18), transparent 38%);
  transform: translate3d(8%, -1%, 95px) rotateZ(3deg) rotateY(-9deg);
}

.slab-fleet::after {
  background: linear-gradient(90deg, transparent, rgba(16, 16, 13, .5));
}

.slab-hosting {
  left: 10%;
  bottom: 12%;
  width: 37%;
  height: 30%;
  color: #0b0d10;
  background:
    linear-gradient(135deg, rgba(241, 204, 120, .95), rgba(186, 131, 38, .92)),
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, .24), transparent 30%);
  transform: translate3d(-3%, 5%, 70px) rotateZ(2.4deg) rotateY(7deg);
}

.slab-control {
  right: 5%;
  bottom: 10%;
  width: 34%;
  height: 27%;
  place-items: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(4, 6, 9, .96), rgba(14, 19, 23, .92)),
    radial-gradient(circle at 50% 45%, rgba(200, 154, 67, .24), transparent 38%);
  transform: translate3d(5%, 8%, 145px) rotateZ(-2.2deg) rotateY(-6deg);
}

.slab-control img {
  width: min(210px, 72%);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(242, 204, 120, .28));
}

:scope[data-phase="one"] .slab-one,
:scope[data-phase="fleet"] .slab-fleet,
:scope[data-phase="hosting"] .slab-hosting,
:scope[data-phase="control"] .slab-control {
  filter: brightness(1.06) saturate(1.08);
  transform: translate3d(0, 0, 205px) rotateZ(0deg) rotateY(0deg) scale(1.035);
}

:scope[data-phase="one"] .slab-fleet,
:scope[data-phase="one"] .slab-hosting,
:scope[data-phase="one"] .slab-control,
:scope[data-phase="fleet"] .slab-one,
:scope[data-phase="fleet"] .slab-hosting,
:scope[data-phase="fleet"] .slab-control,
:scope[data-phase="hosting"] .slab-one,
:scope[data-phase="hosting"] .slab-fleet,
:scope[data-phase="hosting"] .slab-control,
:scope[data-phase="control"] .slab-one,
:scope[data-phase="control"] .slab-fleet,
:scope[data-phase="control"] .slab-hosting {
  opacity: .72;
}

.route {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 53%;
  width: 72%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(18, 133, 199, .58), rgba(242, 204, 120, .75), transparent);
  transform-origin: center;
  opacity: calc(.45 + var(--hover) * .25);
  filter: blur(.2px) drop-shadow(0 0 10px rgba(242, 204, 120, .28));
}

.route-a {
  transform: translate3d(-50%, -50%, 90px) rotateZ(-13deg);
}

.route-b {
  transform: translate3d(-50%, -50%, 92px) rotateZ(10deg);
}

.route-c {
  width: 54%;
  transform: translate3d(-50%, -50%, 94px) rotateZ(0deg);
}

.signal {
  display: none;
  position: absolute;
  z-index: 2;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff6d8;
  box-shadow:
    0 0 16px rgba(242, 204, 120, .88),
    0 0 34px rgba(18, 133, 199, .3);
  transform: translate3d(-50%, -50%, 230px);
  animation: travel 4.8s var(--ease) infinite;
}

.s1 {
  left: 29%;
  top: 36%;
}

.s2 {
  left: 72%;
  top: 42%;
  animation-delay: -1.6s;
}

.s3 {
  left: 47%;
  top: 73%;
  animation-delay: -3.1s;
}

@keyframes travel {
  0% {
    opacity: 0;
    transform: translate3d(-120px, -40px, 230px) scale(.72);
  }
  18%,
  72% {
    opacity: .95;
  }
  100% {
    opacity: 0;
    transform: translate3d(130px, 40px, 230px) scale(1.18);
  }
}

@media (max-width: 820px) {
  .giant-word {
    top: 23%;
    font-size: clamp(128px, 50cqw, 228px);
  }

  .scene {
    width: 100cqw;
    height: 82svh;
    top: 53%;
  }

  .miner-wrap {
    left: 55%;
    width: min(330px, 72cqw);
    top: 51%;
  }

  .slab {
    min-width: 0;
    min-height: 0;
    padding: 18px;
  }

  .slab > span {
    font-size: 8px;
  }

  .slab b {
    font-size: clamp(30px, 11cqw, 56px);
  }

  .hashrate-mark,
  .electricity-mark {
    font-size: clamp(25px, 9cqw, 46px);
  }

  .slab-one {
    left: 7%;
    top: 18%;
    width: 43%;
    height: 24%;
  }

  .slab-fleet {
    right: 5%;
    top: 25%;
    width: 43%;
    height: 25%;
  }

  .slab-hosting {
    left: 7%;
    bottom: 14%;
    width: 43%;
    height: 23%;
  }

  .slab-control {
    right: 7%;
    bottom: 16%;
    width: 41%;
    height: 22%;
    padding: 22px;
  }

  .route {
    width: 86%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fan-rotor {
    animation: none;
    transform: rotate(18deg);
  }

  .fan-blade {
    opacity: .46;
  }

  .signal {
    animation: none;
    opacity: .82;
  }

  .slab,
  .miner-wrap {
    transition-duration: 0ms;
  }
}

}

/* посадка р8 (скрин шефа): виджет левой двери Start with one miner */
.miner-identity--a08 {
  transform: none;
  display: block;
  place-items: initial;
  top: 44px;
  right: 4%;
  width: min(56%, 348px);
  aspect-ratio: 16 / 10.6;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(216, 183, 107, .3);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.miner-identity--a08 .a08-root { height: 100% !important; min-height: 0 !important; border-radius: 14px; }
.miner-identity--a08 .a08-root .stage { position: absolute !important; inset: 0 !important; height: 100% !important; min-height: 0 !important; }
