:root {
    --bg-base: #F5E6E8;
    --bg-warm: #F0DDE0;
    --bg-accent: #EBCED4;
    --text-primary: #4A4044;
    --text-secondary: #6B5A60;
    --text-muted: #9A8589;
    --heading-color: #6B5B6E;
    --accent-warm: #D4A5A5;
    --accent-rose: #E04878;
    --accent-sage: #A8B5A0;
    --accent-terracotta: #C4857A;
    --card-bg: rgba(255, 250, 252, 0.62);
    --card-border: rgba(212, 165, 165, 0.34);
    --section-bg: rgba(255, 248, 250, 0.5);
    --input-bg: rgba(255, 252, 253, 0.86);
    --shadow-soft: rgba(107, 91, 110, 0.11);
    --shadow-warm: rgba(212, 165, 165, 0.24);
    --grain-opacity: 0.025;
}

[data-theme="dark"] {
    --bg-base: #1C1917;
    --bg-warm: #231F1C;
    --bg-accent: #2D2825;
    --text-primary: #E8E2DB;
    --text-secondary: #B8ADA0;
    --text-muted: #8F8278;
    --heading-color: #D4C5B5;
    --accent-warm: #B8956B;
    --accent-rose: #D85B82;
    --accent-sage: #7A9172;
    --accent-terracotta: #A87058;
    --card-bg: rgba(45, 40, 37, 0.86);
    --card-border: rgba(184, 149, 107, 0.22);
    --section-bg: rgba(35, 31, 28, 0.72);
    --input-bg: #2D2825;
    --shadow-soft: rgba(0, 0, 0, 0.28);
    --shadow-warm: rgba(184, 149, 107, 0.14);
    --grain-opacity: 0.04;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    transition: background-color 0.45s ease, color 0.45s ease;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

.bg-texture {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 18% 0%, var(--accent-rose) 0%, transparent 45%),
        radial-gradient(ellipse at 82% 100%, var(--accent-sage) 0%, transparent 44%),
        radial-gradient(ellipse at 58% 48%, var(--accent-warm) 0%, transparent 42%);
    opacity: 0.12;
}

.bg-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.decorations {
    position: fixed;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.cloud {
    position: absolute;
    left: -200px;
    width: 160px;
    height: 60px;
    border-radius: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.72), rgba(255, 240, 245, 0.48));
    filter: blur(3px);
    opacity: 0.58;
    animation: driftCloud 30s linear infinite;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.cloud::before {
    top: -30px;
    left: 25px;
    width: 70px;
    height: 70px;
}

.cloud::after {
    top: -40px;
    right: 25px;
    width: 90px;
    height: 90px;
}

.float-image,
.float-emoji {
    position: absolute;
    bottom: -150px;
    opacity: 0.34;
    animation: floatUp var(--duration, 18s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

.float-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: saturate(0.9);
}

.float-image.heart-img {
    width: 70px;
    height: 70px;
    background-image: url("../images/heart.png");
}

.float-image.coffee {
    width: 82px;
    height: 82px;
    background-image: url("../images/coffee.png");
}

.float-image.note {
    width: 66px;
    height: 66px;
    background-image: url("../images/note.png");
}

.float-emoji {
    font-size: 48px;
    filter: saturate(0.85);
}

@keyframes driftCloud {
    from {
        left: -200px;
    }

    to {
        left: calc(100% + 200px);
    }
}

@keyframes floatUp {
    0% {
        bottom: -150px;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }

    12%,
    88% {
        opacity: 0.34;
    }

    50% {
        transform: translateX(32px) rotate(8deg);
    }

    100% {
        bottom: 110vh;
        opacity: 0;
        transform: translateX(-18px) rotate(-5deg);
    }
}

.container {
    position: relative;
    z-index: 10;
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.site-header {
    margin-bottom: 44px;
}

.site-header.compact {
    margin-bottom: 32px;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: 0 4px 16px var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.icon-btn:hover {
    transform: translateY(-2px) rotate(8deg);
    background: var(--accent-warm);
    color: white;
}

.moon-icon,
[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: inline;
}

.soft-link,
.ghost-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(196, 133, 122, 0.35);
}

.soft-link:hover,
.ghost-link:hover {
    color: var(--accent-terracotta);
}

.title-block {
    text-align: center;
}

.title-accent {
    display: block;
    margin-bottom: -4px;
    color: var(--accent-warm);
    font-family: "Caveat", cursive;
    font-size: 28px;
}

.title {
    color: var(--heading-color);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: clamp(42px, 10vw, 66px);
    font-style: italic;
    font-weight: 600;
    line-height: 1.04;
}

.tagline {
    max-width: 560px;
    margin: 10px auto 0;
    color: var(--text-muted);
    font-family: "Caveat", cursive;
    font-size: 23px;
}

section {
    margin-bottom: 44px;
}

.invite-card,
.reaction-card,
.planner-section,
.details-panel,
.result-paper,
.saved-section {
    border: 1px solid var(--card-border);
    background: var(--section-bg);
    box-shadow: 0 8px 32px var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(20px);
}

.invite-card,
.reaction-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 54px 24px;
    border-radius: 22px;
    text-align: center;
}

.reaction-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sticker-cloud {
    display: grid;
    grid-template-columns: repeat(3, minmax(58px, 1fr));
    gap: 4px 10px;
    width: min(310px, 86vw);
    margin: 0 auto 10px;
    align-items: center;
    justify-items: center;
}

.sticker-cloud img {
    display: block;
    width: 100%;
    max-width: 98px;
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(107, 91, 110, 0.12));
}

.sticker-cloud img:nth-child(2),
.sticker-cloud img:nth-child(5) {
    transform: translateY(-6px);
}

.sticker-cloud img:nth-child(3),
.sticker-cloud img:nth-child(4) {
    transform: rotate(3deg);
}

.envelope,
.big-emoji {
    font-size: 58px;
    line-height: 1;
    margin-bottom: 12px;
    animation: softWiggle 3s ease-in-out infinite;
}

.invite-card h2,
.reaction-card h2,
.result-paper h2 {
    color: var(--accent-rose);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: clamp(34px, 8vw, 54px);
    font-weight: 600;
    line-height: 1.05;
}

.hint {
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
    margin: 8px 0 24px;
}

.answer-row,
.result-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-btn,
.ghost-btn,
.generate-btn,
.mini-btn,
.danger-btn {
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.primary-btn,
.generate-btn {
    padding: 15px 34px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-terracotta));
    box-shadow: 0 9px 24px rgba(224, 72, 120, 0.24);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 600;
}

.primary-btn:hover,
.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(224, 72, 120, 0.3);
}

.ghost-btn {
    padding: 13px 28px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--text-secondary);
}

.runaway-btn {
    position: relative;
}

.reaction-card[hidden],
.planner-section[hidden],
.result-section[hidden],
[hidden] {
    display: none !important;
}

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

    35% {
        transform: rotate(-5deg) translateX(-4px);
    }

    70% {
        transform: rotate(5deg) translateX(4px);
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.section-header h2,
.saved-section h2 {
    color: var(--heading-color);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.planner-section,
.saved-section {
    padding: 28px 24px;
    border-radius: 22px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.plan-card {
    min-height: 150px;
    padding: 18px 14px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--shadow-soft);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.plan-card:hover,
.plan-card.selected {
    transform: translateY(-5px);
    border-color: var(--accent-rose);
    box-shadow: 0 12px 28px var(--shadow-warm);
}

.plan-art {
    width: 62px;
    height: 62px;
    margin: 0 auto 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 8px 10px rgba(107, 91, 110, 0.12));
}

.art-food {
    background-image: url("../images/plan-food.png");
}

.art-movie {
    background-image: url("../images/plan-movie.png");
}

.art-picnic {
    background-image: url("../images/plan-picnic.png");
}

.art-coffee {
    background-image: url("../images/plan-coffee.png");
}

.art-walk {
    background-image: url("../images/plan-walk.png");
}

.art-surprise {
    background-image: url("../images/plan-surprise.png");
}

.art-gaming {
    background-image: url("../images/plan-gaming.png");
}

.plan-card strong {
    display: block;
    color: var(--text-primary);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 20px;
}

.plan-card span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.details-panel {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    outline: none;
    background: var(--input-bg);
    color: var(--text-primary);
    padding: 13px 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.18);
}

.time-trigger,
.date-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.time-trigger:hover,
.time-trigger:focus-visible,
.date-trigger:hover,
.date-trigger:focus-visible {
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.time-trigger-icon,
.date-trigger-icon {
    font-size: 20px;
}

.time-modal,
.date-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(74, 64, 68, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: modalFade 0.24s ease;
}

.time-modal[hidden],
.date-modal[hidden] {
    display: none;
}

.time-modal-card,
.date-modal-card {
    position: relative;
    width: min(420px, 100%);
    padding: 28px 24px 24px;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    background: var(--bg-base);
    box-shadow: 0 24px 70px rgba(74, 64, 68, 0.22);
    animation: clockPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.date-modal-card {
    width: min(460px, 100%);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.time-modal-header {
    text-align: center;
    margin-bottom: 18px;
}

.time-modal-emoji {
    display: inline-block;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 8px;
    animation: softWiggle 3s ease-in-out infinite;
}

.time-modal-header h2 {
    color: var(--heading-color);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 30px;
    font-weight: 500;
}

#clockTimeDisplay {
    color: var(--accent-rose);
    font-family: "Caveat", cursive;
    font-size: 30px;
}

#calendarSelectedDisplay {
    color: var(--accent-rose);
    font-family: "Caveat", cursive;
    font-size: 26px;
}

.calendar-book {
    width: min(360px, 100%);
    margin: 0 auto;
    padding: 14px;
    border: 1px solid rgba(212, 165, 165, 0.42);
    border-radius: 20px;
    background:
        linear-gradient(90deg, rgba(196, 133, 122, 0.08) 0 1px, transparent 1px),
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.55), transparent 30%),
        var(--card-bg);
    box-shadow:
        0 14px 34px var(--shadow-warm),
        inset 0 2px 12px rgba(255, 255, 255, 0.26);
    overflow: hidden;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.calendar-toolbar h3 {
    color: var(--heading-color);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 500;
    text-align: center;
}

.calendar-nav {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--accent-terracotta);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: transform 0.24s ease, background 0.24s ease;
}

.calendar-nav:hover {
    transform: translateY(-2px);
    background: rgba(212, 165, 165, 0.18);
}

.calendar-page {
    transform-origin: center left;
}

.calendar-page.turn-next {
    animation: pageNext 0.34s ease;
}

.calendar-page.turn-prev {
    animation: pagePrev 0.34s ease;
}

.weekday-row,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

.weekday-row {
    margin-bottom: 8px;
}

.weekday-row span {
    color: var(--text-muted);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.calendar-grid {
    min-height: 248px;
}

.calendar-day {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: rgba(255, 252, 253, 0.42);
    color: var(--text-primary);
    cursor: pointer;
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.calendar-day:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--accent-warm);
    background: rgba(212, 165, 165, 0.16);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-terracotta));
    color: white;
    box-shadow: 0 8px 18px rgba(224, 72, 120, 0.22);
}

.calendar-day.today::after {
    content: "";
    position: absolute;
    bottom: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}

.calendar-day:disabled,
.calendar-day.outside {
    cursor: default;
    opacity: 0.34;
}

.calendar-day.blank {
    visibility: hidden;
}

.cozy-clock {
    position: relative;
    width: min(290px, 76vw);
    aspect-ratio: 1;
    margin: 0 auto;
    border: 1px solid rgba(212, 165, 165, 0.42);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.7) 0 5px, transparent 6px),
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.45), transparent 28%),
        var(--card-bg);
    box-shadow:
        0 14px 34px var(--shadow-warm),
        inset 0 2px 12px rgba(255, 255, 255, 0.28);
    touch-action: none;
    user-select: none;
}

.cozy-clock::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(196, 133, 122, 0.25);
    border-radius: 50%;
}

.clock-number {
    position: absolute;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 18px;
    font-style: italic;
    pointer-events: none;
}

.n12 { left: 50%; top: 10%; }
.n1 { left: 70%; top: 15%; }
.n2 { left: 85%; top: 30%; }
.n3 { left: 90%; top: 50%; }
.n4 { left: 85%; top: 70%; }
.n5 { left: 70%; top: 85%; }
.n6 { left: 50%; top: 90%; }
.n7 { left: 30%; top: 85%; }
.n8 { left: 15%; top: 70%; }
.n9 { left: 10%; top: 50%; }
.n10 { left: 15%; top: 30%; }
.n11 { left: 30%; top: 15%; }

.clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    border: none;
    border-radius: 999px;
    cursor: grab;
    transform: translateX(-50%) rotate(var(--angle, 0deg));
    transform-origin: bottom center;
    transition: box-shadow 0.2s ease;
    touch-action: none;
}

.clock-hand:active {
    cursor: grabbing;
}

.hour-hand {
    width: 9px;
    height: 74px;
    background: linear-gradient(var(--accent-terracotta), var(--accent-rose));
    box-shadow: 0 4px 12px rgba(196, 133, 122, 0.24);
}

.minute-hand {
    width: 5px;
    height: 106px;
    background: var(--accent-sage);
    box-shadow: 0 4px 12px rgba(122, 145, 114, 0.22);
}

.clock-hand.selected {
    box-shadow: 0 0 0 7px rgba(224, 72, 120, 0.12), 0 8px 18px var(--shadow-warm);
}

.clock-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: var(--accent-rose);
    box-shadow: 0 4px 12px var(--shadow-warm);
    transform: translate(-50%, -50%);
}

.clock-controls,
.clock-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.period-toggle {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: var(--card-bg);
}

.period-btn {
    min-width: 58px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.period-btn.selected {
    background: var(--accent-warm);
    color: white;
}

.clock-help {
    color: var(--text-muted);
    font-family: "Caveat", cursive;
    font-size: 19px;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes clockPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.94);
    }

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

@keyframes pageNext {
    0% {
        opacity: 0;
        transform: translateX(42px) rotateY(-10deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes pagePrev {
    0% {
        opacity: 0;
        transform: translateX(-42px) rotateY(10deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.suggestion-chip {
    padding: 9px 13px;
    border: 1px dashed var(--accent-warm);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
}

.result-section {
    animation: fadeInUp 0.45s ease;
}

.result-paper {
    max-width: 650px;
    margin: 0 auto;
    padding: 36px 30px;
    border-radius: 8px;
    text-align: center;
    background:
        radial-gradient(circle at 14px 14px, rgba(196, 133, 122, 0.22) 1px, transparent 1.5px),
        var(--section-bg);
    background-size: 18px 18px, auto;
}

.confetti-line {
    height: 28px;
    margin-bottom: 10px;
    background-image: radial-gradient(circle, var(--accent-rose) 1.5px, transparent 2px);
    background-size: 22px 12px;
    opacity: 0.34;
}

.kicker {
    color: var(--accent-terracotta);
    font-family: "Caveat", cursive;
    font-size: 24px;
}

.result-summary {
    max-width: 520px;
    margin: 10px auto 24px;
    color: var(--text-secondary);
}

.plan-facts {
    display: grid;
    gap: 16px;
    margin: 24px auto 28px;
    text-align: left;
}

.plan-facts div {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
    gap: 16px;
}

.plan-facts dt {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.plan-facts dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 17px;
}

.error-message {
    max-width: 520px;
    margin: 20px auto;
    padding: 14px 18px;
    border: 1px solid var(--accent-rose);
    border-radius: 14px;
    background: rgba(224, 72, 120, 0.12);
    color: var(--accent-terracotta);
    text-align: center;
    font-weight: 600;
}

.saved-section {
    margin-bottom: 28px;
}

.saved-section.muted {
    opacity: 0.92;
}

.pill {
    min-width: 34px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--accent-warm);
    color: white;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.saved-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: 0 4px 18px var(--shadow-soft);
}

.saved-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saved-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(212, 165, 165, 0.2);
    font-size: 24px;
}

.saved-card h3 {
    color: var(--heading-color);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 24px;
    line-height: 1.1;
}

.saved-meta,
.saved-note {
    color: var(--text-secondary);
    font-size: 14px;
}

.saved-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-btn,
.danger-btn {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.mini-btn {
    background: var(--accent-sage);
    color: white;
}

.danger-btn {
    background: rgba(224, 72, 120, 0.14);
    color: var(--accent-rose);
}

.empty-state {
    margin: 20px 0 4px;
    color: var(--text-muted);
    text-align: center;
    font-family: "Caveat", cursive;
    font-size: 22px;
}

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

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

@media (max-width: 760px) {
    .container {
        padding: 20px 16px 52px;
    }

    .nav-row {
        margin-bottom: 28px;
    }

    .title {
        font-size: 40px;
    }

    .tagline {
        font-size: 20px;
    }

    .invite-card,
    .reaction-card,
    .planner-section,
    .saved-section {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

    .plan-facts div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mobile-hidden {
        display: none;
    }
}

@media (max-width: 420px) {
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .answer-row,
    .result-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn,
    .generate-btn {
        width: 100%;
    }
}
