/* ---------- 许愿表单 ---------- */
.wish-form { display: flex; flex-direction: column; gap: 12px; }

.cats { display: flex; flex-wrap: wrap; gap: 8px; }

.cat {
  padding: 6px 12px;
  border: var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .1s, background-color .15s;
}

.cat:focus-visible { outline: 3px dashed var(--zhu); outline-offset: 2px; }
.cat[aria-checked="true"] { background: var(--zhu); color: #fff; transform: rotate(-3deg) scale(1.05); }

.wish-form__for { display: flex; align-items: center; gap: 12px; font-weight: 800; white-space: nowrap; }

.wish-form__text { resize: none; line-height: 1.6; }

.wish-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.wish-form__count { font-size: 13px; font-weight: 700; opacity: .55; font-variant-numeric: tabular-nums; }

/* ---------- 孔明灯 ---------- */
.lantern-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }

.sky-lantern {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px;
  height: 80px;
  padding: 8px 6px;
  border: var(--line);
  border-radius: 40% 40% 24% 24% / 46% 46% 20% 20%;
  background: radial-gradient(circle at 50% 70%, #FFF3B0, var(--huang) 40%, #FF8A3D);
  box-shadow: 0 0 32px 8px rgba(255, 190, 70, .7);
  color: var(--zhu-deep);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  word-break: break-all;
  overflow: hidden;
}

/* ---------- 愿望墙 ---------- */
.wall {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(1120px, 100% - 32px);
  margin: 40px auto 0;
}

.wall__title { display: flex; justify-content: center; margin: 0; }

.wall__title span {
  padding: 8px 32px;
  border: var(--line);
  border-radius: 12px;
  background: var(--zhu);
  box-shadow: 0 5px 0 var(--mo);
  color: var(--huang);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .3em;
  text-indent: .3em;
}

.wall__empty { margin: 0; text-align: center; font-weight: 700; opacity: .55; }
.wall__empty[hidden] { display: none; }

.wall__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 20px;
  padding-top: 16px;
}

.plaque {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px 12px;
  border: var(--line);
  border-radius: 14px;
  background:
    linear-gradient(var(--zhu) 0 8px, transparent 8px),
    linear-gradient(135deg, #FFF8E4, #FFE6AE);
  box-shadow: 0 5px 0 var(--mo);
  transform: rotate(var(--tilt, 0deg));
  transform-origin: top center;
  transition: transform .2s;
}

.plaque:hover { transform: rotate(0deg) translateY(-2px); }

.plaque::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 26px;
  height: 22px;
  border: 3px solid var(--zhu);
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  transform: translateX(-50%);
}

.plaque.is-new { animation: plaque-in .6s cubic-bezier(.3, 1.6, .5, 1); }

@keyframes plaque-in {
  from { opacity: 0; transform: translateY(-24px) scale(.8) rotate(-8deg); }
}

.plaque__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.plaque__cat {
  padding: 2px 10px;
  border: 2px solid var(--mo);
  border-radius: 999px;
  background: var(--huang);
  font-size: 13px;
  font-weight: 800;
}

.plaque__for {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: .7;
}

.plaque__text { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.5; word-break: break-word; }

.plaque__reply {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(224, 60, 49, .08);
  color: var(--zhu-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.plaque__foot { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.plaque__foot time { margin-right: auto; opacity: .55; }

.plaque__btn {
  padding: 4px 10px;
  border: 2px solid var(--mo);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.plaque__btn--ghost { border-color: transparent; background: transparent; opacity: .5; }
.plaque__btn:focus-visible { outline: 3px dashed var(--zhu); outline-offset: 2px; }

.plaque__stamp {
  position: absolute;
  top: 36px;
  right: 12px;
  display: none;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 4px double var(--zhu);
  border-radius: 50%;
  color: var(--zhu);
  font-size: 17px;
  font-weight: 900;
  opacity: .85;
  transform: rotate(-18deg);
  pointer-events: none;
}

.plaque.is-done .plaque__stamp { display: grid; }
.plaque.is-done .plaque__text { opacity: .7; }
