:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --line: #334155;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --red: #ef4444;
  --red-dark: #991b1b;
  --gold: #fbbf24;
  --green: #22c55e;
  --accent: #6366f1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
h1, h2 { margin: 0; }
h2 { font-size: 1.05rem; margin-bottom: 12px; }
.muted { color: var(--muted); font-weight: 400; }
.view {
  max-width: 1000px; margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

/* Start */
.home { max-width: 460px; padding-top: 48px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 2.4rem; letter-spacing: -.02em; }
.dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fca5a5, var(--red) 45%, var(--red-dark)); flex: none; }
.sub { color: var(--muted); margin: 8px 0 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
textarea { padding: 10px 12px; resize: vertical; min-height: 44px; line-height: 1.35; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
input {
  height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
#j-code { text-transform: uppercase; letter-spacing: .3em; font-weight: 700; font-size: 1.2rem; }
.err { color: #fca5a5; background: #450a0a; border: 1px solid #7f1d1d; padding: 10px 14px; border-radius: 10px; }

/* Knoepfe */
.btn {
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line);
  background: #273449; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { filter: brightness(1.15); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.danger { background: #b91c1c; border-color: #b91c1c; }
.btn.ghost { background: transparent; }
.btn.small { height: 34px; padding: 0 12px; font-size: .9rem; }
.btn.big { height: 56px; font-size: 1.1rem; padding: 0 24px; }
.btn.on { background: #78350f; border-color: var(--gold); color: var(--gold); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font: 600 .75rem system-ui; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.18); }

/* Kopfleiste */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bar-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; min-width: 0; }
.bar-title > span:last-child, .titles > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me { color: var(--muted); font-weight: 500; font-size: .85rem; }
.bar .btn { flex: none; }

/* Spielleitung */
.share { display: flex; gap: 24px; align-items: flex-end; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.lbl { color: var(--muted); font-size: .85rem; }
.code { font-size: 3rem; font-weight: 800; letter-spacing: .15em; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.share-link { flex: 1; min-width: 220px; }
.link-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.link-row span { font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.controls { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.share-mobile { display: none; }
.settings-box { margin-bottom: 16px; }
.settings-box summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 700; user-select: none;
}
.settings-box summary::-webkit-details-marker { display: none; }
.settings-box summary::after { content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 0 0 auto; transition: transform .15s; flex: none; }
.settings-box[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.settings-box summary .muted { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.settings-box[open] summary .muted { display: none; }
.settings-box .settings { margin: 4px 0 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.empty { color: var(--muted); margin: 0; }

.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ranking li {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  animation: pop .25s ease-out;
}
.ranking .pl { font-weight: 800; font-size: 1.2rem; color: var(--muted); text-align: center; }
.ranking .nm { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.ranking .tm { color: var(--muted); font-variant-numeric: tabular-nums; }
.ranking li:first-child { background: linear-gradient(90deg, #78350f, #1e293b); border-color: var(--gold); padding: 16px 14px; }
.ranking li:first-child .pl { color: var(--gold); font-size: 1.6rem; }
.ranking li:first-child .nm { font-size: 1.5rem; }
.ranking li.mine { outline: 2px solid var(--accent); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.players li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; min-height: 44px; border-bottom: 1px solid var(--line); }
.players li:last-child { border-bottom: 0; }
.players .on { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.players .off { width: 9px; height: 9px; border-radius: 50%; background: #475569; flex: none; }
.players .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.players .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.3rem; width: 44px; height: 44px; margin: -6px -8px -6px 0; border-radius: 10px; flex: none; }
.players .x:hover { background: #450a0a; color: #fca5a5; }

/* Einstellungen */
.settings { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 16px; }
.seg-group { display: flex; flex-direction: column; gap: 6px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.seg button.sel { background: var(--accent); color: #fff; }
.choice-edit { margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.opt-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-edit label { flex-direction: row; align-items: center; gap: 8px; }
.opt-edit input { flex: 1; min-width: 0; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.reveal { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.reveal button { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border-radius: 10px; border: 2px solid transparent; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; max-width: 100%; }
.reveal button .ct { color: var(--muted); font-variant-numeric: tabular-nums; }
.reveal button .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.reveal button.right { border-color: var(--green); background: #052e16; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; font-weight: 800; color: #fff; flex: none; }
.c0 { background: #dc2626; } .c1 { background: #2563eb; } .c2 { background: #ca8a04; } .c3 { background: #16a34a; } .c4 { background: #9333ea; } .c5 { background: #db2777; }
.badge.hid { background: #475569; }
.ranking.mc li { grid-template-columns: 44px auto 1fr auto; }
.ranking li.right { border-color: var(--green); }
.ranking li.wrong { opacity: .55; }
.ranking li.right:first-of-type, .ranking li.right.firstright { background: linear-gradient(90deg, #14532d, #1e293b); }

/* Teilnehmer */
.question { font-size: 1.3rem; font-weight: 700; text-align: center; margin: 0 0 16px; max-width: 640px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 640px; margin-bottom: 8px; }
.choice {
  min-height: 96px; border: 0; border-radius: 14px; color: #fff; font: 700 1.1rem/1.25 system-ui; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left;
  box-shadow: 0 6px 0 rgba(0,0,0,.35); transition: transform .06s, box-shadow .06s, opacity .2s;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  overflow-wrap: anywhere;
}
.choice .big { font-size: 2rem; font-weight: 900; }
.choice:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.choice.picked { outline: 4px solid #fff; outline-offset: 2px; transform: translateY(5px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.choice.dim { opacity: .3; }
.choice.right { outline: 4px solid var(--green); outline-offset: 2px; opacity: 1; }
.choice:disabled { cursor: default; }
.choices.locked .choice { filter: grayscale(1); opacity: .4; }
#p-reset { margin-top: 14px; }

/* Buzzer-Knopf */
.buzz-wrap { display: flex; flex-direction: column; align-items: center; padding: 12px 0 24px; }
.buzzer {
  width: min(72vw, 52dvh, 320px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #fca5a5 0, var(--red) 40%, var(--red-dark) 100%);
  box-shadow: 0 14px 0 #450a0a, 0 22px 40px rgba(0,0,0,.5);
  color: #fff; font: 900 clamp(2rem, 11vw, 3.4rem)/1 system-ui; letter-spacing: .03em;
  text-shadow: 0 3px 0 rgba(0,0,0,.3);
  transition: transform .06s, box-shadow .06s;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  margin-bottom: 14px;
  -webkit-touch-callout: none;
}
.buzzer:active:not(:disabled), .buzzer.down { transform: translateY(10px); box-shadow: 0 4px 0 #450a0a, 0 8px 20px rgba(0,0,0,.5); }
.buzzer.done { background: radial-gradient(circle at 35% 30%, #fde68a 0, var(--gold) 40%, #92400e 100%); box-shadow: 0 4px 0 #451a03, 0 8px 20px rgba(0,0,0,.5); transform: translateY(10px); color: #451a03; text-shadow: none; cursor: default; }
.buzzer.locked { background: radial-gradient(circle at 35% 30%, #94a3b8 0, #475569 45%, #1e293b 100%); box-shadow: 0 6px 0 #0f172a; transform: translateY(8px); cursor: not-allowed; font-size: clamp(1.4rem, 7vw, 2.2rem); }
.buzz-hint { color: var(--muted); margin: 6px 0 0; min-height: 1.4em; text-align: center; }

/* Hinweise */
.conn { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: #92400e; color: #fff; text-align: center; padding: 6px; font-size: .9rem; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); overflow-wrap: anywhere; transform: translateX(-50%); background: #111827; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; z-index: 40; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; max-width: 380px; width: 100%; }
.modal-box p { margin: 0 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 700px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .controls { grid-template-columns: 1fr 1fr; }
  .code { font-size: 2.4rem; }
  .home { padding-top: max(24px, env(safe-area-inset-top)); }
  .btn.big { font-size: 1rem; padding: 0 12px; }
  .btn.big kbd { display: none; }
  .opt-edit { grid-template-columns: 1fr; }
  .choice { min-height: 80px; }
}
.ranking li.wrong:first-child { background: var(--bg); border-color: var(--line); }
.ranking li.wrong:first-child .pl { color: var(--muted); }

/* Handy */
@media (max-width: 560px) {
  /* Nebenaktionen in der Kopfleiste nur als Symbol, Beschriftung bleibt fuer Vorleseprogramme */
  .btn.icon-sm { font-size: 0; width: 44px; height: 44px; padding: 0; gap: 0; }
  .bar { margin-bottom: 12px; }

  /* Code + Einladen in einer Zeile, Link selbst ausblenden */
  .share { padding: 12px 16px; gap: 12px; align-items: center; flex-wrap: nowrap; margin-bottom: 12px; }
  .share > div:first-child { flex: 1; min-width: 0; }
  .share-link { display: none; }
  .share-mobile { display: block; flex: none; }
  .share-mobile .btn { height: 48px; }

  .settings-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 2px 16px; margin-bottom: 12px; }
  .settings-box[open] { padding-bottom: 16px; }
  .settings { flex-direction: column; gap: 14px; }
  .seg { display: flex; }
  .seg button { flex: 1; height: 44px; padding: 0 8px; }
  .choice-edit { padding: 14px 16px; margin-bottom: 12px; }
  .panel { padding: 14px 16px; }
  .cols { gap: 12px; }

  /* Hauptknoepfe der Spielleitung bleiben unten im Daumenbereich */
  .host { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .controls {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0;
    padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(15, 23, 42, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    grid-template-columns: 2fr 1fr;
  }
  .controls .btn.big { height: 54px; }
  body:has(#v-host:not([hidden])) .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

  .ranking li { grid-template-columns: 32px 1fr auto; gap: 10px; padding: 10px 12px; }
  .ranking.mc li { grid-template-columns: 32px auto 1fr auto; }
  .ranking li:first-child .nm { font-size: 1.25rem; }
  .ranking .tm { font-size: .9rem; }

  .question { font-size: 1.15rem; margin-bottom: 12px; }
  .choices { gap: 10px; }
  .choice { padding: 10px 12px; gap: 10px; font-size: 1rem; }
  .choice .big { font-size: 1.7rem; }
  .buzz-wrap { padding: 4px 0 18px; }
}

/* Querformat am Handy: Buzzer neben die Rangliste */
@media (max-height: 500px) and (orientation: landscape) {
  .play { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr); grid-template-rows: auto 1fr; gap: 0 20px; align-items: start; max-width: none; }
  .play .bar { grid-column: 1 / -1; margin-bottom: 8px; }
  .play .buzz-wrap { padding: 0; min-width: 0; }
  .buzzer { width: min(60dvh, 260px); }
  .question { font-size: 1.05rem; margin-bottom: 8px; }
  .choices { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .choice { min-height: 64px; padding: 8px 10px; font-size: .95rem; }
  .choice .big { font-size: 1.5rem; }
  .play .panel { padding: 12px 14px; }
}

/* Ton-Schalter */
.bar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.snd .m { display: none; }
.snd.off .w { display: none; }
.snd.off .m { display: inline; }
.snd.off { color: var(--muted); }

/* Platz 1 gold, alle spaeteren silbern - deutlich anders als "Gesperrt" */
.buzzer.done { background: radial-gradient(circle at 35% 30%, #f1f5f9 0, #94a3b8 45%, #475569 100%); box-shadow: 0 4px 0 #1e293b, 0 8px 20px rgba(0,0,0,.5); color: #1e293b; }
.buzzer.done.first { background: radial-gradient(circle at 35% 30%, #fef3c7 0, var(--gold) 40%, #92400e 100%); box-shadow: 0 4px 0 #451a03, 0 0 0 6px rgba(251,191,36,.25), 0 8px 30px rgba(251,191,36,.35); color: #451a03; }
.buzzer.locked { background: radial-gradient(circle at 35% 30%, #475569 0, #334155 45%, #1e293b 100%); color: #94a3b8; }
.buzzer .crown { display: block; font-size: .45em; letter-spacing: .05em; margin-top: .2em; }

/* Spielleitung spielt mit */
.host-play { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.host-play-head { display: flex; align-items: baseline; gap: 8px; align-self: stretch; }
.host-play-head h2 { margin-bottom: 8px; }
.host-play .buzzer { width: min(56vw, 34dvh, 220px); font-size: clamp(1.6rem, 8vw, 2.6rem); }
.host-play .choices { margin-bottom: 0; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #450a0a; color: #fca5a5; font-size: .75rem; font-weight: 600; vertical-align: 1px; }
.seg-group input { width: 220px; }
@media (max-width: 560px) {
  .seg-group input { width: 100%; }
  .host-play { padding: 14px 16px; margin-bottom: 12px; }
}

/* QR-Code */
.btn svg path[d^="M4 4h6"] { fill: currentColor; stroke: none; }
.qr-mini { flex: none; width: 104px; height: 104px; padding: 6px; border: 0; border-radius: 10px; background: #fff; cursor: zoom-in; align-self: center; }
.qr-mini svg { display: block; width: 100%; height: 100%; }
.share-mobile { display: none; gap: 8px; }
.share-mobile #h-qr-m { width: 48px; padding: 0; }
.qr-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 23, .92); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(92vw, 72dvh, 560px); text-align: center; }
.qr-title { font-size: 1.3rem; font-weight: 700; }
.qr-img { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 18px; padding: 4%; }
.qr-img svg { display: block; width: 100%; height: 100%; }
.qr-code { font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 800; letter-spacing: .2em; color: var(--gold); line-height: 1; padding-left: .2em; }
.qr-link { color: var(--muted); font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .qr-mini { display: none; }
  .share-mobile { display: flex; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .qr-box { width: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 90vw; }
  .qr-img { width: 70dvh; }
}

/* Spielansicht der Spielleitung: wie bei allen anderen, Verwaltung hinter dem Zahnrad */
/* Verwaltung offen: Pfeil zurueck zur Spielansicht; Spielansicht: Zahnrad zur Verwaltung */
.host:not(.compact) #h-view .i-gear, .host.compact #h-view .i-play { display: none; }
#h-reset2 { display: none; margin-top: 14px; }
.host.compact .share,
.host.compact .settings-box,
.host.compact #h-choice,
.host.compact .controls,
.host.compact #h-players-panel,
.host.compact #h-reveal,
.host.compact #h-close,
.host.compact .host-play-head { display: none !important; }
.host.compact { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.host.compact .host-play { background: none; border: 0; padding: 12px 0 24px; margin: 0; }
.host.compact .host-play .buzzer { width: min(72vw, 52dvh, 320px); font-size: clamp(2rem, 11vw, 3.4rem); }
.host.compact .cols { grid-template-columns: minmax(0, 1fr); }
.host.compact #h-reset2 { display: inline-flex; }
@media (max-width: 560px) {
  .host.compact .host-play { padding: 4px 0 18px; }
}
.host.compact #h-round { display: none; }
@media (max-width: 400px) {
  .share-mobile #h-share { font-size: 0; width: 48px; padding: 0; gap: 0; }
}

/* Fenster „Töne" */
.sheet { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-size: 1.2rem; }
.sheet-box h3 { margin: 8px 0 0; font-size: 1rem; }
.sheet-box .seg { display: flex; }
.sheet-box .seg button { flex: 1; height: 44px; }
.snd-row { display: flex; flex-direction: column; gap: 6px; }
.snd-row label { color: var(--muted); font-size: .9rem; }
.snd-pick { display: flex; gap: 8px; }
.snd-pick select {
  flex: 1; min-width: 0; height: 44px; padding: 0 36px 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--text); font: inherit; font-size: 1rem; appearance: none; -webkit-appearance: none;
}
.snd-pick select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.btn.icon-btn { width: 44px; height: 44px; padding: 0; flex: none; }
.btn.icon-btn svg path[d^="M7 4"] { fill: currentColor; stroke: none; }
.snd-recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.snd-recs li { display: flex; gap: 8px; }
.snd-recs input { flex: 1; min-width: 0; }
#snd-rec.recording { background: #b91c1c; border-color: #b91c1c; animation: pulse 1s infinite; }
@keyframes pulse { 50% { filter: brightness(1.3); } }
@media (max-width: 560px) {
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-box { max-width: none; border-radius: 16px 16px 0 0; max-height: 88dvh; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
.sheet-box > * { flex-shrink: 0; }
.sheet-head { position: sticky; top: -16px; z-index: 1; background: var(--panel); margin: -16px -20px 0; padding: 12px 20px 8px; }

/* Aufloesen */
.reveal-lbl { margin: -4px 0 8px; }
.reveal-bar { display: none; width: 100%; max-width: 640px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.host.compact .reveal-bar:not([hidden]) { display: block; }
.reveal-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.rv { width: 52px; height: 52px; border: 0; border-radius: 12px; color: #fff; font: 900 1.4rem system-ui; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.rv:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.rv.right { outline: 4px solid var(--green); outline-offset: 2px; }
.rv.dim { opacity: .35; }
.host.compact #h-reveal-lbl { display: none; }
#snd-mode-wrap { display: flex; flex-direction: column; gap: 6px; }
#snd-rec-wrap { display: flex; flex-direction: column; gap: 12px; }
#snd-rec-wrap > * { flex-shrink: 0; }
.snd-pick select:disabled { opacity: .7; }
.hint.strong { color: var(--text); background: #1e1b4b; border: 1px solid #3730a3; padding: 8px 12px; border-radius: 10px; }
.snd-pick select:disabled { background-image: none; padding-right: 12px; color: var(--text); opacity: 1; }

/* Hinweis: Browser blockiert den Ton noch */
.audio-hint {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(70px + env(safe-area-inset-top)); z-index: 35;
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  background: #78350f; border: 1px solid var(--gold); color: #fde68a; font: 600 .95rem system-ui; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); white-space: nowrap; max-width: calc(100% - 32px);
}
.audio-hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
