/* RedDealDays – helles Glas-Design: viel Weißraum, große Schrift, Pill-Buttons, weiche Bewegungen. */
:root {
  --bg: #f3f2f7;
  --panel: rgba(255, 255, 255, .74);
  --panel-solid: #ffffff;
  --panel-2: #eeecf4;
  --line: rgba(24, 20, 45, .09);
  --text: #16141d;
  --muted: #736f80;
  --ink: #16141d;
  --red: #f02b41;
  --red-2: #ff6a3d;
  --red-deep: #c8102e;
  --ok: #0f9d5c;
  --warn: #b86e00;
  --radius: 24px;
  --glass-border: rgba(255, 255, 255, .88);
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 50px -22px rgba(40, 25, 80, .28), 0 2px 6px -2px rgba(40, 25, 80, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --bar-h: 76px;
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%; color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(255, 170, 190, .45), transparent 70%),
    radial-gradient(50% 45% at 92% 8%, rgba(170, 190, 255, .45), transparent 70%),
    radial-gradient(55% 50% at 70% 100%, rgba(255, 214, 170, .42), transparent 70%),
    radial-gradient(45% 45% at 0% 90%, rgba(200, 180, 255, .36), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(240, 43, 65, .2); }
.muted { color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes msgin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-8%, 10%) rotate(40deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 43, 65, .5); } 100% { box-shadow: 0 0 0 20px rgba(240, 43, 65, 0); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.16); color: var(--red); } 100% { transform: scale(1); } }
@keyframes urgent { 50% { opacity: .55; } }

/* ---------- Kopfzeile: schwebende Glas-Leiste ---------- */
.topbar {
  position: sticky; top: 12px; z-index: 30;
  height: 52px; margin: 12px auto; width: min(1120px, calc(100% - 24px)); padding: 0 7px 0 18px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--glass-border); border-radius: 999px; box-shadow: var(--shadow);
}
.logo { font-weight: 800; font-size: 17px; letter-spacing: -.035em; display: flex; align-items: center; text-decoration: none; white-space: nowrap; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 9px; background: linear-gradient(135deg, var(--red), var(--red-2)); box-shadow: 0 0 0 4px rgba(240, 43, 65, .14); }
.logo em { font-style: normal; color: var(--red); }
.topbar .spacer, .stage-top .spacer { flex: 1; }
.nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.nav-link { text-decoration: none; color: var(--muted); padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .2s, background .25s var(--ease); }
.nav-link:hover { color: var(--text); background: rgba(24, 20, 45, .05); }
.nav-link.active { color: #fff; background: var(--ink); }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .25s var(--spring), box-shadow .25s; }
.chip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(30, 20, 60, .3); }
.chip.active { border-color: var(--ink); }
.conn { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 40; background: #fff4d6; color: #6b4a00; font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .88); border-radius: 999px;
  padding: 11px 18px; font-weight: 650; letter-spacing: -.01em; box-shadow: 0 1px 2px rgba(30, 20, 60, .06);
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background .2s, opacity .2s;
}
a.btn { text-decoration: none; text-align: center; display: inline-block; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(30, 20, 60, .3); }
.btn:active { transform: scale(.96); }
.btn.primary {
  flex: 1; border: 0; color: #fff; font-size: 16px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 12px 26px -10px rgba(240, 43, 65, .6), 0 1px 0 rgba(255, 255, 255, .35) inset;
}
.btn.primary:hover { box-shadow: 0 16px 30px -10px rgba(240, 43, 65, .7), 0 1px 0 rgba(255, 255, 255, .35) inset; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn.small { padding: 7px 13px; font-size: 13px; }
.btn.danger { color: var(--red); }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.mini, .item .mini { flex: none; padding: 5px 10px; font-size: 12px; }
.icon-btn { background: rgba(20, 16, 34, .55); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; backdrop-filter: blur(8px); }

/* ---------- Live-Seite ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; padding: 8px 18px 18px; height: calc(100dvh - var(--bar-h)); }
.stage {
  position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; margin: 0 auto;
  border-radius: 34px; overflow: hidden; background: #0e0c14;
  box-shadow: 0 30px 80px -30px rgba(40, 25, 80, .55), 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 7px rgba(255, 255, 255, .4);
}
.stage video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0e0c14; }
.stage-cover {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    radial-gradient(70% 45% at 20% 10%, rgba(255, 170, 190, .7), transparent 70%),
    radial-gradient(60% 45% at 90% 30%, rgba(170, 190, 255, .7), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(255, 214, 170, .7), transparent 70%), #f6f4fb;
}
.stage-cover .big { font-size: 26px; font-weight: 750; letter-spacing: -.035em; margin: 14px 0 4px; }
.stage-cover .sub { color: var(--muted); }
.stage-cover .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--red); margin: 0 auto; animation: pulse 1.5s infinite; }
.stage-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; }
.badge-live { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(240, 43, 65, .8); }
.badge-off { background: rgba(20, 16, 34, .55); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.pill { background: rgba(20, 16, 34, .55); color: #fff; backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }

/* Angebotskarte: schwebendes Glas über dem Video */
.deal {
  position: absolute; left: 12px; right: 12px; bottom: 12px; color: var(--text);
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .92); border-radius: 26px; padding: 14px;
  box-shadow: 0 22px 44px -18px rgba(20, 10, 50, .5); animation: rise .5s var(--ease) both;
}
.deal.idle { text-align: center; color: var(--muted); padding: 13px; font-weight: 600; font-size: 14px; border-radius: 999px; left: 24px; right: 24px; }
.deal-head { display: flex; gap: 11px; align-items: center; }
.deal-emoji { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 30px; background: var(--panel-2); border-radius: 16px; overflow: hidden; }
.deal-title { font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.deal-desc { font-size: 12px; color: var(--muted); }
.deal-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }
.deal-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.deal-price { font-size: 36px; font-weight: 750; line-height: 1.02; letter-spacing: -.04em; font-variant-numeric: tabular-nums; transform-origin: left center; }
.deal-price.bump { animation: bump .4s var(--spring); }
.deal-price.textual { font-size: 21px; letter-spacing: -.025em; }
.deal-uvp { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.deal-timer { text-align: right; }
.deal-clock { font-size: 24px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.urgent .deal-clock { color: var(--red); }
.deal-meta { font-size: 12px; color: var(--muted); margin-top: 3px; min-height: 18px; }
.deal-meta.me { color: var(--ok); font-weight: 650; }
.bar { height: 6px; border-radius: 999px; background: rgba(24, 20, 45, .09); margin-top: 9px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ink), #5a5670); transition: width .2s linear; }
.urgent .bar > i { background: linear-gradient(90deg, var(--red), var(--red-2)); animation: urgent .8s ease-in-out infinite; }
.deal-actions { display: flex; gap: 8px; margin-top: 12px; }
.deal-result { margin-top: 12px; padding: 11px; border-radius: 16px; background: var(--panel-2); font-weight: 650; text-align: center; }

.win { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20, 15, 40, .45); backdrop-filter: blur(8px); text-align: center; z-index: 5; }
.win-card { background: #fff; border-radius: 30px; padding: 24px 20px; max-width: 300px; box-shadow: 0 30px 60px -20px rgba(20, 10, 50, .6); animation: pop .5s var(--spring) both; }
.win-card .emoji { font-size: 58px; line-height: 1; }
.win-card h2 { margin: 10px 0 4px; font-size: 24px; letter-spacing: -.035em; }
.win-card p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.win-card .sum { color: var(--text); font-size: 16px; font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(20, 10, 50, .6); z-index: 60; animation: msgin .35s var(--ease) both; max-width: calc(100% - 32px); }

/* ---------- Glas-Flächen, Chat, Listen ---------- */
.side { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.panel {
  background: var(--panel); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.panel > h3 { margin: 0; padding: 13px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat { flex: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 7px; min-height: 120px; }
.msg { font-size: 14px; overflow-wrap: anywhere; animation: msgin .3s var(--ease) both; }
.msg .name { font-weight: 700; margin-right: 6px; }
.msg.host .name { color: #fff; background: var(--ink); padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.msg.me .name { color: var(--red); }
.msg.system { color: var(--muted); font-size: 13px; }
.msg.bid { font-size: 13px; color: var(--warn); font-weight: 600; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; transition: box-shadow .2s, border-color .2s; }
.chat-form input:focus { outline: 0; border-color: rgba(240, 43, 65, .5); box-shadow: 0 0 0 4px rgba(240, 43, 65, .14); }
.guest-hint { padding: 13px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.guest-hint a { color: var(--red); font-weight: 650; }
.hint { font-size: 12px; color: var(--muted); padding: 0 14px 14px; }
.list { overflow-y: auto; padding: 6px; }
.item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 16px; transition: background .25s var(--ease), box-shadow .25s; }
.item .em, .table .em { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 22px; background: var(--panel-2); border-radius: 13px; overflow: hidden; }
.em img, .deal-emoji img, .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .t { font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.item .s { font-size: 12px; color: var(--muted); }
.item .grow { flex: 1; min-width: 0; }
.item.active { background: rgba(240, 43, 65, .07); box-shadow: inset 0 0 0 1px rgba(240, 43, 65, .3); }
.item .acts { display: flex; gap: 6px; flex: none; }
.upnext { max-height: 40%; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 18px; padding: 8px 18px 18px; height: calc(100dvh - var(--bar-h)); }
.studio .col { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.preview { position: relative; aspect-ratio: 9 / 16; background: #0e0c14; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px -26px rgba(40, 25, 80, .55), 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 5px rgba(255, 255, 255, .4); margin: 5px; }
.preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview .stage-top { top: 10px; left: 10px; right: 10px; }
.preview .empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .7); text-align: center; padding: 16px; font-size: 13px; }
.controls { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.controls .row { display: flex; gap: 8px; }
.controls .row .btn { flex: 1; white-space: nowrap; padding-inline: 6px; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.switch input { accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.studio select, .inline-select { background: #fff; color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font: inherit; font-size: 13px; max-width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-border); border-radius: 18px; padding: 12px 14px; }
.kpis .stat { box-shadow: var(--shadow); border-radius: 22px; padding: 16px 18px; animation: rise .5s var(--ease) both; }
.stat b { display: block; font-size: 24px; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpis .stat b { font-size: 30px; }
.stat span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.now { padding: 16px; }
.now .deal-price { font-size: 40px; }
.now-empty { color: var(--muted); padding: 18px 16px; }
.orders { max-height: 42%; }
.order { display: flex; gap: 10px; align-items: center; padding: 8px; }
.order .price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Inhaltsseiten ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 14px 18px 48px; }
.container.narrow { max-width: 460px; }
.container h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.05; letter-spacing: -.04em; margin: 10px 0 18px; }
.container h2 { font-size: 20px; letter-spacing: -.03em; margin: 34px 0 12px; }
.footer { padding: 22px 16px 34px; text-align: center; color: var(--muted); font-size: 12px; }
.footer p { margin: 4px 0; }

.hero {
  position: relative; overflow: hidden; border-radius: 34px; padding: 40px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .55));
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end; justify-content: space-between;
  animation: rise .6s var(--ease) both;
}
.hero::before {
  content: ''; position: absolute; top: -45%; right: -12%; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 120deg, #ffb3c1, #ffd9a8, #c9b8ff, #a8c8ff, #ffb3c1);
  filter: blur(60px); opacity: .6; animation: drift 14s ease-in-out infinite alternate;
}
.hero > * { position: relative; }
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.0; letter-spacing: -.05em; margin: 14px 0 10px; max-width: 640px; }
.hero p { margin: 0; color: var(--muted); max-width: 520px; font-size: 16px; }
.hero .btn.primary { flex: none; padding: 15px 26px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 16px; }
.card {
  background: var(--panel); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-border); border-radius: 28px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
  transition: transform .4s var(--spring), box-shadow .3s var(--ease); animation: rise .55s var(--ease) both;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 28px 60px -24px rgba(40, 25, 80, .4); }
.card:nth-child(2) { animation-delay: .05s; } .card:nth-child(3) { animation-delay: .1s; } .card:nth-child(4) { animation-delay: .15s; }
.card:nth-child(5) { animation-delay: .2s; } .card:nth-child(6) { animation-delay: .25s; } .card:nth-child(n+7) { animation-delay: .3s; }
.card-media { height: 150px; border-radius: 20px; display: grid; place-items: center; font-size: 68px; overflow: hidden; background: linear-gradient(135deg, #ffe1e6, #ffeeda); }
.card:nth-child(3n+2) .card-media { background: linear-gradient(135deg, #e4e0ff, #dcecff); }
.card:nth-child(3n) .card-media { background: linear-gradient(135deg, #dff5ea, #e6f0ff); }
.card-media { transition: transform .5s var(--spring); }
.card:hover .card-media { transform: scale(1.02); }
.card-title { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; padding: 4px 6px 0; font-size: 16px; }
.card-desc { font-size: 13px; color: var(--muted); flex: 1; padding: 0 6px; }
.card-price { font-size: 13px; padding: 0 6px; }
.card-price b { font-size: 20px; letter-spacing: -.03em; }
.card .btn { width: 100%; margin-top: 4px; }
.ad-note { font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row-card {
  background: var(--panel); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 14px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow); animation: rise .5s var(--ease) both;
}
.row-card .grow { flex: 1; min-width: 180px; }
.row-card .t { font-weight: 700; letter-spacing: -.015em; }
.row-card .s { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 22px; text-align: center; border: 1.5px dashed rgba(24, 20, 45, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .35); }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; text-decoration: none; }
.badge.offen, .badge.warn { color: var(--warn); background: #fff6e0; border-color: rgba(184, 110, 0, .22); }
.badge.bezahlt { color: var(--ok); background: #e3f7ec; border-color: rgba(15, 157, 92, .22); }
.badge.versendet { color: #2f5fe0; background: #e6edff; border-color: rgba(47, 95, 224, .2); }
.badge.live { background: linear-gradient(135deg, var(--red), var(--red-2)); border-color: transparent; color: #fff; }

/* Fortschritt einer Bestellung: Bestellt → Bezahlt → Versendet */
.stepper { display: flex; min-width: 220px; flex: none; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; font-size: 11px; font-weight: 650; color: var(--muted); }
.step i { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid rgba(24, 20, 45, .18); position: relative; z-index: 1; transition: all .45s var(--spring); }
.step::before { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: rgba(24, 20, 45, .12); }
.step:first-child::before { display: none; }
.step.done i { background: var(--ok); border-color: var(--ok); }
.step.done::before { background: var(--ok); }
.step.current { color: var(--text); }
.step.current i { box-shadow: 0 0 0 5px rgba(15, 157, 92, .18); }

/* ---------- Formulare, Reiter, Tabellen, Dialoge ---------- */
.form { display: flex; flex-direction: column; gap: 13px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form input[type=url],
.form input[type=datetime-local], .form textarea, .form select, .input {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; color: var(--text); font: inherit; font-weight: 400; width: 100%;
  transition: box-shadow .2s, border-color .2s;
}
.form input:focus, .form textarea:focus, .input:focus { outline: 0; border-color: rgba(240, 43, 65, .5); box-shadow: 0 0 0 4px rgba(240, 43, 65, .14); }
.form input:disabled { background: var(--panel-2); color: var(--muted); }
.form .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.form .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.field-error { color: var(--red); font-size: 12px; font-weight: 600; animation: msgin .3s var(--ease) both; }
.note { background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px; font-size: 13px; color: var(--muted); }
.note.warn { background: #fff6e0; border-color: rgba(184, 110, 0, .22); color: #7a4a00; }
.switch-tabs, .tabs { display: flex; gap: 4px; padding: 5px; background: rgba(255, 255, 255, .62); border: 1px solid var(--glass-border); border-radius: 999px; box-shadow: var(--shadow); }
.switch-tabs { margin-bottom: 16px; }
.tabs { display: inline-flex; max-width: 100%; overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; }
.switch-tabs button, .tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-weight: 650; color: var(--muted); white-space: nowrap; transition: background .3s var(--ease), color .2s; }
.switch-tabs button { flex: 1; }
.switch-tabs button.active, .tabs button.active { background: var(--ink); color: #fff; }
.table-wrap { overflow-x: auto; background: var(--panel); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow); animation: rise .5s var(--ease) both; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .6); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .acts { display: flex; gap: 6px; justify-content: flex-end; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
dialog { background: #fff; color: var(--text); border: 0; border-radius: 30px; padding: 24px; width: min(540px, 94vw); box-shadow: 0 40px 90px -30px rgba(20, 10, 50, .6); }
dialog[open] { animation: pop .4s var(--spring) both; }
dialog::backdrop { background: rgba(20, 15, 40, .4); backdrop-filter: blur(6px); }
dialog h3 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.035em; }
.legal h2 { margin-top: 28px; }
.legal p, .legal li { color: #4b4858; }

/* ---------- Schmal / mobil ---------- */
@media (max-width: 1040px) {
  .studio { grid-template-columns: 240px minmax(0, 1fr); height: auto; }
  .studio .col.right { grid-column: 1 / -1; }
  .studio .chat { height: 300px; flex: none; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; height: auto; padding: 8px 12px 14px; gap: 14px; }
  .stage { height: 74dvh; width: calc(100% - 14px); aspect-ratio: auto; }
  .chat { height: 320px; flex: none; }
  .upnext { max-height: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 6px 0 14px; gap: 6px; }
  .logo { font-size: 15px; }
  .nav { margin-left: 2px; }
  .nav-link { padding: 6px 9px; font-size: 13px; }
  .chip { padding: 7px 11px; }
  .studio { grid-template-columns: 1fr; padding: 8px 12px 14px; }
  .preview { max-height: 50dvh; margin: 5px auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 28px 22px; border-radius: 28px; }
  .stepper { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Listen in Glas-Flächen schrumpfen sauber, Hinweise bleiben darunter stehen */
.panel > .list { flex: 1; min-height: 0; }
.panel > .hint { flex: none; padding-top: 8px; border-top: 1px solid var(--line); }

/* ================= Marktplatz: Profile, Live-Raster, Glocke, Reaktionen ================= */
:focus-visible { outline: 3px solid rgba(240, 43, 65, .55); outline-offset: 2px; }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 750; line-height: 1; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(30, 20, 60, .4); }
.stars { font-size: 12px; color: var(--muted); white-space: nowrap; }
.stars b { color: #c98500; }
.chip.account { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; }
.account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }

.bell-wrap { position: relative; }
.bell { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 16px; display: grid; place-items: center; transition: transform .25s var(--spring); }
.bell:hover { transform: translateY(-1px) rotate(-8deg); }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 750; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; animation: pop .4s var(--spring) both; }
.menu { position: absolute; right: -40px; top: 48px; width: min(340px, 86vw); max-height: 420px; overflow-y: auto; background: rgba(255, 255, 255, .96); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 22px; box-shadow: 0 30px 70px -24px rgba(20, 10, 50, .5); padding: 6px; animation: rise .3s var(--ease) both; z-index: 50; }
.menu-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px 6px; }
.menu-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; text-decoration: none; transition: background .2s; }
.menu-item:hover { background: var(--panel-2); }
.menu-item.unread { background: rgba(240, 43, 65, .06); }
.menu-item .t { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.menu-item .s { display: block; font-size: 12px; color: var(--muted); }
.menu-item .grow { flex: 1; min-width: 0; }
.menu-icon { font-size: 18px; }
.menu-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }

/* Suche und Kategorien */
.search { position: relative; margin: 18px 0 12px; }
.search input { width: 100%; background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-border); border-radius: 999px; padding: 15px 20px 15px 50px; font-size: 16px; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.search input:focus { outline: 0; border-color: rgba(240, 43, 65, .5); box-shadow: 0 0 0 4px rgba(240, 43, 65, .14), var(--shadow); }
.search::before { content: '🔍'; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: .7; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .nav::-webkit-scrollbar, .tabs::-webkit-scrollbar, .rail::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 8px 15px; font-weight: 650; font-size: 14px; white-space: nowrap; transition: transform .25s var(--spring), background .25s, color .2s; }
.cat:hover { transform: translateY(-1px); }
.cat.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head .count { font-size: 13px; color: var(--muted); }

/* Live-Karten im Hochformat */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.live-card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; animation: rise .55s var(--ease) both; }
.live-thumb { position: relative; aspect-ratio: 9 / 14; border-radius: 26px; overflow: hidden; background-size: cover; background-position: center; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .45s var(--spring), box-shadow .3s; }
.live-card:hover .live-thumb { transform: translateY(-4px) scale(1.01); box-shadow: 0 30px 60px -26px rgba(40, 25, 80, .55); }
.live-thumb-emoji { font-size: 72px; filter: drop-shadow(0 12px 14px rgba(40, 25, 80, .25)); }
.live-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; align-items: center; }
.live-now { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); border-radius: 14px; padding: 7px 10px; font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-meta { display: flex; gap: 10px; align-items: center; padding: 0 4px; }
.live-meta .grow { min-width: 0; }
.live-meta .t { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-meta .s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
.show-card { flex: none; width: 250px; scroll-snap-align: start; background: var(--panel); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-border); border-radius: 26px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; animation: rise .5s var(--ease) both; }
.show-when { display: flex; align-items: baseline; gap: 8px; }
.show-when b { font-size: 20px; letter-spacing: -.03em; color: var(--red); }
.show-when span { font-size: 12px; color: var(--muted); }
.show-title { font-weight: 700; font-size: 16px; letter-spacing: -.02em; line-height: 1.2; }
.show-desc { font-size: 13px; color: var(--muted); flex: 1; }
.show-seller { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; text-decoration: none; flex-wrap: wrap; }
.show-card .btn { margin-top: 4px; }
.seller-card { flex: none; width: 150px; text-align: center; text-decoration: none; background: var(--panel); border: 1px solid var(--glass-border); border-radius: 26px; padding: 18px 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .4s var(--spring); animation: rise .5s var(--ease) both; }
.seller-card:hover { transform: translateY(-4px); }
.seller-card .t { font-weight: 700; letter-spacing: -.015em; margin-top: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-card .s { font-size: 12px; color: var(--muted); }
.seller-ava { border-radius: 50%; padding: 3px; display: inline-grid; }
.seller-ava.is-live { background: linear-gradient(135deg, var(--red), var(--red-2)); animation: pulse 1.8s infinite; }
.card .by { font-size: 12px; color: var(--muted); padding: 0 6px; text-decoration: none; }
.card .by:hover { color: var(--text); }

.skeleton { border-radius: 26px; background: linear-gradient(100deg, rgba(255,255,255,.5) 30%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.5) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skeleton.tall { aspect-ratio: 9 / 14; }
.skeleton.box { height: 250px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Verkäuferprofil */
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: var(--panel); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-border); border-radius: 34px; padding: 26px; box-shadow: var(--shadow); animation: rise .6s var(--ease) both; }
.profile-head h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); }
.profile-head .handle { color: var(--muted); font-size: 14px; }
.profile-head .bio { margin: 8px 0 0; max-width: 560px; }
.profile-stats { display: flex; gap: 18px; margin-top: 10px; font-size: 14px; flex-wrap: wrap; }
.profile-stats b { font-weight: 750; }
.profile-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.review { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 22px; padding: 14px 18px; box-shadow: var(--shadow); }
.review .who { font-size: 12px; color: var(--muted); }
.star-input { display: flex; gap: 6px; }
.star-input button { border: 0; background: none; font-size: 34px; line-height: 1; color: #d9d6e3; padding: 0; transition: transform .25s var(--spring), color .15s; }
.star-input button.on { color: #f5a623; }
.star-input button:hover { transform: scale(1.18); }

/* Show-Seite: Verkäuferzeile, Reiter, Reaktionen, Max-Gebot */
.stage-seller { display: flex; align-items: center; gap: 8px; background: rgba(20, 16, 34, .5); backdrop-filter: blur(10px); color: #fff; border-radius: 999px; padding: 4px 6px 4px 4px; text-decoration: none; min-width: 0; }
.stage-seller .who { min-width: 0; line-height: 1.15; }
.stage-seller .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.stage-seller .who span { font-size: 11px; opacity: .8; }
.stage-seller .btn { padding: 5px 11px; font-size: 12px; }
.stage-top2 { position: absolute; top: 58px; left: 14px; display: flex; gap: 6px; align-items: center; }
.stage-side { position: absolute; right: 12px; bottom: 250px; display: flex; flex-direction: column; gap: 10px; align-items: center; z-index: 3; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); font-size: 20px; display: grid; place-items: center; box-shadow: 0 10px 22px -10px rgba(20, 10, 50, .6); transition: transform .25s var(--spring); }
.round-btn:hover { transform: scale(1.08); }
.round-btn:active { transform: scale(.88); }
.hearts { position: absolute; right: 16px; bottom: 300px; width: 60px; height: 320px; pointer-events: none; z-index: 2; }
.hearts i { position: absolute; bottom: 0; left: 50%; font-style: normal; font-size: 24px; animation: floatup 2.4s ease-out forwards; }
@keyframes floatup { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 12% { opacity: 1; transform: translate(-50%, -20px) scale(1.1); } 100% { transform: translate(calc(-50% + var(--dx, 0px)), -300px) scale(.9); opacity: 0; } }
.stage-chat { display: none; }
.pinned { margin: 10px 12px 0; padding: 9px 12px; border-radius: 14px; background: #fff6e0; color: #6b4a00; font-size: 13px; font-weight: 600; }
.side-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.side-tabs button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 999px; font-weight: 650; font-size: 13px; color: var(--muted); transition: background .3s var(--ease), color .2s; }
.side-tabs button.active { background: var(--ink); color: #fff; }
.side-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.maxbid { display: flex; gap: 8px; margin-top: 8px; animation: rise .3s var(--ease) both; }
.maxbid input { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 650; }
.maxbid input:focus { outline: 0; border-color: rgba(240, 43, 65, .5); box-shadow: 0 0 0 4px rgba(240, 43, 65, .14); }
.mymax { font-size: 12px; font-weight: 650; color: var(--ok); margin-top: 6px; }
.sold-item { display: flex; gap: 10px; align-items: center; padding: 8px; }
.msg[data-uid]:not([data-uid=""]) { border-radius: 8px; }
.mod .msg.user, .mod .msg.bid { cursor: pointer; }
.mod .msg.user:hover, .mod .msg.bid:hover { background: var(--panel-2); }
.mod-menu { display: flex; gap: 6px; padding: 4px 0 6px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 6; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: rotate(720deg) translateX(40px); } }
.go-live { display: flex; flex-direction: column; gap: 8px; }
.go-live input, .go-live select { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 13px; width: 100%; }
.item .acts .btn.small { padding: 6px 10px; font-size: 12px; }
.danger-zone { border: 1px solid rgba(240, 43, 65, .25); background: rgba(240, 43, 65, .04); }
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.page-404 .code { font-size: clamp(80px, 18vw, 160px); font-weight: 800; letter-spacing: -.06em; line-height: 1; background: linear-gradient(135deg, var(--red), var(--red-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 860px) {
  /* Mobil liegt der Chat wie in Live-Apps über dem Video */
  .stage-chat { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 12px; right: 76px; bottom: 250px; max-height: 150px; overflow: hidden; justify-content: flex-end; z-index: 2; -webkit-mask-image: linear-gradient(to top, #000 60%, transparent); mask-image: linear-gradient(to top, #000 60%, transparent); }
  .stage-chat .msg { align-self: flex-start; background: rgba(20, 16, 34, .5); color: #fff; padding: 4px 10px; border-radius: 14px; font-size: 13px; backdrop-filter: blur(8px); }
  .stage-chat .msg.bid { color: #ffd58a; }
  .stage-chat .msg.system { color: rgba(255, 255, 255, .85); }
  .stage-chat .msg.me .name { color: #ff9aa6; }
  .account-name { display: none; }
  .chip.account { padding: 4px; }
  .menu { right: -10px; }
  .profile-actions { margin-left: 0; }
}

/* Studio: Vorschau begrenzen, damit die Steuerung darunter immer sichtbar bleibt */
.studio .col:first-child { overflow-y: auto; scrollbar-width: none; }
.studio .col:first-child .preview { height: min(44dvh, 460px); width: auto; align-self: center; flex: none; }
.studio .col:first-child .panel { flex: none; }

/* Show-Seite: unterer Stapel aus Reaktionen und Angebotskarte (überlappt nie, egal wie hoch die Karte ist) */
.stage-bottom { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 10px; z-index: 3; pointer-events: none; }
.stage-bottom > * { pointer-events: auto; }
.stage-bottom .deal { position: static; }
.stage-bottom .deal.idle { margin: 0 12px; }
.stage-row { display: flex; align-items: flex-end; gap: 10px; pointer-events: none; }
.stage-row > * { pointer-events: auto; }
.stage-row .stage-chat { flex: 1; min-width: 0; position: static; display: flex; visibility: hidden; height: 0; }
.stage-row .stage-side { position: relative; right: auto; bottom: auto; }
.stage-row .hearts { position: absolute; right: -6px; bottom: 100%; width: 60px; height: 300px; }
.stage-seller .btn { color: var(--text); }
.stage-seller .btn.on { color: #fff; }
@media (max-width: 860px) {
  .stage-row .stage-chat { visibility: visible; height: auto; max-height: 150px; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden; -webkit-mask-image: linear-gradient(to top, #000 60%, transparent); mask-image: linear-gradient(to top, #000 60%, transparent); }
}

/* Demo-Shows */
.demo-pill { background: rgba(255, 255, 255, .85); color: var(--text); }
#demo-stage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-top { flex-wrap: nowrap; }
.stage-top > #seller-chip { min-width: 0; flex: 0 1 auto; }
.stage-top .badge-live, .stage-top .badge-off, .stage-top .pill { flex: none; }
.stage-seller .who b { max-width: 96px; }

/* Fotos, Profilbilder, Melden */
.photo-row { display: flex; gap: 14px; align-items: center; }
.photo-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.photo-row label { width: 100%; }
.photo-preview { width: 92px; height: 92px; flex: none; border-radius: 20px; background: var(--panel-2) center/cover no-repeat; display: grid; place-items: center; font-size: 40px; border: 1px solid var(--line); }
.form input[type=file] { font-size: 13px; padding: 8px; background: #fff; border: 1px dashed rgba(24, 20, 45, .2); border-radius: 14px; width: 100%; }
.form textarea { resize: vertical; min-height: 70px; }
.avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; position: relative; transition: transform .25s var(--spring); }
.avatar-btn:hover { transform: scale(1.06); }
.avatar-btn::after { content: '✎'; position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.round-btn.small { width: 34px; height: 34px; font-size: 14px; opacity: .8; }
.badge.erstattet { color: #6a6578; background: var(--panel-2); }
.card-media { background-size: cover; }

/* Auswertung: große Kennzahl, Balken je Tag, Verkaufsliste */
.analytics { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.chart-card { background: var(--panel); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-border); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); min-width: 0; animation: rise .5s var(--ease) both; }
.big-number { font-size: 40px; font-weight: 750; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-number span { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin-top: 18px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bar-col i { display: block; width: 100%; max-width: 26px; border-radius: 8px; background: linear-gradient(180deg, #cfcbe0, #e6e3f0); transition: height .6s var(--spring), background .2s; }
.bar-col:hover i { background: linear-gradient(180deg, #8f8aa8, #bdb9d0); }
.bar-col.today i { background: linear-gradient(180deg, var(--red), var(--red-2)); }
.bar-col span { font-size: 10px; color: var(--muted); height: 12px; white-space: nowrap; }
.tx { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.tx:first-of-type { border-top: 0; }
.tx .em { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 20px; background: var(--panel-2); border-radius: 12px; }
.tx .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tx .grow b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx .grow span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.push-row { width: 100%; border: 0; background: var(--panel-2); text-align: left; font: inherit; color: inherit; margin-bottom: 4px; }
@media (max-width: 900px) { .analytics { grid-template-columns: 1fr; } }

/* Wortmarke: roter Block, weiße fette Schrift, mittleres Wort als weiße Kachel */
.logo {
  display: inline-flex; align-items: stretch; gap: 0; padding: 3px; border-radius: 11px; flex: none;
  background: var(--red); color: #fff; text-decoration: none; white-space: nowrap;
  font-family: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif; font-weight: 900; font-style: italic;
  font-size: 15px; line-height: 1; letter-spacing: -.03em; text-transform: uppercase;
  box-shadow: 0 8px 18px -8px rgba(240, 43, 65, .75), 0 1px 0 rgba(255, 255, 255, .35) inset;
  transition: transform .3s var(--spring);
}
.logo:hover { transform: rotate(-2deg) scale(1.04); }
.logo span { display: block; padding: 8px 6px 7px; }
.logo .mid { background: #fff; color: var(--red); border-radius: 8px; padding-inline: 7px; }
.logo.big { font-size: 30px; padding: 5px; border-radius: 18px; }
.logo.big span { padding: 14px 12px 12px; }
.logo.big .mid { border-radius: 13px; }
.topbar { padding-left: 7px; }
.nav { margin-left: 6px; }
@media (max-width: 640px) { .logo { font-size: 13px; } .logo span { padding: 8px 5px 7px; } }

/* ================= Anmeldung, Registrierung, Einrichtung ================= */
.auth { min-height: calc(100dvh - var(--bar-h)); display: grid; place-items: start center; padding: 18px 16px 48px; }
.auth-card { width: min(420px, 100%); position: relative; text-align: center; animation: rise .5s var(--ease) both; }
.auth-logo { margin: 8px 0 18px; }
.auth-card h1 { font-size: 30px; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 6px; }
.auth-sub { color: var(--muted); margin: 0 0 18px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.auth-card .note { text-align: left; margin-bottom: 14px; }
/* Feld mit innenliegender Beschriftung */
.field { position: relative; display: block; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 9px 14px 8px; transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: rgba(240, 43, 65, .6); box-shadow: 0 0 0 4px rgba(240, 43, 65, .14); }
.field > span { display: block; font-size: 12px; font-weight: 650; color: var(--muted); }
.field input, .field select { width: 100%; border: 0; outline: 0; background: none; padding: 2px 0 0; font-size: 16px; color: var(--text); }
.field.has-eye input { padding-right: 40px; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 18px; width: 36px; height: 36px; border-radius: 50%; }
.eye:hover { background: var(--panel-2); }
.field + .field-error { margin: -4px 0 0 6px; }
.strength { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 650; color: var(--muted); padding: 0 4px; }
.strength i { flex: 1; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--c, #d9d6e3) var(--w, 15%), #e9e7f0 0); transition: all .35s var(--ease); }
.strength[data-level="0"] i { --c: #f02b41; --w: 15%; } .strength[data-level="1"] i { --c: #f5a623; --w: 45%; }
.strength[data-level="2"] i { --c: #35c98a; --w: 75%; } .strength[data-level="3"] i { --c: #0f9d5c; --w: 100%; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 4px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.check + .field-error { margin-left: 34px; }
.auth-legal { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0; }
.auth-legal a, .auth-switch a { color: var(--red); font-weight: 650; }
.auth-switch { margin-top: 16px; font-size: 14px; }
.btn.big { padding: 15px 22px; font-size: 16px; width: 100%; }
.link-btn { border: 0; background: none; color: var(--muted); font-weight: 650; font-size: 14px; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }

.onboard-progress { display: flex; gap: 6px; margin: 6px 0 26px; }
.onboard-progress i { flex: 1; height: 6px; border-radius: 999px; background: rgba(24, 20, 45, .1); transition: background .4s var(--ease); }
.onboard-progress i.on { background: linear-gradient(90deg, var(--red), var(--red-2)); }
.onboard-avatar { display: grid; place-items: center; margin: 0 0 16px; animation: pop .5s var(--spring) both; }
.onboard-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 22px; }
.onboard-actions .btn:not(.primary) { width: 100%; }
.handle-field { text-align: left; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 2px; }
.handle-field > span { grid-column: 1 / -1; }
.handle-field b { font-size: 16px; color: var(--muted); }
.handle-status { min-height: 20px; font-size: 13px; font-weight: 650; color: var(--muted); text-align: left; padding: 6px 6px 0; }
.handle-status.good { color: var(--ok); } .handle-status.bad { color: var(--red); }
.emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 14px; }
.emoji-pick { aspect-ratio: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; font-size: 22px; font-weight: 750; transition: transform .25s var(--spring), border-color .2s; }
.emoji-pick:hover { transform: scale(1.1); }
.emoji-pick.on { border-color: var(--red); box-shadow: 0 0 0 3px rgba(240, 43, 65, .18); }
.interest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.interest { display: flex; align-items: center; gap: 10px; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 18px; padding: 14px; font-weight: 700; transition: transform .25s var(--spring), border-color .2s, background .2s; }
.interest:hover { transform: translateY(-2px); }
.interest.on { border-color: var(--red); background: rgba(240, 43, 65, .06); }
.interest.on::after { content: '✓'; margin-left: auto; color: var(--red); }
.interest-emoji { font-size: 26px; }
.follow-list { display: flex; flex-direction: column; gap: 8px; text-align: left; max-height: 46dvh; overflow-y: auto; }
.follow-row { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; }
.follow-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.follow-row .grow span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= Punkte, Level, Abzeichen ================= */
.lvl { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; font-style: normal; letter-spacing: 0; color: #fff; background: linear-gradient(135deg, #7c6cff, #3aa0ff); vertical-align: 1px; }
.msg .lvl { margin-right: 5px; }
.chip.account .lvl { margin-left: -2px; }
.xp-bar { height: 8px; border-radius: 999px; background: rgba(24, 20, 45, .09); overflow: hidden; }
.xp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7c6cff, #3aa0ff); transition: width .8s var(--spring); }
.xp-bar.big { height: 12px; margin: 4px 0 14px; }
.game-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.game-level { width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7c6cff, #3aa0ff); box-shadow: 0 14px 28px -12px rgba(90, 100, 255, .7); line-height: 1; text-align: center; }
.game-level b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; display: block; }
.game-level span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.streak { text-align: center; font-weight: 750; }
.streak b { display: block; font-size: 26px; letter-spacing: -.03em; }
.streak span { font-size: 11px; color: var(--muted); font-weight: 650; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.game-badge { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 650; animation: pop .4s var(--spring) both; }
.game-badge.locked { opacity: .4; filter: grayscale(1); }
.xp-pop { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 70; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.xp-pop span { background: linear-gradient(135deg, #7c6cff, #3aa0ff); color: #fff; font-weight: 800; padding: 7px 14px; border-radius: 999px; box-shadow: 0 12px 26px -10px rgba(90, 100, 255, .8); animation: xpfly 1.6s var(--ease) forwards; }
.xp-pop span.up { background: linear-gradient(135deg, #ffb020, #ff6a3d); font-size: 17px; padding: 10px 18px; animation-duration: 2.6s; }
@keyframes xpfly { 0% { opacity: 0; transform: translateY(16px) scale(.8); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; transform: translateY(-18px); } 100% { opacity: 0; transform: translateY(-40px); } }
.board-row { display: flex; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 14px; }
.board-row.me { background: rgba(124, 108, 255, .1); }
.board-rank { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--panel-2); }
.board-row:nth-child(1) .board-rank { background: linear-gradient(135deg, #ffd24a, #ff9d2e); color: #fff; }
.board-row:nth-child(2) .board-rank { background: linear-gradient(135deg, #d9dbe6, #a9aec4); color: #fff; }
.board-row:nth-child(3) .board-rank { background: linear-gradient(135deg, #e6b08a, #c07a45); color: #fff; }
.hype { position: absolute; left: 14px; right: 14px; top: 96px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .28); overflow: hidden; opacity: 0; transition: opacity .4s; }
.hype.on { opacity: 1; }
.hype i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ffb020, #ff6a3d, #f02b41); transition: width .5s var(--ease); }
.stage.hyped { box-shadow: 0 30px 80px -30px rgba(240, 43, 65, .8), 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 7px rgba(255, 160, 80, .55); }
.rec-pill { background: rgba(20, 16, 34, .55); color: #fff; }
.rec-pill::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; margin-right: 6px; animation: urgent 1.2s infinite; }
.replay-badge { background: var(--ink); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }
.stage video.replay { object-fit: cover; }
.replay-controls { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(20px); border-radius: 999px; padding: 6px 14px 6px 6px; box-shadow: 0 16px 34px -16px rgba(20, 10, 50, .6); }
.replay-controls input[type=range] { flex: 1; accent-color: var(--red); min-width: 0; }
.replay-controls .time { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.duration { position: absolute; right: 10px; bottom: 10px; background: rgba(20, 16, 34, .7); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
@media (max-width: 640px) { .game-card { grid-template-columns: auto 1fr; } .game-card .streak { grid-column: 1 / -1; } }

/* Schmale Handys: Kopfleiste darf nicht überlaufen */
@media (max-width: 430px) {
  .topbar { gap: 6px; padding: 0 6px; }
  .topbar .chip, .topbar .btn.small { padding: 7px 10px; font-size: 12px; }
  .topbar .spacer { min-width: 0; }
  .logo { font-size: 12px; }
  .logo span { padding: 7px 4px 6px; }
}


/* ===================== Handy-Ansicht wie in Live-Apps ===================== */
/* Untere Tab-Leiste */
.tabbar { display: none; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
.hero-actions .btn { text-align: center; justify-content: center; }
.feed-head { align-items: center; margin: 22px 0 12px; }
.feed-tabs { display: flex; gap: 20px; }
.feed-tabs button { border: 0; background: none; padding: 4px 0 8px; font-size: 21px; font-weight: 750; letter-spacing: -.03em; color: var(--muted); position: relative; transition: color .2s; }
.feed-tabs button.active { color: var(--text); }
.feed-tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--red-2)); transform: scaleX(0); transition: transform .35s var(--spring); }
.feed-tabs button.active::after { transform: scaleX(1); }
@media (max-width: 860px) {
  .tabbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 35;
    display: flex; gap: 2px; padding: 6px;
    background: rgba(255, 255, 255, .84); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
    border: 1px solid var(--glass-border); border-radius: 26px; box-shadow: var(--shadow), 0 20px 40px -20px rgba(40, 25, 80, .5);
  }
  .tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px 5px; border-radius: 20px; text-decoration: none; font-size: 11px; font-weight: 650; color: var(--muted); transition: background .3s var(--ease), color .2s, transform .25s var(--spring); }
  .tabbar .tab:active { transform: scale(.9); }
  .tabbar .tab.active { background: var(--ink); color: #fff; }
  .tab-icon { font-size: 19px; line-height: 1.25; }
  body:has(.tabbar) { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  body:has(.tabbar) .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .live-thumb { border-radius: 20px; aspect-ratio: 9 / 15; }
  .live-thumb-emoji { font-size: 54px; }
  .live-top { top: 8px; left: 8px; right: 8px; gap: 4px; }
  .live-top .demo-pill { display: none; }
  .container { padding: 8px 12px 36px; }
  .hero { padding: 22px 18px; gap: 14px; flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 30px; margin: 10px 0 6px; }
  .hero .btn.primary { text-align: center; justify-content: center; }
  .search { margin: 12px 0 8px; }
  .feed-tabs button { font-size: 19px; }
}

/* Registrieren / Anmelden als Einblendung */
dialog.sheet { width: min(420px, 94vw); padding: 28px 22px 22px; text-align: center; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel-2); font-size: 14px; display: grid; place-items: center; }
.auth-sheet h3 { font-size: 25px; margin: 2px 0 6px; }
.auth-sheet .auth-sub { margin-bottom: 16px; }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 640px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 28px 28px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow-y: auto; }
  dialog.sheet[open] { animation: sheetup .42s var(--ease) both; }
}

/* Show: Reaktionen, Eingabe, Hinweise */
.stage-close { display: none; }
.stage-say { display: flex; justify-content: flex-end; align-items: center; gap: 8px; pointer-events: none; margin: 0; }
.stage-say > * { pointer-events: auto; }
.stage-say input { display: none; }
.react-bar { display: flex; gap: 2px; background: rgba(20, 16, 34, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 4px 6px; }
.react-bar button { border: 0; background: none; font-size: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; transition: transform .2s var(--spring); }
.react-bar button:hover { transform: scale(1.22); }
.react-bar button.hit { animation: hit .38s var(--spring); }
@keyframes hit { 40% { transform: scale(1.6) rotate(-10deg); } }
.guest-nudge { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .94); border-radius: 18px; padding: 8px 6px 8px 14px; font-size: 13px; line-height: 1.3; box-shadow: 0 16px 34px -16px rgba(20, 10, 50, .6); animation: rise .5s var(--ease) both; }
.guest-nudge span { flex: 1; min-width: 0; }
.nudge-x { border: 0; background: none; color: var(--muted); padding: 6px; font-size: 13px; }
.side-grab, .sheet-backdrop { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Show: großer Countdown, Zuschlag-Stempel, Ansage, Wisch-Hinweis */
.bigcount { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; font-size: 190px; font-weight: 900; line-height: 1; color: #fff; -webkit-text-stroke: 4px rgba(240, 43, 65, .95); text-shadow: 0 12px 50px rgba(240, 43, 65, .75); font-variant-numeric: tabular-nums; }
.bigcount.go { animation: countpop .95s var(--ease) both; }
@keyframes countpop { 0% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 75% { opacity: .95; } 100% { transform: translate(-50%, -50%) scale(.78); opacity: 0; } }
.stamp { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 4; pointer-events: none; text-align: center; padding: 12px 24px 10px; border: 5px solid #fff; border-radius: 20px; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; box-shadow: 0 24px 60px -14px rgba(240, 43, 65, .95); white-space: nowrap; max-width: 92%; }
.stamp b { display: block; font-size: 36px; font-weight: 900; letter-spacing: .01em; line-height: 1.05; }
.stamp span { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.stamp.go { animation: stamp 2.6s var(--ease) both; }
@keyframes stamp {
  0% { transform: translate(-50%, -50%) rotate(-8deg) scale(3.2); opacity: 0; }
  11% { transform: translate(-50%, -50%) rotate(-8deg) scale(.94); opacity: 1; }
  17% { transform: translate(-50%, -50%) rotate(-8deg) scale(1.06); }
  23%, 84% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(-8deg) scale(.9); opacity: 0; }
}
.stage-banner { position: absolute; top: 108px; left: 50%; transform: translateX(-50%); z-index: 4; pointer-events: none; max-width: calc(100% - 28px); padding: 9px 18px; border-radius: 999px; background: linear-gradient(135deg, #1b1630, #4a1b3c); color: #ffd58a; font-weight: 750; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 16px 34px -12px rgba(20, 10, 50, .8), 0 0 0 2px rgba(255, 213, 138, .5); }
.stage-banner.go { animation: bannerin 4.2s var(--ease) both; }
@keyframes bannerin { 0% { transform: translateX(-50%) translateY(-22px) scale(.8); opacity: 0; } 8%, 90% { transform: translateX(-50%); opacity: 1; } 100% { transform: translateX(-50%); opacity: 0; } }
.swipe-hint { position: absolute; left: 50%; top: 20%; transform: translateX(-50%); z-index: 4; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 34px; font-weight: 800; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); animation: swipehint 1.5s ease-in-out infinite; }
.swipe-hint span { font-size: 13px; font-weight: 650; text-shadow: none; background: rgba(20, 16, 34, .6); padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
@keyframes swipehint { 50% { transform: translateX(-50%) translateY(-18px); } }
.stage.leave-up { transform: translateY(-60%); opacity: 0; transition: transform .22s ease-in, opacity .22s ease-in; }
.stage.leave-down { transform: translateY(60%); opacity: 0; transition: transform .22s ease-in, opacity .22s ease-in; }
.stage.enter-up { animation: enterup .38s var(--ease) both; }
.stage.enter-down { animation: enterdown .38s var(--ease) both; }
@keyframes enterup { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes enterdown { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Show am Handy: Vollbild, alles liegt über dem Video */
@media (max-width: 860px) {
  body.fullstage { padding: 0; overflow: hidden; background: #0e0c14; overscroll-behavior: none; }
  body.fullstage .topbar { display: none; }
  body.fullstage .layout { display: block; padding: 0; height: 100dvh; }
  body.fullstage .stage { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; border-radius: 0; box-shadow: none; aspect-ratio: auto; margin: 0; }
  body.fullstage .stage.hyped { box-shadow: inset 0 0 0 4px rgba(255, 160, 80, .7); }
  body.fullstage .stage-top { top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; gap: 6px; }
  body.fullstage .stage-top2 { top: calc(54px + env(safe-area-inset-top)); left: 10px; }
  body.fullstage .hype { top: calc(92px + env(safe-area-inset-top)); left: 10px; right: 10px; }
  body.fullstage .stage-banner { top: calc(106px + env(safe-area-inset-top)); }
  body.fullstage .stage-bottom { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  body.fullstage .conn { top: calc(8px + env(safe-area-inset-top)); }
  .stage-close { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(20, 16, 34, .55); color: #fff; text-decoration: none; font-size: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .stage-say input { display: block; flex: 1; min-width: 0; height: 42px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(20, 16, 34, .5); color: #fff; padding: 0 16px; font-size: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .stage-say input::placeholder { color: rgba(255, 255, 255, .78); }
  .stage-say input:focus { outline: 0; border-color: #fff; background: rgba(20, 16, 34, .7); }
  .react-bar { padding: 5px 4px; gap: 0; flex: none; }
  .react-bar button { width: 31px; height: 32px; font-size: 19px; }
  body.fullstage .round-btn { width: 42px; height: 42px; font-size: 18px; }
  body.fullstage .round-btn.small { width: 32px; height: 32px; font-size: 13px; }
  body.fullstage .stage-side { gap: 8px; }
  body.fullstage .deal { padding: 12px; border-radius: 22px; }
  body.fullstage .deal-desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  /* Shop, Chat, Verkauft und Rangliste kommen als Blatt von unten */
  body.fullstage .side { position: fixed; left: 0; right: 0; bottom: 0; height: 72dvh; z-index: 45; transform: translateY(106%); transition: transform .42s var(--ease); background: #fff; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); gap: 0; box-shadow: 0 -30px 60px -20px rgba(20, 10, 50, .55); }
  body.fullstage .side.open { transform: none; }
  body.fullstage .side .panel.chat { height: auto; flex: 1; min-height: 0; border: 0; box-shadow: none; background: none; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
  .side-grab { display: block; border: 0; background: none; padding: 10px 0 4px; width: 100%; flex: none; }
  .side-grab i { display: block; width: 44px; height: 5px; border-radius: 5px; background: rgba(24, 20, 45, .2); margin: 0 auto; }
  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(20, 15, 40, .45); animation: fadein .25s both; }
  .bigcount { font-size: 170px; top: 30%; }
  .stamp { top: 30%; }
}
@media (min-width: 861px) {
  /* Am großen Bildschirm steht der Chat daneben – auf der Bühne bleiben nur die Reaktionen */
  .swipe-hint { display: none; }
}

/* Replay am Handy: Steuerleiste über dem Video */
@media (max-width: 860px) {
  body.fullstage video.replay { object-fit: contain; }
}

/* Umfrage im Stream */
.poll { background: rgba(20, 16, 34, .62); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: #fff; border-radius: 20px; padding: 10px 10px 8px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 16px 34px -16px rgba(20, 10, 50, .7); }
.poll.in { animation: rise .5s var(--spring) both; }
.poll-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px 7px; }
.poll-head b { font-size: 14px; line-height: 1.25; min-width: 0; }
.poll-head span { font-size: 11px; font-weight: 650; opacity: .8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.poll-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14); color: #fff; border-radius: 13px; padding: 8px 11px; font-size: 13px; font-weight: 650; min-width: 0; transition: transform .2s var(--spring), background .2s; }
.poll-opt:not(:disabled):hover { background: rgba(255, 255, 255, .26); }
.poll-opt:not(:disabled):active { transform: scale(.95); }
.poll-opt:disabled { cursor: default; opacity: 1; }
.poll-opt i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 255, 255, .22); transition: width .6s var(--ease); }
.poll-opt span, .poll-opt b { position: relative; }
.poll-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.poll-opt b { font-variant-numeric: tabular-nums; flex: none; }
.poll-opt.mine { border-color: #fff; }
.poll-opt.mine i { background: linear-gradient(90deg, rgba(240, 43, 65, .95), rgba(255, 106, 61, .9)); }
.poll-opt.top i { background: linear-gradient(90deg, rgba(255, 176, 32, .95), rgba(255, 106, 61, .9)); }
.poll-opts .poll-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.poll-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.poll-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-row .btn { flex: none; }
/* Kleine Handys: weniger Chat-Zeilen, damit Umfrage und Angebot zusammen Platz haben */
@media (max-width: 860px) and (max-height: 720px) {
  body.fullstage .stage-row .stage-chat { max-height: 84px; }
  body.fullstage .stage-side .round-btn.small, body.fullstage #share { display: none; }
  body.fullstage .deal-desc { display: none; }
  .bigcount { font-size: 130px; top: 24%; }
}
@media (max-width: 860px) and (max-height: 720px) {
  body.fullstage .stage-bottom { gap: 6px; }
  body.fullstage .deal { padding: 10px 12px; }
  body.fullstage .deal-emoji { width: 34px; height: 34px; font-size: 20px; border-radius: 11px; }
  body.fullstage .deal-row { margin-top: 4px; }
  body.fullstage .deal-price { font-size: 28px; }
  body.fullstage .deal-uvp { display: none; }
  body.fullstage .deal .bar { margin-top: 6px; }
  body.fullstage .deal-actions { margin-top: 8px; }
  body.fullstage .deal-actions .btn { padding-top: 10px; padding-bottom: 10px; }
  .poll { padding: 8px 8px 6px; border-radius: 18px; }
  .poll-head { padding-bottom: 5px; }
  .poll-head b { font-size: 13px; }
  .poll-opt { padding: 6px 10px; }
  .stage-say input { height: 38px; }
  body.fullstage .stage-row .stage-chat { max-height: 62px; }
  body.fullstage .round-btn { width: 38px; height: 38px; font-size: 16px; }
}
/* Nie alles auf einmal: Solange eine Umfrage läuft, wartet der Registrier-Hinweis */
.poll:not([hidden]) ~ .guest-nudge { display: none; }


/* ===================== Sorgfalt: gefundene Darstellungsfehler ===================== */
/* Hintergrund als feste Ebene (background-attachment: fixed bricht auf iPhones und zeigt beim Scrollen eine Kante) */
body { background: var(--bg); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(255, 170, 190, .45), transparent 70%),
    radial-gradient(50% 45% at 92% 8%, rgba(170, 190, 255, .45), transparent 70%),
    radial-gradient(55% 50% at 70% 100%, rgba(255, 214, 170, .42), transparent 70%),
    radial-gradient(45% 45% at 0% 90%, rgba(200, 180, 255, .36), transparent 70%),
    var(--bg);
}
/* Studio: Das Häkchen "Show aufzeichnen" wurde wie ein Textfeld auf volle Breite gezogen – die Beschriftung verschwand */
.go-live input[type=checkbox] { width: 16px; padding: 0; border: 0; background: none; flex: none; }
.go-live .switch { padding: 2px 2px 0; }
.studio .col:first-child .preview { height: min(38dvh, 400px); }
.studio .col { min-width: 0; }
.poll-row span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 640px) {
  .studio { grid-template-columns: minmax(0, 1fr); height: auto; }
  .studio .col:first-child { overflow: visible; }
  .studio .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Reaktionen: am großen Bildschirm im Chat, am Handy auf dem Video */
.react-bar.light { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 6px 10px 0; justify-content: space-between; border-top: 1px solid var(--line); border-radius: 0; }
.react-bar.light button:hover { background: var(--panel-2); }
.react-bar.light + .chat-form { border-top: 0; padding-top: 6px; }
@media (min-width: 861px) { .stage-say { display: none; } }
@media (max-width: 860px) {
  body.fullstage .react-bar.light { display: none; }
  /* Studio und Hub stehen in der Tab-Leiste – die Kopfleiste bleibt aufgeräumt */
  .nav-link.in-tabbar { display: none; }
  .tabbar .tab { min-width: 0; }
}
/* Formulare am Handy: höchstens zwei Felder nebeneinander */
@media (max-width: 640px) {
  .form .cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  /* Konto: Level und Serie oben, Abzeichen darunter über die volle Breite */
  .game-card { grid-template-columns: auto 1fr; row-gap: 12px; }
  .game-card > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .game-card .streak { grid-column: 2; grid-row: 1; justify-self: end; display: flex; align-items: baseline; gap: 6px; }
  .game-card .streak b { display: inline; }
  .badge-row { justify-content: flex-start; }
}
.live-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }


/* ===================== Startseite: Livestreams im Mittelpunkt ===================== */
.container.wide { max-width: 1240px; }
.home-bar { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.home-bar .search { flex: 0 1 340px; margin: 0; }
.home-bar .search input { padding: 12px 18px 12px 46px; font-size: 15px; }
.home-bar .search::before { left: 18px; }
.home-bar .chips { flex: 1; min-width: 0; padding: 4px 2px; }
.home-live { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 22px; align-items: start; }
.home-live.solo { grid-template-columns: minmax(0, 1fr); }
.home-live .feed-head { margin: 0 0 12px; }
.live-side { min-width: 0; }
.live-side .live-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.feature { position: relative; display: block; aspect-ratio: 9 / 16; max-height: calc(100dvh - 190px); min-height: 480px; width: 100%; border-radius: 34px; overflow: hidden; text-decoration: none; color: #fff; background-color: #0e0c14; background-size: cover; background-position: center; box-shadow: 0 30px 80px -30px rgba(40, 25, 80, .6), 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 7px rgba(255, 255, 255, .4); transition: transform .45s var(--spring), box-shadow .3s; animation: rise .55s var(--ease) both; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 40px 90px -30px rgba(240, 43, 65, .55), 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 7px rgba(255, 255, 255, .5); }
.feature video, .feature canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 12, 20, .82) 0%, rgba(14, 12, 20, .35) 38%, rgba(14, 12, 20, 0) 60%); pointer-events: none; }
.feature-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; align-items: center; }
.feature-bottom { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.feature-chat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; margin-bottom: 4px; }
.feature-chat .msg { background: rgba(20, 16, 34, .5); color: #fff; padding: 4px 10px; border-radius: 14px; font-size: 13px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-chat .msg.bid { color: #ffd58a; }
.feature-chat .msg .lvl { display: none; }
.feature-seller { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.feature-seller b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-seller span { opacity: .8; white-space: nowrap; }
.feature-title { font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-now { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .94); color: var(--text); border-radius: 16px; padding: 9px 12px; font-size: 13px; font-weight: 650; min-width: 0; }
.feature-now span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-now b { font-size: 16px; font-variant-numeric: tabular-nums; flex: none; }
.feature-clock { flex: none; font-variant-numeric: tabular-nums; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px; }
.feature-now.urgent .feature-clock { background: var(--red); animation: urgent .6s infinite; }
.feature-cta { justify-content: center; text-align: center; padding: 14px; font-size: 16px; pointer-events: none; }
.guest-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 14px 16px 14px 20px; border-radius: 22px; background: rgba(255, 255, 255, .78); border: 1px solid var(--glass-border); box-shadow: var(--shadow); font-size: 14px; }
.guest-strip .btn { flex: none; }
@media (max-width: 860px) {
  .home-bar { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 10px; }
  .home-bar .search { flex: none; }
  .home-live { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feature { aspect-ratio: 4 / 5; min-height: 0; max-height: none; border-radius: 28px; }
  .feature-title { font-size: 22px; }
  .live-side .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pill, .badge-live, .badge-off { white-space: nowrap; flex: none; }
.live-side .live-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.live-side .side-h { margin: 26px 0 12px; }
.live-side .rail { margin-right: 0; }
@media (max-width: 860px) {
  .live-side .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature canvas { object-position: 50% 12%; }
}

/* Startseite, wenn niemand live ist */
.offstage { position: relative; overflow: hidden; text-align: center; padding: 56px 24px 48px; border-radius: 34px; color: #fff; background: radial-gradient(80% 120% at 20% 0%, rgba(240, 43, 65, .55), transparent 60%), radial-gradient(70% 110% at 90% 100%, rgba(120, 100, 255, .5), transparent 60%), #16141d; box-shadow: 0 30px 80px -30px rgba(40, 25, 80, .6); animation: rise .55s var(--ease) both; }
.offstage .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--red); margin: 0 auto 18px; animation: pulse 1.5s infinite; }
.offstage h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; line-height: 1.08; }
.offstage p { margin: 0 auto; max-width: 520px; color: rgba(255, 255, 255, .78); font-size: 16px; }
.offstage-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.offstage-actions .btn { padding: 13px 22px; }
.offstage-actions .btn { flex: none; width: auto; }
@media (max-width: 860px) {
  .topbar .nav { flex: none; overflow: visible; margin-left: 2px; }
  .topbar .nav-link { padding: 6px 8px; font-size: 13px; }
}

/* Wortmarke gestapelt: RED / DEAL / DAYS untereinander als kompakter roter Block */
.logo { flex-direction: column; align-items: stretch; text-align: center; padding: 3px; border-radius: 12px; font-size: 11.5px; letter-spacing: -.01em; }
.logo span { padding: 2px 7px 1px; }
.logo span:first-child { letter-spacing: .09em; padding-top: 2.5px; }
.logo .mid { border-radius: 6px; padding-inline: 7px; }
.logo.big { font-size: 34px; padding: 7px; border-radius: 24px; }
.logo.big span { padding: 6px 18px 3px; }
.logo.big .mid { border-radius: 14px; }

/* Wortmarke als Bild (Variante "Block gerade"): die älteren Regeln für die Text-Fassung gelten nicht mehr */
.logo { display: inline-flex; padding: 0; background: none; border-radius: 10px; font-size: 0; line-height: 0; box-shadow: 0 8px 18px -8px rgba(240, 43, 65, .75); }
.logo img { display: block; width: 44px; height: 44px; border-radius: 9px; }
.logo.big { padding: 0; border-radius: 30px; font-size: 0; box-shadow: 0 24px 50px -20px rgba(240, 43, 65, .8); }
.logo.big img { width: 148px; height: 148px; border-radius: 28px; }
/* Leuchtschrift-Logo auf dunklem Grund: dunklerer Schatten statt rotem Schein */
.logo { box-shadow: 0 8px 18px -8px rgba(20, 10, 20, .7), 0 0 0 1px rgba(255, 255, 255, .5); }
.logo.big { box-shadow: 0 26px 54px -22px rgba(240, 43, 65, .65), 0 0 0 1px rgba(255, 255, 255, .5); }
