/* ══════════════════════════════════════════════════════════════════
   4ever1 PK-Board — Design
   Dunkles, modernes Bigo-Feeling: tiefes Nachtblau + Neon-Verlauf.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0B0B12;
  --bg-2:      #12121C;
  --card:      #171723;
  --card-2:    #1E1E2D;
  --line:      #2A2A3C;
  --line-soft: #23233340;
  --text:      #ECECF3;
  --muted:     #9A9AB0;
  --muted-2:   #6E6E85;

  --brand:     #B14BFF;   /* Violett */
  --brand-2:   #FF4D9D;   /* Pink   */
  --accent:    #37E0C8;   /* Türkis */
  --grad:      linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);

  --ok:        #2ED47A;
  --warn:      #FFB020;
  --danger:    #FF5A5A;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 8px 30px rgba(0,0,0,.45);
  --shadow-sm: 0 3px 12px rgba(0,0,0,.35);

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --topbar-h:    56px;
  --nav-h:       62px;
  --maxw:        640px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
.boot { min-height: 100dvh; display: grid; place-items: center; color: var(--muted); }
[hidden] { display: none !important; }

/* ── App-Gerüst ─────────────────────────────────────────────────── */
.app-shell { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: calc(var(--topbar-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex; align-items: center; gap: 10px;
  padding-left: 16px; padding-right: 12px;
  background: rgba(11,11,18,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .2px; }
.topbar .brand .dot {
  width: 26px; height: 26px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-size: 14px; box-shadow: 0 4px 14px rgba(177,75,255,.4);
}
.topbar .brand b { font-size: 17px; }
.topbar .brand span { color: var(--muted); font-weight: 600; font-size: 13px; }
.topbar .spacer { flex: 1; }
.topbar .icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 18px; display: grid; place-items: center;
}
.topbar .avatar-btn { padding: 0; overflow: hidden; }

.main {
  flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 14px 16px calc(var(--safe-bottom) + 28px);
}

/* ── Bottom-Nav ─────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; justify-content: space-around; align-items: stretch;
  background: rgba(15,15,24,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted-2); font-size: 10.5px; font-weight: 600; position: relative;
}
.bottom-nav a .ic { font-size: 21px; line-height: 1; transition: transform .15s; }
.bottom-nav a.active { color: var(--text); }
.bottom-nav a.active .ic { transform: translateY(-1px) scale(1.06); }
.bottom-nav a.active::before {
  content: ''; position: absolute; top: 8px; width: 30px; height: 30px; border-radius: 10px;
  background: radial-gradient(circle, rgba(177,75,255,.28), transparent 70%);
}
.bottom-nav a .badge-dot {
  position: absolute; top: 8px; right: calc(50% - 20px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--brand-2); color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg-2);
}

/* ── Karten / Sektionen ─────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 12px; }
.section-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .6px; margin: 22px 4px 10px; }
.section-title:first-child { margin-top: 6px; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.center { text-align: center; }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .big { font-size: 40px; margin-bottom: 10px; opacity: .8; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--card-2); color: var(--text);
  padding: 12px 16px; border-radius: 13px; font-size: 15px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn.block { display: flex; width: 100%; }
.btn.primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 6px 18px rgba(177,75,255,.35); }
.btn.ghost { background: transparent; }
.btn.ok { background: rgba(46,212,122,.14); border-color: rgba(46,212,122,.4); color: #7EF0AE; }
.btn.danger { background: rgba(255,90,90,.12); border-color: rgba(255,90,90,.4); color: #FF8A8A; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.pill { border-radius: 999px; }
.btn:disabled { opacity: .5; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

/* ── Formulare ──────────────────────────────────────────────────── */
label.field { display: block; margin-top: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 13px 14px; border-radius: 12px; font-size: 16px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(177,75,255,.18); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Auth ───────────────────────────────────────────────────────── */
.auth-wrap { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--safe-top) + 24px) 20px calc(var(--safe-bottom) + 24px); max-width: 460px; margin: 0 auto; }
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-logo .mark { width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 12px; background: var(--grad);
  display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 30px rgba(177,75,255,.45); }
.auth-logo h1 { margin: 0; font-size: 23px; letter-spacing: .3px; }
.auth-logo p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth-switch b { color: var(--brand-2); cursor: pointer; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; cursor: pointer; margin-bottom: 6px; }

/* Landing: Feature-Highlights */
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feat { display: flex; align-items: center; gap: 13px; padding: 14px 16px; }
.feat .fic { font-size: 24px; width: 30px; text-align: center; flex: none; }
.feat b { font-size: 15px; }

/* Übergang Startseite ⇄ Login/Registrieren (richtungsabhängig, mit Blur+Scale) */
#authbox { will-change: transform, opacity, filter; }
.auth-leave-fwd  { animation: authLeaveL .22s ease forwards; }
.auth-leave-back { animation: authLeaveR .22s ease forwards; }
.auth-enter-fwd  { animation: authEnterR .40s cubic-bezier(.16,.8,.24,1) both; }
.auth-enter-back { animation: authEnterL .40s cubic-bezier(.16,.8,.24,1) both; }
@keyframes authLeaveL { to { opacity: 0; transform: translateX(-30px) scale(.94); filter: blur(6px); } }
@keyframes authLeaveR { to { opacity: 0; transform: translateX(30px) scale(.94); filter: blur(6px); } }
@keyframes authEnterR { from { opacity: 0; transform: translateX(38px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes authEnterL { from { opacity: 0; transform: translateX(-38px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* Logo gibt beim Wechsel einen kleinen Puls (Anker-Gefühl) */
.auth-logo.switching .mark { animation: markPulse .5s ease; }
@keyframes markPulse { 30% { transform: scale(1.12) rotate(-4deg); } 60% { transform: scale(.96); } }

/* ── Avatare ────────────────────────────────────────────────────── */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--card-2); flex: none; }
.avatar.lg { width: 84px; height: 84px; }
.avatar.sm { width: 34px; height: 34px; }
.avatar.ph { display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); }

/* ── Badges / Chips ─────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.in   { background: rgba(46,212,122,.14); color: #7EF0AE; border-color: rgba(46,212,122,.35); }
.badge.out  { background: rgba(255,90,90,.12); color: #FF9A9A; border-color: rgba(255,90,90,.3); }
.badge.open { background: rgba(55,224,200,.12); color: var(--accent); border-color: rgba(55,224,200,.3); }
.badge.locked { background: rgba(255,176,32,.12); color: var(--warn); border-color: rgba(255,176,32,.3); }
.badge.admin { background: var(--grad); color: #fff; border: none; }
.badge.lead { background: rgba(255,176,32,.18); color: var(--warn); border: 1px solid rgba(255,176,32,.4); }
.badge.mod { background: rgba(55,224,200,.16); color: var(--accent); border: 1px solid rgba(55,224,200,.35); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── PK-Event-Karten ────────────────────────────────────────────── */
.pk-card { position: relative; overflow: hidden; }
.pk-card .date-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
  flex: none; line-height: 1;
}
.pk-card .date-tab .d { font-size: 21px; font-weight: 800; }
.pk-card .date-tab .m { font-size: 11px; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.pk-head { display: flex; gap: 13px; align-items: center; }
.pk-head .title { font-weight: 800; font-size: 16.5px; }
.pk-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pk-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--accent); }
.countdown.soon { color: var(--warn); }
.countdown.closed { color: var(--muted-2); }
.pk-desc { color: #C9C9D8; font-size: 14.5px; margin-top: 10px; white-space: pre-wrap; }

/* Slot-Liste (wer wann dran ist) */
.slot { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.slot:first-child { border-top: none; }
.slot .time { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 58px; }
.slot .who { flex: 1; }
.slot .who .n { font-weight: 700; }
.slot .who .vs { color: var(--muted); font-size: 13px; }
.slot.mine { background: linear-gradient(90deg, rgba(177,75,255,.10), transparent); margin: 0 -16px; padding: 11px 16px; border-radius: 12px; }

/* ── Timeline-Beiträge ──────────────────────────────────────────── */
.post .top { display: flex; align-items: center; gap: 11px; }
.post .top .n { font-weight: 700; }
.post .top .id { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.post .top .t { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.post .body { margin-top: 10px; white-space: pre-wrap; font-size: 15.5px; line-height: 1.5; }
.post .photo { margin-top: 11px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); }
.post .photo img { width: 100%; }
.post .actions { display: flex; gap: 18px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.post .actions button { background: none; border: none; color: inherit; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.post .actions button.liked { color: var(--brand-2); }

/* Composer */
.composer .row { display: flex; gap: 11px; align-items: flex-start; }
.composer textarea { border: none; background: transparent; padding: 8px 0; min-height: 46px; }
.composer .foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.composer .preview { margin-top: 10px; position: relative; border-radius: 12px; overflow: hidden; }
.composer .preview button { position: absolute; top: 8px; right: 8px; }

/* ── Profil ─────────────────────────────────────────────────────── */
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 6px; }
.profile-head .name { font-size: 21px; font-weight: 800; margin-top: 10px; }
.profile-head .id { color: var(--muted-2); font-size: 13px; font-weight: 600; }
.profile-head .mood { color: var(--accent); margin-top: 8px; font-size: 14.5px; }
.profile-head .facts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.avatar-edit { position: relative; }
.avatar-edit .cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); border: 3px solid var(--bg); display: grid; place-items: center; font-size: 14px; }

/* Geburtstage */
.bday { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.bday:first-child { border-top: none; }
.bday .when { margin-left: auto; text-align: right; }
.bday .when .d { font-weight: 800; }
.bday .when .s { color: var(--muted); font-size: 12px; }
.bday.today { background: linear-gradient(90deg, rgba(255,77,157,.12), transparent); margin: 0 -16px; padding: 12px 16px; border-radius: 12px; }

/* ── Admin: Slot-Editor ─────────────────────────────────────────── */
.slot-edit { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.slot-edit:first-child { border-top: none; }
.slot-edit .who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.slot-edit .inputs { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
.slot-edit input { padding: 9px 11px; font-size: 14px; }

/* ── Modal / Sheet ──────────────────────────────────────────────── */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.sheet { background: var(--bg-2); width: 100%; max-width: var(--maxw); border-radius: 22px 22px 0 0;
  border: 1px solid var(--line); border-bottom: none; padding: 20px 18px calc(var(--safe-bottom) + 22px);
  max-height: 88dvh; overflow-y: auto; box-shadow: var(--shadow); animation: sheet-up .22s ease; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: -6px auto 14px; }
.sheet h3 { margin: 0 0 4px; font-size: 18px; }

/* Kopierbares ID-Feld */
.copybox { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  font-family: ui-monospace, Menlo, monospace; font-size: 14px; white-space: pre-wrap; max-height: 220px; overflow-y: auto; }

/* ── Toast ──────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 22px); transform: translateX(-50%);
  z-index: 80; background: #23233A; color: #fff; border: 1px solid var(--line); padding: 12px 18px; border-radius: 14px;
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow); max-width: 90%; text-align: center;
  animation: toast-in .2s ease; }
.toast.err { background: #3A2030; border-color: rgba(255,90,90,.5); }
.toast.ok  { background: #1E3A2C; border-color: rgba(46,212,122,.5); }
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ── Diverses ───────────────────────────────────────────────────── */
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--brand-2); font-weight: 600; cursor: pointer; }
.divider { height: 1px; background: var(--line-soft); margin: 16px 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 16px);
  z-index: 50; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); max-width: var(--maxw); margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════════
   Bewegung & Effekte — dynamisch, aber performant (nur transform/opacity)
   ══════════════════════════════════════════════════════════════════ */

/* Animierter Aurora-Hintergrund (drei driftende Neon-Blobs) */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .30; will-change: transform; }
.aurora .a1 { width: 62vmax; height: 62vmax; top: -22%; left: -14%;
  background: radial-gradient(circle, var(--brand), transparent 62%); animation: drift1 20s ease-in-out infinite; }
.aurora .a2 { width: 55vmax; height: 55vmax; bottom: -20%; right: -16%;
  background: radial-gradient(circle, var(--brand-2), transparent 62%); animation: drift2 26s ease-in-out infinite; }
.aurora .a3 { width: 40vmax; height: 40vmax; top: 32%; right: 8%;
  background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .16; animation: drift3 32s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-7vw, -5vh) scale(.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-6vw, 8vh); } }

/* Gestaffeltes Einblenden von Inhalten */
.reveal { opacity: 0; animation: reveal .5s cubic-bezier(.2,.75,.25,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Karten & Links reagieren auf Druck */
.card, a.card, .btn, .bottom-nav a, .slot, .bday { transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
a.card:active, .pk-card:active { transform: scale(.985); }
.card.tap { animation: cardtap .3s ease; }
@keyframes cardtap { 50% { transform: scale(.97); } }

/* Ripple auf Buttons */
.btn { position: relative; overflow: hidden; }
.rip { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0);
  pointer-events: none; animation: rip .6s ease-out forwards; mix-blend-mode: overlay; }
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }

/* Primär-Button: leiser Glanz-Sweep beim Hover */
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); }
.btn.primary:hover::after { animation: sheen .8s ease; }
@keyframes sheen { to { transform: translateX(120%); } }

/* Like: Herz-Pop + aufsteigende Herzen */
.post .actions button.liked .hz { animation: heartpop .45s ease; display: inline-block; }
@keyframes heartpop { 0% { transform: scale(1); } 30% { transform: scale(1.5); } 55% { transform: scale(.85); } 100% { transform: scale(1); } }
.float-heart { position: fixed; z-index: 85; pointer-events: none; font-size: 18px; animation: floatup .9s ease-out forwards; }
@keyframes floatup { to { transform: translateY(-46px) scale(1.4); opacity: 0; } }

/* Bottom-Nav Tap-Hüpfer */
.bottom-nav a.tap .ic { animation: navpop .4s ease; }
@keyframes navpop { 40% { transform: translateY(-5px) scale(1.2); } }

/* Countdown „bald" pulsiert; LIVE-Badge pulsiert */
.countdown.soon { animation: softpulse 1.4s ease-in-out infinite; }
@keyframes softpulse { 50% { opacity: .5; } }
.badge.live { background: rgba(255,90,90,.16); color: #FF9A9A; border-color: rgba(255,90,90,.5); animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,90,.5); } 70% { box-shadow: 0 0 0 9px rgba(255,90,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,90,0); } }
.pk-card .date-tab { position: relative; overflow: hidden; }
.pk-card .date-tab::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%);
  transform: translateX(-100%); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

/* Logo schwebt (Login) */
.auth-logo .mark { animation: floaty 4.5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-7px); } }

/* Rotierender Verlaufs-Ring ums Profilbild */
.avatar-edit { padding: 3px; }
.avatar-edit::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 0deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }

/* Skeleton-Ladeanimation */
.skel { position: relative; overflow: hidden; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-line { height: 12px; border-radius: 6px; background: var(--card-2); margin: 8px 0; }
.skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; }
.skel-av { width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); flex: none; }

/* Konfetti */
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -24px; width: 9px; height: 14px; border-radius: 2px; opacity: .95; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(112vh) rotate(760deg); } }

/* Rücksicht auf Nutzer, die wenig Bewegung wollen */
@media (prefers-reduced-motion: reduce) {
  .aurora { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ══════════════════════════════════════════════════════════════════
   Edge-Menüs im Samsung-Galaxy-Edge-Stil (links = Navigation, rechts = Konto)
   ══════════════════════════════════════════════════════════════════ */
.edge-handle {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 46;
  width: 17px; height: 84px; cursor: pointer;
  display: grid; grid-template-columns: 1fr 1fr; align-content: center; justify-items: center; gap: 7px 4px;
  animation: edgeGlow 2.8s ease-in-out infinite;
  transition: box-shadow .2s, filter .15s;
}
.edge-handle i { width: 3.5px; height: 3.5px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 0 4px rgba(255,255,255,.45); }
.edge-handle:active { filter: brightness(1.18); }
.edge-handle.left  { left: 0;  border-radius: 0 11px 11px 0; background: linear-gradient(180deg, var(--brand), var(--brand-2)); box-shadow: 0 0 18px rgba(177,75,255,.65); }
.edge-handle.right { right: 0; border-radius: 11px 0 0 11px; background: linear-gradient(180deg, var(--brand-2), var(--accent)); box-shadow: 0 0 18px rgba(255,77,157,.6); }
@keyframes edgeGlow { 50% { opacity: .6; } }

.edge-backdrop { position: fixed; inset: 0; z-index: 47; background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.edge-backdrop.show { opacity: 1; pointer-events: auto; }

.edge-panel {
  position: fixed; top: 0; bottom: 0; z-index: 48; width: min(80vw, 312px);
  display: flex; flex-direction: column; gap: 6px;
  padding: calc(var(--safe-top) + 20px) 14px calc(var(--safe-bottom) + 20px);
  background: rgba(18,18,28,.86); backdrop-filter: saturate(150%) blur(22px); -webkit-backdrop-filter: saturate(150%) blur(22px);
  box-shadow: 0 0 60px rgba(0,0,0,.65);
  transition: transform .36s cubic-bezier(.16,.84,.24,1);
}
.edge-panel.left  { left: 0;  transform: translateX(-105%); border-right: 1px solid var(--line); border-radius: 0 28px 28px 0; }
.edge-panel.right { right: 0; transform: translateX(105%);  border-left: 1px solid var(--line);  border-radius: 28px 0 0 28px; }
.edge-panel.open { transform: translateX(0); }
.edge-panel .ep-head { display: flex; align-items: center; gap: 11px; padding: 4px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.edge-panel .ep-head .n { font-weight: 800; font-size: 16px; }
.edge-panel .ep-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; font-size: 15px; flex: none; }
.edge-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px;
  color: var(--text); font-weight: 700; font-size: 15.5px; cursor: pointer; transition: background .15s, transform .08s; }
.edge-item .ei { font-size: 21px; width: 26px; text-align: center; flex: none; }
.edge-item:active { transform: scale(.98); background: var(--card-2); }
.edge-item.active { background: linear-gradient(90deg, rgba(177,75,255,.20), transparent); }
.edge-panel.right .edge-item.active { background: linear-gradient(90deg, rgba(255,77,157,.20), transparent); }
.edge-item.danger { color: #FF8A8A; }

/* ══════════════════════════════════════════════════════════════════
   Premium-Metallic: Ränge Bronze · Silber · Gold · Platin
   ══════════════════════════════════════════════════════════════════ */
:root {
  --bronze-1: #E8A56B; --bronze-2: #94551F;
  --silber-1: #F5F7F9; --silber-2: #A3ACB7;
  --gold-1:   #FFE486; --gold-2:   #C99A1E;
  --platin-1: #F3F8FB; --platin-2: #9BB3C0;
}
.tier-badge {
  display: inline-flex; align-items: center; gap: 4px; position: relative; overflow: hidden;
  font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 3px 9px 3px 8px; border-radius: 999px; color: #2a1e0e;
  border: 1px solid rgba(255,255,255,.4); box-shadow: 0 1px 5px rgba(0,0,0,.4);
}
.tier-badge::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,.7) 50%, transparent 64%);
  transform: translateX(-120%); animation: tierShine 4.8s ease-in-out infinite; }
@keyframes tierShine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.tier-bronze { background: linear-gradient(135deg, var(--bronze-1), var(--bronze-2)); }
.tier-silber { background: linear-gradient(135deg, var(--silber-1), var(--silber-2)); color: #1c232b; }
.tier-gold   { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); }
.tier-platin { background: linear-gradient(135deg, var(--platin-1), var(--platin-2)); color: #1a2329; }
.tier-badge.sm { font-size: 9.5px; padding: 2px 7px; }

/* Metallic-Ring ums Profilbild je Rang (überschreibt den bunten Standardring) */
.avatar-edit.tier-bronze::before { background: conic-gradient(from 0deg, var(--bronze-1), var(--bronze-2), var(--bronze-1)); }
.avatar-edit.tier-silber::before { background: conic-gradient(from 0deg, var(--silber-1), var(--silber-2), var(--silber-1)); }
.avatar-edit.tier-gold::before   { background: conic-gradient(from 0deg, var(--gold-1), var(--gold-2), var(--gold-1)); }
.avatar-edit.tier-platin::before { background: conic-gradient(from 0deg, var(--platin-1), var(--platin-2), var(--platin-1)); }

/* Rang-Auswahl im Kontrollraum */
.tier-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tier-opt { flex: 1; min-width: 66px; text-align: center; padding: 10px 6px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); font-weight: 800; font-size: 12px; color: var(--muted); }
.tier-opt.sel { color: #1a1a1a; border-color: transparent; box-shadow: 0 0 0 2px var(--brand); }
.tier-opt.sel.tier-bronze, .tier-opt.b { background: linear-gradient(135deg, var(--bronze-1), var(--bronze-2)); color: #2a1e0e; }
.tier-opt.s { background: linear-gradient(135deg, var(--silber-1), var(--silber-2)); color: #1c232b; }
.tier-opt.g { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #2a1e0e; }
.tier-opt.p { background: linear-gradient(135deg, var(--platin-1), var(--platin-2)); color: #1a2329; }

/* ── Ausschluss-Screen (edel, würdevoll) ── */
.exclude-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 16px; padding: calc(var(--safe-top) + 30px) 26px calc(var(--safe-bottom) + 30px); max-width: 460px; margin: 0 auto; }
.exclude-seal { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 44px;
  background: radial-gradient(circle at 35% 30%, #2a2f36, #12151a);
  border: 2px solid transparent; background-clip: padding-box;
  box-shadow: 0 12px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  position: relative; }
.exclude-seal::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--platin-1), var(--gold-2), var(--silber-2), var(--platin-1)); animation: spin 8s linear infinite; }
.exclude-screen h1 { margin: 4px 0 0; font-size: 22px; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--platin-1), var(--gold-1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.exclude-screen p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.exclude-count { font-weight: 800; font-variant-numeric: tabular-nums; color: #2a2329;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); padding: 12px 20px; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(201,154,30,.35); }
.exclude-note { font-size: 13px; color: var(--muted-2); max-width: 340px; }

/* ── Anonymisierte Beiträge (Autor gelöscht) ── */
.post.anon .top .n { color: var(--muted); font-style: italic; font-weight: 600; }
.avatar.ghost, .avatar.ghost.sm { background: linear-gradient(135deg, #2a2a3c, #191922); color: var(--muted-2); }

/* Änderungs-Anträge (nur mit Freigabe änderbare Felder) */
.req-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.req-row:first-of-type { border-top: none; }
.req-row .rv { font-weight: 700; margin-top: 1px; }

/* ══════════════════════════════════════════════════════════════════
   Timeline v2 — Collage · Reaktionen · Kommentare · rote Box · Status-Chips
   ══════════════════════════════════════════════════════════════════ */

/* Status-Vorschläge im Composer */
.prompts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.prompt-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2);
  font-size: 13px; cursor: pointer; color: var(--muted); transition: transform .08s; }
.prompt-chip:active { transform: scale(.96); background: var(--card-2); }
.composer .previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.composer .previews .pv { position: relative; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); }
.composer .previews .pv img { width: 100%; height: 100%; object-fit: cover; }
.composer .previews .pv button { position: absolute; top: 3px; right: 3px; padding: 2px 7px; }
.composer .wichtig { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: #FF9A9A; }
.composer .wichtig input { width: auto; }

/* Bild-Collage (quadratisch, aneinandergepackt) */
.imgs { display: grid; gap: 3px; margin-top: 11px; border-radius: 14px; overflow: hidden; }
.imgs.c1 { grid-template-columns: 1fr; }
.imgs.c2 { grid-template-columns: 1fr 1fr; }
.imgs.c3 { grid-template-columns: 1fr 1fr 1fr; }
.imgs .im { position: relative; overflow: hidden; background: var(--card-2); cursor: pointer; }
.imgs:not(.c1) .im { aspect-ratio: 1 / 1; }
.imgs .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgs.c1 .im img { height: auto; max-height: 470px; }
.imgs .im .more { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }

/* Reaktionen + Aktionsleiste */
.actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; position: relative; }
.react-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.react-chip.mine { border-color: var(--brand); background: rgba(177,75,255,.18); }
.react-add, .cmt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card-2); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.cmt-btn.on { color: var(--text); border-color: var(--brand); }
.react-picker { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; display: flex; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; box-shadow: var(--shadow); animation: reveal .18s ease both; }
.react-picker span { font-size: 24px; cursor: pointer; padding: 3px 5px; border-radius: 10px; transition: transform .1s; }
.react-picker span:hover, .react-picker span:active { transform: scale(1.25); background: var(--card-2); }

/* Kommentare (mit Antworten + @Erwähnungen) */
.comments { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.cmt { display: flex; gap: 9px; padding: 7px 0; }
.cmt.reply { margin-left: 32px; }
.cmt .cbody { flex: 1; }
.cmt .cbody .cn { font-weight: 700; font-size: 13.5px; }
.cmt .cbody .ct { color: var(--muted-2); font-size: 11px; margin-left: 6px; }
.cmt .cbody .cx { font-size: 14.5px; margin-top: 2px; white-space: pre-wrap; line-height: 1.45; }
.cmt .cbody .cx .mention { color: var(--brand-2); font-weight: 700; }
.cmt .creply { color: var(--brand-2); font-size: 12px; font-weight: 600; cursor: pointer; margin-top: 3px; display: inline-block; }
.cmt-form { display: flex; gap: 8px; margin-top: 10px; }
.cmt-form input { flex: 1; padding: 10px 12px; font-size: 14.5px; }
.cmt-empty { color: var(--muted-2); font-size: 13px; padding: 6px 0; }

/* Rote Box für wichtige Admin-Infos */
.post.important { border: 1px solid rgba(255,90,90,.5); background: linear-gradient(180deg, rgba(255,90,90,.12), var(--card) 60%); }
.imp-tag { display: inline-flex; align-items: center; gap: 6px; color: #FF9A9A; font-weight: 800; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.imp-read { margin-top: 14px; }

/* Install-/Homescreen-Hinweis */
.install-bar b { font-size: 14.5px; }
.install-bar .ib-x { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.ios-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ios-step { display: flex; align-items: center; gap: 12px; }
.ios-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; flex: none; }
.ios-step .ic { font-size: 22px; }

/* Geburtstags-Banner mit Live-Timer */
.bday-banner { position: relative; overflow: hidden; border: 1px solid rgba(177,75,255,.28); }
.bday-banner .bb-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 12% 0%, rgba(177,75,255,.30), transparent 60%),
              radial-gradient(120% 90% at 100% 100%, rgba(255,77,157,.24), transparent 60%); }
.bday-banner .bb-inner { position: relative; display: flex; align-items: center; gap: 16px; }
.bday-banner .bb-label { font-size: 11px; font-weight: 800; letter-spacing: .7px; color: var(--brand-2); }
.bday-banner .bb-name { font-size: 21px; font-weight: 800; margin-top: 2px; }
.bday-banner .bb-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.bday-banner .bb-count { margin-top: 9px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); font-size: 15px; }
.bday-banner.today { border-color: rgba(255,77,157,.55); }
.bday-banner.today .bb-count { color: var(--brand-2); }
.feed-bday { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 13px 16px; text-decoration: none; color: var(--text); }
.feed-bday .accent { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ── Design-Politur (edler, „cooler") ── */
body { background: radial-gradient(150% 100% at 50% -12%, #16121f 0%, var(--bg) 52%) fixed; }
.topbar .brand b { background: linear-gradient(120deg, #ffffff 20%, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar { border-bottom: 1px solid rgba(177,75,255,.14); }
.card { border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.045); }
.section-title { display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 13px; border-radius: 3px; background: var(--grad); flex: none; }
.btn.primary { box-shadow: 0 7px 22px rgba(177,75,255,.42), inset 0 1px 0 rgba(255,255,255,.28); }
.pk-card .date-tab { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

/* ── Profil-Upgrade: Titelbild + Galerie ── */
.profile-card { padding: 0; overflow: hidden; }
.profile-cover { height: 148px; position: relative; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  background-size: cover; background-position: center; }
.profile-cover.has { background-color: var(--card-2); }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,11,18,.55)); }
.profile-cover .cover-cam { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 7px 12px; border-radius: 10px;
  border: none; background: rgba(0,0,0,.5); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); }
.profile-card .profile-head { padding: 0 16px 18px; margin-top: -48px; position: relative; z-index: 2; }
.profile-card .avatar-edit .avatar.lg { border: 4px solid var(--card); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery .gal-im, .gallery .gal-add { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; cursor: pointer; }
.gallery .gal-im img { width: 100%; height: 100%; object-fit: cover; }
.gallery .gal-add { display: grid; place-items: center; background: var(--bg-2); border: 1px dashed var(--line); color: var(--muted); font-size: 24px; font-weight: 800; line-height: 1; }
.gallery .gal-add span { display: block; font-size: 11px; font-weight: 700; margin-top: 2px; }

.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pm-item { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; cursor: pointer; }
.pm-item img { width: 100%; height: 100%; object-fit: cover; }
.pm-item .pm-badge { position: absolute; left: 4px; bottom: 4px; }

.photo-review { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr-item { background: var(--card-2); border-radius: 14px; overflow: hidden; }
.pr-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.pr-item .pr-by { padding: 8px 10px 4px; font-weight: 700; font-size: 13px; }
.pr-item .btn-row { padding: 6px 10px 10px; }

.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; animation: reveal .2s ease both; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lightbox .lb-x { position: fixed; top: calc(var(--safe-top) + 14px); right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 20px; }

/* ── Legendäres Profil-Hero (immersiv, eigenständig) ── */
.hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 322px; display: flex; align-items: flex-end;
  background: linear-gradient(150deg, var(--brand), var(--brand-2)); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,18,.06) 0%, rgba(11,11,18,.44) 44%, rgba(11,11,18,.95) 100%); }
.hero .cover-cam { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 7px 12px; border-radius: 10px; border: none;
  background: rgba(0,0,0,.5); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 24px 20px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-av { margin-bottom: 12px; }
.hero-av .avatar.lg { width: 110px; height: 110px; border: 3px solid rgba(255,255,255,.92); box-shadow: 0 12px 36px rgba(0,0,0,.6); }
.hero-name { font-size: 27px; font-weight: 900; letter-spacing: .3px; line-height: 1.1; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.hero-chips { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.hero-id { color: rgba(255,255,255,.72); font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.hero-mood { margin-top: 10px; font-size: 15.5px; color: #f1f1f8; font-style: italic; text-shadow: 0 1px 10px rgba(0,0,0,.55); max-width: 92%; }
.badge.glass { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn.glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(8px); }

/* m20 / w20 + Beziehungsstatus */
.ga-chip { display: inline-block; font-weight: 800; font-size: 12px; padding: 4px 11px; border-radius: 999px; color: #fff;
  box-shadow: 0 2px 9px rgba(0,0,0,.35); text-transform: lowercase; letter-spacing: .3px; vertical-align: middle; }
.ga-m { background: linear-gradient(135deg, #3AA0FF, #2C6FE0); }
.ga-w { background: linear-gradient(135deg, #FF6FB0, #E0468C); }
.ga-d { background: linear-gradient(135deg, #B14BFF, #8A2CE0); }

/* Zusammenhängender Identitäts-Chip: „w22 Lisa" in EINEM farbigen Element */
.idchip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; padding: 3px 12px 3px 8px;
  border-radius: 999px; color: #fff; text-decoration: none; box-shadow: 0 2px 9px rgba(0,0,0,.32); vertical-align: middle; }
.idchip .ga { font-weight: 900; font-size: 12px; text-transform: lowercase; padding: 1px 7px; border-radius: 999px;
  background: rgba(0,0,0,.22); letter-spacing: .3px; }
.idchip.g-m { background: linear-gradient(135deg, #3AA0FF, #2C6FE0); }
.idchip.g-w { background: linear-gradient(135deg, #FF6FB0, #E0468C); }
.idchip.g-d { background: linear-gradient(135deg, #B14BFF, #8A2CE0); }

/* Rotierendes Banner über dem Feed */
.rot-banner { padding: 0; overflow: hidden; }
.rot-track { position: relative; height: 66px; }
.rot-slide { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 0 18px;
  opacity: 0; transform: translateY(7px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; text-decoration: none; color: inherit; }
.rot-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.rot-ic { font-size: 26px; flex: none; }
.rot-txt .rot-t { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--brand-2); }
.rot-txt .rot-s { font-weight: 700; font-size: 15px; margin-top: 2px; }
.rot-txt .rot-s .accent { color: var(--accent); font-variant-numeric: tabular-nums; }
.rot-dots { display: flex; gap: 5px; justify-content: center; padding-bottom: 9px; }
.rot-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.rot-dot.on { background: var(--brand-2); width: 16px; border-radius: 3px; }

/* ── Sprach-Kommentare ── */
.cmt-audio { width: 100%; max-width: 260px; height: 38px; margin-top: 5px; }
.cmt-form .cmt-rec.rec { color: #FF5A5A; animation: softpulse 1s infinite; }
.cmt-audio-prev { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cmt-audio-prev audio { max-width: 220px; height: 34px; }

/* ── Profil-Hintergrund-Wähler ── */
.bg-picker { display: flex; flex-wrap: wrap; gap: 9px; }
.bg-sw { width: 42px; height: 42px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; position: relative;
  display: grid; place-items: center; font-size: 18px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.bg-sw.bg-icon { background: var(--card-2); }
.bg-sw.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--brand), inset 0 1px 0 rgba(255,255,255,.2); }
.bg-sw.sel:not(.bg-icon)::after { content: '✓'; position: absolute; font-size: 15px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.bg-custom input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Composer heftig */
.composer.framed { box-shadow: 0 10px 34px rgba(177,75,255,.20), 0 5px 18px rgba(0,0,0,.35); }
.composer textarea { font-size: 16.5px; }

/* ══════════════════════════════════════════════════════════════════
   WOW-Landing mit Neon-Licht
   ══════════════════════════════════════════════════════════════════ */
.neon-hero { position: relative; border-radius: 24px; padding: 30px 22px 24px; text-align: center;
  background: rgba(16,16,26,.72); backdrop-filter: blur(14px); overflow: hidden; }
.neon-hero::before { content: ''; position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 0%, rgba(177,75,255,.38), transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(255,77,157,.32), transparent 55%); }
.neon-hero::after { content: ''; position: absolute; inset: 0; border-radius: 24px; padding: 2px; pointer-events: none;
  background: linear-gradient(120deg, var(--brand), var(--brand-2), var(--accent), var(--brand)); background-size: 300% 300%;
  animation: neonflow 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.neon-hero > * { position: relative; z-index: 1; }
@keyframes neonflow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.nh-badge { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 1px; color: #fff; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 16px rgba(177,75,255,.7); margin-bottom: 14px; }
.nh-logo { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 34px rgba(177,75,255,.75); animation: floaty 4.5s ease-in-out infinite; }
.neon-title { margin: 0; font-weight: 900; line-height: .92; letter-spacing: 1px; font-size: 42px; color: #fff;
  text-shadow: 0 0 8px rgba(255,77,157,.9), 0 0 22px rgba(177,75,255,.85), 0 0 44px rgba(177,75,255,.5); }
.neon-title span { display: block; font-size: 30px; background: linear-gradient(120deg, var(--brand-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.nh-sub { color: var(--muted); font-size: 15px; margin: 12px 0 0; line-height: 1.5; }
.nh-sub b { color: #fff; }
.neon-btn { box-shadow: 0 0 22px rgba(177,75,255,.6), 0 6px 18px rgba(255,77,157,.35) !important; }

.wow-label { text-align: center; font-size: 12px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-2); margin: 26px 0 12px; }
.wow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wow-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px 12px; text-align: center;
  transition: transform .15s, box-shadow .2s; }
.wow-card:active { transform: scale(.97); }
.wow-card .wow-ic { font-size: 30px; display: block; margin-bottom: 8px; filter: drop-shadow(0 0 10px rgba(177,75,255,.75)); }
.wow-card b { display: block; font-size: 14.5px; }
.wow-card span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }

/* ── Geburtstags-Post ── */
.bday-post { text-align: center; background: linear-gradient(180deg, rgba(255,77,157,.16), var(--card) 62%); }
.bday-post .bp-emoji { font-size: 46px; line-height: 1; filter: drop-shadow(0 0 12px rgba(255,77,157,.7)); }
.bday-post .bp-head { font-size: 18px; font-weight: 800; margin-top: 8px; }
.bday-post .bp-sub { color: var(--muted); margin-top: 3px; }
.bday-post .actions { justify-content: center; margin-top: 14px; }

/* ── Kommentar-Reaktionen ── */
.crow { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; position: relative; }
.creact-chips { display: inline-flex; gap: 5px; }
.creact-chip { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; }
.creact-chip.mine { border-color: var(--brand); background: rgba(177,75,255,.18); }
.creact-add { cursor: pointer; font-size: 15px; opacity: .7; }
.creact-add:hover { opacity: 1; }
.creact-picker { position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 5; display: flex; gap: 3px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 6px 8px; box-shadow: var(--shadow); animation: reveal .16s ease both; }
.creact-picker span { font-size: 21px; cursor: pointer; padding: 2px 4px; border-radius: 8px; }
.creact-picker span:active { background: var(--card-2); }

/* ── Jappy-Status hinter dem Namen + Gefühls-Chips ── */
.status-txt { color: var(--muted); font-size: 13px; font-weight: 500; }
.feelings { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.feel-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: 13px; cursor: pointer; transition: transform .08s, background .15s; }
.feel-chip:active { background: var(--card-2); transform: scale(.96); }

/* ══════════════════════════════════════════════════════════════════
   Chat / Direktnachrichten
   ══════════════════════════════════════════════════════════════════ */
.conv-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; text-decoration: none; color: inherit; border-top: 1px solid var(--line-soft); }
.conv-row:first-child { border-top: none; }
.conv-mid { flex: 1; min-width: 0; }
.conv-name { font-weight: 700; }
.conv-last { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-right { text-align: right; flex: none; }
.conv-time { color: var(--muted-2); font-size: 11px; }
.conv-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-2); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; margin-top: 4px; }
#nc-list { max-height: 60vh; overflow-y: auto; }

.main.chat-mode { display: flex; flex-direction: column; overflow: hidden; padding: 12px 14px 0; }
.chat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex: none; }
.chat-head-u { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.chat-head-n { font-weight: 800; font-size: 16px; }
.chat-on { color: #7EF0AE; font-size: 12px; font-weight: 700; }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.msg { display: flex; }
.msg.mine { justify-content: flex-end; }
.msg .bubble { max-width: 80%; padding: 9px 13px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-soft); font-size: 15px; line-height: 1.4; word-break: break-word; }
.msg.mine .bubble { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; color: #fff; }
.msg .msg-time { display: block; font-size: 10px; opacity: .72; margin-top: 3px; text-align: right; }
.msg .cmt-audio { margin-top: 4px; max-width: 220px; }
.chat-composer { display: flex; align-items: center; gap: 8px; padding: 10px 0 calc(var(--safe-bottom) + 10px); flex: none; }
.chat-composer input { flex: 1; }
#dm-send { min-width: 46px; font-size: 18px; }
.dm-rec.rec { color: #FF5A5A; animation: softpulse 1s infinite; }
.nav-unread { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand-2); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }

/* „Legendäre" Buttons/Tap-Targets auf dem Smartphone */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; font-size: 15.5px; }
  .btn.sm { min-height: 40px; }
  .edge-item { min-height: 54px; }
  .conv-row, .lb-row, .slot, .bday { min-height: 52px; }
  .prompt-chip, .feel-chip, .react-chip, .tier-opt, .creact-chip { min-height: 36px; display: inline-flex; align-items: center; }
}
.rel-chip { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,77,157,.24); color: #FFC7DE; border: 1px solid rgba(255,77,157,.45); }
.rel-chip.single { background: rgba(46,212,122,.20); color: #9FF0C2; border-color: rgba(46,212,122,.45); }
.rel-chip.complicated { background: rgba(255,176,32,.20); color: #FFDD97; border-color: rgba(255,176,32,.45); }

/* ── Präsenz „gerade aktiv" ── */
.av-wrap { position: relative; display: inline-block; line-height: 0; }
.online-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #2ED47A;
  border: 2px solid var(--card); box-shadow: 0 0 7px rgba(46,212,122,.85); }
.hero-av .online-dot { width: 18px; height: 18px; border-width: 3px; }
.active-strip { display: flex; align-items: center; gap: 12px; }
.active-strip .as-label { font-weight: 800; font-size: 13px; color: #7EF0AE; white-space: nowrap; }
.active-strip .as-avs { display: flex; }
.active-strip .as-av { margin-left: -9px; }
.active-strip .as-av:first-child { margin-left: 0; }
.active-strip .as-av .avatar.sm { border: 2px solid var(--card); }

/* ── PK-Bestenliste ── */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.lb-row:first-child { border-top: none; }
.lb-medal { width: 30px; text-align: center; font-size: 21px; flex: none; }
.lb-medal .lb-rank { font-size: 14px; font-weight: 800; color: var(--muted); }
.lb-who { flex: 1; min-width: 0; }
.lb-who .lb-n { font-weight: 700; }
.lb-count { text-align: right; flex: none; }
.lb-count b { font-size: 18px; font-weight: 800; color: var(--brand-2); }
.lb-count span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* ── Edler Gradient-Rahmen für markante Container ── */
.card.framed { position: relative; }
.card.framed::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, rgba(177,75,255,.75), rgba(255,77,157,.35) 45%, rgba(55,224,200,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ═══ Rich-Composer: Zielgruppe, Farb-Hintergründe ═══ */
.composer .c-head { display: flex; gap: 11px; align-items: center; }
.composer .c-headmid { display: flex; flex-direction: column; gap: 3px; }
.composer .c-name { font-weight: 800; font-size: 14.5px; }
.aud-btn { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.aud-btn .caret { opacity: .7; }
.aud-btn.custom { color: #FF9ED0; border-color: rgba(255,77,157,.4); background: rgba(255,77,157,.1); }
.composer .c-textwrap { margin-top: 11px; border-radius: 14px; transition: background .2s; }
.composer .c-textwrap textarea { width: 100%; border: none; background: transparent; padding: 8px 2px; min-height: 46px; resize: none; color: var(--text); font: inherit; }
.composer .c-textwrap.has-bg { padding: 22px 16px; min-height: 120px; display: grid; place-items: center; box-shadow: inset 0 1px 20px rgba(0,0,0,.25); }
.composer .c-textwrap.has-bg textarea { text-align: center; font-size: 21px; font-weight: 800; color: #fff; min-height: 40px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.composer .c-textwrap.has-bg textarea::placeholder { color: rgba(255,255,255,.75); }

.bgsw-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bgsw-aa { font-weight: 900; font-size: 15px; background: linear-gradient(135deg,#B14BFF,#37E0C8); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 2px; }
.bgsw { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); cursor: pointer; flex: none; transition: transform .12s; }
.bgsw:active { transform: scale(.9); }
.bgsw.off { background: var(--bg-2); }
.bgsw.selected { border-color: var(--card); box-shadow: 0 0 0 2px var(--accent); transform: scale(1.06); }

/* Farb-Text-Beitrag in der Timeline */
.post .post-bg { margin-top: 11px; border-radius: 16px; min-height: 150px; display: grid; place-items: center; padding: 26px 20px; box-shadow: inset 0 1px 24px rgba(0,0,0,.28); }
.post .post-bg .pb-text { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.35; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.42); word-break: break-word; }
.post .post-bg .pb-text a { color: #fff; text-decoration: underline; }
.vis-badge { margin-left: 7px; opacity: .8; font-size: 12px; }

/* Zielgruppen-Sheet */
.aud-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer; }
.aud-opt.static { cursor: default; }
.aud-opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.aud-opt .ao-ic { font-size: 20px; flex: none; }
.au-list { max-height: 46vh; overflow-y: auto; margin: 0 -4px; }
.au-row { display: flex; align-items: center; gap: 11px; padding: 9px 4px; border-top: 1px solid var(--line-soft); cursor: pointer; }
.au-row .au-mid { flex: 1; min-width: 0; }
.au-row .au-cb { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }

/* ═══ Anrufe (WebRTC) — Overlay ═══ */
.call-btn { margin-left: 2px; font-size: 17px; }
.chat-head .call-btn:last-child { margin-right: 2px; }
#rtc-overlay.rtc { position: fixed; inset: 0; z-index: 4000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #241633, #0b0b12 70%); animation: rtcIn .25s ease; }
@keyframes rtcIn { from { opacity: 0; } to { opacity: 1; } }

.rtc .rtc-glow { position: absolute; top: 14%; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(177,75,255,.5), transparent 65%); filter: blur(20px); animation: rtcPulse 2.4s ease-in-out infinite; }
@keyframes rtcPulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }

.rtc-peer { display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 1; text-align: center; padding: 0 24px; }
.rtc-av { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 48px rgba(0,0,0,.5); }
.rtc-av-ph { display: grid; place-items: center; font-size: 52px; font-weight: 800;
  background: linear-gradient(135deg, #B14BFF, #37E0C8); color: #fff; }
.rtc-name.big { font-size: 26px; font-weight: 800; }
.rtc-sub { font-size: 15px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }

.rtc-actions, .rtc-controls { display: flex; gap: 30px; align-items: center; justify-content: center; z-index: 2;
  position: absolute; bottom: calc(var(--safe-bottom, 0px) + 46px); }
.rtc.video .rtc-controls { bottom: calc(var(--safe-bottom, 0px) + 34px); }
.rtc-ctl { width: 66px; height: 66px; border-radius: 50%; border: none; cursor: pointer; font-size: 26px;
  display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px);
  transition: transform .12s, background .15s; }
.rtc-ctl:active { transform: scale(.9); }
.rtc-ctl.off { background: #fff; color: #12121c; }
.rtc-ctl.accept { background: #22C55E; box-shadow: 0 8px 28px rgba(34,197,94,.5); animation: rtcBob 1.1s ease-in-out infinite; }
.rtc-ctl.decline, .rtc-ctl.hang { background: #FF3B49; box-shadow: 0 8px 28px rgba(255,59,73,.45); }
@keyframes rtcBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Video-Ansicht */
.rtc.video { background: #05050a; }
.rtc-remote-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #05050a; }
.rtc-local-video { position: absolute; top: calc(var(--safe-top, 0px) + 14px); right: 14px; width: 104px; height: 150px;
  object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 6px 22px rgba(0,0,0,.5);
  z-index: 3; background: #12121c; transform: scaleX(-1); }
.rtc-topbar { position: absolute; top: calc(var(--safe-top, 0px) + 16px); left: 16px; z-index: 3; display: flex;
  flex-direction: column; gap: 3px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rtc-topbar .rtc-name { font-size: 19px; font-weight: 800; }
.rtc-topbar .rtc-dur { font-size: 13px; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }

/* ═══ Marken-Emblem (4ever1.tv) statt Schwerter ═══ */
.topbar .brand .brand-logo { height: 30px; width: auto; display: block; filter: drop-shadow(0 1px 5px rgba(0,0,0,.55)); }
.auth-logo .mark-logo { width: min(280px, 74vw); height: auto; margin: 0 auto 14px; display: block;
  filter: drop-shadow(0 6px 22px rgba(201,162,39,.4)); animation: floaty 4.5s ease-in-out infinite; }
.nh-logo-img { width: min(300px, 80vw); height: auto; margin: 2px auto 16px; display: block;
  filter: drop-shadow(0 10px 34px rgba(255,206,84,.45)); animation: floaty 5s ease-in-out infinite; }
.edge-panel .ep-head .ep-logo { height: 30px; width: auto; display: block; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }

/* ═══ Gelesen-Markierung + anonyme Admin-Posts ═══ */
.c-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.aud-btn.on { color: #12121c; background: var(--accent); border-color: var(--accent); font-weight: 800; }

.new-badge { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px; font-size: 10px;
  font-weight: 900; letter-spacing: .4px; color: #12121c; background: linear-gradient(135deg,#37E0C8,#B14BFF);
  vertical-align: middle; cursor: pointer; animation: newPulse 1.8s ease-in-out infinite; }
@keyframes newPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.post.unread { position: relative; }
.post.unread::after { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: linear-gradient(#37E0C8,#B14BFF); }

.avatar.ph.mask { background: linear-gradient(135deg,#2a2a3c,#12121c); }
.anon-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px;
  font-weight: 800; color: var(--muted); border: 1px solid var(--line); background: var(--bg-2); vertical-align: middle; }
.post.admin-anon { border-color: rgba(154,154,176,.25); }

/* ═══ „Was ist neu" – Team-Posts (rötlich) ═══ */
.team-post { position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,74,90,.16), rgba(255,74,90,.05) 55%, var(--card));
  border: 1px solid rgba(255,90,90,.32); }
.team-post::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(#FF5A5A, #FF4D9D); }
.team-post .tp-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .3px; color: #FFB4B4; text-transform: uppercase; margin-bottom: 8px; }
.team-post .tp-title { font-size: 18px; font-weight: 800; margin: 2px 0 6px; }
.team-post .tp-body { font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.team-post .tp-img { margin-top: 11px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); }
.team-post .tp-img img { width: 100%; display: block; }
.team-post .tp-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255,90,90,.18); font-size: 12.5px; color: var(--muted); }
.team-post .tp-by { font-weight: 700; color: var(--text); }
.team-post.unread { box-shadow: 0 0 0 1px rgba(255,90,90,.35), 0 8px 30px rgba(255,74,90,.15); }

/* ═══ Team-Post Farben (rot/orange/gelb/grün) + Event-Paarungen ═══ */
.team-post.c-red    { --tpc: 255,90,90; }
.team-post.c-orange { --tpc: 255,154,60; }
.team-post.c-yellow { --tpc: 255,200,60; }
.team-post.c-green  { --tpc: 53,208,127; }
.team-post { background: linear-gradient(160deg, rgba(var(--tpc,255,90,90),.16), rgba(var(--tpc,255,90,90),.05) 55%, var(--card));
  border-color: rgba(var(--tpc,255,90,90),.32); }
.team-post::before { background: linear-gradient(rgb(var(--tpc,255,90,90)), rgba(var(--tpc,255,90,90),.55)); }
.team-post .tp-flag { color: rgb(var(--tpc,255,90,90)); }
.team-post .tp-foot { border-top-color: rgba(var(--tpc,255,90,90),.18); }
.team-post.unread { box-shadow: 0 0 0 1px rgba(var(--tpc,255,90,90),.35), 0 8px 30px rgba(var(--tpc,255,90,90),.15); }

/* VS-Banner */
.tp-matches { margin-top: 12px; border-radius: 13px; padding: 10px 13px; background: rgba(0,0,0,.28);
  border: 1px solid rgba(var(--tpc,255,90,90),.28); }
.tp-matches-h { font-size: 11px; font-weight: 800; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.tp-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.tp-vs:first-of-type { border-top: none; }
.tp-vs .vid { font-weight: 800; font-size: 15.5px; word-break: break-word; }
.tp-vs .vid:first-child { text-align: right; }
.tp-vs .vs { font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(135deg,#B14BFF,#FF4D9D);
  padding: 3px 9px; border-radius: 999px; }

/* Farb-Auswahl im Admin-Formular */
.tp-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-color { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.tp-color.c-red{--tpc:255,90,90;} .tp-color.c-orange{--tpc:255,154,60;} .tp-color.c-yellow{--tpc:255,200,60;} .tp-color.c-green{--tpc:53,208,127;}
.tp-color.sel { border-color: rgb(var(--tpc)); box-shadow: 0 0 0 1px rgb(var(--tpc)); background: rgba(var(--tpc),.12); }

/* Paarungs-Baukasten */
.tp-mrow { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 8px; margin-bottom: 8px; }
.tp-mrow input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 9px 11px; font: inherit; }
.tp-mvs { font-size: 11px; font-weight: 900; color: var(--muted); }

/* ═══ Team-Event: Countdown + „Zuerst dran" ═══ */
.tp-count { display: inline-flex; align-items: center; margin: 9px 0 2px; padding: 8px 15px; border-radius: 12px;
  font-weight: 800; font-size: 15.5px; font-variant-numeric: tabular-nums; color: #fff;
  background: rgba(var(--tpc,255,90,90),.18); border: 1px solid rgba(var(--tpc,255,90,90),.45); }
.tp-count.soon { animation: newPulse 1.4s ease-in-out infinite; }
.tp-count.live { background: rgba(255,59,73,.28); border-color: #FF3B49; }
.tp-count.past { opacity: .55; }

.tp-match { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.tp-match:first-of-type { border-top: none; }
.tp-match .tp-vs { border-top: none; padding: 2px 0; }
.tp-first { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .4px; color: #12121c;
  background: linear-gradient(135deg,#FFD84D,#FF9A3C); padding: 2px 9px; border-radius: 999px; margin-bottom: 6px; }
.tp-match.first { background: rgba(255,216,77,.06); border-radius: 10px; padding: 8px 8px; margin: 0 -8px; }

/* Dunkler nativer Datums-Picker */
.field input[type="datetime-local"] { color-scheme: dark; }

/* ═══ Match-Karte (Spielplan-Stil) + segmentierter Timer ═══ */
.tp-match2 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 12px 0 6px;
  padding: 16px 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(var(--tpc,255,90,90),.28); }
.tp-match2 .tm-side { text-align: center; min-width: 0; }
.tp-match2 .tm-id { font-size: 18px; font-weight: 900; word-break: break-word; }
.tp-match2 .tm-vs { font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg,#B14BFF,#FF4D9D);
  padding: 6px 11px; border-radius: 999px; }
.tm-kick { text-align: center; color: var(--muted); font-weight: 700; font-size: 13.5px; margin: 2px 0 8px; }

.tp-timer { display: flex; gap: 8px; justify-content: center; margin: 4px 0 6px; flex-wrap: wrap; }
.tp-timer .seg { min-width: 58px; padding: 8px 6px; border-radius: 12px; text-align: center;
  background: rgba(var(--tpc,255,90,90),.16); border: 1px solid rgba(var(--tpc,255,90,90),.4); }
.tp-timer .seg b { display: block; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tp-timer .seg span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.tp-timer.soon .seg { border-color: #FF3B49; }
.tp-timer .tp-status { font-weight: 800; font-size: 15px; padding: 9px 16px; border-radius: 12px;
  background: rgba(var(--tpc,255,90,90),.18); border: 1px solid rgba(var(--tpc,255,90,90),.45); }
.tp-timer.live .tp-status { color: #fff; background: rgba(255,59,73,.28); border-color: #FF3B49; animation: newPulse 1.3s ease-in-out infinite; }
.tp-timer.past .tp-status { opacity: .6; }

/* „Als Nächstes dran" */
.tp-nextslot:empty { display: none; }
.tp-nextbadge { display: inline-block; margin-bottom: 9px; font-size: 11px; font-weight: 900; letter-spacing: .4px;
  color: #12121c; background: linear-gradient(135deg,#FFD84D,#FF9A3C); padding: 3px 11px; border-radius: 999px; }
.team-post.next-event { box-shadow: 0 0 0 2px rgba(255,216,77,.5), 0 10px 34px rgba(255,154,60,.2); }

/* Match-Baukasten (Admin) */
.tp-mrow2 { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 10px; }
.tp-mids { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.tp-mids input { width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 11px; font: inherit; }
.tp-mrow2 .tp-mvs { font-size: 11px; font-weight: 900; color: var(--muted); text-align: center; }
.tp-mbottom { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.tp-mbottom .tp-mat { flex: 1; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 11px; font: inherit; color-scheme: dark; }

/* „Nächste Matches"-Label über den angepinnten Events */
.tp-uplabel { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted);
  margin: 6px 2px 8px; }

/* ═══ Auffälliger „Zum Startbildschirm"-Hinweis nach Login ═══ */
.ih-backdrop { position: fixed; inset: 0; z-index: 3500; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(6,6,12,.74); backdrop-filter: blur(5px); opacity: 0; transition: opacity .26s;
  padding: 0 12px calc(var(--safe-bottom,0px) + 14px); }
.ih-backdrop.show { opacity: 1; }
.ih-card { position: relative; width: 100%; max-width: 440px; text-align: center;
  background: linear-gradient(165deg, #1d1233 0%, #12121c 70%); border: 1px solid var(--line);
  border-radius: 24px; padding: 26px 22px 18px; transform: translateY(30px);
  transition: transform .32s cubic-bezier(.2,.85,.25,1); box-shadow: 0 -12px 70px rgba(177,75,255,.3); }
.ih-backdrop.show .ih-card { transform: translateY(0); }
.ih-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, rgba(177,75,255,.8), rgba(255,77,157,.4) 50%, rgba(55,224,200,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ih-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); color: var(--text); font-size: 15px; cursor: pointer; }
.ih-logo { width: min(210px, 62vw); height: auto; margin: 4px auto 8px; display: block;
  filter: drop-shadow(0 8px 26px rgba(177,75,255,.45)); }
.ih-badge { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg,#B14BFF,#FF4D9D); padding: 4px 12px; border-radius: 999px; }
.ih-title { font-size: 22px; font-weight: 900; line-height: 1.25; margin: 10px 0 16px; }
.ih-benefits { list-style: none; text-align: left; display: grid; gap: 11px; margin: 0 0 18px; padding: 0 6px; }
.ih-benefits li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; }
.ih-benefits li span { font-size: 19px; flex: none; }
.ih-later { margin-top: 8px; background: none; border: none; color: var(--muted); font-size: 14px; padding: 9px; cursor: pointer; width: 100%; }

/* Benachrichtigungs-Zeile + „ausblenden?"-Rückfrage im Install-Hero */
.ih-notif { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); }
.ih-notif > div:first-child { min-width: 0; }
.ih-confirm { text-align: center; padding: 8px 4px 4px; }
.ih-cface { font-size: 44px; margin-bottom: 6px; }
.ih-csub { color: var(--muted); font-size: 14px; margin: 6px 0 18px; }

/* ═══ Spiele-Hub ═══ */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.game-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
  padding: 20px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.game-card .gc-ic { font-size: 30px; }
.game-card .gc-name { font-weight: 800; font-size: 15px; }
.game-card .gc-sub { font-size: 11.5px; color: var(--muted); }
.game-card .gc-go { margin-top: 4px; font-size: 12.5px; font-weight: 800; color: var(--accent); }
.game-card.soon { opacity: .55; }
.game-card .gc-badge { position: absolute; top: 8px; right: 8px; font-size: 9.5px; font-weight: 900; letter-spacing: .4px;
  text-transform: uppercase; color: #12121c; background: linear-gradient(135deg,#FFD84D,#FF9A3C); padding: 2px 8px; border-radius: 999px; }

/* Schere-Stein-Papier */
.rps-arena { margin-top: 14px; text-align: center; }
.rps-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 6px 0 4px; }
.rps-hand { font-size: 62px; line-height: 1; }
.rps-hand#rps-cpu { transform: scaleX(-1); }
.rps-hand.shake { animation: rpsShake .35s ease-in-out infinite; }
@keyframes rpsShake { 0%,100% { transform: translateY(0) scaleX(-1); } 50% { transform: translateY(-14px) scaleX(-1); } }
.rps-mid { font-size: 13px; font-weight: 900; color: #fff; background: linear-gradient(135deg,#B14BFF,#FF4D9D); padding: 5px 11px; border-radius: 999px; }
.rps-result { font-size: 20px; font-weight: 900; margin: 8px 0 14px; min-height: 26px; }
.rps-result.win { color: #35D07F; } .rps-result.loss { color: #FF5A5A; } .rps-result.draw { color: var(--muted); }
.rps-picks { display: flex; justify-content: center; gap: 14px; }
.rps-pick { width: 76px; height: 76px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2);
  font-size: 38px; cursor: pointer; transition: transform .12s, border-color .15s; }
.rps-pick:active { transform: scale(.9); }
.rps-pick:hover { border-color: var(--accent); }
.rps-pick:disabled { opacity: .5; }

.rps-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 14px 0; }
.rps-stat { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-soft); }
.rps-stat b { display: block; font-size: 26px; font-weight: 900; }
.rps-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.rps-stat.win b { color: #35D07F; } .rps-stat.loss b { color: #FF5A5A; } .rps-stat.draw b { color: var(--muted); }

/* Spiele-Bestenliste */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.lb-row:first-child { border-top: none; }
.lb-pos { width: 30px; text-align: center; font-size: 20px; flex: none; }
.lb-pos .lb-rank { font-size: 14px; font-weight: 800; color: var(--muted); }
.lb-mid { flex: 1; min-width: 0; }
.lb-score { text-align: right; flex: none; }
.lb-score b { display: block; font-size: 18px; font-weight: 900; color: var(--accent); }
.lb-score span { font-size: 10px; color: var(--muted); text-transform: uppercase; }

/* ═══ „Gerade online"-Strip (Engagement) ═══ */
.online-strip { margin-top: 14px; padding: 13px 14px; border-radius: 16px; background: var(--card); }
.os-head { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.os-head b { color: var(--text); }
.os-dot { width: 9px; height: 9px; border-radius: 50%; background: #35D07F; box-shadow: 0 0 0 0 rgba(53,208,127,.6);
  animation: osPulse 2s infinite; flex: none; }
@keyframes osPulse { 0% { box-shadow: 0 0 0 0 rgba(53,208,127,.5); } 70% { box-shadow: 0 0 0 8px rgba(53,208,127,0); } 100% { box-shadow: 0 0 0 0 rgba(53,208,127,0); } }
.os-avatars { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.os-avatars::-webkit-scrollbar { display: none; }
.os-av { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; width: 58px; text-decoration: none; }
.os-av .os-ava { position: relative; }
.os-av .os-name { font-size: 11.5px; color: var(--muted); max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-playic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg,#B14BFF,#37E0C8); }

/* ═══ Push-Einstellungen (pro Kategorie) ═══ */
.np-list { margin-top: 8px; }
.np-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px;
  border-top: 1px solid var(--line-soft); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.np-row:first-child { border-top: none; }
.np-cb { width: 24px; height: 24px; accent-color: var(--accent); flex: none; cursor: pointer; }

/* ═══ Team-Chat: Gruppen-Sprechblasen ═══ */
.chat-msgs .msg-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 78%; }
.chat-msgs .msg-name { font-size: 11.5px; font-weight: 800; color: var(--muted); margin-left: 4px; }
.chat-msgs .msg-col .bubble { max-width: 100%; }
.ch-img { max-width: 220px; width: 100%; border-radius: 12px; display: block; margin-bottom: 4px; }
.ch-txt { white-space: pre-wrap; word-break: break-word; }

/* ═══ Stories / Status ═══ */
.stories-bar { display: flex; gap: 13px; overflow-x: auto; padding: 4px 2px 10px; margin-top: 12px; -webkit-overflow-scrolling: touch; }
.stories-bar::-webkit-scrollbar { display: none; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; width: 66px;
  background: none; border: none; cursor: pointer; padding: 0; }
.story-ring { padding: 3px; border-radius: 50%; position: relative;
  background: conic-gradient(from 210deg, #B14BFF, #FF4D9D, #37E0C8, #B14BFF); }
.story-ring.seen { background: var(--line); }
.story-ring.add { background: var(--line); }
.story-ring .avatar { border: 2.5px solid var(--bg); }
.story-plus { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg,#B14BFF,#FF4D9D); color: #fff; font-size: 14px; font-weight: 900;
  display: grid; place-items: center; border: 2px solid var(--bg); }
.story-name { font-size: 11.5px; color: var(--muted); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Vollbild-Viewer */
.story-viewer { position: fixed; inset: 0; z-index: 4200; background: #000; display: flex; flex-direction: column;
  animation: rtcIn .2s ease; }
.sv-progress { display: flex; gap: 4px; padding: calc(var(--safe-top,0px) + 10px) 12px 4px; }
.sv-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.sv-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.sv-bar span.done { width: 100%; }
@keyframes svFill { from { width: 0; } to { width: 100%; } }
.sv-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #fff; z-index: 2; }
.sv-user { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; flex: 1; min-width: 0; }
.sv-user .sv-n { font-weight: 800; font-size: 15px; }
.sv-user .sv-time { font-size: 12px; color: rgba(255,255,255,.6); }
.sv-del, .sv-x { background: rgba(255,255,255,.12); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; cursor: pointer; flex: none; }
.sv-stage { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; }
.sv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sv-stage.text { padding: 40px 26px; }
.sv-text { color: #fff; font-size: 17px; line-height: 1.5; text-align: left; max-width: 640px; z-index: 3;
  position: absolute; bottom: calc(var(--safe-bottom,0px) + 32px); left: 20px; right: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.sv-stage.text .sv-text { position: static; font-size: 26px; font-weight: 800; text-align: center; }
.sv-nav { position: absolute; top: 60px; bottom: 0; width: 40%; background: none; border: none; cursor: pointer; z-index: 1; }
.sv-nav.left { left: 0; } .sv-nav.right { right: 0; width: 60%; }
.sa-prev { margin-top: 10px; border-radius: 14px; overflow: hidden; }
.sa-prev img { width: 100%; display: block; }

/* ═══ Level & XP ═══ */
.lvl-chip { background: linear-gradient(135deg, rgba(255,216,77,.22), rgba(255,154,60,.18)) !important;
  border-color: rgba(255,216,77,.45) !important; color: #FFDE7A !important; font-weight: 800; }
.level-card .lc-top { display: flex; align-items: center; gap: 13px; }
.lc-badge { position: relative; width: 50px; height: 50px; flex: none; display: grid; place-items: center; font-size: 24px;
  border-radius: 15px; background: linear-gradient(135deg,#FFD84D,#FF9A3C); box-shadow: 0 6px 18px rgba(255,154,60,.35); }
.lc-badge span { position: absolute; bottom: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px;
  background: #12121c; color: #FFDE7A; font-size: 12px; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--card); }
.lc-mid { flex: 1; min-width: 0; }
.lc-title { font-weight: 900; font-size: 17px; }
.lc-sub { font-size: 12.5px; color: var(--muted); }
.lc-bar { margin-top: 11px; height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line-soft); }
.lc-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#FFD84D,#FF9A3C,#FF4D9D); transition: width .5s ease; }
.lc-bar.sm { height: 6px; margin-top: 6px; }
.lb-list { max-height: 62vh; overflow-y: auto; margin: 0 -4px; }

/* ═══ Tier-Ring am Avatar: nur der Ring, kein gefülltes Quadrat dahinter ═══ */
.avatar-edit.tier-bronze, .avatar-edit.tier-silber,
.avatar-edit.tier-gold, .avatar-edit.tier-platin { background: transparent; border-radius: 50%; }
.avatar-edit.tier-bronze { box-shadow: 0 0 22px rgba(140,90,43,.4); }
.avatar-edit.tier-silber { box-shadow: 0 0 22px rgba(159,184,196,.4); }
.avatar-edit.tier-gold   { box-shadow: 0 0 24px rgba(201,154,30,.45); }
.avatar-edit.tier-platin { box-shadow: 0 0 26px rgba(159,184,196,.5); }
/* Ring etwas kräftiger + sauberer Abstand zum Bild */
.avatar-edit[class*="tier-"] { padding: 4px; }
.avatar-edit[class*="tier-"]::before { padding: 3.5px; }
.hero-av .avatar.lg { border-width: 4px; }

/* ═══ Team-Chat: Antworten ═══ */
.chat-msgs .msg { align-items: center; }
.ch-replybtn { flex: none; width: 26px; height: 26px; border-radius: 50%; border: none; background: transparent;
  color: var(--muted); font-size: 14px; cursor: pointer; opacity: .5; transition: opacity .15s, background .15s; }
.ch-replybtn:hover { opacity: 1; background: rgba(255,255,255,.08); }
.msg.mine .ch-replybtn { order: -1; }
.ch-reply { border-left: 3px solid var(--accent); padding: 4px 8px; margin-bottom: 6px; border-radius: 6px;
  background: rgba(255,255,255,.06); font-size: 12.5px; line-height: 1.35; opacity: .9; }
.ch-reply b { display: block; color: var(--accent); font-size: 11.5px; }
.msg.mine .ch-reply { border-left-color: rgba(255,255,255,.7); }
.msg.mine .ch-reply b { color: rgba(255,255,255,.9); }
.ch-replybar { padding: 8px 12px; border-top: 1px solid var(--line-soft); }
.ch-replybar .chr-in { position: relative; border-left: 3px solid var(--accent); padding: 4px 26px 4px 9px; border-radius: 6px; background: var(--card-2); }
.ch-replybar .chr-t { font-size: 12px; color: var(--muted); }
.ch-replybar .chr-body { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-replybar .chr-x { position: absolute; top: 6px; right: 8px; cursor: pointer; color: var(--muted); font-size: 14px; }

/* ═══ Match: Anzeigename + Bigo-ID (Streamer vs Streamer) ═══ */
.tp-match2 .tm-name { display: block; font-size: 17px; font-weight: 900; word-break: break-word; line-height: 1.2; }
.tp-match2 .tm-bid { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Match-Baukasten: zwei Streamer-Spalten + VS */
.tp-mrow2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 9px; align-items: start; }
.tp-mstreamer { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-mstreamer input { width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 9px 11px; font: inherit; }
.tp-mvs2 { align-self: center; font-size: 13px; font-weight: 900; color: var(--muted); padding-top: 8px; }
.tp-mrow2 .tp-mbottom { grid-column: 1 / -1; margin-top: 8px; }

/* ═══ Livestreams ═══ */
.lv-dot { width: 9px; height: 9px; border-radius: 50%; background: #FF3B49; flex: none;
  box-shadow: 0 0 0 0 rgba(255,59,73,.6); animation: osPulse 1.6s infinite; }
.lv-dot.big { width: 12px; height: 12px; }
.live-banner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 15px; border-radius: 16px;
  text-decoration: none; color: var(--text); background: linear-gradient(135deg, rgba(255,59,73,.22), rgba(177,75,255,.12));
  border: 1px solid rgba(255,59,73,.4); box-shadow: 0 6px 24px rgba(255,59,73,.15); }
.live-banner .lv-bnames { font-size: 12.5px; color: var(--muted); }
.live-banner .lv-cta { margin-left: auto; font-weight: 800; color: #FF6B76; font-size: 13.5px; white-space: nowrap; }
.live-mine { background: linear-gradient(135deg, rgba(255,59,73,.14), var(--card)); border-color: rgba(255,59,73,.35); margin-top: 12px; }

.live-card { border: 1px solid rgba(255,59,73,.28); }
.live-card .lv-top { display: flex; align-items: center; gap: 11px; }
.live-card .lv-mid { flex: 1; min-width: 0; }
.live-card .lv-name { font-weight: 700; }
.live-card .lv-since { font-size: 12px; color: var(--muted); }
.live-card .lv-badge { font-size: 10px; font-weight: 900; letter-spacing: .5px; color: #fff; background: #FF3B49;
  padding: 3px 9px; border-radius: 999px; flex: none; }
.live-card .lv-note { margin: 11px 0; font-size: 14.5px; line-height: 1.45; }
.live-card .lv-open { margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════════════
   RUHIGER & AUFGERÄUMTER — dezenterer Look (weniger Neon/Glühen)
   ═══════════════════════════════════════════════════════════════════ */
/* Hintergrund-Aurora deutlich zurücknehmen */
.aurora span { opacity: .12; filter: blur(100px); }

/* Gradient-Rahmen dünner & dezenter (überall wo .framed genutzt wird) */
.card.framed::before { padding: 1px;
  background: linear-gradient(135deg, rgba(177,75,255,.28), rgba(255,77,157,.08) 50%, rgba(55,224,200,.20)); }
.composer.framed { box-shadow: 0 6px 20px rgba(0,0,0,.30); }

/* Buttons: weniger Glühen, ruhigerer Schatten */
.btn.primary { box-shadow: 0 4px 13px rgba(177,75,255,.18), inset 0 1px 0 rgba(255,255,255,.12); }
.neon-btn { box-shadow: 0 4px 15px rgba(177,75,255,.24) !important; }

/* Glühende Kleinteile beruhigen */
.edge-handle.left, .edge-handle.right { box-shadow: 0 0 8px rgba(177,75,255,.25); }
.ep-dot { box-shadow: none; }
.section-title::before { opacity: .85; }

/* Menü: dezente Gruppen-Trennung */
.edge-sep { height: 1px; background: var(--line-soft); margin: 9px 12px; }

/* Live: kleiner Hinweis unterm Öffnen-Button */
.lv-hint { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 7px; }

/* ── Spielereien: Tages-Gruß, Schnell-Spaß, Easter-Egg ─────────── */
.greet-line { font-size: 13.5px; color: var(--muted); margin: 2px 4px 12px; }
.greet-line b { color: var(--text); font-weight: 700; }
.greet-streak { color: var(--warn); font-weight: 700; white-space: nowrap; }

/* Täglicher Login-Bonus – Feier-Popup */
.daily-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px); padding: 24px; animation: fade-in .2s ease; }
.daily-card { width: 100%; max-width: 300px; text-align: center; padding: 26px 22px 22px;
  background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); animation: daily-in .4s cubic-bezier(.2,1.2,.3,1); }
.daily-flame { font-size: 52px; line-height: 1; animation: daily-flicker 1.4s ease-in-out infinite; }
.daily-streak { font-size: 60px; font-weight: 900; line-height: 1; margin-top: 2px;
  background: linear-gradient(135deg, #FFB020, #FF4D9D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.daily-days { font-size: 13px; color: var(--muted); letter-spacing: .5px; margin-top: -2px; }
.daily-xp { display: inline-block; margin-top: 12px; padding: 5px 14px; border-radius: 20px; font-weight: 800;
  color: var(--ok); background: rgba(46,212,122,.14); }
.daily-msg { font-size: 13.5px; color: var(--text); margin-top: 12px; line-height: 1.4; }
@keyframes daily-in { from { transform: scale(.7) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes daily-flicker { 0%,100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.fun-card .fun-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.fun-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; font-size: 26px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: transform .1s, background .15s; }
.fun-btn span { font-size: 12px; color: var(--muted); }
.fun-btn:hover { background: rgba(177,75,255,.12); }
.fun-btn:active { transform: scale(.94); }
.fun-result { margin-top: 12px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; font-size: 15px; color: var(--text); background: var(--card-2); border-radius: var(--radius-sm); padding: 12px; }
.fun-result .fun-big { font-size: 30px; }
.fun-result b { font-weight: 800; }
.fun-fortune { font-size: 14px; }
.fun-cookie { font-size: 26px; }
.fun-spin { font-size: 30px; display: inline-block; animation: fun-spin .6s linear infinite; }
@keyframes fun-spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.fun-result.pop { animation: fun-pop .35s ease; }
@keyframes fun-pop { 0% { transform: scale(.8); opacity: .3; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* Kommentar löschen (eigener oder Moderator) */
.cdel { cursor: pointer; opacity: .45; font-size: 12px; margin-left: 2px; }
.cdel:hover { opacity: 1; }

/* Ende-zu-Ende-Verschlüsselung: Schloss + gesperrte Nachricht */
.msg-lock { font-size: 10px; opacity: .65; }
.mtext.locked { font-style: italic; opacity: .7; }

/* WhatsApp-Haken: ✓ gesendet · ✓✓ zugestellt (grau) · ✓✓ gelesen (blau) + „schreibt …" */
.tick { opacity: .7; }
.tick.read { color: #4ea1ff; opacity: 1; }
.chat-typing { color: var(--accent); font-size: 11px; font-weight: 700; margin-left: 6px; }

/* Team-Chat: eigene Nachricht bearbeiten/löschen */
.ch-own-acts { display: inline-flex; gap: 1px; align-self: center; opacity: .4; }
.ch-own-acts:hover { opacity: 1; }
.ch-own-acts button { background: none; border: 0; cursor: pointer; font-size: 13px; padding: 2px 3px; line-height: 1; }
.msg-t + .ch-edited, .ch-edited { color: var(--muted-2); }

/* Passwort-Stärke-Anzeige */
.pw-meter { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 6px 2px 2px; }
.pw-bar { height: 100%; width: 0; transition: width .2s, background .2s; background: var(--danger); }
.pw-bar[data-s="2"] { background: var(--warn); }
.pw-bar[data-s="3"] { background: #8bd450; }
.pw-bar[data-s="4"] { background: var(--ok); }
.pw-lbl { font-size: 11px; color: var(--muted); margin: 0 2px 4px; min-height: 14px; }

/* ── Schiffe versenken ─────────────────────────────────────────── */
.gc-badge.live { background: var(--danger); color: #fff; box-shadow: 0 0 10px rgba(255,90,90,.5); animation: bs-pulse 1.6s ease-in-out infinite; }
@keyframes bs-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.bs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 14px; }
.bs-stat { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; }
.bs-stat b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.bs-stat span { font-size: 11px; color: var(--muted); }
.bs-stat.win b { color: var(--ok); }
.bs-stat.loss b { color: var(--danger); }

.bs-row { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--text); }
.bs-row:last-child { border-bottom: 0; }
.bs-row-mid { flex: 1; min-width: 0; }
.bs-row-n { font-weight: 700; font-size: 14.5px; }
.bs-row-go { color: var(--muted-2); font-size: 20px; }
.bs-inc-btns { display: flex; gap: 6px; }
.bs-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-top: 3px; }
.bs-tag.turn { background: rgba(46,212,122,.16); color: var(--ok); }
.bs-tag.wait { background: rgba(154,154,176,.14); color: var(--muted); }
.bs-tag.won  { background: rgba(255,176,32,.16); color: var(--warn); }
.bs-tag.lost { background: rgba(255,90,90,.14); color: var(--danger); }

.bs-banner { border-radius: var(--radius-sm); padding: 11px 14px; font-weight: 700; font-size: 14px; text-align: center; margin-bottom: 12px; }
.bs-banner.turn { background: linear-gradient(135deg, rgba(55,224,200,.18), rgba(46,212,122,.10)); color: var(--accent); border: 1px solid rgba(55,224,200,.3); }
.bs-banner.wait { background: var(--card-2); color: var(--muted); border: 1px solid var(--line-soft); }
.bs-banner.won  { background: linear-gradient(135deg, rgba(255,176,32,.2), rgba(255,77,157,.12)); color: var(--warn); border: 1px solid rgba(255,176,32,.35); }
.bs-banner.lost { background: rgba(255,90,90,.12); color: var(--danger); border: 1px solid rgba(255,90,90,.3); }

.bs-section { margin-bottom: 16px; }
.bs-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 13px; margin: 0 2px 7px; }
.bs-prog { font-size: 11.5px; font-weight: 600; color: var(--muted); }

.bs-board { display: grid; gap: 4px; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 1; }
.bs-cell { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; background: var(--card-2); font-size: 15px; line-height: 1; display: grid; place-items: center; padding: 0; cursor: default; transition: transform .1s, background .15s; }
.bs-cell.water { background: rgba(55,224,200,.06); }
.bs-cell[data-fire] { cursor: pointer; background: rgba(55,224,200,.10); border-color: rgba(55,224,200,.28); }
.bs-cell[data-fire]:hover { background: rgba(55,224,200,.22); transform: scale(1.06); }
.bs-cell[data-fire]:active { transform: scale(.94); }
.bs-cell.ship { background: linear-gradient(135deg, var(--muted-2), var(--muted)); border-color: var(--muted); }
.bs-cell.miss { background: var(--card); color: var(--muted-2); }
.bs-cell.miss::after { content: '•'; color: var(--muted-2); font-size: 13px; }
.bs-cell.hit  { background: rgba(255,90,90,.22); border-color: var(--danger); }
.bs-cell.sunk { background: rgba(255,90,90,.4); border-color: var(--danger); }
.bs-cell.firing { animation: bs-fire .4s ease; }
@keyframes bs-fire { 0% { transform: scale(1); } 50% { transform: scale(1.25); background: rgba(255,176,32,.5); } 100% { transform: scale(1); } }
