.agile-hub { position: relative; width: min(1000px, calc(100vw - 32px)); left: 50%; transform: translateX(-50%); margin: 0 0 40px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--ground); }
.agile-hub canvas { display: block; width: 100%; aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .agile-hub canvas { aspect-ratio: 4 / 5; } }
.agile-hub-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: rgba(14,17,22,0.78); color: var(--ink); cursor: pointer; transition: opacity .3s var(--ease), border-color .25s var(--ease); }
.agile-hub-btn:hover { border-color: var(--mint); }
.agile-hub-btn svg { width: 22px; height: 22px; fill: currentColor; }
.agile-hub-play { left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; background: var(--grad); color: var(--on-grad); box-shadow: 0 0 40px rgba(75,243,200,0.35); }
.agile-hub-play svg { width: 30px; height: 30px; }
.agile-hub.is-playing .agile-hub-play { left: 14px; top: auto; bottom: 14px; margin: 0; width: 42px; height: 42px; opacity: 0; background: rgba(14,17,22,0.78); color: var(--ink); border: 1px solid var(--border); box-shadow: none; }
.agile-hub.is-playing:hover .agile-hub-play, .agile-hub.is-playing .agile-hub-play:focus-visible { opacity: 1; }
.agile-hub-play .i-pause, .agile-hub-play .i-replay, .agile-hub.is-playing .agile-hub-play .i-play, .agile-hub.is-ended .agile-hub-play .i-play { display: none; }
.agile-hub.is-playing .agile-hub-play .i-pause, .agile-hub.is-ended .agile-hub-play .i-replay { display: block; }
.agile-hub-sound { right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-dim); }
.agile-hub-sound[aria-pressed="true"] { color: var(--mint); }
.agile-hub-sound .i-on, .agile-hub-sound[aria-pressed="true"] .i-off { display: none; }
.agile-hub-sound[aria-pressed="true"] .i-on { display: block; }
.agile-hub-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
