/*
 * Silvester-Einladung – "Midnight Glamour" theme.
 * Deep night blue, gold & champagne, fine glitter. Builds on invitation-core.css.
 */

/* ---------- Tokens ---------- */
body.invite-page.invite-silvester {
    --nye-night: #060a18;
    --nye-deep: #0b1230;
    --nye-navy: #141d48;
    --nye-gold: #e6c27a;
    --nye-gold-bright: #f7dfa3;
    --nye-gold-deep: #b98a3e;
    --nye-champagne: #f6ead2;
    --nye-rose: #e9b8a6;
    --nye-gold-text: linear-gradient(180deg, #fff8e8 0%, #f6dca2 48%, #d4a656 100%);
    --nye-hairline: rgba(230, 194, 122, 0.24);

    --invite-bg:
        radial-gradient(ellipse 120% 55% at 50% -8%, rgba(42, 60, 140, 0.55) 0%, transparent 62%),
        radial-gradient(ellipse 70% 40% at 105% 38%, rgba(150, 90, 150, 0.16), transparent 64%),
        radial-gradient(ellipse 70% 40% at -5% 70%, rgba(60, 90, 170, 0.16), transparent 64%),
        linear-gradient(180deg, #0c1434 0%, #080d22 38%, #060915 100%);
    --invite-text: #f4efe4;
    --invite-muted: rgba(236, 229, 214, 0.76);
    --invite-surface: rgba(20, 29, 68, 0.62);
    --invite-surface-strong: #fcf7ec;
    --invite-border: rgba(230, 194, 122, 0.24);
    --invite-accent: #e6c27a;
    --invite-accent-2: #f2d59a;
    --invite-accent-contrast: #0b1230;
    --invite-input-bg: #fcf8f0;
    --invite-input-text: #141a36;
    --invite-success: #8fe0b0;
    --invite-error: #ffa197;
    --invite-radius: 24px;
    --invite-radius-small: 14px;
    --invite-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    --invite-font-display: "Didot", "Bodoni 72", "Bodoni MT", Georgia, "Times New Roman", serif;
    --invite-font-body: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;

    background-color: var(--nye-night);
    background: var(--invite-bg);
    background-attachment: fixed;
    color: var(--invite-text);
    -webkit-font-smoothing: antialiased;
}

html:has(body.invite-silvester) {
    background-color: #060a18;
}

/* Fine gold glitter dust over the whole page */
body.invite-silvester::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(247, 223, 163, 0.7), transparent 60%),
        radial-gradient(1px 1px at 68% 8%, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(1.5px 1.5px at 84% 46%, rgba(247, 223, 163, 0.55), transparent 60%),
        radial-gradient(1px 1px at 32% 62%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1px 1px at 52% 86%, rgba(247, 223, 163, 0.6), transparent 60%),
        radial-gradient(1.5px 1.5px at 6% 78%, rgba(233, 184, 166, 0.5), transparent 60%);
    background-size: 420px 420px;
}

.invite-silvester main,
.invite-silvester .site-footer {
    position: relative;
    z-index: 1;
}

.invite-silvester main h1,
.invite-silvester main h2,
.invite-silvester main h3 {
    color: var(--nye-champagne);
}

/* ---------- Site header: champagne glass pill ---------- */
.invite-silvester .main-header {
    position: relative;
    z-index: 30;
    flex-direction: row;
    align-items: center;
    width: min(1180px, calc(100% - 24px));
    margin: 12px auto 0;
    padding: 6px 12px 6px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 251, 242, 0.97), rgba(246, 234, 208, 0.94));
    border: 1px solid rgba(230, 194, 122, 0.6);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.invite-silvester .brand-logo-moments {
    height: 54px;
}

.invite-silvester .main-nav {
    margin-left: auto;
}

/* Popups from the shared header keep their light card readable */
.invite-silvester .account-popup__card {
    color: #1f2430;
}

/* ---------- Demo / preview badge ---------- */
.invite-silvester .invite-demo-badge {
    background: linear-gradient(135deg, rgba(24, 34, 78, 0.92), rgba(12, 18, 44, 0.92));
    color: var(--invite-text);
    border-color: rgba(230, 194, 122, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.invite-silvester .invite-demo-badge strong {
    color: var(--nye-gold-bright);
}

.invite-silvester .invite-demo-badge span {
    color: var(--invite-muted);
}

/* ---------- Buttons ---------- */
.invite-silvester .invite-btn-primary {
    background: linear-gradient(135deg, #fbe7b6 0%, #e6c27a 45%, #c99a4b 100%);
    color: var(--invite-accent-contrast);
    box-shadow: 0 14px 34px rgba(230, 194, 122, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.invite-silvester .invite-btn-primary:hover {
    box-shadow: 0 18px 40px rgba(230, 194, 122, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.invite-silvester .invite-btn-ghost {
    color: var(--nye-champagne);
    border-color: rgba(230, 194, 122, 0.55);
    background: rgba(230, 194, 122, 0.06);
}

.invite-silvester .invite-btn-ghost:hover {
    background: rgba(230, 194, 122, 0.16);
    border-color: var(--nye-gold);
}

.invite-silvester .invite-btn.is-done {
    color: #08241a;
}

.invite-silvester .invite-btn-whatsapp {
    color: #072d17;
}

/* ---------- Hero ---------- */
.nye-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(34px, 7vw, 96px) 0 clamp(52px, 9vw, 120px);
}

.nye-hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.nye-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1.4px 1.4px at 8% 14%, #fff, transparent 70%),
        radial-gradient(1px 1px at 22% 36%, rgba(255, 255, 255, 0.8), transparent 70%),
        radial-gradient(1.2px 1.2px at 38% 10%, rgba(247, 223, 163, 0.9), transparent 70%),
        radial-gradient(1px 1px at 56% 28%, #fff, transparent 70%),
        radial-gradient(1.6px 1.6px at 72% 12%, rgba(247, 223, 163, 0.9), transparent 70%),
        radial-gradient(1px 1px at 88% 30%, rgba(255, 255, 255, 0.85), transparent 70%),
        radial-gradient(1px 1px at 94% 6%, #fff, transparent 70%),
        radial-gradient(1.2px 1.2px at 46% 48%, rgba(255, 255, 255, 0.6), transparent 70%);
    background-size: 560px 380px;
}

.nye-sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 78% 32%, rgba(230, 194, 122, 0.14), transparent 70%),
        linear-gradient(180deg, transparent 70%, rgba(6, 10, 24, 0.5) 100%);
}

.nye-sky::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.8px 1.8px at 16% 22%, #fff, transparent 70%),
        radial-gradient(1.6px 1.6px at 64% 18%, rgba(247, 223, 163, 1), transparent 70%),
        radial-gradient(1.8px 1.8px at 82% 42%, #fff, transparent 70%),
        radial-gradient(1.4px 1.4px at 34% 54%, rgba(247, 223, 163, 1), transparent 70%);
    background-size: 640px 420px;
    animation: nye-twinkle 4.8s ease-in-out infinite alternate;
}

/* Rising champagne bubbles */
.nye-bubbles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.nye-bubbles span {
    position: absolute;
    bottom: -24px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(247, 223, 163, 0.5);
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.85) 0 18%, rgba(247, 223, 163, 0.18) 42%, transparent 72%);
    opacity: 0;
    animation: nye-rise 14s linear infinite;
    will-change: transform, opacity;
}

.nye-bubbles span:nth-child(1) { left: 4%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: -2s; }
.nye-bubbles span:nth-child(2) { left: 11%; width: 10px; height: 10px; animation-duration: 17s; animation-delay: -9s; }
.nye-bubbles span:nth-child(3) { left: 19%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: -5s; }
.nye-bubbles span:nth-child(4) { left: 27%; width: 8px; height: 8px; animation-duration: 15s; animation-delay: -12s; }
.nye-bubbles span:nth-child(5) { left: 36%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: -1s; }
.nye-bubbles span:nth-child(6) { left: 45%; width: 7px; height: 7px; animation-duration: 16s; animation-delay: -7s; }
.nye-bubbles span:nth-child(7) { left: 53%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: -3s; }
.nye-bubbles span:nth-child(8) { left: 61%; width: 11px; height: 11px; animation-duration: 19s; animation-delay: -14s; }
.nye-bubbles span:nth-child(9) { left: 68%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: -6s; }
.nye-bubbles span:nth-child(10) { left: 75%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: -8s; }
.nye-bubbles span:nth-child(11) { left: 82%; width: 9px; height: 9px; animation-duration: 18s; animation-delay: -4s; }
.nye-bubbles span:nth-child(12) { left: 88%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: -10s; }
.nye-bubbles span:nth-child(13) { left: 93%; width: 7px; height: 7px; animation-duration: 15s; animation-delay: -1.5s; }
.nye-bubbles span:nth-child(14) { left: 98%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: -6.5s; }

.nye-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}

.nye-hero-copy {
    display: grid;
    gap: 18px;
    justify-items: start;
    min-width: 0;
}

.nye-eyebrow,
.nye-section-eyebrow,
.nye-clock-caption {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--nye-gold);
}

.nye-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nye-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nye-gold));
}

.nye-greeting {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 14px 20px;
    border-radius: 18px;
    border: 1px solid rgba(230, 194, 122, 0.4);
    background: linear-gradient(135deg, rgba(230, 194, 122, 0.14), rgba(230, 194, 122, 0.03));
    max-width: 34rem;
}

.nye-greeting strong {
    font-family: var(--invite-font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.35rem, 3.6vw, 1.7rem);
    color: var(--nye-gold-bright);
}

.nye-greeting span {
    color: var(--invite-muted);
}

.nye-title {
    margin: 0;
    font-family: var(--invite-font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 9vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    color: var(--nye-champagne);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .invite-silvester .nye-title,
    .nye-year-new,
    .nye-newyear-title {
        background: var(--nye-gold-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.nye-subtitle {
    margin: 0;
    max-width: 38ch;
    font-size: clamp(1.06rem, 2.4vw, 1.26rem);
    line-height: 1.6;
    color: var(--invite-muted);
}

.nye-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 6px;
    padding: 0;
    list-style: none;
}

.nye-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--nye-hairline);
    font-size: 0.95rem;
    color: var(--nye-champagne);
}

.nye-meta svg,
.nye-detail-icon svg,
.nye-station-badge svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--nye-gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nye-hero .invite-quick-actions {
    margin-top: 6px;
}

.nye-hint {
    margin: 0;
    font-size: 0.88rem;
    font-style: italic;
    color: rgba(236, 229, 214, 0.6);
}

/* ---------- Countdown clock ---------- */
.nye-clock {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: clamp(24px, 4.5vw, 38px) clamp(16px, 4vw, 34px);
    border-radius: 30px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(230, 194, 122, 0.16), transparent 70%),
        linear-gradient(165deg, rgba(30, 42, 94, 0.82), rgba(9, 14, 36, 0.9));
    border: 1px solid rgba(230, 194, 122, 0.36);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nye-clock::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nye-gold-bright), transparent);
}

.nye-clock-year {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.35em;
    margin: 0;
    font-family: var(--invite-font-display);
    line-height: 0.9;
}

.nye-year-old {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(236, 229, 214, 0.55);
    text-decoration: line-through;
    text-decoration-color: rgba(230, 194, 122, 0.7);
    text-decoration-thickness: 1px;
    transition: opacity 0.8s ease;
}

.nye-year-new {
    font-size: clamp(4rem, 15vw, 6.8rem);
    letter-spacing: 0.02em;
    color: var(--nye-gold-bright);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .nye-year-new {
        background: linear-gradient(100deg, #c99a4b 0%, #f7dfa3 30%, #fffaf0 45%, #f7dfa3 60%, #c99a4b 100%);
        background-size: 220% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        animation: nye-shimmer 7s ease-in-out infinite;
    }
}

.nye-phase {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.nye-phase-label {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--invite-muted);
}

.invite-silvester .nye-countdown {
    width: 100%;
    max-width: 420px;
    gap: 8px;
}

.invite-silvester .nye-countdown > div {
    padding: 14px 4px 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--nye-hairline);
}

.invite-silvester .nye-countdown strong {
    font-family: var(--invite-font-display);
    font-weight: 400;
    font-size: clamp(2rem, 8.4vw, 3rem);
    color: var(--nye-champagne);
}

.invite-silvester .nye-countdown span {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: rgba(236, 229, 214, 0.66);
}

/* Secondary (compact) phase */
.nye-clock.has-midnight:not(.is-party-started) .nye-phase-midnight,
.nye-clock.is-party-started .nye-phase-party {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--nye-hairline);
}

.nye-clock.has-midnight:not(.is-party-started) .nye-phase-midnight .nye-countdown {
    max-width: 300px;
    gap: 6px;
}

.nye-clock.has-midnight:not(.is-party-started) .nye-phase-midnight .nye-countdown > div {
    padding: 8px 2px 6px;
    border-radius: 12px;
    background: transparent;
}

.nye-clock.has-midnight:not(.is-party-started) .nye-phase-midnight .nye-countdown strong {
    font-size: 1.3rem;
    color: var(--nye-gold-bright);
}

.nye-clock.has-midnight:not(.is-party-started) .nye-phase-midnight .nye-countdown span {
    font-size: 0.6rem;
}

/* Party running */
.nye-phase-running {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(230, 194, 122, 0.12);
    border: 1px solid rgba(230, 194, 122, 0.4);
    color: var(--nye-gold-bright);
    font-weight: 600;
}

.nye-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--nye-gold-bright);
    box-shadow: 0 0 0 0 rgba(247, 223, 163, 0.6);
    animation: nye-pulse 1.8s ease-out infinite;
}

.nye-clock.is-party-started .nye-phase-party {
    order: 5;
}

.nye-clock.is-party-started .nye-phase-party .nye-phase-label,
.nye-clock.is-party-started .nye-phase-party .nye-countdown {
    display: none;
}

.nye-clock.is-party-started .nye-phase-running {
    display: inline-flex;
}

.nye-clock.is-party-started:not(.has-midnight) .nye-phase-party,
.nye-clock.is-new-year .nye-phase-party {
    border-top: 0;
    padding-top: 0;
}

/* New year reached */
.nye-newyear {
    display: none;
    order: 4;
    gap: 6px;
}

.nye-clock.is-new-year .nye-newyear {
    display: grid;
    animation: nye-pop 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

.nye-clock.is-new-year .nye-phase-midnight {
    display: none;
}

.nye-clock.is-new-year .nye-year-old {
    opacity: 0.3;
}

.nye-newyear-title {
    margin: 0;
    font-family: var(--invite-font-display);
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    line-height: 1.05;
    color: var(--nye-gold-bright);
}

.nye-newyear-text {
    margin: 0;
    color: var(--invite-muted);
}

/* ---------- New-year toast (shown by JS at midnight) ---------- */
.nye-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 220;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbe7b6, #e6c27a 50%, #c99a4b);
    color: #0b1230;
    font-family: var(--invite-font-display);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    animation: nye-toast 7s ease both;
}

.nye-toast[hidden] {
    display: none;
}

/* ---------- Sections ---------- */
.nye-section-head {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: clamp(26px, 4vw, 44px);
    text-align: center;
}

.nye-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nye-section-eyebrow::before,
.nye-section-eyebrow::after {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nye-gold));
}

.nye-section-eyebrow::after {
    transform: scaleX(-1);
}

.nye-section-head h2,
.nye-welcome-card h2 {
    margin: 0;
    font-family: var(--invite-font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5.6vw, 3.2rem);
    line-height: 1.1;
    text-wrap: balance;
}

/* Welcome */
.nye-welcome {
    padding-top: clamp(16px, 3vw, 36px);
}

.nye-welcome-card {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 56px) clamp(20px, 6vw, 64px);
    text-align: center;
    border-radius: var(--invite-radius);
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(230, 194, 122, 0.12), transparent 70%),
        rgba(14, 21, 52, 0.55);
    border: 1px solid var(--nye-hairline);
}

.nye-welcome-card .nye-section-eyebrow {
    margin-bottom: 14px;
}

.invite-silvester .nye-welcome-card h2 {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--nye-gold-bright);
}

.nye-welcome-card p:not(.nye-section-eyebrow):not(.nye-signature) {
    margin: 0 auto 16px;
    max-width: 60ch;
    font-size: 1.06rem;
    line-height: 1.85;
    color: rgba(244, 239, 228, 0.88);
}

.nye-signature {
    margin: 26px 0 0;
    font-family: var(--invite-font-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--nye-gold);
}

/* Details */
.nye-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
}

.nye-detail {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 26px 24px;
    border-radius: var(--invite-radius);
    background: linear-gradient(170deg, rgba(26, 37, 84, 0.7), rgba(12, 18, 44, 0.75));
    border: 1px solid var(--nye-hairline);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.nye-detail:hover {
    border-color: rgba(230, 194, 122, 0.5);
}

.nye-detail-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 1px solid rgba(230, 194, 122, 0.45);
    background: radial-gradient(circle at 50% 30%, rgba(230, 194, 122, 0.2), transparent 70%);
}

.nye-detail-icon svg {
    width: 22px;
    height: 22px;
}

.invite-silvester .nye-detail h3 {
    margin: 0 0 4px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nye-gold);
}

.nye-detail p {
    margin: 0;
    line-height: 1.6;
    color: var(--invite-muted);
}

.invite-silvester .nye-detail .nye-detail-main {
    font-family: var(--invite-font-display);
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--nye-champagne);
}

.invite-silvester .nye-detail .nye-detail-note {
    margin-top: 8px;
    font-size: 0.92rem;
    font-style: italic;
    color: var(--nye-gold-bright);
}

.nye-preline {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.nye-detail-link {
    justify-self: start;
    margin-top: 10px;
    color: var(--nye-gold-bright);
    font-weight: 700;
    border-bottom: 1px solid rgba(247, 223, 163, 0.45);
    padding-bottom: 2px;
}

.nye-detail-link:hover {
    border-bottom-color: var(--nye-gold-bright);
}

.nye-detail-link:focus-visible {
    outline: 3px solid var(--nye-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.nye-detail-motto {
    background:
        linear-gradient(170deg, rgba(40, 46, 92, 0.92), rgba(16, 20, 48, 0.94)) padding-box,
        linear-gradient(135deg, #f7dfa3, rgba(230, 194, 122, 0.2) 45%, #e9b8a6) border-box;
    border: 1px solid transparent;
}

.invite-silvester .nye-detail .nye-motto {
    font-style: italic;
    font-size: 1.5rem;
    color: var(--nye-gold-bright);
}

/* ---------- Timeline to midnight ---------- */
.nye-timeline {
    --nye-rail: 19px;
    position: relative;
    display: grid;
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.nye-timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: var(--nye-rail);
    width: 2px;
    transform: translateX(-1px);
    background: linear-gradient(180deg, rgba(230, 194, 122, 0.12), rgba(230, 194, 122, 0.7) 75%, rgba(233, 184, 166, 0.25));
}

.nye-station {
    position: relative;
    display: grid;
    gap: 6px;
    padding-left: calc(var(--nye-rail) + 30px);
}

.nye-station-dot {
    position: absolute;
    top: 6px;
    left: var(--nye-rail);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: var(--nye-deep);
    border: 2px solid var(--nye-gold);
    box-shadow: 0 0 14px rgba(230, 194, 122, 0.45);
}

.nye-station-time {
    margin: 0;
    font-family: var(--invite-font-display);
    font-size: 1.45rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--nye-gold-bright);
}

.nye-station-body {
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(20, 29, 68, 0.55);
    border: 1px solid var(--nye-hairline);
}

.nye-station-body h3 {
    margin: 0 0 4px;
    font-family: var(--invite-font-display);
    font-weight: 400;
    font-size: 1.3rem;
}

.nye-station-body p {
    margin: 0;
    line-height: 1.65;
    color: var(--invite-muted);
}

.nye-station.is-after .nye-station-body {
    background: rgba(48, 30, 62, 0.45);
    border-color: rgba(233, 184, 166, 0.22);
}

.nye-station.is-after .nye-station-dot {
    border-color: var(--nye-rose);
}

/* The 00:00 station */
.nye-station.is-midnight .nye-station-dot {
    top: 2px;
    width: 26px;
    height: 26px;
    border: 0;
    background: radial-gradient(circle, #fffaf0 0 22%, #f7dfa3 40%, #c99a4b 72%);
    box-shadow: 0 0 0 6px rgba(230, 194, 122, 0.16), 0 0 34px rgba(247, 223, 163, 0.8);
}

.nye-station.is-midnight .nye-station-dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(247, 223, 163, 0.7);
    animation: nye-ring 2.6s ease-out infinite;
}

.nye-station.is-midnight .nye-station-time {
    font-size: 2.2rem;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .nye-station.is-midnight .nye-station-time {
        background: var(--nye-gold-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.nye-station.is-midnight .nye-station-body {
    position: relative;
    padding: 24px 24px 22px;
    background:
        radial-gradient(ellipse 80% 90% at 0% 0%, rgba(247, 223, 163, 0.2), transparent 60%) padding-box,
        linear-gradient(160deg, rgba(44, 52, 104, 0.95), rgba(16, 21, 52, 0.95)) padding-box,
        linear-gradient(135deg, #f7dfa3, rgba(230, 194, 122, 0.25) 50%, #e9b8a6) border-box;
    border: 1px solid transparent;
    box-shadow: 0 0 60px rgba(230, 194, 122, 0.18), 0 24px 60px rgba(0, 0, 0, 0.35);
}

.nye-station.is-midnight .nye-station-body h3 {
    font-size: clamp(1.5rem, 4.4vw, 1.9rem);
    color: var(--nye-gold-bright);
}

.nye-station-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbe7b6, #e6c27a);
    color: #0b1230;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nye-station-badge svg {
    width: 14px;
    height: 14px;
    stroke: #0b1230;
    fill: #0b1230;
}

/* ---------- RSVP ---------- */
.nye-rsvp {
    display: grid;
    justify-items: center;
}

.nye-glasses {
    width: 120px;
    margin-bottom: -6px;
}

.nye-glasses svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    fill: none;
    stroke: var(--nye-gold);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nye-glass {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.nye-glass path:first-child {
    fill: rgba(247, 223, 163, 0.16);
}

.nye-glass-left {
    transform: rotate(-8deg);
}

.nye-glass-right {
    transform: rotate(8deg);
}

.nye-glass-spark {
    stroke: var(--nye-gold-bright);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nye-glasses.is-cheers .nye-glass-left {
    animation: nye-clink-left 1.1s ease both;
}

.nye-glasses.is-cheers .nye-glass-right {
    animation: nye-clink-right 1.1s ease both;
}

.nye-glasses.is-cheers .nye-glass-spark {
    animation: nye-spark 1.1s ease both;
}

.invite-silvester .nye-rsvp-card {
    width: 100%;
    max-width: 880px;
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(230, 194, 122, 0.12), transparent 70%),
        linear-gradient(170deg, rgba(24, 34, 78, 0.86), rgba(10, 15, 38, 0.9));
    border-color: rgba(230, 194, 122, 0.34);
}

.invite-silvester .invite-rsvp-head {
    text-align: center;
}

.invite-silvester .invite-rsvp-head h2,
.invite-silvester .invite-host-head h2 {
    font-weight: 400;
    font-size: clamp(1.9rem, 5vw, 2.7rem);
}

.invite-silvester .invite-rsvp-head p:not(.invite-eyebrow),
.invite-silvester .invite-host-head p:not(.invite-eyebrow) {
    color: var(--invite-muted);
}

.invite-silvester .invite-rsvp-head strong {
    color: var(--nye-gold-bright);
}

.invite-silvester .invite-eyebrow {
    letter-spacing: 0.22em;
    color: var(--nye-gold);
}

.invite-silvester .invite-choice > span {
    border-color: rgba(230, 194, 122, 0.35);
}

.invite-silvester .invite-choice input:checked + span {
    border-color: var(--nye-gold);
    background: linear-gradient(135deg, #fffaf0, #f7e8c6);
    box-shadow: 0 0 0 3px rgba(230, 194, 122, 0.22), 0 12px 28px rgba(0, 0, 0, 0.25);
}

.invite-silvester .invite-choice input:checked + span .invite-choice-icon {
    background: linear-gradient(135deg, #e6c27a, #b98a3e);
    color: #0b1230;
}

.invite-silvester .invite-choice-icon {
    background: rgba(20, 26, 54, 0.1);
}

.invite-silvester .invite-field > span {
    color: var(--nye-champagne);
}

.invite-silvester .invite-field input,
.invite-silvester .invite-field textarea,
.invite-silvester .invite-host-login input {
    border-color: rgba(230, 194, 122, 0.35);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.invite-silvester .invite-field input::placeholder,
.invite-silvester .invite-field textarea::placeholder,
.invite-silvester .invite-host-login input::placeholder {
    color: rgba(20, 26, 54, 0.5);
}

.invite-silvester .invite-field input:focus,
.invite-silvester .invite-field textarea:focus,
.invite-silvester .invite-host-login input:focus {
    outline: none;
    border-color: var(--nye-gold);
    box-shadow: 0 0 0 4px rgba(230, 194, 122, 0.3);
}

.invite-silvester .invite-field input:focus-visible,
.invite-silvester .invite-field textarea:focus-visible,
.invite-silvester .invite-host-login input:focus-visible {
    outline: 3px solid var(--nye-gold-bright);
    outline-offset: 2px;
}

.invite-silvester .invite-stepper-button {
    border-color: rgba(230, 194, 122, 0.45);
    background: linear-gradient(180deg, #fffaf0, #f3e4c2);
    color: #141a36;
}

.invite-silvester .invite-stepper-button:hover {
    background: linear-gradient(180deg, #fffaf0, #ecd6a6);
}

.invite-silvester .invite-stepper-button:focus-visible {
    outline: 3px solid var(--nye-gold-bright);
    outline-offset: 2px;
}

.invite-silvester .invite-alert-info {
    color: var(--nye-champagne);
}

/* Demo success modal */
.invite-silvester .invite-modal-backdrop {
    background: rgba(3, 6, 18, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.invite-silvester .invite-modal-card {
    border-top: 4px solid var(--nye-gold);
    background: linear-gradient(180deg, #fffaf0, #f8eedb);
    color: #141a36;
}

.invite-silvester .invite-modal-card h3 {
    color: #141a36;
    font-weight: 400;
    font-size: 1.8rem;
}

/* ---------- Host area ---------- */
.nye-host .invite-host-head {
    text-align: center;
}

.invite-silvester .invite-stat {
    background: linear-gradient(170deg, rgba(26, 37, 84, 0.75), rgba(12, 18, 44, 0.8));
    border-color: var(--nye-hairline);
}

.invite-silvester .invite-stat strong {
    font-family: var(--invite-font-display);
    font-weight: 400;
    font-size: 2.3rem;
    color: var(--nye-champagne);
}

.invite-silvester .invite-stat-highlight {
    background: linear-gradient(135deg, #fbe7b6 0%, #e6c27a 50%, #c99a4b 100%);
    color: #0b1230;
}

.invite-silvester .invite-stat-highlight strong {
    color: #0b1230;
}

.invite-silvester .invite-card {
    border-color: var(--nye-hairline);
}

.invite-silvester .nye-host .invite-card {
    background: linear-gradient(170deg, rgba(22, 32, 74, 0.78), rgba(10, 15, 38, 0.82));
}

.invite-silvester .invite-card h3 {
    font-weight: 400;
    font-size: 1.5rem;
}

.invite-silvester .invite-table th {
    color: var(--nye-gold);
}

.invite-silvester .invite-table tbody tr:hover {
    background: rgba(230, 194, 122, 0.05);
}

.invite-silvester .invite-table tr.is-no td {
    color: rgba(236, 229, 214, 0.7);
}

.invite-silvester .invite-share-group {
    border-color: rgba(230, 194, 122, 0.35);
    background: rgba(230, 194, 122, 0.04);
}

.invite-silvester .invite-share-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--nye-hairline);
}

/* ---------- Fireworks overlay (created by JS for RSVP & midnight) ---------- */
.nye-fx-overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---------- Keyframes ---------- */
@keyframes nye-rise {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    10% {
        opacity: 0.75;
    }

    50% {
        transform: translate3d(10px, -45vh, 0);
    }

    85% {
        opacity: 0.5;
    }

    100% {
        transform: translate3d(-6px, -95vh, 0);
        opacity: 0;
    }
}

@keyframes nye-twinkle {
    0% {
        opacity: 0.25;
    }

    100% {
        opacity: 1;
    }
}

@keyframes nye-shimmer {
    0%,
    100% {
        background-position: 100% 0;
    }

    50% {
        background-position: 0% 0;
    }
}

@keyframes nye-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(247, 223, 163, 0.6);
    }

    100% {
        box-shadow: 0 0 0 12px rgba(247, 223, 163, 0);
    }
}

@keyframes nye-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@keyframes nye-pop {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    100% {
        transform: none;
        opacity: 1;
    }
}

@keyframes nye-toast {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    10%,
    85% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -12px);
    }
}

@keyframes nye-clink-left {
    0% {
        transform: rotate(-8deg);
    }

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

    55% {
        transform: rotate(2deg);
    }

    100% {
        transform: rotate(-8deg);
    }
}

@keyframes nye-clink-right {
    0% {
        transform: rotate(8deg);
    }

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

    55% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(8deg);
    }
}

@keyframes nye-spark {
    0%,
    30% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ---------- Larger screens ---------- */
@media (min-width: 760px) {
    .nye-timeline {
        --nye-rail: 150px;
    }

    .nye-station {
        padding-left: calc(var(--nye-rail) + 34px);
    }

    .nye-station-time {
        position: absolute;
        top: 16px;
        left: 0;
        width: calc(var(--nye-rail) - 30px);
        text-align: right;
    }

    .nye-station-dot {
        top: 22px;
    }

    .nye-station.is-midnight .nye-station-time {
        top: 18px;
    }

    .nye-station.is-midnight .nye-station-dot {
        top: 26px;
    }
}

@media (min-width: 960px) {
    .nye-hero-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    }

    .nye-hero {
        min-height: min(760px, calc(100vh - 100px));
        display: grid;
        align-items: center;
    }
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
    .invite-silvester .main-header {
        border-radius: 26px;
        padding: 6px 8px 6px 14px;
    }

    .invite-silvester .brand-logo-moments {
        height: 44px;
    }
}

@media (max-width: 420px) {
    .invite-silvester .nye-countdown {
        gap: 6px;
    }

    .invite-silvester .nye-countdown > div {
        padding: 12px 2px 8px;
        border-radius: 12px;
    }

    .invite-silvester .nye-countdown span {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }

    .nye-hero .invite-quick-actions .invite-btn-primary {
        flex: 1 1 100%;
    }

    .nye-detail {
        padding: 22px 20px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .nye-bubbles,
    .nye-hero-canvas,
    .nye-fx-overlay {
        display: none;
    }

    .nye-sky::before,
    .nye-year-new,
    .nye-live-dot,
    .nye-station.is-midnight .nye-station-dot::after {
        animation: none !important;
    }

    .nye-toast {
        animation: none;
    }
}
