/* Base reset and global typography. Motion is suppressed on purpose to mirror a minimal Cairo renderer. */

*, *::before, *::after {
  box-sizing: border-box;
  transition: none !important;
  animation: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0d0d0f;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--text);
  background:
    radial-gradient(120% 90% at 50% 0%, #232327 0%, #131315 70%, #0d0d0f 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: none;
}

/* The keyboard, volume and power model uses an explicit focus class. Controls
   carry a flat inset outline, rows carry a background tint, so nothing glows. */
.is-focused {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.btn-filled.is-focused, .btn-destructive.is-focused { outline-color: #0a2e6e; }

.stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
