/* ==========================================================================
   UNKNOWN — freestyle screenshot gallery
   ========================================================================== */

@property --rot { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --rx  { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --ry  { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --lift { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --bg-3: #1b1b26;
  --line: rgba(242, 239, 233, .1);
  --line-2: rgba(242, 239, 233, .18);
  --ink: #f2efe9;
  --ink-2: rgba(242, 239, 233, .62);
  --ink-3: rgba(242, 239, 233, .38);
  --lime: #c6ff3d;
  --pink: #ff3d8b;
  --cyan: #3dd9ff;
  --amber: #ffb93d;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --f-display: 'Syne', 'Arial Black', sans-serif;
  --f-body: 'Space Grotesk', system-ui, sans-serif;
  --f-pixel: 'Silkscreen', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* App-Gefühl: kein versehentliches Markieren beim (Doppel-)Klicken – Eingabefelder und Texte zum Kopieren bleiben markierbar */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable], .lb-caption, .letter-paper { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--bg); }

body.has-cursor, body.has-cursor * { cursor: none !important; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .16; mix-blend-mode: screen;
  animation: blob 28s ease-in-out infinite alternate;
}
.bg i:nth-child(1) { background: var(--pink); left: -20vmax; top: -10vmax; }
.bg i:nth-child(2) { background: var(--cyan); right: -25vmax; top: 30vh; animation-duration: 34s; animation-delay: -8s; }
.bg i:nth-child(3) { background: var(--lime); left: 20vw; bottom: -40vmax; opacity: .09; animation-duration: 40s; animation-delay: -16s; }
@keyframes blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 12vh) scale(1.15); }
  100% { transform: translate(-6vw, -4vh) scale(.9); }
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  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); }
}

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center;
  font-family: var(--f-pixel); letter-spacing: .1em;
  transition: clip-path .9s var(--ease) .1s;
  clip-path: inset(0 0 0 0);
}
.boot.done { clip-path: inset(0 0 100% 0); }
.boot-label { font-size: 13px; color: var(--lime); margin-bottom: 14px; text-align: center; }
.boot-bar { width: min(320px, 70vw); height: 18px; border: 2px solid var(--lime); padding: 2px; }
.boot-bar i {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--lime) 0 10px, transparent 10px 13px);
  animation: bootbar .9s steps(12) forwards;
}
@keyframes bootbar { to { width: 100%; } }

/* ---------- cursor ---------- */
.cursor, .cursor-dot { display: none; }
body.has-cursor .cursor, body.has-cursor .cursor-dot { display: block; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 0; height: 0; mix-blend-mode: difference;
}
.cursor-ring {
  position: absolute; width: 38px; height: 38px; left: -19px; top: -19px;
  transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), opacity .2s, transform .5s var(--ease);
}
.cursor-ring b {
  position: absolute; width: 10px; height: 10px; border: 2px solid #fff;
}
.cursor-ring b:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.cursor-ring b:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.cursor-ring b:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.cursor-ring b:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.cursor.view .cursor-ring { width: 96px; height: 96px; left: -48px; top: -48px; transform: rotate(45deg); }
.cursor.hide .cursor-ring { width: 16px; height: 16px; left: -8px; top: -8px; opacity: .6; }
.cursor.down .cursor-ring { transform: scale(.75); }
.cursor-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.4);
  font-family: var(--f-pixel); font-size: 11px; color: #fff; white-space: nowrap; letter-spacing: .1em;
  opacity: 0; transition: opacity .25s, transform .4s var(--ease);
}
.cursor.view .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-dot {
  position: fixed; left: -3px; top: -3px; width: 6px; height: 6px; background: var(--lime);
  z-index: 301; pointer-events: none;
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.logo {
  font-family: var(--f-pixel); font-weight: 700; font-size: 22px; letter-spacing: .08em;
  color: var(--ink); text-decoration: none; position: relative;
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.glitch::before { color: var(--pink); }
.glitch::after { color: var(--cyan); }
.glitch:hover::before { opacity: .9; animation: glitch-a .4s steps(2) infinite; }
.glitch:hover::after { opacity: .9; animation: glitch-b .5s steps(2) infinite; }
@keyframes glitch-a {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 1px); }
  50% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -1px); }
  100% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); }
}
@keyframes glitch-b {
  0% { clip-path: inset(50% 0 20% 0); transform: translate(3px, 0); }
  50% { clip-path: inset(5% 0 70% 0); transform: translate(-3px, 1px); }
  100% { clip-path: inset(70% 0 5% 0); transform: translate(2px, -1px); }
}
.topnav { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px;
  background: rgba(18, 18, 26, .7); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s, transform .4s var(--ease);
}
a.btn { color: inherit; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn-accent { background: var(--lime); color: #0a0a0f; border-color: var(--lime); font-weight: 700; }
.btn-accent:hover { background: #d8ff7a; }
.btn-accent span { font-family: var(--f-pixel); font-size: 18px; line-height: 1; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--pink); border-color: rgba(255, 61, 139, .4); }
.btn-danger:hover { background: var(--pink); color: #0a0a0f; border-color: var(--pink); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.wide { width: 100%; height: 50px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 18, 26, .7); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--f-pixel); font-size: 13px;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.off { color: var(--ink-3); }

.me { position: relative; }
.me-btn { display: grid; place-items: center; line-height: 0; border-radius: 50%; padding: 3px; border: 1px solid var(--line-2); background: rgba(18, 18, 26, .7); }
.me-btn .avatar { display: grid; width: 34px; height: 34px; }
.me-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
  background: rgba(18, 18, 26, .92); border: 1px solid var(--line-2); border-radius: 18px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 8px; display: grid;
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; pointer-events: none;
  transition: opacity .2s, transform .35s var(--ease);
}
.me.open .me-menu { opacity: 1; transform: none; pointer-events: auto; }
.me-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-head b { display: block; }
.me-head small { color: var(--ink-3); font-family: var(--f-pixel); font-size: 10px; }
.me-menu button { text-align: left; padding: 10px 12px; border-radius: 10px; transition: background .2s; }
.me-menu button:hover { background: rgba(242, 239, 233, .07); }
.me-menu button[data-act="logout"] { color: var(--pink); }
body:not(.is-admin) .admin-only { display: none; }

/* ---------- avatars ---------- */
.avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none;
  display: inline-grid; place-items: center; overflow: hidden;
  font-family: var(--f-pixel); font-size: 11px; color: #0a0a0f; font-weight: 700;
  background: var(--av, var(--lime));
}
.avatar.lg { width: 112px; height: 112px; font-size: 34px; }
.avatar.md { width: 44px; height: 44px; font-size: 15px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 80px; overflow: hidden;
}
.marquee {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(-6deg);
  display: grid; gap: 1vw; pointer-events: none; opacity: .5;
}
.marquee-row { display: flex; white-space: nowrap; will-change: transform; }
.marquee-row span {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(60px, 11vw, 180px);
  text-transform: uppercase; line-height: 1; padding-right: .5em;
  /* deckend füllen → SVG-Filter #hollow-sm lässt nur die Außenkontur übrig (keine inneren Font-Linien),
     die Blässe kommt danach über opacity aufs ganze Wort */
  color: rgb(242, 239, 233); filter: url(#hollow-sm); opacity: .08;
}
.marquee-row span:nth-child(3n+2) { color: rgb(198, 255, 61); opacity: .12; }

.hero-title {
  position: relative; margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(40px, 13vw, 240px); line-height: .84; letter-spacing: -.04em; text-transform: uppercase;
}
.hero-title .line { display: block; will-change: transform; white-space: nowrap; }
.hero-title .line:nth-child(2) { padding-left: 14vw; }
.hero-title .line:nth-child(3) { padding-left: 4vw; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
/* sauberere Kontur per SVG-Filter (#hollow in index.html): keine inneren Linien der Font-Konturen */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.hero-title .outline .split { filter: url(#hollow); }
.hero-title .outline .split .ch { color: var(--ink); -webkit-text-stroke: 0; }
.hero-title .outline .split .ch:hover { color: var(--lime); }
@media (max-width: 640px) { .hero-title .outline .split { filter: url(#hollow-sm); } }
.split .ch { display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; }
.ready .split .ch {
  animation: ch-in 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 32ms + 80ms);
}
@keyframes ch-in { to { transform: none; opacity: 1; } }
.split .ch:hover { color: var(--lime); -webkit-text-stroke-color: var(--lime); transition: color .1s; }
.hero-heart {
  display: inline-block; width: .42em; height: .36em; margin-left: .12em; vertical-align: .12em;
  background: var(--pink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%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 7 6' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: beat 1.4s steps(2) infinite;
}
@keyframes beat { 0%, 60% { transform: scale(1); } 70% { transform: scale(1.18); } 80% { transform: scale(1); } 90% { transform: scale(1.12); } }
.hero-sub {
  max-width: 420px; margin: 40px 0 0 auto; color: var(--ink-2); font-size: 17px;
  opacity: 0; transform: translateY(20px); transition: opacity 1s .5s, transform 1s var(--ease) .5s;
}
.hero-stats {
  display: flex; gap: clamp(20px, 5vw, 60px); margin-top: 36px; justify-content: flex-end;
  opacity: 0; transform: translateY(20px); transition: opacity 1s .7s, transform 1s var(--ease) .7s;
}
.ready .hero-sub, .ready .hero-stats { opacity: 1; transform: none; }
.hero-stats div { display: grid; }
.hero-stats b { font-family: var(--f-pixel); font-size: clamp(26px, 3.5vw, 40px); line-height: 1; color: var(--lime); }
.hero-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-3); margin-top: 6px; }
.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 32px; display: flex; align-items: center; gap: 12px;
  font-family: var(--f-pixel); font-size: 11px; color: var(--ink-3); letter-spacing: .2em;
}
.scroll-hint i { width: 60px; height: 1px; background: var(--ink-3); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ''; position: absolute; inset: 0; background: var(--lime); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- gallery ---------- */
.gallery {
  position: relative; margin: 0 var(--gutter); min-height: 40vh;
  transition: height .9s var(--ease);
}
.card {
  position: absolute; left: 0; top: 0;
  transition: left 1s var(--ease), top 1s var(--ease), width 1s var(--ease), opacity .5s, filter .6s, scale .6s var(--ease), visibility 0s;
  will-change: transform;
  perspective: 1000px;
}
.gallery.instant .card { transition: none; }
.card.is-out {
  opacity: 0; scale: .7; filter: blur(14px); pointer-events: none; visibility: hidden;
  transition: opacity .45s, filter .5s, scale .6s var(--ease), visibility 0s .6s;
}
.card-skew { transform-origin: 50% 50%; will-change: transform; transform-style: preserve-3d; }
.card-tilt {
  --rot: 0deg; --rx: 0deg; --ry: 0deg; --lift: 0px;
  transform: rotate(var(--rot)) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--lift));
  transform-style: preserve-3d;
  transition: --rot .7s var(--ease), --rx .5s var(--ease), --ry .5s var(--ease), --lift .5s var(--ease);
}
.card.hover .card-tilt { --rot: 0deg !important; --lift: 30px; transition: --rot .7s var(--ease), --rx .12s linear, --ry .12s linear, --lift .5s var(--ease); }
.card.hover { z-index: 5; }

.card-media {
  position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform-origin: 50% 50%;
  opacity: 0;
}
.card.seen .card-media { opacity: 1; animation: crt-on .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes crt-on {
  0% { opacity: 1; transform: scale(.08, .006); filter: brightness(6) saturate(0); }
  30% { opacity: 1; transform: scale(1, .006); filter: brightness(5) saturate(0); }
  60% { transform: scale(1, 1.02); filter: brightness(1.6) saturate(.6); }
  100% { opacity: 1; transform: none; filter: none; }
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s;
  transform: scale(1.12);
}
.card.seen .card-media img { transform: scale(1.01); }
.card.hover .card-media img { transform: scale(1.07); }
.card-media::after { /* scanlines */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
  opacity: 0; transition: opacity .4s;
}
.card.hover .card-media::after { opacity: .5; }
.card-foil {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 45%),
    linear-gradient(115deg, transparent 20%, rgba(61, 217, 255, .5) 38%, rgba(255, 61, 139, .45) 50%, rgba(198, 255, 61, .45) 62%, transparent 80%);
  background-size: 100% 100%, 250% 250%;
  background-position: 0 0, var(--fx, 50%) var(--fy, 50%);
  transition: opacity .4s;
}
.card.hover .card-foil { opacity: .55; }
.card-no {
  position: absolute; left: 10px; top: 10px; font-family: var(--f-pixel); font-size: 10px; letter-spacing: .08em;
  background: rgba(10, 10, 15, .7); color: var(--ink); padding: 3px 7px; border-radius: 4px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform: translateZ(40px);
}
.card-new {
  position: absolute; right: 10px; top: 10px; font-family: var(--f-pixel); font-size: 10px;
  background: var(--lime); color: #0a0a0f; padding: 3px 7px; border-radius: 4px; animation: blink 1s steps(2) infinite;
}
.card-meta {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 2px;
  font-size: 13px; opacity: 0; transform: translateY(10px);
  transition: opacity .6s .4s, transform .8s var(--ease) .4s;
}
.card.seen .card-meta { opacity: 1; transform: none; }
.card-who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink-2); transition: color .2s; }
.card-who:hover { color: var(--ink); }
.card-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-tag {
  --c: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 12px; padding: 3px 9px 3px 7px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%;
  transition: background .2s;
}
.game-tag::before { content: ''; width: 6px; height: 6px; background: var(--c); flex: none; }
.game-tag:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
.like-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-pixel); font-size: 12px; color: var(--ink-2); padding: 6px 4px;
  transition: color .2s;
}
.like-btn svg { width: 18px; height: 16px; transition: transform .4s var(--ease-back); }
.like-btn:hover svg { transform: scale(1.2); }
.like-btn .heart-fill { fill: transparent; transition: fill .2s; }
.like-btn .heart-line { fill: currentColor; }
.like-btn.on { color: var(--pink); }
.like-btn.on .heart-fill { fill: var(--pink); }
.like-btn.pop svg { animation: pop .5s var(--ease-back); }
.like-count { pointer-events: none; }
@keyframes pop { 0% { transform: scale(1); } 30% { transform: scale(1.6) rotate(-10deg); } 100% { transform: scale(1); } }

/* card hover chromatic text */
.card.hover .card-who span { text-shadow: -1px 0 var(--pink), 1px 0 var(--cyan); }

/* special: fresh upload spawn */
.card.spawn .card-media { animation: spawn 1.4s var(--ease) forwards !important; }
@keyframes spawn {
  0% { opacity: 1; clip-path: inset(0 0 100% 0); filter: hue-rotate(90deg) brightness(3); transform: scale(1.2); }
  20% { clip-path: inset(0 0 60% 0); transform: translateX(-10px) scale(1.1); }
  30% { clip-path: inset(30% 0 20% 0); transform: translateX(12px); }
  45% { clip-path: inset(0 0 0 0); transform: translateX(-4px); filter: hue-rotate(-60deg) brightness(1.6); }
  100% { opacity: 1; clip-path: inset(0); transform: none; filter: none; }
}

/* party mode (konami) */
body.party .card-media { animation: party 1.2s linear infinite !important; opacity: 1; }
body.party .hero-title .line { animation: party 2s linear infinite; }
@keyframes party { to { filter: hue-rotate(360deg) saturate(2); } }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 40px var(--gutter) 160px; }
.empty-title { font-family: var(--f-pixel); font-size: clamp(28px, 6vw, 64px); color: var(--lime); }
.empty-text { color: var(--ink-2); max-width: 440px; margin: 16px auto 0; }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.foot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 80px var(--gutter) 140px; font-family: var(--f-pixel); font-size: 11px; color: var(--ink-3); letter-spacing: .1em;
}
.foot-hint { opacity: .4; }

/* ---------- dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px);
  padding: 8px 10px; border-radius: 999px;
  background: rgba(14, 14, 20, .78); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9);
  transition: transform .8s var(--ease);
}
.dock.show { transform: translate(-50%, 0); }
.dock-group { display: flex; align-items: center; gap: 6px; }
.dock-games { overflow-x: auto; scrollbar-width: none; max-width: 46vw; mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); padding: 0 8px; }
.dock-games::-webkit-scrollbar { display: none; }
.dock-sep { width: 1px; height: 24px; background: var(--line-2); flex: none; }
.dock-user {
  position: relative; display: grid; place-items: center; line-height: 0; border-radius: 50%; padding: 2px; border: 2px solid transparent;
  transition: border-color .25s, transform .4s var(--ease-back), opacity .25s;
}
.dock-user .avatar { display: grid; width: 32px; height: 32px; }
.dock-user:hover { transform: translateY(-4px) scale(1.08); }
.dock-user.on { border-color: var(--lime); }
.dock.filtering-users .dock-user:not(.on) { opacity: .4; }
.dock-user::after {
  content: attr(data-name); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  font-size: 11px; font-family: var(--f-pixel); background: var(--ink); color: var(--bg); padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease);
}
.dock-user:hover::after { opacity: 1; transform: translateX(-50%); }
.chip {
  --c: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px;
  font-size: 13px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink-2);
  transition: background .25s, color .25s, border-color .25s, transform .4s var(--ease-back);
}
.chip::before { content: ''; width: 7px; height: 7px; background: var(--c); flex: none; transition: transform .3s var(--ease-back); }
.chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.chip.on { background: var(--c); color: #0a0a0f; border-color: var(--c); font-weight: 700; }
.chip.on::before { background: #0a0a0f; transform: rotate(45deg); }
.chip small { font-family: var(--f-pixel); font-size: 9px; opacity: .6; }
.dock-sort { display: flex; background: rgba(242, 239, 233, .06); border-radius: 999px; padding: 3px; flex: none; }
.dock-sort button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-family: var(--f-pixel); color: var(--ink-2); transition: background .25s, color .25s; }
.dock-sort button.on { background: var(--ink); color: var(--bg); }
.dock-count { font-family: var(--f-pixel); font-size: 11px; color: var(--ink-3); padding: 0 4px; white-space: nowrap; flex: none; }
.dock-reset { width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: #0a0a0f; font-weight: 700; flex: none; animation: pop .4s var(--ease-back); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; }
.lb-backdrop {
  position: absolute; inset: 0; background: rgba(6, 6, 10, .86);
  backdrop-filter: blur(18px) saturate(.8); -webkit-backdrop-filter: blur(18px) saturate(.8);
  opacity: 0; transition: opacity .5s;
}
.lightbox.open .lb-backdrop { opacity: 1; }
.lb-stage { position: absolute; inset: 0; pointer-events: none; }
.lb-img {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; border-radius: 8px; pointer-events: auto;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.lb-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 380px; padding: 90px 32px 32px;
  background: rgba(14, 14, 20, .7); border-left: 1px solid var(--line);
  overflow-y: auto; transform: translateX(100%); transition: transform .7s var(--ease);
  display: flex; flex-direction: column; gap: 24px;
}
.lightbox.open .lb-panel { transform: none; }
.lb-panel .no { font-family: var(--f-pixel); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.lb-who { display: flex; align-items: center; gap: 14px; }
.lb-who b { display: block; font-size: 17px; }
.lb-who small { color: var(--ink-3); }
.lb-caption { font-size: 20px; line-height: 1.35; font-family: var(--f-display); font-weight: 700; word-wrap: break-word; }
.lb-caption.empty { color: var(--ink-3); font-family: var(--f-body); font-weight: 400; font-size: 15px; font-style: italic; }
.lb-like { display: flex; align-items: center; gap: 16px; }
.lb-like .like-btn { margin: 0; font-size: 18px; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 999px; }
.lb-like .like-btn svg { width: 24px; height: 21px; }
.lb-likers { display: flex; }
.lb-likers .avatar { width: 30px; height: 30px; border: 2px solid var(--bg-2); margin-left: -8px; }
.lb-likers .avatar:first-child { margin-left: 0; }
.lb-section { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.lb-section label { font-family: var(--f-pixel); font-size: 10px; color: var(--ink-3); letter-spacing: .1em; }
.lb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.lb-actions .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.lb-nav, .lb-close {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 18, 26, .7); border: 1px solid var(--line-2); font-size: 20px; z-index: 2;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s .2s, background .2s, transform .4s var(--ease-back);
}
.lightbox.open .lb-nav, .lightbox.open .lb-close { opacity: 1; }
.lb-nav:hover, .lb-close:hover { background: var(--ink); color: var(--bg); transform: scale(1.08); }
.lb-close { top: 20px; right: 20px; font-size: 16px; }
.lb-prev { left: 24px; top: 50%; margin-top: -26px; }
.lb-next { right: 404px; top: 50%; margin-top: -26px; }
.lb-heart {
  position: absolute; width: 120px; height: 104px; pointer-events: none; z-index: 3;
  color: var(--pink); animation: bigheart .9s var(--ease) forwards;
}
@keyframes bigheart {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-20deg); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(1.25) rotate(6deg); opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
  100% { transform: translate(-50%, -140%) scale(.6); opacity: 0; }
}

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 6, 10, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px; padding: 36px;
  clip-path: inset(50% 0 50% 0 round 24px); opacity: 0;
  transition: clip-path .7s var(--ease), opacity .3s;
}
.modal.wide .modal-card { width: min(760px, 100%); }
.modal.open .modal-card { clip-path: inset(0 0 0 0 round 24px); opacity: 1; }
.modal-close { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; z-index: 2; background: var(--bg-2); }
.modal-close:hover { background: var(--ink); color: var(--bg); }
.modal h2 { font-family: var(--f-display); font-size: 34px; line-height: 1; margin: 0 0 8px; letter-spacing: -.02em; }
.modal .kicker { font-family: var(--f-pixel); font-size: 11px; color: var(--lime); letter-spacing: .15em; margin-bottom: 10px; }
.modal p.lead { color: var(--ink-2); margin: 0 0 24px; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 54px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: var(--ink-3); transition: color .2s, background .2s;
}
.pw-eye svg { width: 18px; height: 12px; display: block; }
.pw-eye:hover { color: var(--ink); background: var(--bg-3); }
.pw-eye::after { /* Strich durchs Auge = Passwort ist versteckt */
  content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: currentColor;
  transform: translate(-50%, -50%) rotate(-35deg); box-shadow: 0 0 0 1.5px var(--bg); transition: transform .25s var(--ease-back);
}
.pw-eye.on { color: var(--lime); }
.pw-eye.on::after { transform: translate(-50%, -50%) rotate(-35deg) scaleX(0); }
.pw-match { font-family: var(--f-pixel); font-size: 10px; letter-spacing: .08em; min-height: 13px; color: var(--ink-3); }
.pw-match.ok { color: var(--lime); }
.pw-match.bad { color: var(--pink); }
.input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line-2); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 84px; padding: 12px 16px; resize: vertical; }
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198, 255, 61, .12); }
.form-error { color: var(--pink); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.hint { color: var(--ink-3); font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 999px; margin-bottom: 26px; width: max-content; }
.tabs button { height: 36px; padding: 0 18px; border-radius: 999px; font-family: var(--f-pixel); font-size: 12px; color: var(--ink-2); transition: background .25s, color .25s; }
.tabs button.on { background: var(--lime); color: #0a0a0f; }
.tabs button:disabled { opacity: .35; }

/* upload */
.dropzone {
  display: block;
  position: relative; border: 2px dashed var(--line-2); border-radius: 18px; padding: 34px 20px; text-align: center;
  transition: border-color .25s, background .25s; overflow: hidden;
}
.dropzone:hover, .dropzone.over { border-color: var(--lime); background: rgba(198, 255, 61, .04); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { display: block; font-family: var(--f-pixel); font-size: 15px; letter-spacing: .05em; margin-bottom: 6px; }
.dropzone small { color: var(--ink-3); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.preview { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); animation: develop 1s var(--ease) both; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(10, 10, 15, .8); font-size: 11px; }
.preview .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--lime); width: 0; transition: width .2s; }
.preview.done::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(198, 255, 61, .55); color: #0a0a0f; font-size: 28px; font-weight: 700; }
.preview.fail::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 61, 139, .6); font-size: 28px; font-weight: 700; }
@keyframes develop { from { filter: brightness(3) saturate(0) blur(6px); transform: scale(.85) rotate(-4deg); } to { filter: none; transform: none; } }
.game-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.game-pick .chip { height: 36px; }
.progress { display: flex; gap: 3px; height: 14px; margin: 16px 0 6px; }
.progress i { flex: 1; background: var(--bg-3); transition: background .1s; }
.progress i.on { background: var(--lime); }

/* settings */
.avatar-edit { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.avatar-edit .avatar.lg { box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 6px var(--lime); }
.avatar-edit .col { display: grid; gap: 8px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 4px; margin: 22px 0; }
legend { font-family: var(--f-pixel); font-size: 11px; color: var(--ink-3); padding: 0 8px; letter-spacing: .1em; }

/* admin */
.admin-list { display: grid; gap: 8px; margin: 14px 0 20px; }
.admin-row {
  display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 12px;
  padding: 8px 10px 8px 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  animation: rowin .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes rowin { from { opacity: 0; transform: translateX(-12px); } }
.admin-row .input { height: 38px; border-color: transparent; background: transparent; padding: 0 8px; }
.admin-row .input:focus { border-color: var(--lime); }
.admin-row small { font-family: var(--f-pixel); font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.swatch { width: 36px; height: 36px; border-radius: 10px; border: 0; padding: 0; overflow: hidden; background: none; }
.swatch::-webkit-color-swatch-wrapper { padding: 0; }
.swatch::-webkit-color-swatch { border: 0; border-radius: 10px; }
.swatch::-moz-color-swatch { border: 0; border-radius: 10px; }
.x-btn { width: 34px; height: 34px; border-radius: 50%; color: var(--ink-3); transition: background .2s, color .2s; }
.x-btn:hover { background: var(--pink); color: #0a0a0f; }
.add-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; }
.add-row .swatch { width: 48px; height: 48px; }
.user-row { grid-template-columns: 44px 1fr auto; }
.switch { position: relative; width: 50px; height: 28px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2); transition: background .25s; flex: none; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2); transition: transform .35s var(--ease-back), background .25s; }
.switch.on { background: var(--lime); }
.switch.on::after { transform: translateX(22px); background: #0a0a0f; }
.switch-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 8px; }
.switch-label small { display: block; color: var(--ink-3); }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 150; display: grid; gap: 10px; justify-items: center; pointer-events: none; width: min(420px, calc(100vw - 32px)); }
/* HUD-Meldung: kantig, Pixel-Label, Typfarbe, ablaufender Timer-Balken */
.toast {
  --c: var(--ink-2);
  position: relative; display: flex; align-items: stretch; max-width: 100%; overflow: hidden;
  border-radius: 3px; background: rgba(12, 12, 18, .92); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.35;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45), 0 18px 40px -14px rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: hud-in .35s steps(4, end) both;
}
.toast-tag {
  display: grid; place-items: center; padding: 0 9px; flex: none;
  font-family: var(--f-pixel); font-size: 9px; font-weight: 400; letter-spacing: .12em; color: #0a0a0f; background: var(--c);
}
.toast > span { padding: 9px 14px 11px; }
.toast::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); opacity: .7;
  transform-origin: left; animation: toast-timer 3.2s linear forwards;
}
.toast.ok { --c: var(--lime); }
.toast.err { --c: var(--pink); }
.toast.egg { --c: var(--cyan); }
.toast.out, .achievement.out { animation: hud-out .3s steps(3, end) forwards; }
@keyframes toast-timer { to { transform: scaleX(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px) scale(.95); } }
@keyframes hud-in { from { opacity: 0; transform: translateY(-12px); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hud-out { to { opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 0 100%); } }
.achievement {
  display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px;
  background: #15151d; color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(198, 255, 61, .1);
  animation: ach-in .9s var(--ease) both; overflow: hidden; position: relative;
}
.achievement::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); transform: translateX(-100%); animation: shine 1.2s .6s var(--ease); }
@keyframes shine { to { transform: translateX(100%); } }
.achievement .trophy { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; flex: none; animation: spin-in .9s var(--ease-back) .2s both; }
.achievement .trophy svg { width: 22px; height: 22px; }
.achievement small { display: block; font-family: var(--f-pixel); font-size: 10px; color: var(--lime); letter-spacing: .1em; }
.achievement b { font-size: 14px; }
@keyframes ach-in { 0% { opacity: 0; max-width: 64px; } 30% { opacity: 1; max-width: 64px; } 100% { max-width: 420px; } }
@keyframes spin-in { from { transform: rotateY(540deg) scale(.4); } }

/* ---------- fx ---------- */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 160; overflow: hidden; }
.px { position: absolute; left: 0; top: 0; width: 7px; height: 7px; }
.plus1 { position: absolute; font-family: var(--f-pixel); font-weight: 700; color: var(--pink); font-size: 18px; text-shadow: 2px 2px 0 #0a0a0f; }

.drop-overlay {
  position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; pointer-events: none;
  background: rgba(198, 255, 61, .92); color: #0a0a0f; opacity: 0;
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); transition: clip-path .6s var(--ease), opacity .2s;
}
.drop-overlay.on { opacity: 1; clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.drop-overlay div { font-family: var(--f-display); font-weight: 800; font-size: clamp(80px, 18vw, 260px); line-height: .82; text-align: center; letter-spacing: -.04em; }
.drop-overlay span { display: block; font-family: var(--f-pixel); font-size: 14px; letter-spacing: .1em; font-weight: 400; margin-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lb-panel { left: 0; top: auto; width: auto; max-height: 46vh; padding: 22px 20px 28px; border-left: 0; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; transform: translateY(100%); gap: 16px; }
  .lb-next { right: 16px; top: 18px; margin-top: 0; width: 44px; height: 44px; }
  .lb-prev { left: 16px; top: 18px; margin-top: 0; width: 44px; height: 44px; }
  .lb-close { left: 50%; right: auto; margin-left: -22px; top: 18px; width: 44px; height: 44px; }
  .lb-caption { font-size: 17px; }
}
@media (max-width: 640px) {
  .topbar { padding: 14px 16px; gap: 10px; }
  .logo { font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
  .topnav { gap: 8px; }
  .btn { height: 40px; padding: 0 14px; }
  .icon-btn { width: 40px; height: 40px; }
  #loginBtn, #uploadBtn { font-size: 14px; }
  .hero { padding-top: 100px; }
  .hero-title .line:nth-child(2) { padding-left: 8vw; }
  .hero-sub { margin-left: 0; }
  .hero-stats { justify-content: flex-start; }
  .dock { border-radius: 22px; flex-wrap: wrap; justify-content: center; bottom: 10px; gap: 8px; }
  .dock-games { max-width: calc(100vw - 60px); order: 5; flex-basis: 100%; }
  .dock-sep:nth-of-type(2) { display: none; }
  .modal-card { padding: 28px 20px; border-radius: 20px; }
  .modal h2 { font-size: 28px; }
  .foot { padding-bottom: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card-media { opacity: 1; }
}

/* ==========================================================================
   Easter eggs
   ========================================================================== */
.hero-heart { cursor: pointer; pointer-events: auto; }

.foot-love, .foot-trophies { font: inherit; letter-spacing: inherit; color: inherit; transition: color .2s; }
.foot-love:hover { color: var(--pink); }
.foot-trophies { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.foot-trophies:hover { color: var(--lime); border-color: var(--lime); }
.foot-trophies span { color: var(--lime); }
.me-menu button small { font-family: var(--f-pixel); font-size: 10px; color: var(--lime); margin-left: 6px; }

/* trophy cabinet */
.trophy-progress { height: 10px; background: var(--bg-3); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.trophy-progress i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--lime) 0 8px, #a6e02a 8px 10px); border-radius: 999px; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.trophy-tile {
  display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line-2);
  animation: rowin .5s var(--ease) both; animation-delay: calc(var(--i) * 30ms);
}
.trophy-tile b { font-size: 14px; line-height: 1.2; }
.trophy-tile small { color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.trophy-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); font-family: var(--f-pixel); color: var(--ink-3); }
.trophy-ico svg { width: 18px; height: 18px; }
.trophy-tile.got { border-style: solid; border-color: rgba(198, 255, 61, .35); background: linear-gradient(160deg, rgba(198, 255, 61, .08), transparent 60%), var(--bg); }
.trophy-tile.got .trophy-ico { background: var(--lime); }
.trophy-tile.got small { color: var(--ink-2); }
.trophy-tile.plat.got { border-color: #ffd76a; background: linear-gradient(160deg, rgba(255, 215, 106, .18), transparent 70%), var(--bg); }
.trophy-tile.plat.got .trophy-ico { background: linear-gradient(135deg, #fff6c9, #ffd76a, #ffb93d); }

/* GG */
.gg-big {
  position: fixed; left: 50%; top: 50%; font-family: var(--f-pixel); font-weight: 700; font-size: min(34vw, 380px); line-height: 1;
  color: var(--lime); text-shadow: .04em .04em 0 var(--pink), -.03em -.03em 0 var(--cyan);
  animation: gg-pop 2.3s var(--ease) forwards;
}
@keyframes gg-pop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-25deg); opacity: 1; }
  18% { transform: translate(-50%, -50%) scale(1.15) rotate(4deg); }
  28% { transform: translate(-50%, -50%) scale(1) rotate(0); }
  75% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; filter: none; }
  100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; filter: blur(12px); }
}

/* love */
.love-duo {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 32px);
  background: radial-gradient(circle at 50% 50%, rgba(255, 61, 139, .28), transparent 55%);
  animation: ld-fade 4.3s forwards;
}
.love-duo .avatar.lg { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--pink), 0 20px 60px rgba(255, 61, 139, .5); }
.ld-a { animation: ld-in-a 1.1s var(--ease-back) both; }
.ld-b { animation: ld-in-b 1.1s var(--ease-back) both; }
.ld-heart { width: clamp(60px, 12vw, 110px); color: var(--pink); animation: ld-heart 1.6s var(--ease-back) .7s both, beat 1.4s steps(2) 2.3s infinite; filter: drop-shadow(0 0 30px rgba(255, 61, 139, .8)); }
.ld-heart svg { width: 100%; height: auto; display: block; }
.ld-text { position: absolute; top: calc(50% + 90px); font-family: var(--f-pixel); font-size: 16px; letter-spacing: .12em; color: var(--ink); animation: toast-in .8s var(--ease) 1.2s both; }
@keyframes ld-in-a { from { transform: translateX(-60vw) rotate(-30deg); } }
@keyframes ld-in-b { from { transform: translateX(60vw) rotate(30deg); } }
@keyframes ld-heart { from { transform: scale(0) rotate(-30deg); } }
@keyframes ld-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* glitch */
.glitched .card.seen .card-media, .glitched .hero-title, .glitched .logo { animation: glitchy .22s steps(2) infinite !important; }
.glitched .bg { filter: hue-rotate(140deg) saturate(2); }
@keyframes glitchy {
  0% { clip-path: inset(8% 0 34% 0); transform: translate(-7px, 0); filter: hue-rotate(90deg) saturate(3); }
  33% { clip-path: inset(52% 0 4% 0); transform: translate(7px, 2px); filter: contrast(1.8) hue-rotate(180deg); }
  66% { clip-path: inset(0 0 62% 0); transform: translate(-3px, -2px); filter: none; }
  100% { clip-path: inset(20% 0 20% 0); transform: translate(4px, 1px); filter: hue-rotate(-90deg); }
}

/* matrix */
.matrix { position: absolute; inset: 0; transition: opacity .8s; }
.access {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--f-pixel); font-size: clamp(22px, 5vw, 56px); color: #0a0a0f; background: var(--lime); padding: 10px 24px;
  animation: blink .5s steps(2) 4;
  white-space: nowrap;
}

/* pause */
.pause-screen {
  position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 16px;
  background: rgba(6, 6, 10, .72); backdrop-filter: blur(6px) grayscale(.8); -webkit-backdrop-filter: blur(6px) grayscale(.8);
}
.pause-box { display: grid; gap: 6px; justify-items: center; text-align: center; animation: toast-in .4s var(--ease) both; }
.pause-title { font-family: var(--f-pixel); font-weight: 700; font-size: clamp(56px, 14vw, 150px); line-height: 1; color: var(--ink); text-shadow: .05em .05em 0 var(--pink); animation: blink 1.2s steps(2) infinite; }
.pause-stats { font-family: var(--f-pixel); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; margin-bottom: 18px; }
.pause-item { font-family: var(--f-pixel); font-size: 18px; padding: 8px 18px; color: var(--ink-2); position: relative; transition: color .15s; }
.pause-item:hover, .pause-item:focus-visible { color: var(--lime); outline: none; }
.pause-item:hover::before, .pause-item:focus-visible::before { content: '>'; position: absolute; left: -6px; animation: blink .6s steps(2) infinite; }
.pause-box small { font-family: var(--f-pixel); font-size: 10px; color: var(--ink-3); margin-top: 18px; letter-spacing: .1em; }

/* AFK screensaver */
.saver { position: fixed; inset: 0; z-index: 145; background: #050508; opacity: 0; transition: opacity .7s; overflow: hidden; }
.saver.on { opacity: 1; }
.saver-bg { position: absolute; inset: 0; }
.saver-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s; filter: saturate(.85) brightness(.55); }
.saver-bg img.in { opacity: 1; animation: kenburns 9s linear both; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.18) translate(-2%, -1.5%); } }
.saver-logo {
  position: absolute; left: 0; top: 0; font-family: var(--f-pixel); font-weight: 700; font-size: clamp(40px, 7vw, 84px); line-height: 1;
  color: var(--lime); text-shadow: 0 0 30px currentColor; will-change: transform; transition: color .2s;
}
.saver-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-family: var(--f-pixel); font-size: 11px; color: var(--ink-3); letter-spacing: .15em; animation: blink 1.6s steps(2) infinite; white-space: nowrap; }

/* love letter */
.letter .kicker { text-align: center; }
.letter-paper {
  position: relative; margin: 6px 0 0; padding: 30px 28px 34px; border-radius: 6px; min-height: 260px;
  background: repeating-linear-gradient(180deg, transparent 0 33px, rgba(26, 26, 34, .09) 33px 34px), #f6f1e6;
  color: #22202a; font-family: 'Caveat', cursive; font-size: 25px; line-height: 34px; white-space: pre-wrap;
  transform: rotate(-1.2deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  animation: letter-in .9s var(--ease) both;
}
@keyframes letter-in { from { transform: rotate(-8deg) translateY(60px) scale(.9); opacity: 0; } }
.letter-caret { display: inline-block; width: 2px; height: 1em; background: #22202a; vertical-align: -.15em; animation: blink .9s steps(2) infinite; margin-left: 2px; }
.letter-seal { width: 54px; margin: -26px auto 0; position: relative; color: var(--pink); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); animation: ld-heart 1s var(--ease-back) .6s both; }
.letter-seal svg { width: 100%; height: auto; display: block; }

/* platinum */
.platinum .logo {
  background: linear-gradient(90deg, #ffd76a, #fff6c9, #ffb93d, #fff6c9, #ffd76a); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3s linear infinite;
}
.platinum .cursor-dot { background: #ffd76a; }
.platinum .foot-trophies { border-color: #ffd76a; color: #ffd76a; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   Gast-Likes & User-Verwaltung
   ========================================================================== */
.guest-av { --av: var(--bg-3); font-family: var(--f-pixel); font-size: 10px; color: var(--ink-2); }

.user-card {
  border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
  animation: rowin .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color .25s, box-shadow .25s;
}
.user-card .admin-row { border: 0; background: none; animation: none; }
.user-card.open { border-color: rgba(198, 255, 61, .4); box-shadow: 0 18px 50px -24px rgba(198, 255, 61, .35); }
.user-meta { min-width: 0; display: grid; gap: 2px; }
.user-meta b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-meta small { overflow: hidden; text-overflow: ellipsis; }
.you-tag, .admin-tag { font-style: normal; font-family: var(--f-pixel); font-size: 9px; padding: 2px 6px; border-radius: 6px; letter-spacing: .08em; }
.you-tag { background: var(--cyan); color: #0a0a0f; }
.admin-tag { background: var(--lime); color: #0a0a0f; }
.user-edit { height: 36px; padding: 0 14px; }
.user-manage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 4px 14px 14px;
  border-top: 1px dashed var(--line-2); margin: 0 6px;
  animation: user-open .4s var(--ease) both;
}
.user-manage[hidden] { display: none; }
.user-manage .field { margin: 12px 0 0; }
.user-manage .full, .user-manage .form-error, .user-switches, .user-actions { grid-column: 1 / -1; }
.user-switches { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.user-switches small { font-family: var(--f-pixel); font-size: 10px; color: var(--ink-3); }
.user-actions { justify-content: space-between; flex-wrap: wrap; }
@keyframes user-open { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 560px) {
  .user-manage { grid-template-columns: 1fr; }
  .user-row { grid-template-columns: 40px 1fr; }
  .user-row .user-edit { grid-column: 1 / -1; }
}

/* ==========================================================================
   Original ↔ KI-Version
   ========================================================================== */
.card-media .card-ai {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 100% 0 0); pointer-events: none;
  transition: clip-path .75s var(--ease), transform 1.2s var(--ease), filter .6s;
}
.card-media .card-ai:not([src]) { display: none; }
.card-media.ai-on .card-ai { clip-path: inset(0 0 0 0); }
.ai-scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1px; opacity: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, var(--cyan), #fff 50%, var(--pink));
  box-shadow: 0 0 14px 3px rgba(61, 217, 255, .8), 0 0 40px 8px rgba(255, 61, 139, .35);
}

.ai-switch {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 3px; border-radius: 999px; min-height: 28px;
  font-family: var(--f-pixel); font-size: 9px; letter-spacing: .06em; color: var(--ink-2);
  background: rgba(10, 10, 15, .72); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer; touch-action: manipulation; transition: border-color .25s, box-shadow .25s;
}
.ai-switch[hidden] { display: none; }
.ai-switch span { position: relative; z-index: 1; padding: 4px 8px; text-align: center; transition: color .3s; }
.ai-switch span:first-child { color: #0a0a0f; }
.ai-switch i {
  position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--ink); transition: transform .45s var(--ease-back), background .3s;
}
.ai-switch.on span:first-child { color: var(--ink-2); }
.ai-switch.on span:last-child { color: #0a0a0f; }
.ai-switch.on i { transform: translateX(100%); background: linear-gradient(120deg, var(--cyan), var(--pink)); }
.ai-switch.on { border-color: rgba(61, 217, 255, .5); box-shadow: 0 0 18px -4px rgba(61, 217, 255, .7); }
.ai-switch:hover { border-color: rgba(255, 255, 255, .35); }
.ai-switch.loading i { animation: blink .4s steps(2) infinite; }
.card.has-ai .card-new { top: 44px; }
@media (hover: none) { .ai-switch { min-height: 32px; font-size: 10px; } .ai-switch span { padding: 6px 10px; } }

/* lightbox */
.lb-scan {
  position: absolute; width: 3px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(180deg, var(--cyan), #fff 50%, var(--pink));
  box-shadow: 0 0 18px 4px rgba(61, 217, 255, .8), 0 0 60px 12px rgba(255, 61, 139, .35);
}
.ver-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); }
.ver-switch button { height: 38px; border-radius: 999px; font-family: var(--f-pixel); font-size: 12px; color: var(--ink-2); transition: background .3s, color .3s; }
.ver-switch button.on { background: var(--ink); color: #0a0a0f; }
.ver-switch button[data-ver="1"].on { background: linear-gradient(120deg, var(--cyan), var(--pink)); }
.lb-ai-manage { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.lb-ai-manage .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.lb-ai-manage.busy .btn { visibility: hidden; }
.lb-ai-manage.busy::after {
  content: 'KI-VERSION LÄDT … ' attr(data-p); position: absolute; inset: 0; display: flex; align-items: center;
  font-family: var(--f-pixel); font-size: 11px; color: var(--cyan); animation: blink .8s steps(2) infinite;
}

/* upload */
.preview .ai-pill {
  position: absolute; left: 5px; right: auto; top: auto; bottom: 9px; width: auto; height: 26px; padding: 0 9px 0 6px;
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  font-family: var(--f-pixel); font-size: 10px; color: var(--ink-2);
  background: rgba(10, 10, 15, .8); border: 1px solid rgba(255, 255, 255, .15); transition: background .25s, color .25s;
}
.preview .ai-pill b { width: 18px; height: 10px; border-radius: 999px; background: var(--bg-3); position: relative; transition: background .25s; }
.preview .ai-pill b::after { content: ''; position: absolute; left: 1px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); transition: transform .3s var(--ease-back), background .25s; }
.preview .ai-pill.on { color: #0a0a0f; background: linear-gradient(120deg, var(--cyan), var(--pink)); border-color: transparent; }
.preview .ai-pill.on b { background: rgba(10, 10, 15, .35); }
.preview .ai-pill.on b::after { transform: translateX(8px); background: #0a0a0f; }
.preview .ai-mini {
  position: absolute; left: 5px; top: 5px; width: 36%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  border: 2px solid var(--cyan); box-shadow: 0 4px 14px rgba(0, 0, 0, .6); animation: develop .6s var(--ease) both;
}
.ai-hint { margin: 6px 0 14px; }

/* ==========================================================================
   Easter-Egg-Hinweise: Combo-Leiste, Hinweis-Stufen, Tipps
   ========================================================================== */
.combo {
  position: fixed; left: 50%; bottom: 96px; z-index: 165; pointer-events: none;
  display: grid; justify-items: center; gap: 8px; padding: 10px 14px 12px;
  background: rgba(12, 12, 18, .9); border: 1px solid var(--line-2); border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .25s var(--ease);
}
.combo.show { opacity: 1; transform: translate(-50%, 0); }
.combo small { font-family: var(--f-pixel); font-size: 9px; letter-spacing: .14em; color: var(--ink-3); }
.combo-keys { display: flex; gap: 5px; }
.combo-keys i {
  width: 26px; height: 26px; display: grid; place-items: center; font-style: normal;
  font-family: var(--f-pixel); font-size: 12px; color: var(--ink-3); opacity: .55;
  border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg);
}
.combo-keys i.on { color: #0a0a0f; background: var(--lime); border-color: var(--lime); opacity: 1; animation: combo-pop .25s var(--ease-back); }
.combo-keys i.next { opacity: 1; border-color: var(--ink-2); animation: blink .7s steps(2) infinite; }
.combo.fail { border-color: var(--pink); animation: shake-x .35s; }
.combo.fail small { color: var(--pink); }
.combo.fail .combo-keys i.on { background: var(--pink); border-color: var(--pink); }
.combo.win { border-color: var(--lime); box-shadow: 4px 4px 0 rgba(0, 0, 0, .45), 0 0 40px -6px rgba(198, 255, 61, .6); }
.combo.win small { color: var(--lime); }
@keyframes combo-pop { from { transform: scale(.6); } }
@keyframes shake-x { 25% { transform: translate(calc(-50% - 6px), 0); } 75% { transform: translate(calc(-50% + 6px), 0); } }
@media (max-width: 640px) {
  .combo { bottom: 150px; }
  .combo-keys { gap: 3px; }
  .combo-keys i { width: 24px; height: 24px; font-size: 11px; }
}

/* Hinweis-Stufen im Trophäenschrank */
.trophy-tile:has(.hint-row) { grid-template-rows: auto auto 1fr auto; align-content: stretch; }
.trophy-tile:has(.hint-row) small { align-self: start; }
.hint-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.hint-pips { display: flex; gap: 3px; }
.hint-pips i { width: 6px; height: 6px; background: var(--bg-3); }
.hint-pips i.on { background: var(--cyan); }
.hint-btn {
  font-family: var(--f-pixel); font-size: 9px; letter-spacing: .08em; color: var(--cyan);
  padding: 4px 7px; border: 1px solid rgba(61, 217, 255, .35); border-radius: 3px; transition: background .2s, color .2s;
}
.hint-btn:hover { background: var(--cyan); color: #0a0a0f; }
.hint-btn[data-armed] { color: var(--pink); border-color: var(--pink); }
.hint-solved { font-family: var(--f-pixel); font-size: 9px; letter-spacing: .08em; color: var(--ink-3); }
.trophy-tile.solved { border-color: rgba(61, 217, 255, .3); }
.trophy-tile.solved small { color: var(--ink-2); }

/* Tipps im Pause-Menü und Bildschirmschoner */
.pause-tip, .saver-tip {
  display: flex; align-items: stretch; max-width: min(520px, calc(100vw - 32px)); text-align: left;
  background: rgba(12, 12, 18, .85); border: 1px solid rgba(61, 217, 255, .4); border-radius: 3px; font-size: 13px; line-height: 1.4;
}
.pause-tip { margin-top: 18px; }
.pause-tip b, .saver-tip b {
  display: grid; place-items: center; padding: 0 9px; flex: none; font-family: var(--f-pixel); font-size: 9px; font-weight: 400;
  letter-spacing: .12em; color: #0a0a0f; background: var(--cyan);
}
.pause-tip span, .saver-tip span { padding: 8px 12px; color: var(--ink); }
.saver-tip { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); width: max-content; }
.saver-tip[hidden] { display: none; }
