.algorithm-picker {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px solid #d9c6a6;
    border-radius: 22px;
    background: linear-gradient(120deg, #fff9ed, #f1f4e8);
    box-shadow: 0 4px 0 #e8dfcc;
    color: #604b34;
}
.algorithm-picker legend { padding: 0 .65rem; font-weight: 700; font-size: 1.25rem; }
.algorithm-picker-note { margin: .2rem 0 1rem; line-height: 1.6; font-size: .95rem; }
.algorithm-picker-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.algorithm-picker-option { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border: 2px solid #d5c6ad; border-radius: 16px; background: #fffcf4; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.algorithm-picker-option:hover { transform: translateY(-2px); }
.algorithm-picker-option[data-selected="true"] { border-color: #af663b; box-shadow: inset 0 0 0 1px #af663b; background: #fff3df; }
.algorithm-picker-option[data-selected="true"][data-algorithm="TOPSIS"] { border-color: #47818b; box-shadow: inset 0 0 0 1px #47818b; background: #eaf3ef; }
.algorithm-picker-option input { width: 1.15rem; height: 1.15rem; accent-color: #865a37; flex: 0 0 auto; }
.algorithm-picker-option strong, .algorithm-picker-option small { display: block; }
.algorithm-picker-option strong { font-size: 1.15rem; margin-bottom: .25rem; }
.algorithm-picker-option small { font-size: .88rem; line-height: 1.5; }
.algorithm-picker-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border: 1px solid #d5b98e; border-radius: 50%; background: #f2dfbf; color: #a7592d; font: 700 1.8rem Georgia, serif; }
[data-algorithm="TOPSIS"] .algorithm-picker-icon { background: #d8e8e6; color: #377481; border-color: #9cbab6; }
.topsis-preference { margin-top: 1.25rem; padding: 1.2rem; background: #eef5ef; border: 1px solid #b7ccc0; border-left: 4px solid #47818b; border-radius: 13px; }
.topsis-preference h3 { margin: 0 0 1rem; color: #386c76; }
.topsis-preference label { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-weight: 600; font-size: 1rem; }
.topsis-preference select { display: block; width: 100%; padding: .8rem; margin: .3rem 0; background: #fffdf7; color: #594a35; border: 1px solid #b6c6b7; border-radius: 9px; font: inherit; }
.topsis-preference input[type="checkbox"] { accent-color: #47818b; width: 1.1rem; height: 1.1rem; }
.algorithm-field-heading { margin: 1.4rem 0 .75rem; color: #a45c32; font-size: 1.05rem; }
.solo-result-list.algorithm-result-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.algorithm-result-columns[data-columns="1"] { grid-template-columns: 1fr; }
.algorithm-result-column { min-width: 0; padding: 1.1rem; border: 1px solid #dbc9ad; border-top: 4px solid #bc7445; border-radius: 18px; background: #f9f4e8; }
.algorithm-result-column[data-algorithm="TOPSIS"] { border-top-color: #47818b; background: #f0f5ed; }
.algorithm-result-heading { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; align-items: center; }
.algorithm-result-heading .algorithm-picker-icon { grid-row: span 2; }
.algorithm-result-heading h3 { margin: 0; color: #765437; font-size: 1.3rem; }
.algorithm-result-heading p { margin: 0; font-size: .9rem; }
.algorithm-result-counts { display: flex; flex-wrap: wrap; gap: .35rem .75rem; margin: 1rem 0; color: #77634a; font-size: .82rem; }
.algorithm-result-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.algorithm-result-cards .solo-result-card, .algorithm-result-cards .solo-mode-group { min-width: 0; }
.algorithm-result-cards .solo-result-card h3 { font-size: 1rem; }
.algorithm-result-column > .solo-more { margin-top: 1rem; }
.algorithm-result-columns[data-columns="1"] .algorithm-result-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.algorithm-detail-switch { margin: 1rem 0 1.6rem; padding: 1.15rem; border: 1px solid #d9c6a6; border-radius: 18px; background: #fff9ee; }
.algorithm-detail-tabs, .topsis-criterion-tabs { display: flex; flex-wrap: wrap; gap: .6rem; }
.algorithm-detail-tabs button, .topsis-criterion-tabs button, .topsis-criteria-pages button { padding: .7rem 1.1rem; border: 1px solid #cabb9c; border-radius: 10px; background: #fbf7ed; color: #6e573c; font: inherit; cursor: pointer; transition: background .2s, box-shadow .2s; }
.algorithm-detail-tabs button[aria-pressed="true"] { background: #b76537; color: #fff9ec; border-color: #b76537; box-shadow: 0 3px 0 #e8c59f; }
.algorithm-detail-tabs button[data-detail-algorithm="TOPSIS"][aria-pressed="true"], .topsis-criterion-tabs button[aria-pressed="true"] { background: #407f87; color: #fffdf0; border-color: #407f87; box-shadow: 0 3px 0 #c9dcd2; }
.topsis-explanation { display: grid; gap: 1.3rem; animation: topsis-arrive .25s ease-out; }
.topsis-detail-card { min-width: 0; }
.topsis-detail-card h2 { color: #594f3b; font-size: 1.3rem; }
.topsis-score-ring { width: 210px; height: 210px; max-width: 100%; display: grid; place-items: center; margin: 1.5rem auto; border-radius: 50%; background: conic-gradient(#47818b var(--topsis-score), #e4ddcd 0); }
.topsis-score-ring > div { width: 162px; height: 162px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #fffbf3; }
.topsis-score-ring strong { color: #397987; font-size: 2rem; }
.topsis-score-ring span { font-size: .85rem; margin-top: .3rem; }
.topsis-distance-row { margin: 1.25rem 0; display: grid; grid-template-columns: 1fr auto; gap: .5rem; font-size: .95rem; }
.topsis-distance-row strong { font-variant-numeric: tabular-nums; color: #416f74; }
.topsis-distance-track { height: 12px; border-radius: 6px; background: #e5decd; overflow: hidden; grid-column: 1 / -1; }
.topsis-distance-track span { display: block; height: 100%; border-radius: inherit; background: #8c9d6c; }
.topsis-distance-row[data-kind="worst"] .topsis-distance-track span { background: #47818b; }
.topsis-formula { padding: 1rem; background: #eef2e5; border-radius: 12px; font-size: 1.12rem; font-weight: 700; text-align: center; }
.topsis-formula-example { text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.topsis-notice { padding: .75rem 1rem; background: #f2ecdc; border-left: 3px solid #bb9a60; border-radius: 7px; line-height: 1.6; }
.topsis-coverage-value { display: block; color: #407e85; margin: 1rem 0 .5rem; }
.topsis-detail-card meter { width: 100%; height: 22px; accent-color: #5d8f7f; }
.topsis-criterion-tabs { margin: 1.2rem 0; }
.topsis-criterion-body { display: grid; gap: 1rem; }
.topsis-criterion-row { border: 1px solid #d9cfb9; border-radius: 14px; padding: 1.1rem; background: #fcfaf1; }
.topsis-criterion-row h3 { margin: 0 0 .4rem; color: #584a35; }
.topsis-direction { display: inline-block; border-radius: 20px; padding: .25rem .6rem; color: #406c64; background: #e7efdf; font-size: .85rem; }
.topsis-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.topsis-values > div { padding: .7rem; border-radius: 8px; background: #f0ebdc; min-width: 0; }
.topsis-values dt { font-size: .8rem; color: #816c4c; }
.topsis-values dd { margin: .3rem 0 0; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.topsis-criteria-pages { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.topsis-constraints { display: grid; gap: .55rem; list-style: none; padding: 0; }
.topsis-constraints li { padding: .75rem; border-radius: 8px; background: #e8efdd; }
.topsis-constraints li[data-status="UNKNOWN"] { background: #e3edf0; }
.topsis-constraints li[data-status="VIOLATED"] { background: #f4e1d4; }
@keyframes topsis-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1120px) { .algorithm-result-cards { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .algorithm-picker-options, .solo-result-list.algorithm-result-columns, .algorithm-result-columns[data-columns="1"] .algorithm-result-cards { grid-template-columns: 1fr; }
    .algorithm-picker { padding: 1rem; }
    .algorithm-picker-option { padding: .9rem; gap: .65rem; }
    .topsis-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .topsis-explanation { animation: none; } .algorithm-picker-option { transition: none; } }

/* dieselben zeichen in auswahl, ranglisten und den spieldetails */
.algorithm-logo { color: #df7336; background: #fff1dc; border-color: #d8b78c; overflow: hidden; }
.algorithm-logo svg { width: 82%; height: 82%; display: block; flex: none; }
.algorithm-logo[data-algorithm-icon="TOPSIS"] { color: #247baf; background: #e9f4fc; border-color: #8eb9d3; font: 800 1.65rem/1 system-ui, sans-serif; }
.algorithm-logo--compact { width: 30px; height: 30px; font-size: 1.15rem; }
.algorithm-logo--compact[data-algorithm-icon="TOPSIS"] { font-size: 1.1rem; }
.algorithm-detail-tabs button:has(.algorithm-logo) { display: inline-flex; align-items: center; gap: .65rem; }
.lobby-results-logo .algorithm-logo { width: 64px; height: 64px; }
.lobby-results-logo .algorithm-logo[data-algorithm-icon="TOPSIS"] { font-size: 2rem; }
