:root {
  color-scheme: light;
  --ink: #433f49;
  --muted: #716a77;
  --cream: #fff8e8;
  --paper: #fffdf7;
  --pink: #f4a8b7;
  --pink-dark: #c85d75;
  --yellow: #f6cb61;
  --blue: #91c8d7;
  --green: #98c69c;
  --shadow: rgba(113, 84, 56, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(244, 168, 183, 0.24) 0 9%, transparent 9.3%),
    radial-gradient(circle at 84% 76%, rgba(145, 200, 215, 0.25) 0 12%, transparent 12.3%),
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    var(--cream);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 54px 22px;
}

.notice {
  position: relative;
  width: min(680px, 100%);
  padding: 94px 64px 36px;
  text-align: center;
  background:
    linear-gradient(112deg, transparent 34%, rgba(245, 222, 168, 0.12) 34.5% 35%, transparent 35.5%),
    var(--paper);
  border: 2px solid var(--ink);
  border-radius: 36px 20px 42px 24px;
  box-shadow: 12px 14px 0 rgba(67, 63, 73, 0.08), 0 30px 70px var(--shadow);
  transform: rotate(-0.7deg);
  animation: card-arrives 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.notice::before,
.notice::after {
  position: absolute;
  z-index: -1;
  width: 110px;
  height: 110px;
  border: 2px solid var(--ink);
  content: "";
}

.notice::before {
  top: 24px;
  left: -58px;
  background: var(--yellow);
  border-radius: 47% 53% 61% 39%;
  transform: rotate(21deg);
}

.notice::after {
  right: -64px;
  bottom: 34px;
  background: var(--blue);
  border-radius: 56% 44% 38% 62%;
  transform: rotate(-17deg);
}

.tape {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 146px;
  height: 42px;
  background: rgba(246, 203, 97, 0.72);
  border: 1px solid rgba(67, 63, 73, 0.2);
  clip-path: polygon(4% 5%, 98% 0, 94% 100%, 0 91%);
  transform: translateX(-50%) rotate(2deg);
}

.mascot {
  position: absolute;
  top: -76px;
  left: 50%;
  width: 132px;
  height: 142px;
  transform: translateX(-50%);
  animation: mascot-bob 3.4s ease-in-out 900ms infinite;
}

.face {
  position: absolute;
  right: 6px;
  bottom: 0;
  left: 6px;
  height: 108px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 48% 48% 45% 45%;
  box-shadow: inset 0 -8px 0 rgba(244, 168, 183, 0.1);
}

.ear {
  position: absolute;
  top: 0;
  width: 38px;
  height: 76px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 70% 70% 44% 44%;
}

.ear::after {
  position: absolute;
  inset: 14px 10px 8px;
  background: #f7c4ce;
  border-radius: inherit;
  content: "";
}

.ear--left {
  left: 21px;
  transform: rotate(-12deg);
}

.ear--right {
  right: 21px;
  transform: rotate(12deg);
}

.eye,
.cheek,
.mouth {
  position: absolute;
}

.eye {
  top: 43px;
  width: 8px;
  height: 12px;
  background: var(--ink);
  border-radius: 50%;
}

.eye--left {
  left: 32px;
}

.eye--right {
  right: 32px;
}

.cheek {
  top: 61px;
  width: 20px;
  height: 9px;
  background: rgba(244, 168, 183, 0.7);
  border-radius: 50%;
}

.cheek--left {
  left: 17px;
}

.cheek--right {
  right: 17px;
}

.mouth {
  top: 55px;
  left: 50%;
  font: 700 20px/1 Georgia, serif;
  transform: translateX(-50%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 12px;
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  background: #fff0f3;
  border: 1px solid #e7a3b1;
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border: 1px solid #4d8052;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(152, 198, 156, 0.24);
}

h1 {
  margin: 0;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: clamp(2.25rem, 7vw, 4.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 span {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto 8px;
  color: var(--pink-dark);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: -0.055em;
}

h1 span::after {
  position: absolute;
  right: -2%;
  bottom: 1px;
  left: -2%;
  z-index: -1;
  height: 12px;
  background: var(--yellow);
  border-radius: 70% 40% 60% 30%;
  content: "";
  transform: rotate(-1deg);
}

.intro {
  margin: 26px auto 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.9;
}

.wish-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 20px;
  color: #fff;
  font-weight: 700;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 15px 19px 14px 18px;
  box-shadow: 4px 5px 0 var(--pink);
  cursor: pointer;
  transform: rotate(0.5deg);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wish-button:hover {
  background: #554e5c;
  box-shadow: 6px 7px 0 var(--pink);
  transform: translateY(-2px) rotate(-0.5deg);
}

.wish-button:active {
  box-shadow: 2px 2px 0 var(--pink);
  transform: translateY(3px);
}

.wish-button:focus-visible {
  outline: 4px solid rgba(145, 200, 215, 0.55);
  outline-offset: 5px;
}

.wish-button.is-lit span {
  animation: star-pop 600ms ease both;
}

.wish-note {
  min-height: 1.6em;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px -24px 0;
  padding-top: 22px;
  color: #8c858f;
  font-family: Georgia, serif;
  font-size: 0.74rem;
  font-style: italic;
  letter-spacing: 0.04em;
  border-top: 1px dashed rgba(67, 63, 73, 0.22);
}

.doodle {
  position: absolute;
  font-family: Georgia, serif;
  pointer-events: none;
  animation: float 5s ease-in-out infinite;
}

.doodle--one {
  top: 15%;
  left: 10%;
  color: var(--pink-dark);
  font-size: clamp(2rem, 6vw, 4.5rem);
  transform: rotate(-15deg);
}

.doodle--two {
  right: 9%;
  bottom: 14%;
  color: #5d9cac;
  font-size: clamp(2.6rem, 7vw, 5rem);
  animation-delay: -1.6s;
}

.doodle--three {
  top: 13%;
  right: 13%;
  color: #d4a62e;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  animation-delay: -3.2s;
}

@keyframes card-arrives {
  from {
    opacity: 0;
    transform: translateY(26px) rotate(-2.2deg) scale(0.97);
  }
}

@keyframes mascot-bob {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1deg); }
  50% { transform: translateX(-50%) translateY(-7px) rotate(1deg); }
}

@keyframes float {
  0%, 100% { translate: 0 0; rotate: -3deg; }
  50% { translate: 0 -12px; rotate: 4deg; }
}

@keyframes star-pop {
  0% { transform: scale(1) rotate(0); }
  45% { color: var(--yellow); transform: scale(2.1) rotate(35deg); }
  100% { transform: scale(1) rotate(0); }
}

@media (max-width: 600px) {
  .page-shell {
    padding: 74px 16px 34px;
  }

  .notice {
    padding: 85px 24px 28px;
    border-radius: 26px 18px 30px 20px;
  }

  .notice::before {
    left: -78px;
  }

  .notice::after {
    right: -78px;
  }

  .intro br {
    display: none;
  }

  footer {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
