
:root {
  --bg: #000;
  --fg: #d6d2c8;
  --dim: #8f897c;
  --red: #8b0d0d;
  --red2: #c62a22;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

#buehne { position: fixed; inset: 0; overflow: hidden; background: #000; isolation: isolate; pointer-events: none; }
.ort { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 2.2s linear; will-change: opacity, transform; }
.ort.an { opacity: 1; }
.ort.vorn { z-index: 2; }
.ort img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ort .leucht { opacity: 0; }
.ort img:not([src]) { visibility: hidden; }
.nacht { position: absolute; inset: 0; z-index: 3; background-color: rgb(199, 219, 255); mix-blend-mode: multiply; }
.dunst { position: absolute; inset: 0; z-index: 4; mix-blend-mode: screen; }
.schein { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; display: block; }
.blau { position: absolute; inset: 0; z-index: 5; background: rgb(179, 209, 255); opacity: 0; }
.rand {
  position: absolute; inset: 0; z-index: 6;
  background:
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.92) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 42%, rgba(0,0,0,.78) 100%);
}

.grain {
  position: fixed; inset: -50%; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.7'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

#shell {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.view { max-width: 720px; width: 100%; }
.hidden { display: none !important; }

.title { margin: 0; line-height: 0; animation: flicker 7s infinite; }
.logo {
  display: inline-block; width: min(100%, 720px); height: auto;
  filter: drop-shadow(0 0 26px rgba(0, 0, 0, .7));
}
.title.small .logo { width: clamp(200px, 44vw, 330px); }
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .55; }
  21% { opacity: .2; }
}
.soon {
  font-family: 'Special Elite', 'Courier New', Courier, monospace; font-size: clamp(16px, 2.4vw, 26px);
  letter-spacing: .55em; padding-left: .55em; text-transform: lowercase; color: #b3ad9f; margin-top: 14px;
  text-shadow: 0 1px 14px #000, 0 0 3px #000;
}
.loginline { margin-top: 56px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.login {
  font: 300 12px/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase;
  color: #a39c8d; text-decoration: none; border: 1px solid rgba(214, 210, 200, .22); padding: 10px 16px;
  background: rgba(0,0,0,.5); cursor: pointer; transition: color .2s, border-color .2s;
}
.login:hover, .login:focus-visible { color: var(--fg); border-color: rgba(214, 210, 200, .55); }
.login.ghost { padding: 10px 12px; }

.muted { color: #b0a898; text-shadow: 0 1px 10px #000; }
.fine { color: var(--dim); font-size: 12px; margin-top: 28px; text-shadow: 0 1px 8px #000; }

.userbar { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 18px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #1a1614; object-fit: cover; }
.avatar:not([src]), .avatar[src=""] { display: none; }
.user-name { font-size: 13px; letter-spacing: .1em; color: #b0a898; text-shadow: 0 1px 8px #000; }

.menu-label { font-size: 11px; letter-spacing: .5em; padding-left: .5em; color: var(--dim); margin: 18px 0 14px; text-shadow: 0 1px 8px #000; }
.menu { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.mi {
  display: block; text-decoration: none; color: var(--fg);
  border: 1px solid rgba(214, 210, 200, .14); background: rgba(4, 5, 8, .72); padding: 14px 18px;
  transition: border-color .2s, background .2s;
}
.mi:hover, .mi:focus-visible { border-color: var(--red2); background: rgba(30, 6, 6, .7); }
.mi-t { display: block; font-family: 'Special Elite', 'Courier New', Courier, monospace; font-size: 18px; letter-spacing: .04em; }
.mi-d { display: block; font-size: 12px; color: #9a9384; margin-top: 4px; line-height: 1.5; }

@media (max-width: 520px) {
  .loginline { margin-top: 40px; }
  .mi { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .title { animation: none; }
}
