.knowledge-cd {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1100;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #173544;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  filter: drop-shadow(0 3px 9px #00101d99);
  transition: filter .2s ease;
}
.knowledge-cd:hover { filter: drop-shadow(0 0 10px #94f0ff88); }
.knowledge-cd:focus-visible { outline: 2px solid #c2f6ff; outline-offset: 6px; }
.knowledge-cd__disc {
  position: absolute;
  inset: 2px;
  overflow: hidden;
  border: 1px solid #e7faffdb;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 2px, #fff2 2.5px 3px, transparent 3.5px 5px),
    conic-gradient(from 30deg, #c4d1dd, #eff8fb 12%, #9be6e0 20%, #abc2e7 27%, #f9f2fd 38%, #b5c6d5 49%, #f9ffff 60%, #dfbce4 68%, #d5e9ae 76%, #f8feff 87%, #c4d1dd);
  box-shadow: inset 0 0 0 3px #eaffff66, inset 0 0 9px #24485433;
  animation: knowledge-cd-spin 9s linear infinite;
  animation-play-state: paused;
}
.knowledge-cd.is-playing .knowledge-cd__disc { animation-play-state: running; }
.knowledge-cd__disc::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid #dceaf3;
  border-radius: 50%;
  background: #113440;
  box-shadow: 0 0 0 1px #7596a6, 0 0 0 4px #f8ffff66, inset 0 1px 3px #0009;
}
.knowledge-cd__label {
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  font: 700 5px/1.2 system-ui, sans-serif;
  letter-spacing: .5px;
  text-align: center;
}
.knowledge-cd__book { position: absolute; width: 11px; height: 9px; left: 13px; bottom: 4px; }
.knowledge-cd__state {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #c2f6ff88;
  border-radius: 50%;
  background: #103746;
  box-shadow: 0 2px 5px #0005;
}
.knowledge-cd__state::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid #e5fbff;
}
.knowledge-cd.is-playing .knowledge-cd__state::before {
  width: 2px;
  height: 6px;
  margin: 0;
  border: 0;
  border-left: 1px solid #e5fbff;
  border-right: 1px solid #e5fbff;
}
@keyframes knowledge-cd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .knowledge-cd__disc { animation: none; }
  .knowledge-cd { transition: none; }
}
