.glass-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
  overscroll-behavior: none;
  color: #edfaff;
  background: radial-gradient(ellipse at center, rgb(154 215 237 / 5%), rgb(49 81 115 / 28%));
  box-shadow: inset 0 0 80px rgb(176 230 255 / 12%);
  animation: glass-freeze 180ms ease-out both;
}
.glass-cracks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.glass-cracks path { fill: none; stroke-linecap: round; stroke-linejoin: bevel; }
.glass-crack-shadow { stroke: rgb(3 12 32 / 65%); stroke-width: 2.4; }
.glass-crack-light { stroke: rgb(221 248 255 / 72%); stroke-width: .85; }
.glass-controls {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.glass-controls p { margin: 0; font-size: 15px; text-shadow: 0 2px 8px #0b1023; }
.glass-controls button {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 22px;
  border: 1px solid rgb(220 247 255 / 50%);
  border-radius: 99px;
  background: #18253d;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: none;
}
.glass-controls button:focus-visible { outline: 2px solid #c8f3ff; outline-offset: 4px; }
.glass-overlay--closing { animation: glass-thaw 200ms ease-out both; pointer-events: none; }
@keyframes glass-freeze { from { opacity: 0; } to { opacity: 1; } }
@keyframes glass-thaw { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .glass-overlay { animation: none; } }
