:root {
  --bg: #050505;
  --fg: #f2f2f2;
  --muted: #8a8a8a;
  --card-bg: rgba(15, 15, 15, 0.55);
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* Eigener Cursor wie auf der Hauptseite (Standard-Design) */
html, body { cursor: url("../assets/cursor/arrow/cursor.svg") 6 3, auto; }
a { cursor: url("../assets/cursor/arrow/pointer.svg") 6 3, pointer; }

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  background-image: url("../assets/background/bg.jpg");
  background-size: cover;
  background-position: center;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.8) 75%, rgba(0,0,0,0.94) 100%);
}

.wall {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.wall-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 1.8rem;
}

.wall-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.5);
}

.wall-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.2rem 0 0;
}

.wall-sub { margin: 0; font-size: 0.8rem; color: var(--muted); }

.wall-back {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.wall-back:hover { color: var(--fg); text-decoration: underline; }

/* Masonry über CSS-Spalten */
.wall-grid {
  columns: 260px;
  column-gap: 1rem;
}

.wall-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.6), rgba(10, 10, 10, 0.55));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.wall-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.wall-card-head b { font-size: 0.82rem; font-weight: 600; }

.wall-card-head time { font-size: 0.68rem; color: var(--muted); white-space: nowrap; }

.wall-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.wall-sticker {
  display: block;
  max-width: 72px;
  max-height: 72px;
  margin-top: 0.5rem;
  border-radius: 10px;
}

/* Sticker-Reaktionen (gleiche Optik wie im Widget) */
.gb-reacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.gb-react {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.4rem;
  font-family: inherit;
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gb-react img { width: 16px; height: 16px; object-fit: contain; display: block; }

.gb-react:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.3); }

.gb-react.mine {
  color: var(--fg);
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.12);
}

.gb-react-add { padding: 0.15rem 0.5rem; font-size: 0.8rem; line-height: 1.2; }

.fly-sticker {
  position: fixed;
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  z-index: 50;
  animation: sticker-fly 0.7s ease-out forwards;
}

@keyframes sticker-fly {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, calc(-50% - 90px)) scale(1.9) rotate(14deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fly-sticker { display: none; }
}

.wall-empty {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.fade > * {
  opacity: 0;
  animation: fade-in-up 0.55s ease forwards;
}

.fade > *:nth-child(1) { animation-delay: 0.05s; }
.fade > *:nth-child(2) { animation-delay: 0.12s; }
.fade > *:nth-child(3) { animation-delay: 0.19s; }
.fade > *:nth-child(4) { animation-delay: 0.26s; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade > * { animation: none; opacity: 1; }
}
