/* Graphics tiers (shared/perf.mjs). The look stays the same; only what costs the most frame time goes.
   Live blur behind panels re-renders everything under it on every frame — the heaviest effect on integrated GPUs. */
html[data-perf="balanced"] *,
html[data-perf="lite"] *,
html[data-sleep] * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
/* Without the blur, glass panels get a little more body so text stays readable. */
html:is([data-perf="balanced"], [data-perf="lite"]) :is(.welcome-perks li, .glass, .lab-header, .rv-top, .rv-bar, .auth-dialog, .site-header, .nav-glass) {
  background-color: rgb(11 18 40 / 0.9);
}
/* «lite»: the decorative particle canvases are not drawn at all. */
html[data-perf="lite"] :is(.voxel-fx, .vv-hero-fx),
html[data-sleep] :is(.voxel-fx, .vv-hero-fx) {
  display: none !important;
}
html[data-sleep] .island-stage canvas {
  visibility: hidden;
}

/* «balanced» and «lite»: no live filters — a filter that is animated (or sits on something that moves) is redrawn by
   the graphics card on every frame. Each one gets a look-alike made of transforms, opacity and gradients. */
/* The section window rising out of its island: the same rise and fade, without the blur over the whole window. */
@keyframes archRiseFlat {
  0% { opacity: 0; transform: translateY(70px) scale(0.9); }
  60% { opacity: 1; }
  100% { transform: none; }
}
html:is([data-perf="balanced"], [data-perf="lite"]) .arch-shell.arch-panel #main.arch-rise {
  animation-name: archRiseFlat;
}
/* Миры VORDA: the portal art steps in without the blur. */
@keyframes wdStepFlat {
  from { transform: scale(1.35) rotate(-3deg); opacity: 0.6; }
}
html:is([data-perf="balanced"], [data-perf="lite"]) .wd-in.enter .wd-hero-art {
  animation-name: wdStepFlat;
}
/* The gift chest in the header bobs with a golden glow: the glow becomes a soft gradient behind it. */
html:is([data-perf="balanced"], [data-perf="lite"]) .arch-gift .fc-chest {
  filter: none;
}
html:is([data-perf="balanced"], [data-perf="lite"]) .arch-gift .fc-chest::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7px -9px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #ffcb4570, #ffcb4526 60%, transparent);
  pointer-events: none;
}
/* «Обновление готово»: the icon pulses instead of glowing through a filter. */
@keyframes updShineFlat {
  50% { transform: scale(1.14); opacity: 0.85; }
}
html:is([data-perf="balanced"], [data-perf="lite"]) .upd-pill.ready .upd-ico svg {
  animation-name: updShineFlat;
}
/* A legendary mastery badge keeps its glow, still (no glow redrawn 60 times a second). */
html:is([data-perf="balanced"], [data-perf="lite"]) .mastery-art.legend {
  animation: none;
  filter: drop-shadow(0 0 9px #fde68aaa);
}
/* The rainbow avatar frame: its colours turn through the gradient itself, not through a hue filter. */
@property --pf-spin {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@keyframes pfSpinFlat {
  to { --pf-spin: 360; }
}
html:is([data-perf="balanced"], [data-perf="lite"]) .pf-avatar.framed {
  animation: pfSpinFlat 6s linear infinite;
  background: conic-gradient(from 0deg, hsl(calc(var(--fh) + var(--pf-spin)) 85% 62%), hsl(calc(var(--fh) + 60 + var(--pf-spin)) 80% 55%), hsl(calc(var(--fh) + var(--pf-spin)) 85% 62%));
}
