* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: #fdf3d9;
  color: #111111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 4rem;
  color: #9e0000;
  border-bottom: 2px solid #f2b233;
  width: fit-content;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  min-height: 0;
}

.container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

.mascotte-wrap {
  position: relative;
  width: 520px;
  max-width: 70vw;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

#mascotte {
  width: 100%;
  height: 100%;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 5px solid #f2b23366;
  border-top-color: #9e0000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader[hidden] {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status {
  margin: 0;
  font-size: 1.5rem;
  color: #444444;
}

.error {
  max-width: 400px;
  color: #9e0000;
  font-size: 0.9rem;
}

.socials-text {
  margin: 0;
  font-size: 1.1rem;
  color: #444444;
}

.socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.socials a {
  color: #9e0000;
  display: flex;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  color: #f2b233;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .container {
    flex-direction: column;
  }
}
