:root {
    --bg: #f8f3ec;
    --bg-strong: #efe4d8;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --text: #2f2330;
    --muted: #6d5c67;
    --accent: #9e5f74;
    --accent-deep: #6f3d55;
    --accent-soft: #f2dbe0;
    --sage: #a8b39d;
    --border: rgba(71, 41, 58, 0.12);
    --shadow: 0 28px 80px rgba(74, 48, 58, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at top left,
            rgba(242, 219, 224, 0.8),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(168, 179, 157, 0.36),
            transparent 20%
        ),
        radial-gradient(
            circle at 18% 78%,
            rgba(242, 219, 224, 0.46),
            transparent 24%
        ),
        radial-gradient(
            circle at 82% 90%,
            rgba(168, 179, 157, 0.28),
            transparent 22%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(239, 228, 216, 0.7),
            transparent 34%
        ),
        linear-gradient(180deg, #fbf7f1 0%, #f8f3ec 55%, #f4ede3 100%);
}

body.quiz-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
}

.page-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.55;
    pointer-events: none;
}

.ambient-one {
    top: 120px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(158, 95, 116, 0.12);
}

.ambient-two {
    top: 560px;
    left: -90px;
    width: 250px;
    height: 250px;
    background: rgba(168, 179, 157, 0.22);
}

.ambient-three {
    bottom: 140px;
    right: 8%;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.45);
}

.hero,
.section {
    width: min(1180px, 100%);
    margin: 0 auto 28px;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: stretch;
    min-height: 72vh;
}

.hero-copy,
.hero-media,
.story-panel,
.info-panel,
.timeline-item,
.gallery-card,
.note-card {
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px);
    border-radius: 36px;
    animation: rise 0.9s ease both;
}

.hero h1,
.section-heading h2,
.story-panel h2,
.note-card h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero h1 {
    font-size: clamp(3.8rem, 10vw, 7rem);
}

.hero h1 span {
    display: inline-block;
    padding: 0 0.16em;
    color: var(--accent);
}

.lede {
    max-width: 32rem;
    margin: 24px 0 0;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--muted);
}

.hero-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 34px 0;
}

.hero-summary div {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(71, 41, 58, 0.08);
}

.label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-summary strong,
.timeline-item h3,
.hero-media figcaption {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
}

.hero-summary strong {
    font-size: 1.7rem;
    font-weight: 600;
}

.hero-summary p,
.story-panel p,
.timeline-item p,
.note-card p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff9fb;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-deep) 100%
    );
    box-shadow: 0 14px 30px rgba(111, 61, 85, 0.28);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
}

.home-page .button-secondary {
    color: var(--accent-deep);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(242, 219, 224, 0.9) 100%
    );
    border-color: rgba(111, 61, 85, 0.22);
    box-shadow:
        0 12px 24px rgba(74, 48, 58, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-page .button-secondary:hover,
.home-page .button-secondary:focus-visible {
    box-shadow:
        0 16px 30px rgba(74, 48, 58, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.full-width {
    width: 100%;
}

.registry-note {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.registry-button {
    width: 100%;
}

.registry-button[aria-disabled="true"] {
    color: rgba(47, 35, 48, 0.58);
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(71, 41, 58, 0.08);
    box-shadow: none;
}

.registry-button[aria-disabled="true"]:hover,
.registry-button[aria-disabled="true"]:focus-visible {
    transform: translateY(-2px);
}

.registry-message {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    z-index: 3;
    width: min(280px, calc(100vw - 48px));
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(71, 41, 58, 0.1);
    border-radius: 18px;
    background: rgba(255, 252, 253, 0.96);
    box-shadow: 0 18px 38px rgba(74, 48, 58, 0.14);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.registry-message::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 14px;
    height: 14px;
    border-right: 1px solid rgba(71, 41, 58, 0.1);
    border-bottom: 1px solid rgba(71, 41, 58, 0.1);
    background: rgba(255, 252, 253, 0.96);
    transform: translateX(-50%) rotate(45deg);
}

.registry-note:hover .registry-message,
.registry-note:focus-within .registry-message,
.registry-note.is-open .registry-message {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hero-media {
    position: relative;
    overflow: hidden;
    margin: 0;
    min-height: 640px;
    border-radius: 32px;
    animation: rise 1.1s ease 0.1s both;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.hero-media figcaption {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 1;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    color: #fffaf8;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
    background: rgba(47, 35, 48, 0.24);
    backdrop-filter: blur(18px);
}

.hero-media figcaption span {
    display: block;
    margin-top: 10px;
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 250, 248, 0.88);
}

.section {
    padding: clamp(28px, 4vw, 40px);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.34);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.story-panel h2,
.note-card h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.timeline-grid,
.notes {
    display: grid;
    gap: 18px;
}

.timeline-item,
.note-card {
    padding: 24px;
    border-radius: 28px;
}

.timeline-item h3 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.02;
}

.timeline-photo {
    width: 100%;
    margin-top: auto;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: 0 16px 30px rgba(74, 48, 58, 0.12);
}

.story-strip {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: stretch;
}

.story-panel,
.info-panel {
    height: 100%;
    padding: 30px;
    border-radius: 30px;
}

.info-panel {
    display: grid;
    gap: 12px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.88),
        rgba(242, 219, 224, 0.54)
    );
}

.venue-photo-panel {
    display: flex;
    margin: 0;
    padding: 0;
    overflow: hidden;
    min-height: 0;
}

.venue-photo-panel img {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(71, 41, 58, 0.08);
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row span {
    color: var(--muted);
}

.info-row strong {
    text-align: right;
}

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

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.timeline-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--sage));
}

.timeline-time {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--accent-deep);
    background: rgba(242, 219, 224, 0.72);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 18px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 28px;
    min-height: 260px;
}

.gallery-card img {
    height: 100%;
    object-fit: cover;
}

.gallery-card.tall {
    grid-row: span 2;
}

.gallery-card.wide {
    grid-column: span 2;
}

.notes {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 0;
    background: transparent;
}

.note-card {
    background: rgba(255, 255, 255, 0.68);
}

.note-card.soft {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.84),
        rgba(242, 219, 224, 0.72)
    );
}

.quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.quiz-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 35, 48, 0.36);
    backdrop-filter: blur(10px);
}

.quiz-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100dvh - 48px);
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(71, 41, 58, 0.1);
    border-radius: 32px;
    background:
        radial-gradient(
            circle at top right,
            rgba(242, 219, 224, 0.8),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.96),
            rgba(255, 248, 250, 0.9)
        );
    box-shadow: 0 34px 90px rgba(47, 35, 48, 0.22);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    animation: quiz-pop 240ms ease both;
}

.quiz-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--accent-deep);
    background: rgba(242, 219, 224, 0.72);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.quiz-dialog h2 {
    margin: 0;
    padding-right: 56px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 0.95;
}

.quiz-intro {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.quiz-progress {
    margin-top: 28px;
}

.quiz-progress-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.quiz-progress-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(242, 219, 224, 0.58);
}

.quiz-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #df8fa9);
    transition: width 240ms ease;
}

.quiz-question-card {
    margin-top: 24px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid rgba(71, 41, 58, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
}

.quiz-question {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.05;
}

.quiz-options {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.quiz-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(71, 41, 58, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(158, 95, 116, 0.3);
    outline: none;
}

.quiz-option:disabled {
    cursor: default;
}

.quiz-option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-deep);
    background: rgba(242, 219, 224, 0.7);
}

.quiz-option-copy {
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
}

.quiz-option-result {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: transparent;
}

.quiz-option.is-correct {
    border-color: rgba(86, 138, 98, 0.35);
    background: rgba(230, 245, 232, 0.96);
}

.quiz-option.is-correct .quiz-option-label {
    color: #2f6a3f;
    background: rgba(182, 226, 191, 0.9);
}

.quiz-option.is-correct .quiz-option-result {
    color: #2f6a3f;
}

.quiz-option.is-incorrect {
    background: rgba(255, 245, 247, 0.98);
}

.quiz-option.is-incorrect .quiz-option-result {
    color: #b67a88;
}

.quiz-option.is-selected.is-incorrect {
    border-color: rgba(194, 88, 116, 0.35);
    background: rgba(255, 232, 238, 0.98);
}

.quiz-option.is-selected.is-incorrect .quiz-option-label {
    color: #a74461;
    background: rgba(249, 197, 211, 0.92);
}

.quiz-option.is-selected.is-incorrect .quiz-option-result {
    color: #a74461;
}

.quiz-status {
    min-height: 1.6em;
    margin: 18px 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-deep);
}

.quiz-finish {
    margin-top: 26px;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(
        135deg,
        rgba(242, 219, 224, 0.7),
        rgba(255, 255, 255, 0.94)
    );
    text-align: center;
}

.quiz-finish-title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.2rem;
}

.quiz-finish-copy {
    margin: 10px 0 22px;
    color: var(--muted);
}

.word-game-dialog {
    width: min(720px, 100%);
}

.word-game-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.word-field {
    display: grid;
    gap: 8px;
}

.word-field span {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.word-field input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid rgba(71, 41, 58, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font: inherit;
}

.word-field input:focus {
    border-color: rgba(158, 95, 116, 0.42);
    outline: 2px solid rgba(158, 95, 116, 0.14);
    outline-offset: 2px;
}

.word-game-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.word-game-result-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.word-game-result-copy {
    margin: 10px 0 22px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.15;
    color: var(--text);
}

.word-game-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.emoji-burst-layer {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    overflow: hidden;
}

.emoji-particle {
    position: fixed;
    left: 0;
    top: 0;
    will-change: transform, opacity;
    animation-name: emoji-burst;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    filter: drop-shadow(0 12px 20px rgba(47, 35, 48, 0.12));
}

.registry-hero {
    grid-template-columns: 1.08fr 0.92fr;
    min-height: auto;
}

.registry-hero-stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.registry-hero-card {
    min-height: 300px;
}

.registry-hero-card img {
    height: 100%;
    object-fit: contain;
    padding: clamp(28px, 4vw, 34px);
    background:
        radial-gradient(
            circle at top left,
            rgba(242, 219, 224, 0.72),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(255, 250, 251, 0.94),
            rgba(246, 238, 230, 0.72)
        );
    animation: bob 5s ease-in-out infinite;
}

.registry-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.registry-choice-card,
.payment-card {
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.registry-choice-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 30px;
    overflow: hidden;
    border-radius: 30px;
}

.registry-choice-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(242, 219, 224, 0.5);
}

.registry-choice-card-soft {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.84),
        rgba(242, 219, 224, 0.72)
    );
}

.registry-choice-card > * {
    position: relative;
    z-index: 1;
}

.registry-choice-card h2,
.payment-title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 0.98;
}

.registry-choice-card h2 {
    font-size: clamp(2.25rem, 4vw, 3.4rem);
}

.registry-choice-card p,
.payment-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.registry-choice-card .button {
    width: fit-content;
}

.registry-details {
    display: grid;
    gap: 24px;
}

.registry-hongbao-section {
    margin-top: 28px;
}

.registry-simple-copy {
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.registry-story-strip {
    align-items: stretch;
}

.registry-story-strip-reverse {
    grid-template-columns: 0.92fr 1.08fr;
}

.registry-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.registry-tag {
    padding: 10px 14px;
    border: 1px solid rgba(71, 41, 58, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-deep);
}

.registry-illustration-panel {
    position: relative;
    overflow: hidden;
    place-items: center;
    min-height: 360px;
    isolation: isolate;
}

.registry-illustration-panel::before,
.registry-illustration-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.registry-illustration-panel::before {
    top: 24px;
    left: 24px;
    width: 90px;
    height: 90px;
    background: rgba(242, 219, 224, 0.48);
}

.registry-illustration-panel::after {
    right: 30px;
    bottom: 28px;
    width: 120px;
    height: 120px;
    background: rgba(168, 179, 157, 0.28);
}

.registry-illustration-panel img {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    margin: auto;
    object-fit: contain;
    animation: bob 4.6s ease-in-out infinite;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.payment-card {
    --payment-accent: var(--accent);
    --payment-accent-soft: rgba(242, 219, 224, 0.78);
    --payment-shadow: rgba(111, 61, 85, 0.14);
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(71, 41, 58, 0.1);
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.96),
            rgba(255, 255, 255, 0) 34%
        ),
        linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.88),
            rgba(255, 255, 255, 0.66)
        );
    box-shadow:
        0 24px 50px var(--payment-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.payment-grid > .payment-card:nth-child(1) {
    --payment-accent: #4c7ff7;
    --payment-accent-soft: rgba(199, 220, 255, 0.74);
    --payment-shadow: rgba(76, 127, 247, 0.14);
}

.payment-grid > .payment-card:nth-child(2) {
    --payment-accent: #7a3cff;
    --payment-accent-soft: rgba(227, 212, 255, 0.78);
    --payment-shadow: rgba(122, 60, 255, 0.14);
}

.payment-grid > .payment-card:nth-child(3) {
    --payment-accent: #0070ba;
    --payment-accent-soft: rgba(194, 227, 248, 0.8);
    --payment-shadow: rgba(0, 112, 186, 0.14);
}

.payment-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 182px;
    background: linear-gradient(
        180deg,
        var(--payment-accent-soft),
        rgba(255, 255, 255, 0)
    );
}

.payment-card::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--payment-accent) 18%, white);
    opacity: 0.65;
    filter: blur(2px);
}

.payment-card > * {
    position: relative;
    z-index: 1;
}

.payment-card:hover,
.payment-card:focus-within,
.payment-card[open] {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--payment-accent) 28%, white);
    box-shadow:
        0 28px 60px color-mix(in srgb, var(--payment-accent) 18%, rgba(74, 48, 58, 0.14)),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.payment-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    cursor: pointer;
    list-style: none;
}

.payment-card summary::-webkit-details-marker {
    display: none;
}

.payment-card summary:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--payment-accent) 45%, white);
    outline-offset: -2px;
}

.payment-card[open] summary {
    padding-bottom: 18px;
}

.payment-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
}

.payment-toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: color-mix(in srgb, var(--payment-accent) 45%, var(--muted));
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.payment-toggle-label::before {
    content: "View";
}

.payment-card[open] .payment-toggle-label::before {
    content: "Hide";
}

.payment-toggle {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--payment-accent) 24%, white),
        rgba(255, 255, 255, 0.92)
    );
    color: color-mix(in srgb, var(--payment-accent) 70%, var(--text));
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--payment-accent) 14%, white),
        0 12px 24px color-mix(in srgb, var(--payment-accent) 14%, rgba(74, 48, 58, 0.12));
    transition:
        transform 180ms ease,
        background 180ms ease;
}

.payment-toggle::before {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
}

.payment-card:hover .payment-toggle,
.payment-card:focus-within .payment-toggle,
.payment-card[open] .payment-toggle {
    transform: scale(1.05);
}

.payment-card[open] .payment-toggle {
    background: linear-gradient(
        135deg,
        var(--payment-accent),
        color-mix(in srgb, var(--payment-accent) 72%, white)
    );
    color: #fff9fb;
}

.payment-card[open] .payment-toggle::before {
    content: "-";
}

.payment-card-content {
    display: grid;
    gap: 16px;
    padding: 0 24px 24px;
    animation: rise 180ms ease;
}

.payment-card-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--payment-accent) 90%, white),
        color-mix(in srgb, var(--payment-accent) 66%, white)
    );
    color: #fff9fb;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 14px 26px color-mix(in srgb, var(--payment-accent) 26%, rgba(74, 48, 58, 0.12));
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.payment-card-content a:hover,
.payment-card-content a:focus-visible {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow: 0 18px 30px color-mix(in srgb, var(--payment-accent) 30%, rgba(74, 48, 58, 0.14));
}

.qr-frame {
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
        color-mix(in srgb, var(--payment-accent) 5%, white);
    box-shadow:
        inset 0 0 0 1px rgba(71, 41, 58, 0.06),
        0 16px 30px rgba(74, 48, 58, 0.08);
}

.qr-frame img {
    width: 100%;
    border-radius: 18px;
    transition: transform 180ms ease;
}

.payment-card:hover .qr-frame img,
.payment-card:focus-within .qr-frame img {
    transform: scale(1.02);
}


.registry-inline-note {
    margin: 18px 0 0;
    text-align: center;
    color: var(--muted);
    line-height: 1.7;
}

.registry-simple-panel {
    padding: 24px 26px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.registry-simple-panel h3 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 0.98;
}

.registry-simple-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes quiz-pop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes emoji-burst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(
                calc(-50% + var(--travel-x)),
                calc(-50% + var(--travel-y))
            )
            scale(1.35) rotate(var(--spin));
    }
}

@media (max-width: 1100px) {
    .hero,
    .story-strip,
    .notes,
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .registry-hero > .hero-copy {
        grid-column: 1 / -1;
    }

    .registry-hero-stack {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .gallery-card.tall,
    .gallery-card.wide {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 14px;
    }

    .hero,
    .story-strip,
    .timeline-grid,
    .gallery-grid,
    .notes,
    .hero-summary,
    .registry-choice-grid,
    .payment-grid,
    .registry-hero-stack {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-copy {
        order: 2;
    }

    .hero-media {
        order: 1;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    .registry-hero-card {
        aspect-ratio: auto;
    }

    .hero-media img {
        object-position: center bottom;
    }

    .hero-copy,
    .hero-media,
    .section,
    .story-panel,
    .info-panel,
    .timeline-item,
    .note-card {
        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 18vw, 4.8rem);
    }

    .button,
    .button-secondary,
    .button-primary {
        width: 100%;
    }

    .registry-choice-card .button {
        width: 100%;
    }

    .registry-note {
        width: 100%;
    }

    .registry-message {
        left: 0;
        right: 0;
        bottom: auto;
        top: calc(100% + 10px);
        width: 100%;
        transform: translateY(-8px);
    }

    .registry-message::after {
        top: auto;
        bottom: 100%;
        border-right: 0;
        border-bottom: 0;
        border-left: 1px solid rgba(71, 41, 58, 0.1);
        border-top: 1px solid rgba(71, 41, 58, 0.1);
        transform: translateX(-50%) rotate(45deg);
    }

    .registry-note:hover .registry-message,
    .registry-note:focus-within .registry-message,
    .registry-note.is-open .registry-message {
        transform: translateY(0);
    }

    .quiz-modal {
        padding: 14px;
        align-items: start;
    }

    .quiz-dialog {
        max-height: calc(100dvh - 28px);
        padding: 20px 18px 18px;
        border-radius: 24px;
    }

    .quiz-dialog h2 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .quiz-intro,
    .quiz-progress,
    .quiz-question-card,
    .quiz-finish,
    .word-game-form {
        margin-top: 20px;
    }

    .quiz-question-card,
    .quiz-finish {
        padding: 18px;
    }

    .quiz-option {
        padding: 14px 16px;
    }

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

    .word-game-actions {
        margin-top: 0;
    }

    .word-game-result-actions {
        flex-direction: column;
    }

    .quiz-option {
        grid-template-columns: auto 1fr;
    }

    .quiz-option-result {
        grid-column: 1 / -1;
        padding-left: 52px;
    }

    .info-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .info-row strong {
        text-align: left;
    }

    .payment-card p {
        min-height: 0;
    }
}
