html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(
    to bottom,
    #0b1026 0%,
    #241944 45%,
    #b84c53 75%,
    #ff6b4a 100%
  );

  background-repeat: no-repeat;
  background-attachment: fixed;

  color: white;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;

  padding: 24px;
  box-sizing: border-box;
}

main {
  width: 100%;
  max-width: 850px;
}

h1 {
  font-size: clamp(48px, 10vw, 88px);
  line-height: 1.02;
  margin: 0 0 24px;
  font-weight: 800;
}

.tagline {
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: rgba(255,255,255,0.82);
}

h2 {
  font-size: clamp(26px, 5vw, 42px);
  color: rgba(255,255,255,0.82);
  margin: 0 0 34px;
}

.search-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 34px;
}

input {
  width: min(520px, 70%);
  padding: 18px 20px;
  font-size: 22px;

  border: none;
  border-radius: 14px;
  box-sizing: border-box;
}

button {
  padding: 18px 24px;
  font-size: 22px;

  border: none;
  border-radius: 14px;

  cursor: pointer;
  font-weight: 700;
}

#result {
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.35;
}

#result p {
  margin: 18px 0;
}

.score-card {
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;

  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.score-label {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 15px;
}

.sunset-score {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1;
}

.sunset-verdict {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  margin-top: 15px;
}

.sunset-time {
  margin-top: 16px;
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
}

.score-guide {
  margin: 24px auto 0;
  max-width: 520px;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.35;
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 20px;
}

.score-guide summary {
  cursor: pointer;
  font-weight: 700;
}

.score-guide p {
  margin-bottom: 0;
}

@media (max-width: 650px) {
  body {
    align-items: flex-start;
    padding: 28px 18px;
  }

  .search-row {
    flex-direction: column;
  }

  input,
  button {
    width: 100%;
    font-size: 22px;
  }

  h1 {
    margin-top: 24px;
  }
}
.location-wrapper {
  position: relative;
  width: min(520px, 70%);
}

.location-wrapper {
  position: relative;
  width: min(520px, 70%);
}

.location-wrapper input {
  width: 100%;
}

#suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 999;

  text-align: left;
}

.suggestion {
  padding: 14px 18px;
  font-size: 20px;
  background: rgba(255,255,255,0.96);
  color: #111;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
}

.suggestion:first-child {
  border-radius: 14px 14px 0 0;
}

.suggestion:last-child {
  border-radius: 0 0 14px 14px;
  border-bottom: none;
}

@media (max-width: 650px) {
  .location-wrapper {
    width: 100%;
  }
}