/* ============================================================
   EVENTEZ — Luxe Design System v1
   Electric Violet · Deep Ink · Syne + DM Sans
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
    /* Backgrounds */
    --ink-black:  #020208;
    --ink-dark:   #04040f;
    --ink-mid:    #07071a;
    --ink-card:   #0c0c22;
    --ink-raise:  #10102c;
    --ink-hover:  rgba(255, 255, 255, 0.04);

    /* Accent — Violet */
    --violet:     #7c3aed;
    --violet-2:   #6d28d9;
    --violet-3:   #5b21b6;
    --violet-lt:  #a78bfa;
    --violet-dim: rgba(124, 58, 237, 0.12);

    /* Accent — Fuchsia */
    --fuchsia:    #c026d3;
    --fuchsia-lt: #e879f9;

    /* Accent — Amber (Chakravyuh) */
    --amber:      #f59e0b;
    --amber-lt:   #fcd34d;
    --amber-dim:  rgba(245, 158, 11, 0.12);

    /* Text */
    --text-1:     #f0eeff;
    --text-2:     #9d9ab8;
    --text-3:     #56547a;

    /* Borders */
    --border-1:   rgba(124, 58, 237, 0.18);
    --border-2:   rgba(255, 255, 255, 0.06);
    --border-3:   rgba(255, 255, 255, 0.10);
    --border-amber: rgba(245, 158, 11, 0.2);

    /* Typography */
    --font-hero:    'Syne', sans-serif;          /* brand wordmark and the big hero titles */
    --font-display: 'Space Grotesk', sans-serif; /* headings, numbers, buttons, labels */
    --font-body:    'DM Sans', sans-serif;

    /* Layout */
    --container:        1240px;
    --container-narrow: 820px;

    /* Motion */
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:   cubic-bezier(0.4, 0, 1, 1);
    --spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background-color: var(--ink-dark);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button, input, textarea {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul, ol { list-style: none; }

/* Noise grain texture */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* --- Layout ----------------------------------------------- */
.container {
    width: min(var(--container), calc(100% - 3rem));
    margin-inline: auto;
}

.container--narrow {
    width: min(var(--container-narrow), calc(100% - 3rem));
    margin-inline: auto;
}

/* --- Gradient Text ---------------------------------------- */
.gradient-text {
    background: linear-gradient(125deg, var(--violet-lt) 0%, var(--fuchsia-lt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text--amber {
    background: linear-gradient(125deg, var(--amber) 0%, var(--amber-lt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Typography Utilities --------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violet-lt);
}

.eyebrow--pill {
    background: var(--violet-dim);
    border: 1px solid var(--border-1);
    padding: 0.42rem 1rem;
    border-radius: 100px;
}

.eyebrow--amber {
    color: var(--amber);
    background: var(--amber-dim);
    border-color: var(--border-amber);
}

.section-label {
    display: block;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violet-lt);
    margin-bottom: 1rem;
}

.section-label--amber {
    color: var(--amber);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1.1;
    color: var(--text-1);
    font-weight: 700;
}

/* --- Tags ------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-2);
    background: var(--ink-raise);
    border: 1px solid var(--border-2);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* --- Buttons ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: 7px;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
                background 0.25s, border-color 0.25s, color 0.25s;
    white-space: nowrap;
    border: 1px solid transparent;
    line-height: 1;
    position: relative;
}

/* Primary — gradient violet → fuchsia */
.btn--primary {
    background: linear-gradient(135deg, var(--violet) 0%, var(--fuchsia) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.55);
}

/* Amber — for Chakravyuh */
.btn--amber {
    background: linear-gradient(135deg, #d97706 0%, var(--amber) 100%);
    color: #0a0500;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn--amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.45);
}

/* Outline */
.btn--outline {
    border-color: var(--border-3);
    color: var(--text-2);
    background: transparent;
}

.btn--outline:hover {
    border-color: rgba(167, 139, 250, 0.45);
    color: var(--violet-lt);
    background: rgba(124, 58, 237, 0.06);
    transform: translateY(-1px);
}

/* Ghost */
.btn--ghost {
    color: var(--violet-lt);
    border-color: var(--border-1);
    background: var(--violet-dim);
}

.btn--ghost:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-1px);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* --- Section Layout --------------------------------------- */
.section {
    padding-block: 6rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

/* --- HEADER ---------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
    padding-block: 1.35rem;
    transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(4, 4, 15, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: var(--border-2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ink-card);
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-family: var(--font-hero);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

.brand-name em {
    font-style: normal;
    background: linear-gradient(125deg, var(--violet-lt), var(--fuchsia-lt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.main-nav a:not(.btn) {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-2);
    transition: color 0.2s;
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--violet-lt), var(--fuchsia-lt));
    transition: width 0.3s var(--ease-out);
}

.main-nav a:not(.btn):hover,
.main-nav a.active:not(.btn) {
    color: var(--text-1);
}

.main-nav a:not(.btn):hover::after,
.main-nav a.active:not(.btn)::after {
    width: 100%;
}

.nav-cta {
    margin-left: 0.5rem;
}

.nav-toggle {
    display: none;
    color: var(--text-1);
    font-size: 1.25rem;
    padding: 0.25rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- REVEAL ANIMATIONS ------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

/* --- TICKER ----------------------------------------------- */
.ticker {
    width: 100%;
    overflow: hidden;
    background: var(--ink-card);
    border-block: 1px solid var(--border-2);
    padding-block: 1rem;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-dot {
    width: 4px;
    height: 4px;
    background: var(--violet);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.7;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ==========================================================
   HOME PAGE
   ========================================================== */

/* --- HERO ------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 65% 35%, rgba(124, 58, 237, 0.15) 0%, transparent 65%),
        radial-gradient(ellipse 45% 35% at 88% 72%, rgba(192, 38, 211, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 80%, rgba(109, 40, 217, 0.06) 0%, transparent 60%),
        linear-gradient(rgba(4, 4, 15, 0.72), rgba(4, 4, 15, 0.88)),
        url('background.webp') center / cover no-repeat;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 20%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.hero-eyebrow {
    margin-bottom: 2.25rem;
}

.hero-title {
    font-family: var(--font-hero);
    font-size: clamp(3.5rem, 9.5vw, 8.5rem);
    font-weight: 800;
    line-height: 0.93;
    letter-spacing: -0.035em;
    color: var(--text-1);
    margin-bottom: 2rem;
}

.hero-body {
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: 2.5rem;
}

.hero-footer {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3rem;
    padding-block: 2rem;
    border-top: 1px solid var(--border-2);
}

.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.hero-stat span {
    font-size: 0.77rem;
    color: var(--text-3);
}

/* --- FEATURE GRID ----------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-2);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    overflow: hidden;
}

.feature-item {
    position: relative;
    padding: 2.75rem;
    background: var(--ink-mid);
    transition: background 0.3s var(--ease-out);
    cursor: default;
    overflow: hidden;
}

.feature-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.07), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.feature-item:hover { background: var(--ink-card); }
.feature-item:hover::before { opacity: 1; }

.feature-num {
    display: block;
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(125deg, var(--violet-lt), var(--fuchsia-lt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-item p {
    font-size: 0.87rem;
    line-height: 1.8;
    color: var(--text-2);
}

/* --- EVENT PREVIEW CARDS ---------------------------------- */
.events-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.event-preview-card {
    position: relative;
    padding: 2.5rem;
    background: var(--ink-card);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.3s, box-shadow 0.35s;
    overflow: hidden;
}

.event-preview-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--fuchsia));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.event-preview-card:hover {
    border-color: var(--border-1);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.12);
}

.event-preview-card:hover::before {
    transform: scaleX(1);
}

.event-kicker {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--violet-lt);
}

.event-preview-card h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.event-preview-card p {
    font-size: 0.87rem;
    line-height: 1.8;
    color: var(--text-2);
    flex: 1;
}

.event-card-foot {
    margin-top: 0.5rem;
}

/* --- EDITORIAL SECTION ------------------------------------ */
.editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 4rem;
    background: var(--ink-card);
    border: 1px solid var(--border-2);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.editorial::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 70% at 0% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.editorial-copy {
    position: relative;
    z-index: 1;
}

.editorial-copy h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.editorial-copy p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 1rem;
}

.editorial-visual {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

/* --- CONTACT STRIP --------------------------------------- */
.contact-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 4rem;
    background: var(--ink-card);
    border: 1px solid var(--border-1);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.contact-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 75% at 0% 55%, rgba(124, 58, 237, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.contact-sub {
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 420px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
    z-index: 1;
}

.contact-item label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violet-lt);
    margin-bottom: 0.35rem;
}

.contact-item a,
.contact-item span {
    font-size: 0.92rem;
    color: var(--text-2);
    transition: color 0.2s;
}

.contact-item a:hover { color: var(--text-1); }

/* --- FOOTER ----------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border-2);
    padding-top: 4rem;
    padding-bottom: 2rem;
    background: var(--ink-black);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-2);
    margin-bottom: 2rem;
}

.footer-brand-note {
    font-size: 0.82rem;
    color: var(--text-3);
    line-height: 1.8;
    margin-top: 0.85rem;
    max-width: 300px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col-title {
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violet-lt);
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.83rem;
    color: var(--text-3);
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-2); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

/* ==========================================================
   EVENTS PAGE
   ========================================================== */

.page-hero {
    padding-top: 9rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-label {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-family: var(--font-hero);
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.page-hero-sub {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-2);
    position: relative;
    z-index: 1;
}

/* --- EVENTS LIST ------------------------------------------ */
.events-list {
    display: flex;
    flex-direction: column;
}

.event-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 2.5rem;
    align-items: start;
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--border-2);
    transition: background 0.3s;
    border-radius: 0;
}

.event-row:first-child { border-top: 1px solid var(--border-2); }

.event-row:hover { background: rgba(124, 58, 237, 0.025); }

.event-row-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(125deg, var(--violet-lt), var(--fuchsia-lt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.35;
    padding-top: 0.3rem;
}

.event-row-info h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.025em;
    margin-bottom: 0.6rem;
    line-height: 1.1;
}

.event-row-info p {
    font-size: 0.87rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 1.1rem;
    max-width: 520px;
}

.event-row-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    padding-top: 0.4rem;
    flex-shrink: 0;
}

/* ==========================================================
   EVENT DETAIL PAGES
   ========================================================== */

.event-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.event-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Chakravyuh — amber/warm */
.chakravyuh-page .event-hero-bg {
    background:
        radial-gradient(ellipse 65% 55% at 50% 40%, rgba(245, 158, 11, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 82% 72%, rgba(249, 115, 22, 0.14) 0%, transparent 60%),
        var(--ink-dark);
}

/* Eclipse NYE — violet/fuchsia */
.eclipse-page .event-hero-bg {
    background:
        radial-gradient(ellipse 65% 55% at 50% 40%, rgba(124, 58, 237, 0.2) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 82% 72%, rgba(192, 38, 211, 0.12) 0%, transparent 60%),
        var(--ink-dark);
}

.event-hero-content {
    position: relative;
    z-index: 2;
}

.event-hero-title {
    font-family: var(--font-hero);
    font-size: clamp(2.25rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 0.93;
    letter-spacing: -0.035em;
    color: var(--text-1);
    margin: 1.75rem 0 1.5rem;
}

.event-hero-sub {
    max-width: 580px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 2rem;
}

/* --- ACTIVITIES GRID ------------------------------------- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.activity-card {
    padding: 2.75rem;
    background: var(--ink-card);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.activity-card:hover {
    border-color: var(--border-amber);
    box-shadow: 0 8px 36px rgba(245, 158, 11, 0.08);
}

.activity-card:hover::before { opacity: 1; }

.activity-num {
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(125deg, var(--amber), var(--amber-lt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.55;
    margin-bottom: 1.25rem;
}

.activity-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.activity-card p {
    font-size: 0.87rem;
    color: var(--text-2);
    line-height: 1.8;
}

/* --- DETAIL COLUMNS -------------------------------------- */
.detail-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.detail-box {
    padding: 2.75rem;
    background: var(--ink-card);
    border: 1px solid var(--border-2);
    border-radius: 14px;
}

.detail-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.025em;
    margin-block: 0.5rem 0.4rem;
    line-height: 1.1;
}

.detail-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-3);
    margin-bottom: 2.25rem;
    line-height: 1.5;
}

/* --- TIMELINE -------------------------------------------- */
.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1.5rem;
    padding-block: 1.35rem;
    border-bottom: 1px solid var(--border-2);
}

.timeline-row:first-child { border-top: 1px solid var(--border-2); }

.timeline-time {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--amber);
    padding-top: 0.2rem;
    white-space: nowrap;
}

.timeline-body h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.timeline-body p {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* --- LIST CLEAN ------------------------------------------ */
.list-clean {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.list-clean li {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.7;
    padding-left: 1.35rem;
    position: relative;
}

.list-clean li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--amber);
    flex-shrink: 0;
}

/* --- TEASER GRID (Eclipse) ------------------------------- */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.teaser-card {
    padding: 2.75rem;
    background: var(--ink-card);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.teaser-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.teaser-card:hover {
    border-color: var(--border-1);
    box-shadow: 0 8px 36px rgba(124, 58, 237, 0.12);
}

.teaser-card:hover::before { opacity: 1; }

.teaser-card-label {
    display: block;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violet-lt);
    margin-bottom: 0.85rem;
}

.teaser-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.teaser-card p {
    font-size: 0.87rem;
    color: var(--text-2);
    line-height: 1.8;
}

/* ==========================================================
   SURVEY PAGE
   ========================================================== */

.survey-shell {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.survey-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.survey-panel {
    padding: 3.25rem;
    background: var(--ink-card);
    border: 1px solid var(--border-2);
    border-radius: 14px;
}

.survey-panel--accent {
    border-color: var(--border-1);
    background: var(--ink-raise);
    position: relative;
    overflow: hidden;
}

.survey-panel--accent::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.survey-panel h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 1.1rem 0;
    line-height: 1.15;
}

.survey-panel > p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.survey-note {
    font-size: 0.82rem;
    color: var(--text-3);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.survey-benefits {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.survey-benefits li {
    font-size: 0.83rem;
    color: var(--text-3);
    padding-left: 1.35rem;
    position: relative;
    line-height: 1.6;
}

.survey-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--violet-lt);
}

/* ==========================================================
   POLICY PAGE
   ========================================================== */

.policy-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}

.policy-sidebar {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 2rem;
    background: var(--ink-card);
    border: 1px solid var(--border-2);
    border-radius: 12px;
}

.policy-sidebar-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violet-lt);
    margin-bottom: 0.85rem;
    display: block;
}

.policy-sidebar a {
    font-size: 0.82rem;
    color: var(--text-3);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.policy-sidebar a:hover {
    background: var(--violet-dim);
    color: var(--text-1);
}

.policy-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.policy-block {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-2);
}

.policy-block:first-child {
    padding-top: 0;
}

.policy-block h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
    margin-block: 0.75rem 1.25rem;
    line-height: 1.15;
}

.policy-block p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.policy-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-block: 1.25rem;
    padding-left: 0;
}

.policy-block ul li {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.75;
    padding-left: 1.5rem;
    position: relative;
}

.policy-block ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--violet-lt);
    opacity: 0.7;
}

.policy-block ul li a {
    color: var(--violet-lt);
    transition: color 0.2s;
}

.policy-block ul li a:hover {
    color: var(--fuchsia-lt);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
    .policy-shell {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .policy-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .policy-sidebar-title {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .editorial {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem;
    }

    .policy-shell {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .policy-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .policy-sidebar-title {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .editorial-visual {
        aspect-ratio: 16 / 7;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .events-preview-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section { padding-block: 4rem; }

    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(4, 4, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 200;
    }

    .main-nav.open { display: flex; }

    .main-nav a:not(.btn) {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .hero-footer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .events-preview-grid {
        grid-template-columns: 1fr;
    }

    .contact-strip {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.25rem;
    }

    .survey-inner {
        grid-template-columns: 1fr;
    }

    .activities-grid,
    .teaser-grid {
        grid-template-columns: 1fr;
    }

    .detail-cols {
        grid-template-columns: 1fr;
    }

    .event-row {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }

    .event-row-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.25rem, 10.5vw, 4rem);
    }

    .page-hero-title {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 2rem);
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.68rem;
    }

    /* Sized so a 10-letter name ("Chakravyuh", "Unscripted") fits on one line */
    .event-hero-title {
        font-size: 9.5vw;
    }

    .editorial {
        padding: 1.75rem;
    }

    .feature-item,
    .activity-card,
    .teaser-card,
    .event-preview-card,
    .detail-box,
    .survey-panel {
        padding: 1.75rem;
    }

    .contact-strip {
        padding: 1.75rem;
    }
}

/* ==========================================================
   ENHANCEMENTS v2
   Cursor · Progress · Blobs · Card Glow · Split Text
   Badges · Countdown · Back-to-Top · 404
   ========================================================== */

/* --- Scroll Progress Bar ---------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--violet), var(--fuchsia));
    z-index: 1000;
    transition: width 0.06s linear;
    pointer-events: none;
}

/* --- Animated Hero Blobs ---------------------------------- */
@keyframes blob-drift {
    0%, 100% { transform: translate(0,    0)    scale(1);    }
    25%       { transform: translate(35px, -25px) scale(1.07); }
    50%       { transform: translate(-18px, 14px) scale(0.94); }
    75%       { transform: translate(12px,  22px) scale(1.04); }
}

.hero::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.13) 0%, transparent 70%);
    top: -180px; right: -180px;
    animation: blob-drift 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.hero::after {
    content: '';
    position: absolute;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 38, 211, 0.09) 0%, transparent 70%);
    bottom: 60px; left: 4%;
    animation: blob-drift 16s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

/* --- Card Mouse-Follow Glow ------------------------------- */
.event-preview-card::after,
.feature-item::after,
.teaser-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(124, 58, 237, 0.11) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.event-preview-card:hover::after,
.feature-item:hover::after,
.teaser-card:hover::after { opacity: 1; }

/* Amber glow for activity cards */
.activity-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(245, 158, 11, 0.1) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.activity-card:hover::after { opacity: 1; }

/* --- Split Text — Hero Title ------------------------------ */
@keyframes word-rise {
    from {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: blur(0px);
    }
}

.hero-title .word {
    display: inline-block;
    animation: word-rise 0.75s var(--ease-out)
               calc(var(--word-i, 0) * 0.09s + 0.15s) both;
}

/* --- Status Badges ---------------------------------------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    vertical-align: middle;
}

.status-badge::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge--live {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.22);
}

.status-badge--live::before {
    background: #4ade80;
    animation: pulse-live 2.2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0.55); transform: scale(1);    }
    50%       { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);    transform: scale(1.15); }
}

.status-badge--soon {
    color: var(--violet-lt);
    background: var(--violet-dim);
    border: 1px solid var(--border-1);
}

.status-badge--soon::before {
    background: var(--violet-lt);
    opacity: 0.7;
}

/* Event row title row */
.event-row-title-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.event-row-title-row h3 { margin-bottom: 0; }

/* --- NYE Countdown ---------------------------------------- */
.nye-countdown-wrap {
    margin-block: 3.5rem;
}

.nye-countdown {
    display: inline-grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-2);
    border: 1px solid var(--border-1);
    border-radius: 14px;
    overflow: hidden;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.25rem 3rem;
    background: var(--ink-card);
}

.countdown-num {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    background: linear-gradient(125deg, var(--violet-lt), var(--fuchsia-lt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 2ch;
    display: block;
    text-align: center;
}

.countdown-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* --- Back to Top ------------------------------------------ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--ink-card);
    border: 1px solid var(--border-1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s var(--ease-out),
                transform 0.35s var(--ease-out),
                background 0.2s,
                border-color 0.2s;
    z-index: 90;
    color: var(--violet-lt);
    font-size: 1.05rem;
    line-height: 1;
    pointer-events: none;
    font-family: var(--font-body);
}

.back-to-top.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--violet-dim);
    border-color: rgba(167, 139, 250, 0.4);
}

/* --- 404 Page --------------------------------------------- */
.error-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

.error-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 60% at 50% 40%, rgba(124, 58, 237, 0.1) 0%, transparent 65%),
        radial-gradient(ellipse 40% 30% at 82% 70%, rgba(192, 38, 211, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.error-num {
    font-family: var(--font-hero);
    font-size: clamp(7rem, 22vw, 16rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.05em;
    background: linear-gradient(125deg, rgba(124, 58, 237, 0.2), rgba(192, 38, 211, 0.12));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    user-select: none;
    pointer-events: none;
}

.error-title {
    font-family: var(--font-hero);
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--text-1);
    margin-bottom: 1.25rem;
}

.error-body {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.85;
    max-width: 460px;
    margin-bottom: 2.5rem;
}

/* --- Enhancement Responsive ------------------------------ */
@media (max-width: 768px) {
    .hero::before { width: 380px; height: 380px; top: -100px; right: -100px; }
    .hero::after  { width: 280px; height: 280px; }

    .nye-countdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown-unit { padding: 1.5rem 2rem; }

    .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
    .countdown-unit { padding: 1.25rem 1.5rem; }
    .nye-countdown  { width: 100%; }
}

/* ==========================================================
   UNSCRIPTED PAGE
   ========================================================== */

/* Unscripted — amber/gold. The posters carry their own text, so they sit in
   the poster grid rather than behind the hero heading. */
.unscripted-page .event-hero-bg {
    background:
        radial-gradient(ellipse 65% 55% at 50% 40%, rgba(245, 158, 11, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 82% 72%, rgba(249, 115, 22, 0.12) 0%, transparent 60%),
        var(--ink-dark);
}

.unscripted-page .feature-num {
    background: linear-gradient(125deg, var(--amber), var(--amber-lt));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Four-up variant of the feature grid */
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .feature-grid--4 { grid-template-columns: 1fr; }
}

/* Poster in the editorial visual slot: the full poster sits uncropped on a
   blurred, darkened copy of itself, so text-heavy artwork never gets cut. */
.editorial-visual--poster {
    aspect-ratio: 4 / 5;
    display: block;
    background: var(--ink-raise);
    border: 1px solid var(--border-2);
    transition: border-color 0.3s;
}

.editorial-visual--poster:hover { border-color: var(--border-amber); }

.editorial-visual--poster .poster-bg,
.editorial-visual--poster .poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.editorial-visual--poster .poster-bg {
    object-fit: cover;
    filter: blur(28px) brightness(0.45) saturate(1.2);
    transform: scale(1.25);
}

.editorial-visual--poster .poster-img {
    object-fit: contain;
    padding: 1.25rem;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
    transition: transform 0.6s var(--ease-out);
}

.editorial-visual--poster:hover .poster-img { transform: scale(1.03); }

@media (max-width: 1024px) {
    .editorial-visual.editorial-visual--poster { aspect-ratio: 4 / 5; }
}


/* --- FAQ -------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-list details {
    background: var(--ink-card);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.faq-list details[open] {
    border-color: var(--border-amber);
}

.faq-list summary {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-1);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: "+";
    color: var(--amber);
    flex-shrink: 0;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-2);
}

.faq-list details p a { color: var(--amber-lt); }

/* Activity cards that end in a button */
.activity-card .btn-row { margin-top: 1.5rem; }

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

:focus-visible {
    outline: 2px solid var(--violet-lt);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   CHAKRAVYUH — labyrinth artwork
   ========================================================== */

/* Faint labyrinth behind the hero title */
.chakravyuh-page .event-hero-bg::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8%;
    width: min(62vw, 820px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    background: url('chakravyuh-maze.svg') center / contain no-repeat;
    opacity: 0.14;
    pointer-events: none;
}

.editorial-visual--maze {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.16) 0%, transparent 65%),
        var(--ink-raise);
    border: 1px solid var(--border-amber);
    display: grid;
    place-items: center;
}

.vis-maze {
    width: 86%;
    aspect-ratio: 1;
}

.vis-maze svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.35));
}

/* Each ring turns slowly, alternating direction, outer rings slower */
.maze-ring {
    transform-box: view-box;
    transform-origin: 200px 200px;
    animation: maze-turn calc(36s + var(--ring-i) * 9s) linear infinite;
}

.maze-ring--ccw { animation-direction: reverse; }

@keyframes maze-turn {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .editorial-visual.editorial-visual--maze { aspect-ratio: 1; }
    .chakravyuh-page .event-hero-bg::after { right: -30%; width: 110vw; opacity: 0.1; }
}

/* ==========================================================
   WHATSAPP COMMUNITY
   ========================================================== */

.btn--whatsapp {
    gap: 0.6rem;
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(37, 211, 102, 0.08);
}

.btn--whatsapp::before {
    content: "";
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3a.5.5 0 0 0 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.7-1.2 2.1 2.1 0 0 0 .2-1.2c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3a.5.5 0 0 0 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.7-1.2 2.1 2.1 0 0 0 .2-1.2c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn--whatsapp:hover {
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.6);
    background: rgba(37, 211, 102, 0.14);
    transform: translateY(-1px);
}

/* Inline links inside body copy */
.editorial-copy p a,
.feature-item p a,
.teaser-card p a {
    color: var(--violet-lt);
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.editorial-copy p a:hover,
.feature-item p a:hover,
.teaser-card p a:hover {
    color: var(--fuchsia-lt);
    text-decoration-color: currentColor;
}

.unscripted-page .editorial-copy p a,
.chakravyuh-page .editorial-copy p a {
    color: var(--amber-lt);
    text-decoration-color: rgba(252, 211, 77, 0.4);
}

/* Keep footer text clear of the floating buttons (WhatsApp left, back-to-top right) */
.footer-bottom { padding-inline: 4.5rem; }

@media (max-width: 768px) {
    .footer-bottom { padding-inline: 4rem 3.5rem; }
}

/* ==========================================================
   EVENT ARTWORK — Eclipse art + home "event stack"
   ========================================================== */

/* Faint eclipse behind the Eclipse hero title */
.eclipse-page .event-hero-bg::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6%;
    width: min(60vw, 800px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    background: url('eclipse-art.svg') center / contain no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

/* Single artwork in the editorial visual slot */
.editorial-visual--art {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.14) 0%, transparent 65%),
        var(--ink-raise);
    border: 1px solid var(--border-1);
    display: grid;
    place-items: center;
}

.editorial-visual--art img {
    width: 92%;
    height: 92%;
    object-fit: contain;
}

/* Three event cards fanned like a hand of tickets */
.event-stack {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 55%, rgba(124, 58, 237, 0.16) 0%, transparent 65%),
        var(--ink-raise);
    border: 1px solid var(--border-2);
}

.event-stack-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 33%;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    transition: transform 0.6s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}

.event-stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-stack-card--art {
    display: grid;
    place-items: center;
    padding-bottom: 18%;
}

.event-stack-card--art img {
    width: 88%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.event-stack-card--chakravyuh {
    background: radial-gradient(ellipse at 50% 40%, rgba(245, 158, 11, 0.22) 0%, transparent 70%), #0b0a1c;
}

.event-stack-card--eclipse {
    background: radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 0.28) 0%, transparent 70%), #07071a;
}

.event-stack-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.9rem 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    color: var(--text-1);
    background: linear-gradient(transparent, rgba(4, 4, 15, 0.9));
}

.event-stack-label small {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-top: 0.2rem;
}

.event-stack-card:nth-child(1) { transform: translate(-128%, -46%) rotate(-10deg); z-index: 1; }
.event-stack-card:nth-child(2) { transform: translate(-50%, -52%) rotate(0deg);   z-index: 3; }
.event-stack-card:nth-child(3) { transform: translate(28%, -46%)  rotate(10deg);  z-index: 2; }

.event-stack:hover .event-stack-card:nth-child(1) { transform: translate(-134%, -48%) rotate(-13deg); }
.event-stack:hover .event-stack-card:nth-child(3) { transform: translate(34%, -48%)   rotate(13deg); }

/* Side cards are partly under the centre card, so keep each label on its open edge */
.event-stack-card:nth-child(1) .event-stack-label { padding-right: 32%; }
.event-stack-card:nth-child(3) .event-stack-label { padding-left: 32%; text-align: right; }

.event-stack-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 36px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(167, 139, 250, 0.25);
    z-index: 4;
}

@media (max-width: 1024px) {
    .editorial-visual.event-stack,
    .editorial-visual.editorial-visual--art { aspect-ratio: 1; }
    .event-stack-card { width: 34%; }
    .eclipse-page .event-hero-bg::after { right: -30%; width: 110vw; opacity: 0.2; }
}

@media (max-width: 640px) {
    .event-stack-label { padding: 0.5rem 0.45rem; font-size: 0.58rem; letter-spacing: -0.01em; }
    .event-stack-label small { display: none; }
    .event-stack-card:nth-child(1) .event-stack-label { padding-right: 10%; }
    .event-stack-card:nth-child(3) .event-stack-label { padding-left: 10%; }
}

/* ==========================================================
   PHASE 1 — INTERACTIVE FEATURES
   Share · WhatsApp float · Mobile CTA · Event filter
   FAQ search · Effects toggle · Page transitions
   ========================================================== */

/* --- Share row -------------------------------------------- */
.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.share-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-right: 0.35rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 100px;
    border: 1px solid var(--border-3);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.share-btn:hover {
    color: var(--text-1);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
}

.share-btn--whatsapp:hover { color: #4ade80; border-color: rgba(74, 222, 128, 0.45); }
.share-btn.is-done { color: #4ade80; border-color: rgba(74, 222, 128, 0.45); }

/* --- Floating WhatsApp button ----------------------------- */
.wa-float {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    z-index: 90;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s, bottom 0.35s var(--ease-out);
}

.wa-float::before {
    content: "";
    position: absolute;
    inset: 13px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3a.5.5 0 0 0 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.7-1.2 2.1 2.1 0 0 0 .2-1.2c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3a.5.5 0 0 0 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.7-1.2 2.1 2.1 0 0 0 .2-1.2c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hover label (desktop) */
.wa-float::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 0.75rem);
    top: 50%;
    transform: translate(-6px, -50%);
    white-space: nowrap;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    background: var(--ink-card);
    border: 1px solid var(--border-3);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45); }
.wa-float:hover::after,
.wa-float:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* --- Mobile CTA bar --------------------------------------- */
.mobile-cta { display: none; }

@media (max-width: 768px) {
    .mobile-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
        background: rgba(4, 4, 15, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--border-3);
        transform: translateY(110%);
        transition: transform 0.4s var(--ease-out);
    }

    .mobile-cta.visible { transform: none; }

    .mobile-cta-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-cta-text strong {
        font-family: var(--font-display);
        font-size: 0.95rem;
        color: var(--text-1);
    }

    .mobile-cta-text span {
        font-size: 0.7rem;
        color: var(--text-3);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-cta .btn { flex-shrink: 0; padding: 0.75rem 1.25rem; }

    .wa-float { left: 1.25rem; bottom: 1.25rem; width: 48px; height: 48px; }
    .wa-float::before { inset: 12px; }
    .wa-float::after { display: none; }

    /* Lift the floating buttons above the bar while it shows */
    body.mobile-cta-on .wa-float,
    body.mobile-cta-on .back-to-top { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
}

/* --- Event filter ----------------------------------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-chip {
    padding: 0.55rem 1.05rem;
    border-radius: 100px;
    border: 1px solid var(--border-3);
    background: transparent;
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-chip:hover { color: var(--text-1); border-color: rgba(167, 139, 250, 0.4); }

.filter-chip[aria-pressed="true"] {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(125deg, var(--violet), var(--fuchsia));
}

.filter-empty,
.faq-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-3);
    border: 1px dashed var(--border-3);
    border-radius: 12px;
    font-size: 0.9rem;
}

.filter-empty a,
.faq-empty a { color: var(--violet-lt); }

/* --- FAQ search ------------------------------------------- */
.faq-search {
    position: relative;
    margin-bottom: 1.25rem;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-3);
    background: var(--ink-card);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.faq-search input::placeholder { color: var(--text-3); }
.faq-search input:focus { outline: none; border-color: var(--border-amber); }

.faq-search::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    background: var(--text-3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.faq-empty { margin-top: 0.75rem; }
.unscripted-page .faq-empty a { color: var(--amber-lt); }

/* --- Effects toggle (footer) ------------------------------ */
.display-btn {
    background: none;
    border: 1px solid var(--border-2);
    border-radius: 100px;
    padding: 0.35rem 0.8rem;
    color: var(--text-3);
    font-family: var(--font-body);
    font-size: 0.72rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.display-btn:hover { color: var(--text-1); border-color: var(--border-3); }

/* Visitor turned animations off — same treatment as the OS setting */
html[data-effects="off"] *,
html[data-effects="off"] *::before,
html[data-effects="off"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

html[data-effects="off"] .reveal { opacity: 1; transform: none; }

/* Faint hero artwork uses the still state too */
html[data-effects="off"] .eclipse-page .event-hero-bg::after {
    background-image: url('eclipse-art.svg#still');
}

/* --- Page transitions (cross-document view transitions) --- */
@view-transition { navigation: auto; }

.site-header { view-transition-name: site-header; }

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.35s;
    animation-timing-function: var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}

/* --- Utilities -------------------------------------------- */
/* Hidden visually but still read by screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* `hidden` must win over component display rules (e.g. .event-row grid) */
[hidden] { display: none !important; }

/* ==========================================================
   PHASE 2 — PLAY & PERSONALISATION
   Instagram float · Interested · Quiz · Ring puzzle
   Spin the stage · Eclipse midnight mode
   ========================================================== */

/* Only show JS-powered widgets when JS is running */
html:not(.js) .js-only { display: none !important; }

/* --- Instagram float (stacked above WhatsApp) ------------- */
.ig-float {
    position: fixed;
    left: 2rem;
    bottom: calc(2rem + 52px + 0.75rem);
    z-index: 90;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    box-shadow: 0 10px 28px rgba(214, 36, 159, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s, bottom 0.35s var(--ease-out);
}

.ig-float::before {
    content: "";
    position: absolute;
    inset: 14px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM17.5 5.2a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM17.5 5.2a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ig-float::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 0.75rem);
    top: 50%;
    transform: translate(-6px, -50%);
    white-space: nowrap;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    background: var(--ink-card);
    border: 1px solid var(--border-3);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.ig-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(214, 36, 159, 0.45); }
.ig-float:hover::after,
.ig-float:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

@media (max-width: 768px) {
    .ig-float { left: 1.25rem; bottom: calc(1.25rem + 48px + 0.6rem); width: 48px; height: 48px; }
    .ig-float::before { inset: 13px; }
    .ig-float::after { display: none; }
    body.mobile-cta-on .ig-float { bottom: calc(5.25rem + 48px + 0.6rem + env(safe-area-inset-bottom)); }
}

/* --- Interested button ------------------------------------ */
.interest-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 100px;
    border: 1px solid var(--border-3);
    background: transparent;
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.interest-btn::before { content: "\2606"; font-size: 1rem; line-height: 1; }

.interest-btn:hover { color: var(--text-1); border-color: rgba(252, 211, 77, 0.45); }

.interest-btn[aria-pressed="true"] {
    color: var(--amber-lt);
    border-color: rgba(252, 211, 77, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.interest-btn[aria-pressed="true"]::before { content: "\2605"; }

.event-card-foot,
.event-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

/* --- Quiz ------------------------------------------------- */
.quiz {
    position: relative;
    padding: 3.5rem;
    border-radius: 18px;
    border: 1px solid var(--border-1);
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(192, 38, 211, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 0% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        var(--ink-card);
    overflow: hidden;
}

.quiz-intro { max-width: 620px; }
.quiz-intro p { color: var(--text-2); margin: 1rem 0 2rem; line-height: 1.8; }

.quiz-progress { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; }
.quiz-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--border-3); transition: background 0.3s; }
.quiz-progress span.is-done { background: linear-gradient(90deg, var(--violet), var(--fuchsia)); }

.quiz-count {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--violet-lt);
}

.quiz-question {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin: 0.6rem 0 1.75rem;
    outline: none;
}

.quiz-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }

.quiz-option {
    text-align: left;
    padding: 1.4rem 1.5rem;
    min-height: 96px;
    border-radius: 14px;
    border: 1px solid var(--border-3);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out);
}

.quiz-option:hover,
.quiz-option:focus-visible {
    border-color: rgba(167, 139, 250, 0.55);
    background: var(--violet-dim);
    transform: translateY(-2px);
}

.quiz-result {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.quiz-result-art {
    aspect-ratio: 9 / 13;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-3);
    background: var(--ink-raise);
    display: grid;
    place-items: center;
}

.quiz-result-art img { width: 100%; height: 100%; object-fit: cover; }
.quiz-result-art img[src$=".svg"] { width: 85%; height: auto; object-fit: contain; }

.quiz-result-copy h3 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0.6rem 0 1rem; outline: none; line-height: 1.05; }
.quiz-result-copy p { color: var(--text-2); line-height: 1.8; margin-bottom: 1.75rem; max-width: 520px; }
.quiz-result--amber h3 span { color: var(--amber-lt); }
.quiz-result--violet h3 span { color: var(--fuchsia-lt); }

@media (max-width: 768px) {
    .quiz { padding: 2rem 1.5rem; }
    .quiz-options { grid-template-columns: 1fr; }
    .quiz-option { min-height: 0; padding: 1.1rem 1.25rem; }
    .quiz-result { grid-template-columns: 1fr; gap: 1.5rem; }
    .quiz-result-art { max-width: 200px; }
}

/* --- Chakravyuh ring puzzle ------------------------------- */
.ring-puzzle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem;
    border-radius: 18px;
    border: 1px solid var(--border-amber);
    background:
        radial-gradient(ellipse 50% 70% at 75% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 65%),
        var(--ink-card);
}

.ring-board { aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; }
.ring-board svg { width: 100%; height: 100%; overflow: visible; }

.rp-ring {
    transform-box: view-box;
    transform-origin: 200px 200px;
    transition: transform 0.55s var(--spring);
    cursor: pointer;
}

.rp-arc { fill: none; stroke-width: 12; stroke-linecap: round; opacity: 0.55; transition: opacity 0.3s, filter 0.3s; }
.rp-hit { fill: none; stroke: transparent; stroke-width: 34; }
.rp-ring:hover .rp-arc { opacity: 0.85; }
.rp-ring.is-aligned .rp-arc { opacity: 1; filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.7)); }

.rp-channel { stroke: rgba(252, 211, 77, 0.18); stroke-width: 34; stroke-linecap: round; fill: none; transition: stroke 0.5s; }
.rp-core { opacity: 0.45; transition: opacity 0.5s, transform 0.6s var(--spring); transform-box: view-box; transform-origin: 200px 200px; }
.rp-dot { fill: #fff7e0; }

.ring-puzzle.is-solved .rp-channel { stroke: rgba(252, 211, 77, 0.55); }
.ring-puzzle.is-solved .rp-core { opacity: 1; transform: scale(1.8); }

.ring-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.75rem 0 1rem; line-height: 1.1; }
.ring-copy > p { color: var(--text-2); line-height: 1.8; margin-bottom: 1.5rem; }

.ring-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.ring-btn {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-amber);
    background: rgba(245, 158, 11, 0.06);
    color: var(--amber-lt);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.ring-btn:hover { background: rgba(245, 158, 11, 0.16); }

.ring-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--text-3); margin-bottom: 0.5rem; }
.ring-meta strong { color: var(--text-1); }
.ring-status { font-size: 0.85rem; color: var(--text-2); min-height: 1.5em; }

.ring-win {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(252, 211, 77, 0.45);
    background: rgba(245, 158, 11, 0.08);
}

.ring-win strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--amber-lt); margin-bottom: 1rem; }

.link-btn {
    background: none;
    border: 0;
    color: var(--text-3);
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.link-btn:hover { color: var(--text-1); }

@media (max-width: 900px) {
    .ring-puzzle { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
    .ring-board { max-width: 340px; }
}

/* --- Spin the stage --------------------------------------- */
.stage-wheel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem;
    border-radius: 18px;
    border: 1px solid var(--border-amber);
    background:
        radial-gradient(ellipse 50% 70% at 25% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 65%),
        var(--ink-card);
}

.wheel-board { aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
.wheel-board svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5)); }

.wheel-disc {
    transform-box: view-box;
    transform-origin: 200px 200px;
    transition: transform 4.1s cubic-bezier(0.12, 0.8, 0.15, 1);
}

.wheel-seg { stroke: rgba(4, 4, 15, 0.6); stroke-width: 2; }
.wheel-seg--a { fill: #1a1530; }
.wheel-seg--b { fill: #2a1d12; }
.wheel-icon { font-size: 30px; text-anchor: middle; dominant-baseline: middle; }
.wheel-label { font-family: var(--font-display); font-weight: 700; font-size: 15px; fill: var(--text-1); text-anchor: middle; dominant-baseline: middle; letter-spacing: 0.02em; }
.wheel-hub { fill: var(--amber); stroke: #fff7e0; stroke-width: 3; }
.wheel-pointer { fill: var(--amber-lt); stroke: #04040f; stroke-width: 2; }

.wheel-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.75rem 0 1rem; line-height: 1.1; }
.wheel-copy > p { color: var(--text-2); line-height: 1.8; margin-bottom: 1.75rem; }

.wheel-result {
    margin-top: 1.75rem;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(252, 211, 77, 0.4);
    background: rgba(245, 158, 11, 0.07);
}

.wheel-result-act { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--amber-lt); }
.wheel-result p { color: var(--text-1); margin: 0.5rem 0 1.25rem; line-height: 1.7; font-size: 1.02rem; }

@media (max-width: 900px) {
    .stage-wheel { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
    .wheel-board { max-width: 320px; order: -1; }
}

/* --- Eclipse midnight mode -------------------------------- */
/* --midnight goes 0 → 1 as NYE approaches (set by play.js) */
.eclipse-page .event-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: calc(var(--midnight, 0) * 0.45);
    pointer-events: none;
}

.eclipse-page .event-hero-bg::after {
    filter: brightness(calc(1 + var(--midnight, 0) * 0.6));
}

.midnight-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.75rem;
    text-align: center;
}

.midnight-note { font-size: 0.82rem; color: var(--text-3); }

.midnight-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(124, 58, 237, 0.28) 0%, transparent 70%),
        rgba(2, 2, 8, 0.96);
}

.midnight-num {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: clamp(7rem, 30vw, 18rem);
    line-height: 1;
    background: linear-gradient(125deg, var(--violet-lt), var(--fuchsia-lt));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.midnight-msg h2 { font-size: clamp(2.5rem, 8vw, 5.5rem); line-height: 1; margin-bottom: 1rem; }
.midnight-msg p { color: var(--text-2); margin-bottom: 2rem; }

.midnight-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-3);
    background: var(--ink-card);
    color: var(--text-1);
    font-size: 1.1rem;
    cursor: pointer;
}

html.midnight-open { overflow: hidden; }

.confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1300;
    pointer-events: none;
}

/* Floating social buttons fade in after scrolling (see main.js) */
.social-float {
    opacity: 0;
    pointer-events: none;
    translate: 0 12px;
    transition: opacity 0.35s var(--ease-out), translate 0.35s var(--ease-out),
                transform 0.3s var(--ease-out), box-shadow 0.3s, bottom 0.35s var(--ease-out);
}

.social-float.visible { opacity: 1; pointer-events: auto; translate: 0 0; }

/* Phones & tablets: one float only — Instagram stays in the footer and contact section */
@media (max-width: 1024px) {
    .ig-float { display: none; }
}

/* --- PWA: offline page + install button ------------------- */
.error-num--word { font-size: clamp(4rem, 15vw, 10.5rem); }

.install-btn {
    background: none;
    border: 1px solid var(--border-1);
    border-radius: 100px;
    padding: 0.35rem 0.85rem;
    color: var(--violet-lt);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.install-btn:hover { color: var(--text-1); background: var(--violet-dim); }

.footer-actions { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.install-tip {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 1100;
    width: min(420px, calc(100% - 2rem));
    transform: translateX(-50%);
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border-3);
    background: var(--ink-card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    color: var(--text-1);
    font-size: 0.9rem;
    line-height: 1.6;
}

.install-tip button {
    margin-top: 0.75rem;
    background: none;
    border: 0;
    color: var(--violet-lt);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

/* ==========================================================
   PHASE 6 — SHARE ENGINE
   Dialog · Story cards · QR codes · Squad invite · Daily puzzle
   ========================================================== */

/* --- Shared dialog ---------------------------------------- */
html.dialog-open { overflow: hidden; }

.ez-dialog {
    margin: auto;
    width: min(440px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--border-3);
    border-radius: 20px;
    background: var(--ink-card);
    color: var(--text-1);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.ez-dialog::backdrop {
    background: rgba(2, 2, 8, 0.78);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}

.ez-dialog[open] { animation: ez-dialog-in 0.35s var(--ease-out); }

@keyframes ez-dialog-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
}

html[data-effects="off"] .ez-dialog[open] { animation: none; }

.ez-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border-2);
}

.ez-dialog-head h2 { font-size: 1.1rem; line-height: 1.3; }

.ez-dialog-close {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-3);
    background: transparent;
    color: var(--text-2);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.ez-dialog-close:hover { color: var(--text-1); background: var(--ink-hover); }

.ez-dialog-body { padding: 1.25rem 1.5rem 0.5rem; }
.ez-dialog-body:last-child { padding-bottom: 1.5rem; }

.ez-dialog-note { color: var(--text-2); font-size: 0.82rem; line-height: 1.6; margin-top: 1rem; text-align: center; }

.ez-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1rem 1.5rem 1.5rem;
}

.ez-dialog-actions .btn { flex: 1 1 140px; justify-content: center; }
.ez-dialog-actions .btn:disabled { opacity: 0.45; cursor: wait; }
.ez-dialog-actions .btn.is-done { color: #4ade80; }

/* --- Story card preview ----------------------------------- */
.story-preview {
    position: relative;
    aspect-ratio: 9 / 16;
    height: min(56dvh, 520px);
    margin-inline: auto;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ink-dark);
    border: 1px solid var(--border-2);
}

.story-preview img { display: block; width: 100%; height: 100%; }

.story-preview--loading { display: grid; place-items: center; }

.story-preview--loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(167, 139, 250, 0.1) 50%, transparent 70%) 0 0 / 200% 100%;
    animation: story-shimmer 1.2s linear infinite;
}

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

.story-preview-msg { position: relative; color: var(--text-3); font-size: 0.85rem; }

/* --- QR dialog -------------------------------------------- */
.qr-frame {
    width: min(280px, 100%);
    margin-inline: auto;
    padding: 0.5rem;
    border-radius: 16px;
    background: #fff;
}

.qr-canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 10px; }

/* --- Bring your squad ------------------------------------- */
.squad {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem;
    border-radius: 18px;
    border: 1px solid var(--border-1);
    background:
        radial-gradient(ellipse 55% 80% at 0% 0%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 45% 70% at 100% 100%, rgba(192, 38, 211, 0.1) 0%, transparent 60%),
        var(--ink-card);
}

.squad--amber {
    border-color: var(--border-amber);
    background:
        radial-gradient(ellipse 55% 80% at 0% 0%, rgba(245, 158, 11, 0.13) 0%, transparent 60%),
        radial-gradient(ellipse 45% 70% at 100% 100%, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
        var(--ink-card);
}

.squad-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.75rem 0 1rem; line-height: 1.1; }
.squad-copy > p { color: var(--text-2); line-height: 1.8; margin-bottom: 1.75rem; max-width: 520px; }

.squad-form label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-1);
}

.squad-form label span { color: var(--text-3); font-weight: 400; }

.squad-field { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.squad-field input {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border-3);
    background: var(--ink-dark);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.squad-field input::placeholder { color: var(--text-3); }
.squad-field input:focus { outline: none; border-color: var(--violet-lt); }
.squad--amber .squad-field input:focus { border-color: var(--amber-lt); }
.squad-field input[aria-invalid="true"] { border-color: #f87171; }
.squad-field .btn { flex: 0 0 auto; }

.squad-error { margin-top: 0.5rem; font-size: 0.8rem; color: #fca5a5; }

.squad-tools { display: grid; gap: 0.75rem; }

.squad-tool {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: center;
    width: 100%;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--border-3);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-1);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out);
}

.squad-tool svg {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    background: var(--violet-dim);
    fill: none;
    stroke: var(--violet-lt);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.squad--amber .squad-tool svg { background: var(--amber-dim); stroke: var(--amber-lt); }

.squad-tool strong { font-size: 0.95rem; font-weight: 700; }
.squad-tool span { font-size: 0.78rem; color: var(--text-3); }

.squad-tool:hover { border-color: rgba(167, 139, 250, 0.45); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
.squad--amber .squad-tool:hover { border-color: rgba(252, 211, 77, 0.45); }
.squad-tool.is-done { border-color: rgba(74, 222, 128, 0.5); }
.squad-tool.is-done strong { color: #4ade80; }

html[data-effects="off"] .squad-tool:hover { transform: none; }

.squad-welcome {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 0.6rem 1.1rem;
    border-radius: 100px;
    border: 1px solid rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.08);
    color: var(--text-1);
    font-size: 0.85rem;
    line-height: 1.5;
}

.squad-welcome strong { color: #86efac; }

@media (max-width: 900px) {
    .squad { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
}

@media (max-width: 480px) {
    .squad-field .btn { flex: 1 1 100%; justify-content: center; }
    .squad-welcome { border-radius: 14px; }
}

/* --- Daily Chakravyuh ------------------------------------- */
.ring-modes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }

.ring-modes .filter-chip:hover { border-color: rgba(252, 211, 77, 0.45); }

.ring-modes .filter-chip[aria-pressed="true"] {
    color: #1a1204;
    background: linear-gradient(125deg, var(--amber-lt), #f97316);
}

.ring-meta { flex-wrap: wrap; }

.ring-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 400px;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-3);
}

.ring-stat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-2);
    background: rgba(255, 255, 255, 0.02);
}

.ring-stat strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-1); line-height: 1.3; }
.ring-stat small { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

.ring-win .btn-row { flex-wrap: wrap; }

.ring-stats-empty { grid-column: 1 / -1; }

.nowrap { white-space: nowrap; }

/* ==========================================================
   PHASE 7 — FUN
   Toast · Treasure hunt · Fan pass · Confession booth
   Ambient sound · Scroll-lit stage
   ========================================================== */

/* --- Toast ------------------------------------------------ */
.ez-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 1250;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: 0.8rem 0.9rem 0.8rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(252, 211, 77, 0.4);
    background: var(--ink-raise);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    color: var(--text-1);
    font-size: 0.88rem;
    transform: translateX(-50%);
    animation: ez-toast-in 0.4s var(--ease-out);
    transition: opacity 0.35s, transform 0.35s;
}

.ez-toast.is-leaving { opacity: 0; transform: translate(-50%, 12px); }

.ez-toast button {
    flex: none;
    padding: 0.45rem 0.85rem;
    border-radius: 100px;
    border: 1px solid var(--border-3);
    background: transparent;
    color: var(--amber-lt);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

body.mobile-cta-on .ez-toast { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

@keyframes ez-toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

html[data-effects="off"] .ez-toast { animation: none; }

/* --- Treasure hunt ---------------------------------------- */
.hunt-glyph {
    display: inline-grid;
    place-items: center;
    width: 1.1em;
    height: 1.1em;
    padding: 0;
    margin-left: 0.1em;
    vertical-align: 0.05em;
    border: 0;
    background: none;
    color: var(--amber-lt);
    opacity: 0.32;
    cursor: pointer;
    font-size: inherit;
    transition: opacity 0.3s, transform 0.3s var(--spring);
    animation: hunt-twinkle 3.2s ease-in-out infinite;
}

.hunt-glyph svg { width: 0.55em; height: 0.55em; fill: currentColor; }
.section-label .hunt-glyph svg,
.timeline-body .hunt-glyph svg { width: 0.9em; height: 0.9em; }

.hunt-glyph:hover,
.hunt-glyph:focus-visible { opacity: 1; transform: scale(1.25) rotate(8deg); }

.hunt-glyph.is-found { opacity: 0.85; animation: none; filter: drop-shadow(0 0 6px rgba(252, 211, 77, 0.7)); }
.hunt-glyph.is-burst { animation: hunt-burst 0.7s var(--spring); }

@keyframes hunt-twinkle { 50% { opacity: 0.5; } }
@keyframes hunt-burst { 40% { transform: scale(1.9) rotate(20deg); opacity: 1; } }

html[data-effects="off"] .hunt-glyph { animation: none; }

.hunt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--border-amber);
    border-radius: 100px;
    padding: 0.35rem 0.85rem;
    color: var(--amber-lt);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.hunt-btn svg { width: 0.8rem; height: 0.8rem; fill: currentColor; }
.hunt-btn:hover { background: var(--amber-dim); color: var(--text-1); }
.hunt-btn.is-complete { background: rgba(245, 158, 11, 0.14); }

.hunt-intro { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; }

.hunt-reward {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(252, 211, 77, 0.45);
    background: rgba(245, 158, 11, 0.1);
    color: var(--text-1);
    font-size: 0.9rem;
    line-height: 1.65;
}

.hunt-meter { height: 6px; margin: 1.1rem 0; border-radius: 6px; background: var(--border-3); overflow: hidden; }
.hunt-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber-lt), #f97316); }

.hunt-list { list-style: none; display: grid; gap: 0.55rem; }

.hunt-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border-2);
    background: rgba(255, 255, 255, 0.02);
}

.hunt-list-glyph {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px dashed var(--border-3);
    color: var(--text-3);
    font-family: var(--font-display);
    font-weight: 700;
}

.hunt-list-glyph svg { width: 18px; height: 18px; fill: var(--amber-lt); }
.hunt-list li.is-found .hunt-list-glyph { border: 1px solid rgba(252, 211, 77, 0.45); background: var(--amber-dim); }

.hunt-list-text { display: grid; line-height: 1.4; }
.hunt-list-text a { color: var(--text-1); font-weight: 600; font-size: 0.9rem; }
.hunt-list-text small { color: var(--text-3); font-size: 0.78rem; }
.hunt-list li.is-found small { color: #86efac; }

/* --- Fan pass --------------------------------------------- */
.fanpass {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem;
    border-radius: 18px;
    border: 1px solid var(--border-1);
    background:
        radial-gradient(ellipse 55% 80% at 100% 0%, rgba(192, 38, 211, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 0% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        var(--ink-card);
}

.fanpass-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.75rem 0 1rem; line-height: 1.1; }
.fanpass-copy > p { color: var(--text-2); line-height: 1.8; margin-bottom: 1.75rem; max-width: 540px; }

.fanpass-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.fanpass-field label,
.confess-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-1);
}

.confess-form label span { color: var(--text-3); font-weight: 400; }

.fanpass-field input,
.fanpass-field select,
.confess-form textarea,
.confess-sign input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-3);
    background: var(--ink-dark);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.fanpass-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }

.fanpass-field input:focus,
.fanpass-field select:focus { outline: none; border-color: var(--violet-lt); }
.confess-form textarea:focus,
.confess-sign input:focus { outline: none; border-color: var(--amber-lt); }
.fanpass-field input[aria-invalid="true"],
.confess-form textarea[aria-invalid="true"] { border-color: #f87171; }

.fanpass-badges-title {
    margin: 1.75rem 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
}

.fanpass-badges-title span { color: var(--violet-lt); margin-left: 0.35rem; }

.pass-badges { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.75rem; }

.pass-badge {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    border: 1px dashed var(--border-3);
    line-height: 1.35;
}

.pass-badge strong { font-size: 0.85rem; color: var(--text-2); }
.pass-badge small { grid-column: 1; font-size: 0.72rem; color: var(--text-3); }

.pass-badge.is-earned { border: 1px solid rgba(167, 139, 250, 0.45); background: var(--violet-dim); }
.pass-badge.is-earned strong { color: var(--text-1); }
.pass-badge.is-earned strong::before { content: "✓ "; color: var(--violet-lt); }
.pass-badge.is-earned small { color: var(--violet-lt); }

.pass-badge-go {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    border: 1px solid var(--border-3);
    background: none;
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}

.pass-badge-go:hover { color: var(--text-1); border-color: rgba(167, 139, 250, 0.45); }

.fanpass-note { margin-top: 0.9rem; font-size: 0.75rem; color: var(--text-3); }

.fanpass-preview canvas {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 9 / 16;
    margin-inline: auto;
    border-radius: 18px;
    border: 1px solid var(--border-2);
    background: var(--ink-dark);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .fanpass { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
    .fanpass-preview canvas { max-width: 280px; }
}

@media (max-width: 480px) {
    .fanpass-fields, .pass-badges { grid-template-columns: 1fr; }
}

/* --- Confession booth ------------------------------------- */
.confess {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem;
    border-radius: 18px;
    border: 1px solid var(--border-amber);
    background:
        radial-gradient(ellipse 50% 70% at 80% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 65%),
        var(--ink-card);
}

.confess-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.75rem 0 1rem; line-height: 1.1; }
.confess-copy > p { color: var(--text-2); line-height: 1.8; margin-bottom: 1.75rem; max-width: 540px; }

.confess-form textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.confess-meta { display: flex; justify-content: space-between; align-items: center; margin: 0.4rem 0 1.1rem; font-size: 0.75rem; color: var(--text-3); }

.confess-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.confess-themes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.confess-themes .filter-chip:hover { border-color: rgba(252, 211, 77, 0.45); }
.confess-themes .filter-chip[aria-pressed="true"] { color: #1a1204; background: linear-gradient(125deg, var(--amber-lt), #f97316); }
.confess-sign { flex: 1 1 180px; }
.confess-sign input { padding: 0.6rem 0.9rem; font-size: 0.95rem; }
.confess-form .squad-error { margin: -0.5rem 0 1rem; }

.confess-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    aspect-ratio: 4 / 5;
    max-width: 380px;
    width: 100%;
    justify-self: center;
    padding: 2.5rem 2rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-amber);
    background: var(--ink-dark);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.confess-preview > * { position: relative; }

/* Spotlight cone from the top of the card */
.confess-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(252, 211, 77, 0.32), rgba(252, 211, 77, 0) 85%);
    clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.confess-preview[data-theme]:not([data-theme="spotlight"])::before { display: none; }

.confess-preview p {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-1);
    overflow-wrap: anywhere;
}

.confess-preview p::before {
    content: "\201C";
    display: block;
    font-size: 3.5rem;
    line-height: 0.6;
    margin-bottom: 0.4rem;
    color: rgba(252, 211, 77, 0.55);
}

.confess-preview.is-empty p { color: var(--text-3); }
.confess-preview-label { position: absolute; top: 1.25rem; left: 2rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-lt); }
.confess-preview-by { align-self: flex-end; font-weight: 600; color: var(--amber-lt); }

.confess-preview[data-theme="neon"] {
    border-color: rgba(240, 171, 252, 0.8);
    background: radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.35), transparent 60%), var(--ink-dark);
    box-shadow: 0 0 30px rgba(232, 121, 249, 0.35), inset 0 0 30px rgba(232, 121, 249, 0.15);
}
.confess-preview[data-theme="neon"] p { color: #fdf4ff; text-shadow: 0 0 18px rgba(232, 121, 249, 0.9); }
.confess-preview[data-theme="neon"] p::before,
.confess-preview[data-theme="neon"] .confess-preview-label,
.confess-preview[data-theme="neon"] .confess-preview-by { color: #f0abfc; }

.confess-preview[data-theme="note"] { background: #fdf3d7; border-color: transparent; transform: rotate(-2deg); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); }
.confess-preview[data-theme="note"] p { font-family: var(--font-body); font-weight: 500; color: #2a2016; }
.confess-preview[data-theme="note"].is-empty p { color: rgba(42, 32, 22, 0.45); }
.confess-preview[data-theme="note"] p::before { color: rgba(42, 32, 22, 0.22); }
.confess-preview[data-theme="note"] .confess-preview-label,
.confess-preview[data-theme="note"] .confess-preview-by { color: rgba(42, 32, 22, 0.7); }

@media (max-width: 900px) {
    .confess { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
    .confess-preview { max-width: 320px; }
}

/* --- Ambient sound button --------------------------------- */
.sound-btn {
    position: fixed;
    right: 2rem;
    bottom: calc(2rem + 46px + 0.75rem);
    z-index: 90;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-amber);
    background: var(--ink-card);
    color: var(--amber-lt);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, bottom 0.35s var(--ease-out);
}

.eclipse-page .sound-btn { border-color: var(--border-1); color: var(--violet-lt); }

.sound-btn svg { width: 20px; height: 20px; fill: currentColor; }
.sound-btn .sound-wave { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sound-btn[aria-pressed="false"] .sound-wave { opacity: 0.55; }
.sound-btn[aria-pressed="true"] { background: var(--amber-dim); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12); }
.eclipse-page .sound-btn[aria-pressed="true"] { background: var(--violet-dim); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
.sound-btn:hover { background: var(--ink-raise); }

.sound-btn::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 0.6rem);
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    background: var(--ink-raise);
    border: 1px solid var(--border-3);
    color: var(--text-1);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.sound-btn:hover::after,
.sound-btn:focus-visible::after { opacity: 1; }

@media (max-width: 768px) {
    .sound-btn { right: 1.25rem; bottom: calc(1.25rem + 46px + 0.6rem); }
    .sound-btn::after { display: none; }
    body.mobile-cta-on .sound-btn { bottom: calc(5.25rem + 46px + 0.6rem + env(safe-area-inset-bottom)); }
}

/* --- Scroll-lit stage ------------------------------------- */
.stage-lit {
    --curtain: 1; --la: 1; --lb: 1; --spot: 1; --crowd: 1;
    --t1: 1; --t2: 1; --t3: 1; --cta: 1;
    position: relative;
    margin-bottom: 7rem;
}

.stage-lit.is-live { height: 260vh; }

.stage-sticky {
    position: relative;
    height: min(85vh, 760px);
    min-height: 520px;
    overflow: hidden;
    background: #06040c;
    border-block: 1px solid var(--border-2);
}

.stage-lit.is-live .stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }

.stage-svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }

.st-beam { fill: url(#st-beam); mix-blend-mode: screen; }
.st-pool, .st-glint { fill: url(#st-pool); mix-blend-mode: screen; }
.st-lens { fill: #fde68a; }
.st-a { opacity: var(--la); }
.st-b { opacity: var(--lb); }
.st-spot, .st-glint { opacity: var(--spot); }
.st-lens { filter: drop-shadow(0 0 6px #fcd34d); }
.st-curtain-l { transform: translateX(calc(var(--curtain) * -560px)); }
.st-curtain-r { transform: translateX(calc(var(--curtain) * 560px)); }
.st-phones { fill: #fde68a; opacity: var(--crowd); filter: drop-shadow(0 0 5px rgba(253, 230, 138, 0.9)); }
.st-phones rect { animation: st-twinkle 3s ease-in-out infinite; }

@keyframes st-twinkle { 50% { fill-opacity: 0.35; } }

html[data-effects="off"] .st-phones rect { animation: none; }

.stage-copy {
    position: absolute;
    top: clamp(6rem, 16vh, 9rem);
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.stage-lines { display: grid; gap: 0.15em; margin: 1rem 0 1.75rem; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.05; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85); }

.stage-line { display: block; }
.stage-line--1 { opacity: calc(0.12 + 0.88 * var(--t1)); transform: translateY(calc((1 - var(--t1)) * 24px)); }
.stage-line--2 { opacity: calc(0.12 + 0.88 * var(--t2)); transform: translateY(calc((1 - var(--t2)) * 24px)); }
.stage-line--3 { opacity: calc(0.12 + 0.88 * var(--t3)); transform: translateY(calc((1 - var(--t3)) * 24px)); }

.stage-cta { opacity: var(--cta); pointer-events: auto; }

@media (max-width: 768px) {
    /* Zoom into the middle of the stage and keep the crowd above the register bar */
    .stage-svg { width: 210%; left: -55%; height: auto; bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
    .stage-sticky { background: #020106; }
    .stage-copy { top: 5.25rem; }
    .stage-lines { font-size: clamp(1.9rem, 9vw, 3rem); }
}

/* ==========================================================
   PHASE 8 — PERSONAL & PRACTICAL
   Display settings · My EventEz · Vibe guide · Print sheets
   ========================================================== */

/* Six nav links: tighten the gap on smaller laptops */
.main-nav a:not(.btn) { white-space: nowrap; }

@media (max-width: 1100px) and (min-width: 769px) {
    .main-nav { gap: 1.35rem; }
    .main-nav a:not(.btn) { letter-spacing: 0.06em; }
    .main-nav .nav-cta { display: none; }
}

/* My EventEz rows are re-ordered, so their numbers would read out of order */
#my-events .event-row-num { display: none; }

/* --- Text size -------------------------------------------- */
html[data-text="lg"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }

/* --- High contrast ---------------------------------------- */
html[data-contrast="high"] {
    --text-1: #ffffff;
    --text-2: #e6e4f8;
    --text-3: #c9c6e3;
    --border-1: rgba(196, 181, 253, 0.7);
    --border-2: rgba(255, 255, 255, 0.32);
    --border-3: rgba(255, 255, 255, 0.5);
    --border-amber: rgba(252, 211, 77, 0.7);
    --ink-card: #07071a;
}

@media (prefers-contrast: more) {
    html:not([data-contrast="standard"]) {
        --text-1: #ffffff;
        --text-2: #e6e4f8;
        --text-3: #c9c6e3;
        --border-1: rgba(196, 181, 253, 0.7);
        --border-2: rgba(255, 255, 255, 0.32);
        --border-3: rgba(255, 255, 255, 0.5);
        --border-amber: rgba(252, 211, 77, 0.7);
        --ink-card: #07071a;
    }
}

html[data-contrast="high"] main p a:not(.btn),
html[data-contrast="high"] .footer-col a { text-decoration: underline; text-underline-offset: 3px; }
html[data-contrast="high"] :focus-visible { outline: 3px solid #ffffff !important; outline-offset: 3px; }
html[data-contrast="high"] ::placeholder { color: #b3b0cf; }

/* --- Display dialog --------------------------------------- */
.display-btn span { font-family: var(--font-display); font-weight: 700; margin-right: 0.15rem; }

.seg { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }

.seg legend {
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.seg-row {
    display: flex;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-3);
    background: var(--ink-dark);
}

.seg-row label { flex: 1; position: relative; cursor: pointer; }

.seg-row input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.seg-row span {
    display: block;
    padding: 0.6rem 0.5rem;
    border-radius: 9px;
    text-align: center;
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.seg-row input:checked + span { color: #fff; background: linear-gradient(125deg, var(--violet), var(--fuchsia)); }
.seg-row input:focus-visible + span { outline: 2px solid var(--violet-lt); outline-offset: 2px; }
.seg-row label:hover input:not(:checked) + span { color: var(--text-1); background: var(--ink-hover); }

/* --- Buttons used on My EventEz --------------------------- */
.btn--danger {
    background: #b91c1c;
    color: #fff;
    border: 1px solid #ef4444;
}

.btn--danger:hover { background: #dc2626; }

/* --- Section header description --------------------------- */
.section-header-desc { max-width: 360px; color: var(--text-2); font-size: 0.92rem; line-height: 1.7; }

@media (max-width: 768px) {
    .section-header:has(.section-header-desc) { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* --- Homepage teaser -------------------------------------- */
.my-teaser {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 18px;
    border: 1px solid var(--border-1);
    background:
        radial-gradient(ellipse 40% 120% at 0% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 70%),
        var(--ink-card);
    color: var(--text-1);
    transition: border-color 0.25s, transform 0.3s var(--ease-out);
}

.my-teaser:hover { border-color: rgba(167, 139, 250, 0.5); transform: translateY(-2px); }
html[data-effects="off"] .my-teaser:hover { transform: none; }

.my-teaser-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--amber-dim);
}

.my-teaser-icon svg { width: 26px; height: 26px; fill: var(--amber-lt); }
.my-teaser-copy { flex: 1; display: grid; gap: 0.25rem; }
.my-teaser-copy strong { font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.25; }
.my-teaser-sub { color: var(--text-2); font-size: 0.9rem; }
.my-teaser-go { font-size: 1.5rem; color: var(--violet-lt); transition: transform 0.3s var(--ease-out); }
.my-teaser:hover .my-teaser-go { transform: translateX(4px); }

@media (max-width: 480px) {
    .my-teaser { padding: 1.25rem; gap: 1rem; }
    .my-teaser-icon { width: 44px; height: 44px; }
    .my-teaser-go { display: none; }
}

/* --- My EventEz page -------------------------------------- */
.my-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }

.my-stat {
    display: grid;
    gap: 0.2rem;
    padding: 1.4rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-2);
    background: var(--ink-card);
    color: var(--text-1);
    transition: border-color 0.2s;
}

.my-stat:hover { border-color: var(--border-1); }
.my-stat strong { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.1; }
.my-stat span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

.my-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.my-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2.25rem;
    border-radius: 18px;
    border: 1px solid var(--border-1);
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
        var(--ink-card);
}

.my-card--amber {
    border-color: var(--border-amber);
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(245, 158, 11, 0.1) 0%, transparent 60%),
        var(--ink-card);
}

.my-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; border-color: var(--border-amber); }

.my-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; margin-top: -0.25rem; }
.my-card > div:not(.ring-stats) { width: 100%; }
.my-card-line { color: var(--text-2); line-height: 1.7; font-size: 0.92rem; }
.my-card .ring-stats { margin: 0; width: 100%; max-width: none; }

.my-quiz { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.25rem; }
.my-quiz .quiz-result-art { width: 96px; height: 96px; flex: none; border-radius: 14px; }
.my-quiz-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; }
.my-quiz-name span { color: var(--fuchsia-lt); }

.my-hunt-slots { list-style: none; display: flex; gap: 0.75rem; }
.my-hunt-slots li { display: grid; justify-items: center; gap: 0.35rem; }
.my-hunt-slots .hunt-list-glyph { width: 48px; height: 48px; border-radius: 14px; }
.my-hunt-slots .hunt-list-glyph svg { width: 22px; height: 22px; }
.my-hunt-slots li.is-found .hunt-list-glyph { border: 1px solid rgba(252, 211, 77, 0.45); background: var(--amber-dim); }
.my-hunt-slots small { font-size: 0.65rem; color: var(--text-3); }

#my-events .event-row { padding-block: 1.75rem; grid-template-columns: 1fr auto; }
@media (max-width: 768px) { #my-events .event-row { grid-template-columns: 1fr; } }

.my-data {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 3.5rem;
    border-radius: 18px;
    border: 1px dashed var(--border-3);
}

.my-data h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.75rem 0 1rem; line-height: 1.15; }
.my-data p { color: var(--text-2); line-height: 1.8; }
.my-data-status:not(:empty) { margin-top: 1rem; color: #86efac; font-size: 0.9rem; }
.my-data-actions { display: grid; gap: 0.75rem; justify-items: stretch; }
.my-data-actions .btn { justify-content: center; }
.my-import { position: relative; cursor: pointer; }
.my-import input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.my-import:focus-within { outline: 2px solid var(--violet-lt); outline-offset: 3px; }
.my-clear { justify-self: center; color: #fca5a5; }

@media (max-width: 900px) {
    .my-stats { grid-template-columns: repeat(2, 1fr); }
    .my-grid { grid-template-columns: 1fr; }
    .my-card { padding: 1.75rem 1.5rem; }
    .my-card--wide { grid-template-columns: 1fr; gap: 1.25rem; }
    .my-data { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
}

@media (max-width: 420px) {
    .my-hunt-slots { gap: 0.4rem; justify-content: space-between; width: 100%; }
    .my-hunt-slots .hunt-list-glyph { width: 42px; height: 42px; }
}

/* --- Vibe & dress-code guide ------------------------------ */
.vibe {
    padding: 3.5rem;
    border-radius: 18px;
    border: 1px solid var(--border-1);
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(192, 38, 211, 0.12) 0%, transparent 60%),
        var(--ink-card);
}

.vibe--amber {
    border-color: var(--border-amber);
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(245, 158, 11, 0.1) 0%, transparent 60%),
        var(--ink-card);
}

.vibe-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 2.5rem; }
.vibe-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.75rem 0 1rem; line-height: 1.1; }
.vibe-head p { color: var(--text-2); line-height: 1.8; max-width: 480px; }

.vibe-palette { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }

.vibe-swatch { display: grid; gap: 0.15rem; align-content: start; }

.vibe-chip {
    display: block;
    aspect-ratio: 3 / 4;
    margin-bottom: 0.5rem;
    border-radius: 14px;
    background: var(--c);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 -30px 40px -30px rgba(0, 0, 0, 0.45);
}

.vibe-swatch strong { font-size: 0.78rem; line-height: 1.3; }
.vibe-swatch small { font-size: 0.68rem; color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }

.vibe-looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }

.vibe-look {
    padding: 1.6rem;
    border-radius: 14px;
    border: 1px solid var(--border-2);
    background: rgba(255, 255, 255, 0.02);
}

.vibe-look svg {
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--violet-dim);
    fill: none;
    stroke: var(--violet-lt);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vibe--amber .vibe-look svg { background: var(--amber-dim); stroke: var(--amber-lt); }
.vibe-look h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.vibe-look p { color: var(--text-2); font-size: 0.88rem; line-height: 1.7; }

.vibe-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vibe-tips > div { padding: 1.4rem 1.6rem; border-radius: 14px; border: 1px dashed var(--border-3); }
.vibe-tips h3 { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem; }

.vibe-list { list-style: none; display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--text-2); }
.vibe-list li { padding-left: 1.6rem; position: relative; line-height: 1.6; }
.vibe-list li::before { position: absolute; left: 0; font-weight: 700; }
.vibe-list--yes li::before { content: "✓"; color: #86efac; }
.vibe-list--no li::before { content: "✕"; color: #fca5a5; }

@media (max-width: 900px) {
    .vibe { padding: 2rem 1.5rem; }
    .vibe-head { grid-template-columns: 1fr; gap: 1.75rem; }
    .vibe-looks, .vibe-tips { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .vibe-palette { gap: 0.4rem; }
    .vibe-swatch strong { font-size: 0.68rem; }
    .vibe-swatch small { display: none; }
}

/* --- Print ------------------------------------------------ */
.print-sheet { display: none; }

@media print {
    @page { size: A4; margin: 14mm; }

    html, body { background: #fff !important; color: #111 !important; }
    html { font-size: 11pt; }

    *, *::before, *::after {
        background: transparent !important;
        color: #111 !important;
        -webkit-text-fill-color: currentColor !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    .site-header, .site-footer .footer-actions, .social-float, .back-to-top, .sound-btn, .mobile-cta,
    .scroll-progress, .ticker, .ez-toast, .ez-dialog, .js-only, .hunt-glyph, .stage-lit,
    .share-row, .install-tip, .confetti-canvas, .interest-btn, .nav-toggle { display: none !important; }

    .reveal { opacity: 1 !important; transform: none !important; }
    a { text-decoration: none; }
    article, .vibe-look, .faq-list details, .timeline-row { break-inside: avoid; }
    h1, h2, h3, h4 { break-after: avoid; }
    .page-hero, .event-hero, .section { min-height: 0 !important; padding: 0 0 8mm !important; }
    .page-hero-title, .event-hero-title { font-size: 30pt !important; }
    .container { max-width: none !important; padding: 0 !important; }
    img { max-width: 100% !important; }

    /* Event pages: print only the one-page flyer */
    body.has-print-sheet main > *:not(.print-sheet),
    body.has-print-sheet .site-footer { display: none !important; }

    .print-sheet { display: block !important; }

    .ps-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10mm; border-bottom: 2px solid #111; }
    .ps-head img { width: 34px; height: 34px; border-radius: 8px; }
    .ps-head strong { font-family: var(--font-display); font-size: 16pt; }
    .ps-head span { margin-left: auto; font-size: 9pt; color: #555 !important; }

    .ps-kicker { margin-top: 12mm; font-size: 9pt; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: #b45309 !important; }
    .print-sheet--eclipse .ps-kicker { color: #6d28d9 !important; }
    .ps-title { font-family: var(--font-hero); font-size: 54pt; font-weight: 800; line-height: 1; margin: 3mm 0 5mm; letter-spacing: -0.02em; }
    .ps-pitch { font-size: 15pt; line-height: 1.45; max-width: 150mm; color: #333 !important; }

    .ps-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 10mm 0; border: 1.5px solid #111; border-radius: 4mm; }
    .ps-facts div { padding: 4mm 5mm; border-left: 1px solid #bbb; }
    .ps-facts div:first-child { border-left: 0; }
    .ps-facts dt { font-size: 8pt; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #666 !important; }
    .ps-facts dd { margin: 1.5mm 0 0; font-size: 11.5pt; font-weight: 600; line-height: 1.35; }

    .ps-body { display: grid; grid-template-columns: 1fr 62mm; gap: 10mm; align-items: start; }
    .ps-expect h3 { font-size: 10pt; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 4mm; }
    .ps-expect ul { list-style: none; padding: 0; margin: 0; }
    .ps-expect li { padding: 2.6mm 0 2.6mm 7mm; border-bottom: 1px solid #ddd; font-size: 12pt; position: relative; }
    .ps-expect li::before { content: "→"; position: absolute; left: 0; font-weight: 700; }

    .ps-qr { display: grid; justify-items: center; gap: 2mm; padding: 5mm; border: 1.5px solid #111; border-radius: 4mm; text-align: center; }
    .ps-qr img { width: 50mm; height: 50mm; image-rendering: pixelated; }
    .ps-qr strong { font-size: 11pt; }
    .ps-qr span { font-size: 9pt; color: #444 !important; word-break: break-all; }

    .ps-foot { margin-top: 12mm; padding-top: 5mm; border-top: 1px solid #bbb; font-size: 9pt; color: #555 !important; }
}

/* ==========================================================
   PHASE 9 — PHOTO BOOTH
   ========================================================== */
.page-hero--compact { padding-bottom: 3rem; }

.story-preview { max-width: 100%; }
.story-preview img { object-fit: contain; }

.booth {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
    padding: 2.5rem;
    border-radius: 18px;
    border: 1px solid var(--border-1);
    background:
        radial-gradient(ellipse 50% 70% at 0% 0%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 100% 100%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
        var(--ink-card);
}

.booth-stage-col { position: sticky; top: 6rem; }

.booth-stage {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    background: #07071a;
    border: 1px solid var(--border-3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.booth-stage[data-format="story"] { max-width: 340px; }

.booth-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none; /* dragging stickers shouldn't scroll the page */
    cursor: grab;
}

.booth-canvas:active { cursor: grabbing; }
.booth-canvas:focus-visible { outline: 3px solid var(--violet-lt); outline-offset: -3px; }

.booth-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem;
    text-align: center;
    background: rgba(4, 4, 15, 0.62);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}

.booth-empty p { color: var(--text-1); max-width: 300px; line-height: 1.6; }
.booth-empty .btn-row { justify-content: center; }

.booth-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--violet-dim);
    border: 1px solid var(--border-1);
}

.booth-empty-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--violet-lt); stroke-width: 1.7; stroke-linejoin: round; }

.booth-error {
    max-width: 320px;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca !important;
    font-size: 0.85rem;
}

.booth-upload { position: relative; overflow: hidden; cursor: pointer; }
.booth-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; font-size: 0; }
.booth-upload:focus-within { outline: 2px solid var(--violet-lt); outline-offset: 3px; }

.booth-count {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: clamp(5rem, 22vw, 9rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.booth-count:not([hidden]) { animation: booth-pop 1s ease-out infinite; }
@keyframes booth-pop { from { transform: scale(1.25); opacity: 0.4; } 30% { transform: scale(1); opacity: 1; } }
html[data-effects="off"] .booth-count { animation: none; }

.booth-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.booth-flash.is-on { animation: booth-flash 0.6s ease-out; }
@keyframes booth-flash { from { opacity: 0.9; } to { opacity: 0; } }

.booth-shoot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    max-width: 440px;
    margin: 1.25rem auto 0;
}

.booth-shoot [data-booth-flip] { justify-self: start; }
.booth-shoot .booth-timer { justify-self: end; grid-column: 3; }

.booth-shutter {
    grid-column: 2;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    padding: 0;
    border-radius: 50%;
    border: 4px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: transform 0.15s;
}

.booth-shutter span {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--fuchsia));
    transition: transform 0.15s;
}

.booth-shutter:hover span { transform: scale(0.94); }
.booth-shutter:active { transform: scale(0.94); }
.booth-shutter:disabled { opacity: 0.5; cursor: wait; }

.booth-timer { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--text-2); cursor: pointer; }
.booth-timer input { width: 18px; height: 18px; accent-color: var(--violet); }

.seg-row--wrap { flex-wrap: wrap; }
.seg-row--wrap label { flex: 1 1 22%; }

.booth-label {
    margin-bottom: 0.65rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.booth-label span { margin-left: 0.4rem; letter-spacing: 0.04em; text-transform: none; font-weight: 500; }

.booth-sticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }

.booth-sticker {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid var(--border-3);
    background:
        repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0 25%, transparent 0 50%) 0 0 / 16px 16px,
        var(--ink-dark);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s var(--spring);
}

.booth-sticker canvas { width: 100%; height: 100%; }
.booth-sticker:hover { border-color: rgba(167, 139, 250, 0.55); transform: translateY(-2px) rotate(-3deg); }
.booth-sticker:active { transform: scale(0.95); }
html[data-effects="off"] .booth-sticker:hover { transform: none; }

.booth-selected {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-1);
    background: var(--violet-dim);
    font-size: 0.85rem;
    color: var(--text-2);
}

.booth-selected strong { color: var(--text-1); }
.booth-selected-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.booth-selected-btns .share-btn { min-width: 40px; justify-content: center; font-size: 0.8rem; }

.booth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; }

.booth-privacy {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-2);
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.6;
}

.booth-privacy svg { flex: none; width: 16px; height: 16px; margin-top: 0.15rem; fill: none; stroke: #86efac; stroke-width: 2; }

@media (max-width: 900px) {
    .booth { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.75rem; }
    .booth-stage-col { position: static; }
    .booth-stage[data-format="story"] { max-width: 300px; }
}

@media (max-width: 480px) {
    .booth-sticker-grid { gap: 0.4rem; }
    .booth-sticker { border-radius: 10px; padding: 0.25rem; }
}

/* --- Vibe guide → photo booth ------------------------------ */
.vibe-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    margin-top: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    border: 1px solid var(--border-1);
    background: var(--violet-dim);
    color: var(--text-1);
    transition: border-color 0.2s, transform 0.25s var(--ease-out);
}

.vibe--amber .vibe-cta { border-color: var(--border-amber); background: var(--amber-dim); }
.vibe-cta-title { font-weight: 700; }
.vibe-cta small { grid-column: 1; color: var(--text-2); font-size: 0.8rem; }
.vibe-cta-go { grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; color: var(--violet-lt); }
.vibe--amber .vibe-cta-go { color: var(--amber-lt); }
.vibe-cta:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, 0.6); }
html[data-effects="off"] .vibe-cta:hover { transform: none; }

@media (max-width: 480px) {
    .seg-row--wrap { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   REGISTRATION FORMS (/register/*, /survey)
   ============================================================ */
.reg-hero { padding-bottom: 2.5rem; }
.reg-hero .page-hero-sub + .page-hero-sub { margin-top: 0.85rem; }

.reg-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
    position: relative;
    z-index: 1;
}

.reg-facts div {
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-3);
    background: rgba(255, 255, 255, 0.02);
}

.reg-facts dt {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.reg-facts dd { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--text-1); }

.reg-section { padding-top: 0; }

.reg-form,
.reg-done {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border-radius: 24px;
    border: 1px solid var(--border-1);
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
        var(--ink-card);
}

.reg-form--amber,
.reg-form--amber + .reg-done {
    border-color: var(--border-amber);
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(245, 158, 11, 0.09) 0%, transparent 60%),
        var(--ink-card);
}

.reg-note { font-size: 0.85rem; color: var(--text-2); margin-bottom: 1.5rem; }
.reg-req { color: #fca5a5; }

.reg-group { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.reg-group + .reg-group { padding-top: 2rem; border-top: 1px solid var(--border-2); }

.reg-group-title {
    /* Floated so the title sits inside the section, not on its top border */
    float: left;
    width: 100%;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
}

.reg-group-title + * { clear: both; }
.reg-field { margin-bottom: 1.35rem; border: 0; padding: 0; min-width: 0; }
.reg-field[hidden] { display: none; }

.reg-label {
    display: block;
    margin-bottom: 0.5rem;
    padding: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-1);
}

.reg-help { margin: -0.2rem 0 0.55rem; font-size: 0.8rem; line-height: 1.5; color: var(--text-2); }

.reg-field input[type="text"],
.reg-field input[type="email"],
.reg-field input[type="tel"],
.reg-field input[type="url"],
.reg-field input[type="date"],
.reg-field textarea,
.reg-other {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-3);
    background: var(--ink-dark);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 1rem;
    color-scheme: dark;
    transition: border-color 0.2s;
}

.reg-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.reg-field input::placeholder,
.reg-field textarea::placeholder,
.reg-other::placeholder { color: var(--text-3); }

.reg-field input:focus,
.reg-field textarea:focus,
.reg-other:focus { outline: none; border-color: var(--violet-lt); }
.reg-form--amber .reg-field input:focus,
.reg-form--amber .reg-field textarea:focus,
.reg-form--amber .reg-other:focus { border-color: var(--amber-lt); }

.reg-field [aria-invalid="true"],
.reg-field.is-invalid .reg-options { border-color: #f87171; }

.reg-count { margin-top: 0.35rem; font-size: 0.72rem; color: var(--text-3); text-align: right; }

.reg-err {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: #fca5a5;
}

.reg-err::before { content: '! '; font-weight: 700; }

/* Choices */
.reg-options { display: flex; flex-wrap: wrap; gap: 0.5rem; border-radius: 14px; }
.reg-choice--consent .reg-options { flex-direction: column; }

.reg-option { position: relative; cursor: pointer; }

.reg-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.reg-option span {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-3);
    background: var(--ink-dark);
    color: var(--text-2);
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.reg-option:hover span { color: var(--text-1); border-color: rgba(255, 255, 255, 0.22); }
.reg-option input:focus-visible + span { outline: 2px solid var(--violet-lt); outline-offset: 2px; }

.reg-option input:checked + span {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(125deg, var(--violet), var(--fuchsia));
}

.reg-form--amber .reg-option input:checked + span {
    color: #1a1204;
    background: linear-gradient(125deg, var(--amber), var(--amber-lt));
}

.reg-form--amber .reg-option input:focus-visible + span { outline-color: var(--amber-lt); }

/* Consent statements: a tick box beside each one */
.reg-choice--consent .reg-option span {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 3rem;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.55;
}

.reg-choice--consent .reg-option span::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 5px;
    border: 1.5px solid var(--text-3);
}

.reg-choice--consent .reg-option input:checked + span {
    color: var(--text-1);
    background: rgba(124, 58, 237, 0.12);
    border-color: var(--violet-lt);
}

.reg-choice--consent .reg-option input:checked + span::before {
    content: '✓';
    display: grid;
    place-items: center;
    border-color: transparent;
    background: var(--violet);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.reg-form--amber .reg-choice--consent .reg-option input:checked + span {
    color: var(--text-1);
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--amber-lt);
}

.reg-form--amber .reg-choice--consent .reg-option input:checked + span::before { background: var(--amber); color: #1a1204; }

.reg-other { margin-top: 0.6rem; }
.reg-other[hidden] { display: none; }

/* Spam trap: off screen for people */
.reg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.reg-captcha { margin: 0.5rem 0 1.25rem; min-height: 65px; }

.reg-submit { width: 100%; justify-content: center; font-size: 0.85rem; padding-block: 1.05rem; }
.reg-submit:disabled { opacity: 0.6; cursor: progress; }

.reg-privacy { margin-top: 1rem; font-size: 0.78rem; line-height: 1.6; color: var(--text-3); text-align: center; }
.reg-privacy a { color: var(--text-2); }

.reg-summary {
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.08);
}

.reg-summary:focus { outline: none; }
.reg-summary-title { font-weight: 600; color: #fecaca; }
.reg-summary ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.reg-summary li { margin: 0.25rem 0; }
.reg-summary a { color: #fecaca; text-decoration: underline; }

/* Sent */
.reg-done { text-align: center; }
.reg-done:focus { outline: none; }
.reg-done h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 1rem 0 0.75rem; }
.reg-done > p { color: var(--text-2); line-height: 1.75; max-width: 480px; margin: 0 auto; }
.reg-done .btn-row { justify-content: center; margin-top: 1.75rem; }

.reg-done-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(125deg, var(--violet), var(--fuchsia));
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.reg-done-icon--amber { background: linear-gradient(125deg, var(--amber), var(--amber-lt)); color: #1a1204; }

.reg-ref { margin-top: 1rem !important; font-size: 0.9rem; }
.reg-ref strong { font-family: var(--font-display); letter-spacing: 0.06em; color: var(--text-1); }

@media (max-width: 480px) {
    .reg-option { flex: 1 1 auto; }
    .reg-option span { text-align: center; }
    .reg-choice--consent .reg-option span { text-align: left; }
}

/* ============================================================
   ADMIN (/admin)
   ============================================================ */
.admin-page { min-height: 100vh; background: var(--ink-dark); }

.admin-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid var(--border-2);
}

.admin-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--violet-dim);
    color: var(--violet-lt);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-signout { margin-left: auto; padding: 0.55rem 1rem; }

.admin-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2rem) 4rem; }
.admin-loading { color: var(--text-2); }

.admin-login { max-width: 420px; margin: 3rem auto; }
.admin-login h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.admin-login > p { color: var(--text-2); line-height: 1.6; margin-bottom: 1.5rem; }
.admin-login input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-3);
    background: var(--ink-card);
    color: var(--text-1);
    font-size: 1rem;
}
.admin-login input[type="password"]:focus { outline: none; border-color: var(--violet-lt); }

.admin-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1rem; }

.admin-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--border-3);
    background: var(--ink-card);
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-tab[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(125deg, var(--violet), var(--fuchsia)); }
.admin-count { padding: 0.05rem 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 0.75rem; }
.admin-new { padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--amber); color: #1a1204; font-size: 0.7rem; font-weight: 700; }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.75rem; }
.admin-search {
    flex: 1 1 260px;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-3);
    background: var(--ink-card);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.admin-search:focus { outline: none; border-color: var(--violet-lt); }
.admin-filter { flex: 0 1 380px; }
.admin-export { padding: 0.75rem 1.1rem; }

.admin-summary { color: var(--text-3); font-size: 0.82rem; margin: 0.5rem 0 1rem; }

.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.admin-item { border-radius: 14px; border: 1px solid var(--border-3); background: var(--ink-card); overflow: hidden; }

.admin-item-head {
    width: 100%;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border: 0;
    background: none;
    color: var(--text-1);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
}

.admin-item-head:hover { background: var(--ink-hover); }
.admin-item-head:focus-visible { outline: 2px solid var(--violet-lt); outline-offset: -2px; }
.admin-item-main { display: grid; gap: 0.2rem; min-width: 0; }
.admin-item-main strong { font-size: 0.98rem; }
.admin-item-sub { color: var(--text-2); font-size: 0.82rem; overflow-wrap: anywhere; }
.admin-item-meta { display: grid; justify-items: end; gap: 0.3rem; flex: 0 0 auto; color: var(--text-3); font-size: 0.75rem; }

.admin-status { padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-status--new { background: rgba(245, 158, 11, 0.15); color: var(--amber-lt); }
.admin-status--confirmed { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.admin-status--declined { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }

.admin-item-body { padding: 0 1.1rem 1.1rem; border-top: 1px solid var(--border-2); }
.admin-item-body[hidden] { display: none; }

.admin-answers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem 1.5rem; margin: 1rem 0; }
.admin-answers dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.admin-answers dd { margin: 0.2rem 0 0; color: var(--text-1); font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding-top: 1rem; }
.admin-actions .btn { padding: 0.55rem 1rem; font-size: 0.72rem; }
.admin-actions--status { border-top: 1px solid var(--border-2); }
.admin-actions-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-right: 0.25rem; }
.admin-actions .btn--danger { margin-left: auto; }

@media (max-width: 600px) {
    .admin-item-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .admin-item-meta { justify-items: start; grid-auto-flow: column; align-items: center; }
    .admin-filter { flex-basis: 100%; }
    .admin-export { flex: 1 1 100%; justify-content: center; }
    .admin-actions .btn--danger { margin-left: 0; }
}

/* Remember my details (registration forms) */
.reg-remember {
    margin: 0.5rem 0 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px dashed var(--border-3);
}

.reg-check { position: relative; display: block; cursor: pointer; }
.reg-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.reg-check span {
    position: relative;
    display: block;
    padding-left: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-1);
}

.reg-check span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 5px;
    border: 1.5px solid var(--text-3);
}

.reg-check input:checked + span::before {
    content: '✓';
    display: grid;
    place-items: center;
    border-color: transparent;
    background: var(--violet);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.reg-form--amber .reg-check input:checked + span::before { background: var(--amber); color: #1a1204; }
.reg-check input:focus-visible + span { outline: 2px solid var(--violet-lt); outline-offset: 3px; border-radius: 4px; }
.reg-remember .reg-help { margin: 0.4rem 0 0 2rem; }

.reg-remembered { margin: 0.6rem 0 0 2rem; font-size: 0.8rem; color: var(--text-2); }

.reg-link {
    margin-left: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--violet-lt);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.reg-form--amber .reg-link { color: var(--amber-lt); }
