/* ==========================================================================
   Arena of Stars — reset.css
   Сброс базовых стилей. Независимый слой, без привязки к префиксам.
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Блочный поток по умолчанию для семантичных элементов */
body,
header,
nav,
main,
section,
footer,
figure,
figcaption {
  display: block;
}

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

/* Аудио/видео наследуют размер контейнера */
video {
  width: 100%;
}

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

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

/* Убираем стили списков — используем сброс там, где нужно */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

#root,
#__next,
#main-content {
  isolation: isolate;
}

/* Убираём внешние отступы у последнего дочернего элемента */
:last-child {
  margin-bottom: 0;
}

/* Запрет выделения для неинтерактивных интерфейсных элементов */
.no-select {
  -webkit-user-select: none;
  user-select: none;
}
