.mem-page-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.mem-hero {
  position: relative;
  padding: 2.4rem 1.4rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(170, 138, 96, 0.28);
  box-shadow: 0 26px 60px rgba(58, 44, 19, 0.12);
  text-align: center;
  overflow: hidden;
}

.mem-hero::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 184, 0.6), transparent 62%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.mem-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #946638;
}

.mem-hero h1 {
  margin: 0.4rem 0 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #3e2f22;
}

.mem-hero p {
  margin: 0.8rem auto 0;
  max-width: 52ch;
  color: #5e5145;
}

.mem-challenge-hero {
  margin: 1.1rem auto 0;
  max-width: 620px;
  text-align: center;
}

.mem-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(179, 148, 111, 0.33);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(51, 36, 19, 0.1);
  padding: 1.5rem;
}

.mem-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.mem-challenge {
  border: 1px solid rgba(209, 180, 145, 0.85);
  border-radius: 18px;
  padding: 0.95rem;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 228, 197, 0.64), transparent 50%),
    linear-gradient(160deg, rgba(255, 252, 247, 0.98), rgba(253, 241, 223, 0.95));
}

.mem-challenge-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a5f35;
}

.mem-challenge-text {
  margin: 0.45rem 0 0;
  font-weight: 600;
  color: #4f3a25;
}

.mem-challenge-btn {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.9rem 1.35rem;
}

.mem-challenge-btn:hover,
.mem-challenge-btn:focus {
  transform: translateY(-2px);
}

.mem-challenge-btn:active {
  transform: translateY(0);
}

.mem-note {
  margin: 0;
  color: #5a4d3d;
  font-size: 0.92rem;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(209, 190, 163, 0.9);
  box-shadow: 0 10px 18px rgba(106, 80, 49, 0.14);
}

.mem-home-link {
  color: #704822;
  font-weight: 700;
}

@media (max-width: 720px) {
  .mem-hero {
    padding: 2rem 1rem;
  }

  .mem-card {
    padding: 1.2rem;
  }
}
