:root {
  --bg: #0a0b10;
  --panel: #13151b;
  --well: #1c1f27;
  --ink: #f2f3f7;
  --soft: rgba(242, 243, 247, 0.56);
  --faint: rgba(242, 243, 247, 0.32);
  --line: rgba(242, 243, 247, 0.09);
  --accent: #7c6cff;
  --tone: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(110% 70% at 50% -10%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 62%), var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 14px;
}

.ab { position: relative; width: min(300px, 100%); padding: 14px 16px 12px; border-radius: 26px; background: linear-gradient(180deg, #171920, var(--panel)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 54px -30px rgba(0, 0, 0, 0.9); overflow: hidden; }
.ab.is-off { --tone: #8a8d99; }

.ab__head { display: flex; align-items: center; gap: 10px; }
.ab__site { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #f2f3f7; color: #13151b; font-size: 16px; font-weight: 780; }
.ab__titles { flex: 1 1 auto; min-width: 0; }
.ab__titles h1 { font-size: 14.500px; line-height: 19px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab__state { height: 16px; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 580; color: var(--tone); transition: color 0.4s ease; }
.ab__state span { display: block; }
.ab__switch { position: relative; flex: none; width: 44px; height: 26px; border: 0; border-radius: 13px; background: var(--tone); cursor: pointer; outline: none; transition: background-color 0.35s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ab.is-off .ab__switch { background: #2a2d37; }
.ab__switch:focus-visible { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.ab__knob { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); transform: translateX(18px); }

/* the arena: the shield in the middle, the requests of the page flying into it from both sides */
.ab__arena { position: relative; height: 88px; margin-top: 12px; }
.ab__shield { position: absolute; left: 50%; top: 6px; width: 76px; height: 76px; margin-left: -38px; display: grid; place-items: center; }
.ab__shield svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--tone) 36%, transparent)); transition: filter 0.4s ease; }
.ab__body { fill: url(#ab-g); stroke: var(--tone); stroke-width: 2; stroke-linejoin: round; transition: stroke 0.4s ease; }
.ab__slash { fill: none; stroke: var(--ink); stroke-width: 2.600; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ab__total { position: relative; margin-top: -4px; transition: opacity 0.3s ease; font-size: 22px; line-height: 1; font-weight: 760; font-stretch: 92%; letter-spacing: -0.02em; }
.ab__chip { position: absolute; left: 50%; top: 44px; width: 20px; height: 9px; margin: -4.500px 0 0 -10px; border-radius: 5px; background: var(--chip, var(--ink)); opacity: 0; pointer-events: none; will-change: transform; }

.ab__sum { height: 17px; overflow: hidden; text-align: center; font-size: 12.500px; line-height: 17px; font-weight: 560; color: var(--soft); }
.ab__sum span { display: block; }

.ab__rows { list-style: none; display: grid; gap: 1px; margin-top: 10px; }
.ab__row { display: grid; grid-template-columns: 62px 1fr 78px; align-items: center; gap: 10px; height: 28px; padding: 0 8px; margin: 0 -8px; border-radius: 9px; font-size: 12.500px; font-weight: 600; outline: none; transition: background-color 0.2s ease; }
.ab__row.is-over { background: rgba(242, 243, 247, 0.06); }
.ab__row:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.ab__name { color: var(--soft); }
.ab__bar { height: 5px; border-radius: 3px; background: var(--well); overflow: hidden; }
.ab__bar i { display: block; height: 100%; border-radius: 3px; background: var(--tone); transform: scaleX(0); transform-origin: 0 50%; transition: background-color 0.4s ease; }
.ab__row:nth-child(2) .ab__bar i { opacity: 0.72; }
.ab__row:nth-child(3) .ab__bar i { opacity: 0.46; }
.ab__more { height: 17px; overflow: hidden; line-height: 17px; text-align: right; white-space: nowrap; }
.ab__more span { display: block; }

.ab__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #f2f3f7; stroke: #13151b; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6)); z-index: 5; }
.ab.is-off .ab__total { opacity: 0.28; }
