:root {
  --sunny-yellow: #ffd166;
  --sunny-orange: #ff9f5b;
  --sky-blue: #6ec6ff;
  --mint: #8fe3c0;
  --coral: #ff8fa3;
  --ink: #4a3b2f;
  --cream: #fffaf0;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #fff6e0 0%, #ffe9c9 35%, #ffd9ec 70%, #cdeeff 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

.sun-decor {
  position: fixed;
  font-size: 4rem;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}
.sun-decor--one { top: -2rem; right: -1rem; font-size: 7rem; }
.sun-decor--two { bottom: 4rem; left: -1.5rem; }
.sun-decor--three { top: 40%; right: 2%; font-size: 3rem; }

.page {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--sunny-orange);
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.hero__title {
  font-family: 'Baloo 2', 'Quicksand', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hero__title span {
  background: linear-gradient(90deg, var(--sunny-orange), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.countdown {
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--sunny-yellow);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  color: var(--sunny-orange);
  box-shadow: 0 4px 14px rgba(255, 159, 91, 0.25);
}

.card {
  background: var(--cream);
  border-radius: 24px;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(255, 159, 91, 0.15);
  border: 3px solid rgba(255, 209, 102, 0.5);
}

.card h2 {
  font-family: 'Baloo 2', sans-serif;
  margin-top: 0;
  color: #d97b3f;
}

.form-card__hint {
  color: #8a7563;
  margin-top: -0.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #6b5643;
}

.field--full {
  grid-column: 1 / -1;
}

.field input {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 2px solid #ffe1b3;
  background: #fffdf8;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--sunny-orange);
  box-shadow: 0 0 0 4px rgba(255, 159, 91, 0.18);
}

.btn-submit {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--sunny-orange), var(--coral));
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 143, 163, 0.45);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-feedback {
  min-height: 1.3rem;
  margin: 0.75rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-feedback.success { color: #2f9e63; }
.form-feedback.error { color: #e0575b; }

.list-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  background: var(--mint);
  color: #1f6b4c;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.85rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}

.guess-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.guess-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #fffaf3;
  border: 2px solid #ffe9d0;
}

.guess-item__date {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: #d97b3f;
  background: #fff1da;
  border-radius: 12px;
  padding: 0.4rem 0.7rem;
  text-align: center;
  min-width: 4.5rem;
  font-size: 0.9rem;
  line-height: 1.2;
}

.guess-item__date small {
  display: block;
  font-weight: 500;
  color: #b9895c;
  font-size: 0.75rem;
}

.guess-item__body {
  min-width: 0;
}

.guess-item__name {
  font-weight: 700;
  margin: 0;
}

.guess-item__message {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #8a7563;
  font-style: italic;
  word-wrap: break-word;
}

.guess-item__weight {
  font-size: 0.8rem;
  background: var(--sky-blue);
  color: #114b6b;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.empty-state {
  display: none;
  text-align: center;
  color: #a9977f;
  font-weight: 600;
  padding: 1rem 0 0;
}

.footer {
  text-align: center;
  color: #b9895c;
  font-weight: 600;
  margin-top: 1rem;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .guess-item {
    grid-template-columns: auto 1fr;
  }
  .guess-item__weight {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
