/* ── Startscreen & Logo ─────────────────────────────────────────────────── */
.screen-menu { display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(900px 520px at 50% 108%, rgba(41,217,245,.13), transparent 62%), radial-gradient(760px 480px at 12% -8%, rgba(255,79,163,.11), transparent 62%), linear-gradient(180deg, #050818 0%, #0A0E2C 60%, #0F1240 100%); }

/* Perspektivisches Raster wie der Tisch von oben, ruhig und dunkel */
.bg-grid { position: absolute; left: -40%; right: -40%; top: 58%; height: 130%; transform-origin: 50% 0; transform: perspective(520px) rotateX(66deg);
  background-image: linear-gradient(rgba(139,124,246,.5) 1.2px, transparent 1.2px), linear-gradient(90deg, rgba(41,217,245,.42) 1.2px, transparent 1.2px); background-size: 64px 64px;
  animation: gridMove 3.2s linear infinite; -webkit-mask-image: linear-gradient(transparent 0%, #000 40%); mask-image: linear-gradient(transparent 0%, #000 40%); opacity: .55; }
@keyframes gridMove { to { background-position: 0 64px, 64px 0; } }
/* Kugelregen im Hintergrund (Deko, per JS erzeugt) */
.bg-rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bg-rain i { position: absolute; top: -20px; border-radius: 50%; background: var(--c); opacity: .5; animation: rain var(--dur) linear var(--delay) infinite; }
@keyframes rain { from { transform: translate3d(0, -30px, 0); } 50% { transform: translate3d(var(--dx), 55vh, 0); } to { transform: translate3d(calc(var(--dx) * -.6), 112vh, 0); } }
.scanlines { position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: .22; background: repeating-linear-gradient(0deg, rgba(0,0,0,.5) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }

.menu-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 2vh, 22px); padding: 12px 16px 58px; width: 100%; }
.menu-foot { position: absolute; z-index: 6; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* Logo: Fallwand-Emblem (Pins, Switch-Gate rot/grün, Bouncer, Trichter, Kugeln) + Schriftzug */
.logo { display: flex; flex-direction: column; align-items: center; }
.logo-board { height: clamp(120px, 27vh, 270px); aspect-ratio: 220 / 252; overflow: visible; margin-bottom: -1vh; filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)); }
.logo-board .lg-frame-line { stroke: rgba(139,124,246,.75); stroke-width: 2; }
.logo-board .lg-sep path { stroke: rgba(139,124,246,.45); stroke-width: 1.4; }
.logo-board pattern circle { fill: #C9D1FF; } .logo-board .lg-pins { opacity: .85; }
.logo-board .lg-steel, .logo-board .lg-wall { stroke-width: 3; fill: none; stroke-linecap: round; }
.logo-board .lg-steel { stroke: #AEB8EE; }
.logo-board .lg-gate.red   { --gc: #E5566B; } .logo-board .lg-gate.green { --gc: #3FBF7F; }
.logo-board .lg-wall { stroke: var(--gc); }
.logo-board .lg-fill { fill: var(--gc); opacity: 0; }
.logo-board .lg-laser { stroke: var(--gc); stroke-width: 2.4; stroke-dasharray: 2.6 3.4; fill: none; opacity: 0; }
.logo-board .lg-fill.f-r, .logo-board .lg-laser.l-l { animation: gateA 5.4s ease-in-out infinite; }
.logo-board .lg-fill.f-l, .logo-board .lg-laser.l-r { animation: gateB 5.4s ease-in-out infinite; }
.logo-board .lg-gate.green .lg-fill, .logo-board .lg-gate.green .lg-laser { animation-delay: -2.7s; }
@keyframes gateA { 0%, 44% { opacity: .42; } 50%, 94% { opacity: 0; } 100% { opacity: .42; } }
@keyframes gateB { 0%, 44% { opacity: 0; } 50%, 94% { opacity: .42; } 100% { opacity: 0; } }
.logo-board .lg-laser.l-l { animation-name: laserA; } .logo-board .lg-laser.l-r { animation-name: laserB; }
@keyframes laserA { 0%, 44% { opacity: .95; } 50%, 94% { opacity: 0; } 100% { opacity: .95; } }
@keyframes laserB { 0%, 44% { opacity: 0; } 50%, 94% { opacity: .95; } 100% { opacity: 0; } }
.logo-board .lg-bump circle { fill: #fff; stroke: #FF4FA3; stroke-width: 3.4; transform-box: fill-box; transform-origin: center; animation: bumpPulse 2.7s ease-in-out infinite; }
.logo-board .lg-bump circle:nth-child(2) { animation-delay: .9s; } .logo-board .lg-bump circle:nth-child(3) { animation-delay: 1.8s; }
@keyframes bumpPulse { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.22); } 26% { transform: scale(1); } }
.logo-board .lg-funnel path { fill: none; stroke: #C9D1FF; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: .1 6.2; opacity: .85; }
.logo-board .lg-drain { stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; opacity: .8; }

.logo-title { display: flex; flex-wrap: wrap; justify-content: center; gap: .14em; margin: 0; font: 900 clamp(38px, min(9.4vh, 13.4vw), 112px)/.98 var(--font-display); font-style: italic; letter-spacing: .02em; transform: skewX(-6deg); }
.lt { display: inline-flex; }
.lt i { font-style: inherit; display: inline-block; animation: letterIn .8s var(--ease) both; }
.lt-a { color: #EAF0FF; text-shadow: 0 2px 0 rgba(0,0,0,.4), 0 0 14px rgba(41,217,245,.35); }
.lt-b { color: var(--pink); text-shadow: 0 2px 0 rgba(0,0,0,.4), 0 0 14px rgba(255,79,163,.35); }
.lt-a i:nth-child(1) { animation-delay: .05s; } .lt-a i:nth-child(2) { animation-delay: .12s; } .lt-a i:nth-child(3) { animation-delay: .19s; } .lt-a i:nth-child(4) { animation-delay: .26s; } .lt-a i:nth-child(5) { animation-delay: .33s; }
.lt-b i:nth-child(1) { animation-delay: .40s; } .lt-b i:nth-child(2) { animation-delay: .47s; } .lt-b i:nth-child(3) { animation-delay: .54s; } .lt-b i:nth-child(4) { animation-delay: .61s; }
@keyframes letterIn { from { opacity: 0; transform: translateY(-.7em) scale(1.3); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
/* die beiden O sind Kugeln in Spielerfarben */
.lt i.ball { color: var(--cyan); } .lt i.ball.b2 { color: var(--amber); }
.lt i.fk { animation: letterIn .8s var(--ease) both, flicker 7s linear 2s infinite; }
@keyframes flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20% { opacity: .45; } 23% { opacity: .85; } 63% { opacity: .6; } }
.logo-sub { display: flex; align-items: center; gap: 12px; margin-top: clamp(2px, .8vh, 8px); color: var(--text-2); font: 700 clamp(12px, 2vh, 18px) var(--font-display); letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; }
.logo-sub::before, .logo-sub::after { content: ''; width: clamp(24px, 6vw, 70px); height: 2px; background: linear-gradient(90deg, transparent, var(--violet)); }
.logo-sub::after { transform: scaleX(-1); }
.tagline { margin-top: clamp(4px, 1vh, 10px); color: var(--text-2); font: 600 clamp(14px, 2.1vh, 18px) var(--font-ui); letter-spacing: .06em; text-align: center; max-width: min(92vw, 560px); }

.menu-card { width: min(92vw, 520px); display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(20,24,80,.72), rgba(8,10,36,.82)); border: 1px solid var(--line-3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 30px 70px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.menu-secondary { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.join-row { display: flex; gap: 8px; }

@media (max-height: 700px) { .menu-card { padding: 14px; gap: 10px; } .input-lg { height: 46px; } .btn-xl { height: 50px; } .logo-board { margin-bottom: -2vh; } }
@media (max-height: 560px) { .tagline { display: none; } }
