:root {
  color-scheme: light;
  --red: #870d16;
  --red-dark: #650a11;
  --red-light: #b6262d;
  --ink: #382b28;
  --muted: #8a7770;
  --cream: #fff8ed;
  --paper: #fffdf9;
  --gold: #d7b376;
  --line: #eaded1;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 40; top: 10px; left: 10px; transform: translateY(-160%); background: white; color: var(--red); padding: 10px 14px; border-radius: 4px; }
.skip-link:focus { transform: none; }

.invite-page { width: min(100%, 890px); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--cream); box-shadow: 0 0 40px #4b21110d; }
.cover { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; background: radial-gradient(ellipse at 50% 45%, #4b1119 0%, #280b11 70%, #1c080c 100%); transition: opacity .8s ease, visibility .8s ease; }
.cover.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.cover-card { width: min(600px, 100%); min-height: min(420px, 84vh); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 34px 24px 28px; text-align: center; color: #fff7e8; background: linear-gradient(145deg, #991b21, #780d17 55%, #680a14); border: 1px solid #d7aa715e; box-shadow: 0 18px 55px #0b020580; }
.cover-card::before, .cover-card::after { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid #f1d9af16; border-radius: 50%; }
.cover-card::before { top: -105px; left: -90px; }
.cover-card::after { right: -100px; bottom: -115px; }
.cover-corner { position: absolute; color: #f8e6c012; font: 150px/1 "EB Garamond", serif; pointer-events: none; }
.cover-corner--left { top: 5px; left: 12px; }
.cover-corner--right { right: 12px; bottom: 0; }
.cover-seal { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 15px; border-radius: 50%; background: #f8ead4; box-shadow: 0 0 0 5px #f8ead421; }
.cover-seal img { width: 38px; height: 38px; object-fit: contain; }
.cover-card h1 { position: relative; z-index: 1; margin: 0; font: 500 clamp(40px, 9vw, 58px)/.94 "EB Garamond", Georgia, serif; letter-spacing: .015em; }
.cover-card h1 span { font-style: italic; color: #edcf9d; }
.cover-flourish { display: flex; align-items: center; gap: 12px; width: 160px; margin: 19px 0 8px; color: #e3c18e; }
.cover-flourish i { height: 1px; flex: 1; background: #dfbe8b99; }
.cover-flourish span { font-size: 17px; }
.cover-date { margin: 0; color: #f8e6ce; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.cover-invite { margin: 19px 0 14px; font: italic 20px "EB Garamond", Georgia, serif; }
.open-cover { position: relative; z-index: 1; min-width: 112px; padding: 11px 21px; border: 0; border-radius: 50px; color: var(--red-dark); background: #fff3df; box-shadow: 0 4px 14px #29060b50; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; transition: transform .2s, background .2s; }
.open-cover:hover { transform: translateY(-2px); background: white; }

.hero { position: relative; isolation: isolate; min-height: 635px; padding-top: 32px; text-align: center; overflow: hidden; background: var(--cream); }
.hero-dome { position: absolute; z-index: -2; width: 126%; height: 620px; top: -360px; left: -13%; border-radius: 50%; background: linear-gradient(160deg, #991c22, #740a14 70%); box-shadow: 0 16px 20px #8a131515; }
.hero-sunburst { position: absolute; z-index: -1; width: 460px; height: 460px; top: 4px; left: 50%; transform: translateX(-50%); opacity: .15; filter: brightness(0) invert(1); object-fit: contain; }
.hero-welcome { margin: 0; color: #f8e8d2; font-size: 10px; font-weight: 500; letter-spacing: .22em; }
.hero-names { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: clamp(15px, 5vw, 46px); margin: 36px auto 0; color: #fff1dd; }
.hero-names div { display: flex; flex-direction: column; gap: 7px; width: 29%; max-width: 190px; }
.hero-names span { color: #f1d0aa; font-size: 9px; letter-spacing: .22em; }
.hero-names strong { font: 600 clamp(13px, 2vw, 17px) Montserrat, sans-serif; letter-spacing: .1em; }
.hero-hy { width: 56px; height: 56px; object-fit: contain; padding: 8px; border-radius: 50%; background: #fff4df; box-shadow: 0 0 0 5px #ffffff20; }
.hero-arc { display: block; width: 260px; height: 64px; margin: 6px auto -22px; overflow: visible; fill: #f7e5cb; font: 10px Montserrat, sans-serif; letter-spacing: 5px; }
.hero-star { position: absolute; z-index: 1; top: 190px; color: #f4d9ad; font-size: 17px; }
.hero-star--left { left: 14%; }
.hero-star--right { right: 14%; }
.hero-photo { display: block; position: relative; z-index: 1; width: min(372px, 72%); height: 370px; margin: 12px auto 0; border: 8px solid #fff9ee; object-fit: cover; object-position: center 35%; box-shadow: 0 9px 30px #5a201c22; }

.section-band { margin: 0; padding: 16px 12px 15px; color: #fff8ea; background: var(--red); text-align: center; font: 600 15px Montserrat, sans-serif; letter-spacing: .17em; }
.invitation-section { padding: 0 34px 43px; text-align: center; }
.parents-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 28px; max-width: 670px; margin: 37px auto 32px; }
.parent-block { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; line-height: 1.6; }
.parent-block span { margin-bottom: 5px; color: var(--muted); font: italic 19px "EB Garamond", serif; }
.parent-block strong { font-size: 13px; font-weight: 600; }
.parent-block p { max-width: 280px; margin: 8px 0 0; color: #786c65; font-size: 10px; line-height: 1.8; }
.parent-divider { width: 1px; background: #d9cabb; }
.announcement { margin: 0 auto 18px; color: #735c51; font-size: 10px; line-height: 1.9; letter-spacing: .13em; }
.couple-names { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; max-width: 680px; margin: 0 auto; }
.couple-names h3 { grid-row: 1; margin: 0; color: var(--red); font: 500 clamp(31px, 6vw, 52px)/1.1 "EB Garamond", Georgia, serif; }
.couple-names h3:first-child { text-align: right; }
.couple-names h3:nth-of-type(2) { text-align: left; }
.couple-names b { grid-column: 2; grid-row: 1; color: #c59c68; font: italic 27px "EB Garamond", serif; }
.couple-names span { grid-row: 2; color: #91766a; font-size: 9px; letter-spacing: .22em; }
.couple-names span:nth-of-type(1) { grid-column: 1; text-align: right; padding-right: 12px; }
.couple-names span:nth-of-type(2) { grid-column: 3; text-align: left; padding-left: 12px; }
.ceremony-title { margin: 34px 0 7px; color: #715b52; font-size: 10px; line-height: 1.8; letter-spacing: .12em; }
.ceremony-time { margin: 0 0 10px; color: var(--red); font: 500 18px "EB Garamond", serif; letter-spacing: .08em; }
.ceremony-date, .party-date { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--red); }
.ceremony-date b, .party-date b { padding: 0 17px; border-right: 1px solid #c9a993; border-left: 1px solid #c9a993; font: 500 58px/.95 "EB Garamond", serif; }
.ceremony-date span, .party-date span { font-size: 10px; line-height: 1.6; letter-spacing: .11em; }
.lunar-date { margin: 12px 0 0; color: #9a8578; font: italic 14px "EB Garamond", serif; }

.album-section { padding-bottom: 42px; }
.coverflow { position: relative; height: 470px; margin: 18px auto 0; overflow: hidden; perspective: 1250px; perspective-origin: 50% 43%; touch-action: pan-y; }
.coverflow-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.slide-card { position: absolute; top: 50%; left: 50%; width: min(54%, 370px); height: 400px; padding: 0; border: 7px solid #fff; background: #eadbd1; box-shadow: 0 12px 34px #38221f29; transform: translate(-50%, -50%); transform-style: preserve-3d; backface-visibility: hidden; will-change: transform, opacity; transition: transform .72s cubic-bezier(.22,.72,.2,1), opacity .58s ease, box-shadow .58s ease; overflow: hidden; }
.slide-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #26110e25, transparent 55%, #26110e12); opacity: 0; transition: opacity .58s ease; }
.slide-card img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.slide-card.is-center { z-index: 5; box-shadow: 0 18px 44px #38221f38; transform: translate(-50%, -50%) translateZ(24px) scale(1); }
.slide-card.is-center img { transform: scale(1.045); }
.slide-card.is-center::after { opacity: 0; }
.slide-card.is-side-left { z-index: 4; transform: translate(-50%, -50%) translateX(-61%) translateZ(-45px) rotateY(25deg) scale(.83); }
.slide-card.is-side-right { z-index: 4; transform: translate(-50%, -50%) translateX(61%) translateZ(-45px) rotateY(-25deg) scale(.83); }
.slide-card.is-side-left::after, .slide-card.is-side-right::after { opacity: .2; }
.slide-card.is-far-left { z-index: 2; transform: translate(-50%, -50%) translateX(-105%) translateZ(-110px) rotateY(30deg) scale(.7); opacity: .38; }
.slide-card.is-far-right { z-index: 2; transform: translate(-50%, -50%) translateX(105%) translateZ(-110px) rotateY(-30deg) scale(.7); opacity: .38; }
.slide-card.is-far-left::after, .slide-card.is-far-right::after { opacity: .35; }
.slide-card.is-hidden { z-index: 0; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) translateZ(-180px) scale(.48); }
.slide-card:focus-visible, .coverflow-arrow:focus-visible, .coverflow-dots button:focus-visible { outline: 3px solid #c99455; outline-offset: 4px; }
.coverflow-arrow, .lightbox-arrow { position: absolute; z-index: 8; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 4px; border: 1px solid #8d263040; border-radius: 50%; color: var(--red); background: #fff9eeed; font: 32px/1 "EB Garamond", serif; box-shadow: 0 3px 14px #36141412; transform: translateY(-50%); transition: background .2s, color .2s; }
.coverflow-arrow:hover, .lightbox-arrow:hover { color: white; background: var(--red); }
.coverflow-arrow--prev { left: max(14px, calc(50% - 245px)); }
.coverflow-arrow--next { right: max(14px, calc(50% - 245px)); }
.coverflow-dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0 0; }
.coverflow-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #d8c7b7; transition: width .32s cubic-bezier(.2,.7,.2,1), background .32s ease, transform .32s ease; }
.coverflow-dots button[aria-current="true"] { width: 21px; border-radius: 10px; background: var(--red); }
.coverflow-dots button:hover { transform: scale(1.2); }

.party-section { padding: 0 24px 48px; text-align: center; }
.party-time-card { padding: 31px 20px 23px; }
.party-time-card h3 { margin: 0 0 4px; color: #836e64; font: italic 18px "EB Garamond", serif; }
.party-time { margin: 0 0 14px; color: var(--red); font: 500 42px/.95 "EB Garamond", serif; letter-spacing: .06em; }
.party-date b { font-size: 66px; }
.calendar-card { width: min(100%, 480px); margin: 8px auto 20px; padding: 18px 20px 19px; border: 1px solid #eee3d5; background: #fffdf9; box-shadow: 0 7px 20px #42251c0b; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; color: #89766b; font-size: 10px; }
.calendar-heading strong { color: var(--red); font: 500 19px "EB Garamond", serif; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar-weekdays { margin-bottom: 5px; color: #a38e80; font-size: 10px; }
.calendar-weekdays span { padding: 7px 0; }
.calendar-grid .day { display: grid; place-items: center; aspect-ratio: 1; color: #5e514d; font-size: 11px; }
.calendar-grid .day.is-event { color: white; background: var(--red); border-radius: 50%; font-weight: 700; box-shadow: 0 3px 8px #870d1644; }
.calendar-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 0 5px 10px; padding: 0 21px; border: 1px solid #9d252d; color: var(--red); text-decoration: none; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: color .2s, background .2s; }
.calendar-link:hover { color: white; background: var(--red); }
.rsvp-main-button, .wish-submit, .rsvp-submit { min-height: 42px; padding: 0 23px; border: 0; color: white; background: var(--red); font-size: 10px; font-weight: 600; letter-spacing: .1em; transition: background .2s, transform .2s; }
.rsvp-main-button:hover, .wish-submit:hover, .rsvp-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.rsvp-summary { width: min(100%, 460px); margin: 17px auto 0; padding: 13px 15px; color: #56443c; border: 1px solid #e4d6c7; background: #fffdf9; text-align: left; font-size: 12px; line-height: 1.7; }
.rsvp-summary strong { color: var(--red); }
.rsvp-summary button { margin-left: 8px; border: 0; background: none; color: var(--red); text-decoration: underline; font-size: 11px; }

.venue-section { padding-bottom: 43px; text-align: center; }
.venue-address { margin: 22px 18px 15px; color: #65544b; font: 17px/1.6 "EB Garamond", Georgia, serif; }
.map-frame { display: block; width: calc(100% - 44px); height: 390px; margin: 0 auto; border: 0; background: #e3ded7; }
.directions-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 17px; color: var(--red); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.directions-link span { font-size: 16px; }

.timeline-section { padding: 8px 24px 53px; text-align: center; }
.timeline-section h2, .gift-section h2 { margin: 0 0 28px; color: var(--red); font: 500 24px "EB Garamond", Georgia, serif; letter-spacing: .12em; }
.timeline-list { position: relative; width: min(100%, 490px); margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.timeline-list::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 83px; width: 1px; background: #d8b2a0; }
.timeline-list li { position: relative; display: grid; grid-template-columns: 65px 36px 1fr; align-items: center; min-height: 52px; }
.timeline-list time { color: var(--red); font: 500 18px "EB Garamond", serif; }
.timeline-dot { z-index: 1; justify-self: center; width: 10px; height: 10px; border: 2px solid var(--cream); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px #a95b50; }
.timeline-list p { margin: 0; color: #574b44; font-size: 12px; }

.guestbook-section { padding-bottom: 46px; }
.guestbook-form { display: grid; gap: 11px; width: min(600px, calc(100% - 38px)); margin: 28px auto 24px; padding: 20px; background: #fffdf9; box-shadow: 0 7px 23px #381f160b; }
.guestbook-form input, .guestbook-form textarea, .modal input[type="text"], .modal textarea { width: 100%; padding: 13px 14px; border: 1px solid #e8ddd1; border-radius: 0; outline: none; color: var(--ink); background: #fff; font-size: 12px; resize: vertical; }
.guestbook-form input:focus, .guestbook-form textarea:focus, .modal input:focus, .modal textarea:focus { border-color: #ab6460; box-shadow: 0 0 0 3px #8c20200c; }
.guestbook-form input::placeholder, .guestbook-form textarea::placeholder { color: #a39489; }
.guestbook-actions { display: flex; justify-content: space-between; align-items: center; }
.magic-button { width: 42px; height: 42px; border: 1px solid #ddc9b7; color: var(--red); background: #fff8ed; font-size: 20px; }
.wish-submit { margin-left: auto; }
.wish-list { display: grid; gap: 12px; width: min(600px, calc(100% - 38px)); margin: auto; }
.wish-card { padding: 15px 17px; border: 1px solid #f1e7dc; background: #fffdf9; box-shadow: 0 4px 15px #38221a08; }
.wish-card strong { color: var(--red); font: 600 13px "EB Garamond", serif; }
.wish-card p { margin: 7px 0 0; color: #66574e; font: 14px/1.6 "EB Garamond", serif; }
.wish-date { display: block; margin-top: 7px; color: #a18f83; font-size: 9px; }

.gift-section { padding: 2px 20px 43px; text-align: center; }
.gift-section h2 { margin-bottom: 18px; }
.envelope-button { display: flex; flex-direction: column; align-items: center; margin: 0 auto; padding: 0; border: 0; background: transparent; color: var(--red); font: italic 14px "EB Garamond", serif; }
.envelope-button img { display: block; width: min(340px, 78vw); height: 205px; object-fit: contain; transition: transform .25s; }
.envelope-button:hover img { transform: translateY(-4px); }
.envelope-button span { margin-top: 6px; border-bottom: 1px solid #bf9290; }
.thank-you { margin: 24px auto 0; color: #8b756a; font: italic 17px/1.5 "EB Garamond", serif; }
.page-footer { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 15px 28px; color: #b19e91; background: #fff8ed; font: 15px "EB Garamond", serif; }
.page-footer a { color: var(--red); text-decoration: none; }
.demo-disclaimer { font: 9px Montserrat, sans-serif; }

.music-button { position: fixed; z-index: 30; right: max(18px, calc((100vw - 890px)/2 + 18px)); bottom: 18px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #fff4e0; border-radius: 50%; color: #fff8ec; background: var(--red); box-shadow: 0 5px 20px #3a100f35; }
.music-bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.music-bars i { display: block; width: 2px; height: 7px; background: currentColor; }
.music-bars i:nth-child(2), .music-bars i:nth-child(4) { height: 13px; }
.music-button[aria-pressed="true"] .music-bars i { animation: music-wave .8s ease-in-out infinite alternate; }
.music-button[aria-pressed="true"] .music-bars i:nth-child(2) { animation-delay: .2s; }
.music-button[aria-pressed="true"] .music-bars i:nth-child(3) { animation-delay: .35s; }
@keyframes music-wave { to { transform: scaleY(.35); } }

.modal { position: fixed; width: min(540px, calc(100% - 28px)); max-height: min(90vh, 760px); padding: 30px 28px 26px; border: 1px solid #e4d6c7; color: var(--ink); background: var(--paper); box-shadow: 0 24px 90px #1d080b60; }
.modal::backdrop { background: #1a090bd1; backdrop-filter: blur(3px); }
.modal-close { position: absolute; top: 8px; right: 12px; width: 34px; height: 34px; border: 0; color: #765b50; background: transparent; font: 30px/1 "EB Garamond", serif; }
.modal h2 { margin: 0 20px 10px 0; color: var(--red); font: 500 28px "EB Garamond", serif; }
.modal-intro { margin: 0 0 21px; color: #796a60; font: 14px/1.6 "EB Garamond", serif; }
.modal form { display: grid; gap: 10px; }
.modal form > label, .guest-count-row > label { color: #62534b; font-size: 11px; font-weight: 600; }
.attendance-fieldset { display: grid; gap: 8px; margin: 4px 0; padding: 0; border: 0; }
.attendance-fieldset legend { margin-bottom: 9px; color: #62534b; font-size: 11px; font-weight: 600; }
.attendance-fieldset label { display: flex; align-items: center; gap: 9px; color: #5d4f49; font-size: 12px; }
.attendance-fieldset input { accent-color: var(--red); }
.guest-count-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guest-stepper { display: flex; align-items: center; gap: 16px; }
.guest-stepper button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #dfd0c1; color: var(--red); background: white; font-size: 17px; }
.guest-stepper output { min-width: 14px; text-align: center; font-size: 13px; }
.local-note { margin: 0; color: #95877e; font-size: 10px; line-height: 1.5; }
.rsvp-submit { width: 100%; margin-top: 5px; }
.gift-modal { width: min(680px, calc(100% - 28px)); }
.gift-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 14px; }
.gift-qr-card { padding: 15px 12px; border: 1px solid #eee2d5; text-align: center; background: #fffaf3; }
.gift-qr-card h3 { min-height: 34px; margin: 0 0 8px; color: #614a42; font: 500 16px "EB Garamond", serif; }
.gift-qr-card img { display: block; width: min(100%, 180px); aspect-ratio: 1; margin: auto; image-rendering: pixelated; background: white; }
.demo-qr-label { margin: 9px 0; color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.save-qr { padding: 8px 13px; border: 1px solid #cdb7a6; color: var(--red); background: white; font-size: 10px; }
.gift-modal > .local-note { text-align: center; }

.lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; max-height: none; padding: 52px 70px 90px; border: 0; color: white; background: #150c0deF; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; }
.lightbox figure img { max-width: min(80vw, 800px); max-height: calc(100vh - 158px); object-fit: contain; box-shadow: 0 14px 60px #0008; }
.lightbox figcaption { margin-top: 8px; color: #ebdfd1; font-size: 11px; }
.lightbox-close { position: absolute; top: 15px; right: 20px; width: 42px; height: 42px; border: 1px solid #ffffff44; border-radius: 50%; color: white; background: #ffffff10; font: 28px/1 "EB Garamond", serif; }
.lightbox-arrow { position: fixed; top: 50%; width: 46px; height: 46px; border-color: #fff5; color: white; background: #fff2; }
.lightbox-arrow--prev { left: 17px; }
.lightbox-arrow--next { right: 17px; }
.lightbox-thumbnails { position: absolute; right: 55px; bottom: 15px; left: 55px; display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 5px; }
.lightbox-thumbnails button { width: 48px; height: 58px; flex: 0 0 auto; padding: 2px; border: 1px solid #ffffff50; opacity: .65; background: transparent; }
.lightbox-thumbnails button[aria-current="true"] { border-color: #f4d6a5; opacity: 1; }
.lightbox-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.toast { position: fixed; z-index: 80; right: 50%; bottom: 25px; max-width: calc(100% - 32px); padding: 11px 16px; border: 1px solid #f0dfca; color: #fff8ef; background: #442126; box-shadow: 0 4px 18px #1a080a44; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(50%, 12px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }

@media (max-width: 600px) {
  .hero { min-height: 562px; padding-top: 29px; }
  .hero-dome { width: 142%; left: -21%; height: 560px; top: -330px; }
  .hero-welcome { font-size: 8px; letter-spacing: .18em; }
  .hero-names { gap: 12px; margin-top: 29px; }
  .hero-names div { width: 34%; }
  .hero-names span { font-size: 8px; }
  .hero-names strong { font-size: 11px; letter-spacing: .06em; }
  .hero-hy { width: 46px; height: 46px; padding: 7px; }
  .hero-arc { width: 210px; height: 54px; margin-top: 3px; }
  .hero-photo { width: min(330px, 78%); height: 340px; margin-top: 9px; }
  .hero-star { top: 163px; font-size: 13px; }
  .invitation-section { padding: 0 17px 34px; }
  .parents-grid { gap: 12px; margin: 27px auto 26px; }
  .parent-block { font-size: 10px; }
  .parent-block strong { font-size: 11px; }
  .parent-block p { font-size: 9px; }
  .parent-block span { font-size: 17px; }
  .announcement { font-size: 9px; }
  .couple-names { grid-template-columns: 1fr 24px 1fr; }
  .couple-names h3 { font-size: clamp(25px, 7vw, 38px); }
  .couple-names b { font-size: 22px; }
  .couple-names span { font-size: 8px; }
  .ceremony-date, .party-date { gap: 11px; }
  .ceremony-date b { padding: 0 13px; font-size: 53px; }
  .ceremony-date span, .party-date span { font-size: 9px; }
  .coverflow { height: 390px; perspective: 950px; }
  .slide-card { width: 64%; height: 320px; border-width: 5px; }
  .slide-card.is-side-left { transform: translate(-50%, -50%) translateX(-49%) translateZ(-30px) rotateY(24deg) scale(.8); }
  .slide-card.is-side-right { transform: translate(-50%, -50%) translateX(49%) translateZ(-30px) rotateY(-24deg) scale(.8); }
  .slide-card.is-far-left { transform: translate(-50%, -50%) translateX(-88%) translateZ(-80px) rotateY(28deg) scale(.67); }
  .slide-card.is-far-right { transform: translate(-50%, -50%) translateX(88%) translateZ(-80px) rotateY(-28deg) scale(.67); }
  .coverflow-arrow { width: 34px; height: 34px; font-size: 28px; }
  .coverflow-arrow--prev { left: 8px; }
  .coverflow-arrow--next { right: 8px; }
  .party-section { padding-right: 15px; padding-left: 15px; }
  .map-frame { width: calc(100% - 24px); height: 310px; }
  .venue-address { font-size: 16px; }
  .timeline-list::before { left: 76px; }
  .timeline-list li { grid-template-columns: 58px 36px 1fr; }
  .timeline-list p { font-size: 11px; }
  .guestbook-form { width: calc(100% - 24px); padding: 15px; }
  .wish-list { width: calc(100% - 24px); }
  .modal { padding: 27px 20px 21px; }
  .gift-qr-grid { gap: 8px; }
  .gift-qr-card { padding: 11px 8px; }
  .gift-qr-card h3 { font-size: 14px; }
  .lightbox { padding: 55px 38px 98px; }
  .lightbox figure img { max-width: 86vw; max-height: calc(100vh - 180px); }
  .lightbox-arrow--prev { left: 5px; }
  .lightbox-arrow--next { right: 5px; }
  .lightbox-thumbnails { right: 34px; left: 34px; gap: 5px; }
  .lightbox-thumbnails button { width: 40px; height: 49px; }
}

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