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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100%;
}

body {
  font-family: var(--font-primary, system-ui, sans-serif);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-primary, #092327ff);
  color: var(--text-primary, #90c2e7ff);
  line-height: var(--line-height-normal, 1.5);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  fill: currentColor;
}

img:not([src]) {
  visibility: hidden;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

input,
textarea {
  -webkit-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
  background: transparent;
  border: none;
}

textarea {
  resize: vertical;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

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

a:visited {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary, #00a9a5ff);
  outline-offset: 2px;
}

* {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background-color: var(--color-primary, #22c55e);
  color: var(--text-inverse, #0b1220);
}

::-moz-selection {
  background-color: var(--color-primary, #22c55e);
  color: var(--text-inverse, #0b1220);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary, #0f1b2d);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary, #12243a);
  border-radius: var(--radius-full, 9999px);
  border: 2px solid var(--bg-secondary, #0f1b2d);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted, #7f8ba3);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary, #12243a) var(--bg-secondary, #0f1b2d);
}

[hidden] {
  display: none !important;
}

.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *:not(.cube-loader),
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
