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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 1.5rem;
  background: #0d0b09;
  color: #f5e6d3;
  font-family: Georgia, "Times New Roman", Times, serif;
}

#app {
  max-width: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 11vw, 9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 0 40px rgba(245, 78, 0, 0.25);
}

#app.loading {
  color: #c4b5a0;
  font-size: clamp(1.5rem, 6vw, 4rem);
  font-weight: 400;
  animation: pulse 1.4s ease-in-out infinite;
}

#app.error {
  color: #ff8a65;
  font-size: clamp(1.5rem, 7vw, 5rem);
}

#app.more {
  color: #ff6b35;
}

#app.same {
  color: #c4b5a0;
}

#app.less {
  color: #7ec8e3;
}

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

.credit {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #8a7a68;
  text-shadow: none;
}

.credit a {
  color: #c4b5a0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.credit a:hover,
.credit a:focus-visible {
  color: #f5e6d3;
}
