@font-face {
  font-family: "Template Fusion Pixel";
  src: url("../../../assets/template/fonts/fusion-pixel-12px-proportional-zh-hans.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

.template-pages {
  --template-ink: #4f302d;
  --template-paper: #f3ca7b;
  --template-paper-light: #ffeab0;
  --template-wood: #78442e;
  --template-wood-light: #bd7640;
  --template-berry: #bd4f69;
  width: min(100%, 480px);
  margin-inline: auto;
  overflow: clip;
  color: var(--template-ink);
  background: #72a954;
  box-shadow: 0 0 70px #000c;
  font-family: "Template Fusion Pixel", "Songti SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: none;
}

.template-pages *,
.template-pages *::before,
.template-pages *::after {
  box-sizing: border-box;
}

.template-pages button,
.template-pages a,
.template-pages input,
.template-pages select,
.template-pages textarea {
  font: inherit;
}

.template-pages button,
.template-pages a {
  -webkit-tap-highlight-color: transparent;
}

.template-pages button {
  cursor: pointer;
}

.template-pages button:focus-visible,
.template-pages a:focus-visible,
.template-pages input:focus-visible,
.template-pages select:focus-visible,
.template-pages textarea:focus-visible {
  outline: 4px solid #fff5a8;
  outline-offset: 4px;
}

.template-pages img {
  display: block;
  max-width: 100%;
}

.template-pages svg {
  shape-rendering: crispEdges;
}

.template-pages .template-pixel-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.template-pages .template-story-section {
  position: relative;
  padding: 52px 24px;
  overflow: hidden;
  isolation: isolate;
}

.template-pages .template-story-section::after {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 25px;
  background: linear-gradient(135deg, transparent 10px, #65402d 11px 14px, #a86b3e 15px 22px, transparent 23px) 0 0 / 30px 25px repeat-x;
  content: "";
  pointer-events: none;
}

.template-pages .template-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s ease-out, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.template-pages .template-reveal.template-pop-in {
  transform: translateY(20px) scale(0.96);
}

.template-pages .template-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.template-pages .template-section-heading {
  position: relative;
  z-index: 3;
  margin: 0 auto 26px;
  text-align: center;
}

.template-pages .template-section-heading > svg {
  width: 25px;
  height: 25px;
  margin-bottom: 5px;
  fill: #477c3c;
  filter: drop-shadow(2px 2px #f7d373);
}

.template-pages .template-section-heading p {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.template-pages .template-section-heading h2 {
  margin: 0;
  color: #7a412f;
  font-size: clamp(25px, 7vw, 32px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px #f6d470, -1px -1px #fff0ae;
}

.template-pages .template-section-heading h2::after {
  display: block;
  margin-top: 10px;
  color: var(--template-berry);
  content: "◆  ◆  ◆";
  font-size: 8px;
  letter-spacing: 0.45em;
  text-shadow: none;
}

.template-pages .template-section-heading.template-light {
  color: #fff0bd;
}

.template-pages .template-section-heading.template-light > svg {
  fill: #f6cb55;
  filter: drop-shadow(2px 2px #532c5c);
}

.template-pages .template-section-heading.template-light h2 {
  color: #fff1bd;
  text-shadow: 3px 3px #713b71;
}

.template-pages .template-notice {
  background: #8fc56a;
  background-image: radial-gradient(circle, #d5ed9d 1px, transparent 2px), linear-gradient(90deg, #79ad5930 50%, transparent 50%), linear-gradient(#a9d77c30 50%, transparent 50%);
  background-size: 27px 27px, 18px 18px, 18px 18px;
}

.template-pages .template-invitation-board {
  position: relative;
  z-index: 2;
  padding: 31px 19px 18px;
  border: 8px solid var(--template-wood);
  outline: 4px solid var(--template-wood-light);
  background: var(--template-paper);
  box-shadow: inset 0 0 0 3px #ffe3a0, 8px 9px #527942;
  text-align: center;
}

.template-pages .template-invitation-board::before {
  position: absolute;
  inset: 9px;
  border: 2px dashed #b97846;
  content: "";
  pointer-events: none;
}

.template-pages .template-board-kicker {
  position: relative;
  margin: 0 0 8px;
  color: #9d4054;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.template-pages .template-invitation-board h3 {
  position: relative;
  margin: 0;
  color: #9c4a4f;
  font-size: clamp(21px, 6vw, 27px);
  text-shadow: 2px 2px #e7a65e;
}

.template-pages .template-board-message {
  position: relative;
  max-width: 290px;
  margin: 15px auto 16px;
  font-size: 11px;
  line-height: 1.9;
}

.template-pages .template-vine {
  position: absolute;
  z-index: 2;
  top: -8px;
  width: 22px;
  height: 92px;
  background: repeating-linear-gradient(145deg, #46743d 0 5px, transparent 6px 12px);
}

.template-pages .template-vine-left { left: -7px; }
.template-pages .template-vine-right { right: -7px; transform: scaleX(-1); }

.template-pages .template-event-list {
  position: relative;
  margin: 0;
  text-align: left;
}

.template-pages .template-event-list div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 2px dashed #bd824c;
}

.template-pages .template-event-list dt {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #7e4139;
  font-size: 11px;
  font-weight: 900;
}

.template-pages .template-event-list dt svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: #a24c54;
}

.template-pages .template-event-list dd {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.template-pages .template-calendar-card {
  position: relative;
  z-index: 2;
  margin-top: 27px;
  border: 5px solid var(--template-wood);
  background: var(--template-paper-light);
  box-shadow: 7px 8px #527942;
}

.template-pages .template-season-line {
  padding: 9px;
  border-bottom: 3px solid #733b35;
  color: #fff4ca;
  background: #b85b50;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
}

.template-pages .template-calendar-main {
  display: flex;
  gap: 19px;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.template-pages .template-calendar-main strong {
  color: #b74e57;
  font-size: 55px;
  line-height: 1;
  text-shadow: 3px 3px #dda05f;
}

.template-pages .template-calendar-main span {
  color: #775140;
  font-size: 11px;
  letter-spacing: 0.13em;
  writing-mode: vertical-rl;
}

.template-pages .template-countdown {
  display: flex;
  gap: 7px;
  align-items: baseline;
  justify-content: center;
  padding: 10px;
  border-top: 3px solid #b9804f;
  background: #efd086;
  font-size: 11px;
}

.template-pages .template-countdown strong {
  color: #ae4254;
  font-size: 24px;
}

.template-pages .template-schedule-block {
  position: relative;
  z-index: 2;
  margin-top: 27px;
}

.template-pages .template-mini-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #683c32;
  font-size: 15px;
  font-weight: 900;
}

.template-pages .template-mini-heading svg {
  width: 20px;
  height: 20px;
  fill: #ad4f55;
}

.template-pages .template-schedule-grid {
  display: grid;
  gap: 10px;
}

.template-pages .template-schedule-item {
  display: grid;
  grid-template-columns: 34px 67px minmax(0, 1fr);
  min-height: 64px;
  padding: 9px 11px;
  border: 4px solid var(--template-wood);
  align-items: center;
  background: #ffe9ae;
  box-shadow: 4px 5px #557a43;
}

.template-pages .template-schedule-index {
  display: grid;
  width: 27px;
  height: 27px;
  border: 3px solid #773a42;
  place-items: center;
  color: #fff2bb;
  background: #bd5260;
  font-size: 12px;
}

.template-pages .template-schedule-item b { color: #a6434d; font-size: 12px; }
.template-pages .template-schedule-item b small { display: block; margin-top: 4px; color: #725044; font-size: 8px; }
.template-pages .template-schedule-item p { min-width: 0; margin: 0; font-size: 10px; line-height: 1.6; }

.template-pages .template-quest {
  color: #fff0c7;
  background: radial-gradient(circle at 20% 30%, #76578b 0 1px, transparent 2px) 0 0 / 23px 23px, linear-gradient(#2a1b40, #4a2b61 60%, #382443);
}

.template-pages .template-quest::before,
.template-pages .template-rsvp::before {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(90deg, transparent 0 21px, #fff 22px 23px), repeating-linear-gradient(0deg, transparent 0 21px, #fff 22px 23px);
  content: "";
}

.template-pages .template-quest-card {
  position: relative;
  z-index: 2;
  padding: 37px 19px 18px;
  border: 6px solid #a36e4c;
  outline: 4px solid #4e2942;
  background: #352148;
  box-shadow: inset 0 0 0 3px #765274, 8px 9px #1d1329;
}

.template-pages .template-quest-card > p { position: relative; margin: 0 0 16px; font-size: 11px; line-height: 1.9; }
.template-pages .template-quest-pin { position: absolute; top: -24px; left: 50%; display: grid; width: 47px; height: 47px; border: 5px solid #ffbd65; place-items: center; transform: translateX(-50%); color: #fff; background: #c84e64; box-shadow: 3px 4px #21152c; font-size: 23px; }
.template-pages .template-quest-card ul { position: relative; display: grid; gap: 12px; margin: 0; padding: 15px 0; border-block: 2px dashed #805979; list-style: none; }
.template-pages .template-quest-card li { display: grid; grid-template-columns: 21px 44px minmax(0, 1fr); gap: 3px; align-items: start; font-size: 10px; line-height: 1.7; }
.template-pages .template-quest-card li svg { width: 16px; height: 16px; fill: #f8cf4e; filter: drop-shadow(2px 2px #8a4a31); }
.template-pages .template-quest-card li b { color: #ffc57d; }
.template-pages .template-quest-card li span { min-width: 0; color: #faecd1; overflow-wrap: anywhere; }
.template-pages .template-quest-reward { position: relative; margin-top: 15px; padding: 9px 6px; border: 2px solid #7c5579; color: #ffe893; background: #281a37; text-align: center; font-size: 9px; }
.template-pages .template-junimo-row { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; align-items: end; margin-top: 35px; }

.template-pages .template-junimo-row img,
.template-pages .template-blessing-junimos img {
  width: 100%;
  image-rendering: pixelated;
  animation: template-junimo-hop 1.5s ease-in-out infinite alternate;
}

.template-pages .template-junimo-row img:nth-child(2), .template-pages .template-blessing-junimos img:nth-child(2) { filter: hue-rotate(52deg); animation-delay: -0.25s; }
.template-pages .template-junimo-row img:nth-child(3), .template-pages .template-blessing-junimos img:nth-child(3) { filter: hue-rotate(112deg); animation-delay: -0.5s; }
.template-pages .template-junimo-row img:nth-child(4), .template-pages .template-blessing-junimos img:nth-child(4) { filter: hue-rotate(177deg); animation-delay: -0.75s; }
.template-pages .template-junimo-row img:nth-child(5), .template-pages .template-blessing-junimos img:nth-child(5) { filter: hue-rotate(238deg); animation-delay: -1s; }
.template-pages .template-junimo-row img:nth-child(6), .template-pages .template-blessing-junimos img:nth-child(6) { filter: hue-rotate(305deg); animation-delay: -1.25s; }

.template-pages .template-ceremony {
  background: #e79a52;
  background-image: linear-gradient(90deg, #f1ad6440 50%, transparent 50%), linear-gradient(#cc7e4340 50%, transparent 50%);
  background-size: 20px 20px;
}

.template-pages .template-ceremony-scene {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 7px solid var(--template-wood);
  outline: 4px solid var(--template-wood-light);
  background: #b98a58;
  box-shadow: 7px 8px #416a3a;
}

.template-pages .template-ceremony-scene > img {
  width: 100%;
  aspect-ratio: 673 / 655;
  object-fit: cover;
  image-rendering: pixelated;
}

.template-pages .template-pixel-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.template-pages .template-pixel-petals i { position: absolute; top: -8%; width: 5px; height: 5px; background: #ffafc2; box-shadow: 6px 4px #fff0d8; animation: template-petal-fall var(--template-fall, 6s) linear infinite; animation-delay: var(--template-delay, 0s); }
.template-pages .template-dialogue-box { position: relative; z-index: 2; display: grid; grid-template-columns: 68px minmax(0, 1fr); margin-top: 22px; border: 5px solid var(--template-wood); background: #ffedb8; box-shadow: 6px 7px #985d37; }
.template-pages .template-dialogue-box > img { width: 68px; height: 68px; border-right: 4px solid var(--template-wood); object-fit: cover; image-rendering: pixelated; }
.template-pages .template-dialogue-box div { padding: 9px 10px; }
.template-pages .template-dialogue-box b { color: #a6404e; font-size: 11px; }
.template-pages .template-dialogue-box p { margin: 5px 0 0; font-size: 10px; line-height: 1.65; }

.template-pages .template-map-section { color: var(--template-ink); background: #f4dfae radial-gradient(#d8c38d 1px, transparent 1px) 0 0 / 11px 11px; }
.template-pages .template-map-frame { position: relative; z-index: 2; border: 8px solid var(--template-wood); outline: 4px solid var(--template-wood-light); background: #d9a765; box-shadow: 7px 8px #a47a50; }
.template-pages .template-map-frame > img { width: 100%; aspect-ratio: 1.08; object-fit: cover; filter: saturate(0.9) sepia(0.05); }
.template-pages .template-map-pin { position: absolute; top: 44%; left: 55%; display: grid; width: 38px; height: 38px; border: 4px solid #fff1bd; place-items: center; background: #c64e64; box-shadow: 4px 4px #5c3440; animation: template-map-pulse 1.4s ease-in-out infinite; }
.template-pages .template-map-pin > svg { width: 21px; height: 21px; fill: #fff2bd; }
.template-pages .template-map-pin small { position: absolute; top: -4px; left: 29px; width: 90px; padding: 5px 6px; border: 3px solid var(--template-wood); color: #5a332d; background: #fff0b8; box-shadow: 3px 3px #75513c; font-size: 8px; }
.template-pages .template-location-card { position: relative; z-index: 2; margin-top: 26px; padding: 19px; border: 5px solid var(--template-wood); background: #f4d48e; box-shadow: 7px 8px #a47a50; text-align: center; }
.template-pages .template-location-overline { margin: 0 0 6px; color: #a34b51; font-size: 8px; letter-spacing: 0.12em; }
.template-pages .template-venue-list { margin-top: 8px; text-align: left; }
.template-pages .template-venue-stop { padding: 15px 0 17px; border-top: 3px dashed #bd824c; }
.template-pages .template-venue-stop > span { color: #a34b51; font-size: 8px; font-weight: 900; letter-spacing: 0.12em; }
.template-pages .template-venue-stop h3 { margin: 6px 0 10px; color: #91414a; font-size: 14px; line-height: 1.65; }
.template-pages .template-venue-stop .template-pixel-button { display: block; width: 100%; margin-top: 12px; }
.template-pages .template-transport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 17px 0; }
.template-pages .template-transport-grid div { display: grid; min-height: 117px; padding: 8px 5px; border: 4px solid #865035; align-content: start; justify-items: center; background: #fff0bd; }
.template-pages .template-transport-grid img { width: 68px; height: 48px; object-fit: contain; image-rendering: pixelated; }
.template-pages .template-transport-grid b { margin-top: 5px; font-size: 10px; }
.template-pages .template-transport-grid span { font-size: 9px; text-align: center; }

.template-pages .template-pixel-button {
  display: inline-block;
  min-width: 164px;
  padding: 10px 15px;
  border: 4px solid #6e2f42;
  color: #fff5c9;
  background: #b94d60;
  box-shadow: inset 0 0 0 2px #e77b78, 4px 5px #563247;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: center;
  text-decoration: none;
}

.template-pages .template-pixel-button:active { transform: translate(3px, 3px); box-shadow: inset 0 0 0 2px #e77b78, 1px 2px #563247; }

.template-pages .template-rsvp { color: #fff0c7; background: radial-gradient(circle at 25% 20%, #745589 0 1px, transparent 2px) 0 0 / 25px 25px, linear-gradient(180deg, #2a1b40, #4b2c61 58%, #30203f); }
.template-pages .template-rsvp-card { position: relative; z-index: 2; padding: 22px 17px 18px; border: 6px solid #a36e4c; outline: 4px solid #4e2942; color: var(--template-ink); background: #f5d895; box-shadow: inset 0 0 0 3px #ffeab0, 8px 9px #1d1329; }
.template-pages .template-rsvp-card::before { position: absolute; inset: 9px; border: 2px dashed #bd824c; content: ""; pointer-events: none; }
.template-pages .template-rsvp-card-title { position: relative; padding: 1px 6px 18px; text-align: center; }
.template-pages .template-rsvp-card-title span { color: #a44354; font-size: 8px; letter-spacing: 0.18em; }
.template-pages .template-rsvp-card-title strong { display: block; margin-top: 7px; color: #8d3f4d; font-size: 18px; text-shadow: 2px 2px #e7a65e; }
.template-pages .template-rsvp-card-title p { margin: 9px 0 0; font-size: 9px; line-height: 1.7; }
.template-pages .template-form-field, .template-pages .template-attendance-field { position: relative; display: grid; gap: 7px; margin: 0; padding: 12px 5px; border: 0; border-top: 2px dashed #bd824c; }
.template-pages .template-form-field > span, .template-pages .template-attendance-field legend { padding: 0; color: #6f3d35; font-size: 10px; font-weight: 900; }
.template-pages .template-form-field input, .template-pages .template-form-field select, .template-pages .template-form-field textarea { width: 100%; min-height: 43px; padding: 10px; border: 4px solid #7b4935; border-radius: 0; color: #4f302d; background: #fff1bd; box-shadow: inset 3px 3px #dfbc77; font-size: 16px; line-height: 1.5; appearance: none; }
.template-pages .template-form-field textarea { min-height: 91px; resize: vertical; }
.template-pages .template-attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.template-pages .template-attendance-options label { position: relative; cursor: pointer; }
.template-pages .template-attendance-options input { position: absolute; opacity: 0; pointer-events: none; }
.template-pages .template-attendance-options span { display: grid; min-height: 45px; border: 4px solid #7b4935; place-items: center; color: #6f4037; background: #fff1bd; box-shadow: inset 3px 3px #dfbc77; font-size: 10px; }
.template-pages .template-attendance-options input:checked + span { color: #fff4c5; background: #b64b60; box-shadow: inset 3px 3px #df7580; }
.template-pages .template-rsvp-submit { position: relative; width: calc(100% - 10px); margin: 5px; }
.template-pages .template-form-note { position: relative; margin: 10px 5px 0; color: #795a48; font-size: 7px; line-height: 1.7; text-align: center; }

.template-pages .template-guests { background: #80b55e; background-image: linear-gradient(90deg, transparent 48%, #6a9d4b33 50%), linear-gradient(transparent 48%, #acd57c33 50%); background-size: 18px 18px; }
.template-pages .template-blessing-card { position: relative; z-index: 2; padding: 14px 16px 18px; border: 5px solid var(--template-wood); background: #ffe9aa; box-shadow: 7px 8px #4e733f; text-align: center; }
.template-pages .template-blessing-junimos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; align-items: end; margin: -37px 2px 9px; }
.template-pages .template-blessing-card p { margin: 0; font-size: 10px; line-height: 1.9; }
.template-pages .template-inventory-row { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 18px auto; padding: 6px; border: 5px solid var(--template-wood); background: #d89b55; box-shadow: 5px 6px #4e733f; }
.template-pages .template-inventory-row span { display: grid; aspect-ratio: 1; padding: 5px; border: 3px solid #865135; place-items: center; background: #fff0bd; box-shadow: inset 2px 2px #d4a15e; }
.template-pages .template-inventory-row img { width: 72%; max-height: 46px; object-fit: contain; image-rendering: pixelated; }
.template-pages .template-portrait-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 10px; border: 5px solid var(--template-wood); background: #d99e59; box-shadow: 7px 8px #4e733f; }
.template-pages .template-portrait-grid figure { margin: 0; overflow: hidden; border: 3px solid #75442f; background: #fff0b9; text-align: center; }
.template-pages .template-portrait-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; image-rendering: pixelated; }
.template-pages .template-portrait-grid figcaption { padding: 4px 2px; color: #6f3f30; background: #e9c57e; font-size: 7px; }
.template-pages .template-portrait-grid .template-you { display: grid; grid-template-rows: 1fr auto; min-height: 101px; color: #ffd46a; background: #463450; }
.template-pages .template-portrait-grid .template-you > span { align-self: center; font-size: 34px; }
.template-pages .template-harvest { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; margin-top: 34px; }
.template-pages .template-harvest img { width: 63px; margin: 0 -8px; image-rendering: pixelated; filter: drop-shadow(4px 5px #47703e); animation: template-harvest-bounce 1.8s ease-in-out infinite alternate; }
.template-pages .template-harvest img:nth-child(3) { z-index: 2; width: 80px; animation-delay: -0.7s; }
.template-pages .template-harvest img:nth-child(2), .template-pages .template-harvest img:nth-child(5) { animation-delay: -0.35s; }
.template-pages .template-harvest img:nth-child(4) { animation-delay: -1.05s; }

.template-pages .template-ending {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 65px 24px max(94px, calc(env(safe-area-inset-bottom) + 76px));
  overflow: hidden;
  align-content: center;
  justify-items: center;
  color: #fff3c8;
  background: radial-gradient(circle at 50% 36%, #523b69, #1d1b37 54%, #111429);
  text-align: center;
  isolation: isolate;
}

.template-pages .template-ending::before { position: absolute; z-index: -1; inset: 0; opacity: 0.45; background: radial-gradient(circle, #fff 0 1px, transparent 2px) 0 0 / 41px 47px; content: ""; }
.template-pages .template-ending-stars { color: #f7c858; animation: template-star-blink 1.8s steps(2, end) infinite alternate; }
.template-pages .template-ending-junimo { width: 70px; margin: 22px 0 20px; image-rendering: pixelated; filter: drop-shadow(0 7px #0d1024); animation: template-junimo-hop 1.4s steps(3, end) infinite alternate; }
.template-pages .template-ending-copy p { margin: 0; color: #ebc6a6; font-size: 11px; letter-spacing: 0.24em; }
.template-pages .template-ending-copy h2 { margin: 15px 0 20px; font-size: 27px; line-height: 1.55; text-shadow: 3px 3px #783c61; }
.template-pages .template-ending-copy span { display: block; color: #ffc0ca; font-size: 16px; letter-spacing: 0.14em; }
.template-pages .template-ending-copy strong { display: block; margin: 9px 0 25px; color: #ffd26c; font-size: 13px; letter-spacing: 0.22em; }
.template-pages .template-light-button { border-color: #946137; color: #3d2c45; background: #f2cf71; box-shadow: inset 0 0 0 2px #fff0a7, 4px 5px #0e1124; }
.template-pages .template-ending footer { position: absolute; right: 18px; bottom: max(22px, env(safe-area-inset-bottom)); left: 18px; color: #aaa4b9; font-size: 8px; line-height: 1.75; }
.template-pages .template-ending footer a { color: inherit; text-underline-offset: 2px; }

@keyframes template-petal-fall { to { transform: translate(38px, 540px) rotate(180deg); } }
@keyframes template-junimo-hop { to { transform: translateY(-8px) rotate(2deg); } }
@keyframes template-map-pulse { 50% { box-shadow: 4px 4px #5c3440, 0 0 0 8px #d95a7470; } }
@keyframes template-harvest-bounce { to { transform: translateY(-7px); } }
@keyframes template-star-blink { to { opacity: 0.25; transform: scale(0.7); } }

@media (max-width: 360px) {
  .template-pages .template-story-section { padding-inline: 19px; }
  .template-pages .template-event-list div { grid-template-columns: 70px minmax(0, 1fr); }
  .template-pages .template-schedule-item { grid-template-columns: 30px 61px minmax(0, 1fr); padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .template-pages *,
  .template-pages *::before,
  .template-pages *::after {
    animation: none !important;
    transition: none !important;
  }

  .template-pages .template-reveal {
    opacity: 1;
    transform: none;
  }
}
