* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
  padding: 64px 24px 40px;
}

.eyebrow {
  font-size: 1rem;
  font-weight: 600;
  color: #0071e3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.1rem;
  color: #6e6e73;
  max-width: 480px;
  margin: 0 auto;
}

.gift-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #86868b;
  font-size: 1.1rem;
  padding: 40px;
}

.gift-card {
  border: 1px solid #e5e5e7;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: #fbfbfd;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.gift-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.view-link {
  color: #0071e3;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.view-link:hover {
  text-decoration: underline;
}

.claim-btn {
  margin-top: auto;
  border: none;
  border-radius: 980px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.claim-btn.unclaimed {
  background: #0071e3;
  color: #fff;
}

.claim-btn.unclaimed:hover {
  background: #005bb5;
}

.claim-btn.claimed {
  background: #f5f5f7;
  color: #86868b;
}

.claim-btn.claimed:hover {
  background: #ffe5e5;
  color: #ff3b30;
}

.gift-card.is-claimed {
  opacity: 0.6;
}

.gift-card.is-claimed h2 {
  text-decoration: line-through;
}

footer {
  text-align: center;
  padding: 24px;
  color: #86868b;
  font-size: 0.9rem;
}

/* Password gate */
#gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

#gate h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

#gate p {
  color: #6e6e73;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

#gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

#gate-input {
  border: 1px solid #e5e5e7;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}

#gate-input:focus {
  border-color: #0071e3;
}

#gate-submit {
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 980px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

#gate-submit:hover {
  background: #005bb5;
}

#gate-error {
  color: #ff3b30;
  font-size: 0.9rem;
  min-height: 1.2em;
}
