:root {
    --brand-gradient: linear-gradient(
        90deg,
        #0283fa 0%,
        #02bbf3 20%,
        #09d2cf 40%,
        #04d1cf 60%,
        #4b6efd 80%,
        #6d4afa 100%
    );
    --bg: #07071a;
    --bg-2: #0a0a24;
    --text: #f4f6ff;
    --text-dim: #9aa2c4;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.09);
    --card-border-hover: rgba(255, 255, 255, 0.22);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100svh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* animated gradient glow in background */
.aurora {
    position: fixed;
    inset: -20%;
    z-index: 0;
    background:
        radial-gradient(50% 40% at 20% 25%, #0283fa55 0%, transparent 60%),
        radial-gradient(45% 40% at 80% 20%, #6d4afa55 0%, transparent 60%),
        radial-gradient(55% 45% at 50% 85%, #09d2cf40 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    animation: aurora-drift 22s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2%, -2%, 0) scale(1.05); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1); }
}

.page {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: clamp(48px, 10vh, 96px) 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: 100svh;
}

.hero {
    text-align: center;
}

.title {
    margin: 0;
    font-size: clamp(2.5rem, 9vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.tagline {
    margin: 14px 0 0;
    font-size: clamp(0.95rem, 2.4vw, 1.05rem);
    color: var(--text-dim);
    font-weight: 400;
}

/* event card (hidden until the next event is announced) */
.event[hidden] { display: none; }

.event-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--brand-gradient);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -20px rgba(75, 110, 253, 0.6);
}
.event-card:hover::before { opacity: 1; }

.event-poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.event-body {
    padding: 16px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: transparent;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.event-meta {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* link cards */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.link-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 0;
}

.link-card > * {
    position: relative;
    z-index: 1;
}

.link-card:hover {
    transform: translateY(-1px);
    border-color: var(--card-border-hover);
}
.link-card:hover::after { opacity: 0.14; }

.link-card:focus-visible {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #6d4afa;
}

.link-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-gradient);
    color: #ffffff;
}
.link-icon svg { width: 22px; height: 22px; }

.link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.link-label {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.link-handle {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-arrow {
    flex-shrink: 0;
    color: var(--text-dim);
    transition: transform 0.2s ease, color 0.2s ease;
}
.link-arrow svg { width: 18px; height: 18px; display: block; }

.link-card:hover .link-arrow {
    transform: translate(2px, -2px);
    color: var(--text);
}

/* footer */
.foot {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
    .aurora, .title { animation: none; }
    * { transition: none !important; }
}
