*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Futura PT", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #ffffff;
}

body.no-scroll {
  overflow: hidden;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #ff5a5a 0%, #d30000 50%, #7a0000 100%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader-content {
  width: min(308px, 56vw);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: preloader-pulse 1.4s ease-in-out infinite;
}

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
}

.page-background {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: radial-gradient(circle at top left, #ff5a5a 0%, #d30000 50%, #7a0000 100%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.profile-page {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

body.page-ready .page-background {
  opacity: 1;
  transform: translateY(0);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.role {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
}

.party-badge {
  margin: 2px 0 0;
}

.party-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.party-symbol {
  font-size: 0.7rem;
}

.description {
  margin: 4px 0 0;
  max-width: 420px;
  font-size: 0.94rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.9;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.about {
  margin-top: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.about-toggle {
  width: 100%;
  border-radius: 12px;
  border: none;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.about-toggle-icon {
  margin-left: 8px;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.about-toggle:hover .about-toggle-icon {
  transform: rotate(45deg);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}

.modal--open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  margin: 18px auto;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 36px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(20, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modal-pop 0.18s ease-out;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.modal-back {
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

.modal-back:hover {
  background: rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.modal-body {
  padding: 14px;
  overflow: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-body p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.92;
}

@keyframes modal-pop {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.link-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background-color: #ffffff;
  color: #c01622;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out, color 0.12s ease-out;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  background-color: #fff7f7;
  outline: none;
}

.link-button:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
}

.link-button .icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b6b, #ffb199);
  color: #ffffff;
  flex-shrink: 0;
}

.link-button .icon i {
  font-size: 1.05rem;
}

.link-button .label {
  flex: 1;
  text-align: left;
}

.page-footer {
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.page-footer p {
  margin: 0;
}

@keyframes preloader-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .page-background {
    padding: 24px 12px;
  }

  .name {
    font-size: 1.7rem;
  }

  .description {
    font-size: 0.9rem;
  }

  .link-button {
    font-size: 0.95rem;
  }
}

