:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f7;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --line: rgba(0, 0, 0, 0.1);
    --text: #111111;
    --muted: rgba(17, 17, 17, 0.56);
    --muted-strong: rgba(17, 17, 17, 0.7);
    --accent: #111111;
    --accent-soft: rgba(0, 0, 0, 0.04);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 220ms ease, color 220ms ease;
}

body.modal-open {
    overflow: hidden;
}

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

code {
    font-family: Helvetica, Arial, sans-serif;
}

body.theme-dark {
    --bg: #0c0c0e;
    --bg-soft: #151519;
    --panel: rgba(18, 18, 22, 0.9);
    --panel-strong: rgba(16, 16, 20, 0.94);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f7f7f5;
    --muted: rgba(247, 247, 245, 0.5);
    --muted-strong: rgba(247, 247, 245, 0.7);
    --accent: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.05);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.theme-toggle {
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    color: #111111;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}

body.theme-dark .theme-toggle {
    background: rgba(22, 22, 28, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f7f7f5;
}

.music-toggle {
    border-color: rgba(0, 0, 0, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 255, 252, 0.76)),
        rgba(255, 255, 255, 0.84);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.06),
        0 0 0 rgba(66, 255, 196, 0);
}

.music-toggle:hover {
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.08),
        0 0 24px rgba(66, 255, 196, 0.18);
}

.music-toggle.is-playing {
    border-color: rgba(66, 255, 196, 0.48);
    color: #04110d;
    background:
        linear-gradient(135deg, rgba(66, 255, 196, 0.24), rgba(74, 203, 255, 0.18)),
        rgba(255, 255, 255, 0.86);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.08),
        0 0 26px rgba(66, 255, 196, 0.26),
        0 0 44px rgba(74, 203, 255, 0.18);
}

body.theme-dark .music-toggle {
    background:
        linear-gradient(135deg, rgba(22, 22, 28, 0.88), rgba(20, 32, 28, 0.72)),
        rgba(22, 22, 28, 0.8);
}

body.theme-dark .music-toggle.is-playing {
    border-color: rgba(66, 255, 196, 0.4);
    color: #f4fffb;
    background:
        linear-gradient(135deg, rgba(8, 48, 38, 0.88), rgba(10, 32, 48, 0.82)),
        rgba(18, 18, 22, 0.86);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.18),
        0 0 28px rgba(66, 255, 196, 0.24),
        0 0 48px rgba(74, 203, 255, 0.16);
}

.site-audio {
    display: none;
}

.visual-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    perspective: 1600px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.03), transparent 28%),
        radial-gradient(circle at 82% 72%, rgba(0, 0, 0, 0.03), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 1));
    transition: background 220ms ease;
}

.visual-scene-soft {
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.02), transparent 28%),
        radial-gradient(circle at 82% 72%, rgba(0, 0, 0, 0.02), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(252, 252, 252, 1));
}

body.theme-dark .visual-scene {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.04), transparent 26%),
        radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.03), transparent 32%),
        linear-gradient(180deg, rgba(10, 10, 14, 0.98), rgba(14, 14, 18, 1));
}

body.theme-dark .visual-scene-soft {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.03), transparent 26%),
        radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.025), transparent 32%),
        linear-gradient(180deg, rgba(12, 12, 16, 1), rgba(16, 16, 20, 1));
}

.scene-orb,
.scene-ring,
.scene-glow {
    position: absolute;
    display: block;
    transform-style: preserve-3d;
}

.scene-orb {
    border-radius: 50%;
    opacity: 0.98;
    animation:
        floatScene 18s ease-in-out infinite,
        orbColorShift 20s ease-in-out infinite;
    --orb-rotate-start: -8deg;
    --orb-rotate-mid: 6deg;
    --orb-z: 0px;
    --orb-x-mid: 0px;
    --orb-y-mid: 24px;
    --orb-z-mid: 24px;
    --orb-x-end: 0px;
    --orb-y-end: 0px;
    --orb-hue-start: 0deg;
    --orb-hue-mid: 18deg;
    --orb-hue-end: -12deg;
}

.scene-orb::before,
.scene-orb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.scene-orb::before {
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 34%),
        radial-gradient(circle at 68% 72%, rgba(0, 0, 0, 0.12), transparent 58%);
    mix-blend-mode: screen;
}

.scene-orb::after {
    inset: 10%;
    border: 1px solid rgba(255, 255, 255, 0.48);
    opacity: 0.8;
}

.scene-orb-a {
    top: 8%;
    left: 7%;
    width: 340px;
    height: 340px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.3) 24%, rgba(255, 72, 196, 0.18) 54%, rgba(255, 72, 196, 0.05) 70%, transparent 82%);
    box-shadow:
        inset -36px -46px 76px rgba(255, 72, 196, 0.14),
        inset 18px 20px 32px rgba(255, 255, 255, 0.9),
        0 28px 70px rgba(255, 72, 196, 0.16),
        0 0 90px rgba(255, 72, 196, 0.12);
    --orb-z: 90px;
    --orb-rotate-start: -14deg;
    --orb-rotate-mid: 4deg;
    --orb-x-mid: 18px;
    --orb-y-mid: 46px;
    --orb-z-mid: 62px;
    --orb-x-end: -12px;
    --orb-y-end: 20px;
    --orb-hue-start: -8deg;
    --orb-hue-mid: 16deg;
    --orb-hue-end: -20deg;
    animation-duration: 14s;
}

.scene-orb-b {
    top: 18%;
    right: 10%;
    width: 240px;
    height: 240px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.3) 24%, rgba(98, 223, 255, 0.22) 56%, rgba(98, 223, 255, 0.06) 72%, transparent 84%);
    box-shadow:
        inset -28px -30px 52px rgba(98, 223, 255, 0.16),
        inset 18px 20px 28px rgba(255, 255, 255, 0.92),
        0 24px 62px rgba(98, 223, 255, 0.16),
        0 0 82px rgba(98, 223, 255, 0.12);
    --orb-z: 40px;
    --orb-rotate-start: 12deg;
    --orb-rotate-mid: -3deg;
    --orb-x-mid: -42px;
    --orb-y-mid: 34px;
    --orb-z-mid: 46px;
    --orb-x-end: 18px;
    --orb-y-end: -18px;
    --orb-hue-start: 10deg;
    --orb-hue-mid: -18deg;
    --orb-hue-end: 22deg;
    animation-delay: -5s;
    animation-duration: 11s;
}

.scene-orb-c {
    bottom: 14%;
    left: 14%;
    width: 300px;
    height: 300px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.26) 24%, rgba(148, 255, 84, 0.2) 56%, rgba(148, 255, 84, 0.05) 72%, transparent 84%);
    box-shadow:
        inset -32px -38px 66px rgba(148, 255, 84, 0.14),
        inset 18px 20px 30px rgba(255, 255, 255, 0.88),
        0 28px 70px rgba(148, 255, 84, 0.16),
        0 0 84px rgba(148, 255, 84, 0.1);
    --orb-z: 70px;
    --orb-rotate-start: -10deg;
    --orb-rotate-mid: 7deg;
    --orb-x-mid: 36px;
    --orb-y-mid: -30px;
    --orb-z-mid: 56px;
    --orb-x-end: -18px;
    --orb-y-end: 22px;
    --orb-hue-start: -14deg;
    --orb-hue-mid: 12deg;
    --orb-hue-end: -26deg;
    animation-delay: -8s;
    animation-duration: 16s;
}

.scene-orb-d {
    right: 16%;
    bottom: 8%;
    width: 180px;
    height: 180px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.26) 24%, rgba(165, 110, 255, 0.2) 56%, rgba(165, 110, 255, 0.06) 72%, transparent 84%);
    box-shadow:
        inset -24px -24px 44px rgba(165, 110, 255, 0.14),
        inset 14px 16px 24px rgba(255, 255, 255, 0.92),
        0 22px 52px rgba(165, 110, 255, 0.15),
        0 0 78px rgba(165, 110, 255, 0.11);
    --orb-z: 35px;
    --orb-rotate-start: -4deg;
    --orb-rotate-mid: 8deg;
    --orb-x-mid: -30px;
    --orb-y-mid: 30px;
    --orb-z-mid: 44px;
    --orb-x-end: 14px;
    --orb-y-end: -10px;
    --orb-hue-start: 6deg;
    --orb-hue-mid: 24deg;
    --orb-hue-end: -10deg;
    animation-delay: -11s;
    animation-duration: 10s;
}

.scene-ring {
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.08);
    animation: orbitScene 22s linear infinite;
    --ring-x: 68deg;
    --ring-y: 14deg;
}

body.theme-dark .scene-ring {
    border-color: rgba(255, 255, 255, 0.12);
}

.scene-ring::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 2px solid transparent;
}

.scene-ring-a {
    width: 580px;
    height: 580px;
    top: -120px;
    right: -120px;
    --ring-x: 68deg;
    --ring-y: 14deg;
    box-shadow:
        0 0 0 1px rgba(17, 17, 17, 0.02),
        0 0 70px rgba(98, 223, 255, 0.06);
}

.scene-ring-a::before {
    border-top-color: rgba(98, 223, 255, 0.48);
    border-right-color: rgba(255, 72, 196, 0.28);
    filter: blur(0.3px);
}

.scene-ring-b {
    width: 460px;
    height: 460px;
    left: -110px;
    bottom: -110px;
    --ring-x: 72deg;
    --ring-y: -18deg;
    box-shadow:
        0 0 0 1px rgba(17, 17, 17, 0.02),
        0 0 70px rgba(148, 255, 84, 0.06);
    animation-direction: reverse;
}

.scene-ring-b::before {
    border-top-color: rgba(148, 255, 84, 0.48);
    border-right-color: rgba(165, 110, 255, 0.22);
    filter: blur(0.3px);
}

.scene-glow {
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.8;
    animation: pulseGlow 12s ease-in-out infinite;
}

.scene-glow-a {
    top: 16%;
    left: 34%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 72, 196, 0.12), transparent 72%);
}

.scene-glow-b {
    right: 18%;
    bottom: 16%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(98, 223, 255, 0.12), transparent 74%);
    animation-delay: -5s;
}

.line-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.03), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.02), transparent 32%),
        #ffffff;
}

.snake-lines {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
}

.snake-path {
    fill: none;
    stroke: rgba(0, 0, 0, 0.12);
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: snakeFloat 18s ease-in-out infinite;
    opacity: 0.92;
    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.45))
        drop-shadow(0 10px 18px rgba(0, 0, 0, 0.035));
}

.snake-path-a {
    animation-duration: 15s;
}

.snake-path-b {
    animation-duration: 19s;
    animation-delay: -4s;
}

.snake-path-c {
    animation-duration: 22s;
    animation-delay: -8s;
}

.snake-path-d {
    animation-duration: 17s;
    animation-delay: -6s;
}

.snake-path-e {
    animation-duration: 20s;
    animation-delay: -7s;
}

.snake-path-f {
    animation-duration: 16s;
    animation-delay: -2s;
}

.snake-path-g {
    animation-duration: 23s;
    animation-delay: -11s;
}

.snake-path-h {
    animation-duration: 14s;
    animation-delay: -5s;
}

.snake-path-i {
    animation-duration: 13s;
    animation-delay: -9s;
}

.snake-path-j {
    animation-duration: 21s;
    animation-delay: -12s;
}

.snake-path-k {
    animation-duration: 18s;
    animation-delay: -1s;
}

.snake-path-l {
    animation-duration: 24s;
    animation-delay: -10s;
}

.snake-thin {
    stroke-width: 1.6;
}

.snake-medium {
    stroke-width: 3.2;
}

.snake-thick {
    stroke-width: 6.5;
}

.snake-dotted {
    stroke-width: 3;
    stroke-dasharray: 2 14;
    stroke-linecap: round;
}

.snake-black {
    stroke: rgba(17, 17, 17, 0.22);
    filter:
        drop-shadow(0 0 10px rgba(0, 0, 0, 0.08))
        drop-shadow(0 14px 22px rgba(0, 0, 0, 0.04));
}

.snake-pink {
    stroke: rgba(255, 72, 196, 0.72);
    filter:
        drop-shadow(0 0 10px rgba(255, 72, 196, 0.32))
        drop-shadow(0 0 24px rgba(255, 72, 196, 0.22))
        drop-shadow(0 14px 22px rgba(255, 72, 196, 0.08));
}

.snake-cyan {
    stroke: rgba(98, 223, 255, 0.78);
    filter:
        drop-shadow(0 0 10px rgba(98, 223, 255, 0.32))
        drop-shadow(0 0 24px rgba(98, 223, 255, 0.22))
        drop-shadow(0 14px 22px rgba(98, 223, 255, 0.08));
}

.snake-green {
    stroke: rgba(148, 255, 84, 0.76);
    filter:
        drop-shadow(0 0 10px rgba(148, 255, 84, 0.34))
        drop-shadow(0 0 24px rgba(148, 255, 84, 0.22))
        drop-shadow(0 14px 22px rgba(148, 255, 84, 0.08));
}

.snake-violet {
    stroke: rgba(165, 110, 255, 0.72);
    filter:
        drop-shadow(0 0 10px rgba(165, 110, 255, 0.32))
        drop-shadow(0 0 24px rgba(165, 110, 255, 0.2))
        drop-shadow(0 14px 22px rgba(165, 110, 255, 0.08));
}

.snake-yellow {
    stroke: rgba(255, 214, 70, 0.72);
    filter:
        drop-shadow(0 0 10px rgba(255, 214, 70, 0.28))
        drop-shadow(0 0 24px rgba(255, 214, 70, 0.18))
        drop-shadow(0 14px 22px rgba(255, 214, 70, 0.08));
}

.line-background-backyard {
    background:
        radial-gradient(circle at 15% 18%, rgba(0, 0, 0, 0.025), transparent 26%),
        radial-gradient(circle at 78% 75%, rgba(0, 0, 0, 0.02), transparent 32%),
        #fbfbfb;
}

.line {
    position: absolute;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.22), transparent);
    animation: drift 18s ease-in-out infinite;
}

.line::before {
    content: "";
    position: absolute;
    inset: -32px 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
    transform: skewY(-5deg);
}

.line-a {
    top: 12%;
    animation-duration: 14s;
}

.line-b {
    top: 28%;
    animation-duration: 19s;
    animation-delay: -5s;
}

.line-c {
    top: 47%;
    animation-duration: 16s;
    animation-delay: -8s;
}

.line-d {
    top: 69%;
    animation-duration: 22s;
    animation-delay: -3s;
}

.line-e {
    top: 84%;
    animation-duration: 17s;
    animation-delay: -11s;
}

.page-shell,
.backyard-page {
    position: relative;
    z-index: 1;
}

.page-shell-light {
    min-height: 100vh;
}

.site-header {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 0;
}

.site-header-spaced {
    padding-top: 7rem;
}

.site-brand {
    display: inline-flex;
    justify-content: center;
}

.site-logo {
    width: min(240px, 44vw);
    animation: logoPulse 8.5s ease-in-out infinite;
    transform-origin: center;
    transform-style: preserve-3d;
}

.hero {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 2rem 1.2rem 3rem;
}

.hero-inner {
    width: min(780px, 100%);
    text-align: center;
}

.eyebrow {
    margin: 0 0 1rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow-dark {
    color: rgba(17, 17, 17, 0.46);
}

.hero h1,
.section-heading h1,
.empty-state h2,
.imprint-card h2,
.login-card h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 5.3rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.backyard-panel h1,
.backyard-form h2,
.backyard-list h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.hero-copy {
    max-width: 580px;
    margin: 1.5rem auto 0;
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.72;
    color: var(--muted-strong);
}

.hero-link,
.ticket-link,
.backyard-button,
.backyard-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.hero-link:hover,
.ticket-link:hover,
.backyard-button:hover,
.backyard-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.hero-link-dark,
.backyard-button-dark {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

body.theme-dark .hero-link-dark,
body.theme-dark .backyard-button-dark {
    background: #ffffff;
    border-color: #ffffff;
    color: #111111;
}

body.theme-dark .event-card {
    background: rgba(20, 20, 24, 0.84);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .event-date {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .event-content h2,
body.theme-dark .event-date strong {
    color: #f7f7f5;
}

body.theme-dark .ticket-link-neon {
    color: #f7f7f5;
}

body.theme-dark .ticket-link-variant-0 {
    background: rgba(255, 72, 196, 0.12);
}

body.theme-dark .ticket-link-variant-1 {
    background: rgba(98, 223, 255, 0.12);
}

body.theme-dark .ticket-link-variant-2 {
    background: rgba(148, 255, 84, 0.14);
}

body.theme-dark .ticket-link-variant-3 {
    background: rgba(165, 110, 255, 0.14);
}

.hero-link {
    margin-top: 2rem;
}

.events-section {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 6rem;
}

.events-section-direct {
    padding-top: 200px;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading-compact {
    margin-bottom: 1.25rem;
}

.section-heading h1 {
    font-size: clamp(2.1rem, 3.5vw, 3.4rem);
}

.events-grid {
    display: grid;
    gap: 1rem;
}

.event-card {
    display: grid;
    grid-template-columns: 118px 1fr auto;
    gap: 1.3rem;
    align-items: center;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.event-date {
    display: grid;
    gap: 0.2rem;
    align-content: center;
    justify-items: start;
    width: fit-content;
    min-width: 84px;
    min-height: 0;
    padding: 0.8rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: var(--bg-soft);
}

.event-date-month,
.event-date-year {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.event-date strong {
    font-size: 2rem;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.event-date-month {
    margin-top: 0.18rem;
}

.event-content h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.event-content p {
    margin: 0.45rem 0 0;
    font-size: 0.98rem;
    color: var(--muted-strong);
}

.ticket-link {
    min-width: 132px;
}

.ticket-link-neon {
    color: #111111;
    border-width: 1.5px;
}

.ticket-link-variant-0 {
    background: rgba(255, 72, 196, 0.12);
    border-color: rgba(255, 72, 196, 0.75);
    box-shadow:
        0 0 0 1px rgba(255, 72, 196, 0.12),
        0 0 18px rgba(255, 72, 196, 0.22),
        0 0 38px rgba(255, 72, 196, 0.12);
}

.ticket-link-variant-1 {
    background: rgba(98, 223, 255, 0.12);
    border-color: rgba(98, 223, 255, 0.8);
    box-shadow:
        0 0 0 1px rgba(98, 223, 255, 0.12),
        0 0 18px rgba(98, 223, 255, 0.22),
        0 0 38px rgba(98, 223, 255, 0.12);
}

.ticket-link-variant-2 {
    background: rgba(148, 255, 84, 0.12);
    border-color: rgba(148, 255, 84, 0.82);
    box-shadow:
        0 0 0 1px rgba(148, 255, 84, 0.12),
        0 0 18px rgba(148, 255, 84, 0.24),
        0 0 38px rgba(148, 255, 84, 0.12);
}

.ticket-link-variant-3 {
    background: rgba(165, 110, 255, 0.12);
    border-color: rgba(165, 110, 255, 0.8);
    box-shadow:
        0 0 0 1px rgba(165, 110, 255, 0.12),
        0 0 18px rgba(165, 110, 255, 0.22),
        0 0 38px rgba(165, 110, 255, 0.12);
}

.ticket-link-neon:hover {
    transform: translateY(-2px) scale(1.01);
}

.ticket-link-variant-0:hover {
    box-shadow:
        0 0 0 1px rgba(255, 72, 196, 0.18),
        0 0 18px rgba(255, 72, 196, 0.42),
        0 0 42px rgba(255, 72, 196, 0.3),
        0 0 76px rgba(255, 72, 196, 0.18);
}

.ticket-link-variant-1:hover {
    box-shadow:
        0 0 0 1px rgba(98, 223, 255, 0.18),
        0 0 18px rgba(98, 223, 255, 0.42),
        0 0 42px rgba(98, 223, 255, 0.3),
        0 0 76px rgba(98, 223, 255, 0.18);
}

.ticket-link-variant-2:hover {
    box-shadow:
        0 0 0 1px rgba(148, 255, 84, 0.18),
        0 0 18px rgba(148, 255, 84, 0.44),
        0 0 42px rgba(148, 255, 84, 0.3),
        0 0 76px rgba(148, 255, 84, 0.18);
}

.ticket-link-variant-3:hover {
    box-shadow:
        0 0 0 1px rgba(165, 110, 255, 0.18),
        0 0 18px rgba(165, 110, 255, 0.42),
        0 0 42px rgba(165, 110, 255, 0.3),
        0 0 76px rgba(165, 110, 255, 0.18);
}

.empty-state,
.backyard-panel,
.backyard-form,
.backyard-list,
.login-card {
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.empty-state p:last-child,
.backyard-panel p,
.backyard-list p,
.backyard-note,
.field-hint,
.flash {
    color: var(--muted-strong);
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem 2rem;
}

.site-footer a {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

body.theme-dark .site-logo {
    filter: invert(1);
}

body.theme-dark .legal-logo {
    filter: invert(1);
}

.backyard-page {
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
}

.legal-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.legal-card {
    width: min(620px, 100%);
    padding: 2.25rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.legal-logo {
    display: block;
    width: 86px;
    margin: 0 0 1.25rem;
}

.legal-card h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.legal-card p {
    color: var(--muted-strong);
    line-height: 1.7;
}

.backyard-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.backyard-shell-simple {
    gap: 1rem;
}

.backyard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.backyard-topbar-simple {
    margin-bottom: 0;
}

.backyard-panel-simple {
    padding: 1rem 1.2rem;
}

.backyard-nav-link {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.backyard-nav-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.backyard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.backyard-nav a {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.backyard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.stat-card span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.backyard-grid {
    display: grid;
    gap: 1.25rem;
}

.backyard-create-wrap {
    display: flex;
    justify-content: center;
}

.backyard-create-button {
    min-width: 210px;
}

.backyard-grid-wide {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    align-items: start;
}

.backyard-form form,
.login-card form {
    display: grid;
    gap: 1rem;
}

.table-wrap {
    overflow-x: auto;
}

.backyard-list-simple {
    padding: 1rem 1.2rem;
}

.backyard-mobile-list {
    display: none;
}

.backyard-mobile-card {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}

.backyard-mobile-card + .backyard-mobile-card {
    margin-top: 0.8rem;
}

.backyard-mobile-card-top,
.backyard-mobile-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.backyard-mobile-date {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.backyard-mobile-card h3 {
    margin: 0.65rem 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.backyard-mobile-card p {
    margin: 0;
    color: var(--muted-strong);
}

.backyard-mobile-actions {
    margin-top: 0.9rem;
}

.backyard-mobile-actions a {
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.18);
}

.backyard-mobile-actions form {
    margin: 0;
}

.backyard-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.backyard-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.backyard-overlay:target + .backyard-page .backyard-shell {
    filter: blur(16px);
    transform: scale(0.995);
    transition: filter 180ms ease, transform 180ms ease;
}

.backyard-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
}

.backyard-overlay-card {
    position: relative;
    width: min(520px, 100%);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.12);
}

.backyard-overlay-card h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    letter-spacing: -0.04em;
}

.backyard-overlay-card form {
    display: grid;
    gap: 0.9rem;
}

.backyard-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    transform: rotate(45deg);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.events-table th,
.events-table td {
    padding: 0.92rem 0.75rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.events-table th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.events-table td a {
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.18);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.table-actions form {
    margin: 0;
}

.table-link,
.table-delete {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.table-delete {
    color: rgba(17, 17, 17, 0.46);
}

.field-row {
    display: grid;
    gap: 0.42rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

input,
button {
    font: inherit;
}

input[type="date"],
input[type="text"],
input[type="url"],
input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: var(--text);
}

input:focus {
    outline: 2px solid rgba(0, 0, 0, 0.18);
    outline-offset: 1px;
}

.backyard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.backyard-action.danger {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.flash {
    margin: 0;
    padding: 0.9rem 1rem;
    border-left: 3px solid #111111;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.035);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.login-card {
    width: min(430px, 100%);
}

.login-card h1 {
    margin-bottom: 0.8rem;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.login-error {
    color: #8a1c1c;
}

@keyframes logoPulse {
    0%,
    100% {
        transform: perspective(900px) scale(0.94) rotateY(0deg) rotateX(0deg);
    }

    16% {
        transform: perspective(900px) scale(1.04) rotateY(0deg) rotateX(0deg);
    }

    34% {
        transform: perspective(900px) scale(0.96) rotateY(0deg) rotateX(0deg);
    }

    48% {
        transform: perspective(900px) scale(1.08) rotateY(180deg) rotateX(2deg);
    }

    52% {
        transform: perspective(900px) scale(1.08) rotateY(180deg) rotateX(-2deg);
    }

    66% {
        transform: perspective(900px) scale(0.98) rotateY(0deg) rotateX(0deg);
    }

    84% {
        transform: perspective(900px) scale(1.06) rotateY(0deg) rotateX(0deg);
    }
}

@keyframes floatScene {
    0% {
        transform: translate3d(0, 0, var(--orb-z)) rotate(var(--orb-rotate-start)) scale(1);
    }

    35% {
        transform: translate3d(var(--orb-x-mid), var(--orb-y-mid), calc(var(--orb-z) + var(--orb-z-mid))) rotate(var(--orb-rotate-mid)) scale(1.06);
    }

    68% {
        transform: translate3d(var(--orb-x-end), var(--orb-y-end), calc(var(--orb-z) + (var(--orb-z-mid) * 0.6))) rotate(calc(var(--orb-rotate-start) * -0.6)) scale(0.98);
    }

    100% {
        transform: translate3d(0, 0, var(--orb-z)) rotate(var(--orb-rotate-start)) scale(1);
    }
}

@keyframes orbColorShift {
    0%,
    100% {
        filter: hue-rotate(var(--orb-hue-start)) saturate(1) brightness(1);
    }

    50% {
        filter: hue-rotate(var(--orb-hue-mid)) saturate(1.12) brightness(1.03);
    }

    75% {
        filter: hue-rotate(var(--orb-hue-end)) saturate(1.06) brightness(0.99);
    }
}

@keyframes orbitScene {
    0% {
        transform: rotateX(var(--ring-x)) rotateY(var(--ring-y)) rotateZ(0deg);
    }

    100% {
        transform: rotateX(var(--ring-x)) rotateY(var(--ring-y)) rotateZ(360deg);
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.96);
    }

    50% {
        opacity: 0.88;
        transform: scale(1.08);
    }
}

@keyframes drift {
    0% {
        transform: translate3d(-3%, 0, 0) skewY(-2deg);
    }

    50% {
        transform: translate3d(3%, 0, 0) skewY(2deg);
    }

    100% {
        transform: translate3d(-3%, 0, 0) skewY(-2deg);
    }
}

@keyframes snakeFloat {
    0% {
        transform: translate3d(0, -1.2%, 0) scaleX(1) scaleY(0.985);
    }

    50% {
        transform: translate3d(0, 1.4%, 0) scaleX(1.02) scaleY(1.025);
    }

    100% {
        transform: translate3d(0, -1.2%, 0) scaleX(1) scaleY(0.985);
    }
}

@media (max-width: 900px) {
    .event-card,
    .backyard-grid-wide,
    .backyard-stats {
        grid-template-columns: 1fr;
    }

    .ticket-link {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding-top: 1.4rem;
    }

    .site-controls {
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: calc(100vw - 1.5rem);
    }

    .theme-toggle {
        min-height: 38px;
        padding: 0.62rem 0.88rem;
    }

    .site-header-spaced {
        padding-top: 3.8rem;
    }

    .hero {
        min-height: auto;
        padding-top: 2.5rem;
    }

    .events-section {
        width: min(100% - 1rem, 1080px);
        padding-bottom: 4rem;
    }

    .events-section-direct {
        padding-top: 110px;
    }

    .site-logo {
        width: min(176px, 46vw);
    }

    .event-card,
    .backyard-topbar,
    .field-grid {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }

    .event-card {
        padding: 0.95rem;
    }

    .event-date {
        min-width: 74px;
        padding: 0.7rem 0.72rem;
    }

    .event-date strong {
        font-size: 1.7rem;
    }

    .event-content h2 {
        font-size: 1.25rem;
    }

    .ticket-link {
        width: 100%;
    }

    .table-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .backyard-page {
        padding: 0.75rem 0.75rem 1.5rem;
    }

    .backyard-topbar-simple {
        align-items: center;
    }

    .backyard-nav-link,
    .backyard-nav-link-button {
        font-size: 0.7rem;
    }

    .scene-orb-a {
        width: 220px;
        height: 220px;
        top: 6%;
        left: -4%;
    }

    .scene-orb-b {
        width: 160px;
        height: 160px;
        top: 10%;
        right: -2%;
    }

    .scene-orb-c {
        width: 190px;
        height: 190px;
        bottom: 18%;
        left: -2%;
    }

    .scene-orb-d {
        width: 120px;
        height: 120px;
        right: 6%;
        bottom: 10%;
    }

    .scene-ring-a {
        width: 320px;
        height: 320px;
        top: -60px;
        right: -90px;
    }

    .scene-ring-b {
        width: 280px;
        height: 280px;
        left: -90px;
        bottom: -70px;
    }

    .scene-glow-a,
    .scene-glow-b {
        width: 180px;
        height: 180px;
        filter: blur(48px);
    }

    .legal-card {
        padding: 1.4rem;
    }

    .legal-logo {
        width: 70px;
        margin-bottom: 1rem;
    }

    .backyard-panel-simple,
    .backyard-list-simple,
    .backyard-overlay-card {
        padding: 1rem;
    }

    .backyard-list-simple {
        border-radius: 20px;
    }

    .backyard-mobile-list {
        display: block;
    }

    .table-wrap {
        display: none;
    }

    .backyard-overlay {
        align-items: end;
        padding: 0.75rem;
    }

    .backyard-overlay-backdrop {
        background: rgba(18, 18, 22, 0.18);
    }

    .backyard-overlay-card {
        width: 100%;
        max-height: calc(100vh - 1.5rem);
        overflow-y: auto;
        border-radius: 18px 18px 0 0;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .backyard-overlay-card .backyard-button {
        width: 100%;
    }

    .backyard-create-button {
        width: 100%;
        min-width: 0;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    }

    .backyard-create-wrap {
        position: sticky;
        top: 0.7rem;
        z-index: 5;
    }

    .backyard-overlay-card input[type="date"],
    .backyard-overlay-card input[type="text"],
    .backyard-overlay-card input[type="url"] {
        font-size: 16px;
    }
}
