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

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg-main);
  color: var(--text);
  overflow: hidden;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  -webkit-font-smoothing: antialiased;
}

button        { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
textarea      { font: inherit; color: inherit; border: none; outline: none; background: none; resize: none; }
a             { color: var(--iris); text-decoration: none; }
a:hover       { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  flex-shrink: 0;
}

.icon-btn:hover  { background: var(--surface-hover); color: var(--text); }
.icon-btn:active { transform: scale(.93); }

.icon-btn .material-symbols-outlined { font-size: 22px; }

.hidden { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes menuPop {
  from { opacity: 0; transform: translateY(5px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
