/* sozialberater.cyou */

* { box-sizing: border-box; margin: 0; }

html { background: #0b0c0e; } /* not on body, or it covers the #bg canvas */
html, body {
  height: 100%;
  color: #b8c0b8;
  font: 14px/1.55 ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* hex dump canvas (bg.js), then scanlines + vignette on top of it */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.18) 2px 3px),
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.7));
}

::selection { background: #e0443e; color: #000; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

#gate {
  position: fixed;
  inset: 0;
  width: 100%;
  color: #6b736b;
  letter-spacing: .08em;
}
#gate:hover, #gate:focus-visible { color: #e6e6e6; outline: none; }

.cur { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

#term {
  max-width: 760px;
  margin: 6vh auto;
  border: 1px solid #23262b;
  background: rgba(14,15,18,.9);
}

.bar {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  border-bottom: 1px solid #23262b;
  color: #555b63;
  font-size: 12px;
}
#mute:hover { color: #e6e6e6; }
.bar a { color: #555b63; text-decoration: none; }
.bar a:hover { color: #e6e6e6; }
.links { display: flex; gap: 12px; }
#join { color: #e0443e; }

.gap { margin-top: 12px; }
.me { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.me img { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #23262b; }
#eq { color: #e0443e; letter-spacing: 1px; }

/* the shell input, looks like the rest of the line */
.in {
  font: inherit;
  color: #e6e6e6;
  background: none;
  border: 0;
  outline: none;
  width: 70%;
  padding: 0;
  caret-color: #e0443e;
}

#out {
  padding: 14px 16px 22px;
  min-height: 60vh;
  white-space: pre-wrap;
  word-break: break-word;
}

/* prompt colors, roughly what zsh on kali gives you */
.b { color: #367bf0; }
.r { color: #e0443e; }
.dim { color: #555b63; }
.ok { color: #6ab04c; }
.w { color: #e6e6e6; }
#out a { color: #367bf0; text-decoration: none; }
#out a:hover { text-decoration: underline; }

/* whoami card */
.card {
  margin: 10px 0 14px;
  max-width: 420px;
  border: 1px solid #23262b;
  white-space: normal;
}
.card .banner {
  height: 120px;
  background: #15171b center / cover no-repeat;
  /* striped placeholder until banner.png exists */
  background-image: repeating-linear-gradient(-45deg, #15171b 0 6px, #111316 6px 12px);
}
.card .row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 0 14px;
  margin-top: -36px;
}
.av { position: relative; flex: none; }
.av img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 5px solid #0e0f12;
  background: #0e0f12;
}
.av .deco {
  position: absolute;
  inset: -8px;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 0;
  background: none;
}
.av i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #0e0f12;
  background: #555b63;
}
.av i.online { background: #23a55a; }
.av i.idle { background: #f0b232; }
.av i.dnd { background: #e0443e; }

.card .name { padding-bottom: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badges span { border: 1px solid #23262b; padding: 0 6px; font-size: 12px; color: #e6e6e6; }
.card .name b { color: #e6e6e6; font-size: 16px; }
.card .meta { padding: 10px 14px 14px; }
.card a {
  display: inline-block;
  margin-top: 10px;
  color: #367bf0;
  text-decoration: none;
}
.card a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  #term { margin: 0; border: 0; min-height: 100vh; }
  body { font-size: 13px; }
}
