@property --bingo-rim-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.bingo-command,
.bingo-command-continue[data-resume] {
  position: relative;
  isolation: isolate;
}

:is(.bingo-command, .bingo-command-continue[data-resume]):not(:disabled)::after {
  content: "";
  position: absolute;
  inset: max(-8px,-.09em);
  border-radius: inherit;
  padding: clamp(4px, .23em, 16px);
  pointer-events: none;
  background: conic-gradient(from var(--bingo-rim-angle),
    transparent 0deg, #4968ff 28deg, var(--accent-hi, #aebeff) 65deg,
    white 94deg, #6684ff 118deg, transparent 148deg);
  mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
  mask-composite: exclude;
  opacity: 0;
  animation: bingo-rim-sweep 4.8s cubic-bezier(.33,.12,.26,1) infinite;
}

:is(.bingo-command, .bingo-command-continue[data-resume]):not(:disabled):is(:focus-visible, :active)::after {
  opacity: 1;
}

@keyframes bingo-rim-sweep {
  0% { --bingo-rim-angle: 0deg; opacity: 0; }
  8%, 53% { opacity: 1; }
  67%, 100% { --bingo-rim-angle: 720deg; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.bingo-command, .bingo-command-continue[data-resume]):not(:disabled)::after {
    animation: none;
  }
}

.bingo-top-notice {
  position:fixed; top:var(--bingo-notice-top,clamp(54px,9vh,88px)); left:50%; transform:translateX(-50%);
  z-index:60; width:max-content; max-width:calc(100% - 32px); margin:0; padding:12px 20px;
  background:linear-gradient(145deg,#262d3cf5,#12151df5); color:var(--warn);
  border:1px solid var(--brd2); border-radius:var(--r-panel); text-align:center;
  backdrop-filter:blur(20px); box-shadow:0 12px 32px #0006;
}
.bingo-top-notice:empty,.bingo-top-notice[hidden] {display:none}
