/* ==========================================================================
   MilkaOS — Layout base
   ========================================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep-1);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

#stage {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% 0%, #402a5c 0%, #241a35 60%, #170f22 100%);
  position: relative;
}

/* Estrellitas ambientales detrás del teléfono */
#stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 60% 45%, rgba(255,255,255,.3), transparent);
  opacity: .8;
  pointer-events: none;
}

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

::selection { background: var(--rose-deep); color: #fff; }

/* Scrollbars discretos dentro de la interfaz */
.scroll-y { overflow-y: auto; overflow-x: hidden; }
.scroll-y::-webkit-scrollbar { width: 4px; }
.scroll-y::-webkit-scrollbar-thumb { background: rgba(166,133,217,.35); border-radius: 4px; }

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

a { color: inherit; text-decoration: none; }

/* Foco visible accesible */
button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--lilac-deep);
  outline-offset: 2px;
}
