/* Grand Bluff – Admin-Seite */
.adm-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); font-size: 1.35rem; }
.adm-brand img, .adm-brand svg { border-radius: 50%; flex: none; }
.adm-tag { color: var(--gold); font-size: .72rem; letter-spacing: .18em; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-family: var(--sans); font-weight: 700; }
.adm-mail { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-login { max-width: 420px; margin: 48px auto; }
.adm-err { color: #f0b1aa; }
.adm-uid { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .25); color: var(--gold-2); word-break: break-all; cursor: copy; }

.adm-head { margin: 8px 0 18px; align-items: flex-end; }
.adm-title { font-size: 2.2rem; }
.adm-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.adm-seg button { background: transparent; border: 0; color: var(--muted); font: 600 .85rem var(--sans); padding: 8px 14px; cursor: pointer; min-height: 38px; }
.adm-seg button + button { border-left: 1px solid var(--line); }
.adm-seg button.on { background: rgba(212, 175, 106, .14); color: var(--gold-2); }
.adm-seg button:hover:not(.on) { color: var(--ivory); }

.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.adm-kpi { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; }
.adm-kpi-l { font-size: .78rem; color: var(--muted); font-weight: 600; }
.adm-kpi-v { font-family: var(--sans); font-size: 1.9rem; line-height: 1.2; margin: 2px 0; color: var(--ivory); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.adm-kpi-s { font-size: .75rem; color: var(--muted); }
.adm-empty { margin-bottom: 14px; }

.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-chart.wide { grid-column: 1 / -1; }
.adm-chart h3, .adm-sec h3 { font-size: 1.25rem; }
.adm-chart p { margin: 2px 0 10px; }
.adm-svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.adm-svg .bar { fill: var(--gold); }
.adm-svg .grid { stroke: rgba(239, 231, 214, .08); stroke-width: 1; }
.adm-svg .base { stroke: rgba(239, 231, 214, .3); stroke-width: 1; }
.adm-svg .ax { fill: var(--muted); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.adm-svg .hit { fill: transparent; cursor: default; }
.adm-svg .hit.on { fill: rgba(239, 231, 214, .06); }
.adm-tip { position: fixed; z-index: 50; pointer-events: none; background: #0b1812; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: .82rem; line-height: 1.4; color: var(--ivory); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.adm-tip b { color: var(--gold-2); }

.adm-sec { margin-top: 14px; }
.adm-count { display: inline-block; font: 700 .75rem var(--sans); color: var(--gold-2); background: rgba(212, 175, 106, .14); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.adm-reports { display: grid; gap: 10px; margin: 12px 0; }
.adm-rep { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; background: rgba(0, 0, 0, .15); }
.adm-rep-q { font-size: 1.02rem; }
.adm-ivory { color: var(--ivory); }
.adm-note { border-left: 2px solid var(--gold-dim); padding-left: 10px; font-style: italic; }
.adm-blist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.adm-blist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }

.adm-table-wrap { overflow-x: auto; margin-top: 10px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
.adm-table th { text-align: left; color: var(--gold); font-weight: 700; font-size: .78rem; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.adm-table .n { text-align: right; }
.adm-code { font-weight: 700; letter-spacing: .1em; color: var(--gold-2); }
.adm-live { color: var(--green); font-weight: 700; }
.adm-live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }
.adm-foot { margin-top: 18px; text-align: center; }
.adm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--gold); color: #1a140a; font-weight: 700; padding: 10px 16px; border-radius: 10px; z-index: 60; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .adm-kpi-v { font-size: 1.6rem; }
  .adm-mail { display: none; }
  .adm-title { font-size: 1.8rem; }
  .adm-head { align-items: flex-start; }
  .adm-brand span.serif { display: none; }
}

/* ---------- Tabs ---------- */
.adm-tabs { max-width: 1180px; margin: 0 auto; padding: 14px 16px 0; display: flex; gap: 6px; border-bottom: 1px solid var(--line-2); }
.adm-tabs[hidden] { display: none; }
.adm-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 700 .92rem var(--sans); padding: 10px 14px; cursor: pointer; margin-bottom: -1px; }
.adm-tabs button.on { color: var(--gold-2); border-bottom-color: var(--gold); }
.adm-tabs button:hover:not(.on) { color: var(--ivory); }

/* ---------- Vorbereitete Spiele ---------- */
.ev-list { display: grid; gap: 12px; }
.ev-item { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ev-item .grow { flex: 1; min-width: 220px; }
.ev-name { font-size: 1.1rem; }
.ev-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.ev-logo.big { width: 88px; height: 88px; }
.ev-logo.ph { display: grid; place-items: center; font: 700 1rem var(--serif); color: var(--gold-dim); }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ev-grid:first-of-type { margin-top: 0; }
.ev-lbl { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.ev-code { font-size: 1.5rem; }
.input.code::placeholder { text-transform: none; letter-spacing: normal; font-family: var(--sans); font-size: 1rem; font-weight: 400; }
.ev-code.bad { border-color: var(--red); }
.ev-set { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ev-set .field > .tiny { display: block; margin-top: 3px; }
.ev-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-two .field + .field { margin-top: 0; }
.ev-types { flex-wrap: wrap; }
.ev-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ev-q { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(0, 0, 0, .18); }
.ev-q.missing { border-color: rgba(208, 103, 94, .5); }
.ev-q.drag { opacity: .4; }
.ev-q.over { border-color: var(--gold); }
.ev-q .grow { flex: 1; min-width: 0; }
.ev-handle { cursor: grab; color: var(--muted); letter-spacing: -2px; user-select: none; }
.ev-no { font-weight: 800; color: var(--gold); min-width: 1.6em; text-align: right; font-variant-numeric: tabular-nums; }
.ev-qbtn { display: flex; gap: 2px; }
.ev-qbtn .btn { min-height: 30px; padding: 4px 8px; }
.ev-badge { display: inline-block; font: 700 .68rem var(--sans); color: var(--gold-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; margin-right: 2px; }
.ev-filter { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.ev-hits { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; display: grid; gap: 4px; }
.ev-hits li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.ev-hits li .grow { flex: 1; min-width: 0; }
.ev-foot { margin-top: 16px; }
.gold { color: var(--gold); }
@media (max-width: 900px) {
  .ev-grid { grid-template-columns: 1fr; }
  .ev-filter { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ev-set, .ev-two { grid-template-columns: 1fr; }
}

.ev-logo-prev { display: grid; place-items: center; width: 132px; height: 104px; border-radius: 12px; background: radial-gradient(ellipse at 50% 40%, #17553c, #08130e 80%); border: 1px solid var(--line-2); padding: 8px; }
.ev-logo-prev.sm { width: 64px; height: 52px; padding: 4px; border-radius: 10px; }
.ev-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- v7: gemeinsam live bearbeiten ---------- */
.ev-live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ev-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.ev-live.on { color: #7fd49a; border-color: rgba(108, 192, 138, .45); background: rgba(108, 192, 138, .08); }
.ev-live.on i { box-shadow: 0 0 0 0 rgba(127, 212, 154, .6); animation: evPulse 2.4s infinite; }
.ev-live.wait { color: var(--gold-2); border-color: rgba(212, 175, 106, .45); }
.ev-live.wait i { animation: evBlink 1s infinite; }
.ev-live.off { color: #f0a59a; border-color: rgba(224, 106, 92, .5); }
@keyframes evPulse { 0% { box-shadow: 0 0 0 0 rgba(127, 212, 154, .55); } 70% { box-shadow: 0 0 0 7px rgba(127, 212, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 212, 154, 0); } }
@keyframes evBlink { 50% { opacity: .3; } }
.ev-peers { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; min-height: 0; }
.ev-peers:empty { display: none; }
.ev-peer { display: inline-flex; align-items: center; gap: 7px; font: 600 .8rem var(--sans); color: var(--ivory); background: rgba(0, 0, 0, .25); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 999px; padding: 3px 11px 3px 3px; cursor: default; }
.ev-peer b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #1a140a; font-size: .72rem; font-weight: 800; }
.ev-peer.me { cursor: pointer; }
.ev-peer.me:hover { background: rgba(255, 255, 255, .06); }
.peer-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--pc); color: #1a140a; font-size: .68rem; font-weight: 800; letter-spacing: .01em; vertical-align: middle; animation: evIn .25s ease-out; }
.peer-tag.fade { animation: evIn .25s ease-out, evOut .6s 3.4s forwards; }
.input.peer-focus { box-shadow: 0 0 0 2px var(--pc); border-color: var(--pc); }
.ev-flash { animation: evFlash 1.6s ease-out; }
@keyframes evFlash { 0% { box-shadow: 0 0 0 2px var(--pc), 0 0 18px color-mix(in srgb, var(--pc) 45%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes evIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes evOut { to { opacity: 0; } }
.ev-live-dot { color: #7fd49a; }
.ev-modal { position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 4, .72); display: grid; place-items: center; padding: 16px; overflow: auto; animation: evIn .15s ease-out; }
.ev-modal-card { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.ev-role { color: var(--gold-2); font-weight: 700; }
.ev-link { display: flex; gap: 8px; }
.ev-link .input { flex: 1; font-size: .85rem; }
.ev-members { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ev-members li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-members li .btn { margin-left: auto; }

/* v9: kompakter Kennzahlen-Streifen, eingeklappte Listen */
.adm-kpis { gap: 10px; }
.adm-kpi { padding: 10px 14px; }
.adm-kpi-v { font-size: 1.5rem; }
.adm-kpi-u { font-size: .8rem; font-weight: 600; color: var(--muted); }
.adm-rep-sec:not(.has) { padding-top: 12px; padding-bottom: 12px; }
.adm-rep-sec:not(.has) > p.tiny { display: none; }
.adm-rep-sec.has { border-color: rgba(212, 175, 106, .55); }
details.adm-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
details.adm-fold > summary::-webkit-details-marker { display: none; }
details.adm-fold > summary h3 { margin: 0; }
details.adm-fold > summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; }
details.adm-fold[open] > summary { margin-bottom: 12px; }
details.adm-fold[open] > summary::after { content: '–'; }
.adm-rep-sec { margin-bottom: 14px; }
.ev-add { margin-top: 14px; }
.ev-add > .row.between { flex-wrap: wrap; gap: 10px; }

/* v9.06/v9.08: Name, Code & Einstellungen einklappbar – offen eine gemeinsame Karte */
details.ev-setup { margin-bottom: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
details.ev-setup > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 16px 52px 16px 20px; position: relative; }
details.ev-setup > summary::-webkit-details-marker { display: none; }
details.ev-setup > summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; }
details.ev-setup[open] > summary::after { content: '–'; }
details.ev-setup[open] > summary { border-bottom: 1px solid var(--line-2); }
details.ev-setup[open] .ev-setup-s { display: none; }
.ev-setup-t { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); }
.ev-setup-s { font-size: .85rem; color: var(--muted); }
details.ev-setup > .ev-grid { margin: 0; gap: 0; }
details.ev-setup > .ev-grid > section.card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 20px 22px; }
details.ev-setup > .ev-grid > section.card + section.card { border-left: 1px solid var(--line-2); }
details.ev-setup > .ev-grid > section.card h3 { font-size: 1.05rem; }
@media (max-width: 900px) { details.ev-setup > .ev-grid > section.card + section.card { border-left: 0; border-top: 1px solid var(--line-2); } }
