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

* { box-sizing: border-box; }

/* ---------- Schriftarten (im Adminpanel wählbar, gelten für den Namen) ---------- */

@font-face { font-family: "Bebas Neue"; src: url("../assets/fonts/bebas.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("../assets/fonts/pixel.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("../assets/fonts/script.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "UnifrakturCook"; src: url("../assets/fonts/gothic.woff2") format("woff2"); font-display: swap; }

:root[data-font="bebas"] { --name-font: "Bebas Neue", sans-serif; }
:root[data-font="pixel"] { --name-font: "VT323", monospace; }
:root[data-font="script"] { --name-font: "Pacifico", cursive; }
:root[data-font="gothic"] { --name-font: "UnifrakturCook", serif; }

/* ---------- Eigener Cursor (Design im Adminpanel wählbar) ---------- */
/* Textfelder behalten den normalen Text-Cursor. */

:root {
  --cursor-main: url("../assets/cursor/arrow/cursor.svg") 6 3;
  --cursor-point: url("../assets/cursor/arrow/pointer.svg") 6 3;
}

:root[data-cursor="dot"] {
  --cursor-main: url("../assets/cursor/dot/cursor.svg") 12 12;
  --cursor-point: url("../assets/cursor/dot/pointer.svg") 12 12;
}

:root[data-cursor="cross"] {
  --cursor-main: url("../assets/cursor/cross/cursor.svg") 12 12;
  --cursor-point: url("../assets/cursor/cross/pointer.svg") 12 12;
}

:root[data-cursor="neon"] {
  --cursor-main: url("../assets/cursor/neon/cursor.svg") 7 4;
  --cursor-point: url("../assets/cursor/neon/pointer.svg") 7 4;
}

html, body {
  cursor: var(--cursor-main), auto;
}

a, button, summary, label, [role="button"], input[type="range"] {
  cursor: var(--cursor-point), pointer;
}

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;
}

/* ---------- Ankündigungs-Banner ---------- */

.announce {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--fg);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* wichtig: sonst überschreibt display:flex das hidden-Attribut (gleicher Bug wie beim Gästebuch-Panel) */
.announce[hidden] { display: none; }

.announce button {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.announce button:hover { color: var(--fg); }

.announce button svg { width: 13px; height: 13px; }

/* ---------- Hintergrund ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  background-image: url("../assets/background/bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 75%, rgba(0,0,0,0.92) 100%);
}

/* Video-Hintergrund: liegt über dem Bild, unter der Vignette */
.bg-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

:root[data-bg="video"] .bg-video { display: block; }

.bg-noise {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---------- Karte / Inhalt ---------- */

.card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.card > *:nth-child(1) { animation-delay: 0.05s; }
.card > *:nth-child(2) { animation-delay: 0.1s; }
.card > *:nth-child(3) { animation-delay: 0.15s; }
.card > *:nth-child(4) { animation-delay: 0.2s; }
.card > *:nth-child(5) { animation-delay: 0.25s; }
.card > *:nth-child(6) { animation-delay: 0.3s; }
.card > *:nth-child(7) { animation-delay: 0.35s; }
.card > *:nth-child(8) { animation-delay: 0.4s; }
.card > *:nth-child(9) { animation-delay: 0.45s; }
.card > *:nth-child(10) { animation-delay: 0.5s; }
.card > *:nth-child(11) { animation-delay: 0.55s; }
.card > *:nth-child(12) { animation-delay: 0.6s; }

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

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

.stats {
  align-self: flex-end;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.stat svg { width: 14px; height: 14px; }

/* Push-Glocke: gleiche Optik wie die Stat-Pillen, aber klickbar */
.push-bell {
  cursor: pointer;
  font: inherit;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.push-bell[hidden] { display: none; }

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

.push-bell.on {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55d;
  animation: online-blink 2.4s ease-in-out infinite;
}

@keyframes online-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .online-dot { animation: none; }
}

.avatar {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 1rem;
}

.avatar-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.03);
}

.status-dot {
  --status-rgb: 128, 132, 142;
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(var(--status-rgb));
  border: 3px solid var(--bg);
  animation: status-pulse 2s infinite;
  transition: background 0.3s ease;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--status-rgb), 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(var(--status-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--status-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}

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

.username {
  font-family: var(--name-font, inherit);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

/* Display-Fonts brauchen etwas mehr Größe, damit der Name gleich präsent wirkt */
:root[data-font="bebas"] .username { font-size: 1.7rem; letter-spacing: 0.04em; }
:root[data-font="pixel"] .username { font-size: 1.75rem; }
:root[data-font="script"] .username { font-size: 1.5rem; font-weight: 400; }
:root[data-font="gothic"] .username { font-size: 1.6rem; font-weight: 400; }

.discord-activity {
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

#discordActivityText { display: block; }

.recent-tracks {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.1rem;
}

.recent-tracks-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.recent-tracks-title::-webkit-details-marker { display: none; }

.recent-tracks-title::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-15%);
  transition: transform 0.2s ease;
}

.recent-tracks[open] .recent-tracks-title::after {
  transform: rotate(225deg) translateY(-15%);
}

.recent-tracks[open] .recent-tracks-title {
  margin-bottom: 0.25rem;
}

.recent-tracks-item {
  line-height: 1.5;
}

a.recent-tracks-item,
.discord-activity a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a.recent-tracks-item:hover,
.discord-activity a:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* ---------- Laufschrift für überlange Titel ---------- */

.scroll-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.scroll-text > span {
  display: inline-block;
  white-space: nowrap;
}

/* linksbündig, sobald gescrollt wird: zentrierter Überlauf würde beidseitig herausragen */
.scroll-text.scrolling { text-align: left; }

.scroll-text.scrolling > span {
  animation: marquee-shuttle var(--scroll-duration, 8s) ease-in-out infinite alternate;
}

@keyframes marquee-shuttle {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--scroll-distance, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-text.scrolling > span { animation: none; }
  .scroll-text,
  .scroll-text > span { white-space: normal; }
  .scroll-text.scrolling { text-align: center; }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* ---------- Wartungsmodus ---------- */

.maintenance-view[hidden] { display: none; }

.maintenance-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.maintenance-countdown {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  margin: 0.6rem 0 0;
}

.maintenance-countdown[hidden] { display: none; }

:root[data-maintenance="on"] #mainCard,
:root[data-maintenance="on"] .gb-widget,
:root[data-maintenance="on"] .announce {
  display: none;
}

.joined {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.joined svg { width: 15px; height: 15px; }

.location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.location svg { width: 15px; height: 15px; }

.bio {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d8d8d8;
  max-width: 32ch;
  margin: 0 0 1.6rem;
}

.bio.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--fg);
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bio.typing::after { animation: none; }
}

.socials {
  display: flex;
  gap: 0.9rem;
}

.socials a {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
}

.socials a svg { width: 17px; height: 17px; }

.socials a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  color: var(--fg);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.socials a:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Musik ---------- */

.audio-player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}

.play-btn {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  color: var(--fg);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 255, 255, 0.08);
}

.play-btn:active {
  transform: scale(0.95);
}

.play-btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.play-btn svg { width: 15px; height: 15px; }

/* Play-Dreieck optisch zentrieren */
.play-btn #playIcon { transform: translateX(1px); }

/* Icon-Wechsel über die .playing-Klasse: hidden wirkt auf Inline-SVGs nicht zuverlässig */
.play-btn #pauseIcon { display: none; }
.play-btn.playing #playIcon { display: none; }
.play-btn.playing #pauseIcon { display: block; }

.play-btn.playing {
  animation: play-pulse 2.2s ease-out infinite;
}

@keyframes play-pulse {
  0%   { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 255, 255, 0.18); }
  70%  { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .play-btn, .play-btn.playing { animation: none; transition: none; }
}

/* Weiter-Button: bewusst unauffällig — nur ein zartes Icon ohne Rahmen,
   das erst beim Hovern über den Player richtig sichtbar wird */
.next-btn {
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: -0.35rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--muted);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.15s ease, transform 0.15s ease;
}

.next-btn[hidden] { display: none; }

.next-btn svg { width: 11px; height: 11px; }

.audio-player:hover .next-btn { opacity: 1; }

.next-btn:hover { color: var(--fg); transform: scale(1.2); }

.next-btn:active { transform: scale(0.9); }

.next-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; opacity: 1; }

.player-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.track-title {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-vol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vol-icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.volume-slider {
  flex: 1;
  appearance: none;
  height: 3px;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--muted);
}

/* ---------- Gästebuch-Widget ---------- */

.gb-widget {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.gb-toggle {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gb-toggle svg { width: 20px; height: 20px; }

/* Icon-Wechsel über aria-expanded: hidden wirkt auf Inline-SVGs nicht zuverlässig */
.gb-toggle[aria-expanded="true"] #gbIconOpen { display: none; }
.gb-toggle:not([aria-expanded="true"]) #gbIconClose { display: none; }

.gb-panel {
  width: min(300px, calc(100vw - 2.2rem));
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.gb-panel.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .gb-panel { transition: none; }
}

.gb-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg);
}

.gb-wall-link {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.gb-wall-link:hover { color: var(--fg); }

.gb-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  max-height: 260px;
  overflow-y: auto;
  text-align: left;
}

.gb-entry {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}

.gb-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.gb-entry-name {
  font-weight: 700;
  color: var(--fg);
}

.gb-del {
  flex: none;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.gb-del:hover { color: #ed4245; }

.gb-del svg { width: 13px; height: 13px; }

.gb-entry-text {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #d8d8d8;
  word-break: break-word;
}

.gb-empty {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 0.4rem 0;
}

.gb-typing {
  display: flex;
  align-items: baseline;
  padding: 0 0.9rem 0.35rem;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--muted);
}

.gb-typing-dots span {
  animation: typing-dot 1.2s infinite;
}

.gb-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.gb-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gb-typing-dots span { animation: none; }
}

.gb-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--border);
}

.gb-form input {
  width: 100%;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--fg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}

.gb-form-row {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
}

.gb-form-row textarea {
  flex: 1;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--fg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  resize: none;
}

.gb-form input::placeholder,
.gb-form-row textarea::placeholder {
  color: var(--muted);
}

.gb-form input:focus,
.gb-form-row textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35);
}

.gb-send {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gb-send svg { width: 15px; height: 15px; }

.gb-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gb-form-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Privat-Umschalter: aktiv = Nachricht geht nur an Noah, nicht in die Liste */
.gb-private {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gb-private svg { width: 11px; height: 11px; }

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

.gb-private[aria-pressed="true"] {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

/* Sticker-Auswahl im Formular */
.gb-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.2rem;
}

.gb-stickers[hidden] { display: none; }

.gb-sticker-opt {
  width: 38px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gb-sticker-opt img { width: 100%; height: 100%; object-fit: contain; display: block; }

.gb-sticker-opt:hover { border-color: rgba(255, 255, 255, 0.3); }

.gb-sticker-opt.sel { border-color: var(--fg); background: rgba(255, 255, 255, 0.12); }

.gb-entry-sticker {
  display: block;
  max-width: 64px;
  max-height: 64px;
  margin-top: 0.3rem;
  border-radius: 8px;
}

/* Sticker-Reaktionen unter den Einträgen */
.gb-reacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.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; }

/* Sticker fliegt beim Reagieren kurz hoch */
.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; }
}

.gb-status {
  font-size: 0.72rem;
  color: var(--muted);
  min-height: 1em;
}

/* ---------- AFK-Screensaver ---------- */

.afk {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.afk.on { opacity: 1; }

.afk-clock {
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.afk-name {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 420px) {
  .card { padding-top: 3rem; }
  .bio { max-width: 26ch; }
}
