/* === style.css === */
* {
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-color: #0d0d0d;
  color: #f8f8f8;
}

/* === Card === */
.card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 25px color-mix(in srgb, #e50914 50%, transparent);
  width: 90%;
  max-width: 420px;
}

/* === Avatar === */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px auto;
  border: 3px solid #e50914;
  box-shadow: 0 0 25px color-mix(in srgb, #e50914 70%, transparent);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* === Text === */
h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0 5px;
  color: #fff;
  user-select: none;
}

.subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 25px;
  user-select: none;
}

/* === Links === */
.links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #e50914;
  border: 1px solid #e50914;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  user-select: none;
}

.link-btn,
.link-btn:active,
.link-btn:focus,
.link-btn:focus-visible {
  background: #e50914;
  border-color: #e50914;
  outline: none;
  box-shadow: none;
  transform: none;
}

a, button {
  outline: none;
}

/* === Footer === */
footer {
  margin-top: 25px;
  font-size: 0.85rem;
  color: #777;
  user-select: none;
}

.footer-link {
  color: #e50914;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus {
  text-decoration: none;
}

/* === Preloader === */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #e50914;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

body:not(.loading) #preloader {
  opacity: 0;
  visibility: hidden;
}

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