@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--brand-ink);
  color: var(--text-primary);
  font-family: var(--font-body);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow: hidden;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}

/* Un anillo teal sobre un fondo YA teal (estados "activo") es invisible —
   ahí el foco se marca en blanco para que siga siendo legible. */
.is-active:focus-visible,
.zone-btn.is-current:focus-visible,
.cluster-btn.is-active:focus-visible {
  outline-color: var(--brand-white);
}

::selection {
  background: var(--brand-teal);
  color: var(--brand-white);
}

/* Scrollbars propias en los paneles oscuros — el default del SO rompe la
   ilusión de una interfaz diseñada a propósito. */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.34);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#app {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

#scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: var(--z-scene);
  cursor: grab;
  touch-action: none;
}

#scene-canvas:active {
  cursor: grabbing;
}

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