/* The music button: a small round control with four bars that dance while the music plays. */
.ag-sound { position: fixed; z-index: 70; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: .6rem; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(217 178 76 / 55%); background: rgb(20 16 13 / 78%); color: #f3e3a6; font: 600 .78rem/1 system-ui, sans-serif; letter-spacing: .02em; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 60%); transition: transform .25s, border-color .25s, background .25s; }
.ag-sound:hover { transform: translateY(-2px); border-color: #d9b24c; }
.ag-sound:focus-visible { outline: 2px solid #f6e7ae; outline-offset: 3px; }
.ag-sound__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; width: 22px; }
.ag-sound__bars i { display: block; width: 3px; height: 4px; border-radius: 2px; background: linear-gradient(#f7e7ae, #a87c1e); transform-origin: bottom; }
.ag-sound.is-playing .ag-sound__bars i { animation: ag-eq 1.1s ease-in-out infinite; }
.ag-sound.is-playing .ag-sound__bars i:nth-child(2) { animation-delay: -.35s; }
.ag-sound.is-playing .ag-sound__bars i:nth-child(3) { animation-delay: -.7s; }
.ag-sound.is-playing .ag-sound__bars i:nth-child(4) { animation-delay: -.2s; }
.ag-sound.is-off .ag-sound__bars i { height: 3px; opacity: .45; }
.ag-sound.is-off::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: #d9b24c; transform: rotate(-35deg); border-radius: 2px; }
.ag-sound.is-waiting { animation: ag-sound-pulse 2s ease-in-out infinite; }
.ag-sound__hint:empty { display: none; }
.ag-sound--login { left: auto; right: 22px; top: 20px; bottom: auto; }
@keyframes ag-eq { 0%, 100% { height: 4px; } 25% { height: 17px; } 50% { height: 8px; } 75% { height: 14px; } }
@keyframes ag-sound-pulse { 0%, 100% { box-shadow: 0 10px 30px -10px rgb(0 0 0 / 60%), 0 0 0 0 rgb(217 178 76 / 45%); } 50% { box-shadow: 0 10px 30px -10px rgb(0 0 0 / 60%), 0 0 0 10px rgb(217 178 76 / 0%); } }
@media (max-width: 760px) {
	.ag-sound--site { bottom: 92px; left: 12px; height: 40px; min-width: 40px; padding: 0 11px; }
	.ag-sound--site .ag-sound__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ag-sound.is-playing .ag-sound__bars i, .ag-sound.is-waiting { animation: none; }
	.ag-sound.is-playing .ag-sound__bars i:nth-child(odd) { height: 12px; }
	.ag-sound.is-playing .ag-sound__bars i:nth-child(even) { height: 7px; }
}
