/* ============================================================
   CRAZY — reset.css
   Minimal, opinionated reset. Buildless. No external deps.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--crazy-font);
  background: #000;
  color: var(--fg);
  line-height: 1.45;
  overflow: hidden;
  /* Disable the blue tap highlight on mobile so the terminal stays in-fiction. */
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

/* Visually-hidden but available to screen readers. */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--accent-magenta);
  color: #000;
}

/* Custom scrollbar — keep it inside the fiction. */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--fg) 35%, transparent);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--fg) 55%, transparent);
}
