/* Styles for reactbits/effects.js and reactbits/sfx.js (ports of React Bits effects; see credits.html). */

.rb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* BlurText */
.rb-word { display: inline-block; will-change: transform, filter, opacity; }

/* ShinyText: the label keeps its colour (borders use currentColor); only the inner text is painted */
.rb-shiny { background-repeat: no-repeat; background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* SpotlightCard */
.rb-spot { position: relative; isolation: isolate; }
.rb-spot-light, .rb-spot-edge { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
.rb-spot-light { z-index: -1; }
.rb-spot-edge {
  z-index: 3; padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ClickSpark: one small fixed canvas per burst */
.rb-spark { position: fixed; z-index: 90; display: block; pointer-events: none; }

/* CountUp */
.rb-count { font-variant-numeric: tabular-nums; display: inline-block; text-align: inherit; }

/* DotGrid: behind the Arcade header, fading out at the edges */
[data-rb-dotgrid] { position: relative; isolation: isolate; }
.rb-dotgrid {
  position: absolute; z-index: -1; pointer-events: none; display: block;
  top: -120px; bottom: -32px; left: -24px; right: -24px; width: calc(100% + 48px); height: calc(100% + 152px);
  -webkit-mask-image: radial-gradient(120% 90% at 30% 45%, #000 35%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 30% 45%, #000 35%, transparent 80%);
}
@media (max-width: 620px) { .rb-dotgrid { top: -96px; left: -16px; right: -16px; width: calc(100% + 32px); height: calc(100% + 128px); } }

/* Sound toggle */
.sfx-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; padding: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-3, #b9a39c); border: 1px solid var(--line-2, rgba(255, 255, 255, .14));
  transition: color .2s, border-color .2s;
}
.sfx-toggle svg { width: 16px; height: 16px; }
.sfx-toggle:hover, .sfx-toggle[aria-pressed="true"] { color: var(--ink, #fff); border-color: var(--ink-3, rgba(255, 255, 255, .4)); }
.nav .sfx-toggle { margin-left: -12px; }
.nav .sfx-toggle.sfx-push { margin-left: 0; }
@media (max-width: 860px) {
  .nav .sfx-toggle { margin-left: -14px; }
  .nav .sfx-toggle.sfx-push { margin-left: auto; }
}
.sfx-bar { width: 28px; height: 28px; margin-left: 4px; color: var(--muted, #b9a39c); }
.sfx-strip { margin: 0 auto 16px; display: grid; }
