/* ============================================================
   Jungle · New Year's Eve 2027
   Night sky + silver glitter theme, layered over landingpage.css
   ============================================================ */

:root {
    --twilight: #060914;
    --cream: #eef1f6;
    --ink: #eef1f6;
    --ink-2: rgba(238, 241, 246, 0.82);
    --ink-3: rgba(238, 241, 246, 0.58);
    --line: rgba(205, 214, 240, 0.16);
    --line-strong: rgba(205, 214, 240, 0.32);
    --coral: #ff8a9a;
    --ember: #dfe4e8;
    --amber: #c9d1d8;
    --gold: #ffffff;
    --leaf-deep: #dfe4e8;

    --grad-card: linear-gradient(170deg, rgba(24, 32, 62, 0.86) 0%, rgba(10, 15, 34, 0.9) 100%);
    --grad-title: linear-gradient(180deg, #ffffff 0%, #dde3e8 40%, #9da6ae 70%, #eef1f4 100%);
    --grad-warm-soft: linear-gradient(135deg, rgba(205, 214, 240, 0.10), rgba(140, 155, 205, 0.06));

    --deco: "Limelight", "Russo One", Georgia, serif;

    /* glitter textures (replaced at runtime by newyear.js with generated flake canvases) */
    --tex-base: linear-gradient(#8c949b, #8c949b);
    --tex-spark: linear-gradient(transparent, transparent);
    --g-layers: var(--tex-spark) 0 0/110px 110px, var(--tex-spark) 37px 51px/150px 150px, var(--tex-base) 0 0/96px 96px;
    --sweep: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.8) 48%, rgba(255,255,255,.8) 50%, transparent 63%) -150% 0/250% 100% no-repeat;
    --metal: linear-gradient(180deg, #ffffff 0%, #dde3e8 26%, #9da6ae 50%, #c0c8ce 58%, #f1f4f6 76%, #aab2b9 100%);
    --metal-light: linear-gradient(180deg, #ffffff 0%, #e4e9ed 35%, #bfc7cd 55%, #eceff2 75%, #cbd2d8 100%);
}

html, body { background: #060914; }
::selection { background: #dfe4e8; color: #0e1316; }

/* ---------- glitter primitives ---------- */
@keyframes glitshine {
    0%   { background-position: 160% 0, 0 0, 37px 51px, 0 0, 0 0; }
    30%  { background-position: -60% 0, 33px 16px, 3px 112px, 0 0, 0 0; }
    100% { background-position: -60% 0, 110px 55px, -113px 201px, 0 0, 0 0; }
}
.glitter {
    background: var(--sweep), var(--g-layers), var(--metal);
    background-blend-mode: screen, screen, screen, multiply, normal;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: glitshine 6s linear infinite;
}
.chrome-fill {
    background: var(--sweep), var(--g-layers), var(--metal-light);
    background-blend-mode: screen, screen, screen, multiply, normal;
    animation: glitshine 6s linear infinite;
}

/* ============================================================
   HERO — silver thread curtain opens on a starry stage
   ============================================================ */
.ny-hero {
    height: auto;
    min-height: max(100svh, 640px);
    /* equal top/bottom padding (bottom clears the marquee) so the stage sits in the true middle */
    padding: 96px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #070b1c;
    isolation: isolate;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
#drape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }

.ny-inner {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: clamp(8px, 1.8vh, 18px);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.ny-inner > * { margin-inline: auto; }
.ny-pill {
    background: rgba(8, 12, 30, .6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(200, 208, 216, .7);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), 0 0 18px -4px rgba(200,210,220,.35);
    border-radius: 999px;
    font-family: var(--deco);
    letter-spacing: .2em;
    font-size: clamp(12px, 1.8vw, 17px);
    padding: .5em 1.4em;
    direction: ltr;
    opacity: 0; transform: translateY(-14px);
    animation: ny-drop .8s .5s ease-out forwards;
}
.ny-title { position: relative; margin: 0; font-weight: 400; line-height: .9; display: grid; justify-items: center; direction: ltr; }
.ny-title .hny {
    display: block; max-width: min(92vw, 1000px);
    font-family: var(--deco); font-size: clamp(38px, min(7vw, 9vh), 96px);
    letter-spacing: .03em; line-height: 1.05; text-wrap: balance;
    filter: drop-shadow(0 0 1px rgba(20,24,28,.9)) drop-shadow(0 0 12px rgba(190,205,220,.35)) drop-shadow(0 4px 18px rgba(0,0,0,.6));
    opacity: 0; transform: translateY(26px) scale(.96);
    animation: ny-rise 1.1s .9s cubic-bezier(.2,.8,.2,1) forwards, glitshine 6s 1.4s linear infinite;
}
.ny-title .w {
    display: block; margin-top: clamp(8px, 1.6vh, 16px);
    font-family: var(--deco); font-size: clamp(12px, 2.4vw, 22px);
    letter-spacing: .5em; padding-left: .5em;
    opacity: 0; animation: ny-drop .8s 1.6s ease-out forwards, glitshine 6s 2s linear infinite;
}
.ny-title .j {
    position: relative; display: block; width: fit-content; margin: -.1em auto 0;
    opacity: 0; transform: scale(.4);
    animation: ny-pop .9s 1.85s cubic-bezier(.3,1.5,.5,1) forwards;
    filter: drop-shadow(0 0 1px rgba(10,14,18,.9)) drop-shadow(0 0 8px rgba(200,212,224,.45)) drop-shadow(0 6px 20px rgba(0,0,0,.5));
}
.ny-title .j img {
    display: block; width: clamp(200px, min(52vw, 34vh), 420px); height: auto; max-width: none;
    visibility: hidden;
}
.ny-title .j .glit {
    position: absolute; inset: 0; pointer-events: none;
    -webkit-mask: url("jungle-logo-transparent.png") center/100% 100% no-repeat;
            mask: url("jungle-logo-transparent.png") center/100% 100% no-repeat;
    background: var(--sweep), var(--g-layers), var(--metal);
    background-blend-mode: screen, screen, screen, multiply, normal;
    animation: ny-neon 1.6s 2s steps(1, end) both, glitshine 6s 2s linear infinite;
}
.ny-title .yr {
    display: block; margin-top: -.04em;
    font-family: var(--deco); font-size: clamp(30px, min(7vw, 8vh), 80px);
    letter-spacing: .18em; padding-left: .18em;
    filter: drop-shadow(0 0 1px rgba(20,24,28,.9)) drop-shadow(0 0 12px rgba(190,205,220,.4));
    opacity: 0; transform: scale(1.5);
    animation: ny-stamp .7s 2.3s cubic-bezier(.2,.9,.3,1.2) forwards, glitshine 6s 2.8s linear infinite;
}

/* four-point glints */
.spk {
    position: absolute; width: var(--s, 22px); aspect-ratio: 1; pointer-events: none;
    background: radial-gradient(circle, #fff 0 12%, rgba(220,230,240,.9) 13% 22%, transparent 60%);
    clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
    opacity: 0; animation: ny-twinkle var(--d, 2.4s) var(--t, 3s) ease-in-out infinite;
}
.spk.a { top: -6%; left: 4%; --s: 26px; --t: 2.2s; }
.spk.b { top: 10%; right: 2%; --s: 18px; --t: 2.9s; --d: 2s; }
.spk.c { top: 44%; left: -3%; --s: 16px; --t: 3.4s; --d: 2.8s; }
.spk.d { bottom: 4%; right: 8%; --s: 30px; --t: 2.6s; --d: 3s; }
.spk.e { bottom: 22%; left: 14%; --s: 14px; --t: 3.9s; --d: 2.2s; }

/* countdown to midnight */
.countdown {
    direction: rtl; display: flex; gap: clamp(6px, 1.6vw, 14px); margin-top: 4px;
    opacity: 0; transform: translateY(14px); animation: ny-drop .8s 2.7s ease-out forwards;
}
.cd {
    display: grid; justify-items: center; gap: 3px;
    min-width: clamp(56px, 12vw, 80px); padding: .5em .5em .45em; border-radius: 14px;
    background: rgba(6, 10, 24, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 0 0 1px rgba(200,208,216,.5), 0 0 18px -6px rgba(200,210,220,.4);
}
.cd b { display: inline-block; min-width: 2ch; text-align: center; font-family: var(--deco); font-weight: 400; font-size: clamp(22px, min(5vw, 5vh), 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 12px; font-weight: 700; color: #b9c1c8; letter-spacing: .04em; }
.cd.wide { padding-inline: 1.2em; }

/* meta row + CTA */
.ny-hero .hero-meta { margin: 6px 0 0; opacity: 0; animation: ny-drop .8s 3s ease-out forwards; }
.ny-hero .hero-meta { background: rgba(6, 10, 24, .6); border-color: rgba(205, 214, 240, .3); }
.ny-hero .hero-marquee { background: rgba(6, 10, 24, .5); border-color: rgba(205, 214, 240, .16); }
.ny-hero .meta-value { color: #eef1f6; font-weight: 700; }
@media (max-width: 600px) {
    .ny-hero { padding: 40px 16px; }
    .ny-inner { gap: 10px; }
    .ny-hero .hero-meta { gap: 10px; padding: 9px 16px; }
    .ny-hero .meta-value { font-size: .85rem; }
    .ny-hero .hero-cta { padding: 13px 28px; }
}
.ny-hero .meta-divider { background: rgba(220, 228, 235, .5); }
.ny-hero .hero-cta {
    opacity: 0; animation: ny-drop .8s 3.3s ease-out forwards, glitshine 6s 3.3s linear infinite;
    background: var(--sweep), var(--g-layers), var(--metal-light);
    background-blend-mode: screen, screen, screen, multiply, normal;
    color: #0e1316; border: 0;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.85), 0 0 24px -6px rgba(210,220,230,.5);
}
.ny-hero .hero-cta:hover { color: #0e1316; }
.ny-hero .hero-marquee { z-index: 3; opacity: 0; animation: ny-drop .8s 3.5s ease-out forwards; }
.ny-hero .marquee-track span { color: #dfe4e8; }
.ny-hero .marquee-dot { color: #9da6ae !important; }

/* everything on stage waits for the curtain */
.ny-hero:not(.opened) .ny-inner *,
.ny-hero:not(.opened) .ny-inner,
.ny-hero:not(.opened) .hero-marquee { animation-play-state: paused; }

@keyframes ny-rise  { to { opacity: 1; transform: none; } }
@keyframes ny-stamp { to { opacity: 1; transform: none; } }
@keyframes ny-drop  { to { opacity: 1; transform: none; } }
@keyframes ny-pop   { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.07); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ny-neon  { 0% { opacity: .25; } 8% { opacity: 1; } 12% { opacity: .3; } 20% { opacity: 1; } 26% { opacity: .45; } 30%, 100% { opacity: 1; } }
@keyframes ny-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: .9; transform: scale(.85) rotate(60deg); } }

/* starry sky behind the page (below the hero) */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; opacity: 0; }
.grain { opacity: .05; }
.scroll-progress > span { background: linear-gradient(90deg, #9da6ae, #ffffff, #9da6ae); }

/* ============================================================
   CARDS — dark navy glass, silver accents
   ============================================================ */
.card,
.ticket-card,
.pay-modal-card {
    border-color: rgba(205, 214, 240, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card::before { background: linear-gradient(90deg, transparent, #dfe4e8, transparent); }

/* mirror ball above the invitation */
.mirrorball {
    position: relative; width: 74px; height: 74px; border-radius: 50%; margin: 30px auto 26px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 5%, rgba(255,255,255,0) 20%),
        repeating-linear-gradient(0deg, rgba(10,14,16,.45) 0 1px, transparent 1px 8px),
        repeating-linear-gradient(90deg, rgba(10,14,16,.45) 0 1px, transparent 1px 8px),
        conic-gradient(from 20deg, #5c656d, #e9edf0, #8a939c, #ffffff, #6b747c, #d3d9de, #4f585f, #f1f4f6, #5c656d);
    box-shadow: 0 0 40px rgba(230,236,240,.35), inset -12px -14px 22px rgba(0,0,0,.6);
    animation: ballspin 5s linear infinite;
}
.mirrorball::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 30px; translate: -50% 0; background: linear-gradient(#5c656d, #dfe4e8); }
.mirrorball::after {
    content: ""; position: absolute; top: 8px; right: 6px; width: 22px; aspect-ratio: 1; background: #fff;
    clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
    animation: glint 2.2s ease-in-out infinite;
}
@keyframes ballspin { to { background-position: 0 0, 0 0, 64px 0, 0 0; } }
@keyframes glint { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.prose-subhead { font-size: clamp(1.5rem, 4.6vw, 2rem); text-align: center; margin-bottom: 22px; }
.inline-link { color: #ffffff; border-bottom-color: rgba(255, 255, 255, .4); }
.inline-link:hover { color: #dfe4e8; border-bottom-color: #dfe4e8; }
.lineup li {
    background: linear-gradient(160deg, rgba(170,185,235,.10), rgba(120,135,190,.03));
    border-color: rgba(205, 214, 240, .2);
}
.lineup li:hover { background: linear-gradient(160deg, rgba(205,214,240,.16), rgba(140,155,205,.05)); border-color: rgba(225, 232, 250, .45); }
.prose-divider { background: linear-gradient(90deg, transparent, #dfe4e8, transparent); }
.rules-payment-note { background: rgba(220, 228, 235, .08); border-color: rgba(220, 228, 235, .34); }
.signoff .signoff-text, .signoff .signature-name { color: #eef1f6; }

/* ---------- silver glitter buttons ---------- */
.ticket-button:not(.ticket-button--disabled):not([aria-disabled="true"]),
.register-submit,
.pay-modal-btn,
.share-button,
.prose-share-button,
.stickycta {
    background: var(--sweep), var(--g-layers), var(--metal-light);
    background-blend-mode: screen, screen, screen, multiply, normal;
    animation: glitshine 6s linear infinite;
    color: #0e1316;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.85), 0 0 24px -8px rgba(210,220,230,.45);
}
.ticket-button:hover, .register-submit:hover, .pay-modal-btn:hover, .share-button:hover, .prose-share-button:hover {
    box-shadow: 0 18px 36px -10px rgba(0,0,0,.85), 0 0 30px -6px rgba(230,236,240,.6);
}

/* ---------- tickets ---------- */
.ticket-cards { gap: 28px; }
.tickets-title {
    text-align: center; margin: 0 auto 34px;
    font-family: 'Heebo', var(--font-body); font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
}
.ticket-card:hover { border-color: rgba(225, 232, 250, .5); }
.ticket-card::after { background: radial-gradient(circle at var(--sheen-x) var(--sheen-y), rgba(230,236,250,.10) 0%, transparent 50%); }
.ticket-card.is-featured { border-color: #dfe4e8; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 50px -10px rgba(230,236,240,.35); }
.ticket-card.is-featured::before { background: var(--metal); }
.price {
    background: var(--sweep), var(--g-layers), var(--metal);
    background-blend-mode: screen, screen, screen, multiply, normal;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: glitshine 6s linear infinite;
}
.ticket-sub { margin: -2px 0 10px; font-size: .9rem; color: var(--ink-3); }
.ticket-meta { margin-bottom: 18px; color: var(--ink-3); }
.sold-out-badge { background: rgba(255, 138, 154, .16); border-color: #ff8a9a; color: #ffe3e7; box-shadow: 0 0 24px rgba(255, 138, 154, .3); }
.ticket-card.is-sold-out { padding-top: 88px; opacity: .72; }
.ticket-card.is-locked { opacity: .6; filter: grayscale(.4); }
.ticket-card.is-locked .price { animation: none; }
.soon-badge {
    position: absolute; top: 18px; left: 18px; z-index: 3;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700;
    color: #dfe4e8; background: rgba(205, 214, 240, .08); border: 1px solid rgba(205, 214, 240, .3);
}
.ticket-hot-badge {
    position: absolute; top: 16px; left: 16px; z-index: 3; transform: rotate(-6deg);
    padding: 5px 14px; border-radius: 999px; font-size: .85rem; font-weight: 800; color: #0e1316;
}

/* form controls on dark */
.reg-guest-block { background: rgba(160, 175, 230, .05); border-color: rgba(205, 214, 240, .18); }
.reg-guest-label { color: #c9d1d8; }
.qty-btn, .gender-btn, .register-input { background: #0a0f1f; border-color: #2a3452; color: var(--ink); }
.qty-btn:hover, .gender-btn:hover { border-color: #dfe4e8; box-shadow: 0 6px 18px rgba(230, 236, 240, .15); }
.qty-btn.is-active, .gender-btn.is-active {
    background: var(--metal-light); color: #0e1316; border-color: transparent;
    box-shadow: 0 8px 22px rgba(230, 236, 240, .3);
}
.register-input:focus { border-color: #dfe4e8; box-shadow: 0 0 0 3px rgba(230, 236, 240, .16); }
.register-field label { color: rgba(238, 241, 246, .5); }
.register-input:focus + label, .register-input:not(:placeholder-shown) + label { color: #dfe4e8; background: #0a0f1f; }
.register-error { color: #ff9aa8; }
.register-success-check, .pay-modal-check { background: var(--metal-light); color: #0e1316; box-shadow: 0 8px 24px rgba(230, 236, 240, .35); }

/* payment modal */
.pay-modal-backdrop { background: rgba(3, 5, 12, .78); }
.pay-modal-card { background: linear-gradient(180deg, #151d36, #0b1022); }
.pay-modal-close { background: #1c2540; color: var(--ink); }
.pay-modal-close:hover { background: #263052; }

/* fomoist / whatsapp / share cards */
.fomoist-card, .whatsapp-card, .share-card {
    background: linear-gradient(160deg, rgba(26, 35, 66, .9), rgba(12, 18, 38, .92));
}
.whatsapp-card { border-color: rgba(205, 214, 240, .24); }
.whatsapp-card::before, .share-card::before { background: linear-gradient(90deg, transparent, #dfe4e8, transparent); }
.wa-glow, .share-glow { background: radial-gradient(circle, rgba(200, 215, 240, .22) 0%, transparent 70%); }
.wa-title, .share-title { background: var(--grad-title); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.share-card { border-color: rgba(205, 214, 240, .24); }
.share-card:hover, .whatsapp-card:hover { border-color: rgba(225, 232, 250, .5); }

/* side nav */
.side-dot.is-active::before { background: #ffffff; box-shadow: 0 0 12px rgba(255, 255, 255, .7); }

/* sticky CTA */
.stickycta {
    position: fixed; z-index: 50; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    translate: -50% 160%; width: min(calc(100% - 32px), 420px);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 18px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none;
    transition: translate .45s cubic-bezier(.2,.8,.2,1);
}
.stickycta.show { translate: -50% 0; }

/* ============================================================
   FOOTER — staff with Instagram photos
   ============================================================ */
.event-footer { background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 20, .85) 40%, #04060d 100%); }
.footer-staff-title { font-family: 'Heebo', var(--font-body); font-weight: 800; font-size: 1.15rem; margin-bottom: 22px; color: #dfe4e8; }
.organizer-grid { grid-template-columns: repeat(4, 1fr); max-width: 760px; }
.organizer {
    flex-direction: column; gap: 10px; padding: 18px 10px;
    background: rgba(160, 175, 230, .05); border-color: rgba(205, 214, 240, .16);
}
.organizer:hover { background: rgba(205, 214, 240, .10); border-color: #dfe4e8; color: #fff; }
.organizer-avatar {
    position: relative; width: 76px; height: 76px; border-radius: 50%; padding: 3px;
    background: var(--metal);
    box-shadow: 0 0 24px -4px rgba(230, 236, 240, .45);
    display: grid; place-items: center; overflow: hidden;
}
.organizer-avatar img, .organizer-avatar .initial {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
    background: #0f1528;
}
.organizer-avatar .initial {
    display: grid; place-items: center; font-family: var(--deco); font-size: 1.8rem; color: #dfe4e8;
}
.organizer-name-row { display: inline-flex; gap: 2px; font-size: .95rem; }
.organizer-handle { color: #9da6ae; }
.footer-divider { background: #dfe4e8; }
@media (max-width: 640px) {
    .organizer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .glitter, .chrome-fill, .price, .ticket-button, .register-submit, .pay-modal-btn, .share-button,
    .prose-share-button, .stickycta, .ny-title .j .glit, .mirrorball, .mirrorball::after, .spk { animation: none !important; }
    .ny-inner, .ny-inner *, .ny-hero .hero-marquee { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; opacity: 1; transform: none; }
}

/* Hero: full-bleed, flush to the very top of the page (incl. under the iOS status bar) */
.ny-hero {
    width: 100vw;
    max-width: none;
    margin: 0;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
}
@media (max-width: 600px) {
    .ny-hero { padding-top: calc(40px + env(safe-area-inset-top, 0px)); }
}
main > .ny-hero:first-child { margin-top: 0; }
