:root {
    --emerald-deep: #082417;
    --emerald-rich: #0f3d28;
    --emerald-bright: #19613f;
    --crimson-velvet: #9f1239;
    --crimson-bright: #dc2626;
    --crimson-dark: #6b0f1a;
    --gold-warm: #e6be5a;
    --gold-bright: #f8e29c;
    --gold-bronze: #a87c28;
    --snow-white: #fffdf9;
    --frost-tint: rgba(255, 253, 249, 0.12);
    --glass-surface: rgba(11, 41, 27, 0.78);
    --glass-card: rgba(255, 252, 245, 0.94);
    --text-ink: #12261d;
    --text-muted: #3b5849;
    --text-light: #fffdf9;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--emerald-deep);
    background-image:
        radial-gradient(circle at 15% 12%, rgba(220, 38, 38, 0.24) 0%, transparent 45%),
        radial-gradient(circle at 86% 18%, rgba(230, 190, 90, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 50% 92%, rgba(25, 97, 63, 0.55) 0%, transparent 55%),
        linear-gradient(165deg, #071e13 0%, #0d3522 48%, #092417 100%);
    color: var(--text-light);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: env(safe-area-inset-top, 10px);
    padding-bottom: env(safe-area-inset-bottom, 18px);
}

.ambient-layer,
.holiday-action-burst {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-layer {
    z-index: 1;
}

.holiday-action-burst {
    z-index: 2500;
}

.holiday-string-lights {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    z-index: 12;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 6%;
}

.holiday-string-lights::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(248, 226, 156, 0.55) 12%, rgba(248, 226, 156, 0.55) 88%, transparent);
}

.bulb {
    position: relative;
    top: 3px;
    width: 9px;
    height: 14px;
    border-radius: 50% 50% 45% 45%;
    animation: lightTwinkle 2.2s ease-in-out infinite alternate;
}

.bulb.red {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
    animation-delay: 0s;
}

.bulb.gold {
    background: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.9);
    animation-delay: 0.45s;
}

.bulb.emerald {
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
    animation-delay: 0.9s;
}

.bulb.ivory {
    background: #fffdf9;
    box-shadow: 0 0 10px rgba(255, 253, 249, 0.95);
    animation-delay: 1.35s;
}

.particle {
    position: absolute;
    top: -16px;
    border-radius: 50%;
    opacity: 0;
    animation: driftSnow linear infinite;
}

.particle.flake {
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 0 6px rgba(255, 253, 249, 0.55);
}

.particle.dust {
    background: rgba(248, 226, 156, 0.78);
    box-shadow: 0 0 6px rgba(230, 190, 90, 0.65);
}

.holiday-floating-glyph {
    position: fixed;
    bottom: -36px;
    font-size: clamp(1rem, 3.2vw, 1.45rem);
    opacity: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    animation: holidayGlyphRise linear infinite;
}

.burst-star {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: clamp(1.1rem, 4vw, 1.75rem);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    animation: holidayBurstFly var(--dur, 0.95s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.holiday-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 540px;
    padding: max(22px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.luxury-frame {
    position: relative;
    background:
        linear-gradient(155deg, rgba(255, 253, 249, 0.97) 0%, rgba(247, 242, 229, 0.94) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-ink);
    border: 2px solid var(--gold-warm);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(159, 18, 57, 0.35),
        inset 0 0 0 2px rgba(230, 190, 90, 0.28),
        0 18px 38px rgba(3, 17, 11, 0.52);
}

.corner-ornament {
    position: absolute;
    z-index: 4;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-bronze));
    color: var(--crimson-dark);
    border: 1.5px solid var(--crimson-dark);
    font-size: 0.72rem;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

.corner-ornament.tl { top: -9px; left: -9px; }
.corner-ornament.tr { top: -9px; right: -9px; }
.corner-ornament.bl { bottom: -9px; left: -9px; }
.corner-ornament.br { bottom: -9px; right: -9px; }

.holly-sprig {
    position: absolute;
    top: 6px;
    width: 68px;
    height: 46px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.holly-tl { left: 6px; }
.holly-tr { right: 6px; }

.main-header {
    text-align: center;
    margin-bottom: 14px;
    padding: 14px 14px 15px;
    animation: posterReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.main-header.compact-mode {
    padding: 9px 12px;
    margin-bottom: 10px;
}

.main-header.compact-mode .holiday-showcase-strip,
.main-header.compact-mode .event-meta-box,
.main-header.compact-mode .holly-sprig {
    display: none;
}

.main-header.compact-mode h1 {
    font-size: clamp(1.2rem, 5vw, 1.65rem);
}

.main-header.compact-mode .holiday-banner-wrap h2 {
    font-size: clamp(0.95rem, 4vw, 1.35rem);
}

.brand-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(168, 124, 40, 0.35);
}

.brand-mark {
    flex: 1;
    text-align: left;
}

.brand-mark:last-child {
    text-align: right;
}

.brand-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.75rem, 2.6vw, 0.9rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--emerald-rich);
    line-height: 1.2;
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(230, 190, 90, 0.24);
    border: 1px solid rgba(168, 124, 40, 0.5);
}

.brand-center-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--crimson-velvet);
    text-transform: uppercase;
    white-space: nowrap;
}

.holiday-crest {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2px;
}

.holiday-arc {
    display: inline-block;
    background: linear-gradient(90deg, var(--emerald-rich), var(--crimson-velvet), var(--emerald-rich));
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: clamp(0.58rem, 2.1vw, 0.72rem);
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--gold-warm);
    box-shadow: 0 4px 12px rgba(15, 61, 40, 0.22);
    animation: crestFloat 3s ease-in-out infinite;
}

.holiday-emblem-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 6px;
}

.floating-gift {
    font-size: 1.45rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.gift-left {
    animation: giftFloatLeft 2.8s ease-in-out infinite;
}

.gift-right {
    animation: giftFloatRight 3.1s ease-in-out infinite;
}

.ornament-emblem {
    filter: drop-shadow(0 5px 10px rgba(159, 18, 57, 0.28));
    animation: ornamentSwing 3.4s ease-in-out infinite;
}

.svg-bauble {
    width: 66px;
    height: 66px;
    display: block;
}

.main-header h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.65rem, 7.6vw, 2.5rem);
    font-weight: 900;
    color: var(--emerald-rich);
    margin: 4px 0 0;
    line-height: 1.05;
    letter-spacing: 3px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: titleShimmer 4.5s ease-in-out infinite;
}

.holiday-banner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 3px 0 8px;
}

.holiday-banner-wrap h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.2rem, 5.4vw, 1.85rem);
    font-weight: 900;
    color: var(--crimson-velvet);
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1.4px;
}

.holiday-star {
    color: var(--gold-bronze);
    font-size: clamp(0.9rem, 3.6vw, 1.15rem);
    animation: starSpin 6s linear infinite;
}

.holiday-showcase-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 8px 0 10px;
    padding: 8px 10px;
    background: linear-gradient(90deg, rgba(15, 61, 40, 0.08), rgba(230, 190, 90, 0.2), rgba(159, 18, 57, 0.08));
    border-top: 1px solid rgba(168, 124, 40, 0.4);
    border-bottom: 1px solid rgba(168, 124, 40, 0.4);
    border-radius: 10px;
}

.showcase-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-ink);
}

.showcase-icon {
    font-size: 1.05rem;
    animation: perkBounce 2.4s ease-in-out infinite;
}

.showcase-divider {
    width: 1px;
    height: 24px;
    background: rgba(168, 124, 40, 0.45);
}

.event-date-bar {
    background: linear-gradient(90deg, var(--emerald-rich), #144d33, var(--emerald-rich));
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: clamp(0.72rem, 3vw, 0.96rem);
    font-weight: 800;
    letter-spacing: 1.6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--gold-warm);
    margin-bottom: 8px;
    box-shadow: 0 4px 14px rgba(15, 61, 40, 0.25);
}

.event-meta-box {
    text-align: center;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    line-height: 1.45;
    color: var(--text-muted);
}

.event-meta-box p {
    margin: 2px 0;
}

.event-meta-box strong {
    color: var(--crimson-velvet);
    font-weight: 800;
}

.stage-panel {
    animation: cardRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.holiday-card, .timeline-card, .modal-box {
    padding: 18px 15px;
    text-align: center;
}

.ledger-card.form-stamp-shake {
    animation: ledgerStampImpact 0.42s cubic-bezier(0.18, 1.5, 0.32, 1);
}

.ledger-card.form-exit-swipe {
    animation: ledgerExitSwipe 0.24s ease forwards;
}

.portal-pill {
    display: inline-block;
    background: linear-gradient(90deg, var(--emerald-rich), var(--emerald-bright));
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: clamp(0.6rem, 2.1vw, 0.7rem);
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--gold-warm);
    margin-bottom: 9px;
    animation: pillGlow 2.4s ease-in-out infinite alternate;
}

.perk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.perk-chip {
    background: rgba(255, 253, 249, 0.92);
    border: 1.5px solid rgba(168, 124, 40, 0.35);
    border-radius: 12px;
    padding: 9px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: clamp(0.68rem, 2.3vw, 0.76rem);
    font-weight: 700;
    color: var(--text-ink);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.perk-chip:hover {
    transform: translateY(-2px);
    border-color: var(--crimson-velvet);
    box-shadow: 0 6px 14px rgba(15, 61, 40, 0.14);
}

.perk-chip:nth-child(1) .perk-icon { animation: perkBounce 2.1s ease-in-out 0s infinite; }
.perk-chip:nth-child(2) .perk-icon { animation: perkBounce 2.1s ease-in-out 0.25s infinite; }
.perk-chip:nth-child(3) .perk-icon { animation: perkBounce 2.1s ease-in-out 0.5s infinite; }

.perk-icon {
    font-size: 1.3rem;
    display: inline-block;
}

.panel-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}

.mini-back-btn,
.mini-exit-btn,
.mini-prompt-btn {
    border: 1.5px solid rgba(168, 124, 40, 0.55);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 800;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.mini-back-btn {
    background: rgba(255, 253, 249, 0.95);
    color: var(--text-ink);
}

.mini-exit-btn {
    background: rgba(159, 18, 57, 0.1);
    color: var(--crimson-velvet);
    border-color: rgba(159, 18, 57, 0.45);
}

.mini-exit-btn:hover {
    background: var(--crimson-velvet);
    color: var(--snow-white);
}

.mini-prompt-btn {
    background: rgba(230, 190, 90, 0.28);
    color: var(--text-ink);
}

.mini-prompt-btn:hover {
    background: var(--gold-warm);
}

.mini-back-btn:active,
.mini-exit-btn:active,
.mini-prompt-btn:active {
    transform: scale(0.95);
}

.step-indicator {
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    font-weight: 900;
    color: var(--crimson-velvet);
    letter-spacing: 0.8px;
    text-align: center;
}

h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    font-weight: 900;
    color: var(--emerald-rich);
    margin: 0 0 6px;
    letter-spacing: 0.6px;
    line-height: 1.2;
}

.card-subtitle {
    font-size: clamp(0.8rem, 2.9vw, 0.88rem);
    color: var(--text-muted);
    margin: 0 0 13px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(168, 124, 40, 0.45);
    line-height: 1.45;
}

.input-field {
    margin-bottom: 12px;
    text-align: left;
    transition: transform 0.2s ease;
}

.input-field.field-active {
    transform: translateX(2px);
}

.input-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--text-ink);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.7px;
}

.input-field label::before {
    content: '✦';
    color: var(--crimson-velvet);
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.input-field.field-active label::before {
    transform: rotate(72deg) scale(1.2);
}

.quick-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.quick-select-chip {
    background: rgba(255, 253, 249, 0.95);
    border: 1.2px solid rgba(15, 61, 40, 0.3);
    color: var(--emerald-rich);
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.quick-select-chip:hover,
.quick-select-chip.active-chip {
    background: linear-gradient(135deg, var(--emerald-rich), var(--emerald-bright));
    color: var(--gold-bright);
    border-color: var(--gold-warm);
    transform: translateY(-1px);
}

.input-field input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    background: #ffffff;
    border: 1.6px solid rgba(15, 61, 40, 0.35);
    color: var(--text-ink);
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field input::placeholder {
    color: rgba(59, 88, 73, 0.55);
}

.input-field input:focus {
    border-color: var(--crimson-velvet);
    box-shadow: 0 0 0 3px rgba(159, 18, 57, 0.16), 0 4px 12px rgba(15, 61, 40, 0.12);
}

.holiday-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    margin-top: 6px;
    background: linear-gradient(180deg, #e11d48 0%, #9f1239 100%);
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: clamp(0.8rem, 3.2vw, 0.92rem);
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1.5px solid var(--gold-warm);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(159, 18, 57, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
}

.holiday-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 253, 249, 0.42), transparent);
    transform: skewX(-20deg);
    animation: shimmerSweep 3.8s infinite;
}

.holiday-btn.cta-pulse {
    animation: btnHeartbeat 2.2s ease-in-out infinite;
}

.holiday-btn.stamp-btn {
    background: linear-gradient(180deg, #15803d 0%, #0d3b26 100%);
    color: var(--gold-bright);
    box-shadow: 0 6px 18px rgba(15, 61, 40, 0.35);
}

.holiday-btn.ghost-btn {
    background: rgba(255, 253, 249, 0.94);
    color: var(--emerald-rich);
    font-family: 'Cinzel', serif;
    font-size: clamp(0.7rem, 2.7vw, 0.78rem);
    font-weight: 800;
    min-height: 44px;
    margin-top: 9px;
    border: 1.5px solid rgba(168, 124, 40, 0.55);
    box-shadow: 0 3px 10px rgba(15, 61, 40, 0.1);
}

.holiday-btn.compact-ghost-btn {
    min-height: 42px;
    padding: 9px 12px;
    margin-top: 8px;
}

.holiday-btn:hover {
    filter: brightness(1.06);
}

.holiday-btn:active {
    transform: translateY(2px);
}

.holiday-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.error-msg {
    background: #fff1f2;
    border: 1.5px solid var(--crimson-velvet);
    color: var(--crimson-dark);
    padding: 10px 12px;
    margin-top: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.84rem;
    animation: shakeBox 0.35s ease;
}

.trail-progress-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    margin-bottom: 10px;
    padding: 0 10px;
    background: rgba(255, 253, 249, 0.92);
    border: 1.5px solid rgba(168, 124, 40, 0.45);
    border-radius: 999px;
    overflow: hidden;
}

.trail-line {
    position: absolute;
    left: 28px;
    right: 14px;
    top: 50%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold-bronze) 0px, var(--gold-bronze) 6px, transparent 6px, transparent 11px);
    transform: translateY(-50%);
}

.trail-rider {
    position: relative;
    z-index: 2;
    font-size: 1.15rem;
    transform: translateX(calc(var(--trail-progress, 0) * 140px));
    transition: transform 0.2s ease-out;
    animation: trailHop 1.3s ease-in-out infinite;
}

.trail-label {
    position: relative;
    z-index: 2;
    background: var(--emerald-rich);
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--gold-warm);
}

.verified-pass-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: linear-gradient(135deg, #0b2e1d 0%, #154930 100%);
    color: var(--snow-white);
    border: 1.5px solid var(--gold-warm);
    border-radius: 12px;
    padding: 11px 13px;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(11, 46, 29, 0.28);
}

.verified-pass-banner.late-mode {
    background: linear-gradient(135deg, #4c0d1b 0%, #7f142a 100%);
    border-color: var(--gold-bright);
}

.pass-star {
    font-size: 1.4rem;
    color: var(--gold-bright);
    animation: starSpin 6s linear infinite;
}

.pass-text-wrap {
    flex: 1;
    min-width: 0;
}

.pass-title {
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.9px;
    color: var(--gold-bright);
}

.pass-guest {
    font-size: 0.8rem;
    margin-top: 2px;
    word-break: break-word;
}

.pass-status-tag {
    background: #15803d;
    color: var(--snow-white);
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--gold-warm);
    white-space: nowrap;
}

.pass-status-tag.closed-tag {
    background: var(--crimson-velvet);
    color: var(--gold-bright);
}

.event-quick-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.quick-cell {
    background: rgba(255, 253, 249, 0.92);
    border: 1.5px solid rgba(168, 124, 40, 0.35);
    border-radius: 9px;
    padding: 7px 5px;
    display: flex;
    flex-direction: column;
}

.q-label {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 900;
    color: var(--crimson-velvet);
}

.q-val {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-ink);
}

.venue-detail-card {
    background: rgba(255, 253, 249, 0.92);
    border: 1.5px solid rgba(168, 124, 40, 0.35);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 10px;
    text-align: left;
    font-size: 0.76rem;
    line-height: 1.45;
}

.venue-detail-card p {
    margin: 2px 0;
}

.venue-detail-card strong {
    color: var(--crimson-velvet);
}

.timeline-scroll {
    max-height: 44dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
    border: 1.5px solid rgba(168, 124, 40, 0.42);
    padding: 8px 11px;
    background: rgba(255, 253, 249, 0.94);
    border-radius: 12px;
}

.timeline-section-divider {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-align: center;
    background: var(--emerald-rich);
    color: var(--gold-bright);
    padding: 6px 10px;
    border-radius: 8px;
    margin: 4px 0 6px;
    border: 1px solid var(--gold-warm);
}

.timeline-section-divider.after-party-divider {
    margin-top: 12px;
    background: linear-gradient(90deg, var(--crimson-dark), var(--crimson-velvet));
    color: var(--gold-bright);
    border-color: var(--gold-warm);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(168, 124, 40, 0.32);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.timeline-item:hover {
    transform: translateX(3px);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item.highlight-item {
    background: rgba(230, 190, 90, 0.14);
    margin: 2px -6px;
    padding: 9px 6px;
    border-radius: 8px;
}

.timeline-item.after-party-item {
    background: rgba(159, 18, 57, 0.06);
    margin: 2px -6px;
    padding: 9px 6px;
    border-radius: 8px;
}

.time-badge {
    background: var(--crimson-velvet);
    color: var(--gold-bright);
    font-weight: 700;
    font-size: 0.68rem;
    padding: 4px 7px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(230, 190, 90, 0.5);
    font-family: monospace;
    margin-top: 1px;
}

.after-party-item .time-badge {
    background: var(--emerald-rich);
}

.timeline-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-desc {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--text-ink);
}

.timeline-note {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--emerald-rich);
    background: rgba(230, 190, 90, 0.25);
    border: 1px solid rgba(168, 124, 40, 0.4);
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.28;
}

.late-footer-note {
    margin-top: 10px;
    padding: 9px 11px;
    background: rgba(159, 18, 57, 0.08);
    border: 1px dashed var(--crimson-velvet);
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--crimson-velvet);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 18, 12, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    overflow-y: auto;
}

.modal-box {
    width: 100%;
    max-width: 430px;
    max-height: 90dvh;
    overflow-y: auto;
    animation: modalPopIn 0.38s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.modal-close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(168, 124, 40, 0.6);
    background: rgba(255, 253, 249, 0.96);
    color: var(--text-ink);
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.modal-close-x:hover {
    background: var(--crimson-velvet);
    color: var(--snow-white);
    transform: rotate(90deg);
}

.celebration-modal {
    border-color: var(--gold-bright);
}

.program-prompt-modal {
    border-color: var(--gold-warm);
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48, var(--crimson-velvet));
    color: var(--gold-bright);
    border: 2px solid var(--gold-warm);
    font-size: 1.75rem;
    box-shadow: 0 6px 16px rgba(159, 18, 57, 0.35);
    animation: badgeCelebratePop 0.65s cubic-bezier(0.18, 1.6, 0.32, 1) both;
}

.modal-badge.prompt-badge {
    background: linear-gradient(135deg, var(--emerald-bright), var(--emerald-rich));
    color: var(--gold-bright);
}

.modal-badge.closed-badge {
    background: linear-gradient(135deg, #0b2e1d, #164e34);
    color: var(--gold-bright);
    animation: modalPopIn 0.35s ease both;
}

.modal-box h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.3rem, 5.4vw, 1.85rem);
    font-weight: 900;
    color: var(--crimson-velvet);
    margin: 0 0 10px;
    letter-spacing: 0.8px;
}

.modal-details-header {
    background: rgba(255, 253, 249, 0.95);
    border: 1.5px solid rgba(168, 124, 40, 0.4);
    padding: 11px 13px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: left;
    font-size: 0.82rem;
}

.modal-details-header p {
    margin: 4px 0;
    color: var(--text-ink);
    word-break: break-word;
}

.modal-details-header p strong {
    color: var(--emerald-rich);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.modal-body-text {
    font-size: 0.86rem;
    line-height: 1.48;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hidden {
    display: none !important;
}

@keyframes lightTwinkle {
    0% { opacity: 0.45; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1.12); }
}

@keyframes driftSnow {
    0% { transform: translateY(-10px) translateX(0); opacity: 0; }
    15% { opacity: 0.9; }
    85% { opacity: 0.9; }
    100% { transform: translateY(105dvh) translateX(22px); opacity: 0; }
}

@keyframes holidayGlyphRise {
    0% { transform: translateY(0) rotate(-8deg) scale(0.85); opacity: 0; }
    15% { opacity: 0.85; }
    50% { transform: translateY(-52dvh) rotate(10deg) scale(1.08); }
    85% { opacity: 0.85; }
    100% { transform: translateY(-108dvh) rotate(-8deg) scale(0.9); opacity: 0; }
}

@keyframes holidayBurstFly {
    0% { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) scale(0.35) rotate(0deg); }
    60% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--bx, 110px), var(--by, -110px)) scale(1.32) rotate(var(--br, 160deg)); }
}

@keyframes posterReveal {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardRise {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.88) translateY(14px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes badgeCelebratePop {
    0% { transform: scale(0.3) rotate(-45deg); opacity: 0; }
    70% { transform: scale(1.16) rotate(12deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes ledgerStampImpact {
    0% { transform: scale(1); }
    35% { transform: scale(0.975) translateY(3px); }
    70% { transform: scale(1.015) translateY(-2px); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes ledgerExitSwipe {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(12px) scale(0.97); }
}

@keyframes giftFloatLeft {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-6px) rotate(6deg); }
}

@keyframes giftFloatRight {
    0%, 100% { transform: translateY(0) rotate(6deg); }
    50% { transform: translateY(-7px) rotate(-6deg); }
}

@keyframes ornamentSwing {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-3px); }
}

@keyframes trailHop {
    0%, 100% { transform: translateX(calc(var(--trail-progress, 0) * 140px)) translateY(0); }
    50% { transform: translateX(calc(var(--trail-progress, 0) * 140px)) translateY(-3px); }
}

@keyframes titleShimmer {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(230, 190, 90, 0)); }
    50% { filter: drop-shadow(0 0 10px rgba(230, 190, 90, 0.45)); }
}

@keyframes perkBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.08); }
}

@keyframes pillGlow {
    from { box-shadow: 0 0 0 rgba(21, 128, 61, 0); }
    to { box-shadow: 0 0 14px rgba(21, 128, 61, 0.42); }
}

@keyframes crestFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes starSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmerSweep {
    0%, 70% { left: -120%; }
    100% { left: 140%; }
}

@keyframes btnHeartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.022); }
}

@keyframes shakeBox {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 480px) {
    .holiday-container {
        padding: max(20px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    }
    .perk-grid {
        gap: 6px;
    }
    .perk-chip {
        padding: 8px 4px;
    }
    .brand-strip {
        flex-direction: row;
        gap: 4px;
    }
    .holiday-card, .timeline-card, .modal-box {
        padding: 14px 12px;
        border-radius: 14px;
    }
    .timeline-scroll {
        max-height: 40dvh;
    }
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}