.coaching-empty {
  position: relative;
  isolation: isolate;
}

.coaching-page, .eg-wallet-page, .dir-directory, .eg-games-catalog { position: relative; }
.coaching-empty > .coaching-pending,
.coaching-page > .co-shell,
.eg-wallet-page > :is(#wallet-app, .wallet-site-maintenance),
.dir-directory > #players,
.eg-games-catalog > .games-directory {
  position: relative;
  z-index: 1;
}

.co-glass-fold {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 20%, #6a3fb881, transparent 52%),
    linear-gradient(149deg, #08060d 15%, #241337 44%, #573386 44.6%, #201131 59%, #472770 59.5%, #09060e 83%);
}

.co-glass-fold canvas {
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
}
.co-glass-fold[data-rendered] canvas { visibility: visible; }

.co-glass-fold::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 57% 57% at 50% 54%, #07040cd4 10%, #07040c6c 61%, transparent 100%),
    linear-gradient(180deg, #050306c9, transparent 35%, transparent 72%, #050406 100%);
}

.coaching-empty .coaching-pending p { color: #d3c6df; }
.coaching-empty .coaching-label { color: #ddc7f1; }
.coaching-empty .coaching-pending > a { color: #dfc6ff; }

:is(.coaching-page, .eg-wallet-page, .dir-directory, .eg-games-catalog) > .co-glass-fold {
  bottom: auto;
  height: clamp(480px, 71svh, 760px);
  mask-image: linear-gradient(to bottom, #000 57%, transparent);
}
.coaching-page > .co-glass-fold::after {
  background: linear-gradient(108deg, #050407ef 3%, #08050dd6 30%, #09050e44 76%, #08060e70);
}
.eg-wallet-page > .co-glass-fold::after {
  background:
    radial-gradient(ellipse 64% 72% at 50% 50%, #08060eaa 18%, transparent 100%),
    linear-gradient(180deg, #050407ad, #08050e30 36%, #0c0b0e 100%);
}
:is(.dir-directory, .eg-games-catalog) > .co-glass-fold::after {
  background:
    linear-gradient(105deg, #08060edb 0%, #08060e72 40%, #08060e20),
    linear-gradient(180deg, #05040766, transparent 60%, #09070e);
}

@media (max-width: 760px) {
  .coaching-empty > .co-glass-fold::after {
    background:
      radial-gradient(ellipse 86% 50% at 50% 53%, #07040ce6 15%, #07040c79 66%, transparent 100%),
      linear-gradient(180deg, #050306ed, transparent 27%, transparent 73%, #050406);
  }
  .coaching-page > .co-glass-fold::after {
    background: linear-gradient(118deg, #050407ee 4%, #08050dbb 55%, #09050e66);
  }
}
