:root {
    --rsvp-bg: #071525;
    --rsvp-accent: #C9A227;
    --rsvp-card: #ffffff;
    --rsvp-text: #0B1F3A;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    background: var(--rsvp-bg);
    color: var(--rsvp-text);
    overflow-x: hidden;
}

.stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #071525;
    pointer-events: none;
}

.stage-hall {
    position: absolute;
    inset: -8%;
    transform-origin: 50% 42%;
    background:
        radial-gradient(ellipse 42% 28% at 50% 18%, rgba(224, 195, 106, 0.16), transparent 62%),
        radial-gradient(ellipse 70% 50% at 50% 70%, rgba(18, 48, 86, 0.55), transparent 70%),
        repeating-linear-gradient(
            90deg,
            rgba(224, 195, 106, 0.045) 0 1px,
            transparent 1px 7.2rem
        ),
        linear-gradient(180deg, #123056 0%, #0B1F3A 38%, #071525 100%);
    animation: rsvp-ken 34s ease-in-out infinite alternate;
}

.stage-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 48% at 50% 42%, rgba(7, 21, 37, 0.18), rgba(7, 21, 37, 0.72) 78%),
        linear-gradient(180deg, rgba(7, 21, 37, 0.35) 0%, transparent 28%, rgba(7, 21, 37, 0.78) 100%);
}

.stage-haze {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 46% 34% at 50% 36%, rgba(224, 195, 106, 0.14), transparent 72%);
    animation: rsvp-pulse 8s ease-in-out infinite;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.45;
}

.orb-a {
    width: 22rem;
    height: 22rem;
    left: -5rem;
    bottom: -7rem;
    background: rgba(18, 48, 86, 0.75);
    animation: rsvp-float 14s ease-in-out infinite;
}

.orb-b {
    width: 16rem;
    height: 16rem;
    right: 6%;
    top: 10%;
    background: rgba(201, 162, 39, 0.2);
    animation: rsvp-float 11s ease-in-out infinite reverse;
}

.orb-c {
    width: 11rem;
    height: 11rem;
    left: 22%;
    bottom: 16%;
    background: rgba(224, 195, 106, 0.12);
    animation: rsvp-float 18s ease-in-out infinite;
}

.dust {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.dust span {
    position: absolute;
    bottom: -8px;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #E0C36A;
    opacity: 0;
    left: calc(5% + var(--i) * 5%);
    animation: rsvp-dust 12s linear infinite;
    animation-delay: calc(var(--i) * -0.6s);
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin: 0 auto;
    padding: 2.25rem 1rem 3rem;
}

.brand {
    text-align: center;
    margin-bottom: 1.4rem;
    animation: rsvp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
    display: inline-flex;
    color: #E0C36A;
    filter: drop-shadow(0 0 12px rgba(224, 195, 106, 0.35));
}

.brand-mark svg {
    width: 2.75rem;
    height: 2.75rem;
}

.brand-word {
    margin-top: 0.65rem;
    font-family: Georgia, Cambria, serif;
    font-size: 1.45rem;
    letter-spacing: 0.18em;
    color: #E0C36A;
}

.brand-kicker {
    margin-top: 0.35rem;
    color: rgba(224, 195, 106, 0.88);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
}

.card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rsvp-text);
    border-radius: 1.15rem;
    padding: 1.85rem 1.6rem 1.7rem;
    border: 1px solid rgba(224, 195, 106, 0.38);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.45) inset;
    backdrop-filter: blur(16px);
    animation: rsvp-rise 0.9s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #E0C36A 18%, #C9A227 50%, #E0C36A 82%, transparent);
    background-size: 200% 100%;
    animation: rsvp-shimmer 4.5s linear infinite;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #A4841C;
}

.banner {
    display: block;
    width: 100%;
    max-height: 10rem;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

h1 {
    font-family: Georgia, Cambria, serif;
    font-size: 1.7rem;
    line-height: 1.25;
    color: #0B1F3A;
    margin: 0 0 0.45rem;
    font-weight: 400;
}

h3 {
    margin: 0;
    font-family: Georgia, Cambria, serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #0B1F3A;
}

.hello {
    margin: 0.85rem 0 0;
    font-size: 1.02rem;
    color: #0B1F3A;
}

.hello strong { font-weight: 700; }

.meta, .copy, label, .hint, .footer {
    font-size: 0.9rem;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    margin: 0 0 0.2rem;
    color: #64748b;
}

.meta span {
    position: relative;
}

.meta span + span::before {
    content: "·";
    margin-right: 0.9rem;
    color: #C9A227;
}

.hint, .footer {
    color: #64748b;
}

.hint {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.copy {
    margin: 0.75rem 0;
    line-height: 1.6;
    color: #334155;
}

.detail {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0 0.1rem;
    padding: 0.95rem 1.05rem;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #fbfaf6 0%, #f8fafc 100%);
    border: 1px solid #ead9a4;
}

.detail p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #334155;
}

.detail .deadline {
    color: #8a6d1a;
    font-weight: 600;
}

.error {
    margin: 0.75rem 0 0;
    color: #b91c1c;
    font-size: 0.9rem;
}

.empty h2 {
    font-family: Georgia, Cambria, serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.65rem;
    color: var(--rsvp-text);
}

.empty p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

.empty p + p {
    margin-top: 0.85rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 1.15rem;
}

.panel {
    padding: 1rem 1rem 1.05rem;
    border: 1px solid #e8eef5;
    border-radius: 0.95rem;
    background: #fff;
}

.choice {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.choice-opt {
    appearance: none;
    border: 1px solid #d6dee8;
    background: #f8fafc;
    color: #0B1F3A;
    border-radius: 0.7rem;
    padding: 0.72rem 0.8rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.choice-opt:hover { border-color: #C9A227; }

.choice-opt.is-on {
    background: #fffdf6;
    border-color: #C9A227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.16);
    color: #0B1F3A;
}

.guest-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.guest-card {
    padding: 0.9rem 0.9rem 1rem;
    border-radius: 0.8rem;
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
}

.guest-card-label {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a6d1a;
}

.field {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.field-full { grid-column: 1 / -1; }

label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #475569;
    display: block;
    margin-bottom: 0.28rem;
}

.control,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),
select,
textarea {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: 2.75rem;
    margin: 0;
    border: 1px solid #d0d7e2;
    border-radius: 0.5rem;
    padding: 0 0.85rem;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.25;
    color: #0B1F3A;
    background-color: #fff;
    box-shadow: none;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
    height: auto;
    min-height: 5rem;
    padding: 0.7rem 0.85rem;
    resize: vertical;
}

select {
    padding-right: 2.35rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1.2h10L6 6.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 0.7rem 0.45rem;
}

.guest-card input,
.guest-card select {
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #C9A227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.16);
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 0.7rem;
    padding: 0.88rem 1rem;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    background: var(--rsvp-accent);
    color: #071525;
    box-shadow: 0 10px 22px rgba(201, 162, 39, 0.28);
    transition: transform 0.15s ease, background-color 0.2s;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
    transform: translateX(-120%);
    animation: rsvp-sheen 3.8s ease-in-out 1.2s infinite;
}

.btn:hover { transform: translateY(-1px); background: #E0C36A; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
    width: auto;
    background: transparent;
    color: var(--rsvp-text);
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.btn-ghost::after { display: none; }

.grid {
    display: grid;
    gap: 0.75rem;
    align-items: start;
}

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .card { padding: 2.15rem 2.05rem 1.9rem; }
    .choice { grid-template-columns: repeat(3, 1fr); }
}

.actions {
    display: grid;
    gap: 0.85rem;
    padding-top: 0.2rem;
}

.consent {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #334155;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    margin: 0;
}

.consent input {
    width: auto;
    margin-top: 0.2rem;
    accent-color: #C9A227;
}

.notice {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.95rem 1.05rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #475569;
}

.notice p { margin: 0; }
.notice p + p { margin-top: 0.45rem; }

.success {
    border-radius: 0.75rem;
    padding: 1rem 1.05rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.passes {
    display: grid;
    gap: 1rem;
    margin-top: 1.15rem;
}

.guest-pass {
    overflow: hidden;
    border: 1px solid rgba(11, 31, 58, 0.12);
    border-radius: 0.95rem;
    background: var(--pass-card-bg, #fff);
    color: var(--pass-text, #0F172A);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.guest-pass-header {
    padding: 0.85rem 1rem 0.8rem;
    background: var(--pass-header-bg, #0B1F3A);
    color: var(--pass-header-text, #fff);
    border-bottom: 3px solid var(--pass-accent, #C9A227);
    text-align: center;
}

.guest-pass-brand {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pass-accent, #C9A227);
}

.guest-pass-title {
    margin: 0.28rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-pass-body {
    display: grid;
    gap: 0.95rem;
    padding: 1.1rem 1rem 1.15rem;
    text-align: center;
}

.guest-pass-head { display: grid; gap: 0.2rem; }

.guest-pass-event {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.35;
    color: var(--pass-muted, #64748B);
}

.guest-pass-name {
    margin: 0;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pass-text, #0F172A);
}

.guest-pass-position {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pass-text, #0F172A);
}

.guest-pass-org {
    margin: 0.08rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--pass-muted, #64748B);
}

.guest-pass-type {
    margin: 0.35rem auto 0;
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--pass-accent, #C9A227);
    background: #fff8e7;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-pass-qr {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-inline: auto;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
}

.guest-pass-qr img {
    display: block;
    width: 220px;
    height: 220px;
    max-width: 100%;
}

.guest-pass-code-wrap {
    padding: 0.95rem 1rem 0.85rem;
    border-radius: 0.75rem;
    background: var(--pass-code-bg, #FFFBEB);
    border: 1px solid var(--pass-code-border, #D8B458);
}

.guest-pass-code-kicker {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pass-code-label, #92400E);
}

.guest-pass-code {
    margin: 0.28rem 0 0;
    font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--pass-text, #0F172A);
}

.guest-pass-hint {
    margin: 0.55rem 0 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--pass-muted, #64748B);
}

/* legacy class kept for older cached pages */
.pass-card {
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.15rem 1rem 1.25rem;
    background: #fff;
}

.hidden { display: none !important; }

.footer {
    text-align: center;
    margin-top: 1.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.62);
}

@keyframes rsvp-ken {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.08) translate(-1.2%, -0.7%); }
}

@keyframes rsvp-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes rsvp-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(16px, -22px, 0); }
}

@keyframes rsvp-dust {
    0% { transform: translateY(0) scale(0.6); opacity: 0; }
    12% { opacity: 0.75; }
    100% { transform: translateY(-105vh) scale(1); opacity: 0; }
}

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

@keyframes rsvp-shimmer {
    from { background-position: 0 0; }
    to { background-position: 200% 0; }
}

@keyframes rsvp-sheen {
    0%, 55% { transform: translateX(-120%); }
    75%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
    .stage-hall, .stage-haze, .orb, .dust span, .brand, .card, .card::before, .btn::after {
        animation: none !important;
    }
    .stage-hall { transform: none; inset: 0; }
}
