/* Frogtions Quiz – baut auf style.css (Farben, Header, Buttons der alten Seite) auf. */

:root {
  --a0: #e0513f;
  --a1: #3f8fe0;
  --a2: #e0b43f;
  --a3: #47b35a;
  --good: #7be36a;
  --bad: #ff6b5c;
}

.brand em { font-style: normal; color: var(--lime); }
header.top nav { align-items: center; }
header.top nav a.active { border-color: var(--line-strong); background: rgba(163, 217, 59, .1); }
.me-link { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px !important; }
.me-link img { border-radius: 50%; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; font-size: 17px; }
.icon-btn:hover { border-color: var(--line-strong); }
.login-link { background: var(--lime); color: #10200f !important; }

.loading, .empty { text-align: center; color: var(--muted); padding: 40px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.fine { font-size: 13px; color: var(--muted); max-width: 520px; margin: 14px auto 0; }
.error { color: var(--bad); min-height: 1em; margin: 6px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-size: 13px; margin: 0; }
.small-title { font: 800 16px var(--body); color: var(--muted); margin: 26px 0 10px; text-align: left; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; width: 100%; }

.panel { padding: clamp(14px, 3vw, 22px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin: 12px 0; }
.panel h2 { font: 800 20px var(--body); margin: 0 0 10px; text-align: left; }
.panel h3 { margin: 0 0 10px; }
.page { max-width: 860px; margin: 0 auto; }
.page-title { font: 900 clamp(30px, 7vw, 44px)/1.1 var(--head); color: var(--lime); text-align: center; margin: 10px 0 8px; }
.back-link { display: inline-block; margin: 6px 0 4px; text-decoration: none; font-weight: 600; }

.hero.compact { padding: 10px 0 20px; }
.hero.compact h1 { font-size: clamp(36px, 8vw, 60px); }
.btn.big { font-size: 19px; padding: 15px 30px; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.danger { border-color: rgba(255, 107, 92, .6); color: #ffb3aa; background: rgba(255, 107, 92, .08); }
.btn.danger:hover { background: rgba(255, 107, 92, .18); color: #ffd2cc; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.btn.discord { display: inline-flex; align-items: center; gap: 10px; background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { background: #6d78ff; color: #fff; }
.dc-icon { width: 22px; height: 22px; fill: currentColor; }
.actions.left { justify-content: flex-start; }
.mini { font: 600 13px var(--body); padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-strong); background: rgba(163, 217, 59, .06); color: var(--text); cursor: pointer; }
.mini:hover:not(:disabled) { background: rgba(163, 217, 59, .16); }
.mini:disabled { opacity: .35; cursor: default; }
.mini.danger { border-color: rgba(255, 107, 92, .5); color: #ffb3aa; }

input, select, textarea {
  font: 16px var(--body); color: var(--text); background: rgba(0, 0, 0, .28); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 12px; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); }
textarea { width: 100%; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--lime); padding: 0; }
input[type="color"] { width: 46px; height: 40px; padding: 3px; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; flex: 1; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.check { display: flex; align-items: center; gap: 9px; margin: 8px 0; cursor: pointer; }
.ctrl-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-form input:not([type="color"]):not(.emoji-input) { flex: 1; min-width: 200px; }
.emoji-input { width: 64px; text-align: center; font-size: 20px; }

.dev-login { margin: 26px auto 0; max-width: 420px; padding: 14px; border: 1px dashed var(--ph); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dev-login p { width: 100%; margin: 0; color: var(--ph); font-size: 14px; }
.dev-login input { flex: 1; }

.cards { margin-top: 8px; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-icon { font-size: 30px; line-height: 1; }

.avatar { border-radius: 50%; object-fit: cover; background: #1b2b1d; flex: none; }
.avatar.big { border: 3px solid var(--lime); box-shadow: 0 0 30px rgba(163, 217, 59, .3); }
.avatar.ring { box-shadow: 0 0 0 3px var(--team, var(--lime)); }

.profile { max-width: 520px; margin: 20px auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.profile h1 { font: 900 30px var(--head); margin: 14px 0 0; }
.profile p { margin: 4px 0; }

.list { display: grid; gap: 8px; margin-top: 12px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.list-row:hover { border-color: var(--line-strong); background: var(--panel-hover); color: var(--text); }
.winner { font-weight: 700; color: var(--lime-light); white-space: nowrap; }

.board-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px solid rgba(163, 217, 59, .1); }
.board-row:last-child { border-bottom: 0; }
.board-row.me { background: rgba(163, 217, 59, .12); border-radius: 10px; }
.board-row .rank { width: 38px; text-align: center; font-weight: 800; flex: none; }
.board-row strong { font-variant-numeric: tabular-nums; }
.board-gap { text-align: center; color: var(--muted); }
.gain { color: var(--good); font-weight: 700; font-size: 14px; animation: pop .6s ease-out; }
.team-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 17px; }

.table-wrap { overflow-x: auto; }
table.stats { width: 100%; border-collapse: collapse; font-size: 15px; }
table.stats th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 700; padding: 8px; white-space: nowrap; }
table.stats td { padding: 8px; border-top: 1px solid rgba(163, 217, 59, .1); white-space: nowrap; }
table.stats tr.me td { background: rgba(163, 217, 59, .1); }
.who { display: inline-flex; align-items: center; gap: 8px; }

/* ---------------- Toasts */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: #1d2f20; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: up .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.good { border-color: var(--good); }
.toast.bad { border-color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(10px); }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ======================================================= Live-Spiel */
.game { max-width: 900px; margin: 0 auto; position: relative; }
.conn { text-align: center; font-size: 13px; min-height: 0; }
.conn.wait, .conn.bad { padding: 6px; border-radius: 8px; margin-bottom: 8px; }
.conn.bad { background: rgba(255, 107, 92, .15); color: #ffb3aa; }
.conn.wait { color: var(--muted); }

.stage { min-height: 300px; padding: clamp(14px, 3vw, 28px); border-radius: 20px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.center-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.center-block h2 { font: 900 clamp(24px, 5vw, 36px)/1.15 var(--head); margin: 6px 0; }
.quiz-title { color: var(--lime); }
.spectator { text-align: center; color: var(--ph); background: rgba(245, 197, 66, .1); border-radius: 10px; padding: 8px; margin-bottom: 12px; font-size: 14px; }
.frog-wait { font-size: 72px; animation: float 3s ease-in-out infinite; }
.pulse { color: var(--lime-light); font-weight: 700; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); animation: pop .35s ease-out; font-weight: 600; }
.chips.big .chip { font-size: 17px; padding: 6px 16px 6px 6px; }
.chips.big .chip img { width: 40px; height: 40px; }
.chips.small .chip { font-size: 13px; }
.chip.offline { opacity: .45; }
.chip.dim { opacity: .5; }
.chip.done { border-color: var(--good); }
.chip .tick { color: var(--good); font-weight: 900; }
.lobby-grid { width: 100%; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 8px; }
.team-box { border: 2px solid var(--team); border-radius: 16px; padding: 12px; background: color-mix(in srgb, var(--team) 8%, transparent); }
.team-box h3 { margin: 0 0 8px; color: var(--team); }

/* Timer */
.timer { position: relative; height: 30px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); overflow: hidden; margin-bottom: 10px; }
.timer-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--lime), var(--lime-light)); transition: width .1s linear; }
.timer.intro .timer-fill { background: linear-gradient(90deg, #4c6b3f, #6f8f5c); }
.timer.hurry .timer-fill { background: linear-gradient(90deg, #ff6b5c, #ffb15c); }
.timer-text { position: absolute; inset: 0; display: grid; place-items: center; font: 900 17px var(--head); color: #10200f; text-shadow: 0 0 6px rgba(255, 255, 255, .5); }
.timer.hurry .timer-text { animation: pulse .5s infinite; }

/* Frage */
.q-wrap { display: flex; flex-direction: column; gap: 12px; }
.q-head { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: #10200f; margin-left: 6px; }
.q-head .badge { margin: 0; }
.badge.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--lime); }
.badge.item { background: linear-gradient(90deg, #f5c542, #ff8a5c); }
.badge.double { background: #5ad1ff; }
.badge.shield { background: #9db4ff; }
.q-text { font: 800 clamp(21px, 4.4vw, 32px)/1.25 var(--body); text-align: center; margin: 4px 0; overflow-wrap: anywhere; }
.q-text.big { font-size: clamp(26px, 6vw, 44px); }
.q-image { max-width: 100%; max-height: 44vh; object-fit: contain; border-radius: 14px; margin: 0 auto; display: block; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.answers { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.answers.n2, .answers.tf { grid-template-columns: 1fr 1fr; }
.answer {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 74px; padding: 14px 16px; border-radius: 14px;
  border: 0; color: #fff; font: 800 clamp(16px, 3.4vw, 21px)/1.25 var(--body); cursor: pointer; overflow-wrap: anywhere;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .35); transition: transform .1s, filter .2s, opacity .3s;
}
.answer.a0 { background: var(--a0); } .answer.a1 { background: var(--a1); } .answer.a2 { background: var(--a2); color: #2a1e00; } .answer.a3 { background: var(--a3); }
.answers.tf .answer.a0 { background: var(--a3); } .answers.tf .answer.a1 { background: var(--a0); color: #fff; }
button.answer:hover { filter: brightness(1.1); transform: translateY(-2px); }
button.answer:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.answer .letter { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 0, 0, .22); font-weight: 900; }
.answer.gone { opacity: .15; text-decoration: line-through; cursor: default; filter: grayscale(1); }
.answers.sent { pointer-events: none; opacity: .6; }
.answers.show .answer { cursor: default; }
.answer-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; grid-column: 1 / -1; }
.answer-input { font-size: 22px; padding: 14px 16px; flex: 1; min-width: 200px; text-align: center; }
.unit { font-weight: 800; color: var(--muted); }
.answered-count { text-align: center; color: var(--muted); margin: 0; }
.answered-box { text-align: center; padding: 20px; }
.big-check { width: 84px; height: 84px; margin: 0 auto 6px; border-radius: 50%; background: var(--good); color: #10200f; display: grid; place-items: center; font-size: 48px; font-weight: 900; animation: pop .4s ease-out; }

.fog-wrap { position: relative; }
.fog-cover { display: none; position: absolute; inset: -6px; border-radius: 16px; place-items: center; font: 900 28px var(--head); color: #fff; background: rgba(200, 205, 215, .25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fogmove 2s ease-in-out infinite alternate; }
.fog-wrap.fogged .fog-cover { display: grid; }
@keyframes fogmove { from { background: rgba(200, 205, 215, .22); } to { background: rgba(200, 205, 215, .4); } }

/* Auflösung */
.reveal-options { display: grid; gap: 8px; }
.ropt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 2px solid transparent; overflow: hidden; font-weight: 700; }
.ropt .rbar { position: absolute; inset: 0 auto 0 0; opacity: .3; transition: width .8s ease-out; }
.ropt.a0 .rbar { background: var(--a0); } .ropt.a1 .rbar { background: var(--a1); } .ropt.a2 .rbar { background: var(--a2); } .ropt.a3 .rbar { background: var(--a3); }
.ropt > *:not(.rbar) { position: relative; }
.ropt .letter { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .3); flex: none; }
.ropt.ok { border-color: var(--good); box-shadow: 0 0 18px rgba(123, 227, 106, .35); }
.ropt.ok .letter { background: var(--good); color: #10200f; }
.ropt.bad { opacity: .6; }
.ropt.mine em { color: var(--lime-light); font-style: normal; font-size: 13px; }
.solution { text-align: center; font-size: 22px; }
.solution strong { color: var(--good); font: 900 30px var(--head); }
.estimates { background: rgba(0, 0, 0, .2); border-radius: 12px; padding: 6px 10px; }
.my-result { text-align: center; font: 900 clamp(22px, 5vw, 32px) var(--head); padding: 14px; border-radius: 14px; animation: pop .45s ease-out; }
.my-result.good { background: rgba(123, 227, 106, .16); color: var(--good); }
.my-result.bad { background: rgba(255, 107, 92, .14); color: var(--bad); }
.my-result.none { background: rgba(0, 0, 0, .25); color: var(--muted); }
.my-result small { font: 700 15px var(--body); display: block; }

.judge-list { display: grid; gap: 8px; }
.judge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 2px solid; font: 700 17px var(--body); color: var(--text); text-align: left; background: rgba(0, 0, 0, .25); }
button.judge { cursor: pointer; }
.judge.yes { border-color: var(--good); background: rgba(123, 227, 106, .12); }
.judge.no { border-color: rgba(255, 107, 92, .45); }
.judge .mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; flex: none; }
.judge.yes .mark { background: var(--good); color: #10200f; }
.judge.no .mark { background: rgba(255, 107, 92, .3); }

/* Froschbox */
.froschbox { margin: 6px auto 0; width: 100%; max-width: 560px; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, #2b3a14, #172312); border: 2px solid #f5c542; box-shadow: 0 0 30px rgba(245, 197, 66, .25); }
.box-title { display: flex; align-items: center; justify-content: center; gap: 10px; font: 900 18px var(--head); color: #f5c542; letter-spacing: 2px; margin-bottom: 10px; }
.box-view { position: relative; height: 96px; overflow: hidden; border-radius: 12px; background: rgba(0, 0, 0, .4); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.box-strip { display: flex; height: 100%; will-change: transform; }
.box-cell { flex: none; width: 88px; height: 100%; display: grid; place-items: center; }
.box-cell span { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; font-size: 40px; background: color-mix(in srgb, var(--c) 25%, #10200f); border: 2px solid color-mix(in srgb, var(--c) 70%, transparent); }
.box-cell.win span { animation: winpulse .8s ease-in-out 3; box-shadow: 0 0 26px var(--c); background: color-mix(in srgb, var(--c) 45%, #10200f); }
@keyframes winpulse { 50% { transform: scale(1.15); } }
.box-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: #f5c542; box-shadow: 0 0 12px #f5c542; }
.box-marker::before, .box-marker::after { content: ""; position: absolute; left: 50%; margin-left: -8px; border: 8px solid transparent; }
.box-marker::before { top: 0; border-top-color: #f5c542; }
.box-marker::after { bottom: 0; border-bottom-color: #f5c542; }
.froschbox.done .box-marker { opacity: .3; }
.box-caption { text-align: center; margin: 10px 0 0; font-size: 17px; }
.box-note { text-align: center; color: var(--muted); }

/* Ranglisten */
.boards { width: 100%; display: grid; gap: 10px; text-align: left; }
.board { margin: 0; }
.board h3 { margin: 0 0 4px; font-size: 15px; color: var(--muted); }

.final-title { font-size: clamp(36px, 8vw, 56px) !important; color: var(--lime); }
.team-winner { font: 900 22px var(--head); padding: 10px 18px; border-radius: 14px; border: 2px solid var(--team); color: var(--team); background: color-mix(in srgb, var(--team) 12%, transparent); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 16px 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; width: clamp(90px, 25vw, 150px); animation: up .6s ease-out both; }
.pod1 { animation-delay: .9s; } .pod2 { animation-delay: .4s; } .pod3 { animation-delay: 0s; }
.pod .avatar { border: 3px solid var(--lime); }
.pod1 .avatar { border-color: #f5c542; box-shadow: 0 0 24px rgba(245, 197, 66, .5); }
.pod-name { font-weight: 800; overflow-wrap: anywhere; text-align: center; }
.pod-score { color: var(--muted); font-size: 14px; }
.pod-block { width: 100%; border-radius: 12px 12px 0 0; display: grid; place-items: start center; padding-top: 8px; font-size: 30px; background: linear-gradient(180deg, rgba(163, 217, 59, .35), rgba(163, 217, 59, .1)); }
.pod1 .pod-block { height: 120px; background: linear-gradient(180deg, rgba(245, 197, 66, .5), rgba(245, 197, 66, .1)); }
.pod2 .pod-block { height: 86px; }
.pod3 .pod-block { height: 60px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall 3.5s linear infinite; opacity: .85; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* Inventar */
.inventory { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.inv-title { font-weight: 800; margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 16%, #10200f); color: var(--text); cursor: pointer; font: inherit; animation: pop .4s ease-out; transition: transform .15s; }
.slot:hover { transform: translateY(-2px); }
.slot-emoji { grid-row: span 2; font-size: 32px; }
.slot-name { font-weight: 800; }
.slot-desc { font-size: 12px; color: var(--muted); }
.slot.unusable { opacity: .45; filter: grayscale(.6); }
.slot.empty { border: 2px dashed var(--line); background: transparent; color: var(--muted); place-items: center; display: grid; min-height: 64px; cursor: default; animation: none; }
.inv-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.inv-status .badge { margin: 0; }

/* Reaktionen */
.react-bar { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.react-btn { font-size: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: transform .1s; }
.react-btn:hover { transform: scale(1.12); border-color: var(--line-strong); }
.react-btn:active { transform: scale(.9); }
.float-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.floater { position: absolute; bottom: -60px; display: flex; flex-direction: column; align-items: center; animation: floatup 3s ease-out forwards; }
.floater .fe { font-size: 42px; }
.floater .fn { font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .5); padding: 1px 8px; border-radius: 999px; }
@keyframes floatup { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-15vh) scale(1.1); } 100% { transform: translateY(-75vh) translateX(30px) scale(1); opacity: 0; } }

.item-banner { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 45; display: grid; gap: 8px; width: min(92vw, 560px); pointer-events: none; }
.item-msg { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #162414; border: 2px solid var(--c); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 20px color-mix(in srgb, var(--c) 40%, transparent); font-weight: 800; animation: slam .45s cubic-bezier(.2, 1.6, .4, 1); transition: opacity .4s, transform .4s; }
.item-msg.out { opacity: 0; transform: translateY(-10px); }
.im-emoji { font-size: 32px; }
@keyframes slam { from { transform: scale(1.6); opacity: 0; } }

/* Host-Steuerung */
.game.host { max-width: 1100px; }
.game.host .stage { min-height: 420px; }
.game.host .q-text { font-size: clamp(24px, 4vw, 40px); }
.controls { margin-top: 14px; }
.controls .ctrl-row { justify-content: center; }
.solution-box { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(123, 227, 106, .1); border: 1px dashed var(--good); text-align: center; }
.setup { max-width: 560px; margin: 0 auto; }
.setup h3 { text-align: center; font: 900 22px var(--head); }
.setup .btn { width: 100%; margin-top: 10px; }
.pool { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0 28px; transition: opacity .2s; }
.pool.off { opacity: .35; pointer-events: none; }
.pool-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); font-size: 14px; cursor: pointer; }
.player-admin { margin-top: 14px; }
.player-admin summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.pa-list { margin-top: 8px; }
.pa-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(163, 217, 59, .08); flex-wrap: wrap; }
.pa-row:last-child { border-bottom: 0; }
.pa-row.banned { opacity: .5; }
.pa-row select { max-width: 200px; }

/* Teams: Bild/Emoji, Chef, Bearbeiten */
.team-badge { border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--team, var(--lime)); background: color-mix(in srgb, var(--team, #777) 35%, #10200f); }
.team-badge.emoji { display: inline-grid; place-items: center; line-height: 1; }
.team-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; text-align: left; }
.team-head h3 { margin: 0; color: var(--team); }
.team-head p { margin: 2px 0 0; }
.chip.captain { border-color: #f5c542; }
.chef-tag { font-size: 12px; font-weight: 800; color: #f5c542; white-space: nowrap; }
.chip-btn { border: 0; background: none; cursor: pointer; font-size: 12px; opacity: .55; padding: 0 2px; color: var(--text); }
.chip-btn:hover { opacity: 1; }
.mini-select { font-size: 13px; padding: 4px 8px; max-width: 170px; }
.team-tools { margin: 10px 0 4px; }
.team-winner { display: inline-flex; align-items: center; gap: 12px; }
.captain-box { margin-top: 12px; border-color: #f5c542; }
.captain-box h3 { margin: 0 0 4px; color: #f5c542; }
.team-editor { display: grid; gap: 10px; margin-top: 8px; }
.team-editor .ctrl-row input:not([type]) { flex: 1; min-width: 140px; }
.team-edit-preview { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.profile-team { width: 100%; text-align: left; }
.profile-team h2 { font: 800 20px var(--body); margin: 0 0 10px; }
.profile-team .chips { justify-content: flex-start; margin: 6px 0 8px; }

/* Admin */
.admin { max-width: 1100px; margin: 0 auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; justify-content: center; }
.tabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; }
.tabs a.active, .tabs a:hover { border-color: var(--lime); background: rgba(163, 217, 59, .12); color: var(--text); }
.quiz-meta { display: grid; gap: 8px; }
.title-input { font: 900 24px var(--head); }
.q-list { display: grid; gap: 8px; margin: 12px 0; }
.q-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); flex-wrap: wrap; }
.q-num { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: #10200f; display: grid; place-items: center; font-weight: 900; flex: none; }
.q-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.q-card-text { font-weight: 700; overflow-wrap: anywhere; }
.q-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.q-editor { border-color: var(--line-strong); }
.q-editor h3 { font: 900 20px var(--head); }
.img-preview { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.img-preview img { max-height: 120px; max-width: 220px; border-radius: 10px; }
.type-box { margin: 10px 0; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.opt-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.opt-row input:not([type]) { flex: 1; }
.opt-row .letter { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; color: #fff; flex: none; }
.opt-row.a0 .letter { background: var(--a0); } .opt-row.a1 .letter { background: var(--a1); } .opt-row.a2 .letter { background: var(--a2); color: #2a1e00; } .opt-row.a3 .letter { background: var(--a3); }
.opt-row .check { margin: 0; }
.item-check { padding: 10px 12px; border-radius: 10px; background: rgba(245, 197, 66, .08); border: 1px solid rgba(245, 197, 66, .3); }
.danger-zone { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.team-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.team-card { border-left: 5px solid var(--team); margin: 0; }
.team-card .ctrl-row input:not([type]):not(.emoji-input) { flex: 1; min-width: 120px; }
.team-card .chips { justify-content: flex-start; margin-top: 10px; }

.nav-icon { display: none; }
@media (max-width: 760px) {
  header.top { gap: 8px; }
  header.top nav { flex-wrap: nowrap; gap: 2px; }
  header.top nav a { padding: 6px 9px; font-size: 18px; }
  .nav-icon { display: inline; }
  .nav-text { display: none; }
  .me-link span { display: none; }
  .me-link { padding: 3px !important; }
  .icon-btn { width: 34px; height: 34px; }
}
@media (max-width: 560px) {
  .answers { grid-template-columns: 1fr; }
  .answers.tf { grid-template-columns: 1fr 1fr; }
  .answer { min-height: 62px; }
  .stage { border-radius: 16px; }
  .slot-desc { display: none; }
  .react-btn { width: 42px; height: 42px; font-size: 21px; }
  .list-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .floater, .confetti i, .frog-wait { animation: none; }
}
