@charset "UTF-8";
.global-background-fx--embedded,
.global-background-embers--embedded,
.global-background-coc-pulse--embedded,
.global-background-overlay--embedded {
  z-index: 2;
}

.global-background-fx--entry,
.global-background-embers--entry,
.global-background-coc-pulse--entry,
.global-background-overlay--entry {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.global-background-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--global-background-crossfade-ms, 500ms) ease-in-out;
}

.global-background-overlay--active {
  opacity: 1;
}

.global-background-overlay.global-background-fx--embedded {
  position: fixed;
  z-index: 2;
}

.global-background-overlay.global-background-fx--entry {
  position: absolute;
  z-index: 1;
}

.global-background-coc-pulse.global-background-fx--embedded {
  z-index: 2;
}

.global-background-coc-pulse.global-background-fx--entry {
  position: absolute;
  z-index: 1;
}

.global-background-overlay__grid {
  --hex-grid-tile-w: 78px;
  --hex-grid-tile-h: 135px;
  --hex-grid-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51.962 90' width='51.962' height='90'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.25' stroke-linejoin='round' shape-rendering='geometricPrecision'%3E%3Cpath d='M25.981 0 L51.962 15 L51.962 45 L25.981 60 L0 45 L0 15 Z'/%3E%3Cpath d='M0 45 L25.981 60 L25.981 90 L0 105 L-25.981 90 L-25.981 60 Z'/%3E%3Cpath d='M51.962 45 L77.943 60 L77.943 90 L51.962 105 L25.981 90 L25.981 60 Z'/%3E%3C/g%3E%3C/svg%3E");
  position: absolute;
  inset: -24px;
  opacity: 0.13;
  background-color: var(--ember-fill, rgba(26, 255, 128, 0.92));
  mask-image: var(--hex-grid-mask);
  mask-repeat: repeat;
  mask-size: var(--hex-grid-tile-w) var(--hex-grid-tile-h);
  -webkit-mask-image: var(--hex-grid-mask);
  -webkit-mask-repeat: repeat;
  -webkit-mask-size: var(--hex-grid-tile-w) var(--hex-grid-tile-h);
  transition: background-color var(--global-background-crossfade-ms, 500ms) ease-in-out;
  animation: global-background-grid-drift var(--global-background-slide-interval-ms, 12s) linear infinite;
}

.global-background-overlay--theme-gurps .global-background-overlay__grid {
  opacity: 0.055;
}

.global-background-overlay__astral-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.35;
}

.global-background-overlay__astral-ring {
  position: absolute;
  border: 1px solid rgba(88, 164, 233, 0.22);
  border-radius: 50%;
  animation: global-background-astral-ring-drift 18s ease-in-out infinite;
}

.global-background-overlay__astral-ring--1 {
  width: 38vmin;
  height: 38vmin;
}

.global-background-overlay__astral-ring--2 {
  width: 58vmin;
  height: 58vmin;
  animation-delay: -6s;
  opacity: 0.7;
}

.global-background-overlay__astral-ring--3 {
  width: 78vmin;
  height: 78vmin;
  animation-delay: -12s;
  opacity: 0.45;
}

.global-background-overlay__smoke-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(8, 4, 4, 0.55) 100%), linear-gradient(to bottom, rgba(20, 10, 8, 0.35), transparent 30%, transparent 70%, rgba(10, 6, 6, 0.4));
}

.global-background-overlay__film-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.global-background-overlay__entry {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.global-background-overlay__entry--ember-burst {
  background: radial-gradient(circle at 50% 100%, rgba(240, 176, 72, 0.28) 0%, transparent 55%);
  animation: global-background-ember-burst 1.8s ease-out forwards;
}

.global-background-overlay__entry--shadow-pass {
  background: linear-gradient(105deg, transparent 40%, rgba(0, 0, 0, 0.22) 50%, transparent 60%);
  animation: global-background-shadow-pass 3.2s ease-in-out forwards;
}

.global-background-overlay__entry--astral-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20vmin;
  height: 20vmin;
  margin: -10vmin 0 0 -10vmin;
  border: 1px solid rgba(120, 188, 245, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(88, 164, 233, 0.25);
  animation: global-background-astral-entry-ring 2.4s ease-out forwards;
}

.global-background-slides--glitch-flash {
  animation: global-background-glitch-shift 120ms steps(2, end) 1;
}

.global-background-slides__glitch-band {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 44%, rgba(253, 108, 187, 0.35) 49%, rgba(88, 164, 233, 0.25) 51%, transparent 56%);
  mix-blend-mode: screen;
  animation: global-background-glitch-band 140ms ease-out forwards;
  pointer-events: none;
}

.global-background-ember__visual {
  display: block;
  color: var(--ember-fill);
  transition: filter var(--global-background-crossfade-ms, 500ms) ease-in-out;
}

.global-background-ember__visual.global-background-ember--dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ember-fill);
  box-shadow: 0 0 4px var(--ember-glow);
}

.global-background-ember--sm .global-background-ember__visual.global-background-ember--dot {
  width: 2px;
  height: 2px;
  box-shadow: 0 0 3px var(--ember-glow-sm);
}

.global-background-ember--lg .global-background-ember__visual.global-background-ember--dot {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 5px var(--ember-glow-lg);
}

.global-background-ember__visual.global-background-ember--streak {
  width: 2px;
  height: 7px;
  border-radius: 999px;
  background: var(--ember-fill);
  box-shadow: 0 0 4px var(--ember-glow);
}

.global-background-ember__visual.global-background-ember--spark-star {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ember-fill);
  font-size: 9px;
  line-height: 1;
}
.global-background-ember__visual.global-background-ember--spark-star::before {
  content: "✦";
  display: block;
  filter: drop-shadow(0 0 5px var(--ember-glow-lg));
  animation: global-background-spark-flash 1.2s ease-in-out infinite;
}

.global-background-ember--lg .global-background-ember__visual.global-background-ember--streak {
  height: 10px;
}

.global-background-ember__visual.global-background-ember--bubble {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 24%, color-mix(in srgb, white 58%, var(--ember-fill)) 0%, color-mix(in srgb, var(--ember-fill) 18%, transparent) 22%, transparent 48%);
  border: 0.5px solid color-mix(in srgb, var(--ember-fill) 30%, transparent);
  box-shadow: 0 0 4px color-mix(in srgb, var(--ember-glow-sm) 32%, transparent);
}

.global-background-ember__visual.global-background-ember--bubble-ring {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 24%, color-mix(in srgb, white 45%, var(--ember-fill)) 0%, transparent 16%, transparent 54%, color-mix(in srgb, var(--ember-fill) 20%, transparent) 70%, color-mix(in srgb, var(--ember-fill) 12%, transparent) 100%);
  border: 0.5px solid color-mix(in srgb, var(--ember-fill) 26%, transparent);
  box-shadow: 0 0 3px color-mix(in srgb, var(--ember-glow-sm) 28%, transparent);
}

.global-background-embers--look-underwater .global-background-ember__visual.global-background-ember--bubble,
.global-background-embers--look-underwater .global-background-ember__visual.global-background-ember--bubble-ring {
  opacity: 0.78;
}

.global-background-ember--sm .global-background-ember__visual.global-background-ember--bubble {
  width: 4px;
  height: 4px;
}

.global-background-ember--sm .global-background-ember__visual.global-background-ember--bubble-ring {
  width: 6px;
  height: 6px;
}

.global-background-ember--lg .global-background-ember__visual.global-background-ember--bubble {
  width: 9px;
  height: 9px;
}

.global-background-ember--lg .global-background-ember__visual.global-background-ember--bubble-ring {
  width: 12px;
  height: 12px;
}

.global-background-ember__visual.global-background-ember--suspension {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ember-fill);
  opacity: 0.9;
  filter: blur(0.15px);
  box-shadow: 0 0 4px var(--ember-glow-sm);
}

.global-background-ember__visual.global-background-ember--organic {
  width: 3px;
  height: 8px;
  background: var(--ember-fill);
  box-shadow: 0 0 5px var(--ember-glow);
  border-radius: 40% 60% 50% 50%;
  transform-origin: center bottom;
}

.global-background-ember__visual.global-background-ember--dark-spot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ember-fill) 72%, rgba(12, 28, 24, 0.45));
  box-shadow: 0 0 5px var(--ember-glow-sm);
  filter: blur(0.25px);
}

.global-background-ember--binary-cyan {
  --ember-fill: rgba(88, 236, 252, 0.92);
  --ember-glow: rgba(88, 236, 252, 0.78);
  --ember-glow-sm: rgba(88, 236, 252, 0.58);
  --ember-glow-lg: rgba(88, 236, 252, 0.88);
}

.global-background-ember__visual.global-background-ember--binary {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  white-space: pre-line;
  text-align: center;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(to bottom, var(--ember-fill) 0%, color-mix(in srgb, var(--ember-fill) 72%, transparent) 25%, color-mix(in srgb, var(--ember-fill) 48%, transparent) 50%, color-mix(in srgb, var(--ember-fill) 26%, transparent) 75%, color-mix(in srgb, var(--ember-fill) 10%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 4px var(--ember-glow));
}

.global-background-ember--sm .global-background-ember__visual.global-background-ember--binary {
  font-size: 8px;
}

.global-background-ember--lg .global-background-ember__visual.global-background-ember--binary {
  font-size: 13px;
}

.global-background-embers--look-astral .global-background-ember__visual:not(.global-background-ember--astral-compass) {
  animation: global-background-astral-orbit var(--ember-duration, 5s) linear infinite;
}

.global-background-ember__visual.global-background-ember--astral-dust {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--ember-fill);
  box-shadow: 0 0 3px var(--ember-glow-sm);
  animation: global-background-astral-twinkle 2.4s ease-in-out infinite;
}

.global-background-ember__visual.global-background-ember--astral-star {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  color: var(--ember-fill);
  font-size: 8px;
  line-height: 1;
}
.global-background-ember__visual.global-background-ember--astral-star::before {
  content: "✦";
  display: block;
  filter: drop-shadow(0 0 4px var(--ember-glow));
}

.global-background-ember__visual.global-background-ember--astral-compass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  background: none;
  box-shadow: none;
  contain: none;
  color: var(--ember-fill);
  font-size: 12px;
  filter: drop-shadow(0 0 5px var(--ember-glow-lg));
}

.global-background-ember--lg .global-background-ember__visual.global-background-ember--astral-star {
  font-size: 11px;
}

.global-background-ember__visual.global-background-ember--ash {
  width: 5px;
  height: 4px;
  border-radius: 0;
  background: rgba(96, 82, 72, 0.82);
  box-shadow: none;
  clip-path: polygon(20% 0%, 80% 10%, 100% 60%, 60% 100%, 0% 70%);
}

.global-background-ember:nth-child(6n+2) .global-background-ember__visual.global-background-ember--ash {
  clip-path: polygon(0% 20%, 70% 0%, 100% 50%, 40% 100%, 10% 60%);
}

.global-background-ember:nth-child(6n+4) .global-background-ember__visual.global-background-ember--ash {
  clip-path: polygon(30% 0%, 100% 20%, 80% 100%, 0% 80%, 10% 30%);
}

.global-background-ember__visual.global-background-ember--coal {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(210, 140, 72, 0.88);
  box-shadow: 0 0 6px rgba(200, 120, 48, 0.65);
}

.global-background-ember__visual.global-background-ember--parchment {
  width: 6px;
  height: 7px;
  border-radius: 0;
  background: rgba(188, 158, 118, 0.78);
  box-shadow: 0 0 2px rgba(140, 110, 80, 0.35);
  clip-path: polygon(0% 10%, 90% 0%, 100% 80%, 20% 100%, 0% 40%);
  animation: global-background-parchment-sway calc(var(--ember-duration, 5s) * 0.5) ease-in-out infinite;
}

.global-background-ember__visual.global-background-ember--astral-compass::before {
  animation: global-background-star-spin var(--spin-duration, 6s) linear infinite;
}

.global-background-ember__visual.global-background-ember--astral-compass.global-background-ember--spin-reverse::before {
  animation-direction: reverse;
}

.global-background-embers--look-probability .global-background-ember__visual {
  filter: drop-shadow(0 0 2px var(--ember-glow-sm));
}

.global-background-ember__visual.global-background-ember--d6-cluster {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--ember-fill);
  box-shadow: 5px 0 0 var(--ember-fill), 10px 0 0 var(--ember-fill);
}

.global-background-ember__visual.global-background-ember--d6-triangle {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--ember-fill);
  box-shadow: 6px 0 0 var(--ember-fill), 3px -5px 0 var(--ember-fill);
}

.global-background-ember__visual.global-background-ember--d6-two {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--ember-fill);
  box-shadow: 5px 5px 0 var(--ember-fill);
}

.global-background-ember__visual.global-background-ember--geo-reticle {
  width: 7px;
  height: 7px;
  background: transparent;
  box-shadow: -2.5px 0 0 0 var(--ember-fill), 2.5px 0 0 0 var(--ember-fill), 0 -2.5px 0 0 var(--ember-fill), 0 2.5px 0 0 var(--ember-fill);
}

.global-background-ember__visual.global-background-ember--prob-label {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ember-fill);
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.92;
  filter: drop-shadow(0 0 3px var(--ember-glow));
}

.global-background-overlay__entry--glitch-flash {
  animation: global-background-glitch-shift 120ms steps(2, end) 1;
  mix-blend-mode: screen;
}

@keyframes global-background-star-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes global-background-astral-orbit {
  0% {
    translate: 0 0;
  }
  25% {
    translate: calc(var(--orbit-radius, 24px) * -1) 0;
  }
  50% {
    translate: var(--orbit-radius, 24px) 0;
  }
  75% {
    translate: calc(var(--orbit-radius, 24px) * -0.5) 0;
  }
  100% {
    translate: 0 0;
  }
}
@keyframes global-background-astral-twinkle {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
@keyframes global-background-spark-flash {
  0%, 100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}
@keyframes global-background-parchment-sway {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(4px) rotate(8deg);
  }
}
@keyframes global-background-grid-drift {
  from {
    mask-position: 0 0;
    -webkit-mask-position: 0 0;
  }
  to {
    mask-position: var(--hex-grid-tile-w, 78px) var(--hex-grid-tile-h, 135px);
    -webkit-mask-position: var(--hex-grid-tile-w, 78px) var(--hex-grid-tile-h, 135px);
  }
}
@keyframes global-background-astral-ring-drift {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: rotate(8deg) scale(1.03);
    opacity: 0.5;
  }
}
@keyframes global-background-ember-burst {
  0% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}
@keyframes global-background-shadow-pass {
  0% {
    opacity: 0;
    transform: translateX(-30%);
  }
  35% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: translateX(30%);
  }
}
@keyframes global-background-astral-entry-ring {
  0% {
    opacity: 0.7;
    transform: scale(0.35);
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}
@keyframes global-background-glitch-shift {
  0% {
    transform: translate(0, 0);
    filter: none;
  }
  50% {
    transform: translate(3px, 0);
    filter: drop-shadow(2px 0 0 rgba(255, 0, 80, 0.35)) drop-shadow(-2px 0 0 rgba(0, 200, 255, 0.25));
  }
  100% {
    transform: translate(0, 0);
    filter: none;
  }
}
@keyframes global-background-glitch-band {
  0% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .global-background-overlay,
  .global-background-slides--glitch-flash,
  .global-background-slides__glitch-band,
  .global-background-overlay__entry,
  .global-background-overlay__grid,
  .global-background-overlay__astral-ring {
    animation: none !important;
  }
}
/* Layout/mask для частиц — в critical-shell.css (boot) и shell-chrome.scss; здесь только ember-стили. */
.shell-preloader .global-background-ember {
  position: absolute;
  bottom: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: 0;
  contain: none;
}

.shell-preloader .global-background-ember__visual.global-background-ember--astral-compass::before {
  content: "✶";
  font-family: serif;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .shell-preloader .shell-preloader__particles.global-background-embers {
    display: none;
  }
}