.stamp-page {
  background: #c92468;
}

.stamp-wrap {
  --gold: #d89b23;
  --mint: #65bdab;
  padding-bottom: 70px;
}

.stamp-wrap main {
  overflow: hidden;
}

.stamp-hero {
  position: relative;
  min-height: 310px;
  padding: 54px 24px 38px;
  overflow: hidden;
  color: #fff;
  background: var(--pink);
  border-bottom: 6px solid var(--brown);
  text-align: center;
}

.stamp-hero::before,
.stamp-hero::after {
  position: absolute;
  content: "✦";
  color: var(--pink-soft);
  font-size: 4.5rem;
  opacity: 0.36;
}

.stamp-hero::before {
  top: 5px;
  left: -12px;
  rotate: -12deg;
}

.stamp-hero::after {
  right: -8px;
  bottom: -18px;
  rotate: 14deg;
}

.stamp-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 15px;
  color: var(--pink-soft);
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stamp-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Cooper Black", "Arial Rounded MT Bold", Georgia, serif;
  font-size: clamp(2.05rem, 11vw, 4.6rem);
  line-height: 0.96;
  text-shadow: 4px 5px 0 var(--brown);
}

.stamp-hero h1 span {
  font-size: 0.54em;
  letter-spacing: 0.03em;
}

.stamp-hero > p:not(.stamp-kicker) {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.65;
}

.stamp-hero-note {
  position: absolute;
  right: 16px;
  bottom: 15px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--brown-dark);
  background: var(--paper-light);
  border: 2px solid var(--brown);
  border-radius: 999px;
  box-shadow: 3px 4px 0 rgba(61, 36, 23, 0.35);
  rotate: -3deg;
}

.stamp-hero-note strong {
  color: var(--pink);
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 1.1rem;
}

.stamp-hero-note span {
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}

.stamp-poster {
  margin: 24px 16px 18px;
  background: #fff;
  border: 2px solid var(--pink);
  border-radius: 8px;
  box-shadow: 6px 7px 0 var(--pink-soft);
  rotate: -0.5deg;
}

.stamp-poster a {
  display: block;
  padding: 7px;
}

.stamp-poster img {
  width: 100%;
  border-radius: 4px;
}

.stamp-poster span {
  display: block;
  padding: 7px 4px 2px;
  color: var(--pink);
  font-size: 0.65rem;
  font-weight: 900;
  text-align: right;
}

.stamp-jump {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 0 16px 14px;
  padding: 6px;
  background: var(--brown-dark);
  border-radius: 8px;
}

.stamp-jump a {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 900;
}

.stamp-jump a:first-child {
  color: var(--brown-dark);
  background: var(--pink-soft);
}

.rewards-section,
.rules-section {
  padding: 54px 16px 62px;
  background: var(--brown-dark);
}

.stamp-section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.stamp-section-heading p {
  margin: 0 0 5px;
  color: var(--pink);
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rewards-section .stamp-section-heading h2,
.rules-section .stamp-section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 1.65rem;
}

.reward-grid {
  display: grid;
  gap: 12px;
}

.reward-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  min-height: 128px;
  padding: 14px;
  overflow: hidden;
  background: var(--paper-light);
  border: 2px solid var(--pink);
  border-radius: 8px;
  box-shadow: 5px 6px 0 rgba(239, 63, 140, 0.38);
}

.reward-card::after {
  position: absolute;
  right: -10px;
  bottom: -32px;
  color: var(--pink-soft);
  content: "●";
  font-size: 7rem;
  opacity: 0.7;
}

.reward-count {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: #fff;
  background: var(--pink);
  border: 3px solid var(--brown);
  border-radius: 50%;
  font-family: "Cooper Black", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.reward-count small {
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 0.42rem;
}

.reward-card > div {
  position: relative;
  z-index: 1;
}

.reward-card > div small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
}

.reward-card > div strong {
  display: block;
  color: var(--pink);
  font-size: 1.08rem;
  line-height: 1.5;
}

.reward-complete {
  display: block;
  min-height: 215px;
  padding: 24px 18px;
  color: var(--brown-dark);
  background: #fff9e9;
  border-color: var(--gold);
  box-shadow: 5px 6px 0 rgba(216, 155, 35, 0.42);
  text-align: center;
}

.reward-complete::after {
  color: #ffe6a9;
}

.reward-complete p {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--gold);
  font-family: "Cooper Black", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.reward-complete > strong,
.reward-complete h3,
.reward-complete > small {
  position: relative;
  z-index: 1;
  display: block;
}

.reward-complete > strong {
  color: var(--pink);
  font-size: 0.82rem;
}

.reward-complete h3 {
  margin: 10px 0;
  font-size: 1.3rem;
  line-height: 1.45;
}

.reward-note {
  margin: 18px 0 0;
  color: var(--pink-soft);
  font-size: 0.67rem;
  font-weight: 800;
  text-align: center;
}

.schedule-section {
  padding: 60px 16px 70px;
}

.schedule-section > .stamp-section-heading h2 {
  margin: 0;
  font-size: 1.8rem;
}

.schedule-section > .stamp-section-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.guest-avatar-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px 8px;
  max-width: 430px;
  margin: 24px auto 12px;
  padding: 18px 13px;
  background: var(--pink-soft);
  border: 2px dashed var(--pink);
  border-radius: 8px;
}

.guest-avatar-strip a {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
}

.guest-avatar-strip img {
  width: clamp(42px, 14vw, 52px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--pink), 2px 3px 0 var(--brown);
}

.guest-avatar-strip span {
  color: var(--brown-dark);
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
}

.month-group {
  scroll-margin-top: 74px;
  margin-top: 46px;
}

.month-heading {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 3px solid var(--brown);
}

.month-heading > span {
  color: var(--pink);
  font-family: "Cooper Black", Georgia, serif;
  font-size: 2.3rem;
  line-height: 0.9;
}

.month-heading h2 {
  margin: 0;
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.month-heading small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
}

.guest-card-grid {
  display: grid;
  gap: 12px;
}

.rally-guest-card {
  overflow: hidden;
  background: var(--paper-light);
  border: 2px solid var(--brown);
  border-radius: 8px;
  box-shadow: 5px 6px 0 var(--pink-soft);
}

.rally-guest-card > header {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: stretch;
  min-height: 68px;
  color: #fff;
  background: var(--pink);
}

.rally-guest-card > header > span {
  display: grid;
  place-items: center;
  background: var(--brown);
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
}

.rally-guest-card time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
}

.rally-guest-card time strong {
  font-family: "Cooper Black", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}

.rally-guest-card time small {
  color: var(--pink-soft);
  font-size: 0.65rem;
  font-weight: 900;
}

.rally-guest-card > div {
  padding: 15px 14px 14px;
}

.guest-profile {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: -38px;
}

.guest-avatar-link {
  display: block;
  width: 78px;
  height: 78px;
  overflow: hidden;
  background: var(--paper-light);
  border: 4px solid var(--paper-light);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--pink), 3px 4px 0 rgba(100, 52, 23, 0.34);
}

.guest-avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.guest-identity {
  min-width: 0;
  padding-top: 38px;
}

.rally-guest-card h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.35;
}

.guest-x-link {
  display: inline-flex;
  max-width: 100%;
  margin-top: 4px;
  padding: 4px 9px;
  color: var(--pink);
  background: #fff;
  border: 1px solid var(--pink);
  border-radius: 999px;
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 0.67rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rally-guest-card dl {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.rally-guest-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}

.rally-guest-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.rally-guest-card dd {
  flex: 0 0 auto;
  margin: 0;
  color: var(--pink);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.stamp-callout {
  position: relative;
  margin: 54px 0 10px;
  padding: 28px 24px;
  color: #fff;
  background: var(--pink);
  border: 2px solid var(--brown);
  border-radius: 8px;
  box-shadow: 7px 8px 0 var(--brown);
  text-align: center;
  rotate: -1deg;
}

.stamp-callout::before,
.stamp-callout::after {
  position: absolute;
  content: "✦";
  color: var(--pink-soft);
  font-size: 1.6rem;
}

.stamp-callout::before { top: 8px; left: 12px; }
.stamp-callout::after { right: 12px; bottom: 8px; }

.stamp-callout strong,
.stamp-callout span {
  display: block;
}

.stamp-callout strong {
  font-size: 1.05rem;
  line-height: 1.55;
}

.stamp-callout span {
  margin-top: 8px;
  color: var(--pink-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.star-legend {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.rules-section {
  background: var(--wood-dark);
}

.rule-grid {
  display: grid;
  gap: 10px;
}

.rule-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 72px;
  background: var(--paper-light);
  border: 2px solid var(--brown-dark);
  border-radius: 8px;
}

.rule-card span {
  display: grid;
  place-items: center;
  align-self: stretch;
  color: #fff;
  background: var(--pink);
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
}

.rule-card p {
  margin: 0;
  padding: 11px 13px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.65;
}

.stamp-end-cta {
  padding: 58px 20px 64px;
  text-align: center;
}

.stamp-end-cta img {
  width: 210px;
  margin: 0 auto 22px;
}

.stamp-end-cta p {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.45;
}

.stamp-end-cta > strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.65;
}

.stamp-end-cta > div {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.stamp-end-cta a {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 10px;
  color: #fff;
  background: var(--pink);
  border: 2px solid var(--brown);
  border-radius: 8px;
  box-shadow: 4px 5px 0 var(--brown);
  font-size: 0.82rem;
  font-weight: 900;
}

.stamp-end-cta a:last-child {
  color: var(--brown-dark);
  background: var(--paper-light);
}

.stamp-footer {
  padding-bottom: 96px;
  background: var(--paper);
}

.stamp-footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 0.74rem;
  font-weight: 900;
}

.stamp-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr 1fr;
  width: min(100%, 760px);
  min-height: 68px;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 248, 242, 0.97);
  border-top: 2px solid var(--brown);
  backdrop-filter: blur(12px);
}

.stamp-dock a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  font-size: 0.65rem;
  font-weight: 900;
}

.stamp-dock a + a {
  border-left: 1px solid var(--line);
}

.stamp-dock span {
  color: var(--pink);
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 0.86rem;
  line-height: 1.2;
}

.stamp-dock .stamp-dock-visit {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 -4px 0 var(--brown);
}

.stamp-dock .stamp-dock-visit span {
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .stamp-hero::before { animation: stamp-spark 4s ease-in-out infinite; }
  .stamp-hero::after { animation: stamp-spark 4s ease-in-out 1.2s infinite; }
  .stamp-hero-note { animation: stamp-note 4.2s ease-in-out infinite; }
  .stamp-poster { animation: stamp-poster-float 5s ease-in-out infinite; }
  .reward-count { animation: stamp-count-pulse 3.6s ease-in-out infinite; }
  .reward-ten .reward-count { animation-delay: 600ms; }
  .reward-complete p { animation: stamp-gold-glow 3.4s ease-in-out infinite; }
  .rally-guest-card > header > span { animation: stamp-number-pulse 4.6s ease-in-out infinite; }
  .guest-avatar-strip a:nth-child(3n + 1) img { animation: guest-avatar-bob 4.2s ease-in-out infinite; }
  .guest-avatar-strip a:nth-child(3n + 2) img { animation: guest-avatar-bob 4.2s ease-in-out 500ms infinite; }
  .guest-avatar-strip a:nth-child(3n) img { animation: guest-avatar-bob 4.2s ease-in-out 1s infinite; }
  .guest-avatar-link { animation: guest-avatar-glow 4.8s ease-in-out infinite; }
  .stamp-callout::before { animation: stamp-spark 3.2s ease-in-out infinite; }
  .stamp-callout::after { animation: stamp-spark 3.2s ease-in-out 900ms infinite; }
  .stamp-dock-visit span { animation: dock-bob 3.2s ease-in-out infinite; }
}

@keyframes stamp-spark {
  0%, 100% { opacity: 0.3; scale: 0.82; rotate: -8deg; }
  50% { opacity: 0.9; scale: 1.08; rotate: 8deg; }
}

@keyframes stamp-note {
  0%, 100% { translate: 0 0; rotate: -3deg; }
  50% { translate: 0 -5px; rotate: 0deg; }
}

@keyframes stamp-poster-float {
  0%, 100% { translate: 0 0; rotate: -0.5deg; }
  50% { translate: 0 -4px; rotate: 0deg; }
}

@keyframes stamp-count-pulse {
  0%, 100% { scale: 1; box-shadow: 0 0 0 0 rgba(239, 63, 140, 0); }
  50% { scale: 1.035; box-shadow: 0 0 0 7px rgba(239, 63, 140, 0.1); }
}

@keyframes stamp-gold-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(216, 155, 35, 0); }
  50% { text-shadow: 0 0 15px rgba(216, 155, 35, 0.45); }
}

@keyframes stamp-number-pulse {
  0%, 78%, 100% { filter: brightness(1); }
  88% { filter: brightness(1.25); }
}

@keyframes guest-avatar-bob {
  0%, 100% { translate: 0 0; rotate: -1deg; }
  50% { translate: 0 -4px; rotate: 1deg; }
}

@keyframes guest-avatar-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--pink), 3px 4px 0 rgba(100, 52, 23, 0.34); }
  50% { box-shadow: 0 0 0 4px rgba(239, 63, 140, 0.22), 3px 5px 0 rgba(100, 52, 23, 0.34); }
}

@media (max-width: 359px) {
  .schedule-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .guest-avatar-strip {
    gap: 11px 5px;
    padding-right: 9px;
    padding-left: 9px;
  }
}

@media (min-width: 600px) {
  .stamp-hero {
    min-height: 390px;
    padding-top: 78px;
  }

  .stamp-poster,
  .stamp-jump {
    margin-right: 48px;
    margin-left: 48px;
  }

  .schedule-section,
  .rewards-section,
  .rules-section {
    padding-right: 48px;
    padding-left: 48px;
  }

  .reward-grid,
  .guest-card-grid,
  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reward-complete {
    grid-column: 1 / -1;
  }

  .stamp-end-cta {
    padding-right: 72px;
    padding-left: 72px;
  }

  .stamp-end-cta > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
