/* Pulse Gates. Every class starts with "pulse-"; Bootstrap 4 does the rest. */
.pulse { position: relative; }
.pulse [hidden], .pulse-claim[hidden] { display: none; }

.pulse-panel { margin-bottom: .75rem; }
.pulse-status { font-weight: 600; }
.pulse-go { margin: .4rem 0; }
.pulse-msg { margin: .5rem 0 0; }
.pulse-reload { margin-left: .5rem; }
.pulse-bar { align-items: center; gap: .5rem .75rem; }
.pulse-best { margin-left: auto; }

/* The dial is square: the card's width on a phone, at most 60% of the viewport height on a desktop. */
.pulse-stage { width: 100%; max-width: 60vh; margin: 0 auto; }
.pulse-frame { position: relative; width: 100%; padding-top: 100%; overflow: hidden; border-radius: .5rem; background: #0f1030; }
.pulse-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.pulse-canvas:focus { outline: 0; }
.pulse-canvas:focus-visible { outline: 3px solid #36c6f4; outline-offset: -3px; }

.pulse-over { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
	align-items: center; justify-content: center; padding: 1rem; text-align: center; color: #fff; }
.pulse-over-veil { background: rgba(15, 16, 48, .86); }
.pulse-over-solid { background: #0f1030; cursor: pointer; }
.pulse-over-count { pointer-events: none; }
.pulse-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.pulse-over-count .pulse-title { width: 5rem; height: 5rem; border-radius: 50%; background: #0f1030; font-size: 3rem; line-height: 5rem; }
.pulse-text { margin-top: .4rem; }
.pulse-sub { color: #ffd27a; font-weight: 600; }
.pulse .pulse-give { margin-top: 1rem; border-color: #aebcff; background: transparent; color: #fff; }

.pulse-btns { display: flex; gap: .5rem; margin-top: .5rem; }
.pulse-btn { display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: .45rem; min-width: 0; min-height: 56px;
	padding: .25rem; border: 0; border-radius: .5rem; font: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation;
	-webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pulse-btn-0 { background: #36c6f4; color: #0a0b24; }
.pulse-btn-1 { background: #8a4fd8; color: #fff; }
.pulse-btn-2 { background: #f2b350; color: #0a0b24; }
.pulse-btn:focus { outline: 0; }
.pulse-btn:focus-visible { outline: 3px solid #0a0b24; outline-offset: 2px; }
.pulse-down { box-shadow: inset 0 0 0 4px rgba(10, 11, 36, .6); transform: translateY(2px); }
/* The ring's thickness, repeated on its button: colour is never the only cue. */
.pulse-swatch { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; flex: none; box-sizing: border-box; }
.pulse-btn-1 .pulse-swatch { border-width: 4px; }
.pulse-btn-2 .pulse-swatch { border-width: 6px; }
.pulse-key { font-size: .75rem; font-weight: 400; }
.pulse-hint { margin: .5rem 0 0; text-align: center; }
.pulse-claim { margin-top: 1rem; }

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

@media (pointer: coarse) { .pulse-key { display: none; } }
@media (prefers-reduced-motion: reduce) { .pulse-down { transform: none; } }
