:root { color-scheme: dark; --cyan:#38eaff; --pink:#ff3fa9; --ink:#effcff; --muted:#8dafc0; --line:#24516a; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height:100vh; margin:0; overflow-x:hidden; color:var(--ink); background:radial-gradient(circle at 75% 0,#112d48 0,transparent 35%),linear-gradient(145deg,#02050b,#080818 70%); font-family:Inter,ui-sans-serif,system-ui,sans-serif; }
.settings-header { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding:clamp(24px,5vw,58px) max(18px,calc((100vw - 1180px)/2)); border-bottom:1px solid #ffffff16; }
.settings-header small { color:var(--cyan); font-weight:900; letter-spacing:.2em; }
.settings-header h1 { margin:6px 0 3px; font-size:clamp(38px,7vw,72px); line-height:.9; letter-spacing:-.055em; }
.settings-header p { margin:0; color:var(--muted); }
a { color:inherit; }
.back-link,.section-nav a { border:1px solid var(--line); border-radius:12px; background:#07182ad9; text-decoration:none; font-weight:800; }
.back-link { padding:12px 16px; white-space:nowrap; }
main { width:min(1180px,calc(100% - 28px)); margin:0 auto; padding:20px 0 110px; }
.section-nav { position:sticky; z-index:10; top:0; display:flex; gap:7px; overflow:auto; padding:10px 0; background:#02050be8; backdrop-filter:blur(14px); }
.section-nav a { padding:8px 12px; font-size:12px; white-space:nowrap; }
.settings-card { margin:14px 0; padding:clamp(18px,3vw,30px); border:1px solid #ffffff17; border-radius:22px; background:linear-gradient(145deg,rgba(7,21,37,.96),rgba(13,9,28,.94)); box-shadow:0 20px 60px #0005; }
.card-heading { display:flex; gap:14px; align-items:flex-start; margin-bottom:20px; }
.card-heading>span { display:grid; place-items:center; min-width:42px; height:42px; border:1px solid var(--cyan); border-radius:12px; color:var(--cyan); font-weight:1000; }
.card-heading h2 { margin:0; font-size:clamp(22px,3vw,32px); }
.card-heading p { margin:4px 0 0; color:var(--muted); }
.field-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
label { display:flex; flex-direction:column; gap:6px; color:#c4dbe6; font-size:12px; font-weight:800; }
label small { color:var(--muted); font-weight:500; }
input,select,button,.file-button { min-width:0; max-width:100%; min-height:43px; border:1px solid var(--line); border-radius:10px; background:#061626; color:var(--ink); padding:8px 10px; font:inherit; accent-color:var(--cyan); }
select { color-scheme:dark; background-color:#081329; color:#f5fcff; }
select option,select optgroup { background:#081329; color:#f5fcff; }
select option:checked { background:#163e58; color:#fff; }
input:not([type="checkbox"]):not([type="radio"]),select { width:100%; }
.field-grid>*,.settings-card,fieldset,label { min-width:0; max-width:100%; }
input[type="range"] { padding:0; }
input[type="color"] { width:100%; padding:4px; }
button,.file-button { cursor:pointer; font-weight:900; }
button:hover,.file-button:hover,a:hover { border-color:var(--cyan); box-shadow:0 0 18px #38eaff22; }
.toggle { flex-direction:row; align-items:center; align-self:end; min-height:43px; padding:8px 11px; border:1px solid var(--line); border-radius:10px; background:#061626; }
.toggle input { min-height:0; width:18px; height:18px; }
fieldset { margin:18px 0 0; border:1px solid #ffffff17; border-radius:14px; padding:14px; }
legend { padding:0 8px; color:var(--cyan); font-size:12px; font-weight:900; }
.name-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
output { color:var(--cyan); }
.secondary { margin-top:14px; }
.danger { border-color:#7b3658; color:#ffc1d9; }
.button-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.button-row>* { margin:0; }
.file-button { display:flex; align-items:center; }
.file-button input { display:none; }
.profile-list { display:grid; gap:7px; margin-top:16px; }
.profile-row { display:grid; grid-template-columns:auto auto minmax(120px,1fr) minmax(130px,auto) repeat(4,auto) auto auto; gap:10px; align-items:center; padding:10px; border:1px solid #ffffff14; border-radius:10px; color:var(--muted); }
.profile-row strong { color:var(--ink); }
.profile-row button { min-height:34px; padding:5px 9px; font-size:11px; }
.profile-row .profile-active { width:19px; height:19px; min-height:0; }
.profile-editor { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.profile-editor-fields { display:grid; flex:1 1 260px; gap:8px; }
.profile-editor-fields>input { width:100%; }
.profile-image-actions { display:flex; gap:8px; flex-wrap:wrap; }
.profile-image-actions .secondary { margin:0; }
.profile-image { display:grid; place-items:center; width:42px; height:42px; flex:0 0 auto; overflow:hidden; border:1px solid var(--cyan); border-radius:50%; background:linear-gradient(145deg,#123552,#261239); color:var(--cyan); font-size:20px; font-style:normal; box-shadow:0 0 16px #38eaff22; }
.profile-image img { width:100%; height:100%; object-fit:cover; }
.profile-image img { transform-origin:center; }
.profile-image-large { width:76px; height:76px; font-size:32px; }
.profile-crop-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.profile-crop-controls label { min-width:0; }
.effect-audio-actions { display:flex; gap:6px; justify-content:flex-end; }
.effect-audio-actions button { margin:0; }
.profile-image-hint { margin:9px 0 0; color:var(--muted); font-size:11px; }
.active-player-summary { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:8px; }
.active-player-summary span { display:flex; align-items:center; gap:7px; padding:7px 10px; border:1px solid var(--cyan); border-radius:999px; background:#38eaff10; font-weight:800; }
.active-player-summary .profile-image { width:26px; height:26px; padding:0; border-radius:50%; }
.profile-role { min-height:36px; padding:5px 8px; font-size:11px; }
.profile-info-badge { color:var(--cyan); font-size:10px; font-weight:900; }
.profile-pagination { display:flex; justify-content:center; align-items:center; gap:12px; margin:14px 0; }
.profile-pagination button { margin:0; min-height:36px; }
.profile-pagination span { color:var(--muted); font-size:12px; font-weight:800; }
.compact-toggle { align-self:stretch; }
.soundboard-panel { margin-top:20px; border:1px solid #ffd56a66; border-radius:16px; background:linear-gradient(145deg,#10152a,#251207); }
.soundboard-panel>summary { padding:16px; color:#ffd56a; cursor:pointer; font-weight:1000; letter-spacing:.04em; }
.soundboard-panel[open] { padding:0 16px 16px; }
.soundboard-panel h3 { margin:20px 0 8px; color:var(--cyan); font-size:14px; }
.soundboard-effects { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.soundboard-effects button { min-height:48px; background:linear-gradient(145deg,#0b2940,#301333); }
.soundboard-blocks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.soundboard-block { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:7px; align-items:center; padding:10px; border:1px solid #ffffff17; border-radius:12px; background:#04111f; }
.soundboard-block input[type="checkbox"] { width:18px; min-height:18px; padding:0; }
.soundboard-block input[type="text"] { min-width:0; }
.soundboard-block textarea,.soundboard-block input[type="file"],.soundboard-block small { grid-column:1/-1; }
.soundboard-block textarea { min-height:66px; }
.soundboard-block small { overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.soundboard-block button { min-height:36px; padding:6px 9px; font-size:11px; }
.protocol-doc { margin-top:18px; border:1px solid #ffffff1f; border-radius:14px; padding:13px 15px; background:#04101d; color:var(--muted); }
.protocol-doc summary { cursor:pointer; color:var(--cyan); font-weight:900; }
.protocol-doc pre { overflow:auto; padding:12px; border-radius:10px; background:#01070d; color:#dffbff; line-height:1.6; }
#projection-preview { display:grid; place-items:center; width:min(520px,100%); aspect-ratio:16/9; margin:22px auto 0; border:2px solid var(--cyan); background:linear-gradient(145deg,#0b3452,#280c37); clip-path:polygon(0 0,100% 0,100% 100%,0 100%); transition:clip-path .15s; }
#projection-preview span { font-size:12px; font-weight:1000; letter-spacing:.16em; }
#ball-preview { display:grid; place-items:center; gap:8px; width:170px; margin:24px auto 0; color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.14em; }
#ball-preview i { display:block; width:112px; aspect-ratio:1; border:5px solid var(--ball-accent,#38eaff); border-radius:50%; background:radial-gradient(circle at 34% 28%,#fff8 0 3%,transparent 4%),radial-gradient(circle at 45% 36%,#02040a 0 5%,transparent 6%),radial-gradient(circle at 58% 30%,#02040a 0 5%,transparent 6%),radial-gradient(circle at 52% 48%,#02040a 0 5%,transparent 6%),var(--ball-color,#1c2d5e); box-shadow:0 0 30px color-mix(in srgb,var(--ball-accent,#38eaff) 65%,transparent),inset -18px -20px 28px #0008; transform:scale(var(--ball-scale,1)); transition:.18s ease; }
.text-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
textarea { width:100%; min-height:148px; resize:vertical; border:1px solid var(--line); border-radius:10px; background:#061626; color:var(--ink); padding:10px; font:inherit; line-height:1.45; }
.challenge-editor button { margin-top:12px; }
.audio-slot-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.audio-slot-grid label { display:grid; grid-template-columns:minmax(110px,1fr) auto; align-items:center; gap:6px 10px; padding:10px; border:1px solid #ffffff17; border-radius:12px; background:#04111f; }
.audio-slot-grid input { grid-column:1/-1; width:100%; min-height:38px; padding:5px; font-size:11px; }
.audio-slot-grid span { overflow:hidden; color:var(--muted); font-size:10px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.audio-slot-grid button { min-height:32px; padding:4px 8px; font-size:10px; }
.storage-note { margin:12px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.esp-effect-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:14px; }
.esp-effect-card { border:1px solid #ffffff17; border-radius:12px; background:#04111f; }
.esp-effect-card[open] { border-color:#38eaff55; }
.esp-effect-card summary { display:flex; justify-content:space-between; gap:10px; padding:12px; cursor:pointer; }
.esp-effect-card summary span { color:var(--muted); font:600 10px ui-monospace,monospace; }
.esp-effect-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding:0 12px 12px; }
.save-bar { position:fixed; z-index:20; left:50%; bottom:max(12px,env(safe-area-inset-bottom)); transform:translateX(-50%); width:min(900px,calc(100% - 24px)); display:flex; justify-content:space-between; align-items:center; gap:15px; padding:12px 14px; border:1px solid var(--cyan); border-radius:16px; background:#04111ff2; box-shadow:0 14px 50px #000c,0 0 30px #38eaff18; backdrop-filter:blur(14px); }
.save-bar div { display:flex; flex-direction:column; }
.save-bar span { color:var(--muted); font-size:11px; }
.save-bar button { border-color:var(--cyan); background:linear-gradient(135deg,#0c526a,#23205a); padding-inline:22px; }
@media (max-width:850px) { .field-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .name-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:850px) { .soundboard-blocks { grid-template-columns:1fr; } .profile-row { grid-template-columns:auto auto minmax(100px,1fr) minmax(120px,auto); } .profile-row button,.profile-row>span { grid-column:auto; } }
@media (max-width:560px) { .settings-header { align-items:flex-start; flex-direction:column; } .field-grid,.text-grid,.audio-slot-grid,.esp-effect-editor,.esp-effect-grid { grid-template-columns:1fr; } .name-grid { grid-template-columns:1fr 1fr; } .profile-row { grid-template-columns:1fr 1fr; } .profile-row strong { grid-column:1/-1; } .profile-role { grid-column:1/-1; } .soundboard-effects { grid-template-columns:1fr 1fr; } .soundboard-block { grid-template-columns:auto minmax(0,1fr); } .soundboard-block button { grid-column:1/-1; } .save-bar { align-items:stretch; flex-direction:column; } .save-bar button { width:100%; } .settings-header p { font-size:13px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } #projection-preview { transition:none; } }
.speech-editor{margin-top:16px;border:1px solid #ffd56a55;border-radius:14px;background:linear-gradient(145deg,#151124,#231407)}.speech-editor summary{padding:14px 16px;color:var(--amber);font-weight:900;cursor:pointer}.speech-editor[open]{padding-bottom:14px}.speech-editor .text-grid,.speech-editor>small,.speech-editor>button{margin-left:14px;margin-right:14px}.speech-editor textarea{min-height:62px}.speech-editor>small{display:block;color:var(--muted)}
#ball-preview{background:radial-gradient(circle at 40% 32%,#ffffff33,transparent 20%),radial-gradient(circle,var(--ball-color),#020713 72%);box-shadow:0 0 30px color-mix(in srgb,var(--ball-accent) 50%,transparent)}
.active-player-summary{max-height:180px;overflow:auto}.profile-row{min-height:58px}
.spare-leaderboard-panel{margin:16px 0;border:1px solid #ffd56a55;border-radius:14px;background:#181326}.spare-leaderboard-panel>summary{padding:13px 15px;color:#ffd56a;font-weight:900;cursor:pointer}.spare-leaderboard{display:grid;gap:7px;padding:0 14px 14px}.spare-leaderboard>div{display:grid;grid-template-columns:28px minmax(110px,1fr) repeat(3,auto);align-items:center;gap:9px;padding:9px;border:1px solid #ffffff17;border-radius:10px;background:#04111f}.spare-leaderboard b{color:#ffd56a}.spare-leaderboard small{grid-column:2/-1;color:var(--muted)}
@media(max-width:700px){.settings-header{padding-inline:14px;text-align:center;align-items:center}.settings-header>div{width:100%;min-width:0}.settings-header p{max-width:100%;overflow-wrap:anywhere}.back-link{align-self:center}main{width:calc(100% - 18px)}.section-nav{justify-content:flex-start;flex-wrap:nowrap;width:100%;max-width:100%;overflow-x:auto}.section-nav a{flex:0 0 108px;min-width:0;text-align:center;white-space:normal}.settings-card{width:100%;overflow:hidden;padding:15px;border-radius:16px}.card-heading{align-items:center}.field-grid{grid-template-columns:minmax(0,1fr)}.spare-leaderboard>div{grid-template-columns:26px minmax(0,1fr)}.spare-leaderboard>div span,.spare-leaderboard>div small{grid-column:2}.save-bar{max-height:calc(100vh - 20px)}}
.api-status-grid{display:grid;grid-template-columns:1fr 2fr 1.3fr;gap:10px}.api-status-grid>div{display:flex;min-width:0;min-height:78px;flex-direction:column;justify-content:center;gap:7px;padding:12px;border:1px solid #ffffff17;border-radius:12px;background:#04111f}.api-status-grid small{color:var(--muted);font-size:9px;font-weight:1000;letter-spacing:.12em}.api-status-grid code,.api-status-grid strong{overflow-wrap:anywhere;color:#eaffff;font-size:12px}.api-status-grid code{color:var(--cyan)}#settings-api-state[data-active="true"]{color:#65ffbf}@media(max-width:700px){.api-status-grid{grid-template-columns:1fr}}
@media(max-width:560px){.profile-editor{display:grid;grid-template-columns:auto minmax(0,1fr)}.profile-editor-fields{min-width:0}.profile-crop-controls{grid-template-columns:1fr}.profile-editor>button{grid-column:1/-1}.soundboard-panel[open]{padding-inline:10px}.effect-audio-grid label{grid-template-columns:1fr}.effect-audio-actions{justify-content:stretch}.effect-audio-actions button{flex:1}}

/* Mittige Control-Center-Navigation V2.9 */
.section-nav{justify-content:center;flex-wrap:wrap;overflow:visible;margin:0 auto 22px;padding:12px clamp(10px,2vw,20px);border:1px solid #38eaff38;border-radius:20px;background:linear-gradient(135deg,#0a2035e8,#19112fe8);box-shadow:0 16px 44px #0008,0 0 30px #38eaff16,inset 0 1px 0 #ffffff14}
.section-nav a{position:relative;padding:10px 14px;border-color:#ffffff1e;border-radius:999px;background:linear-gradient(145deg,#0a2941cc,#1e1234cc);color:#dffaff;box-shadow:inset 0 1px 0 #ffffff12;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.section-nav a:hover,.section-nav a:focus-visible{transform:translateY(-2px);border-color:var(--cyan);box-shadow:0 0 20px #38eaff2e,inset 0 1px 0 #ffffff22;outline:none}
.section-nav a:target{border-color:var(--pink)}
.result-export-control{border-color:#ffd56a88;background:linear-gradient(135deg,#51320d,#251334);color:#fff3bd}
@media(max-width:700px){.section-nav{justify-content:center;gap:6px;border-radius:16px}.section-nav a{padding:8px 11px;font-size:11px}}

button,.file-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;line-height:1.2;text-align:center}.secondary{margin-top:0}.button-row>button,.button-row>.file-button,.profile-image-actions>button,.profile-image-actions>.file-button{min-height:44px;margin:0}.challenge-editor .button-row>button{margin-top:0}.settings-lock{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:18px;background:#02050bf2;backdrop-filter:blur(16px)}.settings-lock[hidden]{display:none}.settings-lock-panel{display:grid;width:min(420px,100%);gap:16px;padding:28px;border:1px solid var(--cyan);border-radius:16px;background:#071525;box-shadow:0 24px 80px #000c}.settings-lock-panel small{color:var(--cyan);font-weight:900;letter-spacing:.12em}.settings-lock-panel h1,.settings-lock-panel p{margin:0}.settings-lock-panel p{min-height:20px;color:#ffc1d9;font-size:12px}.settings-locked{overflow:hidden}
