/* src/styles.css */
:root {
  --bg: #111;
  --panel: #161b22;
  --accent: #3b82f6;
  --text: #e6edf3;
  --bg-overlay: #0a0c10a6;
  --card-bg: #1e222abf;
  --card-border: #ffffff14;
  --radius: 14px;
  --blur: 12px;
  --shadow: 0 10px 30px #0006;
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
}

html, body {
  margin: 0;
  padding: 0;
}

.spinner {
  position: fixed;
  display: flex;
  background: var(--bg);
  z-index: 10;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.spinner div {
  border: 4px solid #222;
  border-top: 4px solid var(--accent);
  animation: spin .8s linear infinite;
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.overlay {
  position: fixed;
  z-index: 5;
  column-width: 150px;
  column-fill: auto;
  pointer-events: none;
  color: var(--text);
  background: none;
  column-gap: 1rem;
  height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Inter, sans-serif;
  inset: 1rem;
}

.overlay section {
  break-inside: avoid;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  pointer-events: all;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1rem;
  padding: .5rem;
}

.overlay h1, .overlay h2, .overlay h3 {
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 600;
}

.overlay p {
  color: var(--text);
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.overlay button {
  appearance: none;
  border: 1px solid var(--card-border);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  background: #ffffff0f;
  border-radius: 8px;
  padding: .5rem .9rem;
  transition: background .12s, transform 60ms;
}

.overlay button:hover {
  background: #ffffff1f;
}

.overlay button:active {
  transform: translateY(1px);
}
