/* Static offline-rendered material: no canvas, animation or runtime work. */
:is(#site .next-game, #app .balance-hero) {
  isolation: isolate;
  background-color: #091b34;
  background-image: linear-gradient(110deg, #08162be0 0%, #0a1c36a6 44%, #0a1c3657 100%), url('/textures/liquid-chrome.webp?v=169cfa5f72d1ee6770edf8c1');
  background-position: center;
  background-size: cover;
}
#app .balance-hero {
  background-image: linear-gradient(110deg, #08162be8, #0a1c36b0), url('/textures/liquid-chrome.webp?v=169cfa5f72d1ee6770edf8c1');
}
#app .balance-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16% -1% -17% auto;
  width: clamp(160px, 55%, 280px);
  background: url('/glass-bolt.svg?v=3ce446b36353f025e90bf97d') center / contain no-repeat;
  opacity: .38;
  transform: rotate(10deg);
  pointer-events: none;
}
#app .balance-hero.is-negative {
  background-color: #391422;
  background-image: linear-gradient(108deg, #35111fea 8%, #50182bd4 54%, #5e2638a6), url('/textures/liquid-chrome.webp?v=169cfa5f72d1ee6770edf8c1');
  border-color: #d197a5;
}
#app .balance-hero.is-negative::before {
  filter: hue-rotate(143deg) saturate(.65);
  opacity: .42;
}
#app .balance-hero.is-negative .balance-heading,
#app .balance-hero.is-negative > p { color: #f5dce4; }
#app .balance-hero.is-negative .payment-shortcut {
  color: #441324;
  background: linear-gradient(132deg, #fff6f8, #f2d3dc);
  border-color: #fce6ee;
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px #2c0c2059;
}
#app .balance-hero.is-negative .payment-shortcut:hover { background: #fff5f8; }
#app .balance-hero.is-negative .payment-shortcut .bolt { background: currentColor; }
@media (prefers-contrast: more) {
  :is(#site .next-game, #app .balance-hero) {
    background-image: linear-gradient(#08162be8, #08162be8), url('/textures/liquid-chrome.webp?v=169cfa5f72d1ee6770edf8c1');
  }
}
@media (forced-colors: active) {
  :is(#site .next-game, #app .balance-hero), #app .balance-hero.is-negative { background-image: none; }
  #app .balance-hero::before { display: none; }
}

/* On the darker, textured glass the reflection picks up the material's tint. */
:is(#site .next-game, #app .balance-hero, #app .upcoming-tile, #app .calendar-upcoming a) > .glass-response {
  --glass-ink: 105 176 215;
  --glass-glint: 227 246 255;
  --glass-strength: .65;
}
#app .balance-hero.is-negative > .glass-response {
  --glass-ink: 211 140 165;
  --glass-glint: 255 236 241;
}
