/* ========================================
   RESET & BASE
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #000;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
}

/* ========================================
   MAIN LAYOUT
======================================== */
.main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* ========================================
   BACKGROUND ELEMENTS
======================================== */
.background-map {
  position: absolute;
  inset: 0;
  background-image: url("../img/dofus-map.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.light-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 60% at 15% 20%,
    rgba(255, 250, 235, 0.15) 0%,
    transparent 60%
  );
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #000000 0%,
    #000000 20%,
    rgba(0, 0, 0, 0.95) 40%,
    rgba(0, 0, 0, 0.7) 60%,
    transparent 100%
  );
}

/* ========================================
   PM EFFECTS
======================================== */
.pm-effects-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.pm-effect {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-weight: 900;
  font-size: 2.5rem;
  color: #7ddc4e;
  text-shadow:
    0 0 8px rgba(125, 220, 78, 0.7),
    0 0 16px rgba(125, 220, 78, 0.4),
    1px 1px 0 #2d5a1d,
    2px 2px 0 #1a3812;
  -webkit-text-stroke: 1px #2d5a1d;
  animation: pm-float 2.2s ease-out forwards;
  opacity: 0;
}

@media (min-width: 768px) {
  .pm-effect {
    font-size: 3rem;
  }
}

@keyframes pm-float {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(10px);
  }
  20% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  80% {
    opacity: 1;
    transform: scale(1) translateY(-15px);
  }
  100% {
    opacity: 0;
    transform: scale(0.7) translateY(-40px);
  }
}

/* ========================================
   CENTER LOGO
======================================== */
.center-content {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.logo-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-blur {
  position: absolute;
  inset: 0;
  filter: blur(48px);
  background-color: rgba(0, 0, 0, 0.5);
  transform: scale(1.5);
  border-radius: 50%;
}

.logo {
  position: relative;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  animation: logo-appear 0.8s ease-out;
}

@media (min-width: 768px) {
  .logo {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  .logo {
    font-size: 8rem;
  }
}

@keyframes logo-appear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.logo-sans {
  color: #e8e4df;
  text-shadow:
    0 0 40px rgba(232, 228, 223, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-pm {
  color: #a8c5b8;
  text-shadow:
    0 0 30px rgba(168, 197, 184, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   FOOTER
======================================== */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-bottom: 1.5rem;
  padding-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-text {
  color: #6b7280;
  font-size: 0.75rem;
  text-align: center;
  padding: 0 1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
}

.footer-link {
  background: none;
  border: none;
  color: #52525b;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s;
  font-size: inherit;
}

.footer-link:hover {
  color: #a1a1aa;
}

.footer-separator {
  color: #3f3f46;
}

.copyright {
  color: #3f3f46;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* ========================================
   MODAL
======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: rgba(24, 24, 27, 0.95);
  border: 1px solid #3f3f46;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modal-appear 0.2s ease-out;
}

.modal-content-large {
  max-width: 32rem;
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes modal-appear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.modal-body {
  color: #d4d4d8;
  font-size: 0.875rem;
  line-height: 1.625;
}

.modal-body p {
  margin-bottom: 0.75rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-green {
  color: #4ade80;
}

.text-amber {
  color: #fbbf24;
}

.text-muted {
  color: #6b7280;
}

.text-light {
  color: #d4d4d8;
}

.text-italic {
  font-style: italic;
  color: #6b7280;
}

.mt-4 {
  margin-top: 1rem;
}

/* ========================================
   LEGAL SECTIONS
======================================== */
.legal-section {
  margin-bottom: 1rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.legal-section a {
  color: #d4d4d8;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.legal-section a:hover {
  color: #fff;
}
