/* Gäste-Seite und Studio von Stream Together (baut auf app.css auf) */

.jn-body {
  min-height: 100vh;
  background: radial-gradient(900px 500px at 50% -10%, var(--acc-dim), transparent 70%), var(--bg);
}

.jn-lang {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

.jn-lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 1.8rem 1rem 2.6rem;
}

.jn-lobby[hidden],
.jn-call[hidden],
.jn-lang[hidden] {
  display: none;
}

.jn-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.jn-brand img {
  width: 2.6rem;
  height: 2.6rem;
}

.jn-brand b {
  display: block;
  font-family: var(--logo);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.jn-brand small {
  color: var(--dim);
}

.jn-card {
  width: 100%;
  max-width: 62rem;
  margin-top: 1.4rem;
  padding: 1.8rem;
  border: 1px solid var(--line2);
  border-radius: 1.2rem;
  background: var(--panel);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.45);
}

.jn-card h1 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.15;
}

/* Hinweis für senior-labs-Streamer: deutlich, bevor man auf "Beitreten" klickt */
.jn-sl {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--acc);
  border-radius: 0.9rem;
  background: linear-gradient(90deg, var(--acc-dim), transparent);
  color: var(--txt);
  text-decoration: none;
}

.jn-sl:hover {
  box-shadow: 0 0 1.6rem var(--acc-glow);
}

.jn-sl img {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
}

.jn-sl-tx {
  flex: 1;
  min-width: 0;
}

.jn-sl-tx b {
  display: block;
}

.jn-sl-tx small {
  display: block;
  margin-top: 0.15rem;
  color: var(--dim);
  line-height: 1.45;
}

.jn-sl-go {
  flex: 0 0 auto;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--acc);
  color: var(--on-acc);
  font-weight: 700;
  white-space: nowrap;
}

.jn-or {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: -0.4rem 0 1rem;
  color: var(--dim);
  font-size: 0.85rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.jn-or::before,
.jn-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line2);
}

.jn-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.8rem;
  margin-top: 1rem;
}

.jn-cols .lbl:first-child {
  margin-top: 0;
}

.jn-light {
  font-weight: 400;
}

/* Vorschau mit Name und Pegel */
.jn-prev {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--acc);
  border-radius: 0.9rem;
  background: #0b0d10;
  box-shadow: 0 0 1.6rem var(--acc-dim);
}

.jn-prev video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.jn-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  color: var(--dim);
  text-align: center;
}

.jn-msg[hidden] {
  display: none;
}

.jn-name {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-left: 3px solid var(--acc);
  border-radius: 0.45rem;
  background: rgba(11, 13, 16, 0.8);
  font-weight: 700;
}

.jn-name:empty {
  display: none;
}

.jn-meter {
  height: 0.4rem;
  margin-top: 0.7rem;
  overflow: hidden;
  border-radius: 0.2rem;
  background: var(--line);
}

.jn-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acc);
  transition: width 0.08s;
}

/* Hintergrund-Kacheln */
.jn-bgs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.jn-bg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 2.6rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--line2);
  border-radius: 0.55rem;
  background: var(--field) center / cover;
  color: var(--dim);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.jn-bg:hover {
  border-color: var(--acc);
}

.jn-bg.on {
  border-color: var(--acc);
  box-shadow: 0 0 0.8rem var(--acc-glow);
  color: var(--txt);
}

.jn-bl {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #cfd8e3 0 16%, transparent 17%), linear-gradient(135deg, #5c3a1d, #3a2a4a);
}

.jn-bg span {
  position: relative;
  z-index: 1;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(8, 10, 14, 0.72);
  line-height: 1.3;
}

.jn-small {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.jn-tips {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--dim);
}

.jn-tips li {
  position: relative;
  margin: 0.35rem 0;
  padding-left: 1.4rem;
}

.jn-tips li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--acc);
}

.jn-go {
  width: 100%;
  margin-top: 1.3rem;
}

.jn-go svg,
.jn-bar svg,
.st-ico svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jn-foot {
  margin-top: 1.4rem;
  color: var(--dim);
  font-size: 0.85rem;
  text-align: center;
}

.jn-foot a {
  color: var(--dim);
}

/* Unsichtbarer Beobachter (wer ist gerade im Raum) */
.jn-observer {
  position: fixed;
  left: -20px;
  top: -20px;
  width: 2px;
  height: 2px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Im Raum */
.jn-call {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.jn-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line2);
  background: var(--panel);
}

.jn-grow {
  flex: 1;
}

.jn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line2);
  border-radius: 1.3rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.jn-pill i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0.5rem var(--ok);
}

.jn-pill.off i {
  background: var(--faint);
  box-shadow: none;
}

.jn-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.jn-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.jn-self {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  width: min(16rem, 32%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scaleX(-1);
  border: 2px solid var(--acc);
  border-radius: 0.7rem;
  background: #000;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
}

.jn-self.off {
  display: none;
}

/* Chat */
.jn-drawer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: none;
  flex-direction: column;
  width: 22rem;
  max-width: calc(100% - 2rem);
  padding: 1rem;
  border: 1px solid var(--line2);
  border-radius: 0.9rem;
  background: var(--panel);
}

.jn-drawer.open {
  display: flex;
}

.jn-drawer-head {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.jn-drawer-head b {
  flex: 1;
}

.jn-msgs {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  overflow: auto;
}

.jn-m {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg);
  overflow-wrap: anywhere;
}

.jn-m b {
  margin-right: 0.4rem;
  color: var(--acc-txt);
}

.jn-send {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.jn-bgpop {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 6;
  display: none;
  width: min(30rem, calc(100% - 2rem));
  padding: 1rem;
  transform: translateX(-50%);
  border: 1px solid var(--line2);
  border-radius: 0.9rem;
  background: var(--panel);
}

.jn-bgpop.open {
  display: block;
}

.jn-bgpop b {
  display: block;
  margin-bottom: 0.6rem;
}

.jn-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem;
  border-top: 1px solid var(--line2);
  background: var(--panel);
}

.jn-bar .btn {
  min-width: 8rem;
}

.jn-bar .btn.off,
.st-ico.off {
  border-color: rgba(248, 113, 113, 0.5);
  background: var(--danger-dim);
  color: var(--danger);
}

.jn-badge {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--acc);
  visibility: hidden;
}

.jn-badge.on {
  visibility: visible;
}

@media (max-width: 48rem) {
  .jn-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .jn-card {
    padding: 1.1rem;
  }

  .jn-card h1 {
    font-size: 1.6rem;
  }

  .jn-sl {
    flex-wrap: wrap;
  }

  .jn-sl-go {
    width: 100%;
    text-align: center;
  }

  .jn-bar .btn {
    flex: 1;
    min-width: 0;
  }

  .jn-bar .btn span {
    display: none;
  }
}
