:root {
  --paper: #f7f1e6;
  --ink: #7e4a43;
  --ink-strong: #5b302b;
  --accent: #bf8a4f;
  --button: #d9a09b;
  --card: rgba(255, 252, 247, 0.76);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fdfaf5 0%, #f6eee2 100%);
  min-height: 100vh;
}

.intro-active {
  overflow: hidden;
}

.paper-bg {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 10% 15%, rgba(233, 181, 169, 0.2) 0, rgba(233, 181, 169, 0) 24%),
    radial-gradient(circle at 90% 8%, rgba(233, 181, 169, 0.2) 0, rgba(233, 181, 169, 0) 20%),
    radial-gradient(circle at 14% 92%, rgba(233, 181, 169, 0.18) 0, rgba(233, 181, 169, 0) 20%),
    radial-gradient(circle at 85% 92%, rgba(215, 173, 145, 0.2) 0, rgba(215, 173, 145, 0) 24%);
  pointer-events: none;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(196, 134, 126, 0.18) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 6%, rgba(222, 170, 160, 0.20) 0%, transparent 38%),
    radial-gradient(ellipse at 8% 92%, rgba(210, 155, 148, 0.14) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 90%, rgba(196, 134, 126, 0.12) 0%, transparent 38%),
    linear-gradient(150deg, #fdf4f2 0%, #f8ece8 50%, #f2e0db 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-overlay.opened {
  opacity: 0;
  visibility: hidden;
}

.intro-content {
  text-align: center;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: italic;
  color: #5b302b;
  margin: 24px 0 0;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.intro-help {
  color: #9a6050;
  margin-top: 12px;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.envelope-btn {
  position: relative;
  width: min(660px, 86vw);
  aspect-ratio: 7 / 4;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  overflow: visible;
  filter:
    drop-shadow(0 8px 6px rgba(100, 40, 30, 0.18))
    drop-shadow(0 22px 40px rgba(120, 55, 20, 0.28))
    drop-shadow(0 40px 70px rgba(120, 55, 20, 0.16));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.envelope-btn:hover {
  filter:
    drop-shadow(0 10px 8px rgba(100, 40, 30, 0.22))
    drop-shadow(0 28px 50px rgba(120, 55, 20, 0.38))
    drop-shadow(0 50px 80px rgba(120, 55, 20, 0.20));
  transform: translateY(-6px);
}

.env-base,
.env-fold-main,
.env-fold-left,
.env-fold-right,
.env-seal {
  position: absolute;
}

.env-base {
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 38%, rgba(255, 252, 248, 0.72) 0%, transparent 65%),
    radial-gradient(ellipse at 10% 90%, rgba(185, 110, 96, 0.18) 0%, transparent 38%),
    radial-gradient(ellipse at 90% 90%, rgba(185, 110, 96, 0.15) 0%, transparent 38%),
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 3px,
      rgba(175, 105, 90, 0.018) 3px,
      rgba(175, 105, 90, 0.018) 6px
    ),
    linear-gradient(155deg, #fef6f1 0%, #f7ece6 38%, #eedad3 68%, #e2ccc4 100%);
  border-radius: 8px;
  border: 1.5px solid rgba(195, 130, 115, 0.65);
  box-shadow:
    inset 0 0 60px rgba(185, 100, 88, 0.07),
    inset 0 2px 0 rgba(255, 248, 244, 0.9),
    inset 0 -1px 0 rgba(160, 90, 78, 0.12);
  overflow: hidden;
}

.env-base::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.env-fold-left {
  inset: 0;
  clip-path: polygon(0 0, 0 100%, 50% 50%);
  background:
    linear-gradient(120deg,
      #7a4040 0%,
      #a05e5e 18%,
      #be7e78 38%,
      #d49b92 58%,
      #e6bab2 80%,
      #f0cfc8 100%);
  border-radius: 8px 0 0 8px;
  z-index: 1;
}

.env-fold-left::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 0 100%, 50% 50%);
  background: linear-gradient(to right, rgba(0,0,0,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.env-fold-right {
  inset: 0;
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  background:
    linear-gradient(240deg,
      #7a4040 0%,
      #a05e5e 18%,
      #be7e78 38%,
      #d49b92 58%,
      #e6bab2 80%,
      #f0cfc8 100%);
  border-radius: 0 8px 8px 0;
  z-index: 1;
}

.env-fold-right::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  background: linear-gradient(to left, rgba(0,0,0,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.env-fold-main {
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 54%);
  background:
    radial-gradient(ellipse 80% 60% at 50% 8%, rgba(255, 253, 250, 0.7) 0%, transparent 55%),
    linear-gradient(172deg,
      #fef7f3 0%,
      #f5e8e2 28%,
      #e8cfc8 55%,
      #d8aaa2 80%,
      #c8948c 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  overflow: hidden;
}

.env-fold-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.env-seal {
  top: 50%;
  left: 50%;
  width: clamp(62px, 10vw, 90px);
  height: clamp(62px, 10vw, 90px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: none;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 225, 218, 0.85) 0%, transparent 26%),
    radial-gradient(circle at 68% 74%, rgba(55, 8, 8, 0.55) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, #cd6060 0%, #962828 42%, #641414 78%, #3e0808 100%);
  box-shadow:
    0 2px 4px rgba(80, 15, 15, 0.35),
    0 8px 20px rgba(100, 25, 25, 0.45),
    0 18px 36px rgba(100, 25, 25, 0.22),
    inset 0 1px 5px rgba(255, 205, 195, 0.55),
    inset 0 -3px 8px rgba(40, 0, 0, 0.45);
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-style: italic;
  letter-spacing: 0.06em;
  color: #fef2ee;
  text-shadow: 0 1px 4px rgba(60, 10, 10, 0.7);
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 4;
}

.env-seal::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 195, 180, 0.22);
  pointer-events: none;
}

.intro-overlay.opening .env-seal {
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
}

.intro-overlay.opening .env-fold-main {
  transform: perspective(900px) rotateX(-175deg);
}

.decor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.decor-flower {
  position: absolute;
  opacity: 0.23;
  filter: saturate(0.95);
  animation: flowerFloat 10s ease-in-out infinite;
}

.flower-1 {
  width: min(22vw, 280px);
  left: -40px;
  top: -20px;
}

.flower-2 {
  width: min(20vw, 260px);
  right: -36px;
  top: 12%;
  animation-delay: -2.5s;
}

.flower-3 {
  width: min(21vw, 270px);
  left: -30px;
  bottom: 10%;
  animation-delay: -4s;
}

.flower-4 {
  width: min(20vw, 250px);
  right: -26px;
  bottom: -12px;
  animation-delay: -6s;
}

@keyframes flowerFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.invitation {
  width: min(680px, 92vw);
  margin: 0 auto 56px;
  padding: 22px;
  border: 4px solid rgba(167, 108, 96, 0.35);
  border-radius: 16px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 241, 0.8));
  box-shadow: 0 24px 56px rgba(79, 45, 40, 0.22);
}

.invitation-locked {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.invitation-ready {
  opacity: 1;
  transform: translateY(0);
}

section {
  background: var(--card);
  border: 1px solid rgba(132, 88, 79, 0.15);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.hero {
  text-align: center;
  padding-top: 24px;
}

.hero.fade-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--ink-strong);
  margin: 8px 0;
}

h1 {
  font-style: italic;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 4.8vw, 2.2rem);
}

.date {
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
}

.ghost-btn,
button {
  border: none;
  background: var(--button);
  color: #5f3430;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s ease;
}

button:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.secondary-btn {
  background: #ead2cc;
  color: #6b3f38;
}

.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message,
.story,
.dresscode,
.gift,
.rsvp {
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.gallery img:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  object-position: center 100%;
}

.gallery img:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.gallery img:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
  object-position: center 70%;
}

.details {
  text-align: center;
}

.detail-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 45%;
  min-width: 140px;
  margin-bottom: 10px;
  color: #b57921;
}

.icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.event-icon {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 4px;
}

.time-line {
  font-size: 1.1rem;
  color: #8a5d55;
}

.venue {
  margin-top: 16px;
  font-size: 0.95rem;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #d9a09b;
  color: #5f3430;
  text-decoration: none;
  font-weight: 600;
}

.map-link:hover {
  filter: brightness(0.97);
}

.map-wrap {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(132, 88, 79, 0.22);
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.menu-line {
  margin: 12px auto 6px;
  padding: 8px 12px;
  width: min(620px, 100%);
  font-size: 1.2rem;
  color: #7a4d46;
  background: #f3dfdc;
  border: 1px solid rgba(122, 77, 70, 0.2);
  border-radius: 10px;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  align-items: center;
  justify-items: center;
}

.menu-item {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.menu-item strong {
  color: var(--ink-strong);
}

.menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.countdown-grid div {
  background: #fff;
  border-radius: 12px;
  padding: 10px 6px;
}

.countdown-grid span {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.countdown-grid small {
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.countdown h2 {
  text-align: center;
}

.palette-title {
  margin: 12px 0 8px;
  font-weight: 500;
}

.dress-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.dress-icon {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.dress-icon-dress {
  width: 96px;
}

.dress-icon-suit {
  width: 128px;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-palette span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.gift-note {
  margin: 10px auto 0;
  width: min(460px, 100%);
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5dedc 0%, #efd1cc 100%);
  border: 1px solid rgba(122, 77, 70, 0.2);
  color: var(--ink-strong);
}

.gift-note-title {
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gift-note-line {
  margin: 2px 0;
  font-weight: 500;
}

.gift-icon {
  width: min(230px, 70%);
  height: auto;
  margin: 8px auto 4px;
  display: block;
}

.spotify {
  text-align: center;
}

.spotify-qr-wrap {
  width: min(310px, 86%);
  margin: 10px auto 6px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf9, #f4e9de);
  border: 1px solid rgba(132, 88, 79, 0.18);
  box-shadow: 0 8px 24px rgba(92, 56, 49, 0.12);
}

.spotify-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #e7d5ca;
  color: #6c453f;
  font-weight: 600;
  text-decoration: none;
}

.spotify-link-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.spotify-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.9;
  pointer-events: none;
}

.spotify-qr {
  display: block;
  margin: 0 auto;
  width: 100%;
  border-radius: 10px;
}

form {
  display: grid;
  gap: 10px;
  text-align: left;
}

label {
  display: grid;
  gap: 5px;
  font-size: 0.92rem;
}

input,
select,
textarea {
  border: 1px solid #d8c7ba;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #fffdfb;
}

#formStatus {
  margin: 0;
  min-height: 1.2em;
  color: var(--ink-strong);
}

.companions-block {
  border: 1px solid #ddcbc0;
  background: #fff8f1;
  border-radius: 10px;
  padding: 10px;
}

.my-menu-block {
  border: 1px solid #e0c8c4;
  background: #fff4f2;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 4px;
}

.my-menu-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink-strong);
}

.my-adult-menus {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-adult-menus.is-hidden {
  display: none;
}

.my-adult-menus label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: #7a5c4e;
}

.my-adult-menus select {
  width: 100%;
}

.menu-infantil-label {
  font-size: 0.88rem;
  color: #7a5c4e;
  font-style: italic;
  margin: 4px 0 0;
  padding: 6px 8px;
  background: #f0ebe6;
  border-radius: 6px;
}

.companions-block.is-disabled {
  opacity: 0.65;
}

.companions-title {
  margin: 0;
  font-weight: 700;
}

.companions-help {
  margin: 5px 0 8px;
  color: #86615b;
  font-size: 0.9rem;
}

.companions-list {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.companion-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e8d9d0;
  border-radius: 10px;
  background: #faf7f5;
}

.companion-row > input,
.companion-row > select {
  width: 100%;
}

.companion-menu-wrap {
  margin-top: 4px;
}

.companion-menus {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.companion-menus label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #7a5c4e;
}

.companion-menus select {
  width: 100%;
}

.menu-infantil-label {
  font-size: 0.82rem;
  color: #7a5c4e;
  font-style: italic;
  margin: 0;
  padding: 6px 8px;
  background: #f0ebe6;
  border-radius: 6px;
}

.companion-remove {
  border: 1px solid #d8b3ad;
  background: #f7d7d3;
  color: #743f39;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  align-self: flex-end;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  filter: blur(5px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.fade-in.reveal-left {
  transform: translateX(-34px) translateY(28px) scale(0.99);
}

.fade-in.reveal-right {
  transform: translateX(34px) translateY(28px) scale(0.99);
}

.fade-in.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .decor-flower {
    animation: none;
  }

  .fade-in,
  .fade-in.reveal-left,
  .fade-in.reveal-right {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (min-width: 1024px) {
  .invitation {
    width: min(1400px, 95vw);
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  section {
    margin-bottom: 0;
  }

  .hero {
    grid-column: 1 / -1;
    padding-top: 96px;
    padding-bottom: 96px;
    min-height: 93vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(4.8rem, 7vw, 7.5rem);
    line-height: 1.05;
  }

  .hero .kicker {
    font-size: 2.8rem;
    letter-spacing: 0.16em;
  }

  .hero .date {
    font-size: 3rem;
    letter-spacing: 0.18em;
  }

  .hero .ghost-btn {
    font-size: 1.35rem;
    padding: 17px 34px;
  }

  .message,
  .story,
  .gallery,
  .details,
  .rsvp {
    grid-column: 1 / -1;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 460px;
  }

  .gallery img:nth-child(1),
  .gallery img:nth-child(2),
  .gallery img:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    height: 100%;
  }

  .gallery img:nth-child(1) {
    object-position: center 80%;
  }

  .gallery img:nth-child(2) {
    object-position: center center;
  }

  .gallery img:nth-child(3) {
    object-position: center 70%;
  }

  .countdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .rsvp form {
    max-width: 600px;
    margin: 0 auto;
  }
}


@media (max-width: 560px) {
  .invitation {
    width: calc(100% - 16px);
    margin: 8px auto 18px;
    padding: 10px;
    border-width: 3px;
    border-radius: 12px;
  }

  section {
    padding: 14px;
    border-radius: 12px;
  }

  .hero {
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: auto;
  }

  .hero .kicker {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 2.9rem);
    line-height: 1.08;
  }

  .hero .date {
    font-size: 1.65rem;
    letter-spacing: 0.09em;
  }

  .hero .ghost-btn {
    padding: 10px 14px;
    font-size: 0.98rem;
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 2.2rem);
  }

  .message p,
  .story p,
  .gift p,
  .dresscode p {
    font-size: 1.04rem;
    line-height: 1.35;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .countdown-grid span {
    font-size: 1.8rem;
  }

  .map-wrap iframe {
    height: 230px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery img,
  .gallery img:nth-child(1),
  .gallery img:nth-child(2),
  .gallery img:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    max-height: 360px;
  }

  .detail-block {
    width: 100%;
  }

  .menu-line {
    grid-template-columns: 1fr;
    font-size: 1.08rem;
  }

  .companion-row {
    grid-template-columns: 1fr;
  }

  .envelope-btn {
    width: min(88vw, 360px);
  }

  .env-seal {
    width: clamp(48px, 11vw, 60px);
    height: clamp(48px, 11vw, 60px);
  }
}

@media (max-width: 480px) {
  .envelope-btn {
    width: 86vw;
  }

  .intro-title {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  .intro-content {
    padding: 16px 10px;
  }

  .decor-layer {
    display: none;
  }

  .fade-in,
  .fade-in.reveal-left,
  .fade-in.reveal-right {
    transition-delay: 0ms !important;
  }

  .envelope-btn {
    width: min(320px, 90vw);
  }

  .env-seal {
    width: 64px;
    height: 64px;
    font-size: 1.55rem;
  }
}
