:root {
  /* Easy edit zone: swap the color codes and font names here. */
  --page: #fffaf1;
  --panel: #fff5e2;
  --paper: #fffdf8;
  --ink: #2d251f;
  --soft-ink: #6f6257;
  --peach: #ffd9c7;
  --peach-deep: #f2a986;
  --line: #f6ccb8;
  --shadow: rgba(96, 69, 45, 0.13);
  --font-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --font-body: "Gaegu", "Segoe Print", "Comic Sans MS", cursive;
}

/*
  To use the exact DaFont file later:
  1. Put the .woff2 file in assets/fonts/.
  2. Uncomment this block and set --font-hand or --font-body to "Your DaFont Name".

@font-face {
  font-family: "Your DaFont Name";
  src: url("assets/fonts/your-dafont-file.woff2") format("woff2");
  font-display: swap;
}
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.45;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 18px;
  background: rgba(255, 250, 241, 0.94);
  border-bottom: 1px solid rgba(121, 96, 70, 0.18);
  backdrop-filter: blur(10px);
}

.header-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 3px 14px 4px;
  border-radius: 6px;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--shadow);
}

.hero-section {
  display: grid;
  min-height: 520px;
  padding: 54px 24px 66px;
  place-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 342px);
  align-items: center;
  width: min(980px, 100%);
  gap: clamp(36px, 8vw, 116px);
}

.hero-copy {
  max-width: 555px;
}

.hero-copy h1,
.surprise-detail h1 {
  margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(44px, 7vw, 68px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 460px;
  margin: 18px 0 0;
  color: var(--soft-ink);
  font-size: 21px;
}

.counter-tile {
  display: inline-grid;
  min-width: 176px;
  min-height: 72px;
  margin-top: 24px;
  padding: 10px 18px 12px;
  place-items: center;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--peach);
  box-shadow: 0 8px 18px var(--shadow);
}

.counter-label,
.surprise-kicker,
.section-note {
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.1;
}

.counter-value {
  font-family: var(--font-hand);
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 342px;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(120, 91, 63, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px var(--shadow);
}

.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-section {
  background: var(--panel);
}

.section-inner {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 68px 0;
  text-align: center;
}

.section-inner.narrow {
  width: min(690px, calc(100% - 48px));
}

h2 {
  margin: 0 0 18px;
  font-family: var(--font-hand);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.about-section p,
.surprise-detail p {
  margin: 0 auto;
  color: var(--soft-ink);
}

.surprises-section {
  background: var(--page);
}

.section-note {
  margin: -8px 0 34px;
}

.surprise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  text-align: left;
}

.surprise-card,
.surprise-detail {
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 18px var(--shadow);
}

.surprise-card {
  display: grid;
  min-height: 138px;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.surprise-card:hover,
.surprise-card:focus-visible {
  border-color: var(--peach-deep);
  box-shadow: 0 12px 24px rgba(96, 69, 45, 0.18);
  outline: none;
  transform: translateY(-3px);
}

.surprise-card.is-locked {
  cursor: not-allowed;
  opacity: 0.68;
}

.surprise-card.is-locked:hover {
  border-color: var(--line);
  box-shadow: 0 8px 18px var(--shadow);
  transform: none;
}

.surprise-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1;
}

.surprise-card p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 18px;
}

.surprise-card span {
  align-self: end;
  margin-top: 18px;
  color: var(--ink);
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.surprise-card.is-locked span {
  color: var(--soft-ink);
  text-decoration: none;
}

.site-footer {
  padding: 18px 24px 20px;
  background: var(--panel);
  border-top: 1px solid rgba(121, 96, 70, 0.14);
  color: var(--soft-ink);
  font-size: 19px;
  text-align: center;
}

.surprise-page {
  display: grid;
  min-height: calc(100vh - 104px);
  place-items: center;
}

.surprise-shell {
  padding: 56px 0;
}

.surprise-detail {
  width: min(760px, 100%);
  min-height: 360px;
  margin: 0 auto;
  padding: clamp(32px, 8vw, 64px);
  text-align: center;
}

.surprise-kicker {
  margin-bottom: 8px;
}

.surprise-detail p {
  max-width: 620px;
  font-size: 24px;
  text-align: left;
  white-space: pre-line;
}

#surprise-extra {
  margin-top: 30px;
}

.surprise-detail.has-puzzle {
  width: min(1120px, 100%);
}

.surprise-detail.has-puzzle #surprise-message,
.surprise-detail.has-album #surprise-message,
.surprise-detail.has-constellation #surprise-message,
.surprise-detail.has-distance-bridge #surprise-message,
.surprise-detail.has-gift-card #surprise-message {
  text-align: center;
}

.surprise-detail.has-album,
.surprise-detail.has-constellation,
.surprise-detail.has-distance-bridge,
.surprise-detail.has-gift-card {
  width: min(1120px, 100%);
}

.word-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: start;
  gap: 28px;
}

.word-search-board {
  display: grid;
  grid-template-columns: repeat(var(--puzzle-size), minmax(0, 1fr));
  width: min(100%, 680px);
  margin: 0 auto;
  gap: 3px;
}

.word-search-cell {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: var(--page);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
}

.word-search-cell:hover,
.word-search-cell:focus-visible {
  border-color: var(--peach-deep);
  background: var(--peach);
  outline: none;
}

.word-search-cell.is-picked {
  border-color: var(--peach-deep);
  background: var(--peach);
  box-shadow: inset 0 0 0 1px var(--peach-deep);
}

.word-search-cell.is-found {
  border-color: rgba(242, 169, 134, 0.85);
  background: rgba(255, 217, 199, 0.8);
  color: var(--ink);
  font-weight: 700;
}

.word-search-panel {
  text-align: left;
}

.word-search-help,
.word-search-progress {
  margin: 0 0 12px;
  color: var(--soft-ink);
  font-size: 19px;
  line-height: 1.2;
  text-align: left;
}

.word-search-progress {
  color: var(--ink);
  font-weight: 700;
}

.word-search-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.word-search-list li {
  min-width: 0;
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.15;
}

.word-search-list li.is-found {
  color: var(--ink);
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--peach-deep);
}

.word-search-reset {
  min-height: 38px;
  margin-top: 20px;
  padding: 7px 16px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--peach);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-hand);
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 8px 18px var(--shadow);
}

.word-search-reset:hover,
.word-search-reset:focus-visible {
  border-color: var(--peach-deep);
  outline: none;
}

.photo-album-note {
  margin: 0 0 32px;
  color: var(--soft-ink);
  font-family: var(--font-hand);
  font-size: 27px;
  text-align: center;
}

.photo-album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 34px 30px;
  padding: 14px 8px;
}

.album-photo {
  position: relative;
  margin: 0;
  padding: 14px 14px 20px;
  border: 2px dashed var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 10px 20px var(--shadow);
}

.album-photo-1 {
  transform: rotate(-2deg);
}

.album-photo-2 {
  transform: rotate(1.4deg);
}

.album-photo-3 {
  transform: rotate(-0.8deg);
}

.album-photo-4 {
  transform: rotate(2deg);
}

.album-photo-5 {
  transform: rotate(-1.2deg);
}

.album-photo-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 72px;
  height: 24px;
  background: rgba(255, 217, 199, 0.76);
  transform: translateX(-50%) rotate(-1deg);
}

.album-photo-frame {
  overflow: hidden;
  border: 1px solid rgba(120, 91, 63, 0.16);
  aspect-ratio: 4 / 5;
  background: var(--panel);
}

.album-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-photo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 18px;
  place-items: center;
  color: var(--soft-ink);
  font-family: var(--font-hand);
  font-size: 25px;
  text-align: center;
}

.album-photo figcaption {
  min-height: 42px;
  padding-top: 12px;
  color: var(--soft-ink);
  font-size: 19px;
  line-height: 1.15;
  text-align: center;
}

.constellation {
  width: min(820px, 100%);
  margin: 0 auto;
}

.constellation-sky {
  position: relative;
  height: clamp(260px, 38vw, 390px);
  overflow: hidden;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #65565d;
  box-shadow: 0 10px 20px var(--shadow);
}

.constellation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.constellation-lines polyline {
  fill: none;
  stroke: rgba(255, 245, 226, 0.46);
  stroke-dasharray: 2 2;
  stroke-width: 0.7;
}

.constellation-star {
  position: absolute;
  left: var(--star-left);
  top: var(--star-top);
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 245, 226, 0.74);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.constellation-star:hover,
.constellation-star:focus-visible,
.constellation-star.is-lit {
  color: #ffd9c7;
  outline: none;
  text-shadow: 0 0 14px rgba(255, 217, 199, 0.92);
  transform: translate(-50%, -50%) scale(1.18);
}

.constellation-note,
.distance-bridge {
  margin-top: 22px;
  padding: 20px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.constellation-note p,
.constellation-note span,
.distance-bridge p {
  display: block;
  margin: 0;
  color: var(--soft-ink);
  font-size: 21px;
  text-align: center;
}

.constellation-note span {
  margin-top: 8px;
  color: var(--ink);
}

.distance-bridge {
  width: min(900px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.distance-bridge-map {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.distance-place {
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 31px;
  font-weight: 700;
}

.distance-route {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.distance-route::before {
  position: absolute;
  top: 50%;
  right: 8px;
  left: 8px;
  border-top: 2px dashed var(--line);
  content: "";
  transform: translateY(-50%);
}

.distance-step {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 2px dashed var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--soft-ink);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.distance-step:hover,
.distance-step:focus-visible,
.distance-step.is-open {
  background: var(--peach);
  color: var(--ink);
  outline: none;
  transform: translateY(-3px);
}

.distance-bridge-message {
  margin-top: 22px !important;
}

.distance-bridge-final {
  margin-top: 14px !important;
  color: var(--ink) !important;
  font-family: var(--font-hand);
  font-size: 28px !important;
  font-weight: 700;
}

.gift-reveal {
  --gift-main: #00aa13;
  --gift-dark: #006f0c;
  --gift-soft: #d9ffd9;
  --gift-card-text: #ffffff;
  position: relative;
  width: min(840px, 100%);
  margin: 0 auto;
}

.gift-theme-shopee {
  --gift-main: #ee4d2d;
  --gift-dark: #b9351d;
  --gift-soft: #ffe2d9;
}

.gift-scene {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 36px;
  min-height: 240px;
}

.gift-envelope {
  position: relative;
  width: 250px;
  height: 172px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 700px;
}

.gift-envelope-back,
.gift-envelope-paper,
.gift-envelope-front,
.gift-envelope-flap,
.gift-envelope-seal {
  position: absolute;
  display: block;
}

.gift-envelope-back {
  right: 0;
  bottom: 0;
  left: 0;
  height: 122px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #ffe2d3;
  box-shadow: 0 12px 24px var(--shadow);
}

.gift-envelope-paper {
  right: 34px;
  bottom: 34px;
  left: 34px;
  height: 102px;
  border: 1px solid rgba(120, 91, 63, 0.14);
  border-radius: 5px 5px 2px 2px;
  background: var(--paper);
  transform: translateY(48px);
  transition: transform 600ms ease;
}

.gift-envelope-front {
  right: 0;
  bottom: 0;
  left: 0;
  height: 122px;
  border-radius: 8px;
  background: #ffd0bc;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}

.gift-envelope-flap {
  top: 50px;
  right: 0;
  left: 0;
  height: 96px;
  background: #ffc4ad;
  clip-path: polygon(0 0, 100% 0, 50% 76%);
  transform-origin: top center;
  transition: transform 600ms ease, filter 600ms ease;
}

.gift-envelope-seal {
  right: 50%;
  bottom: 48px;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(120, 91, 63, 0.12);
  border-radius: 50%;
  background: var(--gift-main);
  transform: translateX(50%);
  transition: opacity 240ms ease, transform 500ms ease;
}

.gift-envelope:hover .gift-envelope-seal,
.gift-envelope:focus-visible .gift-envelope-seal {
  transform: translateX(50%) scale(1.1);
}

.gift-envelope:focus-visible {
  outline: 2px dashed var(--peach-deep);
  outline-offset: 6px;
}

.gift-reveal.is-open .gift-envelope-paper {
  transform: translateY(-42px);
}

.gift-reveal.is-open .gift-envelope-flap {
  filter: brightness(1.02);
  transform: rotateX(172deg);
}

.gift-reveal.is-open .gift-envelope-seal {
  opacity: 0;
  transform: translateX(50%) scale(0.5);
}

.gift-bouquet {
  position: relative;
  width: 156px;
  height: 190px;
}

.gift-stem {
  position: absolute;
  bottom: 36px;
  width: 4px;
  height: 116px;
  border-radius: 999px;
  background: #6b8e4e;
  transform-origin: bottom center;
}

.gift-stem-1 {
  left: 60px;
  transform: rotate(-14deg);
}

.gift-stem-2 {
  left: 76px;
}

.gift-stem-3 {
  left: 92px;
  transform: rotate(14deg);
}

.gift-flower {
  position: absolute;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 10px rgba(255, 217, 199, 0.45);
}

.gift-flower::before,
.gift-flower::after {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.gift-flower::before {
  top: -11px;
  left: 7px;
}

.gift-flower::after {
  right: -11px;
  bottom: 6px;
}

.gift-flower-1 {
  top: 22px;
  left: 26px;
  background: #ffd9c7;
}

.gift-flower-2 {
  top: 6px;
  left: 68px;
  background: #fff5e2;
}

.gift-flower-3 {
  top: 32px;
  left: 92px;
  background: var(--gift-soft);
}

.gift-wrap {
  position: absolute;
  right: 30px;
  bottom: 0;
  left: 28px;
  height: 76px;
  border: 2px dashed var(--line);
  border-radius: 6px 6px 18px 18px;
  background: #ffd0bc;
  clip-path: polygon(12% 0, 88% 0, 72% 100%, 28% 100%);
}

.gift-letter {
  width: min(560px, 100%);
  max-height: 0;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: max-height 700ms ease, opacity 500ms ease, transform 500ms ease, margin 500ms ease;
}

.gift-reveal.is-open .gift-letter {
  max-height: 860px;
  margin-top: 28px;
  opacity: 1;
  transform: translateY(0);
}

.gift-letter-ready,
.gift-code-label,
.gift-code-pill,
.gift-letter-text {
  text-align: center !important;
}

.gift-letter-ready {
  margin-bottom: 14px !important;
  color: var(--ink) !important;
  font-size: 24px !important;
}

.gift-code-label {
  color: var(--soft-ink) !important;
  font-size: 18px !important;
}

.gift-code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 38px;
  margin: 8px auto 24px !important;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--gift-main);
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gift-letter h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 38px;
  line-height: 1;
}

.gift-letter-text {
  color: var(--soft-ink) !important;
  font-size: 22px !important;
}

.gift-card-preview {
  position: relative;
  display: grid;
  width: min(330px, 100%);
  margin: 24px auto 0;
  overflow: hidden;
  aspect-ratio: 1.58;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gift-main), var(--gift-dark));
  box-shadow: 0 14px 26px rgba(96, 69, 45, 0.2);
  color: var(--gift-card-text);
}

.gift-card-brand {
  position: relative;
  z-index: 1;
  font-family: var(--font-hand);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
}

.gift-card-amount {
  position: relative;
  z-index: 1;
  margin-top: -22px;
  font-size: 24px;
}

.gift-card-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58px;
  background: rgba(255, 255, 255, 0.18);
  clip-path: polygon(0 48%, 22% 60%, 47% 46%, 70% 68%, 100% 40%, 100% 100%, 0 100%);
}

.gift-confetti {
  position: absolute;
  inset: -20px 0 auto;
  height: 0;
  pointer-events: none;
  z-index: 4;
}

.gift-confetti span {
  position: absolute;
  left: var(--confetti-left);
  top: 0;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--confetti-color);
  animation: giftConfettiFall 2200ms ease-out var(--confetti-delay) forwards;
}

@keyframes giftConfettiFall {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--confetti-drift)), 520px) rotate(420deg);
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 30px;
  padding: 8px 18px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--peach);
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px var(--shadow);
}

@media (max-width: 760px) {
  body {
    font-size: 19px;
  }

  .site-header {
    min-height: 58px;
  }

  .header-title {
    max-width: calc(100vw - 32px);
    font-size: 22px;
  }

  .hero-section {
    min-height: auto;
    padding: 44px 20px 58px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-card {
    justify-self: center;
    width: min(100%, 330px);
  }

  .section-inner,
  .section-inner.narrow {
    width: min(100% - 34px, 640px);
    padding: 54px 0;
  }

  .surprise-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .word-search {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .word-search-board {
    gap: 2px;
  }

  .word-search-cell {
    border-radius: 3px;
    font-size: 12px;
  }

  .word-search-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
    padding: 10px 2px;
  }

  .album-photo {
    padding: 10px 10px 15px;
  }

  .album-photo-tape {
    top: -9px;
    width: 54px;
    height: 18px;
  }

  .album-photo figcaption {
    min-height: 48px;
    font-size: 17px;
  }

  .distance-bridge-map {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .distance-place {
    font-size: 29px;
    text-align: center;
  }

  .distance-step {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .gift-scene {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-height: 390px;
  }

  .gift-envelope {
    width: 222px;
    height: 154px;
  }

  .gift-envelope-back,
  .gift-envelope-front {
    height: 110px;
  }

  .gift-envelope-flap {
    top: 44px;
    height: 86px;
  }

  .gift-envelope-seal {
    bottom: 42px;
  }

  .gift-bouquet {
    width: 138px;
    height: 164px;
  }

  .gift-stem {
    height: 96px;
  }

  .gift-letter h2 {
    font-size: 34px;
  }

  .gift-card-brand {
    font-size: 43px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(244px, 320px);
    gap: 50px;
  }

  .surprise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .word-search {
    grid-template-columns: 1fr;
  }

  .word-search-cell {
    font-size: 15px;
  }

  .photo-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
