/* vioo.tv – Layout: oben zwei Videos randlos (links Fremder, rechts du),
   unten links vier Knöpfe, unten rechts der Chat. */
:root {
  --page: #e4e4e4;
  --text: #333;
  --muted: #8a8a8a;
  --brand: #27b35a;
  --ink: #17191e;
  --ink-hi: #262a31;
  --red: #e5484d;
  --card: #ffffff;
  --card-line: #d9dbdf;
  --link: #2a9d6a;
  --bottom-h: clamp(150px, 26dvh, 280px);
  --gap: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--page);
  color: var(--text);
  font: 15px/1.4 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}
a { color: var(--link); }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Grundlayout ---------- */
.app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.videos {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.bottom {
  flex: none;
  height: var(--bottom-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---------- Videos ---------- */
.vbox { position: relative; overflow: hidden; min-height: 0; background: #000; }
.vbox video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;          /* füllt das Feld, ohne zu verzerren */
  background: #000;
}
.vbox.local video { transform: scaleX(-1); }
.vbox.local.env video { transform: none; }

/* Rauschen ("Griesel") beim Fremden, solange niemand verbunden ist */
.noise {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: #3a3a3a;
}
.vbox.remote video { opacity: 0; }
.vbox.remote.live video { opacity: 1; }
.vbox.remote.live .noise { display: none; }

.vstate {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center;
  pointer-events: none;
}
.vstate.gone { display: none; }

.idle-msg { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; }
.brand-big { display: flex; align-items: center; gap: 14px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.brand-big svg { width: clamp(56px, 8vw, 110px); height: auto; }
.brand-big span { font-size: clamp(40px, 6vw, 84px); font-weight: 800; letter-spacing: -1.5px; color: #fff; }
.brand-big small { font-size: .42em; font-weight: 700; letter-spacing: 0; opacity: .8; margin-left: 3px; }
.online-line {
  display: flex; align-items: center;
  background: rgba(0,0,0,.55); border-radius: 20px; padding: 5px 14px; font-size: 14px;
}
.online-line .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 8px; }
.ban-title { color: #ff8a8a; font-size: 22px; }
.ban-reason { font-size: 14px; color: #ddd; max-width: 380px; }
.idle-msg .ban-box { background: rgba(0,0,0,.6); border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }

.searching { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Punkte-Spinner */
.dots-spinner { position: relative; width: 64px; height: 64px; animation: spin 1.2s steps(12) infinite; }
.dots-spinner i {
  position: absolute; left: 50%; top: 50%;
  width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; background: #fff;
}
.dots-spinner i:nth-child(1)  { transform: rotate(0deg)   translate(26px); opacity: 1; }
.dots-spinner i:nth-child(2)  { transform: rotate(30deg)  translate(26px); opacity: .92; }
.dots-spinner i:nth-child(3)  { transform: rotate(60deg)  translate(26px); opacity: .84; }
.dots-spinner i:nth-child(4)  { transform: rotate(90deg)  translate(26px); opacity: .76; }
.dots-spinner i:nth-child(5)  { transform: rotate(120deg) translate(26px); opacity: .68; }
.dots-spinner i:nth-child(6)  { transform: rotate(150deg) translate(26px); opacity: .6; }
.dots-spinner i:nth-child(7)  { transform: rotate(180deg) translate(26px); opacity: .52; }
.dots-spinner i:nth-child(8)  { transform: rotate(210deg) translate(26px); opacity: .44; }
.dots-spinner i:nth-child(9)  { transform: rotate(240deg) translate(26px); opacity: .36; }
.dots-spinner i:nth-child(10) { transform: rotate(270deg) translate(26px); opacity: .28; }
.dots-spinner i:nth-child(11) { transform: rotate(300deg) translate(26px); opacity: .2; }
.dots-spinner i:nth-child(12) { transform: rotate(330deg) translate(26px); opacity: .12; }
@keyframes spin { to { transform: rotate(360deg); } }

.cam-off { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; color: #9a9a9a; }

.country-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 14px; padding: 4px 10px; border-radius: 4px;
}
.country-tag .flag { width: 22px; height: 16px; }
.vbox.local .country-tag { left: auto; right: 12px; }

.report-btn {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.55); color: #fff;
  border: 0; border-radius: 4px; padding: 6px 11px; font-size: 13px;
}
.report-btn:hover { background: #e04848; }

.local-tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff;
}
.icon-btn:hover { background: rgba(0,0,0,.75); }
.icon-btn[aria-pressed="true"] { background: #e04848; }

.userbox {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.userbox:empty { display: none; }
.userbox { background: rgba(0,0,0,.55); color: #fff; padding: 4px 10px; border-radius: 4px; }
.ub-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub-link { color: #cfd3d8; background: none; border: 0; padding: 0; font: inherit; text-decoration: none; }
.ub-link:hover { color: #fff; }
.ub-login { background: var(--brand); color: #fff; border: 0; border-radius: 4px; padding: 3px 12px; font-weight: 600; }

/* Gleichzeitig sichtbar: bis beide das Bild haben, leicht unscharf; dann kurz scharf überblenden */
.vbox.remote video { transition: filter .25s ease-out, transform .25s ease-out; }
.vbox.remote.pre-reveal video { filter: blur(var(--pre-blur, 14px)); transform: scale(1.06); }

/* Kamera/Mikrofon-Auswahl unten rechts im eigenen Bild */
.local-tools-right { position: absolute; right: 12px; bottom: 12px; z-index: 4; }
.dev-pop {
  position: absolute; right: 0; bottom: 44px;
  width: min(300px, 80vw);
  background: #fff; color: #333; border-radius: 8px; padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 8px;
}
.dev-pop label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: #666; }
.dev-pop select { font: inherit; font-size: 13.5px; padding: 7px 8px; border: 1px solid #ddd; border-radius: 6px; color: #333; background: #fff; max-width: 100%; }

/* Melden: Liste der letzten Gesprächspartner */
.recent-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; margin-bottom: 4px; }
.recent-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1px solid #e2e2e2; background: #f7f7f7; border-radius: 8px; padding: 6px; color: #333;
}
.recent-item:hover { border-color: #e04848; background: #fff3f3; }
.recent-thumb { width: 96px; height: 72px; flex: none; border-radius: 5px; overflow: hidden; background: #2a2a2a; display: grid; place-items: center; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.no-thumb { color: #999; font-size: 11px; }
.recent-info { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.recent-info b { font-size: 14.5px; }

/* Rechtliche Links – immer sichtbar */
.chat-panel { position: relative; }
.legal-links {
  position: absolute; top: 4px; right: 10px; z-index: 2;
  font-size: 11px; color: #aaa; background: rgba(255,255,255,.9); padding: 0 4px; border-radius: 3px;
}
.legal-links a { color: #999; text-decoration: none; }
.legal-links a:hover { color: var(--link); text-decoration: underline; }
.chat { padding-top: 20px !important; }

/* KI-Abdeckung */
.vbox.blurred video { filter: blur(40px) saturate(.4); transform: scale(1.15); }
.cover {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px; text-align: center;
  background: rgba(20, 22, 26, .85); color: #fff;
}
.cover strong { font-size: 18px; }
.cover span { font-size: 14px; color: #c9cdd4; max-width: 340px; }
.cover.small strong { font-size: 15px; }
.cover.small span { font-size: 12.5px; }

/* Kamera-Hilfe */
.vstate .cam-help {
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 360px; padding: 16px; text-align: center;
}
.cam-help strong { color: #fff; font-size: 17px; }
.cam-help span { font-size: 13.5px; color: #c9cdd4; }
.cam-retry { margin-top: 8px; border: 0; border-radius: 5px; padding: 9px 16px; background: var(--brand); color: #fff; font-weight: 600; }

/* ---------- Knöpfe unten links (eigenes vioo-Design: flach, stark abgerundet, mit Symbolen) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  background: var(--page);
  min-height: 0;
}
.tile {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: .4em;
  border: 0;
  border-radius: 22px;
  font-size: clamp(17px, 2vw, 34px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
  min-width: 0;
  padding: 0 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: background .15s, transform .08s, opacity .15s;
  user-select: none;
}
.tile:active:not(:disabled) { transform: scale(.97); }
/* Start / Weiter: schwarz mit grünem Symbol */
.tile-start { color: #fff; background: var(--ink); }
.tile-start:hover:not(:disabled) { background: var(--ink-hi); }
.tile-start::before {
  content: ""; flex: none; width: .82em; height: .82em; background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5v17l15-8.5z'/%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 24 24'%3E%3Cpath d='M6 3.5v17l15-8.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* läuft schon -> Symbol „weiter“ */
.tiles:has(#stopBtn:not(:disabled)) .tile-start::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5v14l9-7zM12 5v14l9-7z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5v14l9-7zM12 5v14l9-7z'/%3E%3C/svg%3E");
}
.tile-start.is-banned { background: #8d9096; }
.tile-start.is-banned::before { background: #d0d2d6; }
/* Stopp: weiß mit rotem Quadrat */
.tile-stop { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 2px var(--card-line); }
.tile-stop::before { content: ""; flex: none; width: .62em; height: .62em; border-radius: .14em; background: var(--red); }
.tile-stop:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--red); }
.tile-stop:disabled { opacity: .5; }
/* Land / Ich bin: weiß mit Rand */
.tile-light { color: #3d4046; background: var(--card); box-shadow: inset 0 0 0 2px var(--card-line); }
.tile-light:hover { box-shadow: inset 0 0 0 2px #b9bcc2; }
.tile-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-icon { display: inline-grid; place-items: center; flex: none; font-size: 1.05em; line-height: 1; }
.tile-icon .flag { width: 1.15em; height: .86em; border-radius: 4px; }
.tile-icon svg { width: 1em; height: 1em; }

/* ---------- Chat unten rechts ---------- */
.chat-panel {
  display: flex; flex-direction: column;
  background: #fff;
  min-height: 0;
}
.chat { flex: 1; overflow-y: auto; padding: 12px 14px; min-height: 0; }
.sysmsg { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.sysmsg-logo { width: 34px; height: 34px; flex: none; margin-top: 2px; }
.sysmsg-box {
  flex: 1;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 9px 12px;
  font-size: 14.5px;
  color: #333;
  max-width: 820px;
}
.sysmsg-links { margin-top: 4px; font-size: 14px; color: var(--muted); }
.sysmsg-links .warn { color: #e0a100; }

.messages { display: flex; flex-direction: column; gap: 6px; }
.sys { font-size: 13px; color: var(--muted); text-align: center; margin: 4px 0; }
.msg {
  max-width: 85%;
  padding: 6px 11px;
  border-radius: 12px;
  font-size: 15px;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.msg.me { align-self: flex-end; background: #dff3e8; border-bottom-right-radius: 3px; }
.msg.them { align-self: flex-start; background: #f0f0f0; border-bottom-left-radius: 3px; }
.msg.blocked { opacity: .5; text-decoration: line-through; }
.typing { font-size: 12px; color: var(--muted); padding: 0 14px 6px; }

.composer { display: flex; border-top: 1px solid #e2e2e2; }
.tr-btn {
  flex: none; width: 40px; border: 0; background: #fff; color: #9b9b9b;
  display: grid; place-items: center; border-right: 1px solid #eee;
}
.tr-btn:hover { color: #555; }
.tr-btn[aria-pressed="true"] { color: var(--brand); background: #e9f6ee; }
.msg.translated { padding-bottom: 5px; }
.msg-orig { font-size: 12px; color: #888; margin-top: 3px; border-top: 1px dashed #d8d8d8; padding-top: 2px; }
.msg-orig::before { content: "Original: "; }

/* Rundnachricht */
.broadcast {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 65;
  display: flex; align-items: center; gap: 10px;
  max-width: min(640px, calc(100% - 24px));
  background: #fff8db; color: #5c4a00; border: 1px solid #f0d77a;
  border-radius: 8px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18); font-size: 15px;
}
.broadcast button { border: 0; background: none; color: #8a7a3a; font-size: 15px; margin-left: 4px; }
.bc-icon { font-size: 18px; }

/* Rückfrage-Dialog */
.confirm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-light { background: #eee !important; color: #333 !important; }
.btn-danger { background: #e04848 !important; }
.ub-del { opacity: .75; }
.composer input {
  flex: 1; min-width: 0;
  border: 0; outline: none;
  padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--text);
  background: #fff;
}
.composer input::placeholder { color: #9b9b9b; }
.composer input:disabled { background: #fff; }
.composer button {
  display: none;              /* am PC reicht Enter */
  width: 48px; border: 0; background: var(--ink); color: #fff;
  place-items: center;
}
.composer button:disabled { background: #cfcfcf; }

/* ---------- Länderauswahl ---------- */
.flag { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -2px; }
.flag-none { display: inline-block; background: #c5c9cf; }
.flag-txt {
  display: inline-grid; place-items: center; background: #e6e6e6; color: #444;
  font: 700 9px/1 "Segoe UI", Arial, sans-serif; letter-spacing: .3px;
}
.country-tag .flag-txt { background: rgba(255,255,255,.85); }

/* Info oben im Chat: mit wem man verbunden ist */
.match-info {
  align-self: center;
  display: flex; align-items: center; gap: 8px;
  background: #f3f3f3; border-radius: 16px; padding: 5px 12px;
  font-size: 13.5px; color: #555; margin: 2px 0 6px;
}
.match-info .flag { width: 22px; height: 16px; }
.match-info b { color: #333; }

.sheet {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(0,0,0,.5);
  display: grid; place-items: center; padding: 16px;
}
.sheet-box {
  width: 100%; max-width: 640px; max-height: min(720px, 90dvh);
  background: #fff; border-radius: 10px;
  display: flex; flex-direction: column; overflow: hidden;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.sheet-head strong { font-size: 18px; }
.sheet-x { border: 0; background: #f0f1f3; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; color: #444a54; }
.sheet-search { padding: 4px 18px 6px; }
.sheet-search input {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 16px;
  border: 2px solid #dcdcdc; border-radius: 7px; outline: none;
}
.sheet-search input:focus { border-color: var(--brand); }
.sheet-note { padding: 0 18px 8px; font-size: 12.5px; color: var(--muted); }
.country-list { overflow-y: auto; padding: 4px 12px 16px; }
.c-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 14px 6px 6px; }
.c-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.c-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 10px;
  background: #f6f6f6; border: 2px solid transparent; border-radius: 7px;
  text-align: left; color: var(--text);
}
.c-item:hover { background: #ececec; }
.c-item.on { border-color: var(--brand); background: #e9f6ee; }
.c-flag { width: 30px; height: 22px; flex: none; display: grid; place-items: center; color: #4b5563; }
.c-flag .flag { width: 30px; height: 22px; border-radius: 3px; }
.c-flag svg { width: 24px; height: 24px; }
.c-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-check { color: var(--brand); font-weight: 800; }
.c-empty { padding: 30px; text-align: center; color: var(--muted); }

/* ---------- Dialoge ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: grid; place-items: center; z-index: 60; padding: 16px;
}
.modal-box { background: #fff; border-radius: 10px; padding: 22px; width: 100%; max-width: 400px; }
.modal-box h2 { margin: 0 0 8px; font-size: 19px; }
.modal-box p { margin: 0 0 14px; color: #555; }
.reason-list { display: flex; flex-direction: column; gap: 7px; }
.reason {
  width: 100%; padding: 12px 14px; text-align: left;
  background: #f6f6f6; border: 1px solid #e2e2e2; border-radius: 7px;
  font-size: 15px; font-weight: 500; color: var(--text);
}
#reasonList .reason:hover { background: #e04848; border-color: #e04848; color: #fff; }
.gender-list .reason { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.gender-list .reason:hover, .gender-list .reason.on { border-color: var(--brand); background: #e9f6ee; }
.g-emoji { font-size: 26px; line-height: 1; }
.link-btn { margin-top: 12px; background: none; border: 0; color: var(--muted); padding: 6px; width: 100%; }
.btn-ok { margin-top: 4px; width: 100%; padding: 11px; border: 0; border-radius: 6px; background: #222; color: #fff; font-weight: 600; }

.login-box p { font-size: 14px; }

/* Profil-Dialog */
.profile-box { display: flex; flex-direction: column; }
.field-label { font-size: 13px; font-weight: 600; color: #555; margin: 4px 0 6px; }
.gender-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.gender-pick input { position: absolute; opacity: 0; pointer-events: none; }
.gender-pick span {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px; border: 2px solid #e2e2e2; border-radius: 8px; background: #f7f7f7;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.gender-pick b { font-size: 30px; font-weight: 400; line-height: 1; }
.gender-pick input:checked + span { border-color: var(--brand); background: #e9f6ee; }
.gender-pick input:focus-visible + span { outline: 2px solid var(--brand); }
.profile-box input[type=date] {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 16px;
  border: 2px solid #e2e2e2; border-radius: 8px; outline: none; margin-bottom: 6px;
}
.profile-box input[type=date]:focus { border-color: var(--brand); }
.form-error { color: #d23c3c; font-size: 13.5px; min-height: 20px; margin-bottom: 4px; }
.btn-green { background: var(--brand) !important; font-size: 16px; }
.profile-box .login-small { margin: 10px 0 0; text-align: center; }
.login-btns { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.sso {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 15px;
}
.sso-google { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.sso-google:hover { background: #f7f8f8; }
.sso-facebook { background: #1877f2; color: #fff; border: 1px solid #1877f2; }
.sso-facebook:hover { background: #166fe0; }
.login-btns:empty::before { content: "Anmeldung ist noch nicht eingerichtet."; color: var(--muted); font-size: 14px; }
.login-small { font-size: 12px !important; color: var(--muted) !important; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #222; color: #fff;
  padding: 10px 16px; border-radius: 6px; font-size: 14px;
  z-index: 70; max-width: calc(100% - 32px); text-align: center;
}

/* =========================================================
   Hochformat (Handy, iPad hochkant): Fremder oben, du darunter,
   dann Knöpfe, dann Chat.
   ========================================================= */
@media (orientation: portrait) and (max-width: 1100px) {
  .videos { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .bottom {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .tiles { --gap: 8px; height: clamp(64px, 9dvh, 110px); }
  .tile { font-size: clamp(16px, 4.2vw, 30px); border-radius: 18px; }
  .chat { height: clamp(80px, 13dvh, 190px); flex: none; padding: 8px 12px; }
  .sysmsg-logo { width: 26px; height: 26px; }
  .sysmsg-box { font-size: 13px; padding: 7px 10px; }
  .sysmsg-links { font-size: 12.5px; }
  .composer button { display: grid; }
  .composer input { padding: 11px 12px; font-size: 16px; } /* 16px: iOS zoomt sonst rein */
  .brand-big span { font-size: clamp(34px, 9vw, 72px); }
  .brand-big svg { width: clamp(44px, 11vw, 90px); }
  .local-tools { left: 8px; bottom: 8px; }
  .country-tag, .report-btn, .userbox { top: 8px; }
  .country-tag { left: 8px; font-size: 13px; }
  .vbox.local .country-tag { right: 8px; }
  .report-btn { right: 8px; }
}

/* Kleine Handys: Text ohne Symbol daneben, damit "Ich bin" passt */
@media (orientation: portrait) and (max-width: 420px) {
  .tile-light { flex-direction: column; gap: 2px; font-size: 15px; }
  .tile-light .tile-icon { font-size: 20px; }
  .tile-start, .tile-stop { font-size: 18px; }
  .ub-name { max-width: 120px; }
}

/* Handy quer / niedrige Fenster: Knöpfe kompakter */
@media (orientation: landscape) and (max-height: 520px) {
  .bottom { height: 132px; }
  .tiles { --gap: 8px; }
  .tile { font-size: 20px; border-radius: 16px; }
  .composer button { display: grid; }
  .sysmsg-box { font-size: 13px; }
  .dots-spinner { transform: scale(.75); }
}

/* Schmalere Knöpfe (Laptop, iPad quer): Symbol unter den Text, damit "Ich bin" nicht abgeschnitten wird */
@media (orientation: landscape) and (max-width: 1360px) {
  .tile-light { flex-direction: column; gap: 6px; }
  .tile-light .tile-icon { font-size: 1.1em; }
}

/* Touch-Geräte: Senden-Knopf zeigen */
@media (hover: none) { .composer button { display: grid; } }

@media (max-width: 820px) {
  .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { place-items: end stretch; padding: 0; }
  .sheet-box { max-width: none; max-height: 88dvh; border-radius: 14px 14px 0 0; }
}

/* ---------- Mit Freunden live gehen: Karte rechts im eigenen Bild ---------- */
.live-card {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 3;
  width: min(210px, 44%);
  background: rgba(255,255,255,.96); color: #222; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); padding: 12px 12px 10px;
  display: flex; flex-direction: column; gap: 8px;
  animation: lc-in .35s ease-out;
}
@keyframes lc-in { from { opacity: 0; transform: translate(14px, -50%); } }
.lc-x { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #eee; color: #666; font-size: 11px; line-height: 1; }
.lc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #222; }
.lc-grid i { display: grid; place-items: center; font-style: normal; font-size: 20px; background: linear-gradient(135deg, #3a3f47, #23262b); }
.lc-grid i:nth-child(2) { background: linear-gradient(135deg, #2f4b3a, #1c2a21); }
.lc-grid i:nth-child(3) { background: linear-gradient(135deg, #4b3a2f, #2a211c); }
.lc-grid i:nth-child(4) { background: linear-gradient(135deg, #3a2f4b, #211c2a); }
.lc-text { display: flex; flex-direction: column; gap: 1px; padding-right: 14px; }
.lc-text b { font-size: 14px; line-height: 1.2; }
.lc-text span { font-size: 12px; color: #666; }
.lc-bar { height: 6px; background: #e8e8e8; border-radius: 3px; overflow: hidden; }
.lc-bar div { height: 100%; width: 0; background: var(--brand); border-radius: 3px; transition: width .4s; }
.lc-btn { border: 0; border-radius: 10px; padding: 8px 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; }
.lc-btn:hover { background: var(--ink-hi); }
.live-card.unlocked .lc-btn { background: var(--brand); }

/* Gruppen-Live: eigenes Bild zeigt den Splitscreen (nicht spiegeln) */
.vbox.local.group video { transform: none; }

/* Einladen / Gruppe */
.invite-box { max-width: 440px; }
.inv-link { display: flex; gap: 6px; margin-bottom: 10px; }
.inv-link input { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 14px; border: 2px solid #e2e2e2; border-radius: 8px; background: #f7f7f7; color: #333; }
.inv-link button { border: 0; border-radius: 8px; padding: 0 14px; background: var(--ink); color: #fff; font-weight: 600; }
.inv-count { margin: 12px 0 8px; font-size: 14px; color: #555; }
.inv-count b { font-size: 18px; color: #222; }
.inv-goals, .grp-guests { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.inv-goals li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #f6f6f6; font-size: 14px; }
.inv-goals li.done { background: #e9f6ee; }
.ig-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e2e2e2; font-weight: 700; font-size: 13px; }
.inv-goals li.done .ig-n { background: var(--brand); color: #fff; }
.ig-st { margin-left: auto; font-weight: 700; color: #888; white-space: nowrap; }
.inv-goals li.done .ig-st { color: var(--brand); }
.grp-guests li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #f6f6f6; font-size: 14px; }
.grp-guests li .gst { margin-left: auto; font-size: 12px; color: #888; }
.grp-guests li button { border: 0; background: #fde8e8; color: #c03a3a; border-radius: 6px; padding: 4px 10px; font-size: 12.5px; }
.grp-guests li.empty { color: #888; justify-content: center; }

/* Wen möchtest du treffen? */
.want-wrap { margin-top: 16px; }
.want-list { display: flex; flex-direction: column; gap: 7px; }
.want-list .reason { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.want-list .reason.on { border-color: var(--brand); background: #e9f6ee; }
.want-list .reason:disabled { opacity: .45; cursor: not-allowed; }
.want-lock { font-size: 13px; color: #8a6100; background: #fdf4e3; border-radius: 8px; padding: 8px 10px; margin: 8px 0 0 !important; }
.want-lock:empty { display: none; }
.fixed-gender { font-size: 14px; color: #555; }

/* Gast in einer Gruppe: nur „Verlassen“, kein Chat-Schreiben, kein Melden */
.guest-only { display: none; }
body.guest-mode .tiles { grid-template-columns: 1fr; }
body.guest-mode .tiles .tile:not(.guest-only) { display: none; }
body.guest-mode .guest-only { display: flex; }
body.guest-mode .composer, body.guest-mode #reportBtn, body.guest-mode .live-card { display: none !important; }

@media (orientation: portrait) and (max-width: 1100px) {
  .live-card { right: 8px; width: min(170px, 46%); padding: 9px; gap: 6px; border-radius: 13px; }
  .lc-grid { display: none; }
  .lc-text b { font-size: 12.5px; }
  .lc-btn { padding: 6px 8px; font-size: 12px; }
}
/* Gesperrt: alles tot – nur „Start“ zeigt den Sperr-Hinweis, Impressum & Co. bleiben erreichbar */
body.is-banned .tile:not(#startBtn),
body.is-banned .local-tools, body.is-banned .local-tools-right,
body.is-banned #reportBtn, body.is-banned .composer, body.is-banned .tr-btn {
  pointer-events: none !important; opacity: .4; filter: grayscale(1);
}
body.is-banned .live-card { display: none !important; }