* { box-sizing: border-box; }

:root {
  --green: #17b879;
  --green-dark: #079b61;
  --ink: #172033;
  --cream: #f5f8fb;
}

html, body { margin: 0; min-height: 100%; font-family: "Nunito", sans-serif; background: #eef2f7; color: var(--ink); }
button, input { font-family: inherit; }

.loader-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: #f0f3f7;
  transition: opacity .45s ease, visibility .45s ease;
}
.loader-screen.hide { opacity: 0; visibility: hidden; }
.loader-logo { font-size: clamp(2.3rem, 7vw, 4.2rem); font-weight: 900; letter-spacing: -2px; }
.loader-progress { position: absolute; bottom: 11%; width: 110px; height: 4px; background: #d9dee6; border-radius: 10px; overflow: hidden; }
.loader-progress span { display: block; width: 35%; height: 100%; background: var(--green); animation: load 1.15s ease-in-out infinite; border-radius: inherit; }
@keyframes load { 0% { transform: translateX(-130%); } 100% { transform: translateX(400%); } }

.landing-page {
  position: relative; min-height: 100svh; overflow: hidden;
  background: #9fb98f;
}
.map-background {
  position: absolute; inset: 0;
  background-image: url("../assets/landing-reference.png");
  background-size: cover;
  background-position: center top;
  filter: saturate(1.02);
  transform: scale(1.01);
}
.map-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,25,34,.08), rgba(8,24,31,.04) 50%, rgba(255,255,255,.04));
  pointer-events: none;
}

.glass-panel {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 15px 40px rgba(19,38,48,.15);
  backdrop-filter: blur(10px);
}

.top-nav {
  position: absolute; z-index: 5; top: 20px; left: 3%; right: 3%;
  min-height: 76px; border-radius: 50px; padding: 8px 10px 8px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { color: var(--ink); text-decoration: none; font-size: clamp(1.25rem, 3.2vw, 2rem); font-weight: 900; display: flex; align-items: center; gap: 12px; }
.brand-crown { color: #d5a51d; font-size: 2rem; line-height: 1; }
.top-actions { display: flex; gap: 10px; }
.btn-signup, .btn-cta { background: var(--green); color: #fff; border: none; font-weight: 800; }
.btn-signup { min-width: 150px; font-size: 1.1rem; border-radius: 50px; padding: 15px 30px; }
.btn-login { background: #f5f7fa; color: var(--ink); border: 1px solid #edf0f3; font-weight: 700; min-width: 130px; border-radius: 50px; padding: 15px 28px; }
.btn-signup:hover, .btn-cta:hover { background: var(--green-dark); color: #fff; }
.btn-login:hover, .btn-login-large:hover { background: #e9edf2; }

.top-stats, .quick-chips {
  position: absolute; z-index: 4; display: flex; gap: 9px; flex-wrap: wrap; justify-content: center;
}
.top-stats { top: 104px; left: 50%; transform: translateX(-50%); }
.quick-chips { top: 160px; left: 50%; transform: translateX(-50%); }
.pill {
  background: rgba(255,255,255,.92); border-radius: 999px; padding: 9px 18px;
  font-weight: 700; font-size: 1rem; box-shadow: 0 8px 20px rgba(18,35,40,.12);
  white-space: nowrap;
}
.status-dot { display: inline-block; width: 10px; height: 10px; background: #54d39c; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 4px rgba(84,211,156,.18); }

.announcement {
  position: absolute; z-index: 4; top: 218px; left: 3%; right: 3%;
  max-width: 740px; margin: auto; border-radius: 999px; background: #08a862; color: #fff;
  text-align: center; padding: 12px 20px; font-size: clamp(.95rem, 2.4vw, 1.25rem);
  box-shadow: 0 10px 30px rgba(0,91,52,.25);
}

.map-label { position: absolute; z-index: 2; color: rgba(50,93,49,.45); font-size: clamp(1rem, 4vw, 2rem); font-weight: 900; letter-spacing: 1px; }
.mainland { top: 34%; left: 39%; }
.island { top: 57%; left: 40%; }

.map-hotspots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.map-marker {
  pointer-events: auto; position: absolute; width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.9); background: rgba(255,255,255,.95);
  box-shadow: 0 7px 18px rgba(23,40,49,.22); font-size: 1.55rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.map-marker:hover { transform: scale(1.12); box-shadow: 0 10px 25px rgba(23,40,49,.32); }
.marker-1 { left: 42%; top: 31%; }
.marker-2 { left: 61%; top: 35%; }
.marker-3 { left: 55%; top: 25%; }
.marker-4 { left: 10%; top: 40%; }
.marker-5 { left: 49%; top: 41%; }
.marker-6 { left: 86%; top: 56%; }
.marker-7 { left: 76%; top: 65%; }
.marker-8 { left: 13%; top: 64%; }
.marker-9 { left: 48%; top: 74%; }

.coming-soon {
  position: absolute; z-index: 4; left: 2%; bottom: 35%; padding: 12px 20px; border-radius: 30px;
  background: #ffd52d; color: #18212d; font-size: 1rem; box-shadow: 0 7px 18px rgba(0,0,0,.16);
}

.bottom-cta {
  position: absolute; z-index: 5; left: 4%; right: 4%; bottom: 18px; border-radius: 32px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.players { display: flex; align-items: center; gap: 12px; font-size: clamp(.9rem, 2vw, 1.2rem); }
.avatar-stack { display: flex; padding-left: 8px; }
.avatar-stack span { width: 39px; height: 39px; border-radius: 50%; background: #eef2f5; border: 2px solid #fff; display: grid; place-items: center; margin-left: -8px; font-size: 1.3rem; }
.muted { color: #8a929c; }
.cta-buttons { display: flex; gap: 12px; min-width: min(52%, 560px); }
.btn-cta, .btn-login-large { flex: 1; padding: 17px 24px; border-radius: 50px; font-size: 1.15rem; }
.btn-login-large { background: #fff; color: var(--ink); border: 1px solid #e7e9ec; font-weight: 800; }

.signup-card { overflow: hidden; border-radius: 28px; background: #fff; }
.signup-card .modal-dialog { max-width: 900px; }
.signup-visual { background: linear-gradient(145deg, #079e62, #22c783); color: #fff; min-height: 100%; padding: 48px 35px; display: flex; align-items: center; }
.signup-visual-inner { max-width: 300px; margin: auto; }
.mini-crown { font-size: 3rem; color: #ffe16a; }
.signup-visual h2 { font-size: 2.2rem; font-weight: 900; margin: 18px 0 12px; }
.signup-visual p { opacity: .92; line-height: 1.65; }
.benefit-list { display: grid; gap: 10px; margin-top: 28px; font-weight: 700; }
.signup-form-side { padding: 6px 8px; }
.signup-form-side .modal-header { padding: 28px 30px 10px; }
.signup-form-side .modal-body { padding: 20px 30px; }
.signup-form-side .modal-footer { padding: 10px 30px 28px; }
.eyebrow { font-size: .72rem; letter-spacing: 2px; color: var(--green-dark); font-weight: 900; }
.signup-form-side h3 { font-weight: 900; margin: 4px 0; }
.form-label { font-weight: 800; }
.form-control { border-radius: 14px; border: 1px solid #dfe5ea; padding: 12px 15px; }
.form-control:focus { border-color: #2cc68a; box-shadow: 0 0 0 .2rem rgba(23,184,121,.12); }
.btn-register { background: var(--green); color: #fff; border: 0; border-radius: 14px; padding: 14px; font-size: 1.05rem; font-weight: 900; }
.btn-register:hover { background: var(--green-dark); color: #fff; }
.tiny-note { font-size: .75rem; color: #8c949e; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: #e6f9f1; color: var(--green-dark); font-size: 2rem; font-weight: 900; }
.redirect-progress { height: 5px; background: #e8ecef; }
.redirect-progress .progress-bar { background: var(--green); transition: width .1s linear; }

@media (max-width: 700px) {
  .top-nav { top: 10px; min-height: 65px; padding-left: 18px; }
  .brand { font-size: 1.2rem; }
  .brand-crown { font-size: 1.5rem; }
  .btn-signup, .btn-login { min-width: auto; padding: 10px 15px; font-size: .9rem; }
  .top-stats { top: 84px; width: 94%; }
  .quick-chips { top: 137px; width: 96%; }
  .pill { padding: 7px 12px; font-size: .78rem; }
  .announcement { top: 191px; font-size: .88rem; padding: 10px 14px; }
  .bottom-cta { left: 2%; right: 2%; bottom: 10px; border-radius: 24px; display: block; padding: 12px; }
  .players { justify-content: center; margin-bottom: 9px; font-size: .82rem; }
  .cta-buttons { min-width: 100%; }
  .btn-cta, .btn-login-large { padding: 13px 10px; font-size: .95rem; }
  .map-marker { width: 45px; height: 45px; font-size: 1.2rem; }
  .coming-soon { bottom: 31%; font-size: .8rem; padding: 9px 13px; }
  .signup-visual { display: none; }
  .signup-card { border-radius: 22px; }
  .signup-form-side .modal-header, .signup-form-side .modal-body { padding-left: 20px; padding-right: 20px; }
  .signup-form-side .modal-footer { padding-left: 20px; padding-right: 20px; }
}
