Files
Cs2-Mapveto/client/src/styles.css
T
SPP UserandClaude Haiku 5.5 a4218c47d1 Rollback: Runden aus CS2-Sicherungen zurückspielen (nur Admin)
Beim Konfigurieren aktiviert CS2 Mapveto die Rundensicherung des Servers
(mp_backup_round_auto, Präfix mit Match-ID). Im Admin-Modus lassen sich
die Sicherungen der laufenden Map auflisten und zurückspielen. Der
Live-Stand wird auf die Runden bis zur Sicherung gekürzt. Organisatoren
haben keinen Zugang zu den Rollback-Routen.

Sicherheit: Dateinamen werden gegen Match-ID und Muster geprüft, damit
keine fremden Dateien oder Befehle in die RCON-Zeile gelangen.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-25 23:24:49 +01:00

515 lines
29 KiB
CSS

/* ---------- Tokens ---------- */
:root {
/* MaxLAN-Farben aus dem Logo: Blau #344A99, Rot #A72A1C auf Schwarz */
--brand-blue: #344a99;
--brand-red: #a72a1c;
--bg: #090b11;
--bg-rgb: 9, 11, 17;
--surface: #11141e;
--surface-2: #191d2b;
--line: #232939;
--line-strong: #343c53;
--text: #e8ebf3;
--muted: #8b93a8;
/* Teamfarben: Logo-Blau und -Rot, aufgehellt für Lesbarkeit auf dunklem Grund */
--team-a: #6383e6;
--team-b: #e5503c;
--primary: #3b5bcc;
--primary-hover: #4a6ae0;
--link: #7b97f0;
/* Seitenfarben aus den CT/T-Emblemen */
--ct: #9fb3d1;
--t: #d2bd8e;
--ok: #49d48f;
--pending: #e8c25a;
--error: #ff8a3d;
--demo: #b39bff;
--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
--body: 'Barlow', system-ui, sans-serif;
--radius: 6px;
--chamfer: 14px;
color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
background: var(--bg);
color: var(--text);
font: 400 16px/1.5 var(--body);
-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 .75em; }
a { color: var(--link); }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .875em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { color: var(--muted); max-width: 60ch; font-size: 1.0625rem; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.tone-ok { color: var(--ok); }
.tone-pending { color: var(--pending); }
.tone-error { color: var(--error); }
.tone-demo { color: var(--demo); }
.tone-muted { color: var(--muted); }
.team-a { color: var(--team-a); }
.team-b { color: var(--team-b); }
/* ---------- Layout ---------- */
.topbar {
display: flex; align-items: center; gap: 16px;
padding: 10px clamp(16px, 4vw, 40px);
/* Schwarz wie der Logo-Hintergrund, roter Abschluss wie das X */
border-bottom: 2px solid var(--brand-red);
background: #000;
position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-app { font: 600 1.125rem var(--display); color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-strong); white-space: nowrap; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--muted); text-decoration: none; }
.nav-link:hover { color: var(--text); }
.demo-flag {
font-size: .8125rem; color: var(--demo); border: 1px solid color-mix(in srgb, var(--demo) 50%, transparent);
padding: 2px 10px; border-radius: 999px;
}
.content { max-width: 1320px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 80px; }
/* ---------- Buttons & Felder ---------- */
.btn {
--btn: var(--surface-2);
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
font: 600 .9375rem var(--body);
color: var(--text); background: var(--btn);
border: 1px solid var(--line-strong); border-radius: var(--radius);
padding: 9px 16px; cursor: pointer; text-decoration: none;
transition: background .15s, border-color .15s;
}
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: var(--error); border-color: var(--error); color: #2a1204; }
.btn-ct { background: color-mix(in srgb, var(--ct) 22%, var(--surface)); border-color: var(--ct); }
.btn-t { background: color-mix(in srgb, var(--t) 22%, var(--surface)); border-color: var(--t); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 12px; font-size: .875rem; }
.btn-lg { padding: 13px 22px; font-size: 1.0625rem; }
.btn.danger, .link-btn.danger { color: var(--error); }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-size: .875rem; cursor: pointer; }
.link-btn:disabled { opacity: .5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > span { font-weight: 600; font-size: .9375rem; }
input, select {
font: inherit; color: var(--text); background: var(--bg);
border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; min-width: 0;
}
input:focus, select:focus { border-color: var(--link); outline: none; }
.hint { color: var(--muted); font-size: .8125rem; }
.field-error { color: var(--error); font-size: .875rem; margin-top: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.alert { border: 1px solid var(--line-strong); background: var(--surface); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-error { border-color: var(--error); color: #ffd2b8; }
.alert-demo { border-color: color-mix(in srgb, var(--demo) 55%, transparent); background: color-mix(in srgb, var(--demo) 9%, var(--surface)); color: #ded3ff; font-size: .875rem; }
.empty { text-align: center; padding: 80px 16px; }
/* ---------- Übersicht ---------- */
.overview-head { display: flex; gap: 32px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 40px; }
.code-entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; width: min(100%, 380px); }
.code-entry label { display: block; font-weight: 600; margin-bottom: 8px; }
.code-entry input { flex: 1; text-transform: uppercase; letter-spacing: .08em; }
.groups { display: grid; gap: 40px; }
.group h2 { display: flex; align-items: baseline; gap: 10px; }
.count { font: 500 .9375rem var(--body); color: var(--muted); }
.match-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.match-row {
display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.match-row:hover { background: var(--surface); }
.match-row-teams { font: 600 1.375rem var(--display); display: flex; gap: 10px; align-items: baseline; }
.vs { color: var(--muted); font: 500 .9375rem var(--body); }
.vs.big { font-size: 1.25rem; align-self: center; }
.match-row-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--muted); }
.mine { color: var(--link); }
.group-closed .match-row-teams { opacity: .7; }
/* ---------- Match erstellen ---------- */
.create, .join-card { max-width: 720px; }
.create-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; }
.team-field-a input { border-left: 4px solid var(--team-a); }
.team-field-b input { border-left: 4px solid var(--team-b); }
.choice { border: 0; padding: 0; margin: 8px 0 22px; }
.choice legend { font-weight: 600; margin-bottom: 8px; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.choice-card {
position: relative; display: flex; flex-direction: column; gap: 2px;
padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer;
}
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { font: 600 1.375rem var(--display); }
.choice-card span { color: var(--muted); font-size: .875rem; }
.choice-card small { color: var(--muted); }
.choice-card.is-on { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.choice-card.is-off { opacity: .45; cursor: not-allowed; }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.flow-preview { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 12px 0 0; }
.flow-step { font-size: .875rem; padding: 6px 12px; border-radius: 3px; background: var(--surface-2); display: flex; flex-direction: column; line-height: 1.2; }
.flow-step small { color: var(--muted); font-size: .75rem; }
.flow-ban { box-shadow: inset 0 -2px 0 var(--error); }
.flow-pick { box-shadow: inset 0 -2px 0 var(--ok); }
.flow-decider { box-shadow: inset 0 -2px 0 var(--text); }
.join-card { margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--team-a); padding: 28px; border-radius: var(--radius); }
.join-card.team-B { border-top-color: var(--team-b); }
/* ---------- Match-Seite ---------- */
.match-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; align-items: flex-end; margin-bottom: 28px; }
.versus h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .4em; font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; margin: 0; }
.match-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.match-facts dt { color: var(--muted); font-size: .8125rem; }
.match-facts dd { margin: 0; font-weight: 600; }
.match-grid { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px); gap: 20px; align-items: start; }
/* Ab dem Veto bekommt das Map-Board die volle Breite, die Teamkarten stehen darunter nebeneinander */
.match-grid.stage-wide { grid-template-columns: 1fr 1fr; }
.match-grid.stage-wide .stage { grid-column: 1 / -1; grid-row: 1; }
.stage { min-width: 0; }
.stage-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stage-note .btn { margin: 8px 0 8px; }
.stage-note .pool-preview { margin-top: 16px; }
.missing-list { margin: 0 0 12px; padding-left: 1.1em; color: var(--muted); }
.self-join { margin: 18px 0 4px; padding: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); max-width: 560px; }
.self-join h3 { margin-bottom: 4px; }
.self-join .field { margin-bottom: 12px; }
.self-join-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.self-join-buttons .btn { flex: 1 1 180px; margin: 0; }
.self-join-A:not(:disabled) { border-color: var(--team-a); color: var(--team-a); }
.self-join-B:not(:disabled) { border-color: var(--team-b); color: var(--team-b); }
.missing-list li { margin-bottom: 4px; }
.pool-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pool-chip {
position: relative; overflow: hidden; display: flex; align-items: flex-end;
aspect-ratio: 16 / 9; padding: 6px 8px; border-bottom: 3px solid var(--map); border-radius: 3px; background: var(--surface-2);
}
.pool-chip-name { position: relative; z-index: 1; font: 600 1rem var(--display); }
.team-card { --team: var(--team-a); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--team); border-radius: var(--radius); padding: 16px; }
.team-card.team-B { --team: var(--team-b); }
.team-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.team-card h2 { color: var(--team); font-size: 1.625rem; margin: 0 0 10px; overflow-wrap: anywhere; }
.ready-state { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.ready-state.on { color: var(--ok); font-weight: 600; }
.roster { list-style: none; padding: 0; margin: 0 0 12px; }
.roster li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.roster li.is-you .nick { color: var(--team); }
.nick { font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nick small { font-weight: 400; color: var(--muted); }
.presence { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.presence.on { background: var(--ok); }
.captain { font-size: .75rem; padding: 1px 6px; border: 1px solid var(--team); color: var(--team); border-radius: 3px; }
.ready-dot { font-size: .75rem; color: var(--muted); }
.ready-dot.on { color: var(--ok); }
.row-actions { flex-basis: 100%; display: flex; gap: 14px; padding-left: 16px; }
.slot-empty { color: var(--muted); font-style: italic; font-size: .9375rem; border-bottom-style: dashed !important; }
.team-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.team-card.is-ready { box-shadow: 0 0 0 1px color-mix(in srgb, var(--team) 35%, transparent); }
/* ---------- Veto ---------- */
.veto { display: grid; gap: 16px; }
.turn {
--team: var(--team-a);
display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline;
padding: 14px 18px; background: color-mix(in srgb, var(--team) 10%, var(--surface));
border-left: 4px solid var(--team); border-radius: var(--radius);
}
.turn-B { --team: var(--team-b); }
.turn-team { font: 700 1.75rem var(--display); color: var(--team); }
.turn-action { font: 600 1.375rem var(--display); }
.turn-hint { grid-column: 1 / -1; color: var(--muted); font-size: .9375rem; }
.turn.is-you { box-shadow: 0 0 0 1px var(--team); }
.turn.is-you .turn-hint { color: var(--text); font-weight: 600; }
.turn-done { font: 600 1.375rem var(--display); --team: var(--ok); }
.map-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.map-tile {
--by: var(--line-strong);
--chamfer: 20px;
position: relative; display: flex; flex-direction: column; justify-content: flex-end; text-align: left;
aspect-ratio: 16 / 10; padding: 16px 18px; border: 0; color: var(--text); font: inherit; cursor: default;
background: var(--surface-2);
clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
transition: transform .15s, filter .25s;
}
.map-tile.by-A { --by: var(--team-a); }
.map-tile.by-B { --by: var(--team-b); }
.map-art {
position: absolute; inset: 0; z-index: 0;
background:
repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--map) 16%, transparent) 9px 10px),
radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--map) 70%, transparent), transparent 60%),
linear-gradient(180deg, color-mix(in srgb, var(--map) 35%, var(--surface-2)), var(--surface) 85%);
}
.map-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Abdunkeln nach unten, damit Name und Status auf jedem Bild lesbar bleiben */
.map-art::after {
content: ''; position: absolute; inset: 0;
background: linear-gradient(180deg, rgba(var(--bg-rgb), .05) 30%, rgba(var(--bg-rgb), .88) 100%);
}
.map-name, .map-status { position: relative; z-index: 1; }
.map-name { font: 700 clamp(1.625rem, 2.6vw, 2.25rem)/1 var(--display); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.map-status { font-size: .9375rem; color: color-mix(in srgb, var(--text) 75%, transparent); margin-top: 4px; }
.map-tile:not(:disabled) { cursor: pointer; }
.map-tile:not(:disabled):hover { transform: translateY(-2px); }
.map-tile:focus-visible { outline: none; }
.map-tile:focus-visible::after { content: ''; position: absolute; inset: 0; z-index: 3; box-shadow: inset 0 0 0 3px var(--link); }
/* Gebannt: entsättigt, mit diagonalem Strich in der Farbe des bannenden Teams */
.map-tile.status-banned { filter: grayscale(.9) brightness(.6); }
.map-tile.status-banned::after {
content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
background: linear-gradient(to top right, transparent calc(50% - 4px), var(--by) calc(50% - 4px), var(--by) calc(50% + 4px), transparent calc(50% + 4px));
}
.map-tile.status-banned .map-status { color: var(--text); }
/* Gewählt, Entscheidungsmap, Auswahl: Rahmen als Overlay über dem Map-Bild */
.map-tile.status-picked::after, .map-tile.status-decider::after, .map-tile.is-selected::after, .map-tile.is-side::after {
content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
box-shadow: inset 0 0 0 4px var(--frame, var(--by));
}
.map-tile.status-picked .map-status { color: var(--by); font-weight: 600; }
.map-tile.status-decider { --by: var(--text); }
.map-tile.status-decider .map-status { font-weight: 600; }
.map-tile.is-selected { transform: translateY(-2px); }
.map-tile.is-selected.sel-ban { --frame: var(--error); }
.map-tile.is-selected.sel-pick { --frame: var(--ok); }
.map-tile.is-side::after { animation: side-pulse 1.6s ease-in-out infinite; }
@keyframes side-pulse { 50% { box-shadow: inset 0 0 0 4px var(--pending); } }
.veto-confirm .btn { width: 100%; }
.side-choice { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.side-choice-art { opacity: .45; }
.side-choice-art::after { background: linear-gradient(90deg, rgba(var(--bg-rgb), .92), rgba(var(--bg-rgb), .55)); }
.side-choice-body { position: relative; z-index: 1; padding: 18px; }
.side-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side-option {
--side: var(--ct);
display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
text-align: left; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--text);
background: color-mix(in srgb, var(--side) 16%, rgba(var(--bg-rgb), .75));
border: 2px solid color-mix(in srgb, var(--side) 70%, transparent); border-radius: var(--radius);
transition: background .15s, border-color .15s, transform .15s;
}
.side-option-t { --side: var(--t); }
.side-option .side-icon { grid-row: 1 / 3; color: var(--side); }
.side-option-name { font: 700 1.375rem/1.1 var(--display); color: var(--side); }
.side-option-sub { font-size: .8125rem; color: var(--muted); }
.side-option:hover:not(:disabled) { background: color-mix(in srgb, var(--side) 28%, rgba(var(--bg-rgb), .75)); border-color: var(--side); transform: translateY(-1px); }
.side-option:disabled { opacity: .5; cursor: not-allowed; }
.side-icon { flex: none; }
.step-track { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.step {
--team: var(--muted);
display: flex; flex-direction: column; min-width: 92px; line-height: 1.2;
font: 600 1rem var(--display); padding: 8px 14px; border-radius: 4px; background: var(--surface);
border-bottom: 3px solid color-mix(in srgb, var(--team) 45%, transparent); color: var(--muted);
}
.step small { font: 500 .8125rem var(--body); opacity: .85; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-A { --team: var(--team-a); }
.step-B { --team: var(--team-b); }
.step.done { color: var(--text); background: var(--surface-2); border-bottom-color: var(--team); }
.step.now { color: var(--bg); background: var(--team); border-bottom-color: var(--team); font-weight: 600; }
.step-decider.now, .step-decider.done { --team: var(--text); }
.veto-history { list-style: none; padding: 0; margin: 0; font-size: .9375rem; border-top: 1px solid var(--line); }
.veto-history li { padding: 6px 0 6px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.veto-history li.hist-A { border-left-color: var(--team-a); }
.veto-history li.hist-B { border-left-color: var(--team-b); }
.veto-history time, .event-log time { color: var(--muted); font-size: .8125rem; margin-right: 8px; font-variant-numeric: tabular-nums; }
.veto-compact .map-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.veto-compact .map-tile { aspect-ratio: 16 / 9; padding: 10px 12px; --chamfer: 14px; }
.veto-compact .map-name { font-size: 1.375rem; }
.veto-compact .map-status { font-size: .8125rem; }
/* ---------- Serie ---------- */
.series { margin-bottom: 20px; }
.series-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.series-item {
position: relative; overflow: hidden;
display: grid; grid-template-columns: auto 1fr auto; gap: 2px 16px; align-items: baseline;
padding: 14px 16px; background: var(--surface); border-left: 4px solid var(--map); border-radius: var(--radius);
}
.series-item > :not(.series-art) { position: relative; z-index: 1; }
/* Map-Bild rechts, nach links in die Fläche ausgeblendet */
.series-art {
left: auto !important; width: 60%;
-webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
mask-image: linear-gradient(to left, #000 35%, transparent);
opacity: .7;
}
.series-art::after { display: none; }
.series-status { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.series-no { color: var(--muted); font-size: .875rem; }
.series-map { font: 700 1.625rem var(--display); }
.series-status { font-size: .875rem; color: var(--muted); text-align: right; grid-column: 3; grid-row: 1; }
.series-origin, .series-sides { grid-column: 2 / -1; font-size: .875rem; color: var(--muted); }
.series-item.is-live { box-shadow: inset 0 0 0 1px var(--map); }
.series-item.is-live .series-status, .series-item.is-next .series-status { color: var(--pending); font-weight: 600; }
.series-item.is-done { opacity: .6; }
.side-ct, .side-t { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.side-ct { color: var(--ct); }
.side-t { color: var(--t); margin-left: 14px; }
/* ---------- Panels unten ---------- */
.match-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.server-status { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.0625rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.status-dot.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.tone-border-error { border-color: color-mix(in srgb, var(--error) 60%, transparent); }
.connect { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: start; }
.connect .copy-field { width: 100%; }
.org-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.copy-label { font-size: .8125rem; color: var(--muted); }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; overflow-x: auto; white-space: nowrap; }
.copy-row code.blurred { filter: blur(5px); cursor: pointer; user-select: none; }
.invite { padding: 12px 0; border-top: 1px solid var(--line); border-left: 3px solid transparent; padding-left: 12px; }
.invite.team-A { border-left-color: var(--team-a); }
.invite.team-B { border-left-color: var(--team-b); }
.invite.spectator { border-left-color: var(--muted); }
.invite-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.invite-code { font: 600 1.125rem var(--display); letter-spacing: .1em; }
.invite-head .link-btn { margin-left: auto; }
.org-link { margin-top: 12px; }
.org-link summary { cursor: pointer; color: var(--muted); font-size: .875rem; }
.event-log ol { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; font-size: .875rem; }
.event-log li { display: flex; gap: 4px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.event-log li.ev-server span { color: color-mix(in srgb, var(--text) 80%, var(--link)); }
.toast {
position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50;
padding: 12px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-strong);
max-width: min(560px, calc(100vw - 32px)); box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}
.toast-error { border-color: var(--error); }
.toast-ok { border-color: var(--ok); }
.reconnect { background: var(--pending); color: #2a2000; padding: 8px 14px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 600; }
/* ---------- Responsiv ---------- */
@media (max-width: 1040px) {
.match-grid { grid-template-columns: 1fr 1fr; }
.stage { grid-column: 1 / -1; grid-row: 1; }
.map-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
.match-grid { grid-template-columns: 1fr; }
.topbar { flex-wrap: wrap; gap: 8px 16px; }
.demo-flag { order: 3; }
.brand-logo { height: 26px; }
.brand-app { font-size: 1rem; padding-left: 10px; }
.create-teams { grid-template-columns: 1fr; }
.vs.big { justify-self: center; }
.map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.map-tile { --chamfer: 14px; padding: 10px 12px; }
.map-name { font-size: 1.375rem; }
.map-status { font-size: .8125rem; }
.match-grid.stage-wide { grid-template-columns: 1fr; }
.step { min-width: 0; padding: 6px 10px; font-size: .9375rem; }
.side-options { grid-template-columns: 1fr; }
.series-item { grid-template-columns: 1fr auto; }
.series-no { grid-column: 1 / -1; }
.series-status { grid-column: 2; grid-row: 2; }
.series-origin, .series-sides { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ---------- Live-Ergebnisse ---------- */
.live-badge {
display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 6px; border-radius: 3px;
background: var(--brand-red); color: #fff; font: 700 .8125rem var(--display); vertical-align: middle;
}
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.series-total { font-variant-numeric: tabular-nums; color: var(--text); }
.series-total .colon, .series-score .colon { color: var(--muted); margin: 0 .12em; }
.row-score { font: 700 1.375rem var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.row-live { color: var(--text); }
.series-score {
grid-column: 3; grid-row: 2 / 4; align-self: center; justify-self: end; text-align: right;
font: 700 2.25rem/1 var(--display); font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.series-score small { display: block; font: 500 .8125rem var(--body); color: var(--muted); margin-top: 4px; }
.series-score .is-winner { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.series-rounds { grid-column: 1 / -1; margin-top: 10px; overflow-x: auto; }
.series-item.is-playing { box-shadow: inset 0 0 0 2px var(--brand-red); }
.round-strip { list-style: none; display: flex; gap: 3px; padding: 0; margin: 0; }
.round {
display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 3px;
background: var(--surface-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.round.won-A { background: var(--team-a); box-shadow: none; }
.round.won-B { background: var(--team-b); box-shadow: none; }
.round.break { margin-left: 10px; }
.round-strip-sm .round { width: 18px; height: 18px; }
.round-strip-sm .reason-icon { width: 10px; height: 10px; }
.round-strip-sm .round.break { margin-left: 8px; }
.alert-ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, var(--surface)); }
.live-data { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.stream-link { margin-top: 10px; display: grid; gap: 8px; justify-items: start; }
.stream-link .copy-field { width: 100%; }
@media (max-width: 640px) {
.series-score { grid-column: 2; grid-row: 2; font-size: 1.75rem; }
}
/* ---------- Admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.admin-list { display: grid; gap: 14px; }
.admin-card { border-left: 4px solid var(--line-strong); }
.admin-card.status-live { border-left-color: var(--brand-red); }
.admin-card.status-veto { border-left-color: var(--pending); }
.admin-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-card-head strong { font: 700 1.5rem var(--display); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.admin-details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.admin-details h3 { margin-top: 6px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.admin-players { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-players ul { list-style: none; padding: 0; margin: 4px 0 0; }
.admin-players li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); }
.admin-players em { font-style: normal; color: var(--pending); font-size: .8125rem; }
.admin-log { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow-y: auto; font-size: .875rem; }
.admin-log li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.admin-log time { color: var(--muted); margin-right: 8px; }
.admin-login { margin-top: 40px; }
.danger { color: var(--error); }
@media (max-width: 640px) { .admin-players { grid-template-columns: 1fr; } }
/* ---------- Rollback (nur Admin) ---------- */
.rollback { border: 1px dashed var(--brand-red); border-radius: var(--radius); padding: 12px 14px; }
.rollback h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.rollback select { min-width: 200px; }
.admin-badge { font: 600 .75rem var(--body); color: #fff; background: var(--brand-red); padding: 2px 8px; border-radius: 3px; }